* doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
[official-gcc.git] / gcc / ChangeLog
blob0a99b63c213379c392c4f703e53a6a20e9037e22
1 2016-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
3         * doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
4         https by default.
5         * doc/passes.texi (Cilk Plus Transformation): Ditto.
6         * doc/generic.texi (Statements for C++): Ditto, and use @uref.
8 2016-12-28  Uros Bizjak  <ubizjak@gmail.com>
10         PR target/78904
11         * config/i386/constraints.md (Bn): New special memory constraint.
12         * config/i386/predicates.md (norex_memory_operand): New predicate.
13         * config/i386/i386.md (*extzvqi_mem_rex64): New insn pattern and
14         corresponding peephole2 pattern.
16 2016-12-27  Sandra Loosemore  <sandra@codesourcery.com>
18         * doc/cppdiropts.texi, doc/cppwarnopts.texi:  New files, split from...
19         * doc/cppopts.texi: .... here.
20         * doc/cpp.texi (Invocation): Adjust includes.
21         * doc/invoke.texi (Option Summary): Add missing preprocesor-related
22         options.  Adjust sorting and formatting.
23         (Warning Options): Include cppwarnopts.texi.
24         (Preprocessor Options): Add pointers and list the specific
25         preprocessor options from cppopts.texi first instead of last.
26         (Directory Options): Move/merge documentation of -I, -iquote, and
27         -I- to cppdiropts.texi.  Include that file here.
29 2016-12-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
31         * config/rs6000/predicates.md (const_0_to_12_operand): Rename
32         predicate and change test from 0..11 to 0..12 to match the
33         semantics of the word extract/insert instructions.  Change all
34         callers.
35         (const_0_to_11_operand): Likewise.
36         * config/rs6000/rs6000.c (altivec_expand_builtin): Likewise.
37         * config/rs6000/vsx.md (vextract4b): Likewise.
38         (vextract4b_internal): Likewise.
39         (vinsert4b): Likewise.
40         (vinsert4b_internal): Likewise.
41         (vinsert4b_di): Likewise.
42         (vinsert4b_di_internal): Likewise.
43         * config/rs6000/rs6000.md (zero_extendsi<mode>2): Fix offset used
44         in xxextractuw to zero extend the word in the vector registers.
45         (lfiwzx): Likewise.
47 2016-12-27  Uros Bizjak  <ubizjak@gmail.com>
49         * config/i386/i386.c (ix86_secondary_reload): Require QImode
50         intermediate for QImode mask register spill only for !TARGET_AVX512DQ.
51         Always use true_regnum to determine operand regno.
53 2016-12-27  Sandra Loosemore  <sandra@codesourcery.com>
55         * doc/cppopts.texi: Delete redundant documentation for -x.  Move
56         -fno-show-column documentation to...
57         * doc/invoke.texi (Diagnostic Message Formatting Options):  ...here.
58         Update the option summary.
60 2016-12-27  Uros Bizjak  <ubizjak@gmail.com>
62         * config/i386/i386.md (VI_512): Remove.
63         (vcond<V_512:mode><VI_AVX512BW:mode>): Use VI_AVX512BW
64         mode iterator instead of VI_512.
65         (vcondu<V_512:mode><VI_AVX512BW:mode>): Ditto.
67 2016-12-27  Jakub Jelinek  <jakub@redhat.com>
69         PR translation/78922
70         * config/i386/stringop.opt: Remove.
72 2016-12-27  Uros Bizjak  <ubizjak@gmail.com>
74         PR target/78904
75         * config/i386/constraints.md (Bc): New special memory constraint.
76         * config/i386/i386.md (*cmpqi_ext_1, *extvqi, *extzvqi): Use Bc
77         constraint with nonimmediate_operand to allow constant memory operands.
78         (*cmpqi_ext_3, insv<mode>_1, addqi_ext_1, *testqi_ext_1, andqi_ext_1)
79         (*<any_or:code>qi_ext_1, *xorqi_ext_1_cc): Use Bc constraint
80         with general_operand to allow constant memory operands.
82 2016-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
84         * c-family/c.opt (flag_chkp_flexible_struct_trailing_arrays):
85         Add new option.
86         (fchkp-narrow-to-innermost-array): Fix typo.
87         * doc/cpp.texi (flag_chkp_flexible_struct_trailing_arrays): Ditto.
88         * tree-chkp.c (chkp_may_narrow_to_field ): Forbid
89         narrowing when flag_chkp_flexible_struct_trailing_arrays is used
90         and the field is the last array field in the structure.
92 2016-12-27  Uros Bizjak  <ubizjak@gmail.com>
94         * config/i386/i386.md (andqi_ext_1): Use general_operand
95         predicate for operand 2.
97 2016-12-27  Uros Bizjak  <ubizjak@gmail.com>
99         PR target/78904
100         * config/i386/i386.md (*cmpqi_ext_1, *extvqi, *extzvqi): Use
101         nonimmediate_operand instead of nonimmediate_x64nomem_operand.
102         (*cmpqi_ext_3, insv<mode>_1, addqi_ext_1, *testqi_ext_1, andqi_ext_1)
103         (*<any_or:code>qi_ext_1, *xorqi_ext_1_cc): Use general_operand
104         instead of general_x64nomem_operand.
105         * config/i386/predicates.md (nonimmediate_x64nomem_operand): Remove.
106         (general_x64nomem_operand): Ditto.
108 2016-12-26  Uros Bizjak  <ubizjak@gmail.com>
110         PR target/78904
111         * config/i386/i386.md (addqi_ext_1): Canonicalize insn pattern w.r.t.
112         zero_extract RTXes.
113         (*addqi_ext_2): Ditto.
114         (testqi_ext_ccno_0): Canonicalize expander w.r.t. zero_extract RTXes.
115         (testqi_ext_1_ccno): Rename from testqi_ext_ccno_0.
116         (*testqi_ext_0): Merge with *testqi_ext_1.
117         (*testqi_ext_1): Canonicalize insn pattern w.r.t. zero_extract RTXes.
118         Update corresponding splitter.
119         (*testqi_ext_2): Canonicalize insn pattern w.r.t. zero_extract RTXes.
120         (*andqi_ext_0): Merge with *andqi_ext_1.
121         (andqi_ext_1): Canonicalize insn pattern w.r.t. zero_extract RTXes.
122         Rename from *andqi_ext_1.  Update corresponding splitter and
123         peephole2 patterns.
124         (*andqi_ext_1_cc): Rename from *andqi_ext_0_cc.
125         (*andqi_ext_2): Canonicalize insn pattern w.r.t. zero_extract RTXes.
126         (*<any_or:code>qi_ext_0): Merge with *andqi_ext_1.
127         (*<any_or:code>qi_ext_1): Canonicalize insn pattern w.r.t.
128         zero_extract RTXes.  Update corresponding splitter.
129         (*<any_or:code>qi_ext_2): Canonicalize insn pattern w.r.t.
130         zero_extract RTXes.
131         (xorqi_cc_ext_1): Canonicalize expander w.r.t. zero_extract RTXes.
132         (xorqi_ext_1_cc): Rename from xorqi_cc_ext_1.
133         (*xorqi_cc_ext_1): Canonicalize insn pattern w.r.t. zero_extract RTXes.
134         Update corresponding splitter.
135         (*xorqi_ext_1_cc): Rename from *xorqi_cc_ext_1.
136         (isinfxf2): Update calls to renamed expanders.
137         (isinf<mode>2): Ditto.
138         * config/i386/i386.c (ix86_expand_fp_compare): Ditto.
139         (ix86_emit_fp_unordered_jump): Ditto.
140         (ix86_emit_i387_round): Ditto.
142 2016-12-26  Eric Botcazou  <ebotcazou@adacore.com>
144         * doc/invoke.texi (SPARC options): Add missing documentation for -mlra.
146         * doc/cpp.texi (Invocation): Remove space in command.
148 2016-12-25  Sandra Loosemore  <sandra@codesourcery.com>
150         * doc/cpp.texi (Invocation): Revise to indicate that GCC driver
151         options are only documented in the GCC manual.
152         * doc/cppopts.texi: Delete documentation of GCC driver options
153         -o, -Wall, -Wtraditional, -Werror, -Wsystem-headers, -w,
154         -pedantic, -pedantic-errors, -std=, -ansi, --help, --target-help,
155         -v, -version.  Update -Wcomment, -Wtrigraphs, -Wundef,
156         -Wexpansion-to-defined, -Wno-endif-labels, -traditional,
157         -traditional-cpp, -trigraphs to merge text previously in GCC manual.
158         * doc/invoke.texi (Option Summary): Move -trigraphs, -traditional,
159         and -traditional-cpp from C dialect options to preprocessor options.
160         (C Dialect Options): Likewise.
161         (Warning Options): Delete documentation of -Wcomment, -Wtrigraphs,
162         -Wexpansion-to-defined, -Wundef, and -Wno-endif-labels.
164 2016-12-24  Richard Sandiford  <richard.sandiford@arm.com>
166         * tree-core.h (tree_base): Document the meaning of public_flag
167         for SSA names.
168         * tree.h (SSA_NAME_IS_VIRTUAL_OPERAND): New macro.
169         (SET_SSA_NAME_VAR_OR_IDENTIFIER): Record whether the variable
170         is a virtual operand.
171         * gimple-expr.h (virtual_operand_p): Use SSA_NAME_IS_VIRTUAL_OPERAND.
173 2016-12-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
175         * tree-pretty-print.c (dump_generic_node): Change dump format for
176         REALPART_EXPR and IMAGPART_EXPR with TDF_GIMPLE.
178 2016-12-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
180         * varasm.c (build_constant_desc): Use the alignment of the var
181         decl instead of the original expression.
183 2016-12-22  Dominik Vogt  <vogt@linux.vnet.ibm.com>
185         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
186         __S390_ARCH_LEVEL__.
188 2016-12-22  Martin Liska  <mliska@suse.cz>
190         PR tree-optimization/78886
191         * tree-ssa-strlen.c (handle_builtin_malloc): Return when LHS
192         is equal to NULL.
194 2016-12-22  Jakub Jelinek  <jakub@redhat.com>
196         PR bootstrap/78817
197         * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Revert
198         2016-12-15 change.
200 2016-12-21  Vladimir Makarov  <vmakarov@redhat.com>
202         PR rtl-optimization/78580
203         * ira-costs.c (find_costs_and_classes): Make regno_aclass
204         translated into an allocno class.
206 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
208         PR bootstrap/78817
209         * tree-pass.h (make_pass_post_ipa_warn): Declare.
210         * builtins.c (validate_arglist): Adjust get_nonnull_args call.
211         Check for NULL pointer argument to nonnull arg here.
212         (validate_arg): Revert 2016-12-14 changes.
213         * calls.h (get_nonnull_args): Remove declaration.
214         * tree-ssa-ccp.c: Include diagnostic-core.h.
215         (pass_data_post_ipa_warn): New variable.
216         (pass_post_ipa_warn): New class.
217         (pass_post_ipa_warn::execute): New method.
218         (make_pass_post_ipa_warn): New function.
219         * tree.h (get_nonnull_args): Declare.
220         * tree.c (get_nonnull_args): New function.
221         * calls.c (maybe_warn_null_arg): Removed.
222         (maybe_warn_null_arg): Removed.
223         (initialize_argument_information): Revert 2016-12-14 changes.
224         * passes.def: Add pass_post_ipa_warn after first ccp after IPA.
226 2016-12-21  Pat Haugen  <pthaugen@us.ibm.com>
228         PR rtl-optimization/11488
229         * common/config/rs6000/rs6000-common.c
230         (rs6000_option_optimization_table): Enable -fsched-pressure.
231         * config/rs6000/rs6000.c (TARGET_COMPUTE_PRESSURE_CLASSES): Define
232         target hook.
233         (rs6000_option_override_internal): Set default -fsched-pressure
234         algorithm.
235         (rs6000_compute_pressure_classes): Implement target hook.
237 2016-12-21  Bill Seurer  <seurer@linux.vnet.ibm.com>
239         PR sanitizer/65479
240         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
241         -fasynchronous-unwind-tables option when -fsanitize=address is
242         specified.
244 2016-12-21  Bernd Schmidt  <bschmidt@redhat.com>
246         PR target/71321
247         * config/i386/i386.md (lea<mode>_general_2b, lea<mode>_general_3b): New
248         patterns.
249         * config/i386/predicates.md (const123_operand): New.
251 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
252             Martin Liska  <mliska@suse.cz>
254         PR driver/78863
255         * gcc.c (driver::build_option_suggestions): Do not add
256         -fsanitize=all as a suggestion candidate.
258 2016-12-21  Alexander Monakov  <amonakov@ispras.ru>
260         PR target/78831
261         * config/nvptx/nvptx.c (init_softstack_frame): Remove assert.  Compute
262         crtl->is_leaf only if unset.  Adjust comment.
264 2016-12-21  Andrew Pinski  <apinski@cavium.com>
266         * match.pd (max:c @0 (plus@2 @0 INTEGER_CST@1)): New Pattern.
267         (min:c @0 (plus@2 @0 INTEGER_CST@1)) : New Pattern.
269 2016-12-20  James Greenhalgh  <james.greenhalghj@arm.com>
271         * common.opt (excess_precision): Tag as SetByCombined.
272         * opts.c (set_fast_math_flags): Also set
273         flag_excess_precision_cmdline.
274         (fast_math_flags_set_p): Also check flag_excess_precision_cmdline.
275         * doc/invoke.texi (-fexcess-precision): Drop text saying the
276         option has no effect under -ffast-math, make it clear that
277         -ffast-math will cause -fexcess-precision=fast by default even for
278         standards compliant modes.
279         (-ffast-math): Document that this sets -fexcess-precision=fast.
281 2016-12-20  Richard Biener  <rguenther@suse.de>
283         * passes.c (execute_one_pass): Handle going out of SSA w/o
284         hitting pass_startwith.  Handle skipping property providers.
286 2016-12-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
288         PR target/78694
289         * config/arm/arm.c (dump_minipool): Copy mp->value before emitting it
290         in the minipool to avoid invalid RTL sharing.
292 2016-12-19  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
294         * config/rs6000/rs6000-protos.h (expand_strn_compare): Declare.
295         * config/rs6000/rs6000.md (UNSPEC_CMPB): New unspec.
296         (cmpb<mode>3): pattern for generating cmpb.
297         (cmpstrnsi): pattern to expand strncmp ().
298         * config/rs6000/rs6000.opt (mstring-compare-inline-limit): Add a new
299         target option for controlling how much code inline expansion of
300         strncmp() will be allowed to generate.
301         * config/rs6000/rs6000.c (expand_strncmp_align_check): generate code
302         for runtime page crossing check of strncmp () args.
303         (expand_strn_compare): Function to do builtin expansion of strncmp ().
305 2016-12-19  David Malcolm  <dmalcolm@redhat.com>
307         * print-rtl-function.c (print_rtx_function): Update
308         example in comment to reflect current format.
310 2016-12-19  Uros Bizjak  <ubizjak@gmail.com>
312         * config/i386/i386.md (*popcounthi2_1): New insn_and_split pattern.
314 2016-12-19  Sandra Loosemore  <sandra@codesourcery.com>
316         * doc/cpp.texi: Clean up anachronistic C99 references and remove
317         discussion of very old GCC versions.
318         (Differences from previous versions): Delete entire section.
320 2016-12-19  Will Schmidt  <will_schmidt@vnet.ibm.com>
322         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
323         early expansion of vector multiply and subtract builtins.
325 2016-12-19  David Malcolm  <dmalcolm@redhat.com>
327         * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
328         non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
329         rather than using a '%' prefix.
330         * rtl-tests.c (selftest::test_dumping_regs): Update for above change.
332 2016-12-19  Dominik Vogt  <vogt@linux.vnet.ibm.com>
334         PR target/78748
335         * config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
336         only if it coincides with operand 2.
338 2016-12-19  Dominik Vogt  <vogt@linux.vnet.ibm.com>
340         * combine.c (change_zero_ext): Skip generation of redundant AND.
342 2016-12-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
344         * config/netbsd.h (LINK_EH_SPEC): Define.
346 2016-12-18  Eric Botcazou  <ebotcazou@adacore.com>
348         * lra-constraints.c (process_address): Add forward declaration.
349         (simplify_operand_subreg): In the MEM case, if the adjusted memory
350         reference is not sufficient aligned and the address was invalid,
351         reload the address before reloading the original memory reference.
352         Fix long lines and add a final return for the sake of clarity.
354 2016-12-17  Jakub Jelinek  <jakub@redhat.com>
356         PR sanitizer/78832
357         * sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
358         continue if gsi_next should be skipped.
359         (sanitize_asan_mark_poison): Remove prev variable, use continue if
360         gsi_prev should be skipped.  When removing ASAN_MARK, do gsi_prev
361         first and gsi_remove on a previously made copy of the iterator.
363 2016-12-17  Andrew Senkevich  <andrew.senkevich@intel.com>
365         * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
366         * config/i386/avx512dqintrin.h: Ditto.
367         * config/i386/avx512fintrin.h: Ditto.
368         * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
369         __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
370         __builtin_ia32_kadddi): New.
371         * config/i386/sse.md (kadd<mode>): New.
373 2016-12-17  Uros Bizjak  <ubizjak@gmail.com>
375         * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
376         and *tzcnt<mode>_1 to define_insn_and_split pattern.  Adjust split
377         condition to split after epilogue_completed.
378         (ctz<mode>2): Remove expander.
379         (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
380         define_insn_and_split pattern.  Adjust split condition to split
381         after epilogue_completed.
382         (clz<mode>2_lznct): Remove expander.
383         (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
384         *clz<mode>2 to define_insn_and_split pattern.  Adjust split
385         condition to split after epilogue_completed.
386         (<lt_zcnt>_<mode>): Remove expander.
387         (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
388         *<lt_zcnt>_<mode> to define_insn_and_split pattern.  Adjust split
389         condition to split after epilogue_completed.
390         (<lt_zcnt>_hi): New insn pattern.
391         (popcount<mode>2): Remove expander.
392         (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
393         *popcount<mode>2 to define_insn_and_split pattern.  Adjust split
394         condition to split after epilogue_completed.
395         (popcounthi2): New insn pattern.
397 2016-12-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
399         * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
400         (UNSPEC_CMPRB2): New unspec value.
401         (UNSPEC_CMPEQB): New unspec value.
402         (cmprb): New expansion.
403         (*cmprb_internal): New insn.
404         (*setb_internal): New insn.
405         (cmprb2): New expansion.
406         (*cmprb2_internal): New insn.
407         (cmpeqb): New expansion.
408         (*cmpeqb_internal): New insn.
409         * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
410         (BU_P9_64BIT_2): Likewise.
411         (BU_P9_OVERLOAD_2): Likewise.
412         (CMPRB): Add byte-in-range built-in function.
413         (CMBRB2): Add byte-in-either-range built-in function.
414         (CMPEQB): Add byte-in-set built-in function.
415         (CMPRB): Add overload support for byte-in-range function.
416         (CMPRB2): Add overload support for byte-in-either-range function.
417         (CMPEQB): Add overload support for byte-in-set built-in function.
418         * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
419         define argument types for new builtin.
420         (P9_BUILTIN_CMPRB2): Likewise.
421         (P9_BUILTIN_CMPEQB): Likewise.
422         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
423         the order of presentation for certain built-in functions
424         (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
425         (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
426         (scalar_cmp_exp_unordered, scalar_test_data_class)
427         (scalar_test_neg) to improve locality and flow.  Document
428         the new __builtin_scalar_byte_in_set,
429         __builtin_scalar_byte_in_range, and
430         __builtin_scalar_byte_in_either_range functions.
432 2016-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
434         * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
436 2016-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
438         * config/aarch64/aarch64.md: New define_split above insv<mode>.
440 2016-12-16  Jakub Jelinek  <jakub@redhat.com>
442         PR c/78408
443         * tree-ssa-ccp.c: Include tree-dfa.h.
444         (optimize_memcpy): New function.
445         (pass_fold_builtins::execute): Use it.  Remove useless conditional
446         break after BUILT_IN_VA_*.
448 2016-12-16  Marek Polacek  <polacek@redhat.com>
450         PR tree-optimization/78819
451         * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
452         Don't register an assertion if the default case shares a label with
453         another case.
455 2016-12-16  Wilco Dijkstra  <wdijkstr@arm.com>
457         * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
458         (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
459         * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
461 2016-12-16  Wilco Dijkstra  <wdijkstr@arm.com>
463         * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
465 2016-12-16  Claudiu Zissulescu  <claziss@synopsys.com>
467         * config/arc/arc.md (call_prof): Remove.
468         (call_value_prof): Likewise.
469         (sibcall_prof): Likewise.
470         (sibcall_value_prof): Likewise.
472 2016-12-16  Claudiu Zissulescu  <claziss@synopsys.com>
474         * config/arc/arc.h (LINK_SPEC): Tidy up.
475         (ENDFILE_SPEC): Likewise.
476         (LIB_SPEC): Likewise.
477         (STARTFILE_SPEC): Include gcrt0 when profiling.
478         (FUNCTION_PROFILER): Use __mcount.
479         * config/arc/arc.opt (mucb-mcount): Remove.
480         * doc/invoke.texi (ARC): Remove mucb-mcount doc.
481         * arc/arc-protos.h (arc_profile_call): Remove.
482         * config/arc/arc.c (write_profile_sections): Likewise.
483         (arc_profile_call): Likewise.
484         (unspec_prof_hash): Likewise.
485         (unspec_prof_htab_eq): Likewise.
486         (arc_legitimate_constant_p): Remove UNSPEC_PROF.
487         (arc_reorg): Remove call to write_profile_sections.
488         * config/arc/arc.md (call): Remove call to arc_profile_call.
489         (call_value): Likewise.
490         (sibcall): Likewise.
491         (sibcall_value): Likewise.
492         (define_constants): Remove UNSPEC_PROF.
494 2016-12-16  Claudiu Zissulescu  <claziss@synopsys.com>
496         * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
497         generate new mul64 insn for core multiplication work.
498         (umulsidi_600): Likewise, but use mulu64 insn.
499         (mul64): New pattern, content taken from old mulsidi_600 insn pattern.
500         (mulu64): Likewise, but using umulsidi_600.
501         (mulsidi3): Remove move to destination, this is now handled by
502         mulsidi_600 insn_and_split.
503         (umulsidi3): Likewise, but using umulsidi_600.
505 2016-12-16  Richard Biener  <rguenther@suse.de>
507         PR c++/71694
508         * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
509         (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
510         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
511         * langhooks.h (struct lang_hooks_for_types): Add
512         unit_size_without_reusable_padding.
513         * langhooks.c (lhd_unit_size_without_reusable_padding): New.
514         * stor-layout.c (finish_bitfield_representative): Use
515         unit_size_without_reusable_padding langhook to decide on the
516         last representatives size.
518 2016-12-16  Richard Biener  <rguenther@suse.de>
520         PR middle-end/71632
521         * expr.c (expand_cond_expr_using_cmove): Bail out early if
522         we end up recursing via TER.
524 2016-12-15  Martin Sebor  <msebor@redhat.com>
526         PR bootstrap/78817
527         * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
528         a pointer is non-null.
530 2016-12-15  Andrew Senkevich  <andrew.senkevich@intel.com>
532         * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
533         * config/i386/avx512dqintrin.h: Ditto.
534         * config/i386/avx512fintrin.h: Ditto.
535         * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
536         __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
537         (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
538         * config/i386/sse.md (kmov<mskmodesuffix>): New.
540 2016-12-15  Uros Bizjak  <ubizjak@gmail.com>
542         * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
543         for TARGET_BMI.
544         (ffssi2_no_cmove): Ditto.
545         (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
546         (*tzcnt<mode>_1_falsedep): New insn pattern.
548         (LT_ZCNT): New mode iterator.
549         (lt_zcnt): New mode attribute.
550         (lt_zcnt_type): New mode attribute.
551         (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
552         lzcnt_<mode> using LT_ZCNT mode iterator.
553         (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
554         *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
555         using LT_ZCNT mode iterator.
556         (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
557         *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
558         using LT_ZCNT mode iterator.
559         (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
560         and *lzcnt_<mode> using LT_ZCNT mode iterator.
561         * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
562         (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
563         Update for rename.
565 2016-12-15  Jakub Jelinek  <jakub@redhat.com>
567         * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
568         (print_ipcp_constant_value): Likewise.
569         (ipcp_cloning_candidate_p): Likewise.
570         (ipcp_bits_lattice::get_value_and_mask): Likewise.
571         (ipcp_bits_lattice::meet_with_1): Likewise.
572         (ipcp_bits_lattice::meet_with): Likewise.
573         (initialize_node_lattices): Likewise.
574         (ipcp_lattice::add_value): Likewise.
575         (propagate_vals_accross_pass_through): Renamed to ...
576         (propagate_vals_across_pass_through): ... this function.
577         (propagate_vals_accross_ancestor): Renamed to ...
578         (propagate_vals_across_ancestor): ... this.
579         (propagate_scalar_accross_jump_function): Renamed to ...
580         (propagate_scalar_across_jump_function): ... this.
581         Adjust calls to above functions.
582         (propagate_context_accross_jump_function): Renamed to ...
583         (propagate_context_across_jump_function): ... this.
584         (propagate_bits_accross_jump_function): Renamed to ...
585         (propagate_bits_accross_jump_function): ... this.  Formatting fixes.
586         (propagate_vr_accross_jump_function): Renamed to ...
587         (propagate_vr_across_jump_function): ... this.
588         (merge_agg_lats_step): Formatting fixes.
589         (propagate_constants_accross_call): Renamed to ...
590         (propagate_constants_across_call): ... this.  Adjust calls to above
591         functions.
592         (ipa_get_indirect_edge_target_1): Formatting fixes.
593         (gather_context_independent_values): Likewise.
594         (estimate_local_effects): Likewise.
595         (add_all_node_vals_to_toposort): Likewise.
596         (propagate_constants_topo): Adjust calls to above functions.
597         (get_replacement_map): Formatting fixes.
598         (dump_profile_updates): Likewise.
599         (update_profiling_info): Likewise.
600         (update_specialized_profile): Likewise.
601         (create_specialized_node): Likewise.
602         (find_more_contexts_for_caller_subset): Likewise.
603         (decide_whether_version_node): Likewise.
604         (identify_dead_nodes): Likewise.
605         (ipcp_decision_stage): Likewise.
606         (ipcp_store_bits_results): Likewise.
607         (ipcp_store_vr_results): Likewise.
608         (ipcp_driver): Likewise.
610 2016-12-15  David Malcolm  <dmalcolm@redhat.com>
612         PR preprocessor/78680
613         PR preprocessor/78811
614         * input.c (struct selftest::lexer_test): Add field
615         m_implicitly_expect_EOF.
616         (selftest::lexer_error_sink): New class.
617         (selftest::lexer_error_sink::s_singleton): New global.
618         (selftest::lexer_test::lexer_test): Initialize new field
619         "m_implicitly_expect_EOF".
620         (selftest::lexer_test::~lexer_test): Conditionalize the
621         check for the EOF token on the new field.
622         (selftest::test_lexer_string_locations_raw_string_unterminated):
623         New function.
624         (selftest::input_c_tests): Call the new test.
626 2016-12-15  Wilco Dijkstra  <wdijkstr@arm.com>
628         * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
629         * config/arm/arm.c (arm_option_check_internal): Improve comment.
630         (thumb_force_lr_save): Use crtl->is_leaf.
631         (arm_get_frame_offsets): Remove comment.  Use crtl->is_leaf.
632         (thumb_far_jump_used_p): Remove comment.
633         (arm_frame_pointer_required): Use crtl->is_leaf.
635 2016-12-15  Jakub Jelinek  <jakub@redhat.com>
637         * doc/extend.texi: Clean up @xref{...} uses.
638         * doc/invoke.texi: Likewise.
640 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
642         * arm-fpus.def: Add CNAME field to all FPU definitions.
643         * genopt.sh: Use explicit enumeration tags for FPU entries.
644         * arm-tables.opt: Regenerated.
645         * arm.opt (mfpu): Provide initial value.
646         * arm-opts.h (enum fpu_type): Build the enumeration from the list of
647         available FPUs.  Add 'auto' entry on the end.
648         * arm.c (arm_configure_build_target): Only do explicit configuration
649         of the FPU features if the selected FPU is not 'auto'.
650         (arm_option_override): Adjust initialization of arm_fpu_index.
651         Emit an error if we have a hard float ABI request, but the processor
652         does not support floating-point.
653         (arm_option_print): Handle -mfpu=auto.
654         (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
655         or function attributes.
656         (arm_identify_fpu_from_isa): Handle effective soft-float when
657         the FPU is automatically detected.
658         * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
659         (arm1176jzf-s): Likewise.
660         (mpcore): Likewise.
661         (arm1156t2f-s): Likewise.
663 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
665         * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
666         * arm.h (arm_fpu_feature_set): Delete typedef.
667         (FPU_FL_NONE): Delete.
668         (FPU_FL_NEON): Delete.
669         (FPU_FL_FP16): Delete.
670         (FPU_FL_CRYPTO): Delete.
671         (FPU_FL_DBL): Delete.
672         (FPU_FL_D32): Delete.
673         (FPU_FL_VFPv2): Delete.
674         (FPU_FL_VFPv3): Delete.
675         (FPU_FL_VFPv4): Delete.
676         (FPU_FL_VFPv5): Delete.
677         (FPU_FL_AMRv8): Delete.
678         (FPU_VFPv2): Delete.
679         (FPU_VFPv3): Delete.
680         (FPU_VFPv4): Delete.
681         (FPU_VFPv5): Delete.
682         (FPU_ARMv8): Delete.
683         (FPU_DBL): Delete.
684         (FPU_D32): Delete.
685         (FPU_NEON): Delete.
686         (FPU_CRYPTO): Delete.
687         (FPU_FP16): Delete.
688         (arm_fpu_desc): Delete features field.
689         * arm.c (all_fpus): Don't initialize feature field.
691 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
693         * arm.c (arm_can_inline_p): Use ISA features for determining
694         inlinability.
696 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
698         * arm-protos.h (arm_configure_build_target): Change second argument
699         to cl_target_options.
700         * arm.c (arm_configure_build_target): Likewise.
701         (arm_option_restore): Update accordingly.
702         (arm_option_override): Create the target_option_default_node before
703         calling arm_configure_build_target.  Use it in call of latter.
704         Resynchronize after all other overrides have been calculated.
705         (arm_valid_target_attribute_tree): Use the target options for
706         reconfiguration.  Resynchronize after performing override checks.
707         * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
708         to reconfigure the build target.
710 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
712         * arm.h (TARGET_VFPD32): Use arm_active_target.
713         (TARGET_VFP3): Likewise.
714         (TARGET_VFP5): Likewise.
715         (TARGET_VFP_SINGLE): Likewise.
716         (TARGET_VFP_DOUBLE): Likewise.
717         (TARGET_NEON_FP16): Likewise.
718         (TARGET_FP16): Likewise.
719         (TARGET_FMA): Likewise.
720         (TARGET_FPU_ARMV8): Likewise.
721         (TARGET_CRYPTO): Likewise.
722         (TARGET_NEON): Likewise.
723         (TARGET_FPU_FEATURES): Delete.
724         * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
725         Neon using arm_active_target.
727 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
729         * arm.h (TARGET_FPU_NAME): Delete.
730         * arm.c (arm_identify_fpu_from_isa): New function.
731         (arm_declare_function_name): Use it to get the name for the FPU.
733 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
735         * arm-protos.h: Include sbitmap.h
736         (arm_configure_build_target): Make public.
737         * arm.c (arm_configure_build_target): Now not static.
738         (arm_valid_target_attribute_rec): Move internal option check to...
739         (arm_valid_target_attribute_tree0: ... here.  Also reconfingure the
740         active target.
741         (arm_override_options_after_change): Call arm_configure_build_target.
742         (isa_all_fpubits): Renamed from isa_fpubits.
743         (arm_option_restore): New function.
744         (TARGET_OPTION_RESTORE): Register it.
745         (arm_configure_build_target): Initialize the FPU capability bits in
746         the isa.
747         (arm_option_override): Move the code that forces the setting of the
748         FPU option before the call to arm_configure_build_target.
749         * arm.opt (march): Mark as Save.
750         (mcpu, mtune): Likewise.
751         * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
752         after pragmas change the target options.
754 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
756         * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
757         fP_dbl, fp_d32 and fp_crypto.
758         (ISA_ALL_FPU): Add all the new bits.
759         (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
760         (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
761         * arm-fpus.def: Add ISA features to all FPUs.
762         * arm.h: (arm_fpu_desc): Add new field for ISA bits.
763         * arm.c (all_fpus): Initialize it.
764         * arm-tables.opt: Regenerated.
766 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
768         * arm.h (FPU_FL_VFPv2) New feature bit.
769         (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
770         (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
771         macros.
772         (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
773         (TARGET_FPU_REV): Delete.
774         (TARGET_VFP3): Use feature bits.
775         (TARGET_VFP5): Likewise.
776         (TARGET_FMA): Likewise.
777         (TARGET_FPU_ARMV8): Likewise.
778         (struct arm_fpu_desc): Delete rev field.
779         * arm-fpus.def: Delete REV entry, use new feature bits and macros.
780         * arm.c (all_fpus): Delete rev field.
782 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
784         * arm.h (vfp_reg_type): Delete.
785         (TARGET_FPU_REGS): Delete.
786         (arm_fpu_desc): Delete regs field.
787         (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
788         values.
789         (FPU_FL_DBL, FPU_FL_D32): Define.
790         (TARGET_VFPD32): Use feature test.
791         (TARGET_VFP_SINGLE): Likewise.
792         (TARGET_VFP_DOUBLE): Likewise.
793         * arm-fpus.def: Update all entries for new feature bits.
794         * arm.c (all_fpus): Update initializer macro.
795         (arm_can_inline_p): Remove test on fpu regs.
797 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
799         * arm.h (arm_fp_model): Delete.
801 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
803         * arm-cores.def: Remove FLAGS field from all core definitions.
804         * arm-arches.def: Likewise.
805         * arm-opts.h (enum processor_type): Remove FLAGS parameter from
806         ARM_CORES macro.
807         (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
808         * arm-protos.h (FL_*): Delete.
809         (arm_feature_set): Delete.
810         (ARM_FSET_*): Delete.
811         * arm.c (struct processors): Delete flags field.
812         (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
813         (all architectures): Likewise.
815 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
817         * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
818         Initialize it.
819         (arm_arch_core_flag): Delete flags field.
820         (arm_arch_core_flags): Don't initialize flags field.
821         * common/config/arm/arm-common.c (check_isa_bits_for): New function.
822         (arm_target_thumb_only): Use new isa bits arrays.
824 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
826         * arm-protos.h (insn_flags): Delete declaration.
827         (arm_arch7ve): Declare.
828         * arm.c (insn_flags): Delete.
829         (arm_arch7ve): New variable.
830         (arm_selected_cpu): Delete.
831         (arm_option_check_internal): Use new ISA bitmap.
832         (arm_option_override_internal): Likewise.
833         (arm_configure_build_target): Declare arm_selected_cpu locally.
834         (arm_option_override): Use new ISA bitmap.  Initialize arm_arch7ve.
835         Rearrange variable intialization by general function.
836         * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
838 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
840         * arm-builtins.c: Include sbitmap.h.
841         (def_mbuiltin): Change first parameter to a flag bit.  Use it to test
842         available features in the current target.
843         (struct builtin_description): Change type of feature field.
844         (IWMMXT_BUILTIN): Use the isa_features types.
845         (IWMMXT2_BUILTIN): Likewise.
846         (IWMMXT_BUILTIN2): Likewise.
847         (IWMMXT2_BUILTIN2): Likewise.
848         (CRC32_BUILTIN): Likewise.
849         (CRYPTO_BUILTIN): Likewise.
850         (iwmmx_builtin): Likewise.
851         (iwmmx2_builtin): Likewise.
852         (arm_iwmmxt_builtin): Check for specific feature bits.
854 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
856         * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
857         (ISA_ALL_QUIRKS): New macro.
858         * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
859         * arm.c (isa_quirkbits): New feature-list bitmap.
860         (arm_configure_build_target): Ignore quirk bits when comparing an
861         architecture feature list with a CPU feature list.
862         (arm_option_override): Initialize_isa_quirkbits.  If the user has
863         not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
864         feature if isa_quirk_cm3_ldrd appears in the isa feature list.
866 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
868         * arm.c (arm_option_override): Use arm_active_target as source of
869         information for arm_base_arch and arm_arch_name.
870         * (arm_file_start): Use arm_active_target for core name.
872 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
874         * arm.c (arm_selected_tune): Delete static variable.
875         (arm_selected_arch): Likewise.
876         (arm_configure_build_target): Declare local versions of arm_selected
877         target and arm_selected_arch.  Initialize more fields in target
878         data structure.
879         (arm_option_override): Use arm_active_target instead of
880         arm_selected_tune and arm_selected_arch.
881         (asm_file_start): Use arm_active_target.
883 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
885         * arm-protos.h (arm_build_target): New structure.
886         (arm_active_target): Declare it.
887         * arm.c (arm_active_target): New variable.
888         (bitmap_popcount): New function.
889         (feature_count): Delete.
890         (arm_initialize_isa): New function.
891         isa_fpubits): New variable.
892         (arm_configure_build_target): New function.
893         (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
894         Use arm_configure_build_target.
896 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
898         * arm-isa.h: New file.
899         * arm-protos.h: Include it.
900         * arm-arches.def: Add new ISA field to all entries.  Drop bogus
901         armv8.1-a+crc architecture.
902         * arm-cores.def: Similarly.  Group ARMv8 cores by profile.
903         * arm-opts.h (enum processor_type): Adjust for new field.
904         * arm.c (struct processors): New field 'isa_bits'.
905         (all_cores, all_architectures): Initialize new field.
906         * arm-tables.opt: Regenerated.
907         * arm-tune.md: Regenerated.
909 2016-12-15  Richard Earnshaw  <rearnsha@arm.com>
911         * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
912         tuning properties from architectural FLAGS field.
913         * arm-cores.def (ARM_CORE): Likewise.
914         * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
915         (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
916         (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
917         (FL_TUNE): Remove deleted elements.
918         (tune_flags): Convert type to unsigned int.
919         * arm.c (struct processors): Add new field tune_flags.
920         (all_cores, all_arches): Initialize it.
921         (arm_option_override): Adapt uses of tune_flags.  Use tune_flags
922         for deciding when we should have slow multiply operations.
924 2016-12-14  Martin Sebor  <msebor@redhat.com>
926         PR middle-end/78519
927         * gimple-ssa-sprintf.c (format_string): Handle null pointers.
928         (format_directive): Diagnose null pointer arguments.
929         (pass_sprintf_length::handle_gimple_call): Diagnose null destination
930         pointers.  Correct location of null format string in diagnostics.
932 2016-12-14  David Malcolm  <dmalcolm@redhat.com>
934         * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
935         (s-selftest): Add dependency on the selftests data directory.
936         * common.opt (fself-test): Rename to...
937         (fself-test=): ...this, documenting the meaning of the argument.
938         * selftest-run-tests.c (along): Likewise.
939         * selftest-run-tests.c: Include "options.h".
940         (selftest::run_tests): Initialize selftest::path_to_selftest_files
941         from flag_self_test.
942         * selftest.c (selftest::path_to_selftest_files): New global.
943         (selftest::locate_file): New function.
944         (selftest::test_locate_file): New function.
945         (selftest_c_tests): Likewise.
946         (selftest::selftest_c_tests): Call test_locate_file.
947         * selftest.h (selftest::locate_file): New decl.
948         (selftest::path_to_selftest_files): New decl.
950 2016-12-14  Andrew Pinski  <apinski@cavium.com>
952         * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
953         of the cores.
954         (thunderx): Update to include LSE by default.
955         (thunderxt88p1): New core.
956         (thunderxt88): New core.
957         (thunderxt81): New core.
958         (thunderxt83): New core.
959         * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
960         Add variant field.
961         (ALL_VARIANTS): New define.
962         (AARCH64_CORE): Support VARIANT operand.
963         (cpu_data): Likewise.
964         (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
965         Combine the arch and single core case and support variant searching.
966         * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
967         Add VARIANT operand.
968         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
969         * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
970         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
971         * config/aarch64/aarch64-tune.md: Regenerate.
972         * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
973         thunderxt88p1, thunderxt81, thunderxt83 as available options.
975 2016-12-14  Martin Jambor  <mjambor@suse.cz>
977         * omp-offload.c: Fix coding style.
978         * omp-expand.c: Likewise.
979         * omp-general.c: Likewise.
980         * omp-grid.c: Likewise.
981         * omp-low.c: Fix coding style of parts touched by the
982         previous splitting patch.
984 2016-12-14  Martin Jambor  <mjambor@suse.cz>
986         * omp-general.h: New file.
987         * omp-general.c: New file.
988         * omp-expand.h: Likewise.
989         * omp-expand.c: Likewise.
990         * omp-offload.h: Likewise.
991         * omp-offload.c: Likewise.
992         * omp-grid.c: Likewise.
993         * omp-grid.c: Likewise.
994         * omp-low.h: Include omp-general.h and omp-grid.h.  Removed includes
995         of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
996         ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
997         varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
998         tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
999         alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
1000         (omp_find_combined_for): Declare.
1001         (find_omp_clause): Renamed to omp_find_clause and moved to
1002         omp-general.h.
1003         (free_omp_regions): Renamed to omp_free_regions and moved to
1004         omp-expand.h.
1005         (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
1006         to omp-general.h.
1007         (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
1008         omp-general.h.
1009         (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
1010         moved to omp-general.h.
1011         (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
1012         omp-general.h.
1013         (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
1014         (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
1015         omp-general.c.
1016         (omp_expand_local): Moved to omp-expand.h.
1017         (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
1018         omp-expand.h.
1019         (omp_finish_file): Moved to omp-offload.h.
1020         (default_goacc_validate_dims): Renamed to
1021         oacc_default_goacc_validate_dims and moved to omp-offload.h.
1022         (offload_funcs, offload_vars): Moved to omp-offload.h.
1023         * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
1024         (omp_region): Moved to omp-expand.c.
1025         (omp_for_data_loop): Moved to omp-general.h.
1026         (omp_for_data): Likewise.
1027         (oacc_loop): Moved to omp-offload.c.
1028         (oacc_loop_flags): Moved to omp-general.h.
1029         (offload_funcs, offload_vars): Moved to omp-offload.c.
1030         (root_omp_region): Moved to omp-expand.c.
1031         (omp_any_child_fn_dumped): Likewise.
1032         (find_omp_clause): Renamed to omp_find_clause and moved to
1033         omp-general.c.
1034         (is_combined_parallel): Moved to omp-expand.c.
1035         (is_reference): Renamed to omp_is_reference and and moved to
1036         omp-general.c.
1037         (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
1038         to omp-general.c.
1039         (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
1040         and moved to omp-general.c.
1041         (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
1042         omp-general.c.
1043         (workshare_safe_to_combine_p): Moved to omp-expand.c.
1044         (omp_adjust_chunk_size): Likewise.
1045         (get_ws_args_for): Likewise.
1046         (get_base_type): Removed.
1047         (dump_omp_region): Moved to omp-expand.c.
1048         (debug_omp_region): Likewise.
1049         (debug_all_omp_regions): Likewise.
1050         (new_omp_region): Likewise.
1051         (free_omp_region_1): Likewise.
1052         (free_omp_regions): Renamed to omp_free_regions and moved to
1053         omp-expand.c.
1054         (find_combined_for): Renamed to omp_find_combined_for, made global.
1055         (build_omp_barrier): Renamed to omp_build_barrier and moved to
1056         omp-general.c.
1057         (omp_max_vf): Moved to omp-general.c.
1058         (omp_max_simt_vf): Likewise.
1059         (gimple_build_cond_empty): Moved to omp-expand.c.
1060         (parallel_needs_hsa_kernel_p): Likewise.
1061         (expand_omp_build_assign): Moved declaration to omp-expand.c.
1062         (expand_parallel_call): Moved to omp-expand.c.
1063         (expand_cilk_for_call): Likewise.
1064         (expand_task_call): Likewise.
1065         (vec2chain): Likewise.
1066         (remove_exit_barrier): Likewise.
1067         (remove_exit_barriers): Likewise.
1068         (optimize_omp_library_calls): Likewise.
1069         (expand_omp_regimplify_p): Likewise.
1070         (expand_omp_build_assign): Likewise.
1071         (expand_omp_taskreg): Likewise.
1072         (oacc_collapse): Likewise.
1073         (expand_oacc_collapse_init): Likewise.
1074         (expand_oacc_collapse_vars): Likewise.
1075         (expand_omp_for_init_counts): Likewise.
1076         (expand_omp_for_init_vars): Likewise.
1077         (extract_omp_for_update_vars): Likewise.
1078         (expand_omp_ordered_source): Likewise.
1079         (expand_omp_ordered_sink): Likewise.
1080         (expand_omp_ordered_source_sink): Likewise.
1081         (expand_omp_for_ordered_loops): Likewise.
1082         (expand_omp_for_generic): Likewise.
1083         (expand_omp_for_static_nochunk): Likewise.
1084         (find_phi_with_arg_on_edge): Likewise.
1085         (expand_omp_for_static_chunk): Likewise.
1086         (expand_cilk_for): Likewise.
1087         (expand_omp_simd): Likewise.
1088         (expand_omp_taskloop_for_outer): Likewise.
1089         (expand_omp_taskloop_for_inner): Likewise.
1090         (expand_oacc_for): Likewise.
1091         (expand_omp_for): Likewise.
1092         (expand_omp_sections): Likewise.
1093         (expand_omp_single): Likewise.
1094         (expand_omp_synch): Likewise.
1095         (expand_omp_atomic_load): Likewise.
1096         (expand_omp_atomic_store): Likewise.
1097         (expand_omp_atomic_fetch_op): Likewise.
1098         (expand_omp_atomic_pipeline): Likewise.
1099         (expand_omp_atomic_mutex): Likewise.
1100         (expand_omp_atomic): Likewise.
1101         (oacc_launch_pack): and moved to omp-general.c, made public.
1102         (OACC_FN_ATTRIB): Likewise.
1103         (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
1104         to omp-general.c.
1105         (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
1106         omp-general.c.
1107         (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
1108         moved to omp-general.c.
1109         (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
1110         omp-general.c.
1111         (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
1112         (oacc_fn_attrib_level): Moved to omp-offload.c.
1113         (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
1114         omp-general.c.
1115         (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
1116         omp-general.c.
1117         (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
1118         (grid_launch_attributes_trees): Likewise.
1119         (grid_attr_trees): Likewise.
1120         (grid_create_kernel_launch_attr_types): Likewise.
1121         (grid_insert_store_range_dim): Likewise.
1122         (grid_get_kernel_launch_attributes): Likewise.
1123         (get_target_argument_identifier_1): Likewise.
1124         (get_target_argument_identifier): Likewise.
1125         (get_target_argument_value): Likewise.
1126         (push_target_argument_according_to_value): Likewise.
1127         (get_target_arguments): Likewise.
1128         (expand_omp_target): Likewise.
1129         (grid_expand_omp_for_loop): Moved to omp-grid.c.
1130         (grid_arg_decl_map): Likewise.
1131         (grid_remap_kernel_arg_accesses): Likewise.
1132         (grid_expand_target_grid_body): Likewise.
1133         (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
1134         (build_omp_regions_1): Moved to omp-expand.c.
1135         (build_omp_regions_root): Likewise.
1136         (omp_expand_local): Likewise.
1137         (build_omp_regions): Likewise.
1138         (execute_expand_omp): Likewise.
1139         (pass_data_expand_omp): Likewise.
1140         (pass_expand_omp): Likewise.
1141         (make_pass_expand_omp): Likewise.
1142         (pass_data_expand_omp_ssa): Likewise.
1143         (pass_expand_omp_ssa): Likewise.
1144         (make_pass_expand_omp_ssa): Likewise.
1145         (grid_lastprivate_predicate): Renamed to
1146         omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
1147         (grid_prop): Moved to omp-grid.c.
1148         (GRID_MISSED_MSG_PREFIX): Likewise.
1149         (grid_safe_assignment_p): Likewise.
1150         (grid_seq_only_contains_local_assignments): Likewise.
1151         (grid_find_single_omp_among_assignments_1): Likewise.
1152         (grid_find_single_omp_among_assignments): Likewise.
1153         (grid_find_ungridifiable_statement): Likewise.
1154         (grid_parallel_clauses_gridifiable): Likewise.
1155         (grid_inner_loop_gridifiable_p): Likewise.
1156         (grid_dist_follows_simple_pattern): Likewise.
1157         (grid_gfor_follows_tiling_pattern): Likewise.
1158         (grid_call_permissible_in_distribute_p): Likewise.
1159         (grid_handle_call_in_distribute): Likewise.
1160         (grid_dist_follows_tiling_pattern): Likewise.
1161         (grid_target_follows_gridifiable_pattern): Likewise.
1162         (grid_remap_prebody_decls): Likewise.
1163         (grid_var_segment): Likewise.
1164         (grid_mark_variable_segment): Likewise.
1165         (grid_copy_leading_local_assignments): Likewise.
1166         (grid_process_grid_body): Likewise.
1167         (grid_eliminate_combined_simd_part): Likewise.
1168         (grid_mark_tiling_loops): Likewise.
1169         (grid_mark_tiling_parallels_and_loops): Likewise.
1170         (grid_process_kernel_body_copy): Likewise.
1171         (grid_attempt_target_gridification): Likewise.
1172         (grid_gridify_all_targets_stmt): Likewise.
1173         (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
1174         and moved to omp-grid.c, made public.
1175         (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
1176         omp-expand.c.
1177         (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
1178         (omp_finish_file): Likewise.
1179         (oacc_thread_numbers): Likewise.
1180         (oacc_xform_loop): Likewise.
1181         (oacc_default_dims, oacc_min_dims): Likewise.
1182         (oacc_parse_default_dims): Likewise.
1183         (oacc_validate_dims): Likewise.
1184         (new_oacc_loop_raw): Likewise.
1185         (new_oacc_loop_outer): Likewise.
1186         (new_oacc_loop): Likewise.
1187         (new_oacc_loop_routine): Likewise.
1188         (finish_oacc_loop): Likewise.
1189         (free_oacc_loop): Likewise.
1190         (dump_oacc_loop_part): Likewise.
1191         (dump_oacc_loop): Likewise.
1192         (debug_oacc_loop): Likewise.
1193         (oacc_loop_discover_walk): Likewise.
1194         (oacc_loop_sibling_nreverse): Likewise.
1195         (oacc_loop_discovery): Likewise.
1196         (oacc_loop_xform_head_tail): Likewise.
1197         (oacc_loop_xform_loop): Likewise.
1198         (oacc_loop_process): Likewise.
1199         (oacc_loop_fixed_partitions): Likewise.
1200         (oacc_loop_auto_partitions): Likewise.
1201         (oacc_loop_partition): Likewise.
1202         (default_goacc_fork_join): Likewise.
1203         (default_goacc_reduction): Likewise.
1204         (execute_oacc_device_lower): Likewise.
1205         (default_goacc_validate_dims): Likewise.
1206         (default_goacc_dim_limit): Likewise.
1207         (pass_data_oacc_device_lower): Likewise.
1208         (pass_oacc_device_lower): Likewise.
1209         (make_pass_oacc_device_lower): Likewise.
1210         (execute_omp_device_lower): Likewise.
1211         (pass_data_omp_device_lower): Likewise.
1212         (pass_omp_device_lower): Likewise.
1213         (make_pass_omp_device_lower): Likewise.
1214         (pass_data_omp_target_link): Likewise.
1215         (pass_omp_target_link): Likewise.
1216         (find_link_var_op): Likewise.
1217         (pass_omp_target_link::execute): Likewise.
1218         (make_pass_omp_target_link): Likewise.
1219         * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
1220         and omp-grid.o.
1221         (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
1222         omp-low.h.
1223         * gimple-fold.c: Include omp-general.h instead of omp-low.h.
1224         (fold_internal_goacc_dim): Adjusted calls to
1225         get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
1226         * gimplify.c: Include omp-low.h.
1227         (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
1228         its new name.
1229         (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
1230         name.
1231         (gimplify_omp_for): Likewise.
1232         * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
1233         * toplev.c: Include omp-offload.h instead of omp-low.h.
1234         * tree-cfg.c: Include omp-general.h instead of omp-low.h.  Also
1235         include omp-expand.h.
1236         (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
1237         new name.
1238         (make_edges): Adjust the call to free_omp_regions to use its new name.
1239         * tree-parloops.c: Include omp-general.h.
1240         (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
1241         its new name.
1242         (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
1243         its new name.
1244         * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
1245         (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
1246         its new name.
1247         * tree-vrp.c: Include omp-general.h instead of omp-low.h.
1248         (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
1249         get_oacc_fn_dim_size to use their new names.
1250         * varpool.c: Include omp-offload.h instead of omp-low.h.
1251         * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
1252         ifiles.
1253         * config/nvptx/nvptx.c: Include omp-general.c.
1254         (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
1255         its new name.
1256         (nvptx_reorg): Likewise.
1257         (nvptx_record_offload_symbol): Likewise.
1259 2016-12-14  Martin Sebor  <msebor@redhat.com>
1261         PR middle-end/78786
1262         * gimple-ssa-sprintf.c (target_dir_max): New macro.
1263         (get_mpfr_format_length): New function.
1264         (format_integer): Use HOST_WIDE_INT instead of int.
1265         (format_floating_max): Same.
1266         (format_floating): Call get_mpfr_format_length.
1267         (format_directive): Use target_dir_max.
1269 2016-12-14  Jakub Jelinek  <jakub@redhat.com>
1271         PR target/78791
1272         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
1273         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
1274         dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
1275         SLOT_TEMP.
1277 2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
1279         PR target/59874
1280         * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
1281         (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
1282         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
1283         (*clzhi2): Ditto.
1285 2016-12-14  Jakub Jelinek  <jakub@redhat.com>
1287         PR debug/77844
1288         * valtrack.c: Include rtl-iter.h.
1289         (struct rtx_subst_pair): Add insn field.
1290         (propagate_for_debug_subst): If pair->to contains at least 2
1291         regs, create a DEBUG_INSN with a debug temp before pair->insn
1292         and replace from with the debug temp instead of pair->to.
1293         (propagate_for_debug): Initialize p.insn.
1294         * combine.c (insn_uid_check): New inline function.
1295         (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
1296         (find_single_use, combine_instructions,
1297         cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
1298         INSN_P.
1300 2016-12-14  Martin Sebor  <msebor@redhat.com>
1302         PR c/17308
1303         * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
1304         (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
1305         (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
1306         (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
1307         (ATTR_NOTHROW_NONNULL_1_5): Same.
1308         (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
1309         (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
1310         (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
1311         (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
1312         (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
1313         (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
1314         (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
1315         * builtins.c (validate_arg): Add argument.  Treat null pointers
1316         passed to nonnull arguments as invalid.
1317         (validate_arglist): Same.
1318         * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
1319         (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
1320         (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
1321         * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
1322         (initialize_argument_information): Diagnose null pointers passed to
1323         arguments declared nonnull.
1324         * calls.h (get_nonnull_args): Declared.
1326 2016-12-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1328         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
1329         3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
1330         instructions.
1331         * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
1332         type constraint registers.
1333         (VSr3): Likewise.
1334         (FL_CONV): New mode iterator for binary floating types that have a
1335         direct conversion from 64-bit integer to floating point.
1336         (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
1337         VEXTU{B,H,W}{L,R}X extract instructions.
1338         (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
1339         extract byte position into the GPR if we are using the
1340         VEXTU{B,H,W}{L,R}X extract instructions.
1341         (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
1342         (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
1343         we can use reg+offset address instructions.
1344         (vsx_extract_<mode>_var): Support extracts to GPRs.
1345         (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
1346         insn to combine vector extracts with zero_extend.
1347         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
1348         extracting a small integer vector element and converting it to a
1349         floating point type.
1350         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
1351         (UNSPEC_XXEXTRACTUW): New unspec.
1352         (UNSPEC_XXINSERTW): Likewise.
1353         (vextract4b): Add support for the vec_vextract4b built-in
1354         function.
1355         (vextract4b_internal): Likewise.
1356         (vinsert4b): Add support for the vec_insert4b built-in function.
1357         Include both a version that inserts element 1 from a V4SI object
1358         and one that inserts a DI object.
1359         (vinsert4b_internal): Likewise.
1360         (vinsert4b_di): Likewise.
1361         (vinsert4b_di_internal): Likewise.
1362         * config/rs6000/predicates.md (const_0_to_11_operand): New
1363         predicate, match 0..11.
1364         * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1365         type to ternary, not binary.
1366         (BU_P9V_64BIT_VSX_3): Likewise.
1367         (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1368         vec_extract4b non-overloaded built-in functions.
1369         (P9V_BUILTIN_VINSERT4B): Likewise.
1370         (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1371         (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1372         3.0 built-in functions.
1373         (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1374         (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1375         vec_insert4b and vec_extract4 built-in functions.
1376         (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1377         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1378         overloaded support for vec_vinsert4b and vec_extract4b.
1379         * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1380         the vec_insert4b and vec_extract4b byte number being a constant in
1381         the range 0..11.
1382         * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1383         and vec_extract4b built-in functions.
1384         * doc/extend.doc (PowerPC VSX built-in functions): Document
1385         vec_insert4b and vec_extract4b.
1387 2016-12-14  Martin Liska  <mliska@suse.cz>
1389         * gimple-pretty-print.c (dump_probability): New function.
1390         (dump_edge_probability): Use the function.
1391         (dump_gimple_label): Likewise.
1392         (dump_gimple_bb_header): Likewise.
1394 2016-12-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1395             Jakub Jelinek  <jakub@redhat.com>
1397         * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1398         (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1400 2016-12-14  Eric Botcazou  <ebotcazou@adacore.com>
1402         * lra-constraints.c (process_address_1): Do not attempt to decompose
1403         addresses for MEMs that satisfy fixed-form constraints.
1405 2016-12-14  Richard Biener  <rguenther@suse.de>
1407         PR tree-optimization/78788
1408         * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1409         (set_and_canonicalize_value_range): Do not drop the above to
1410         VARYING.
1412 2016-12-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1414         * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1415         Adjust unaligned load cost.
1417 2016-12-13  Uros Bizjak  <ubizjak@gmail.com>
1419         PR target/78794
1420         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1421         Calculate additional gain for andnot for targets without BMI.
1423 2016-12-13  Carl Love  <cel@us.ibm.com>
1425         * config/rs6000/rs6000-c.c: Add built-in support for
1426         vector float vec_pack (vector double, vector double)
1427         vector double vec_sld (vector double, vector double)
1428         * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1429         4-bit unsigned literal.
1430         * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1431         * doc/extend.texi: Update the built-in documentation file for the
1432         new powerpc vec_pack and vec_sld built-ins.
1434 2016-12-13  Martin Liska  <mliska@suse.cz>
1436         * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1437         (sanopt_optimize): Add new argument.
1438         (sanitize_asan_mark_unpoison): New function.
1439         (maybe_contains_asan_check): Likewise.
1440         (sanitize_asan_mark_poison): Likewise.
1441         (pass_sanopt::execute): Call the new functions.
1443 2016-12-13  Martin Liska  <mliska@suse.cz>
1445         PR tree-optimization/78428
1446         * expr.c (store_constructor_field): Add new arguments to the function.
1447         (store_constructor): Set up bitregion_end and add gcc_unreachable to
1448         fields that have either non-constant size or (and) offset.
1450 2016-12-13  Marek Polacek  <polacek@redhat.com>
1452         * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1453         parameters' type from int to HOST_WIDE_INT.
1454         (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1455         int to HOST_WIDE_INT.
1456         (build_classic_dist_vector_1): Likewise.
1457         (add_multivariate_self_dist): Likewise.
1459 2016-12-13  Michael Matz  <matz@suse.de>
1461         PR tree-optimization/78725
1462         * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1463         at correct use point.
1465 2016-12-13  Martin Liska  <mliska@suse.cz>
1467         * asan.c (asan_expand_mark_ifn): Use renamed
1468         BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1469         * sanitizer.def: Likewise.
1471 2016-12-13  James Greenhalgh  <james.greenhalgh@arm.com>
1473         * doc/extend.texi (Half-Precision): Update to document current
1474         compiler behaviour.
1476 2016-12-13  James Greenhalgh  <james.greenhalgh@arm.com>
1478         * doc/extend.texi (Floating Types): Document availability of
1479         _Float16 on ARM/AArch64.
1481 2016-12-13  Richard Biener  <rguenther@suse.de>
1483         PR tree-optimization/78699
1484         * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1485         group size.
1487 2016-12-13  Richard Biener  <rguenther@suse.de>
1489         PR middle-end/78742
1490         * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1491         * tree-object-size.c (compute_builtin_object_size): Use
1492         tree_fits_shwi_p.
1493         * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1495 2016-12-13  Martin Liska  <mliska@suse.cz>
1497         * asan.c (asan_mark_poison_p): Remove.
1498         (asan_mark_p): New function.
1499         (transform_statements): Use the function.
1500         (asan_expand_mark_ifn): Do not use masked enum.
1501         * asan.h (enum asan_mark_flags): Declare it via a macro.
1502         * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1503         argument of ASAN_MARK.
1504         * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1505         (asan_poison_variable): Likewise.
1507 2016-12-13  Jakub Jelinek  <jakub@redhat.com>
1509         PR ipa/77905
1510         * ipa-pure-const.c (cdtor_p): Return true for
1511         DECL_STATIC_{CON,DE}STRUCTOR even when it is
1512         DECL_LOOPING_CONST_OR_PURE_P.
1514 2016-12-12  Jakub Jelinek  <jakub@redhat.com>
1516         PR tree-optimization/78777
1517         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1518         insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1520         PR other/78766
1521         * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1522         Formatting fix.
1524 2016-12-12  Martin Sebor  <msebor@redhat.com>
1526         PR middle-end/78622
1527         PR middle-end78606
1528         * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1529         rather than res.bounded.
1530         (get_width_and_precision): Set precision to -1 when negative.
1531         (adjust_range_for_overflow): New function.
1532         (format_integer): Correct the handling of the space, plus, and pound
1533         flags, and the special case of zero precision.
1534         Always set res.bounded to true unless either precision or width
1535         is specified and unknown.
1536         Call adjust_range_for_overflow.
1537         Avoid use zero as the shortest value when precision is specified
1538         but unknown.
1539         (format_directive): Remove vestigial quoting.  Always inform of
1540         argument value or range when it's available.
1541         (add_bytes): Correct the computation of boundrange used to
1542         decide whether a warning is of a "maybe" or "defnitely" kind.
1544 2016-12-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1546         * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1548 2016-12-12  Uros Bizjak  <ubizjak@gmail.com>
1550         PR target/78738
1551         * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1552         flag_unsafe_math_optimizations.
1553         (X87_ENABLE_FLOAT): Ditto.
1555 2016-12-12  Marek Polacek  <polacek@redhat.com>
1557         PR middle-end/78716
1558         * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1559         Case 1; check POINTER_TYPE_P instead.
1561 2016-12-12  Bernd Schmidt  <bschmidt@redhat.com>
1563         PR rtl-optimization/78669
1564         * ira.c (combine_and_move_insns): When deleting an insn, clear the
1565         replace flag for all used regs in that insn.
1567 2016-12-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1569         * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1570         arm_arch_core_flags to ...
1571         * common/config/arm/arm-common.c: There.
1573 2016-12-12  Eric Botcazou  <ebotcazou@adacore.com>
1575         * config/sparc/constraints.md (T): Use special memory constraint.
1576         (U): Minor tweak.
1577         (W): Add TARGET_ARCH64 test.
1578         * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1579         (*movdf_insn_sp32): Likewise.
1580         (*mov<VM64:mode>_insn_sp32): Likewise.  Replace 'e' with 'f' in
1581         conjunction with offsettable memory references.
1583 2016-12-11  Sandra Loosemore  <sandra@codesourcery.com>
1585         * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1586         to avoid shared structure error.
1588 2016-12-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1590         PR target/78695
1591         * config/rs6000/rs6000.c (find_alignment_op): Discard from
1592         consideration any artificial definition.
1594 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
1596         * configure.ac (CROSS directory tests): Remove the assumption that
1597         Darwin hosts contain suitable target sysroots in "/".
1598         * configure: Regenerate.
1600 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
1602         PR rtl-optimization/71496
1603         * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1604         copyable.  (load_macho_picbase_di, reload_macho_picbase_si,
1605         reload_macho_picbase_di): Likewise.
1607 2012-12-11  John David Anglin  <danglin@gcc.gnu.org>
1609         * config/pa/pa.c (pa_callee_copies): New function.
1610         * config/pa/pa.opt (mcaller-copies): New option.
1611         * doc/invoke.texi (mcaller-copies): Document option.
1613 2016-12-11  Uros Bizjak  <ubizjak@gmail.com>
1615         PR target/70799
1616         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1617         <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1618         Add FIXME comment.
1619         (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1620         constant shifts larger or equal than 32.
1622 2016-12-11  Roger Pau Monné  <roger.pau@citrix.com>
1624         * config/i386/x86-64.h: Append --32 to the assembler options when
1625         -m16 is used on non-glibc systems as well.
1627 2016-12-10  Allan Sandfeld Jensen  <allan.jensen@qt.io>
1629         PR target/70118
1630         * config/i386/mmintrin.h (__m64_u): New type
1631         * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1632         Make the allowed unaligned memory access explicit.
1634 2016-12-10  Krister Walfridsson  <krister.walfridsson@gmail.com>
1636         * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1637         Generally use cpu generic.
1639 2016-12-10  Jakub Jelinek  <jakub@redhat.com>
1640             Marc Glisse  <marc.glisse@inria.fr>
1642         PR tree-optimization/78720
1643         * match.pd (A < 0 ? C : 0): Only optimize for signed A.  If shift
1644         is negative, sign extend to @1's type and than AND with C.
1646 2016-12-10  Jakub Jelinek  <jakub@redhat.com>
1648         PR fortran/78758
1649         * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1650         non-zero low bound or non-standard element sizes.
1652         PR sanitizer/78708
1653         * lto-streamer-in.c (input_function): In addition to debug stmts
1654         without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1655         bit is not enabled.
1657 2016-12-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1659         * config/rs6000/rs6000-passes.def: New file.
1660         * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1661         * config/rs6000/rs6000.c (rs6000_option_override): Remove
1662         registration of machine-specific passes.
1663         (pass_analyze_swaps::clone): New function.
1664         * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1666 2016-12-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
1668         PR ipa/78721
1669         * ipa-cp.c (propagate_vr_accross_jump_function): Call
1670         drop_tree_overflow after fold_convert.
1672 2016-12-09  Jakub Jelinek  <jakub@redhat.com>
1674         PR target/72742
1675         * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1676         *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1677         condition.
1679 2016-12-09  Segher Boessenkool  <segher@kernel.crashing.org>
1681         PR target/78683
1682         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1683         GET_MODE_BITSIZE.  Return 2.
1684         (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE.  Return 2.  Handle
1685         TARGET_POPCNTD the same as TARGET_CTZ.
1686         * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1687         (ffs<mode>2): Reimplement.
1689 2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
1691         PR rtl-optimization/78255
1692         * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1693         NO_FUNCTION_CSE is true.
1695 2016-12-09  Cesar Philippidis  <cesar@codesourcery.com>
1697         PR ipa/78027
1698         * ipa-icf.c (sem_function::parse): Don't process functions with
1699         oacc decl attributes, as they may be OpenACC routines.
1701 2016-12-09  David Malcolm  <dmalcolm@redhat.com>
1703         * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1704         pointer.
1706 2016-12-09  Nathan Sidwell  <nathan@acm.org>
1708         PR C++/78550
1709         * convert.c (convert_to_integer_1): Maybe fold conversions to
1710         integral types with fewer bits than its mode.
1712 2016-12-09  Martin Liska  <mliska@suse.cz>
1714         * tree-pretty-print.c (pretty_print_string): Escape non-printable
1715         chars in strings.
1717 2016-12-09  Jakub Jelinek  <jakub@redhat.com>
1719         PR tree-optimization/78726
1720         * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1721         argument.  For lhs uses in debug stmts, don't replace lhs with
1722         new_lhs, but with a debug temp set to new_lhs opcode op.
1723         (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1724         OP down to make_new_ssa_for_def.
1725         (zero_one_operation): Call make_new_ssa_for_all_defs even when
1726         stmts_to_fix is empty, if *def has not changed yet.  Pass
1727         OPCODE to make_new_ssa_for_all_defs.
1729 2016-12-08  Martin Sebor  <msebor@redhat.com>
1731         PR c/78284
1732         * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1733         identifier tree nodes.
1734         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1735         (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1736         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1737         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1738         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1739         * builtins.c (expand_builtin_alloca): Call
1740         maybe_warn_alloc_args_overflow.
1741         * builtins.def (aligned_alloc, calloc, malloc, realloc):
1742         Add attribute alloc_size.
1743         (alloca): Add attribute alloc_size and returns_nonnull.
1744         * calls.h (maybe_warn_alloc_args_overflow): Declare.
1745         * calls.c (alloc_max_size, operand_signed_p): New functions.
1746         (maybe_warn_alloc_args_overflow): Define.
1747         (initialize_argument_information): Diagnose overflow in functions
1748         declared with attaribute alloc_size.
1749         * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1750         -Walloc-size-larger-than.
1752 2016-12-08  Vladimir Makarov  <vmakarov@redhat.com>
1754         PR rtl-optimization/78671
1755         * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1756         allocno class.
1758 2016-12-08  Uros Bizjak  <ubizjak@gmail.com>
1760         * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1761         (HARD_REGNO_NREGS_HAS_PADDING): Ditto.  Simplify macro.
1763 2015-12-08  Wilco Dijkstra  <wdijkstr@arm.com>
1765         PR target/78733
1766         * config/aarch64/aarch64.c (aarch64_classify_address):
1767         Set load_store_pair_p for TImode and TFmode.
1769 2016-12-08  David Malcolm  <dmalcolm@redhat.com>
1771         * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1772         regno_reg_rtx resizing logic to...
1773         (emit_status::ensure_regno_capacity): ...this new method,
1774         and ensure that the buffers are large enough.
1775         (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1776         rather than ggc_vec_alloc.
1777         * function.h (emit_status::ensure_regno_capacity): New method.
1779 2016-12-08  Dmitry Vyukov  <dvyukov@google.com>
1781         * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1782         only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1783         * doc/invoke.texi (-fsanitize=kernel-address):
1784         Don't say that it enables -fsanitize-address-use-after-scope.
1786 2016-12-08  Bin Cheng  <bin.cheng@arm.com>
1788         PR middle-end/78684
1789         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1790         sign bit for index step of data reference.
1792 2016-12-08  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1794         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1795         Handle SYMBOL_SMALL_TLSGD for ILP32.
1796         * config/aarch64/aarch64.md : tlsgd_small modified into
1797         tlsgd_small_<mode> to support SImode and DImode.
1798         *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1799         DImode.
1801 2016-12-08  Andrew Pinski  <apinski@cavium.com>
1803         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1804         Access the lower part of RTX appropriately.
1806 2016-12-07  David Malcolm  <dmalcolm@redhat.com>
1808         * genpreds.c (write_tm_constrs_h): Update for renaming of
1809         rtx_reader_ptr to md_reader_ptr.
1810         (write_tm_preds_h): Likewise.
1811         (write_insn_preds_c): Likewise.
1812         * read-md.c (rtx_reader_ptr): Rename to...
1813         (md_reader_ptr): ...this, and convert from an
1814         rtx_reader * to a md_reader *.
1815         (rtx_reader::set_md_ptr_loc): Rename to...
1816         (md_reader::set_md_ptr_loc): ...this.
1817         (rtx_reader::get_md_ptr_loc): Rename to...
1818         (md_reader::get_md_ptr_loc): ...this.
1819         (rtx_reader::copy_md_ptr_loc): Rename to...
1820         (md_reader::copy_md_ptr_loc): ...this.
1821         (rtx_reader::fprint_md_ptr_loc): Rename to...
1822         (md_reader::fprint_md_ptr_loc): ...this.
1823         (rtx_reader::print_md_ptr_loc): Rename to...
1824         (md_reader::print_md_ptr_loc): ...this.
1825         (rtx_reader::join_c_conditions): Rename to...
1826         (md_reader::join_c_conditions): ...this.
1827         (rtx_reader::fprint_c_condition): ...this.
1828         (rtx_reader::print_c_condition): Rename to...
1829         (md_reader::print_c_condition): ...this.
1830         (fatal_with_file_and_line):  Update for renaming of
1831         rtx_reader_ptr to md_reader_ptr.
1832         (rtx_reader::require_char): Rename to...
1833         (md_reader::require_char): ...this.
1834         (rtx_reader::require_char_ws): Rename to...
1835         (md_reader::require_char_ws): ...this.
1836         (rtx_reader::require_word_ws): Rename to...
1837         (md_reader::require_word_ws): ...this.
1838         (rtx_reader::read_char): Rename to...
1839         (md_reader::read_char): ...this.
1840         (rtx_reader::unread_char): Rename to...
1841         (md_reader::unread_char): ...this.
1842         (rtx_reader::peek_char): Rename to...
1843         (md_reader::peek_char): ...this.
1844         (rtx_reader::read_name): Rename to...
1845         (md_reader::read_name): ...this.
1846         (rtx_reader::read_escape): Rename to...
1847         (md_reader::read_escape): ...this.
1848         (rtx_reader::read_quoted_string): Rename to...
1849         (md_reader::read_quoted_string): ...this.
1850         (rtx_reader::read_braced_string): Rename to...
1851         (md_reader::read_braced_string): ...this.
1852         (rtx_reader::read_string): Rename to...
1853         (md_reader::read_string): ...this.
1854         (rtx_reader::read_skip_construct): Rename to...
1855         (md_reader::read_skip_construct): ...this.
1856         (rtx_reader::handle_constants): Rename to...
1857         (md_reader::handle_constants): ...this.
1858         (rtx_reader::traverse_md_constants): Rename to...
1859         (md_reader::traverse_md_constants): ...this.
1860         (rtx_reader::handle_enum): Rename to...
1861         (md_reader::handle_enum): ...this.
1862         (rtx_reader::lookup_enum_type): Rename to...
1863         (md_reader::lookup_enum_type): ...this.
1864         (rtx_reader::traverse_enum_types): Rename to...
1865         (md_reader::traverse_enum_types): ...this.
1866         (rtx_reader::rtx_reader): Rename to...
1867         (md_reader::md_reader): ...this, and update for renaming of
1868         rtx_reader_ptr to md_reader_ptr.
1869         (rtx_reader::~rtx_reader): Rename to...
1870         (md_reader::~md_reader): ...this, and update for renaming of
1871         rtx_reader_ptr to md_reader_ptr.
1872         (rtx_reader::handle_include): Rename to...
1873         (md_reader::handle_include): ...this.
1874         (rtx_reader::handle_file): Rename to...
1875         (md_reader::handle_file): ...this.
1876         (rtx_reader::handle_toplevel_file): Rename to...
1877         (md_reader::handle_toplevel_file): ...this.
1878         (rtx_reader::get_current_location): Rename to...
1879         (md_reader::get_current_location): ...this.
1880         (rtx_reader::add_include_path): Rename to...
1881         (md_reader::add_include_path): ...this.
1882         (rtx_reader::read_md_files): Rename to...
1883         (md_reader::read_md_files): ...this.
1884         * read-md.h (class rtx_reader): Split into...
1885         (class md_reader): ...new class.
1886         (rtx_reader_ptr): Rename to...
1887         (md_reader_ptr): ...this, and convert to a md_reader *.
1888         (class noop_reader): Update base class to be md_reader.
1889         (class rtx_reader): Reintroduce as a subclass of md_reader.
1890         (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1891         (read_char): Update for renaming of rtx_reader_ptr to
1892         md_reader_ptr.
1893         (unread_char): Likewise.
1894         * read-rtl.c (rtx_reader_ptr): New global.
1895         (rtx_reader::apply_iterator_to_string): Rename to...
1896         (md_reader::apply_iterator_to_string): ...this.
1897         (rtx_reader::copy_rtx_for_iterators): Rename to...
1898         (md_reader::copy_rtx_for_iterators): ...this.
1899         (rtx_reader::read_conditions): Rename to...
1900         (md_reader::read_conditions): ...this.
1901         (rtx_reader::record_potential_iterator_use): Rename to...
1902         (md_reader::record_potential_iterator_use): ...this.
1903         (rtx_reader::read_mapping): Rename to...
1904         (md_reader::read_mapping): ...this.
1905         (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1906         read_rtx_code.
1907         (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1908         than directly accessing m_string_obstack.
1909         (rtx_reader::rtx_reader): New ctor.
1910         (rtx_reader::~rtx_reader): New dtor.
1912 2016-12-07  Martin Sebor  <msebor@redhat.com>
1914         PR middle-end/77784
1915         PR middle-end/78149
1916         PR middle-end/78138
1918         * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1919         functions.
1920         (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1921         (check_memop_sizes): Same.
1922         (expand_builtin_memcpy): Call check memop_sizes.
1923         (expand_builtin_mempcpy): Same.
1924         (expand_builtin_memset): Same,
1925         (expand_builtin_bzero): Same.
1926         (expand_builtin_memory_chk): Call check_sizes.
1927         (expand_builtin_strcpy): Same.
1928         (expand_builtin_strncpy): Same.
1929         (maybe_emit_sprintf_chk_warning): Same.
1930         (expand_builtin): Handle strcat and strncat.
1931         (fini_object_sizes): Reset pointers.
1932         (compute_object_size): New function.
1933         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1934         Avoid issuing warnings also issued during built-in expansion.
1935         * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1937 2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
1939         PR target/72717
1940         * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1941         V2DImode elements are SUBREG's convert the result into DImode
1942         rather than failing in emit_move_insn.
1944 2016-12-07  Jakub Jelinek  <jakub@redhat.com>
1946         * builtins.c (fold_builtin_strstr): Removed.
1947         (fold_builtin_2): Don't call fold_builtin_strstr.
1948         * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1949         earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1950         (gimple_fold_builtin_strstr): New function.
1951         (gimple_fold_builtin): Call it.
1952         * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1954         PR c++/78692
1955         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1956         var to lhs of new_stmt right before noreturn handling rather than to
1957         lhs of e->call_stmt early.
1959 2016-12-07  David Malcolm  <dmalcolm@redhat.com>
1961         * read-md.c (rtx_reader::require_char): New method.
1962         (require_char_ws): Convert from function to...
1963         (rtx_reader::require_char_ws): ...method.
1964         (rtx_reader::require_word_ws): New method.
1965         * read-md.h (rtx_reader::require_char): New method decl.
1966         (require_char_ws): Remove global decl in favor of...
1967         (rtx_reader::require_char_ws): ...new method decl.
1968         (rtx_reader::require_word_ws): New method decl.
1969         (rtx_reader::peek_char): New method decl.
1971 2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1973         PR rtl-optimization/78617
1974         * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1975         registers, also setting hard registers mapped to pseudo registers.
1977 2016-12-07  David Malcolm  <dmalcolm@redhat.com>
1979         * cfgexpand.c (pass_expand::execute): Move stack initializations
1980         to rtl_data::init_stack_alignment and call it.
1981         * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1982         * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1984 2016-12-07  Wilco Dijkstra  <wdijkstr@arm.com>
1986         * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1987         (ira): Move initialization of crtl->is_leaf earlier.
1989 2016-12-07  Wilco Dijkstra  <wdijkstr@arm.com>
1991         * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1992         (movtf_aarch64): Likewise.
1993         * config/aarch64/aarch64.c (aarch64_classify_address):
1994         Use correct intersection of offsets.
1995         (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1996         (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1997         Use 7-bit signed scaled mode for modes > 16 bytes.
1999 2016-12-07  James Greenhalgh  <james.greenhalgh@arm.com>
2001         PR rtl-optimization/78561
2002         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
2003         constant_pool_empty_p in place of get_pool_size_upper_bound.
2004         (rs6000_stack_info): Likewise.
2005         (rs6000_emit_prologue): Likewise.
2006         (rs6000_elf_declare_function_name): Likewise.
2007         (rs6000_set_up_by_prologue): Likewise.
2008         (rs6000_can_eliminate): Likewise.
2009         * output.h (get_pool_size_upper_bound): Delete.
2010         (constant_pool_empty_p): New.
2011         * varasm.c (get_pool_size_upper_bound): Delete
2012         (constant_pool_empty_p): New.
2014 2016-12-07  Bin Cheng  <bin.cheng@arm.com>
2016         PR tree-optimization/78691
2017         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
2018         Require integral type for the outer expression.
2020 2016-12-07  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2022         * config/aarch64/aarch64.c
2023         (aarch64_builtin_support_vector_misalignment): New.
2024         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
2026 2016-12-06  David Malcolm  <dmalcolm@redhat.com>
2028         PR bootstrap/78705
2029         * config/i386/i386.c (ix86_test_dumping_memory_blockage):
2030         Conditionalize the string comparison on Pmode == DImode.
2032 2016-12-06  Tom de Vries  <tom@codesourcery.com>
2034         PR tree-optimization/67955
2035         * tree-ssa-alias.c (same_addr_size_stores_p): New function.
2036         (stmt_kills_ref_p): Use it.
2038 2016-12-06  Eric Botcazou  <ebotcazou@adacore.com>
2040         PR middle-end/78700
2041         * calls.c (expand_call): Move back call to prepare_call_address.
2043 2016-12-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2045         PR target/78658
2046         * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
2047         ?* constraints for the ISA 3.0 patterns, so the register allocator
2048         is more likely to allocate QImode/HImode to vector registers for
2049         conversion to floating point unless a reload is needed.
2050         (zero_extendhi<mode>2): Likewise.
2051         (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
2052         first alternative which is converting QImode/HImode to floating
2053         point and the QImode/HImode value is in a vector register, and
2054         does not allocate the second pseudo register.  Remove zero
2055         extending into traditional floating point registers, since the
2056         instruction used only works on traditional altivec registers.
2057         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2059 2016-12-06  David Malcolm  <dmalcolm@redhat.com>
2061         * config/i386/i386.c: Include print-rtl.h.
2062         (selftest::ix86_test_dumping_memory_blockage): New function.
2063         (selftest::ix86_run_selftests): Call it.
2064         * print-rtl-function.c (print_rtx_function): Create an
2065         rtx_reuse_manager and use it.
2066         * print-rtl.c: Include "rtl-iter.h".
2067         (rtx_writer::rtx_writer): Add reuse_manager param.
2068         (rtx_reuse_manager::rtx_reuse_manager): New ctor.
2069         (uses_rtx_reuse_p): New function.
2070         (rtx_reuse_manager::preprocess): New function.
2071         (rtx_reuse_manager::has_reuse_id): New function.
2072         (rtx_reuse_manager::seen_def_p): New function.
2073         (rtx_reuse_manager::set_seen_def): New function.
2074         (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
2075         prefix the first time in_rtx is seen, and print reuse_rtx
2076         subsequently.
2077         (print_inline_rtx): Supply NULL for new reuse_manager param.
2078         (debug_rtx): Likewise.
2079         (print_rtl): Likewise.
2080         (print_rtl_single): Likewise.
2081         (rtx_writer::print_rtl_single_with_indent): Likewise.
2082         * print-rtl.h: Include bitmap.h when building for host.
2083         (rtx_writer::rtx_writer): Add reuse_manager param.
2084         (rtx_writer::m_rtx_reuse_manager): New field.
2085         (class rtx_reuse_manager): New class.
2086         * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
2087         param and use it when constructing rtx_writer.
2088         (selftest::test_dumping_rtx_reuse): New function.
2089         (selftest::rtl_tests_c_tests): Call it.
2090         * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
2091         (selftest::assert_rtl_dump_eq): Add reuse_manager param.
2092         (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
2093         (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
2095 2016-12-06  Vladimir Makarov  <vmakarov@redhat.com>
2097         PR target/77761
2098         * lra-lives.c (process_bb_lives): Update biggest mode for
2099         implicitly used hard reg.
2101 2016-12-06  Uros Bizjak  <ubizjak@gmail.com>
2103         * config/i386/predicates.md (general_gr_operand): New predicate.
2104         * config/i386/i386.md (TImode and DImode push_operand splitter):
2105         Use general_gr_operand.  Macroize using DWI mode macro.
2106         (TImode and DImode nonimmediate_operand splitter): Use
2107         nonimmediate_gr_operand and general_gr_operand.  Macroize using
2108         DWI mode macro.
2109         (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
2110         (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
2111         and general_gr_operand.
2112         (XFmode nonimmediate_operand splitter): Ditto.
2113         (DFmode nonimmediate_operand splitter): Ditto.
2114         * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
2116 2016-12-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2118         * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
2119         alphabetical order with respect to other ARMv8 processors.
2120         * config/arm/arm-tables.opt: Regenerate.
2121         * config/arm/arm-tune.md: Likewise.
2123 2016-12-06  Robert Suchanek  <robert.suchanek@imgtec.com>
2125         * config/mips/mips.c (mips_expand_builtin_insn): Check input
2126         ranges of literal integer arguments.
2128 2016-12-06  Aldy Hernandez  <aldyh@redhat.com>
2130         PR middle-end/78548
2131         * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
2132         destroy_predicate_vecs.
2133         (uninit_uses_cannot_happen): Make uninit_preds a scalar.
2135 2016-12-06  Aldy Hernandez  <aldyh@redhat.com>
2137         PR middle-end/78566
2138         * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
2139         argument type to a pred_chain.
2140         (can_chain_union_be_invalidated_p): Use pred_chain instead of a
2141         worklist.
2142         (flatten_out_predicate_chains): Remove.
2143         (uninit_uses_cannot_happen): Rename from
2144         uninit_ops_invalidate_phi_use.
2145         Change logic so that we are checking that the PHI use will
2146         invalidate _ALL_ possibly uninitialized operands.
2147         (is_use_properly_guarded): Rename call to
2148         uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
2150 2016-12-06  Tamar Christina  <tamar.christina@arm.com>
2152         * gcc/config/aarch64/arm_neon.h
2153         (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
2154         (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
2155         (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
2156         (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
2157         (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
2158         (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
2159         (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
2160         (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
2161         (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
2162         (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
2163         (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
2164         (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
2165         (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
2166         (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
2168 2016-12-06  Jakub Jelinek  <jakub@redhat.com>
2170         PR c++/71537
2171         * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
2172         plus offset is non-zero.  For maybe_nonzero_address decl base0,
2173         require indirect_base0.
2175         PR c++/71537
2176         * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
2177         (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
2178         case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
2179         (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise.  If s2 is 0
2180         and arguments have no side-effects, return 0.
2181         (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
2183         PR c++/71537
2184         * fold-const-call.c (fold_const_call): Handle
2185         CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
2187         PR tree-optimization/78675
2188         * tree-vect-loop.c (vectorizable_live_operation): For
2189         VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
2190         instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
2192 2016-12-06  Eric Botcazou  <ebotcazou@adacore.com>
2194         PR middle-end/78642
2195         * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
2196         (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
2197         (copy_insn_1) <CLOBBER>: Likewise.
2199 2016-12-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2201         PR target/78688
2202         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
2203         instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
2204         comparing signed to unsigned values.
2205         (FUNCTION_ARG_REGNO_P): Likewise.
2207 2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2208             Stefan Freudenberger  <stefan@reservoir.com>
2210         PR tree-optimization/78646
2211         * gimple-ssa-strength-reduction.c (replace_ref): The pointer
2212         addition used for the memory base expression should have the type
2213         of the candidate.
2215 2016-12-05  Waldemar Brodkorb  <wbx@openadk.org>
2217         PR target/71721
2218         * config.gcc (*-*-uclinux*): Enable posix threads.
2220 2016-12-05  Andrew Senkevich  <andrew.senkevich@intel.com>
2222         * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
2223         * config/i386/avx512dqintrin.h: Ditto.
2224         * config/i386/avx512fintrin.h: Ditto.
2225         * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
2226         UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
2227         UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
2228         UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
2229         UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
2230         UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
2231         function types.
2232         * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
2233         __builtin_ia32_knotsi, __builtin_ia32_knotdi,
2234         __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
2235         __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
2236         __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
2237         __builtin_ia32_kxordi, __builtin_ia32_kandqi,
2238         __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
2239         __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
2240         * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
2242 2016-12-05  Segher Boessenkool  <segher@kernel.crashing.org>
2244         * combine.c: Revert r243162.
2246 2016-12-05  Paolo Bonzini  <bonzini@gnu.org>
2248         * match.pd: Simplify X ? C : 0 where C is a power of 2 and
2249         X tests a single bit.
2251 2016-12-05  Nathan Sidwell  <nathan@acm.org>
2253         * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
2254         (diagnostic_action_after_output): ... here.
2255         (diagnostic_report_diagnostic): Call it for non-notes.
2256         * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
2257         (diagnostic_check_max_errors): Declare.
2259 2016-12-05  Cupertino Miranda  <cmiranda@synopsys.com>
2261         * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
2262         (ENDFILE_SPEC): Likewise.
2264 2016-12-05  Claudiu Zissulescu  <claziss@synopsys.com>
2266         * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
2267         * config/arc/arc.c (arc_unspec_offset): New function.
2268         (arc_finalize_pic): Change.
2269         (arc_emit_call_tls_get_addr): Likewise.
2270         (arc_legitimize_tls_address): Likewise.
2271         (arc_legitimize_pic_address): Likewise.
2272         (insn_is_tls_gd_dispatch): Remove.
2273         * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
2274         * config/arc/arc.md (ls_gd_load): Remove unused pattern.
2275         (tls_gd_dispatch): Likewise.
2277 2016-12-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2279         * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
2280         location.
2282 2016-12-05  Eric Botcazou  <ebotcazou@adacore.com>
2284         * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
2285         (sparc_split_reg_mem_legitimate): ...this.
2286         (sparc_split_reg_mem): Declare.
2287         (sparc_split_mem_reg): Likewise.
2288         (sparc_split_regreg_legitimate): Rename to...
2289         (sparc_split_reg_reg_legitimate): ...this.
2290         * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
2291         (sparc_split_reg_mem_legitimate): ...this.
2292         (sparc_split_reg_mem): New function.
2293         (sparc_split_mem_reg): Likewise.
2294         (sparc_split_regreg_legitimate): Rename to...
2295         (sparc_split_reg_reg_legitimate): ...this.
2296         (sparc_split_reg_reg): New function.
2297         * config/sparc/sparc.md (lra): Remove "none" value.
2298         (enabled): Adjust to above change.
2299         (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
2300         (DImode splitters): Adjust to above renamings and use new functions.
2301         (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
2302         (DFmode splitters): Adjust to above renamings and use new functions.
2303         (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
2304         constraint in conjunction with e.
2305         (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
2306         alternative and reorder others.
2307         (VM64:mode splitters): Adjust to above renamings and use new functions.
2309 2016-12-04  Martin Sebor  <msebor@redhat.com>
2311         PR c/78668
2312         * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
2313         identifier tree nodes.
2314         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
2315         (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
2316         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
2317         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
2318         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
2319         * builtins.def (aligned_alloc, calloc, malloc, realloc):
2320         Add attribute alloc_size.
2321         (alloca): Add attribute alloc_size and returns_nonnull.
2323 2016-12-04  Uros Bizjak  <ubizjak@gmail.com>
2325         PR target/70322
2326         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
2327         (dimode_scalar_chain::compute_convert_gain): Ditto.
2328         (dimode_scalar_chain::convert_insn): Ditto.
2330 2016-12-03  Eric Botcazou  <ebotcazou@adacore.com>
2332         * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
2333         cases to build a lowpart SUBREG.
2335 2016-12-03  Eric Botcazou  <ebotcazou@adacore.com>
2336             David S. Miller  <davem@davemloft.net>
2338         * config/sparc/constraints.md (U): Adjust comment.
2339         * config/sparc/sparc.md (lra): New attribute.
2340         (enabled): For base instructions, if the lra attribute is set,
2341         return 1 if it is in keeping with TARGET_LRA.
2342         (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
2343         constraint and duplicate them with U replaced by r.
2344         (*movdf_insn_sp32): Likewise.
2345         (*mov<VM64:mode>_insn_sp32): Likewise.
2346         (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
2348 2016-12-02  Jeff Law  <law@redhat.com>
2350         * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
2351         variable main_variant.
2353 2016-12-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2355         * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
2356         default on PowerPC linux systems.
2358 2016-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
2360         PR rtl-optimization/78638
2361         * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2362         GET_MODE (op).  Fix this.
2364 2016-12-02  David Malcolm  <dmalcolm@redhat.com>
2366         PR bootstrap/78616
2367         * selftest.c (selftest::assert_strndup_eq): Rename to...
2368         (selftest::assert_xstrndup_eq): ...this, and remove call to
2369         strndup.
2370         (selftest::test_strndup): Rename to...
2371         (selftest::test_xstrndup): ...this, updating for above renaming.
2372         (selftest::test_libiberty): Update for renaming.
2374 2016-12-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2376         PR target/78639
2377         * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2378         subversion id 242679 that causes the wrong store instruction to be
2379         generated if a DImode is in an Altivec register using REG+REG
2380         addressing.
2382 2016-12-02  Uros Bizjak  <ubizjak@gmail.com>
2384         PR target/70322
2385         * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2386         and corresponding post-reload splitter.
2388 2016-12-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2390         * config/aarch64/aarch64.h (machine_function): Add
2391         reg_is_wrapped_separately field.
2392         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2393         * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2394         rtx_insn *.
2395         (aarch64_save_callee_saves): Don't save registers that are wrapped
2396         separately.
2397         (aarch64_restore_callee_saves): Don't restore registers that are
2398         wrapped separately.
2399         (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2400         aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2401         (aarch64_get_separate_components): New function.
2402         (aarch64_get_next_set_bit): Likewise.
2403         (aarch64_components_for_bb): Likewise.
2404         (aarch64_disqualify_components): Likewise.
2405         (aarch64_emit_prologue_components): Likewise.
2406         (aarch64_emit_epilogue_components): Likewise.
2407         (aarch64_set_handled_components): Likewise.
2408         (aarch64_process_components): Likewise.
2409         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2410         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2411         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2412         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2413         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2414         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2416 2016-12-02  Martin Jambor  <mjambor@suse.cz>
2418         * passes.def: Move pass_rebuild_cgraph_edges to the end of
2419         pass_build_ssa_passes.
2421 2016-12-02  Uros Bizjak  <ubizjak@gmail.com>
2423         * config/alpha/alpha.md (exception_receiver): Copy
2424         alpha_gp_ave_rtx return value.
2426 2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
2428         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2429         for several include directories that may be relative to sysroot.
2430         * config/i386/x-mingw32 (gplus_includedir): Define.
2431         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2432         (native_system_includedir): Likewise.
2433         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2434         override if TARGET_SYSTEM_ROOT is defined.
2435         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2437 2016-12-02  Jakub Jelinek  <jakub@redhat.com>
2439         PR target/70322
2440         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2441         (dimode_scalar_chain::compute_convert_gain): Likewise.
2442         (dimode_scalar_chain::convert_insn): Likewise.
2443         * config/i386/i386.md (*one_cmpldi2_doubleword): New
2444         define_insn_and_split.
2445         (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2447         PR target/78614
2448         * rtl.c (copy_rtx): Don't clear used flag here.
2449         (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2450         is shareable.
2451         * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2452         'E' in format, copy all vectors.
2453         * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2454         * valtrack.c (cleanup_auto_inc_dec): Likewise.
2455         * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2457 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2458             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2460         * config/arm/arm-builtins.c (arm_builtins): Define
2461         ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2462         (bdesc_2arg): Add line for cmse_nonsecure_caller.
2463         (arm_init_builtins): Handle cmse_nonsecure_caller.
2464         (arm_expand_builtin): Likewise.
2465         * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2467 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2468             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2470         * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2471         (cmse_nonsecure_call_clear_caller_saved): New.
2472         (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2473         (arm_function_ok_for_sibcall): Disable sibcalls for
2474         cmse_nonsecure_call.
2475         * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2476         * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2477         (call_value): Likewise.
2478         (nonsecure_call_internal): New.
2479         (nonsecure_call_value_internal): New.
2480         * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2481         (*nonsecure_call_value_reg_thumb1_v5): New.
2482         * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2483         (*nonsecure_call_value_reg_thumb2): New.
2484         * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2486 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2487             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2489         * config/arm/arm.c (gimplify.h): New include.
2490         (arm_handle_cmse_nonsecure_call): New.
2491         (arm_attribute_table): Added cmse_nonsecure_call.
2492         (arm_comp_type_attributes): Deny compatibility of function types
2493         with without the cmse_nonsecure_call attribute.
2494         * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2496 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2497             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2499         * config/arm/arm.c (output_return_instruction): Clear
2500         registers.
2501         (thumb2_expand_return): Likewise.
2502         (thumb1_expand_epilogue): Likewise.
2503         (thumb_exit): Likewise.
2504         (arm_expand_epilogue): Likewise.
2505         (cmse_nonsecure_entry_clear_before_return): New.
2506         (comp_not_to_clear_mask_str_un): New.
2507         (compute_not_to_clear_mask): New.
2508         * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2509         * config/arm/thumb2.md (*thumb2_return): Disable for
2510         cmse_nonsecure_entry functions.
2511         (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2512         cmse_nonsecure_entry functions.
2514 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2515             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2517         * config/arm/arm.c (use_return_insn): Change to return with  bxns
2518         when cmse_nonsecure_entry.
2519         (output_return_instruction): Likewise.
2520         (arm_output_function_prologue): Likewise.
2521         (thumb_pop): Likewise.
2522         (thumb_exit): Likewise.
2523         (thumb2_expand_return): Assert that entry functions always have simple
2524         returns.
2525         (arm_expand_epilogue): Handle entry functions.
2526         (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2527         (arm_asm_declare_function_name): New.
2528         * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2529         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2530         use arm_asm_declare_function_name.
2532 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2533             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2535         * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2536         (arm_attribute_table): Added cmse_nonsecure_entry
2537         (arm_compute_func_type): Handle cmse_nonsecure_entry.
2538         (cmse_func_args_or_return_in_stack): New.
2539         (arm_handle_cmse_nonsecure_entry): New.
2540         * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2541         (IS_CMSE_ENTRY): Likewise.
2542         * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2544 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2545             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2547         * config.gcc (extra_headers): Added arm_cmse.h.
2548         * config/arm/arm-arches.def (ARM_ARCH):
2549         (armv8-m): Add FL2_CMSE.
2550         (armv8-m.main): Likewise.
2551         (armv8-m.main+dsp): Likewise.
2552         * config/arm/arm-c.c
2553         (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2554         * config/arm/arm-flags.h: Define FL2_CMSE.
2555         * config/arm.c (arm_arch_cmse): New.
2556         (arm_option_override): New error for unsupported cmse target.
2557         * config/arm/arm.h (arm_arch_cmse): New.
2558         * config/arm/arm.opt (mcmse): New.
2559         * config/arm/arm_cmse.h: New file.
2560         * doc/invoke.texi (ARM Options): Add -mcmse.
2561         * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2562         * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2564 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
2566         * config/avr/avr.c: Fix coding rule glitches.
2568 2016-12-02  Martin Jambor  <mjambor@suse.cz>
2570         * hsa.c (hsa_callable_function_p): Return false for artificial
2571         functions.
2573 2016-12-02  James Greenhalgh  <james.greenhalgh@arm.com>
2575         PR rtl-optimization/78561
2576         * varasm.c (recompute_pool_offsets): New.
2577         (output_constant_pool): Call it.
2579 2016-12-02  James Greenhalgh  <james.greenhalgh@arm.com>
2581         PR rtl-optimization/78561
2582         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2583         get_pool_size to get_pool_size_upper_bound.
2584         (rs6000_stack_info): Likewise.
2585         (rs6000_emit_prologue): Likewise.
2586         (rs6000_elf_declare_function_name): Likewise.
2587         (rs6000_set_up_by_prologue): Likewise.
2588         (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2589         * output.h (get_pool_size): Rename to...
2590         (get_pool_size_upper_bound): ...This.
2591         * varasm.c (get_pool_size): Rename to...
2592         (get_pool_size_upper_bound): ...This.
2594 2016-12-02  Bin Cheng  <bin.cheng@arm.com>
2596         * match.pd: Add new pattern:
2597         (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2599 2016-12-02  Nathan Sidwell  <nathan@acm.org>
2601         * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2602         braces.
2604 2016-12-02  Aldy Hernandez  <aldyh@redhat.com>
2606         PR middle-end/78328
2607         * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2608         VR_ANTI_RANGE.
2610 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2612         * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2613         problem.
2615 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
2617         * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2618         * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2619         * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2620         * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2621         avr_mcu_types.flash_size to compute default value.
2622         * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2623         mcu->flash_size to compute value for spec.
2625 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
2627         * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2628         * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2629         about linker description to avoid progmem altogether.
2630         [absdata]: Point to -mabsdata option.
2632 2016-12-02  Jakub Jelinek  <jakub@redhat.com>
2634         PR rtl-optimization/78547
2635         * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2636         DECL_INCOMING_RTL is not shared.
2637         * config/i386/i386.c (convert_scalars_to_vectors): If any
2638         insns have been converted, adjust all parameter's DEC_RTL and
2639         DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2640         TImode.
2642         PR rtl-optimization/78575
2643         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2644         DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2645         if not already wrapped in a subreg.  Make sure df_insn_rescan does not
2646         affect further iterations.
2648 2016-12-02  Martin Liska  <mliska@suse.cz>
2650         PR ipa/78555
2651         * sreal.c (sreal::to_int): Make absolute value before shifting.
2652         (sreal::operator/): Likewise.
2653         (sreal_verify_negative_division): New test.
2654         (void sreal_c_tests): Call the new test.
2655         * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2656         SREAL_SIGN macros.
2657         (sreal::normalize_down): Likewise.
2659 2016-12-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2661         * combine.c (combine_simplify_rtx):  Suppress replacement of
2662         "(and (reg) (const_int bit))" with "if_then_else".
2664 2016-12-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2666         PR target/77822
2667         * config/s390/s390.md ("extzv")
2668         ("*extzv<mode><clobbercc_or_nocc>")
2669         ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2670         ("*<risbg_n>_ior_and_sr_ze")
2671         ("*extract1bitdi<clobbercc_or_nocc>")
2672         ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2673         ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2674         ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2675         to validate the arguments of zero_extract and sign_extract.
2677 2016-12-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2679         PR target/77822
2680         * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2682 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2684         * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2685         function.
2686         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2687         macro.
2689 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2691         * config/s390/vector.md (vec_halfhalf): New mode iterator.
2692         ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2693         ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2694         ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2695         ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2696         ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2697         ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2698         ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2699         ("vec_unpacku_lo_v4si"): New pattern definitions.
2700         * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2701         vector.md.
2703 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2705         * config/s390/s390-protos.h (s390_reverse_condition): New
2706         prototype.
2707         * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2708         of CC mode values.
2709         (s390_reverse_condition): New function.
2710         * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2711         target macros.
2713 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2715         * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2716         (CCVHUANY): Remove modes.
2717         (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2718         documentation.
2719         * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2720         (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2721         modes.
2722         (s390_branch_condition_mask): Adjust to use the new cc consumer
2723         modes.  The new modes allow for proper reversal in the middle-end.
2724         (s390_expand_vec_compare_cc): Determine the proper cc producer and
2725         consumer modes for a comparison.
2726         * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2727         throughout the file.
2728         * config/s390/vx-builtins.md: Likewise.
2730 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
2732         * asan.c (asan_global_struct): Refactor.
2733         (create_odr_indicator): New function.
2734         (asan_needs_odr_indicator_p): Likewise.
2735         (is_odr_indicator): Likewise.
2736         (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2737         constructor.
2738         (asan_protect_global): Do not protect odr indicators.
2740 2016-12-01  Jeff Law  <law@redhat.com>
2742         * tree-ssa-threadedge.c
2743         (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2744         propagation of operands if there are no operands.
2746 2016-12-02  Jakub Jelinek  <jakub@redhat.com>
2748         PR tree-optimization/78586
2749         * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2750         CONVERT_EXPR or COMPONENT_REF here.  Formatting fix.  For
2751         SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2752         type is INTEGER_TYPE or POINTER_TYPE.
2754 2016-12-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2756         PR target/78577
2757         * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2758         (vextuhrx): Likewise.
2759         (vextuwlx): Likewise.
2760         (vextuwrx): Likewise.
2762 2016-12-01  David Malcolm  <dmalcolm@redhat.com>
2764         * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2765         early_dwarf_finished.
2767 2016-12-01  Eric Botcazou  <ebotcazou@adacore.com>
2768             David S. Miller  <davem@davemloft.net>
2770         * config/sparc/sparc.opt (mlra): New target option.
2771         * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2772         (sparc_lra_p): ...this.  New function.
2773         (D_MODES, DF_MODES): Add missing cast.
2774         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2775         provide these insns when flag_pic.
2776         (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2777         setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2778         embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2779         embmedany_textulo, embmedany_textlo): Likewise.
2780         (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2782 2016-12-01  David Edelsohn  <dje.gcc@gmail.com>
2784         PR debug/66419
2785         PR c++/78235
2786         * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2788 2016-12-01  Richard Biener  <rguenther@suse.de>
2789             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2791         * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2792         memset if len-oldlen != 0.
2793         (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2795 2016-12-01  Uros Bizjak  <ubizjak@gmail.com>
2797         * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2799 2016-12-01  Georg-Johann Lay  <avr@gjlay.de>
2801         * config/avr/avr.c: Fix coding rule glitches.
2803 2016-12-01  Markus Trippelsdorf  <markus@trippelsdorf.de>
2805         PR tree-optimization/78598
2806         * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2807         overflows.
2809 2016-12-01  Markus Trippelsdorf  <markus@trippelsdorf.de>
2811         PR rtl-optimization/78596
2812         * combine.c (simplify_comparison): Cast to unsigned to avoid
2813         left shifting of negative value.
2815 2016-12-01  Matthias Klose  <doko@ubuntu.com>
2817         * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2819 2016-12-01  Richard Biener  <rguenther@suse.de>
2821         * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2822         treat arrays with same type as objects that cannot overlap.
2824 2016-12-01  Georg-Johann Lay  <avr@gjlay.de>
2826         * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2827         (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2828         (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2830 2016-12-01  Jakub Jelinek  <jakub@redhat.com>
2832         PR debug/78587
2833         * dwarf2out.c (loc_descr_plus_const): For negative offset use
2834         uint_loc_descriptor instead of int_loc_descriptor and perform negation
2835         in unsigned HOST_WIDE_INT type.
2836         (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2838         PR target/78614
2839         * config/rs6000/rs6000.c (rs6000_frame_related): Call
2840         set_used_flags (pat) before any simplifications.  Clear used flag on
2841         PARALLEL copy.  Don't guard add_reg_note call.  Call
2842         copy_rtx_if_shared on pat before storing it into
2843         REG_FRAME_RELATED_EXPR.
2845 2016-12-01  Alan Modra  <amodra@gmail.com>
2847         * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2848         look inside UNSPEC_VSX_XXSPLTW vec.
2850 2016-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
2852         PR rtl-optimization/78607
2853         * combine.c (try_combine): Emit a barrier after a unconditional trap.
2855 2016-11-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2857         PR target/78602
2858         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2859         element is not a constant or in a register, force it to a
2860         register.
2862         PR target/78560
2863         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2864         that will be set to a vector element to be in a register.
2865         * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2866         the wrong multiplier to convert the element number to a byte
2867         offset.
2869 2016-11-30  Vladimir Makarov  <vmakarov@redhat.com>
2871         PR tree-optimization/77856
2872         * lra-constraints.c (inherit_in_ebb): Check original regno for
2873         invalid invariant regs too.  Set only clobbered hard regs for the
2874         invalid invariant regs.
2876 2016-11-30  Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
2878         Commit files forgotten in r242966.
2880         * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2881         * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2882         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2883         prefix check to find wrap-around value, instead use MCU flash size.
2884         For 8k flash devices, update link_pmem_wrap spec string to
2885         add --pmem-wrap-around=8k.
2886         * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2887         here...
2888         (LINK_SPEC): ...to here.
2890 2016-11-30  David Malcolm  <dmalcolm@redhat.com>
2892         PR c/78498
2893         * selftest.c (selftest::assert_strndup_eq): New function.
2894         (selftest::test_strndup): New function.
2895         (selftest::test_libiberty): New function.
2896         (selftest::selftest_c_tests): Call test_libiberty.
2898 2016-11-30  Segher Boessenkool  <segher@kernel.crashing.org>
2900         PR rtl-optimization/78610
2901         * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2902         instructions.
2904 2016-11-30  Bin Cheng  <bin.cheng@arm.com>
2906         PR tree-optimization/78574
2907         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2908         header PHI that doesn't define biv.
2910 2016-11-30  Jakub Jelinek  <jakub@redhat.com>
2912         * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2913         reset_used_flags.
2915         * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2916         sharing the SUBREG rtx between move and following insn.
2918         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2919         for REG_EQUIV argument.
2921 2016-11-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2923         * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2925 2016-11-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
2927         PR ipa/78555
2928         * real.c (real_hash): Add cast to avoid left
2929         shifting of negative values.
2931 2016-11-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2933         PR target/78362
2934         * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2935         from a subreg in operands[1] and don't call REGNO on a non-reg
2936         expression when deciding to force operands[2] into a reg.
2938 2016-11-30  Claudiu Zissulescu  <claziss@synopsys.com>
2939             Andrew Burgess  <andrew.burgess@embecosm.com>
2941         * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2942         * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2943         (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2944         * config/arc/arc700.md: Add define_bypass for store/load.
2946 2016-11-30  Martin Liska  <mliska@suse.cz>
2948         * cgraph.c (symbol_table::initialize): Initialize
2949         ipa_clones_dump_file.
2950         (cgraph_node::remove): Report to ipa_clones_dump_file.
2951         * cgraph.h: Add new argument (suffix) to cloning methods.
2952         * cgraphclones.c (dump_callgraph_transformation): New function.
2953         (cgraph_node::create_clone): New argument.
2954         (cgraph_node::create_virtual_clone): Likewise.
2955         (cgraph_node::create_version_clone): Likewise.
2956         * dumpfile.c: Add .ipa-clones dump file.
2957         * dumpfile.h (enum tree_dump_index): Add TDI_clones
2958         * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2959         to dump_callgraph_transformation.
2961 2016-11-30  Martin Liska  <mliska@suse.cz>
2963         PR sanitizer/78541
2964         * asan.c (asan_expand_mark_ifn): Properly
2965         select a VAR_DECL from FRAME.* component reference.
2967 2016-11-30  Segher Boessenkool  <segher@kernel.crashing.org>
2969         PR rtl-optimization/78583
2970         * simplify-rtx.c (simplify_truncation): Add check missing from the
2971         previous commit.
2973 2016-11-30  Segher Boessenkool  <segher@kernel.crashing.org>
2975         PR rtl-optimization/78590
2976         * combine.c (change_zero_ext): Transform zero_extend of subregs only
2977         if the subreg_reg is a scalar integer mode.
2979 2016-11-30  Jakub Jelinek  <jakub@redhat.com>
2981         PR tree-optimization/78586
2982         * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2983         TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2984         Don't build_int_cst min/max twice.  Formatting fix.
2986 2016-11-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
2988         PR rtl-optimization/78588
2989         * combine.c (if_then_else_cond): Also guard against BLKmode.
2990         * rtlanal.c (num_sign_bit_copies1): Add assert.
2992 2016-11-29  Jeff Law  <law@redhat.com>
2994         * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2995         variables.
2997         * lra-constraints.c (check_and_process_move): Constrain the
2998         range of DCLASS and SCLASS to avoid false positive out of bounds
2999         array index warning.
3001 2016-11-29  David Malcolm  <dmalcolm@redhat.com>
3003         * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
3005 2016-11-29  David Malcolm  <dmalcolm@redhat.com>
3007         PR preprocessor/78569
3008         * input.c (get_substring_ranges_for_loc): Fail gracefully if
3009         line directives were present.
3011 2016-11-30  Matthias Klose  <doko@ubuntu.com>
3013         * doc/install.texi: Document configure options --enable-objc-gc
3014         and --with-target-bdw-gc.
3016 2016-11-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3018         PR target/78594
3019         * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
3020         'x' to stxsi<wd>x print pattern, so that QImode and HImode values
3021         residing in traditional altivec registers can be stored
3022         correctly.
3024 2016-11-29  Max Filippov  <jcmvbkbc@gmail.com>
3026         PR target/78603
3027         * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
3028         overhead loop start between a call and its CALL_ARG_LOCATION
3029         note.
3031 2016-11-29  Waldemar Brodkorb  <wbx@openadk.org>
3033         * config/bfin/linux.h (CPP_SPEC): Define.
3035 2016-11-29  Martin Sebor  <msebor@redhat.com>
3037         PR tree-optimization/78512
3038         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
3039         * config/rs6000/linux.h: Same.
3040         * config/rs6000/linux64.h: Same.
3041         * config/sol2.h: Same.
3042         * config/sol2.c (solaris_printf_pointer_format): Remove.
3043         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
3044         * doc/tm.texi: Regenerate.
3045         * gimple-ssa-sprintf.c (format_pointer): Rempove.
3046         (pass_sprintf_length::compute_format_length): Return bool.
3047         (pass_sprintf_length::handle_gimple_call): Adjust.
3048         * target.def (printf_pointer_format): Remove.
3049         * targhooks.c (default_printf_pointer_format): Remove.
3050         (linux_printf_pointer_format): Same.
3051         * targhooks.h (default_printf_pointer_format): Remove.
3052         (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
3054 2016-11-29  Uros Bizjak  <ubizjak@gmail.com>
3056         * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
3057         (mshift): Ditto.
3058         (SWI1248_AVX512BWDQ): Ditto.
3059         (SWI1248_AVX512BW): Ditto.
3060         (k<any_logic:code><mode>): Ditto.
3061         (kandn<mode>): Ditto.
3062         (kxnor<mode>): Ditto.
3063         (knot<mode>): Ditto.
3064         (*k<any_lshift:code><mode>): Ditto.
3065         (kortestzhi, kortestchi): Ditto.
3066         (kunpckhi, kunpcksi, kunpckdi): Ditto.
3068 2016-11-29  Andrew Pinski  <apinski@cavium.com>
3070         * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
3071         for the EQ_EXPR.
3073 2016-11-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3075         PR target/71331
3076         * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
3077         to stack before call mcount.
3078         (tilegx_can_use_return_insn_p): Clean up code.
3080 2016-11-29  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3082         * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
3084 2016-11-29  David Malcolm  <dmalcolm@redhat.com>
3086         PR c++/72774
3087         PR c++/72786
3088         PR c++/77922
3089         PR c++/78313
3090         * spellcheck.c (selftest::test_find_closest_string): Verify that
3091         we don't offer the goal string as a suggestion.
3092         * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
3093         offer the goal string as a suggestion.
3096 2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
3098         * config/arc/arc.c (arc_override_options): Avoid selection of
3099         compact casesi for ARCv2.
3101 2016-11-29  Richard Biener  <rguenther@suse.de>
3103         * tree-cfg.c (lower_phi_internal_fn): Do not look for further
3104         PHIs after a regular stmt.
3105         (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
3106         start a new BB.
3108 2016-11-29  Martin Liska  <mliska@suse.cz>
3110         PR gcov-profile/78582
3111         * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
3112         to prevent PHI argument clash.
3114 2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
3116         * config/arc/arc.opt (marclinux): Fix typo.
3117         (marclinux_prof): Likewise.
3119 2016-11-29  Jiong Wang  <jiong.wang@arm.com>
3121         * target.def (stack_protect_runtime_enabled_p): New.
3122         * function.c (expand_function_end): Guard stack_protect_epilogue with
3123         targetm.stack_protect_runtime_enabled_p.
3124         * cfgexpand.c (pass_expand::execute): Likewise.
3125         * calls.c (expand_call): Likewise.
3126         * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
3127         * doc/tm.texi: Regenerate.
3129 2016-11-29  Richard Biener  <rguenther@suse.de>
3131         PR middle-end/78546
3132         * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
3134 2016-11-29  Janus Weil  <janus@gcc.gnu.org>
3136         * doc/contrib.texi: Add a few missing gfortran contributors.
3138 2016-11-29  Segher Boessenkool  <segher@kernel.crashing.org>
3140         * combine.c (change_zero_ext): Also handle extends from a subreg
3141         to a mode bigger than that of the operand of the subreg.
3143 2016-11-29  Segher Boessenkool  <segher@kernel.crashing.org>
3145         PR target/77687
3146         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
3147         stack_restore_tie insn instead of stack_tie, for the SVR4 and
3148         SPE ABIs.
3149         * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
3151 2016-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
3153         * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
3154         head_components and tail_components.
3155         (spread_components): New algorithm.
3156         (emit_common_tails_for_components): Clear head_components and
3157         tail_components.
3158         (insert_prologue_epilogue_for_components): Write extra output to the
3159         dump file for sibcalls and abnormal exits.
3161 2016-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
3163         PR rtl-optimization/78342
3164         * combine.c: Include "cfghooks.h".
3165         (try_combine): If we create an unconditional trap, break the basic
3166         block in two just after it, and remove the edge between; also, set
3167         the *new_direct_jump_p flag so that cleanup_cfg is run.
3169 2016-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
3171         * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
3172         and sign_extract.
3174 2016-11-28  Uros Bizjak  <ubizjak@gmail.com>
3176         * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
3177         *andsi_1 and *andhi_1 using SWI24 mode iterator.  Use multi-line
3178         output template string.
3179         (*anddi_1): Use multi-line output template string.
3180         (*andqi_1): Ditto.
3182 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
3184         PR middle-end/78540
3185         * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
3186         * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
3187         note has been removed.
3188         * postreload.c (reload_combine_recognize_pattern): If
3189         remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
3191 2016-11-28  Martin Sebor  <msebor@redhat.com>
3193         PR middle-end/78520
3194         * gimple-ssa-sprintf.c (target_max_value): Remove.
3195         (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
3196         (get_width_and_precision): New function.
3197         (format_integer, format_floating, get_string_length, format_string):
3198         Correct handling of width and precision with unknown value.
3199         (format_directive): Add warning.
3200         (pass_sprintf_length::compute_format_length): Allow for precision
3201         to consist of a sole period with no asterisk or digits after it.
3203 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
3205         PR rtl-optimization/78546
3206         * simplify-rtx.c (neg_const_int): When negating most negative
3207         number in mode wider than HOST_BITS_PER_WIDE_INT, use
3208         simplify_const_unary_operation to produce CONST_DOUBLE or
3209         CONST_WIDE_INT.
3210         (simplify_plus_minus): Handle the case where neg_const_int
3211         doesn't return a CONST_INT.
3213 2016-11-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
3215         PR target/78556
3216         * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
3217         left shifting of negative values.
3219 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
3221         PR fortran/78298
3222         * tree-nested.c (convert_local_reference_stmt): After adding
3223         shared (FRAME.NN) clause to omp parallel, task or target,
3224         add it also to all outer omp parallel, task or target constructs.
3226 2016-11-28  Uros Bizjak  <ubizjak@gmail.com>
3228         * config/i386/i386.md (UNSPEC_KMASKOP): New.
3229         (UNSPEC_KMOV): Remove.
3230         (kmovw): Expand to plain HImode move.
3231         (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
3232         register_operand predicates.  Tag pattern with UNSPEC_KMASKOP.
3233         Remove corresponding clobber-removing splitter.
3234         (*anddi_1): Remove mask register alternatives.
3235         (*andsi_1): Ditto.
3236         (*andhi_1): Ditto.
3237         (*andqi_1): Ditto.
3238         (*<any_or:code><mode>_1): Ditto.
3239         (*<any_or:code>qi_1): Ditto.
3240         (kandn<mode>): Use SWI1248_AVX512BW mode iterator.  Remove
3241         general register alternatives.  Tag pattern with UNSPEC_KMASKOP.
3242         Remove corresponding splitter to operation with general registers.
3243         (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
3244         (*andn<SWI12:mode>): New pattern.
3245         (*kxnor<mode>): Remove general register alternatives.  Tag pattern
3246         with UNSPEC_KMASKOP.  Remove corresponding splitter to operation
3247         with general registers.
3248         (knot<mode>): New insn pattern.
3249         (*one_cmpl<mode>2_1): Remove mask register alternatives.
3250         (one_cmplqi2_1): Ditto.
3251         (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
3252         Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
3253         * config/i386/predicates.md (mask_reg_operand): Remove predicate.
3254         * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
3255         to generate kmaskop shift.
3256         (vec_unpacks_hi_<mode>): Ditto.
3257         * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
3258         Use CODE_FOR_kandhi.
3259         (__builtin_ia32_knothi): Use CODE_FOR_knothi.
3260         (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
3261         (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
3263 2016-11-28  Richard Biener  <rguenther@suse.de>
3265         * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
3266         to SSA names via extract_range_from_ssa_name if allowed.
3268 2016-11-28  Richard Biener  <rguenther@suse.de>
3270         PR tree-optimization/78542
3271         * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
3272         if allowed.
3274 2016-11-28  Paolo Bonzini  <bonzini@gnu.org>
3276         * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
3277         isolates a single bit, even if the condition involves subregs.
3279 2016-11-28  Tamar Christina  <tamar.christina@arm.com>
3281         * config/aarch64/aarch64-simd-builtins.def
3282         (BSL_P): Added di and v2di mode.
3283         * config/aarch64/arm_neon.h
3284         (vsriq_n_p64, vsri_n_p64): Added poly type.
3285         (vextq_p64, vext_p64): Likewise.
3286         (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
3288 2016-11-28  Tamar Christina  <tamar.christina@arm.com>
3290         * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
3291         (TYPES_GETREGP): Likewise.
3292         (TYPES_SHIFTINSERTP): Likewise.
3293         (TYPES_COMBINEP): Likewise.
3294         (TYPES_STORE1P): Likewise.
3295         * config/aarch64/aarch64-simd-builtins.def
3296         (combine): Added poly generator.
3297         (get_dregoi): Likewise.
3298         (get_dregci): Likewise.
3299         (get_dregxi): Likewise.
3300         (ssli_n): Likewise.
3301         (ld1): Likewise.
3302         (st1): Likewise.
3303         * config/aarch64/arm_neon.h
3304         (poly64x1x2_t, poly64x1x3_t): New.
3305         (poly64x1x4_t, poly64x2x2_t): Likewise.
3306         (poly64x2x3_t, poly64x2x4_t): Likewise.
3307         (poly64x1_t): Likewise.
3308         (vcreate_p64, vcombine_p64): Likewise.
3309         (vdup_n_p64, vdupq_n_p64): Likewise.
3310         (vld2_p64, vld2q_p64): Likewise.
3311         (vld3_p64, vld3q_p64): Likewise.
3312         (vld4_p64, vld4q_p64): Likewise.
3313         (vld2_dup_p64, vld3_dup_p64): Likewise.
3314         (vld4_dup_p64, vsli_n_p64): Likewise.
3315         (vsliq_n_p64, vst1_p64): Likewise.
3316         (vst1q_p64, vst2_p64): Likewise.
3317         (vst3_p64, vst4_p64): Likewise.
3318         (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
3319         (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
3320         (vget_lane_p64, vgetq_lane_p64): Likewise.
3321         (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
3322         (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
3323         (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
3324         (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
3325         (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
3326         (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
3327         (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
3328         (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
3329         (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
3330         (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
3331         (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
3332         (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
3333         (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
3334         (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
3335         (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
3336         (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
3337         (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
3338         (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
3339         (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
3340         (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
3341         (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
3342         (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
3343         (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
3344         (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
3345         (vset_lane_p64, vsetq_lane_p64): Likewise.
3346         (vget_low_p64, vget_high_p64): Likewise.
3347         (vcombine_p64, vst2_lane_p64): Likewise.
3348         (vst3_lane_p64, vst4_lane_p64): Likewise.
3349         (vst2q_lane_p64, vst3q_lane_p64): Likewise.
3350         (vst4q_lane_p64, vget_lane_p64): Likewise.
3351         (vget_laneq_p64, vset_lane_p64): Likewise.
3352         (vset_laneq_p64, vcopy_lane_p64): Likewise.
3353         (vcopy_laneq_p64, vdup_n_p64): Likewise.
3354         (vdupq_n_p64, vdup_lane_p64): Likewise.
3355         (vdup_laneq_p64, vld1_p64): Likewise.
3356         (vld1q_p64, vld1_dup_p64): Likewise.
3357         (vld1q_dup_p64, vld1q_dup_p64): Likewise.
3358         (vmov_n_p64, vmovq_n_p64): Likewise.
3359         (vst3q_p64, vst4q_p64): Likewise.
3360         (vld1_lane_p64, vld1q_lane_p64): Likewise.
3361         (vst1_lane_p64, vst1q_lane_p64): Likewise.
3362         (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3363         (vdupq_laneq_p64): Likewise.
3365 2016-11-28  Tamar Christina  <tamar.christina@arm.com>
3367         * config/arm/arm_neon.h (vget_lane_p64): New.
3369 2016-11-28  Iain Sandoe  <iain@codesourcery.com>
3371         PR target/71767
3372         * configure.ac (with_ld64): Use portable method to extract the
3373         major part of the version number.
3374         * configure: Regenerated.
3376 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
3378         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3379         UINTMAX_TYPE rather than SIZE_TYPE.  Add gcc_unreachable if
3380         intmax_t couldn't be determined.
3381         (format_integer): Make {,u}intmax_type_node no longer static,
3382         initialize them only when needed.  For z and t use
3383         signed_or_unsigned_type_for instead of assuming size_t and
3384         ptrdiff_t have the same precision.
3386         PR lto/78211
3387         * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3388         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3389         (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3390         vector instead of traversing m_classes hash table.  Release
3391         m_classes_vec.
3392         (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3393         Formatting fixes.
3394         (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3395         add it also to m_classes_vec vector.
3396         (sem_item_optimizer::remove_symtab_node,
3397         sem_item_optimizer::build_hash_based_classes,
3398         sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3399         (sem_item_optimizer::subdivide_classes_by_equality,
3400         sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3401         sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3402         instead of traversing m_classes hash table.  Formatting fixes.
3403         (sem_item_optimizer::traverse_congruence_split,
3404         sem_item_optimizer::do_congruence_step_for_index,
3405         sem_item_optimizer::do_congruence_step): Formatting fixes.
3406         (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3407         vector instead of traversing m_classes hash table.
3408         (sem_item_optimizer::dump_cong_classes): Likewise.  Formatting fixes.
3409         (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3410         instead of traversing m_classes hash table.
3412 2016-11-28  Georg-Johann Lay  <avr@gjlay.de>
3414         * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3415         X is not unused after.
3417 2016-11-28  Bernd Schmidt  <bschmidt@redhat.com>
3419         PR rtl-optimization/78120
3420         * rtlanal.c (insn_rtx_cost): Revert previous change.
3422 2016-11-28  Georg-Johann Lay  <avr@gjlay.de>
3424         PR 41076
3425         * config/avr/avr.md (SPLIT34): New mode iterator.
3426         (bitop): New code iterator.
3427         (*iorhi3.ashift8-*). New insn-and-split patterns.
3428         (*movhi): Post-reload split reg = 0.
3429         [!MOVW]: Post-reload split reg = reg.
3430         (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3431         (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3432         (iorhi3, iorpsi3, iorsi3): Same.
3433         (xorhi3, xorpsi3, xorsi3): Same.
3434         * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3435         costs to *iorhi3.ashift8-* patterns.
3437 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
3438             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3440         PR target/67710
3441         * config.in: Regenerate
3442         * config/darwin-driver.c (darwin_driver_init): Emit a version string
3443         for the assembler.
3444         * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3445         * config/darwin.opt(asm_macosx_version_min): New.
3446         * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3447         * configure: Regenerate
3448         * configure.ac: Check for mmacosx-version-min handling.
3450 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
3452         PR target/57438
3453         * config/i386/i386.c (ix86_code_end): Note that we emitted code
3454         where the function might otherwise appear empty for picbase thunks.
3455         (ix86_output_function_epilogue): If we find a zero-sized function
3456         assume that reaching it is UB and trap.  If we find a trailing label
3457         append a nop.
3458         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3459         find a zero-sized function assume that reaching it is UB and trap.
3460         If we find a trailing label, append a nop.
3462 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
3464         PR target/71767
3465         * config/darwin-sections.def (picbase_thunk_section): New.
3466         * config/darwin.c (darwin_init_sections): Set up picbase thunk
3467         section. (darwin_rodata_section, darwin_objc2_section,
3468         machopic_select_section, darwin_asm_declare_constant_name,
3469         darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3470         coalesced with newer linkers.
3471         (darwin_override_options): Decide on usage of coalesed sections
3472         on the basis of the target linker version.
3473         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3474         * config/darwin.opt  (mtarget-linker): New.
3475         * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3476         a coalesced section, instead use a thunks section.
3478 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
3480         PR target/71767
3481         * configure.ac (with-ld64): New var, set for Darwin, set on
3482         detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3483         * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3484         * config/darwin10.h(DEF_LD64): Update for this target version.
3485         * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3486         (DEF_LD64): Update for this target version.
3487         * configure: Regenerated.
3488         * config.in: Regenerated.
3490 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
3492         PR target/71767
3493         * config/darwin.c (imachopic_indirection_name): Make data
3494         section indirections linker-visible.
3495         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3496         constant labels linker-visible.
3498 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3500         * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3501         (free_lang_data): Remove assignment to ptrdiff_type_node.
3503 2016-11-25  Jakub Jelinek  <jakub@redhat.com>
3505         PR rtl-optimization/78526
3506         * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3507         beyond val's precision.
3509         PR rtl-optimization/78527
3510         * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3511         out of bounds shift count.
3513 2016-11-25  Martin Liska  <mliska@suse.cz>
3515         PR web/71666
3516         * doc/invoke.texi (-fprofile-use): Fix reference to a section
3517         where -fprofile-generate is documented.
3519 2016-11-25  Martin Liska  <mliska@suse.cz>
3521         PR gcov-profile/78086
3522         * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3523         not supported by a target.  Set priority to 100 if possible.
3524         (build_gcov_exit_decl): Likewise.
3526 2016-11-25  Richard Biener  <rguenther@suse.de>
3528         PR ipa/78515
3529         * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3530         unary, binary and single RHSs.
3531         * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3533 2016-11-25  Bin Cheng  <bin.cheng@arm.com>
3535         PR middle-end/78507
3536         PR middle-end/78510
3537         PR middle-end/78517
3538         * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3539         cmp directly, rather than cmp_code.  Initialize code to ERROR_MARK
3540         and set it to result code if transformation is valid.  Use code EQ
3541         directly in last simplification case.
3543 2016-11-25  Richard Biener  <rguenther@suse.de>
3545         * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3546         before valueizing return stmts.
3548 2016-11-24  Richard Biener  <rguenther@suse.de>
3550         PR tree-optimization/78343
3551         * passes.def: Add CD-DCE pass after loop splitting.
3552         * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3553         SCEV init/finalize ...
3554         (perform_tree_ssa_dce): ... here.  Deal with being
3555         executed inside the loop pipeline in aggressive mode.
3557 2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3559         * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3561 2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3563         PR tree-optimization/77673
3564         * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3565         (init_symbolic_number): Initialize src field from src parameter.
3566         (perform_symbolic_merge): Select most dominated statement as the
3567         source statement.  Set src field of resulting n structure from the
3568         input src with the lowest address.
3569         (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3570         (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
3571         of load from src field rather than insertion statement.  Cancel
3572         optimization if statement analyzed is not dominated by the insertion
3573         statement.
3574         (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
3575         dominance information.
3577 2016-11-25  Eric Botcazou  <ebotcazou@adacore.com>
3579         PR ada/67205
3580         * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3582 2016-11-25  Martin Jambor  <mjambor@suse.cz>
3584         PR tree-optimization/70965
3585         * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3587 2016-11-24  James Greenahlgh  <james.greenhalgh@arm.com>
3589         PR target/78509
3590         * config/i386/i386.c (i386_excess_precision): Do not return
3591         FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3592         EXCESS_PRECISION_TYPE_STANDARD.
3593         * target.def (excess_precision): Document that targets should
3594         not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3595         EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3596         Fix typo in first sentence.
3597         * doc/tm.texi: Regenerate.
3599 2016-11-25  Richard Biener  <rguenther@suse.de>
3601         PR tree-optimization/78396
3602         * tree-vectorizer.c (vectorize_loops): When the if-converted
3603         body contains masked loads or stores do not attempt to
3604         basic-block-vectorize it.
3606 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
3607             Alan Hayward  <alan.hayward@arm.com>
3608             David Sherwood  <david.sherwood@arm.com>
3610         * function.h (spill_slot_alignment): Declare.
3611         * function.c (spill_slot_alignment): New function.
3612         * lra-spills.c (slot): Add align and size fields.
3613         (assign_mem_slot): Use them in the call to assign_stack_local.
3614         (add_pseudo_to_slot): Update the fields.
3615         (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3617 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
3618             Alan Hayward  <alan.hayward@arm.com>
3619             David Sherwood  <david.sherwood@arm.com>
3621         * stor-layout.c (layout_type): Allow the caller to set the mode of
3622         a float type.  Only choose one here if the mode is still VOIDmode.
3623         * tree.c (build_common_tree_nodes): Set the type mode of decimal
3624         floats before calling layout_type.
3625         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3627 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
3629         * tree-tailcall.c (find_tail_calls): Allow calls to reference
3630         local variables if all references are known to be direct.
3632 2016-11-25  Jakub Jelinek  <jakub@redhat.com>
3633             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3635         PR middle-end/78501
3636         * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3637         non null and it's precision matches precision of lhs's type.
3639 2016-11-24  Martin Sebor  <msebor@redhat.com>
3641         PR tree-optimization/78476
3642         * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3643         Add a member.
3644         (handle_gimple_call): Adjust signature.
3645         (try_substitute_return_value): Remove calls to bounded functions
3646         with zero buffer size whose result is known.
3647         (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3649 2016-11-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3651         * varasm.c (assemble_start_function): Wrap align_log definition in
3652         ASM_OUTPUT_MAX_SKIP_ALIGN.
3654 2016-11-24  Uros Bizjak  <ubizjak@gmail.com>
3656         * config/i386/i386.md (wide AND insn to QImode splitter): Use
3657         explicit mode macros.
3658         (wide OR insn to QImode splitter): Ditto.
3660 2016-11-24  Vladimir Makarov  <vmakarov@redhat.com>
3662         PR rtl-optimization/77541
3663         * lra-constraints.c (struct input_reload): Add field match_p.
3664         (get_reload_reg): Check modes of input reloads to generate unique
3665         value reload pseudo.
3666         (match_reload): Add input reload pseudo for the current insn.
3668 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
3670         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3671         __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3672         architecture levels.
3673         * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3674         the aarch64_fp16_type_node, not all HFmode types.
3675         (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3676         (aarch64_scalar_mode_supported_p): Likewise.
3677         (aarch64_excess_precision): New.
3678         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3679         (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3680         (TARGET_C_EXCESS_PRECISION): Likewise.
3682 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
3684         * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3685         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3687 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
3689         * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3690         (<optab>dihf2): Likewise.
3691         (aarch64_fp16_<optab><mode>hf2): New.
3693 2016-11-24  Alexander Monakov  <amonakov@ispras.ru>
3695         PR target/67822
3696         * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3698 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
3700         * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3701         Enable REE at -O2 and higher.
3702         * config/sparc/sparc.c (sparc_option_override): Disable it by default
3703         in 32-bit mode.
3705 2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3707         PR target/48863
3708         PR inline-asm/70184
3709         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3710         (new_temp_expr_table): Initialise reg_vars_cnt.
3711         (free_temp_expr_table): Release reg_vars_cnt.
3712         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3713         field of TAB.
3714         (find_replaceable_in_bb): Use the above to record register variable
3715         write occurrences and cancel replacement across them.
3717 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
3719         PR rtl-optimization/78437
3720         * ree.c (get_uses): New function.
3721         (combine_reaching_defs): When a copy is needed, return false if any
3722         reaching use of the source register reads it in a mode larger than
3723         the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3725 2016-11-24  Martin Liska  <mliska@suse.cz>
3727         * gimple-pretty-print.c (dump_edge_probability): New function.
3728         (dump_gimple_switch): Dump label edge probabilities.
3729         (dump_gimple_cond): Likewise.
3730         (dump_gimple_label): Dump
3731         (dump_gimple_bb_header): Dump basic block frequency.
3732         (pp_cfg_jump): Replace e->dest argument with e.
3733         (dump_implicit_edges): Likewise.
3734         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3735         Use gimple_bb (at) instead of at->bb.
3737 2016-11-24  Bernd Schmidt  <bschmidt@redhat.com>
3739         * common.opt (flimit-function-alignment): New.
3740         * doc/invoke.texi (-flimit-function-alignment): Document.
3741         * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3742         * final.c (shorten_branches): Set it.
3743         * varasm.c (assemble_start_function): Limit alignment if
3744         requested.
3746 2016-11-24  Richard Biener  <rguenther@suse.de>
3748         PR tree-optimization/71595
3749         * cfgloopmanip.h (remove_path): Add irred_invalidated and
3750         loop_closed_ssa_invalidated parameters, defaulted to NULL.
3751         * cfgloopmanip.c (remove_path): Likewise, pass them along to
3752         called functions.  Only fix irred flags if the caller didn't
3753         request state.
3754         * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3755         (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3756         to remove_path.
3758 2016-11-24  Bernd Schmidt  <bschmidt@redhat.com>
3760         PR rtl-optimization/78120
3761         * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3762         cases, and additionally test against max_seq_cost for speed
3763         optimization.
3764         (noce_process_if_block): Compute an estimate for the original cost when
3765         optimizing for speed, using the minimum of then and else block costs.
3767         PR rtl-optimization/78120
3768         * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3770         PR rtl-optimization/78120
3771         * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3773 2016-11-24  Bin Cheng  <bin.cheng@arm.com>
3775         * match.pd: Refine type conversion in result expr for below pattern:
3776         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3778 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
3780         PR middle-end/78429
3781         * tree.h (wi::fits_to_boolean_p): New predicate.
3782         (wi::fits_to_tree_p): Use it for boolean types.
3783         * tree.c (int_fits_type_p): Likewise.
3785 2016-11-24  Martin Liska  <mliska@suse.cz>
3787         * print-tree.c (struct bucket): Remove.
3788         (print_node): Add new argument which drives whether a tree node
3789         is printed briefly or not.
3790         (debug_tree): Replace a custom hash table with hash_set<T>.
3791         * print-tree.h (print_node): Add the argument.
3793 2016-11-24  Chung-Lin Tang  <cltang@codesourcery.com>
3795         * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3797 2016-11-23  Peter Bergner  <bergner@vnet.ibm.com>
3799         PR target/78458
3800         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3801         if it is at least NREGS wide.
3803 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
3805         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3806         TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3807         TFmode, IFmode and KFmode.
3809 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
3811         * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3812         pattern.
3814 2016-11-23  Segher Boessenkool  <segher@kernel.crashing.org>
3816         * combine.c (change_zero_ext): Only change the mode of a hard register
3817         destination if can_change_dest_mode holds for that.
3819 2016-11-23  Jeff Law  <law@redhat.com>
3821         * varasm.c (assemble_name): Increase buffer size for name.
3823         * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3825 2016-11-23  Jakub Kicinski  <jakub.kicinski@netronome.com>
3827         * doc/extend.texi: Constify first argument to __builtin_object_size.
3829 2016-11-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3831         * opth-gen.awk: Use unsigned shifts for bit masks.  Allow all bits
3832         to be used.  Add brackets around macro argument.
3834 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
3836         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3838 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
3840         PR sanitizer/69278
3841         * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3842         restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3844 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
3846         PR middle-end/69183
3847         * omp-low.c (build_outer_var_ref): Change lastprivate argument
3848         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
3849         on worksharing constructs, treat it like clauses on simd construct.
3850         Formatting fix.
3851         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3852         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3853         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3854         of true as last argument to build_outer_var_ref.
3856 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
3858         * config/i386/i386.md (*movqi_internal): Calculate mode
3859         attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3860         <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3861         (*k<logic><mode>): Calculate mode attribute depending on
3862         TARGET_AVX512DQ.  Emit k<logic>w for MODE_HI insn mode attribute.
3863         (*andqi_1): Calculate mode attribute of alternative 3 depending
3864         on TARGET_AVX512DQ.  Emit kandw for MODE_HI insn mode attribute.
3865         (kandn<mode>): Calculate mode attribute of alternative 2 depending
3866         on TARGET_AVX512DQ.  Emit kandnw for MODE_HI insn mode attribute.
3867         (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3868         iterator.  Calculate mode attribute of alternative 1 depending
3869         on TARGET_AVX512DQ.  Emit kxnorw for MODE_HI insn mode attribute.
3870         (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3871         on TARGET_AVX512DQ.  Emit knotw for MODE_HI insn mode attribute.
3873 2016-11-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3875         PR middle-end/78153
3876         * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3877         * tree-vrp.c (extract_range_basic): Handle case for
3878         CFN_BUILT_IN_STRLEN.
3880 2016-11-23  Jeff Law  <law@redhat.com>
3882         * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3884         * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3885         in boolean context warning.
3887         * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3889 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3891         PR target/63250
3892         * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3893         (arm_fp16_type_node): ...This, make visibile.
3894         (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3895         arm_fp16_type_node.
3896         (arm_init_simd_builtin_types): Likewise.
3897         (arm_init_fp16_builtins): Likewise.
3898         * config/arm/arm.c (arm_excess_precision): New.
3899         (arm_floatn_mode): Likewise.
3900         (TARGET_C_EXCESS_PRECISION): Likewise.
3901         (TARGET_FLOATN_MODE): Likewise.
3902         (arm_promoted_type): Only promote arm_fp16_type_node.
3903         * config/arm/arm.h (arm_fp16_type_node): Declare.
3905 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3907         * config/arm/arm.c (arm_convert_to_type): Delete.
3908         (TARGET_CONVERT_TO_TYPE): Delete.
3909         (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3910         (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3911         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3912         * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3913         are in fast math mode, and have no single step hardware instruction.
3914         (extendhfdf2): Only expand through SFmode if we don't have a
3915         single-step hardware instruction.
3916         * config/arm/vfp.md (*truncdfhf2): New.
3917         (extendhfdf2): Likewise.
3919 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3921         * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3922         provides HFmode.
3924 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3926         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3927         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3928         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3929         * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3930         * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3931         * doc/tm.texi: Regenerate.
3932         * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3934 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3936         * toplev.c (init_excess_precision): Delete most logic.
3937         * tree.c (excess_precision_type): Rewrite to use
3938         TARGET_EXCESS_PRECISION.
3939         * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3940         more generic fashion.
3941         * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3942         __STDC_WANT_IEC_60559_TYPES_EXT__.
3944 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3946         * common.opt (fpermitted-flt-eval-methods): New.
3947         * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3948         * flag_types.h (permitted_flt_eval_methods): New.
3950 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3952         * config/m68k/m68k.c (m68k_excess_precision): New.
3953         (TARGET_C_EXCESS_PRECISION): Define.
3955 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3957         * config/s390/s390.c (s390_excess_precision): New.
3958         (TARGET_C_EXCESS_PRECISION): Define.
3960 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3962         * config/i386/i386.c (ix86_excess_precision): New.
3963         (TARGET_C_EXCESS_PRECISION): Define.
3965 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
3967         * target.def (excess_precision): New hook.
3968         * target.h (flt_eval_method): New.
3969         (excess_precision_type): Likewise.
3970         * targhooks.c (default_excess_precision): New.
3971         * targhooks.h (default_excess_precision): New.
3972         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3973         * doc/tm.texi: Regenerate.
3975 2016-11-23  Martin Sebor  <msebor@redhat.com>
3977         PR middle-end/78461
3978         * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3979         set the minimum number of bytes for an unknown string to zero.
3981 2016-11-23  Martin Jambor  <mjambor@suse.cz>
3982             Martin Liska  <mliska@suse.cz>
3984         * hsa-builtins.def: New file.
3985         * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3986         * builtins.def: Include hsa-builtins.def.
3987         (DEF_HSA_BUILTIN): New macro.
3988         * dumpfile.h (OPTGROUP_OPENMP): Define.
3989         * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3990         * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3991         GF_OMP_FOR_GRID_GROUP_ITER.
3992         (gimple_omp_for_grid_phony): Added checking assert.
3993         (gimple_omp_for_set_grid_phony): Likewise.
3994         (gimple_omp_for_grid_intra_group): New function.
3995         (gimple_omp_for_set_grid_intra_group): Likewise.
3996         (gimple_omp_for_grid_group_iter): Likewise.
3997         (gimple_omp_for_set_grid_group_iter): Likewise.
3998         * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3999         previosuly only distribute loop was permitted.
4000         (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
4001         (grid_get_kernel_launch_attributes): Support multiple HSA grid
4002         dimensions.
4003         (grid_expand_omp_for_loop): Likewise and also support standalone
4004         distribute constructs.  New parameter INTRA_GROUP, updated both users.
4005         (grid_expand_target_grid_body): Support standalone distribute
4006         constructs.
4007         (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
4008         (pass_data_expand_omp_ssa): Likewise.
4009         (pass_data_omp_device_lower): Likewsie.
4010         (pass_data_lower_omp): Likewise.
4011         (pass_data_diagnose_omp_blocks): Likewise.
4012         (pass_data_oacc_device_lower): Likewise.
4013         (pass_data_omp_target_link): Likewise.
4014         (grid_lastprivate_predicate): New function.
4015         (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
4016         gridified loops.
4017         (lower_omp_for): Support standalone distribute constructs.
4018         (grid_prop): New type.
4019         (grid_safe_assignment_p): Check for assignments to group_sizes, new
4020         parameter GRID.
4021         (grid_seq_only_contains_local_assignments): New parameter GRID, pass
4022         it to callee.
4023         (grid_find_single_omp_among_assignments_1): Likewise, improve missed
4024         optimization info messages.
4025         (grid_find_single_omp_among_assignments): Likewise.
4026         (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
4027         (grid_parallel_clauses_gridifiable): New function.
4028         (grid_inner_loop_gridifiable_p): Likewise.
4029         (grid_dist_follows_simple_pattern): Likewise.
4030         (grid_gfor_follows_tiling_pattern): Likewise.
4031         (grid_call_permissible_in_distribute_p): Likewise.
4032         (grid_handle_call_in_distribute): Likewise.
4033         (grid_dist_follows_tiling_pattern): Likewise.
4034         (grid_target_follows_gridifiable_pattern): Support standalone
4035         distribute constructs.
4036         (grid_var_segment): New enum.
4037         (grid_mark_variable_segment): New function.
4038         (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
4039         if a new argument says so.
4040         (grid_process_grid_body): New function.
4041         (grid_eliminate_combined_simd_part): Likewise.
4042         (grid_mark_tiling_loops): Likewise.
4043         (grid_mark_tiling_parallels_and_loops): Likewise.
4044         (grid_process_kernel_body_copy): Support standalone distribute
4045         constructs.
4046         (grid_attempt_target_gridification): New grid variable holding overall
4047         gridification state.  Support standalone distribute constructs and
4048         collapse clauses.
4049         * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
4050         * hsa.h (hsa_bb): Add method method append_phi.
4051         (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
4052         occurences in all files too.
4053         (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
4054         (is_a_helper <hsa_insn_br *>::test): New function.
4055         (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
4056         branch instructions.
4057         (hsa_insn_signal): Make a direct descendant of
4058         hsa_insn_basic.  Add memorder constructor parameter and
4059         m_memory_order and m_signalop member variables.
4060         (hsa_insn_queue): Changed constructor parameters to common form.
4061         Added m_segment and m_memory_order member variables.
4062         (hsa_summary_t): Add private member function
4063         process_gpu_implementation_attributes.
4064         (hsa_function_summary): Rename m_binded_function to
4065         m_bound_function.
4066         (hsa_insn_basic_p): Remove typedef.
4067         (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
4068         (hsa_op_reg_p): Remove typedef.
4069         (hsa_function_representation): Change hsa_op_reg_p into plain
4070         pointers.
4071         (hsa_insn_phi): Removed new and delete operators.
4072         (hsa_insn_br): Likewise.
4073         (hsa_insn_cbr): Likewise.
4074         (hsa_insn_sbr): Likewise.
4075         (hsa_insn_cmp): Likewise.
4076         (hsa_insn_mem): Likewise.
4077         (hsa_insn_atomic): Likewise.
4078         (hsa_insn_signal): Likewise.
4079         (hsa_insn_seg): Likewise.
4080         (hsa_insn_call): Likewise.
4081         (hsa_insn_arg_block): Likewise.
4082         (hsa_insn_comment): Likewise.
4083         (hsa_insn_srctype): Likewise.
4084         (hsa_insn_packed): Likewise.
4085         (hsa_insn_cvt): Likewise.
4086         (hsa_insn_alloca): Likewise.
4087         * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
4088         (process_gpu_implementation_attributes): New function.
4089         (link_functions): Move some functionality into it.  Adjust after
4090         renaming m_binded_functions to m_bound_functions.
4091         (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
4092         to the list of instructions with no output registers.
4093         (get_in_type): Return this if it is a register of
4094         matching size.
4095         (hsa_get_declaration_name): Moved to...
4096         * hsa-gen.c (hsa_get_declaration_name): ...here.  Allocate
4097         temporary string on an obstack instead from ggc.
4098         (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
4099         down to two overloads.
4100         (hsa_allocp_operand_address): Removed.
4101         (hsa_allocp_operand_immed): Likewise.
4102         (hsa_allocp_operand_reg): Likewise.
4103         (hsa_allocp_operand_code_list): Likewise.
4104         (hsa_allocp_operand_operand_list): Likewise.
4105         (hsa_allocp_inst_basic): Likewise.
4106         (hsa_allocp_inst_phi): Likewise.
4107         (hsa_allocp_inst_mem): Likewise.
4108         (hsa_allocp_inst_atomic): Likewise.
4109         (hsa_allocp_inst_signal): Likewise.
4110         (hsa_allocp_inst_seg): Likewise.
4111         (hsa_allocp_inst_cmp): Likewise.
4112         (hsa_allocp_inst_br): Likewise.
4113         (hsa_allocp_inst_sbr): Likewise.
4114         (hsa_allocp_inst_call): Likewise.
4115         (hsa_allocp_inst_arg_block): Likewise.
4116         (hsa_allocp_inst_comment): Likewise.
4117         (hsa_allocp_inst_queue): Likewise.
4118         (hsa_allocp_inst_srctype): Likewise.
4119         (hsa_allocp_inst_packed): Likewise.
4120         (hsa_allocp_inst_cvt): Likewise.
4121         (hsa_allocp_inst_alloca): Likewise.
4122         (hsa_allocp_bb): Likewise.
4123         (hsa_obstack): New.
4124         (hsa_init_data_for_cfun): Initialize obstack.
4125         (hsa_deinit_data_for_cfun): Release memory of the obstack.
4126         (hsa_op_immed::operator new): Use obstack instead of object_allocator.
4127         (hsa_op_reg::operator new): Likewise.
4128         (hsa_op_address::operator new): Likewise.
4129         (hsa_op_code_list::operator new): Likewise.
4130         (hsa_op_operand_list::operator new): Likewise.
4131         (hsa_insn_basic::operator new): Likewise.
4132         (hsa_insn_phi::operator new): Likewise.
4133         (hsa_insn_br::operator new): Likewise.
4134         (hsa_insn_sbr::operator new): Likewise.
4135         (hsa_insn_cmp::operator new): Likewise.
4136         (hsa_insn_mem::operator new): Likewise.
4137         (hsa_insn_atomic::operator new): Likewise.
4138         (hsa_insn_signal::operator new): Likewise.
4139         (hsa_insn_seg::operator new): Likewise.
4140         (hsa_insn_call::operator new): Likewise.
4141         (hsa_insn_arg_block::operator new): Likewise.
4142         (hsa_insn_comment::operator new): Likewise.
4143         (hsa_insn_srctype::operator new): Likewise.
4144         (hsa_insn_packed::operator new): Likewise.
4145         (hsa_insn_cvt::operator new): Likewise.
4146         (hsa_insn_alloca::operator new): Likewise.
4147         (hsa_init_new_bb): Likewise.
4148         (hsa_bb::append_phi): New function.
4149         (gen_hsa_phi_from_gimple_phi): Use it.
4150         (get_symbol_for_decl): Fix dinstinguishing between
4151         global and local functions.  Put local variables into a segment
4152         according to their attribute or static flag, if there is one.
4153         (hsa_insn_br::hsa_insn_br): New.
4154         (hsa_insn_br::operator new): Likewise.
4155         (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
4156         (query_hsa_grid_nodim): New function.
4157         (multiply_grid_dim_characteristics): Likewise.
4158         (gen_get_num_threads): Likewise.
4159         (gen_get_num_teams): Reimplemented.
4160         (gen_get_team_num): Likewise.
4161         (gen_hsa_insns_for_known_library_call): Updated calls to the above
4162         helper functions.
4163         (get_memory_order_name): Removed.
4164         (get_memory_order): Likewise.
4165         (hsa_memorder_from_tree): New function.
4166         (gen_hsa_ternary_atomic_for_builtin): Renamed to
4167         gen_hsa_atomic_for_builtin, can also create signals.
4168         (gen_hsa_insns_for_call): Handle many new builtins.  Adjust to use
4169         hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
4170         (hsa_insn_atomic): Fix function comment.
4171         (hsa_insn_signal::hsa_insn_signal): Fix comment.  Update call to
4172         ancestor constructor and initialization of new member variables.
4173         (hsa_insn_queue::hsa_insn_queue): Added initialization of new
4174         member variables.
4175         (hsa_get_host_function): Handle functions with no bound CPU
4176         implementation.  Fix binded to bound.
4177         (get_brig_function_name): Likewise.
4178         (HSA_SORRY_ATV): Remove semicolon after macro.
4179         (HSA_SORRY_AT): Likewise.
4180         (omp_simple_builtin::generate): Add missing semicolons.
4181         (hsa_insn_phi::operator new): Removed.
4182         (hsa_insn_br::operator new): Likewise.
4183         (hsa_insn_cbr::operator new): Likewise.
4184         (hsa_insn_sbr::operator new): Likewise.
4185         (hsa_insn_cmp::operator new): Likewise.
4186         (hsa_insn_mem::operator new): Likewise.
4187         (hsa_insn_atomic::operator new): Likewise.
4188         (hsa_insn_signal::operator new): Likewise.
4189         (hsa_insn_seg::operator new): Likewise.
4190         (hsa_insn_call::operator new): Likewise.
4191         (hsa_insn_arg_block::operator new): Likewise.
4192         (hsa_insn_comment::operator new): Likewise.
4193         (hsa_insn_srctype::operator new): Likewise.
4194         (hsa_insn_packed::operator new): Likewise.
4195         (hsa_insn_cvt::operator new): Likewise.
4196         (hsa_insn_alloca::operator new): Likewise.
4197         (get_symbol_for_decl): Accept CONST_DECLs, put them to
4198         readonly segment.
4199         (gen_hsa_addr): Also process CONST_DECLs.
4200         (gen_hsa_addr_insns): Process CONST_DECLs by creating private
4201         copies.
4202         (gen_hsa_unary_operation): Make sure the function does
4203         not use bittype source type for firstbit and lastbit operations.
4204         (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
4205         source type.
4206         * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
4207         instruction.
4208         (emit_branch_insn): Renamed to emit_cond_branch_insn.
4209         Emit the width stored in the class.
4210         (emit_generic_branch_insn): New function.
4211         (emit_insn): Call emit_generic_branch_insn.
4212         (emit_signal_insn): Remove obsolete comment.  Update
4213         member variable name, pick a type according to profile.
4214         (emit_alloca_insn): Remove obsolete comment.
4215         (emit_atomic_insn): Likewise.
4216         (emit_queue_insn): Get segment and memory order from the IR object.
4217         (hsa_brig_section): Make allocate_new_chunk, chunks
4218         and cur_chunk provate, add a default NULL parameter to add method.
4219         (hsa_brig_section::add): Added a new parameter, store pointer to
4220         output data there if it is non-NULL.
4221         (emit_function_directives): Use this new parameter instead of
4222         calculating the pointer itself, fix function comment.
4223         (hsa_brig_emit_function): Add forgotten endian conversion.
4224         (hsa_output_kernels): Remove unnecessary building of
4225         kernel_dependencies_vector_type.
4226         (emit_immediate_operand): Declare.
4227         (emit_directive_variable): Also emit initializers of CONST_DECLs.
4228         (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
4229         (verify_function_arguments): Properly detect variadic
4230         arguments.
4231         * hsa-dump.c (hsa_width_specifier_name): New function.
4232         (dump_hsa_insn_1): Dump generic branch instructions, update signal
4233         member variable name.  Special dumping for queue objects.
4234         * ipa-hsa.c (process_hsa_functions): Adjust after renaming
4235         m_binded_functions to m_bound_functions.  Copy externally visible flag
4236         to the node.
4237         (ipa_hsa_write_summary): Likewise.
4238         (ipa_hsa_read_section): Likewise.
4240 2016-11-23  Richard Biener  <rguenther@suse.de>
4242         PR tree-optimization/78396
4243         * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
4244         vectorize try vectorizing an if-converted body using BB vectorization.
4246 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
4247             Alan Hayward  <alan.hayward@arm.com>
4248             David Sherwood  <david.sherwood@arm.com>
4250         * rtlanal.c (subreg_get_info): Use more local variables.
4251         Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
4252         occupies at least one register.  Assume that full hard registers
4253         have consistent endianness.  Share previously-duplicated if block.
4254         Rework the main handling so that it operates on independently-
4255         addressable YMODE-sized blocks.  Use subreg_size_lowpart_offset
4256         to check lowpart offsets, without trying to find an equivalent
4257         integer mode first.  Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
4258         as a final register-endianness correction.
4260 2016-11-23  Segher Boessenkool  <segher@kernel.crashing.org>
4262         PR target/77881
4263         PR bootstrap/78390
4264         PR target/78438
4265         PR bootstrap/78477
4266         * combine.c (make_compound_operation_int): Do not convert a subreg of
4267         a non-constant logical shift right to a zero_extract.  Handle the case
4268         where some zero bits have been shifted into the range covered by that
4269         subreg.
4271 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
4272             Alan Hayward  <alan.hayward@arm.com>
4273             David Sherwood  <david.sherwood@arm.com>
4275         * rtl.h (subreg_size_offset_from_lsb): Declare.
4276         (subreg_offset_from_lsb): New function.
4277         (subreg_size_lowpart_offset): Declare.
4278         (subreg_lowpart_offset): Turn into an inline function.
4279         (subreg_size_highpart_offset): Declare.
4280         (subreg_highpart_offset): Turn into an inline function.
4281         * emit-rtl.c (subreg_size_lowpart_offset): New function.
4282         (subreg_size_highpart_offset): Likewise
4283         * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
4285 2016-11-23  Richard Biener  <rguenther@suse.de>
4287         PR tree-optimization/78482
4288         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
4289         (remove_forwarder_block_with_phi): When merging with a loop
4290         header creates a new latch reset number of iteration information
4291         of the loop.
4293 2016-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4295         * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
4296         (*ashrsi3_extend0): ...this.  Accept constant integers.
4297         (*ashrsi3_extend2): Rename to...
4298         (*ashrsi3_extend1): ...this.
4299         (*ashrsi3_extend2): New pattern.
4300         (*lshrsi3_extend1): Accept constant integers.
4301         (*lshrsi3_extend2): Fix condition on operand 2.
4303 2016-11-23  Martin Liska  <mliska@suse.cz>
4305         * config/i386/i386.c: Initialize function pointer to NULL.
4307 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
4309         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4310         for A == C1 ? A : C2 to below.
4311         * match.pd: Move from above to here:
4312         (cond (eq (convert1? x) c1) (convert2? x) c2)
4313           -> (cond (eq x c1) c1 c2).
4315 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
4317         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4318         for A cmp C1 ? A : C2 to below, also simplify remaining code.
4319         * match.pd: Move and extend simplification from above to here:
4320         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
4321         * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
4322         (predicate_scalar_phi): Call fold_stmt using the new valueize func.
4324 2016-11-23  Martin Liska  <mliska@suse.cz>
4325             Martin Jambor  <mjambor@suse.cz>
4327         * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
4329 2016-11-23  Aldy Hernandez  <aldyh@redhat.com>
4331         PR target/78213
4332         * opts.c (finish_options): Set -fsyntax-only if running self tests.
4334 2016-11-23  Richard Biener  <rguenther@suse.de>
4336         PR middle-end/71762
4337         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
4338         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
4340 2016-11-23  Richard Biener  <rguenther@suse.de>
4342         PR lto/78472
4343         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
4344         fields.
4346 2016-11-23  Richard Biener  <rguenther@suse.de>
4347             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.rog>
4349         PR tree-optimization/78154
4350         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
4351         returns it's argument and the argument is nonnull.
4352         * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
4353         ATT_RETNONNULL_NOTHROW_LEAF.
4354         * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
4355         ATTR_RETNONNULL_NOTHROW_LEAF.
4356         (BUILT_IN_STPCPY): Likewise.
4357         (BUILT_IN_STPNCPY): Likewise.
4358         (BUILT_IN_MEMPCPY_CHK): Likewise.
4359         (BUILT_IN_STPCPY_CHK): Likewise.
4360         (BUILT_IN_STPNCPY_CHK): Likewise.
4361         (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4362         (BUILT_IN_STRNCAT): Likewise.
4363         (BUILT_IN_STRNCPY): Likewise.
4364         (BUILT_IN_MEMSET_CHK): Likewise.
4365         (BUILT_IN_STRCAT_CHK): Likewise.
4366         (BUILT_IN_STRCPY_CHK): Likewise.
4367         (BUILT_IN_STRNCAT_CHK): Likewise.
4368         (BUILT_IN_STRNCPY_CHK): Likewise.
4370 2016-11-23  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4372         * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4373         * fold-const.h (tree_expr_nonzero_p) : Declare.
4374         * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4376 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
4378         * system.h (HAVE_DESIGNATED_INITIALIZERS,
4379         HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4380         "defined" in macros.
4381         * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4382         * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4383         * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4385 2016-11-23  Georg-Johann Lay  <avr@gjlay.de>
4387         PR target/60300
4388         * config/avr/constraints.md (Csp): Widen range to [-11..6].
4389         * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4390         of RCALLs in prologue to 3.
4392 2016-11-22  Michael Collison  <michael.collison@arm.com>
4394         * config/aarch64/aarch64-protos.h
4395         (aarch64_and_split_imm1, aarch64_and_split_imm2)
4396         (aarch64_and_bitmask_imm): New prototypes
4397         * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4398         New overloaded function to create bit mask covering the
4399         lowest to highest bits set.
4400         (aarch64_and_split_imm2): New overloaded functions to create bit
4401         mask of zeros between first and last bit set.
4402         (aarch64_and_bitmask_imm): New function to determine if a integer
4403         is a valid two instruction "and" operation.
4404         * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4405         allowing wider range of constants with "and" operations.
4406         * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4407         "and" operator from matching restricted constant range used for
4408         ior and xor operators.
4409         * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4410         for constants in "and" operantions.
4411         (UsP constraint): New DImode constraint for constants
4412         in "and" operations.
4413         * config/aarch64/iterators.md (lconst2): New mode iterator.
4414         (LOGICAL2): New code iterator.
4415         * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4416         predicate.
4417         (aarch64_logical_and_operand): New predicate allowing extended
4418         constants for "and" operations.
4420 2016-11-22  Walter Lee  <walt@tilera.com>
4422         * config/tilegx/tilegx.md (trap): New pattern.
4423         * config/tilepro/tilepro.md (trap): Likewise.
4425 2016-11-22  Walter Lee  <walt@tilera.com>
4427         * config/tilegx/tilegx.md (*zero_extract): Use
4428         define_insn_and_split instead of define_insn; Handle pos + size >
4429         64.
4430         (*sign_extract): Likewise.
4432 2016-11-22  Marek Polacek  <polacek@redhat.com>
4434         PR tree-optimization/78455
4435         * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4437 2016-11-22  Ian Lance Taylor  <iant@golang.org>
4439         PR go/78431
4440         PR go/78432
4441         * godump.c (go_format_type): Always pass alignment as 1 when
4442         calling go_append_padding at end of struct/union.
4444 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
4446         PR target/78451
4447         * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4448         _mm512_setzero_hi): Removed.
4449         (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4450         _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4451         _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4452         _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4453         _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4454         _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4455         _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4456         _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4457         _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4458         _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4459         _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4460         _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4461         _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4462         _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4463         _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4464         _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4465         _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4466         _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4467         _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4468         _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4469         _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4470         _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4471         _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4472         _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4473         _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4474         _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4475         _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4476         _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4477         _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4478         _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4479         _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4480         _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4481         _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4482         _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4483         _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4484         _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4485         _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4486         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4487         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4488         _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4489         _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4490         _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4491         _mm512_setzero_qi or _mm512_setzero_hi.
4492         (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4493         _mm512_maskz_dbsad_epu8): Formatting fixes.
4494         (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4495         _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4496         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4497         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4498         _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4499         _mm512_setzero_qi or _mm512_setzero_hi.
4501 2016-11-22  Nathan Sidwell  <nathan@acm.org>
4503         * gcc-ar.c (main): Fix indentation.
4504         * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4505         * ggc-page.c (move_ptes_to_front): Fix formatting.
4506         * hsa-dump.c (dump_has_cfun): Fix indentation.
4507         * sel-sched-ir.h: Remove trailing blank lines.
4509 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
4510             Alexander Monakov  <amonakov@ispras.ru>
4512         * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4513         * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4514         (omp_clause_code_name): Add _simt_ name.
4515         (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4516         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4517         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4518         (scan_omp_simd): New function.
4519         (scan_omp_1_stmt): Use it in target regions if needed.
4520         (omp_max_vf): Don't max with omp_max_simt_vf.
4521         (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4522         OMP_CLAUSE__SIMT_ is present.
4523         (lower_rec_input_clauses): Compute maybe_simt from presence of
4524         OMP_CLAUSE__SIMT_.
4525         (lower_lastprivate_clauses): Likewise.
4526         (expand_omp_simd): Likewise.  Remove explicit offloaded region check.
4527         (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4528         * internal-fn.def (GOMP_USE_SIMT): New internal function.
4529         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4531 2016-11-22  Alexander Monakov  <amonakov@ispras.ru>
4533         * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4534         (expand_GOMP_SIMT_VF): New.
4535         (expand_GOMP_SIMT_LAST_LANE): New.
4536         (expand_GOMP_SIMT_ORDERED_PRED): New.
4537         (expand_GOMP_SIMT_VOTE_ANY): New.
4538         (expand_GOMP_SIMT_XCHG_BFLY): New.
4539         (expand_GOMP_SIMT_XCHG_IDX): New.
4540         * internal-fn.def (GOMP_SIMT_LANE): New.
4541         (GOMP_SIMT_VF): New.
4542         (GOMP_SIMT_LAST_LANE): New.
4543         (GOMP_SIMT_ORDERED_PRED): New.
4544         (GOMP_SIMT_VOTE_ANY): New.
4545         (GOMP_SIMT_XCHG_BFLY): New.
4546         (GOMP_SIMT_XCHG_IDX): New.
4547         * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4548         (create_omp_child_function): ...here.  Set "omp target entrypoint"
4549         or "omp declare target" attribute based on is_gimple_omp_offloaded.
4550         (omp_max_simt_vf): New.  Use it...
4551         (omp_max_vf): ...here.
4552         (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4553         (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4554         (lower_omp_ordered): Likewise, for "ordered" lowering.
4555         (expand_omp_simd): Add SIMT transforms.
4556         (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4557         (execute_omp_device_lower): New.
4558         (pass_data_omp_device_lower): New.
4559         (pass_omp_device_lower): New pass.
4560         (make_pass_omp_device_lower): New.
4561         * passes.def (pass_omp_device_lower): Position new pass.
4562         * tree-pass.h (PROP_gimple_lomp_dev): Define.
4563         (make_pass_omp_device_lower): Declare.
4565 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
4567         PR target/78451
4568         * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4569         (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4570         _mm_setzero_di.
4571         (_mm_maskz_load_epi64): Likewise.
4572         (_mm_setzero_hi): Removed.
4573         (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4574         _mm_setzero_di.
4575         (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4576         _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4577         _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4578         _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4579         _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4580         _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4581         _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4582         _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4583         _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4584         _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4585         _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4586         Likewise.
4587         (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4588         _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4589         _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4590         _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4591         _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4592         _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4593         _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4594         _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4595         _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4596         _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4597         _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4598         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4599         instead of _mm_setzero_hi.
4600         (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4601         _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4602         _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4603         _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4604         _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4605         _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4606         _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4607         _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4608         _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4609         _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4610         _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4611         _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4612         _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4613         _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4614         _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4615         _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4616         _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4617         _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4618         _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4619         _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4620         _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4621         _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4622         _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4623         _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4624         (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4625         _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4626         _mm_setzero_di.
4627         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4628         instead of _mm_setzero_hi.
4629         * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4630         _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4631         _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4632         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4633         _mm_setzero_si128 instead of _mm_setzero_di.
4634         (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4635         _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4636         _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4637         _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4638         _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4639         _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4640         _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4641         _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4642         _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4643         _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4644         _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4645         _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4646         _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4647         _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4648         _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4649         _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4650         _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4651         _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4652         _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4653         _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4654         _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4655         _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4656         _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4657         _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4658         _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4659         _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4660         _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4661         _mm512_maskz_insertf32x8): Formatting fixes.
4662         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4663         _mm_setzero_si128 instead of _mm_setzero_di.
4664         * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4665         _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4666         _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4667         _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4668         _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4669         _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4670         _mm_setzero_si128 instead of _mm_setzero_di.
4671         (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4672         Likewise in macros.
4673         * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4674         _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4675         _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4676         _mm_setzero_si128 instead of _mm_setzero_hi.
4677         (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4678         _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4679         _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4680         instead of _mm_setzero_di.
4681         (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4682         _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4683         _mm_setzero_hi.
4684         (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4685         _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4686         _mm_setzero_hi.
4687         (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4688         _mm_setzero_di.
4689         (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4690         _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4691         _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4693 2016-11-22  Carl Love  <cel@us.ibm.com>
4695         * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4696         equal and vector compare not equal.  The vector compares take two
4697         arguments of type vector bool char, vector bool short, vector bool int,
4698         vector bool long long with the same return type.
4699         * doc/extend.texi: Update built-in documentation file for the new
4700         powerpc built-ins.
4702 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
4704         * Makefile.in ($(lang_checks_parallelized)): Fix detection
4705         of -j argument.
4707 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4709         * config.gcc: Allow new rmprofile value for configure option
4710         --with-multilib-list.
4711         * config/arm/t-rmprofile: New file.
4712         * doc/install.texi (--with-multilib-list): Document new rmprofile value
4713         for ARM.
4715 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4717         PR target/78439
4718         * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4719         register operand in alternatives 4,5,6.
4721 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4723         PR target/77904
4724         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4725         in save register mask if it is needed.
4727 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
4729         PR tree-optimization/78436
4730         * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4731         (shift_bytes_in_array, shift_bytes_in_array_right,
4732         merged_store_group::apply_stores): Formatting fixes.
4733         (clear_bit_region): Likewise.  Use memset.
4734         (encode_tree_to_bitpos): Formatting fixes.  Fix comment typos - EPXR
4735         instead of EXPR and inerted instead of inserted.  Use memset instead
4736         of zero_char_buf.  For !BYTES_BIG_ENDIAN decrease byte_size by 1
4737         if shift_amnt is 0.
4739         PR middle-end/78416
4740         * expmed.c (expand_divmod): Use wide_int for computation of
4741         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
4742         Use size <= HOST_BITS_PER_WIDE_INT instead of
4743         HOST_BITS_PER_WIDE_INT >= size.
4745         PR tree-optimization/78445
4746         * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4747         any_complicated_phi, version loop even if flag_tree_loop_if_convert
4748         is 1.  Formatting fix.
4750 2016-11-22  Martin Liska  <mliska@suse.cz>
4752         PR ipa/78309
4753         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4754         (sem_function::get_hash): Use the new field.
4755         (sem_function::parse): Remove an argument from ctor.
4756         (sem_variable::parse): Likewise.
4757         (sem_variable::get_hash): Use the new field.
4758         (sem_item_optimizer::read_section): Use new ctor and set hash.
4759         * ipa-icf.h: _hash is removed from sem_item::sem_item,
4760         sem_variable::sem_variable, sem_function::sem_function.
4762 2016-11-21  Jeff Law  <law@redhat.com>
4764         PR target/68538
4765         * config/cris/cris.md: Don't call copy_to_mode_reg unless
4766         can_create_pseudo_p is true.
4768 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
4770         PR target/68803
4771         * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4772         *rotldi3_insert_7): New define_insns.
4774 2016-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
4776         * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4777         so that DImode can be allocated to FP/vector registers in more
4778         cases, and we can avoid direct move operations.  If the register
4779         needs reloading, prefer GPRs over FP/vector registers.  In the
4780         case of FPR vs. Altivec registers, prefer FPR registers unless we
4781         have the ISA 3.0 reg+offset scalar instructions.
4782         (movdi_internal64): Likewise.
4784 2016-11-21  Jakub Jelinek  <jakub@redhat.com>
4786         PR middle-end/67335
4787         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4788         for tmp simd array if DECL_NAME (parm) is NULL.
4790 2016-11-20  Jeff Law  <law@redhat.com>
4792         PR target/25128
4793         * config/m68k/predicates.md (swap_peephole_relational_operator): New
4794         predicate.
4795         * config/m68k/m68k.md (relational tests against 65535/65536): New
4796         peephole2.
4798 2016-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4800         * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4802 2016-11-21  Martin Sebor  <msebor@redhat.com>
4804         * doc/invoke.texi (-fprintf-return-value): Document that option
4805         is enabled by default.
4807 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
4809         * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4810         for-loop declaration of loop variable.
4811         (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4812         * config/avr/avr.c (avr_popcount_each_byte)
4813         (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4814         (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4815         (avr_expand_epilogue, avr_function_arg_advance)
4816         (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4817         (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4818         (avr_adjust_reg_alloc_order, output_reload_in_const)
4819         (avr_conditional_register_usage, avr_find_unused_d_reg)
4820         (avr_map_decompose, avr_fold_builtin): Same.
4822 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
4824         * config/avr/avr.c (avr_popcount): Remove static function.
4825         (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4827 2016-11-21  Richard Earnshaw  <rearnsha@arm.com>
4829         * arm.opt (mapcs-float): Delete option.
4830         * arm.c (arm_option_override): Remove hunk relating to
4831         TARGET_APCS_FLOAT.
4832         * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4834 2016-11-21  Richard Sandiford  <richard.sandiford@arm.com>
4836         * tree-tailcall.c (process_assignment): Simplify the check for
4837         a valid copy, allowing the source to be a local variable as
4838         well as an SSA name.
4839         (find_tail_calls): Allow copies between local variables to follow
4840         the call.  Allow the result to be stored in any local variable,
4841         even if it's an aggregate.
4842         (eliminate_tail_call): Check whether the result is an SSA name
4843         before updating its SSA_NAME_DEF_STMT.
4845 2016-11-21  David Malcolm  <dmalcolm@redhat.com>
4847         PR preprocessor/78324
4848         * input.c (get_substring_ranges_for_loc): Fail gracefully if
4849         -ftrack-macro-expansion has a value other than 2.
4851 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
4853         PR rtl-optimization/78400
4854         * shrink-wrap.c (try_shrink_wrapping_separate): Call
4855         df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4856         and df_update_exit_block_uses.
4858 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4860         PR c++/71973
4861         * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4862         new default-enabled warning..
4863         * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4864         (BT_PTR_CONST_STRING): Updated.
4865         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4866         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4867         * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4868         (strftime): Update builtin function.
4869         * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4870         * tree.h (const_tm_ptr_type_node): New type node.
4871         * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4872         const_tm_ptr_type_node.
4874 2016-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4876         PR tree-optimization/78413
4877         * tree-if-conv.c (versionable_outer_loop_p): Require that both
4878         inner and outer loop latches have single predecessors.
4880 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
4882         PR target/78093
4883         * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4884         (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4886 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4888         * rtl.h: Adjust prototype.
4889         * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4890         (dead_or_set_regno_p): Likewise.
4892 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4894         * rtl.h: Adjust prototype.
4895         * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4897 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4899         * function.c (contains): Change argument type to rtx_insn *.
4900         (prologue_contains): Likewise.
4901         (epilogue_contains): Likewise.
4902         (prologue_epilogue_contains): Likewise.
4903         * function.h: Adjust prototype.
4905 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4907         * optabs.c (emit_libcall_block): Change argument type to
4908         rtx_insn *.
4909         * optabs.h: Adjust prototype.
4911 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4913         * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4914         (fixup_reorder_chain): Adjust.
4915         * cfgrtl.h: Adjust prototype.
4917 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4919         * rtl.h: Adjust prototype.
4920         * rtlanal.c (replace_label_in_insn): Change argument type to
4921         rtx_insn *.
4923 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4925         * config/v850/v850.c (expand_prologue): Adjust.
4926         (expand_epilogue): Likewise.
4927         * expr.c (init_expr_target): Likewise.
4928         * genrecog.c (print_subroutine): Always make the argument type
4929         rtx_insn *.
4930         * recog.h: Adjust prototype.
4932 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4934         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4935         up variables to make some rtx_insn *.
4936         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4937         * config/arc/arc.c: Likewise.
4938         * config/arm/arm.c: Likewise.
4939         * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4940         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4941         Likewise.
4942         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4944 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4946         * config/arm/arm.c (legitimize_pic_address): Change to use
4947         rtx_insn * as the type of variables.
4948         (arm_pic_static_addr): Likewise.
4949         (arm_emit_movpair): Likewise.
4950         * config/c6x/c6x.c (reorg_split_calls): Likewise.
4951         * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4952         * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4953         * config/frv/frv.md: Likewise.
4954         * config/i386/i386-protos.h: Likewise.
4955         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4956         (ix86_split_fp_branch): Likewise.
4957         (predict_jump): Likewise.
4958         * config/ia64/ia64.c: Likewise.
4959         * config/mcore/mcore.c: Likewise.
4960         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4961         * config/s390/s390.c: Likewise.
4962         * config/s390/s390.md: Likewise.
4963         * config/spu/spu.md: Likewise.
4964         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4965         * lower-subreg.c (resolve_simple_move): Likewise.
4967 2016-11-20  Jeff Law  <law@redhat.com>
4969         PR target/48551
4970         * reload.h (struct target_reload): Make x_double_reg_address_ok
4971         be per-mode rather.
4972         * reload.c (find_reloads_address): Check if double_reg_address_ok
4973         is true for the mode of the memory reference.
4974         * reload1.c (init_reload): Initialize double_reg_address_ok for
4975         each mode.
4977 2016-11-20  Aldy Hernandez  <aldyh@redhat.com>
4979         PR middle-end/61409
4980         * tree-ssa-uninit.c: Define new global max_phi_args.
4981         (compute_uninit_opnds_pos): Use max_phi_args.
4982         (prune_uninit_phi_opnds): Same.
4983         (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4984         missing NUM_PREDS in function comment.
4985         (can_one_predicate_be_invalidated_p): New.
4986         (can_chain_union_be_invalidated_p): New.
4987         (flatten_out_predicate_chains): New.
4988         (uninit_ops_invalidate_phi_use): New.
4989         (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4991 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
4993         * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4994         * match.pd (A /[ex] B CMP C): New simplifications.
4996 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
4998         * match.pd (0 / X, X / X, X % X): New simplifications.
5000 2016-11-19  Jakub Jelinek  <jakub@redhat.com>
5002         * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
5003         when checking if callee's isa flags are subset of caller's isa flags.
5004         Fix comment wording.
5006         * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
5007         clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
5008         instead and using = 0 instead of &= 0.
5010         * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
5011         ix86_add_new_builtins): Formatting fixes.
5012         (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
5013         (ix86_get_builtin): Likewise.
5015         * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
5016         don't initialize it, don't use it for the case where it isn't
5017         provable %{z} nor using the same argument, instead move merge
5018         argument into a new pseudo and use that as target.  Formatting fixes.
5020 2016-11-19  Jeff Law  <law@redhat.com>
5022         PR target/25111
5023         * config/m68k/m68k.md (bsetdreg): New pattern.
5024         (bchgdreg, bclrdreg): Likewise.
5026 2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5028         PR target/78426
5029         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
5030         instead of force_reg.
5031         (sh_expand_setmem): Likewise.
5033 2016-11-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
5035         * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
5037 2016-11-18  Walter Lee  <walt@tilera.com>
5039         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
5040           end-of-bundle marker for consecutive barriers.
5042 2016-11-18  Walter Lee  <walt@tilera.com>
5044         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
5046 2016-11-18  Jakub Jelinek  <jakub@redhat.com>
5048         PR middle-end/78419
5049         * multiple_target.c (get_attr_len): Start with argnum and increment
5050         argnum on every arg.  Use strchr in a loop instead of counting commas
5051         manually.
5052         (get_attr_str): Increment argnum for every comma in the string.
5053         (separate_attrs): Use for instead of while loop, simplify.
5054         (expand_target_clones): Rename defenition argument to definition.
5055         Free attrs and attr_str even when diagnosing errors.  Temporarily
5056         change input_location around targetm.target_option.valid_attribute_p
5057         calls.  Don't emit warning or errors if that function fails.
5059         * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
5061         PR debug/78191
5062         * dwarf2out.c (abbrev_opt_base_type_end): New variable.
5063         (die_abbrev_cmp): Sort dies with die_abbrev smaller than
5064         abbrev_opt_base_type_end only by increasing die_abbrev, before
5065         any other dies.
5066         (optimize_abbrev_table): Don't change abbrev numbers of
5067         base types and CU or optimize implicit consts in them if
5068         calc_base_type_die_sizes has been called during build_abbrev_table.
5069         (calc_base_type_die_sizes): If abbrev_opt_start, set
5070         abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
5072 2016-11-18  Jeff Law  <law@redhat.com>
5074         PR target/25112
5075         * config/m68k/m68k.c (moveq feeding equality comparison): New
5076         peepholes.
5077         * config/m68k/predicates.md (addq_subq_operand): New predicate.
5078         (equality_comparison_operator): Likewise.
5080 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
5082         * rtlanal.c (load_extend_op): Move to...
5083         * rtl.h: ...here and make inline.
5085 2016-11-18  Terry Guo  <terry.guo@arm.com>
5086             Thomas Preud'homme  <thomas.preudhomme@arm.com>
5088         * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
5089         * config/arm/arm-opts.h: Include arm-flags.h.
5090         (struct arm_arch_core_flag): Define.
5091         (arm_arch_core_flags): Define.
5092         * config/arm/arm-protos.h: Include arm-flags.h
5093         (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
5094         FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
5095         FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
5096         FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
5097         FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
5098         FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
5099         FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
5100         FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
5101         FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
5102         FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
5103         FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
5104         FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
5105         FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
5106         FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
5107         ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
5108         ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
5109         ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
5110         ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
5111         ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
5112         ARM_FSET_CPU_SUBSET): Move to ...
5113         * config/arm/arm-flags.h: This new file.
5114         * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
5115         (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
5116         (TARGET_MODE_SPECS): Define.
5117         (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
5119 2016-11-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5121         * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
5122         FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
5123         FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
5124         FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
5125         FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
5126         FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
5127         FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
5128         missing and make value unsigned.
5129         (arm_feature_set): Use unsigned entries instead of unsigned long.
5131 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5133         Re-apply after PR bootstrap/77359 is fixed:
5134         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5136         * explow.c (get_dynamic_stack_size): Take known alignment of stack
5137         pointer + STACK_DYNAMIC_OFFSET into account when calculating the
5138         size needed.
5140 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5142         PR bootstrap/77359
5143         * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
5144         variables in functions calling alloca.  Also update the ASCII
5145         drawings.
5146         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
5147         (STACK_DYNAMIC_OFFSET): Likewise.
5148         * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
5149         (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
5150         macros to aix.h.
5152 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
5153             Alan Hayward  <alan.hayward@arm.com>
5154             David Sherwood  <david.sherwood@arm.com>
5156         * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
5157         * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
5158         (add_const_value_attribute): Likewise.
5159         * explow.c (plus_constant): Likewise.
5160         * expmed.c (expand_mult, make_tree): Likewise.
5161         * expr.c (convert_modes): Likewise.
5162         * loop-doloop.c (doloop_optimize): Likewise.
5163         * postreload.c (reload_cse_simplify_set): Likewise.
5164         * simplify-rtx.c (simplify_const_unary_operation): Likewise
5165         (simplify_binary_operation_1, simplify_const_binary_operation):
5166         Likewise.
5167         (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
5168         * wide-int.h: Update documentation to recommend rtx_mode_t
5169         instead of std::make_pair.
5171 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
5172             Alan Hayward  <alan.hayward@arm.com>
5173             David Sherwood  <david.sherwood@arm.com>
5175         * tree.h (SET_DECL_MODE): New macro.
5176         * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
5177         (expand_gimple_basic_block): Likewise.
5178         * function.c (split_complex_args): Likeise.
5179         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5180         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
5181         * stor-layout.c (layout_decl, relayout_decl): Likewise.
5182         (finish_bitfield_representative): Likewise.
5183         * tree.c (make_node_stat): Likewise.
5184         * tree-inline.c (remap_ssa_name): Likewise.
5185         (tree_function_versioning): Likewise.
5186         * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
5187         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5188         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
5189         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
5190         * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
5191         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5192         * varasm.c (make_debug_expr_from_rtl): Likewise.
5194 2016-11-18  Segher Boessenkool  <segher@kernel.crashing.org>
5196         PR rtl-optimization/71785
5197         * bb-reorder.c (maybe_duplicate_computed_goto): New function.
5198         (duplicate_computed_gotos): New function.
5199         (pass_duplicate_computed_gotos::execute): Rewrite.
5201 2016-11-17  Jeff Law  <law@redhat.com>
5203         PR target/47192
5204         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
5205         barrier prior to deallocating the stack.
5207 2016-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
5209         * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
5210         to make better use of cmem loads in the case where a single bit is
5211         being accessed.
5212         * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
5214 2016-11-17  Andrew Senkevich <andrew.senkevich@intel.com>
5216         * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
5217         F_AVX5124FMAPS.
5218         (isa_names_table): Handle new features.
5220 2016-11-17  Kirill Yukhin  <kirill.yukhin@gmail.com>
5221             Andrew Senkevich <andrew.senkevich@intel.com>
5223         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
5224         OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
5225         OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
5226         (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
5227         * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
5228         * config/i386/avx5124fmapsintrin.h: New file.
5229         * config/i386/avx5124vnniwintrin.h: Ditto.
5230         * config/i386/constraints.md (h): New constraint.
5231         * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
5232         * config/i386/driver-i386.c (host_detect_local_cpu):
5233         Detect avx5124fmaps, avx5124vnniw.
5234         * config/i386/i386-builtin-types.def: Add types
5235         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
5236         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
5237         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
5238         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
5239         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
5240         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
5241         * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
5242         __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
5243         __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
5244         __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
5245         __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
5246         __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
5247         __builtin_ia32_vp4dpwssds_mask): New.
5248         * config/i386/i386-c.c (ix86_target_macros_internal):
5249         Define __AVX5124FMAPS__, __AVX5124VNNIW__.
5250         * config/i386/i386-modes.def: Fixed comment typos, added new
5251         modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
5252         * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
5253         -mavx5124vnniw.
5254         (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
5255         (ix86_option_override_internal): Handle new options.
5256         (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
5257         avx5124vnniw.
5258         (ix86_expand_builtin): Handle new builtins.
5259         (ix86_additional_allocno_class_p): New.
5260         * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
5261         TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
5262         (reg_class): Add MOD4_SSE_REGS.
5263         (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
5264         * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
5265         * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
5266         avx5124vnniwintrin.h.
5267         * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
5268         UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
5269         (define_mode_iterator IMOD4): New.
5270         (define_mode_attr imod4_narrow): Ditto.
5271         (define_insn "mov<mode>"): Ditto.
5272         (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
5273         (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
5274         (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
5275         (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
5276         (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
5277         (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
5278         (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
5279         (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
5280         (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
5281         (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
5282         (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
5283         (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
5284         (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
5285         (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
5286         (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
5287         (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
5288         (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
5289         (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
5290         * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
5291         * genmodes.c (mode_size_inline): Extend return type.
5292         * machmode.h (mode_size, mode_base_align): Extend type.
5294 2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
5296         PR target/78101
5297         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
5298         the appropriate checks for SFmode/DFmode load/stores in GPR
5299         registers.
5300         (fusion_addis_mem_combo_store): Likewise.
5301         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
5302         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
5303         d-form instructions for traditional Altivec registers.
5304         (emit_fusion_p9_load): Likewise.
5305         (emit_fusion_p9_store): Likewise.
5306         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
5307         early clobber from scratch register.  Do not match if the register
5308         being stored is the scratch register.
5309         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
5310         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
5311         instructions for traditional Altivec registers.
5312         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5313         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5314         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5316 2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5318         PR target/77933
5319         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
5320         being live in the function and lr needing to be saved.  Distinguish
5321         between already saved pushable registers and registers to push.
5322         Check for LR being an available pushable register.
5324 2016-11-17  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5326         * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
5327         string input is a string constant.
5328         * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
5329         via cmpstrnsi even if neither string is constant.
5331 2016-11-17  Jakub Jelinek  <jakub@redhat.com>
5333         PR middle-end/78201
5334         * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
5335         Don't test decl != NULL.  Don't look at DECL_SIZE, but DECL_SIZE_UNIT
5336         instead, return false if it is NULL, or doesn't fit into uhwi, or
5337         is larger or equal to targetm.max_anchor_offset.
5339 2016-11-17  Pip Cet  <pipcet@gmail.com>
5340             Eric Botcazou  <ebotcazou@adacore.com>
5342         PR rtl-optimization/78355
5343         * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
5344         needs to deal with unaligned accesses.
5345         * doc/tm.texi: Regenerate.
5346         * lra-constraints.c (simplify_operand_subreg): Only invoke
5347         SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
5349 2016-11-17  David Malcolm  <dmalcolm@redhat.com>
5351         * input.c (selftest::test_lexer_string_locations_long_line): New
5352         function.
5353         (selftest::test_lexer_string_locations_raw_string_multiline): New
5354         function.
5355         (selftest::input_c_tests): Call the new functions, via
5356         for_each_line_table_case.
5358 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5360         * config/aarch64/aarch64.md (mov<mode>): Call
5361         aarch64_split_dimode_const_store on DImode constant stores.
5362         * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5363         New prototype.
5364         * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5365         function.
5367 2016-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5368             Richard Biener  <rguenther@suse.de>
5370         PR tree-optimization/77848
5371         * tree-if-conv.c (tree_if_conversion): Always version loops unless
5372         the user specified -ftree-loop-if-convert.
5374 2016-11-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5376         PR target/77308
5377         * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5378         *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5379         *thumb2_strd_base_neg): Recognize insn regardless of
5380         current_tune->prefer_ldrd_strd.
5381         * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5382         whenever possible.
5384 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
5386         * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5387         instruction type.
5389 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
5391         * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5392         for arcem.
5393         * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5394         * config/arc/arc-cpus.def (quarkse_em): Add.
5395         * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5396         * config/arc/arc-opts.h (FPX_QK): Define.
5397         * config/arc/arc-tables.opt: Regenerate.
5398         * config/arc/arc.c (gen_compare_reg): Change.
5399         (arc_register_move_cost): Avoid Dy,Dx moves.
5400         * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5401         (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5402         * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5403         New expands.
5404         * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5405         (fix_truncsfsi2_fpu): Rename.
5406         * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5407         (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5408         (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5409         * config/arc/t-multilib: Regenerate.
5411 2016-11-17  Georg-Johann Lay  <avr@gjlay.de>
5413         * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5414         appropriate.
5415         (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5416         (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5417         (avr_rtx_costs_1, extra_constraint_Q): Same.
5418         (avr_address_cost): Use SUBREG_P if possible.
5420 2016-11-17  Richard Biener  <rguenther@suse.de>
5422         PR middle-end/78383
5423         * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5424         non-local goto into CFG.
5426 2016-11-17  Richard Biener  <rguenther@suse.de>
5428         * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5429         backward compatibility.
5430         * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5431         * tree-if-conv.c (pass_if_conversion::gate): Do not test
5432         flag_tree_loop_if_convert_stores.
5433         (pass_if_conversion::execute): Likewise.
5435 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5437         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5438         const_double code before calling aarch64_float_const_zero_rtx_p.
5440 2016-11-17  Richard Biener  <rguenther@suse.de>
5442         PR tree-optimization/78306
5443         * ipa-inline-analysis.c (initialize_inline_failed): Do not
5444         inhibit inlining if function calls cilk_spawn.
5445         (can_inline_edge_p): Likewise.
5447 2016-11-17  Richard Biener  <rguenther@suse.de>
5449         PR middle-end/78305
5450         * fold-const.c (negate_expr_p): Fix multiplication case.
5452 2016-11-17  Chung-Lin Tang  <cltang@codesourcery.com>
5454         PR target/78357
5455         * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5456         condition.
5457         (TARGET_INIT_LIBFUNCS): Delete definition and...
5458         * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5459         comments.
5461 2016-11-17  Krister Walfridsson  <krister.walfridsson@gmail.com>
5463         * config/netbsd-stdint.h: New.
5464         * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5465         (x86_64-*-netbsd*): Likewise.
5467 2016-11-16  Andrew PInski  <apinski@cavium.com>
5469         * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5470         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5471         flag_aarch64_verbose_cost instead of checking for details dump.
5472         (aarch64_rtx_costs_wrapper): Likewise.
5474 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
5476         PR rtl-optimization/78378
5477         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5478         inner only if pos is 0.  Fix up formatting.
5480 2016-11-17  Alan Modra  <amodra@gmail.com>
5482         PR rtl-optimization/78325
5483         PR rtl-optimization/70890
5484         * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5485         for dead regno.
5487 2016-11-16  Jason Merrill  <jason@redhat.com>
5489         * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5491 2016-11-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5492             Richard Biener  <rguenther@suse.de>
5494         PR tree-optimization/77848
5495         * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5496         an outer loop, only save basic block aux information for the inner
5497         loop.
5498         (versionable_outer_loop_p): New function.
5499         (tree_if_conversion): Version the outer loop instead of the inner
5500         one if the pattern will be recognized for outer-loop
5501         vectorization.
5503 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
5505         * gcc/bb-reorder.c: Remove 'toplev.h' include.
5506         (pass_partition_blocks::gate): No longer check
5507         user_defined_section_attribute, instead check the function decl
5508         for a section attribute.
5509         * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5510         set user_defined_section_attribute.
5511         * gcc/final.c (rest_of_handle_final): Likewise.
5512         * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5513         * gcc/toplev.h: Remove declaration of
5514         user_defined_section_attribute.
5516 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
5518         * config/mips/mips.md (casesi_internal_mips16_<mode>):
5519         Explicitly switch between JR and JRC for the table jump.  Adjust
5520         instruction count.
5522 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
5524         * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5525         `insn_count' to 11 rather than 16.
5527 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
5529         * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5530         `ltu' rather than `leu' operation in the RTL pattern
5532 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
5534         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5535         missing <d> instruction prefixes throughout.  Correct
5536         formatting.
5538 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
5540         * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5541         rather than R_MIPS_JALR relocation in microMIPS code.  Do not
5542         cancel short delay slots in PIC call relaxation.
5544 2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5546         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5547         general register with general register or ARM constant into SP
5548         register.
5550 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
5552         PR fortran/78299
5553         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5554         that loop->header == body_bb if broken_loop.
5556 2015-11-16  Wilco Dijkstra  <wdijkstr@arm.com>
5558         * tree-ssa-math-opts.c (bswap_replace): Remove test
5559         of SLOW_UNALIGNED_ACCESS.
5561 2016-11-16  Alexander Monakov  <amonakov@ispras.ru>
5563         * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5564         is selected.  Pass -mgomp to offload compiler in OpenMP case.
5565         * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5566         declaration from nvptx.c.
5567         (nvptx_gen_shuffle): Declare.
5568         (nvptx_output_set_softstack): Declare.
5569         * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5570         (need_softstack_decl): New variable.
5571         (need_unisimt_decl): New variable.
5572         (diagnose_openacc_conflict): New.  Use it...
5573         (nvptx_option_override): ...here.  Handle TARGET_GOMP.
5574         (nvptx_encode_section_info): Handle "shared" attribute.
5575         (write_as_kernel): Restrict to OpenACC target regions.
5576         (init_softstack_frame): New.
5577         (nvptx_init_unisimt_predicate): New.
5578         (write_omp_entry): New.  Use it...
5579         (nvptx_declare_function_name): ...here to emit OpenMP target region
5580         entrypoints.  Handle TARGET_SOFT_STACK.  Call
5581         nvptx_init_unisimt_predicate.
5582         (nvptx_output_set_softstack): New.
5583         (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5584         (nvptx_gen_shuffle): Export.
5585         (nvptx_output_call_insn): Handle COND_EXEC patterns.  Emit instruction
5586         predicate.
5587         (nvptx_print_operand): Fix handling of instruction predicates.
5588         (nvptx_get_unisimt_master): New helper function.
5589         (nvptx_get_unisimt_predicate): Ditto.
5590         (nvptx_call_insn_is_syscall_p): Ditto.
5591         (nvptx_unisimt_handle_set): Ditto.
5592         (nvptx_reorg_uniform_simt): New.  Transform code for -muniform-simt.
5593         (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5594         (nvptx_handle_shared_attribute): New.  Use it...
5595         (nvptx_attribute_table): ... here (new entry).
5596         (nvptx_record_offload_symbol): Handle NULL attributes.
5597         (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5598         (nvptx_simt_vf): New.
5599         (TARGET_SIMT_VF): Define.
5600         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5601         __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5602         -muniform-simt option is active.
5603         (STACK_SIZE_MODE): Define.
5604         (FIXED_REGISTERS): Adjust.
5605         (SOFTSTACK_SLOT_REGNUM): New.
5606         (SOFTSTACK_PREV_REGNUM): New.
5607         (REGISTER_NAMES): Adjust.
5608         (struct machine_function): New fields.
5609         * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5610         (UNSPEC_VOTE_BALLOT): Ditto.
5611         (UNSPEC_LANEID): Ditto.
5612         (UNSPECV_NOUNROLL): Ditto.
5613         (atomic): New attribute.
5614         (predicable): New attribute.  Generate predicated forms via
5615         define_cond_exec.
5616         (br_true): Mark as not predicable.
5617         (br_false): Ditto.
5618         (br_true_uni): Ditto.
5619         (br_false_uni): Ditto.
5620         (return): Ditto.
5621         (trap_if_true): Ditto.
5622         (trap_if_false): Ditto.
5623         (nvptx_fork): Ditto.
5624         (nvptx_forked): Ditto.
5625         (nvptx_joining): Ditto.
5626         (nvptx_join): Ditto.
5627         (nvptx_barsync): Ditto.
5628         (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5629         (allocate_stack): Implement for TARGET_SOFT_STACK.  Remove unused code.
5630         (allocate_stack_<mode>): Remove unused pattern.
5631         (set_softstack_insn): New pattern.
5632         (restore_stack_block): Handle for TARGET_SOFT_STACK.
5633         (nvptx_vote_ballot): New pattern.
5634         (omp_simt_lane): Ditto.
5635         (omp_simt_last_lane): Ditto.
5636         (omp_simt_ordered): Ditto.
5637         (omp_simt_vote_any): Ditto.
5638         (omp_simt_xchg_bfly): Ditto.
5639         (omp_simt_xchg_idx): Ditto.
5640         (nvptx_nounroll): Ditto.
5641         (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5642         (atomic_exchange<mode>): Ditto.
5643         (atomic_fetch_add<mode>): Ditto.
5644         (atomic_fetch_addsf): Ditto.
5645         (atomic_fetch_<logic><mode>): Ditto.
5646         * config/nvptx/nvptx.opt (msoft-stack): New option.
5647         (muniform-simt): Ditto.
5648         (mgomp): Ditto.
5649         * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5650         * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5651         * doc/invoke.texi (msoft-stack): Document.
5652         (muniform-simt): Document
5653         (mgomp): Document.
5654         * doc/tm.texi: Regenerate.
5655         * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5656         * target.def: Define it.
5657         * target-insns.def (omp_simt_lane): New.
5658         (omp_simt_last_lane): New.
5659         (omp_simt_ordered): New.
5660         (omp_simt_vote_any): New.
5661         (omp_simt_xchg_bfly): New.
5662         (omp_simt_xchg_idx): New.
5664 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
5666         * config/mips/mips-protos.h (mips_set_text_contents_type): New
5667         prototype.
5668         * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5669         (ASM_OUTPUT_CASE_END): Likewise.
5670         * config/mips/mips.c (mips_set_text_contents_type): New function.
5671         (mips16_emit_constants): Record the pool's initial label number
5672         with the `consttable' insn.  Emit a `consttable_end' insn at the end.
5673         (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5674         for `consttable' insns.
5675         (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5676         for `consttable_end' insns.
5677         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5678         (consttable): Add operand.
5679         (consttable_end): New insn.
5681 2016-11-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
5683         * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5684         * tree-if-conv.c (tree_if_conversion): Make public.
5685         * * tree-if-conv.h: New file.
5686         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5687         dynamic alias checks for epilogues.
5688         * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5689         * tree-vect-loop.c: include tree-if-conv.h.
5690         (new_loop_vec_info): Add zeroing orig_loop_info field.
5691         (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5692         (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5693         if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5694         using passed argument.
5695         (vect_transform_loop): Check if created epilogue should be returned
5696         for further vectorization with less vf.  If-convert epilogue if
5697         required. Print vectorization success for epilogue.
5698         * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5699         if it is required, pass loop_vinfo produced during vectorization of
5700         loop body to vect_analyze_loop.
5701         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5702         orig_loop_info.
5703         (LOOP_VINFO_ORIG_LOOP_INFO): New.
5704         (LOOP_VINFO_EPILOGUE_P): New.
5705         (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5706         (vect_do_peeling): Change prototype to return epilogue.
5707         (vect_analyze_loop): Add argument of loop_vec_info type.
5708         (vect_transform_loop): Return created loop.
5710 2016-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
5712         * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5713         component as used also if LR_REGNO is a live input to the bb.
5714         * df-scan.c (df_get_entry_block_def_set): Return immediately after
5715         clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5716         (df_get_exit_block_use_set): Ditto.
5717         * df.h (df_scan_flags): New enum.
5718         * shrink-wrap.c (try_shrink_wrapping_separate): Set
5719         DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5720         df_update_entry_block_defs and df_update_exit_block_uses
5721         at the start; clear the flag and call those functions at the end.
5723 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5724             Alan Hayward  <alan.hayward@arm.com>
5725             David Sherwood  <david.sherwood@arm.com>
5727         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5728         nb_iterations to the number of latch iterations rather than the
5729         number of loop iterations.
5731 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5732             Alan Hayward  <alan.hayward@arm.com>
5733             David Sherwood  <david.sherwood@arm.com>
5735         * combine.c (maybe_swap_commutative_operands): New function.
5736         (combine_simplify_rtx): Use it.
5737         (change_zero_ext): Likewise.
5738         (make_compound_operation_int): New function, split out of...
5739         (make_compound_operation): ...here.  Use
5740         maybe_swap_commutative_operands for both.
5742 2016-11-16  Richard Earnshaw  <rearnsha@arm.com>
5744         * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5745         (neon-vfpv3): New FPU, currently an alias for 'neon'.
5746         * arm/arm-tables.opt: Regenerated.
5747         * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5748         neon-vfpv3.
5749         * doc/invoke.texi (ARM: -mfpu): Document new options.  Note that 'vfp'
5750         and 'neon' are aliases for specific implementations.
5752 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5753             Alan Hayward  <alan.hayward@arm.com>
5754             David Sherwood  <david.sherwood@arm.com>
5756         * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5757         and use it in the final call to gen_rtx_fmt_ee.
5758         (expand_vec_cond_expr): Update accordingly.
5759         (expand_vec_cmp_expr): Likewise.
5761 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5762             Alan Hayward  <alan.hayward@arm.com>
5763             David Sherwood  <david.sherwood@arm.com>
5765         * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5767 2016-11-16  Richard Biener  <rguenther@suse.de>
5769         PR middle-end/78333
5770         * gimplify.c (gimplify_function_tree): Do not instrument
5771         GNU extern inline functions.
5773 2016-11-16  Martin Liska  <mliska@suse.cz>
5775         PR sanitizer/78270
5776         * gimplify.c (gimplify_switch_expr): Always save previous
5777         gimplify_ctxp->live_switch_vars.
5779 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
5781         * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5782         zero_extract operations to allow a movb to occur.
5783         * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5784         * testsuite/gcc.target/arc/movb-2.c: Likewise.
5785         * testsuite/gcc.target/arc/movb-5.c: Likewise.
5786         * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5787         little endian arc.
5789 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5790             Alan Hayward  <alan.hayward@arm.com>
5791             David Sherwood  <david.sherwood@arm.com>
5793         * expr.c (emit_group_load_1): Tighten check for whether an
5794         access involves only one operand of a CONCAT.  Use extract_bit_field
5795         for constants if the bit range does span the whole operand.
5797 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5798             Alan Hayward  <alan.hayward@arm.com>
5799             David Sherwood  <david.sherwood@arm.com>
5801         * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5803 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5804             Alan Hayward  <alan.hayward@arm.com>
5805             David Sherwood  <david.sherwood@arm.com>
5807         * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5808         all three iteration counts with an any_* test.  Use a single update
5809         for each count.  Fix the calculation of nb_iterations_estimate.
5811 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5813         * config/pdp11/pdp11.c: Include dbxout.h.
5815 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
5817         * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5819 2016-11-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5821         PR target/78364
5822         * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5823         proper ranges for an SBFX instruction.
5824         (extzv_t2): Likewise for UBFX.
5826 2016-11-16  Richard Biener  <rguenther@suse.de>
5828         PR tree-optimization/78348
5829         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5830         (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5831         (classify_partition): Set PKIND_MEMCPY if dependence analysis
5832         revealed no dependency, PKIND_MEMMOVE otherwise.
5834 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
5836         PR sanitizer/77823
5837         * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5838         it points to non-NULL tree, use it instead of ubsan_create_data.
5839         (instrument_si_overflow): Handle vector signed integer overflow
5840         checking.
5841         * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5842         * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5843         vector IFN_UBSAN_CHECK_*.
5844         * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5845         pass it through to ubsan_build_overflow_builtin.
5846         (expand_neg_overflow, expand_mul_overflow): Likewise.
5847         (expand_vector_ubsan_overflow): New function.
5848         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5849         expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5850         (expand_arith_overflow): Adjust expand_*_overflow callers.
5852 2016-11-16  Matthias Klose  <doko@ubuntu.com>
5854         * doc/install.texi: Remove references to java/libjava.
5856 2016-11-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
5858         * tree-ssa-coalesce.c (register_default_def): Remove
5859         register_ssa_partition.
5860         (create_outofssa_var_map): Likewise.
5861         * tree-ssa-live.c (register_ssa_partition_check): Remove.
5862         * tree-ssa-live.h (register_ssa_partition): Likewise.
5864 2016-11-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5866         * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5867         Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5868         Use DEF_ATTR_STRING for string arguments.  Use RTL_HASH for
5869         integer arguments.  Only set ATTR_PERMANENT_P on newly hashed
5870         rtx when all sub-rtx are also permanent.
5871         (attr_eq): Simplify.
5872         (attr_copy_rtx): Remove.
5873         (make_canonical, get_attr_value): Use attr_equal_p.
5874         (copy_boolean): Rehash NOT.
5875         (simplify_test_exp_in_temp,
5876         optimize_attrs): Remove call to attr_copy_rtx.
5877         (attr_alt_intersection, attr_alt_union,
5878         attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5879         (make_automaton_attrs): Use attr_eq.
5881 2016-11-15  Matthias Klose  <doko@ubuntu.com>
5883         * doc/install.texi: Remove references to java/libjava.
5884         * doc/sourcebuild.texi: Likewise.
5885         * doc/invoke.texi: Likewise.
5886         * doc/standards.texi: Likewise.
5888 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
5889             Alan Hayward  <alan.hayward@arm.com>
5890             David Sherwood  <david.sherwood@arm.com>
5892         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5893         of VOIDmode.
5894         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5895         * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5896         * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5897         * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5898         * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5899         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5900         * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5902 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
5903             Alan Hayward  <alan.hayward@arm.com>
5904             David Sherwood  <david.sherwood@arm.com>
5906         * dce.c (check_argument_store): Pass the size instead of
5907         the memory reference.
5908         (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5910 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
5911             Alan Hayward  <alan.hayward@arm.com>
5912             David Sherwood  <david.sherwood@arm.com>
5914         * alias.c (canon_rtx): Use simplify_gen_binary.
5916 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
5917             Alan Hayward  <alan.hayward@arm.com>
5918             David Sherwood  <david.sherwood@arm.com>
5920         * rtl.h (load_extend_op): Declare.
5921         * rtlanal.c (load_extend_op): New function.
5922         (nonzero_bits1): Use it.
5923         (num_sign_bit_copies1): Likewise.
5924         * cse.c (cse_insn): Likewise.
5925         * fold-const.c (fold_single_bit_test): Likewise.
5926         (fold_unary_loc): Likewise.
5927         * fwprop.c (free_load_extend): Likewise.
5928         * postreload.c (reload_cse_simplify_set): Likewise.
5929         (reload_cse_simplify_operands): Likewise.
5930         * combine.c (try_combine): Likewise.
5931         (simplify_set): Likewise.  Remove redundant SUBREG_BYTE and
5932         subreg_lowpart_p checks.
5934 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
5935             Alan Hayward  <alan.hayward@arm.com>
5936             David Sherwood  <david.sherwood@arm.com>
5938         * combine.c (simplify_shift_const_1): Use the number of bits
5939         in the inner mode to determine the range of the shift.
5940         When handling shifts of vectors, skip any rules that apply
5941         only to scalars.
5943 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
5944             Alan Hayward  <alan.hayward@arm.com>
5945             David Sherwood  <david.sherwood@arm.com>
5947         * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5948         handling VOIDmode.
5950 2016-11-15  Matthias Klose  <doko@ubuntu.com>
5952         * doc/install.texi: Remove references to gcj/libjava.
5953         * doc/invoke.texi: Likewise.
5955 2016-11-15  Jeff Law  <law@redhat.com>
5957         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5958         parameter.  Callers changed.
5959         (check-subpath_and_update_thread_path): Extracted from
5960         fsm_find_control_statement_thread_paths.
5961         (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5962         (handle_phi, handle_assignment): Allow any constant node, not
5963         just INTEGER_CST.
5965 2016-11-15  Claudiu Zissulescu  <claziss@synopsys.com>
5967         * config/arc/arc-arch.h: New file.
5968         * config/arc/arc-arches.def: Likewise.
5969         * config/arc/arc-cpus.def: Likewise.
5970         * config/arc/arc-options.def: Likewise.
5971         * config/arc/t-multilib: Likewise.
5972         * config/arc/genmultilib.awk: Likewise.
5973         * config/arc/genoptions.awk: Likewise.
5974         * config/arc/arc-tables.opt: Likewise.
5975         * config/arc/driver-arc.c: Likewise.
5976         * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5977         * common/config/arc/arc-common.c (arc_handle_option): Trace
5978         toggled options.
5979         * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5980         options; check for supported cpu against arc-cpus.def file.
5981         (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5982         TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5983         * config/arc/arc-c.def: Add emacs local variables.
5984         * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5985         (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5986         (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5987         (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5988         (DEFAULT_arc_fpu_build): Define.
5989         (DEFAULT_arc_mpy_option): Define.
5990         * config/arc/arc-protos.h (arc_init): Delete.
5991         * config/arc/arc.c (arc_cpu_name): New variable.
5992         (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5993         (arc_arc700, arc_arc600, arc_arc601): New variable.
5994         (arc_init): Add static; remove selection of default tune value,
5995         cleanup obsolete error messages.
5996         (arc_override_options): Make use of .def files for selecting the
5997         right cpu and option configurations.
5998         * config/arc/arc.h (stdbool.h): Include.
5999         (TARGET_CPU_DEFAULT): Define.
6000         (CPP_SPEC): Remove mcpu=NPS400 handling.
6001         (arc_cpu_to_as): Declare.
6002         (EXTRA_SPEC_FUNCTIONS): Define.
6003         (OPTION_DEFAULT_SPECS): Likewise.
6004         (ASM_DEFAULT): Remove.
6005         (ASM_SPEC): Use arc_cpu_to_as.
6006         (DRIVER_SELF_SPECS): Remove deprecated options.
6007         (arc_base_cpu): Declare.
6008         (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
6009         (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
6010         variable.
6011         (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
6012         * config/arc/arc.md (attr_cpu): Remove.
6013         * config/arc/arc.opt (mno-mpy): Deprecate.
6014         (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
6015         (mcpu=ARCHS): Remove.
6016         (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
6017         Deprecate.
6018         (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
6019         (arc_fpu): Use new defines.
6020         (mpy-option): Change to use numeric or string like inputs.
6021         * config/arc/t-arc (driver-arc.o): New target.
6022         (arc-cpus, t-multilib, arc-tables.opt): Likewise.
6023         * config/arc/t-arc-newlib: Delete.
6024         * config/arc/t-arc-uClibc: Renamed to t-uClibc.
6025         * doc/invoke.texi (ARC): Update arc options.
6027 2016-11-15  Maciej W. Rozycki  <macro@imgtec.com>
6029         * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
6030         insn at the beginning of the constant pool.
6031         (mips_insert_insn_pseudos): New function.
6032         (mips_machine_reorg2): Call it.
6033         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
6034         UNSPEC_INSN_PSEUDO enum values.
6035         (insn_pseudo, consttable): New insns.
6037 2016-11-15  Michael Matz  <matz@suse.de>
6039         PR missed-optimization/77881
6040         * combine.c (simplify_comparison): Remove useless subregs
6041         also inside the loop, not just after it.
6042         (make_compound_operation): Recognize some subregs as being
6043         masking as well.
6045 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
6046             Alan Hayward  <alan.hayward@arm.com>
6047             David Sherwood  <david.sherwood@arm.com>
6049         * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
6050         GET_MODE_SIZE typo.
6052 2016-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6054         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
6055         for using xxinsertw and vinsert{b,h} on ISA 3.0.
6057         * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
6058         (vsx_set_<mode>_p9): New insn to generate xxinsertw and
6059         vinsert{b,h} on ISA 3.0.
6061 2016-11-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6063         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
6064         and cmpnop in two steps: first the ones not accessed in original gimple
6065         expression in a endian independent way and then the ones not accessed
6066         in the final result in an endian-specific way.
6067         (bswap_replace): Stop doing big endian adjustment.
6069 2016-11-14  Uros Bizjak  <ubizjak@gmail.com>
6071         * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
6072         (*ashl<mode>3_doubleword): Ditto.
6074 2016-11-14  Martin Liska  <mliska@suse.cz>
6076         * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
6078 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
6079             Richard Biener  <rguenther@suse.de>
6081         * doc/invoke.texi (fgimple): Document.
6082         * dumpfile.h (TDF_GIMPLE): Add.
6083         * dumpfile.c (dump_options): Add gimple.
6084         * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
6085         for TDF_GIMPLE.
6086         (dump_gimple_label): Likewise.
6087         (dump_gimple_phi): Likewise.
6088         (dump_gimple_bb_header): Likewise.
6089         (dump_phi_nodes): Likewise.
6090         (pp_cfg_jump): Likewise.  Pass in dump flags.
6091         (dump_implicit_edges): Adjust.
6092         * passes.c (pass_init_dump_file): Do not dump function header
6093         for TDF_GIMPLE.
6094         * tree-cfg.c (dump_function_to_file): Dump function return type
6095         and __GIMPLE keyword for TDF_GIMPLE.  Change guard for dumping
6096         GIMPLE stmts.
6097         * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
6098         (dump_generic_node): Likewise.
6099         * function.h (struct function): Add pass_startwith member.
6100         * passes.c (execute_one_pass): Implement startwith.
6101         * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
6102         and assign proper version for parsed ssa names.
6103         * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
6104         * internal-fn.c (expand_PHI): New function.
6105         * internal-fn.h (expand_PHI): Declared here.
6106         * internal-fn.def: New defination for PHI.
6107         * tree-cfg.c (lower_phi_internal_fn): New function.
6108         (build_gimple_cfg): Call it.
6109         (verify_gimple_call): Condition for passing label as arg in internal
6110         function PHI.
6111         * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
6112         present PHIs with arguments.
6114 2016-11-14  Martin Liska  <mliska@suse.cz>
6116         PR bootstrap/78069
6117         * common.opt: Add prefer-atomic as a new enum value for
6118         -fprofile-update.
6119         * coretypes.h: Likewise.
6120         * doc/invoke.texi: Document the new option value.
6121         * gcc.c: Replace atomic with prefer-atomic.  Remove warning.
6122         * tree-profile.c (tree_profiling): Select default value
6123         of -fprofile-update when 'prefer-atomic' is selected.
6125 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
6127         * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
6128         (cortex_a57_alu_shift): ...here.
6130 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
6132         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
6133         Use bfx attribute.
6134         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6135         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6136         (<optab>si3_insn_uxtw): Likewise.
6137         (<optab><mode>3_insn): Likewise.
6138         (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
6139         (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
6140         (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
6141         (<optab><mode>): Likewise.
6142         (insv<mode>): Likewise.
6143         (andim_ashift<mode>_bfiz): Likewise.
6144         * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
6145         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6146         * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
6147         * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
6148         (exynos_m1_alu_p): Likewise.
6149         * config/arm/types.md: Add bfx.
6150         * config/arm/xgene1.md (xgene1_bfm): Add bfx.
6152 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
6154         * config/aarch64/aarch64.c (cortexa57_vector_cost):
6155         Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
6157 2016-11-14  Richard Biener  <rguenther@suse.de>
6159         PR tree-optimization/78312
6160         * gimple-ssa-backprop.c (backprop::prepare_change): Reset
6161         flow-sensitive info.
6163 2016-11-14  Georg-Johann Lay  <avr@gjlay.de>
6165         PR target/78093
6166         * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
6167         * config/avr/avr.opt (-mabsdata): New option.
6168         * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
6169         * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
6170         -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
6171         * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
6172         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
6173         spec depending on AVR_ISA_LDS.
6174         * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
6176 2016-11-13  Jakub Jelinek  <jakub@redhat.com>
6178         * match.pd: Don't try to compare addresses of variables with
6179         DECL_VALUE_EXPR.
6181 2016-11-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
6183         * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
6184         (propagate_vr_accross_jump_function): Handle unary expressions.
6185         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6186         (load_from_param_1): New.
6187         (load_from_unmodified_param): Factor common part into load_from_param_1.
6188         (load_from_param): New.
6189         (compute_complex_assign_jump_func): Handle unary expressions.
6190         (update_jump_functions_after_inlining): Likewise.
6191         (ipa_write_jump_function): Likewise.
6192         (ipa_read_jump_function): Likewise.
6194 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6196         PR c/35503
6197         * doc/invoke.texi: Document Wrestrict.
6198         * pretty-print.c (pp_format): Add case for "Z" specifier.
6199         (test_pp_format): Test "Z" specifier.
6201 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6203         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
6204         original function needs a static chain.
6206 2016-11-13  David Edelsohn  <dje.gcc@gmail.com>
6208         PR target/78336
6209         * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
6210         ASM_OUTPUT_DEF.
6212 2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
6214         PR target/77957
6215         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
6216         return early if !optional_tbtab.
6218 2016-11-11  Eric Botcazou  <ebotcazou@adacore.com>
6220         PR rtl-optimization/59461
6221         * doc/rtl.texi (paradoxical subregs): Add missing word.
6222         * combine.c (reg_nonzero_bits_for_combine): Do not discard results
6223         in modes with precision larger than that of last_set_mode.
6224         * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
6225         set and LOAD_EXTEND_OP is appropriate, propagate results from inner
6226         REGs to paradoxical SUBREGs.
6227         (num_sign_bit_copies1) <SUBREG>: Likewise.  Check that the mode is not
6228         larger than a word before invoking LOAD_EXTEND_OP on it.
6230 2016-11-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6232         PR target/78243
6233         * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
6234         element order for little endian ordering.
6236         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
6237         VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
6238         number.
6240 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
6242         PR target/78310
6243         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
6244         when calculating operand 2.
6245         (rotate to rotatex zext splitter): Ditto.
6247 2016-11-11  Jeff Law  <law@redhat.com>
6249         * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
6250         function.
6251         (stmt_uses_name_in_undefined_way): New function, extracted from
6252         find_implicit_erroneous_behavior and extended for div/mod case.
6253         (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
6254         find_explicit_erroneous_behavior and extended for div/mod case.
6255         (find_implicit_erroneous_behavior): Use new helper function.
6256         (find_explicit_erroneous_behavior): Use new helper function.
6258 2016-11-11  Richard Biener  <rguenther@suse.de>
6260         PR tree-optimization/71575
6261         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
6262         bogus assert.
6264 2016-11-11  Richard Biener  <rguenther@suse.de>
6266         PR middle-end/78295
6267         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6268         about uninitialized destination arg of BIT_INSERT_EXPR.
6270 2016-11-10  Sandra Loosemore  <sandra@codesourcery.com>
6272         PR c/37998
6273         * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
6274         terminology.  Expand to remove ambiguity.
6276 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
6278         PR rtl-optimization/78232
6279         * combine.c (try_combine): Add a big comment about why reusing i2dest
6280         is undesirable.
6281         (change_zero_ext): Do not call simplify_gen_binary, do the
6282         simplifications manually.
6284 2016-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6286         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
6287         enable HImode and QImode to go in vector registers by default if
6288         the -mvsx-small-integer option is enabled.
6289         (rs6000_secondary_reload_simple_move): Likewise.
6290         (rs6000_preferred_reload_class): Don't force integer constants to
6291         be loaded into vector registers that we can easily make into
6292         memory (or being created in the GPRs and moved over with direct move).
6293         * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
6294         (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
6295         vector extraction on ISA 3.0 when the scalar integer can be
6296         allocated in vector registers.  Generate the VEC_SELECT directy,
6297         and don't use UNSPEC's to avoid having the scalar type in a vector
6298         register.  Make the expander target registers, and let the
6299         combiner fold in results storing to memory, if the machine
6300         supports stores.
6301         (vsx_extract_<mode>_di): Likewise.
6302         (vsx_extract_<mode>_p9): Likewise.
6303         (vsx_extract_<mode>_di_p9): Likewise.
6304         (vsx_extract_<mode>_store_p9): Likewise.
6305         (vsx_extract_si): Likewise.
6306         (vsx_extract_<mode>_p8): Likewise.
6307         (p9_lxsi<wd>zx): Delete, no longer used.
6308         (p9_stxsi<wd>x): Likewise.
6309         * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
6310         integers in vector registers for ISA 3.0.
6311         (QHI): Update comment.
6312         (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
6313         vector extract instructions in sign/zero extend.
6314         (zero_extendhi<mode>): Likewise.
6315         (extendqi<mode>): Likewise.
6316         (extendhi<mode>2): Likewise.
6317         (HImode splitter for load/sign extend in vector register): Likewise.
6318         (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
6319         optimizing floating point conversions to/from small data types and
6320         rewrite it to support QImode/HImode being allowed in vector
6321         registers on ISA 3.0.
6322         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6323         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6324         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6325         (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
6326         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6327         (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
6328         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6329         VSPLITISW on ISA 2.07.
6330         (movhi_internal): Combine movhi_internal and movqi_internal into
6331         one mov<mode>_internal with an iterator.  Add support for QImode
6332         and HImode being allowed in vector registers.  Make large number
6333         of attributes and constraints easier to read.
6334         (movqi_internal): Likewise.
6335         (mov<mode>_internal): Likewise.
6336         (movdi_internal64): Fix constraint to allow loading -16..15 with
6337         VSPLITISW on ISA 2.07.
6338         (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
6339         well as DImode.
6341 2016-11-10  Pat Haugen  <pthaugen@us.ibm.com>
6343         PR rtl-optimization/78241
6344         * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
6345         but emit initial peel copy if niter expr is not reliable.
6347 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
6349         * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
6350         (maybe_record_trace_start): If the CFI is different on the new and
6351         old paths, print out both to the dump file before ICEing.
6353 2016-11-10  Vladimir Makarov  <vmakarov@redhat.com>
6355         * target.def (additional_allocno_class_p): New.
6356         * hooks.h (hook_bool_reg_class_t_false): New prototype.
6357         * hooks.c (hook_bool_reg_class_t_false): New.
6358         * ira.c (setup_allocno_and_important_classes): Use the new hook.
6359         * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
6360         * doc/tm.texi: Update.
6362 2016-11-10  Jason Merrill  <jason@redhat.com>
6364         * gengtype.c (new_structure): Append to structures list.
6365         (find_structure): Likewise.
6367 2016-11-10  Jim Wilson  <jim.wilson@linaro.org>
6369         * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6370         this_dir is 2.  Check for this_dir non-zero before dir != this_dir
6371         check.
6373 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
6375         * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6376         (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6377         TRUNC_DIV_EXPR.
6378         * gimplify.c (gimplify_scan_omp_clauses): Likewise.  Set
6379         ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6380         Remove omp_no_lastprivate callers.  Propagate lastprivate on combined
6381         teams distribute parallel for simd even to distribute and teams
6382         construct.  For OMP_CLAUSE_DEPEND add missing break at the end of
6383         OMP_CLAUSE_DEPEND_SINK case.
6384         (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6385         (omp_no_lastprivate): Removed.
6386         (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6387         (gimplify_omp_for): Likewise.
6388         (computable_teams_clause): Fail for automatic vars from current
6389         function not yet seen in bind expr.
6390         * langhooks.c (lhd_omp_scalar_p): New function.
6391         * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6392         * varpool.c (varpool_node::get_create): Set node->offloading
6393         even for DECL_EXTERNAL decls.
6394         * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6395         (LANG_HOOKS_OMP_SCALAR_P): Define.
6396         (LANG_HOOKS_DECLS): Use it.
6398 2016-11-10  Martin Liska  <mliska@suse.cz>
6400         PR sanitizer/78270
6401         * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6402         only when SWITCH_BODY is a BIND_EXPR.
6404 2016-11-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6406         PR debug/78112
6407         * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6408         on the context only when it has no DIE yet.
6410 2016-11-10  Richard Earnshaw  <rearnsha@arm.com>
6412         * arm.h (target_cpus): Delete.
6413         * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6414         * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6415         (all_architectures): Likewise.
6416         (arm_option_override): Adjust use of CPU enums.
6417         (arm_sched_reorder): Likewise.
6418         * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6419         * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6420         * arm/genopt.sh (processor_type): Prefix enumeration entries with
6421         TARGET_CPU_.
6422         * arm-tables.opt: Regenerated.
6424 2016-11-10  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6426         * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6427         (falkor): New core.
6428         * config/aarch64/aarch64-tune.md: Regenerated.
6429         * config/arm/arm-cores.def (falkor): New core.
6430         * config/arm/arm-tables.opt: Regenerated.
6431         * config/arm/arm-tune.md: Regenerated.
6432         * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6433         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6434         * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6435         (ARM Options/-mtune): Likewise.
6437 2016-11-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
6439         Revert
6440         2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
6442         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6443         (propagate_vr_accross_jump_function): Likewise.
6444         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6445         (load_from_param_1): New.
6446         (load_from_unmodified_param): Factor common part into load_from_param_1.
6447         (load_from_param): New.
6448         (compute_complex_assign_jump_func): Handle unary expressions.
6449         (ipa_write_jump_function): Likewise.
6450         (ipa_read_jump_function): Likewise.
6452 2016-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
6454         * simplify-rtx.c (simplify_binary_operation_1): Simplify
6455         (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6456         (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6457         is a const_int.
6459 2016-11-09  David Malcolm  <dmalcolm@redhat.com>
6461         * print-rtl-function.c: Include varasm.h.
6462         (print_any_param_name): New function.
6463         (print_param): New function.
6464         (print_rtx_function): Call print_param for each argument.
6465         * print-rtl.c (rtx_writer::finish_directive): New function.
6466         * print-rtl.h (rtx_writer::finish_directive): New decl.
6468 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
6470         PR target/78262
6471         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6472         operand 0 as earlyclobber.
6473         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6475 2016-11-09  Martin Liska  <mliska@suse.cz>
6477         * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6479 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
6481         PR target/77718
6482         * builtins.c (expand_builtin_memcmp): Formatting fix.
6484         * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6485         and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6486         or of them, renumber other enumerators.
6487         * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6488         * doc/invoke.texi: Document -fsanitize=shift-base and
6489         -fsanitize-shift-exponent, document -fsanitize=shift as
6490         having those 2 suboptions.
6492 2016-11-09  Richard Biener  <rguenther@suse.de>
6494         * fold-const.c (tree_swap_operands_p): Remove unused arg.
6495         * fold-const.c (tree_swap_operands_p): Likewise.
6496         (fold_binary_loc): Adjust.
6497         (fold_ternary_loc): Likewise.
6498         * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6499         * gimple-fold.c (fold_stmt_1): Likewise.
6500         * gimple-match-head.c (gimple_resimplify2): Likewise.
6501         (gimple_resimplify3): Likewise.
6502         (gimple_simplify): Likewise.
6503         * tree-ssa-dom.c (record_equality): Likewise.
6504         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6505         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6506         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6508 2016-11-09  Richard Biener  <rguenther@suse.de>
6510         * tree-ssa-dom.c (canonicalize_comparison): Remove.
6511         (optimize_stmt): Remove redundant pre-propagation canonicalization
6512         of comparison operand order.
6514 2016-11-09  Martin Liska  <mliska@suse.cz>
6516         * fold-const-call.c (fold_const_call): Fix the folding.
6518 2016-11-09  Richard Biener  <rguenther@suse.de>
6520         * common.opt (flag_evaluation_order): Remove.
6521         * expr.c (expand_operands): Remove code guarded by
6522         flag_evaluation_order.
6523         * fold-const.c (reorder_operands_p): Remove, it always returns
6524         true.
6525         (negate_expr_p): Remove calls to reorder_operands_p.
6526         (fold_negate_expr): Likewise.
6527         (tree_swap_operands_p): Likewise.
6528         (fold_binary_loc): Likewise.
6530 2016-11-09  Andreas Schwab  <schwab@suse.de>
6532         PR target/78254
6533         * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6534         insns operating on a register.
6536 2016-11-09  Richard Biener  <rguenther@suse.de>
6538         PR tree-optimization/78007
6539         * tree-vect-stmts.c (vectorizable_bswap): New function.
6540         (vectorizable_call): Call vectorizable_bswap for
6541         BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6543 2016-11-09  Richard Biener  <rguenther@suse.de>
6545         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6546         Look at the DR_BASE_ADDRESS object for forcing alignment.
6548 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
6550         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6551         (propagate_vr_accross_jump_function): Likewise.
6552         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6553         (load_from_param_1): New.
6554         (load_from_unmodified_param): Factor common part into load_from_param_1.
6555         (load_from_param): New.
6556         (compute_complex_assign_jump_func): Handle unary expressions.
6557         (ipa_write_jump_function): Likewise.
6558         (ipa_read_jump_function): Likewise.
6560 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
6562         PR ipa/78121
6563         * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6564         Also fold constant passed as argument while computing value range.
6565         (propagate_constants_accross_call): Pass param type.
6566         * ipa-prop.c: export ipa_get_callee_param_type.
6567         * ipa-prop.h: export ipa_get_callee_param_type.
6569 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
6571         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6572         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6574 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
6576         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6577         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6578         ASAN_STACK_MAGIC_MIDDLE.
6579         (asan_global_struct): Increase the size of fields.
6580         (asan_add_global): Add new field constructor.
6581         * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6582         __asan_version_mismatch_check_v8.
6584 2016-11-08  David Edelsohn  <dje.gcc@gmail.com>
6586         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6587         at runtime.
6589 2016-11-08  Uros Bizjak  <ubizjak@gmail.com>
6591         PR target/70799
6592         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6593         Handle ASHIFT and LSHIFTRT.
6594         (dimode_scalar_chain::compute_convert_gain): Ditto.
6595         (dimode_scalar_chain::convert_insn): Ditto.
6597 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6599         * gimple-ssa-store-merging.c: Include selftest.h
6600         (verify_array_eq): New function.
6601         (verify_shift_bytes_in_array): Likewise.
6602         (verify_shift_bytes_in_array_right): Likewise.
6603         (verify_clear_bit_region): Likewise.
6604         (verify_clear_bit_region_be): Likewise.
6605         (store_merging_c_tests): Likewise.
6606         * selftest.h (store_merging_c_tests): Declare prototype.
6607         * selftest-run-tests.c (selftest::run_tests): Run
6608         store_merging_c_tests.
6610 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6612         * config/arm/arm.opt (mold-rtx-costs): Delete.
6613         (mnew-generic-costs): Delete.
6614         * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6615         * config/arm/arm.c (arm_rtx_costs_1): Delete.
6616         (arm_size_rtx_costs): Likewise.
6617         (arm_slowmul_rtx_costs): Likewise.
6618         (arm_fastmul_rtx_costs): Likewise.
6619         (arm_xscale_rtx_costs): Likewise.
6620         (arm_9e_rtx_costs): Likewise.
6621         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6622         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6623         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6624         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6625         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6626         arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6627         arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6628         arm_cortex_m7_tune):
6629         Delete rtx_costs field.
6630         (arm_new_rtx_costs): Rename to...
6631         (arm_rtx_costs_internal): ... This.
6632         (arm_rtx_costs): Remove old way of doing rtx costs.
6634 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6636         * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6637         (arm_fastmul_tune): Likewise.
6638         (arm_strongarm_tune): Likewise.
6639         (arm_xscale_tune): Likewise.
6640         (arm_9e_tune): Likewise.
6641         (arm_marvell_pj4_tune): Likewise.
6642         (arm_v6t2_tune): Likewise.
6643         (arm_v6m_tune): Likewise.
6644         (arm_fa726te_tune): Likewise.
6646 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6648         PR tree-optimization/78234
6649         * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6650         in start != 0 case.
6652 2016-11-08  Martin Liska  <mliska@suse.cz>
6654         PR testsuite/78242
6655         * dbgcnt.def: Add new debug counter asan_use_after_scope.
6656         * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6657         with a value expr.  Do not add artificial variables to
6658         live_switch_vars.  Use the debug counter.
6659         (gimplify_target_expr): Use the debug counter.
6660         * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6661         * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6662         BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6664 2016-11-08  Richard Biener  <rguenther@suse.de>
6666         * tree-vect-stmts.c (get_group_load_store_type): If the
6667         access is aligned do not trigger peeling for gaps.
6668         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6669         force alignment of vars with DECL_USER_ALIGN.
6671 2016-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6673         * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6675 2016-11-08  Richard Biener  <rguenther@suse.de>
6677         PR tree-optimization/78205
6678         * tree-vect-stmts.c (vectorizable_load): Move check whether
6679         we may run into gaps when BB vectorizing SLP permutations ...
6680         * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6681         here where we can do a more precise check.
6683 2016-11-08  Richard Biener  <rguenther@suse.de>
6685         PR tree-optimization/78224
6686         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6687         Split the fallthru edge in case its successor may have PHIs.
6688         Do not free dominance info.
6690 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
6692         PR target/78229
6693         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6694         EH info even for bzhi and pdep/pext.
6696 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
6698         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6699         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6701 2016-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6703         * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6704         if appropriate.
6705         * config/rs6000/vector.md (div<mode>3): Ditto.
6707 2016-11-07  David Edelsohn  <dje.gcc@gmail.com>
6709         * configure.ac (.hidden): Change to conftest_s string. Provide string
6710         for AIX assembler.
6711         (gcc_cv_ld_hidden): Yes for AIX.
6712         * configure: Regenerate.
6714         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6716         * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6717         (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6718         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6719         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6720         (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6721         * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6722         from #if to if.
6723         (rs6000_xcoff_visibility): New.
6724         (rs6000_xcoff_declare_function_name): Add visibility support.
6725         (rs6000_xcoff_asm_globalize_decl_name): New.
6726         (rs6000_xcoff_asm_output_aligned_decl_common): New.
6727         (rs6000_asm_weaken_decl): New.
6728         (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6729         config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6730         reference function.
6732 2016-11-07  Jack Howarth  <howarth.at.gcc@gmail.com>
6734         PR driver/78206
6735         * incpath.c (remove_dup): Also silently ignore EPERM.
6737 2016-11-07  Martin Jambor  <mjambor@suse.cz>
6739         * tree.c (verify_type_variant): Use pointer comparison to check that
6740         TYPE_SIZE_UNIT match.
6742 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
6744         PR target/77834
6745         * dse.c (dse_step5): Call scan_reads even if just
6746         insn_info->frame_read.  Improve and fix dump file messages.
6748         PR target/78227
6749         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6750         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6752 2016-11-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6754         PR middle-end/35691
6755         * match.pd: Add following two patterns:
6756         (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6757         (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6759 2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
6761         * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6762         * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6763         * rtl.h (duplicate_reg_notes): Declare.
6764         * rtlanal.c (duplicate_reg_note): New function.
6766         PR rtl-optimization/77309
6767         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6768         don't assume an equality comparison for plain COMPARE.
6769         (simplify_comparison): Pass a more accurate code to
6770         make_compound_operation.
6772 2016-11-07  Pat Haugen  <pthaugen@us.ibm.com>
6774         * target.def (compute_pressure_classes): New target hook.
6775         * doc/tm.texi.in: Document it.
6776         * doc/tm.texi: Regenerate.
6777         * ira.c (setup_pressure_classes): Call target hook if defined.
6779 2016-11-07  David Malcolm  <dmalcolm@redhat.com>
6781         * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6782         method.
6783         (rtx_writer::print_rtx): In compact mode, omit trailing operands
6784         that have the default values.
6785         * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6786         method.
6787         * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6788         label string from expected dump.
6789         (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6790         from expected dump.
6792 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
6794         PR target/77834
6795         * alias.c (nonoverlapping_memrefs_p): If one decl is
6796         FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6798 2016-11-07  Richard Biener  <rguenther@suse.de>
6800         PR target/78229
6801         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6802         EH info.
6804 2016-11-07  Richard Biener  <rguenther@suse.de>
6806         PR tree-optimization/78218
6807         * gimple-ssa-store-merging.c
6808         (pass_store_merging::terminate_all_aliasing_chains):
6809         Drop unused argument, fix alias check to also consider uses.
6810         (pass_store_merging::execute): Adjust.
6812 2016-11-07  Richard Biener  <rguenther@suse.de>
6814         PR tree-optimization/78228
6815         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6816         undefined behavior.
6818 2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6820         PR target/77822
6821         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6822         aarch64_simd_shift_imm_<mode> predicate for operand 1.
6823         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6824         to restrict them to an appropriate range and add FAIL check if the
6825         region they specify is out of range.  Delete useless constraint
6826         strings.
6827         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6828         2 and 3 to restrict their range and add pattern predicate.
6830 2016-11-07  Martin Liska  <mliska@suse.cz>
6832         * asan.c (enum asan_check_flags): Move the enum to header file.
6833         (asan_init_shadow_ptr_types): Make type creation more generic.
6834         (shadow_mem_size): New function.
6835         (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6836         Rewritten stack unpoisoning code.
6837         (build_shadow_mem_access): Add new argument return_address.
6838         (instrument_derefs): Instrument local variables if use after scope
6839         sanitization is enabled.
6840         (asan_store_shadow_bytes): New function.
6841         (asan_expand_mark_ifn): Likewise.
6842         (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6843         * asan.h (enum asan_mark_flags): Moved here from asan.c
6844         (asan_protect_stack_decl): Protect all declaration that need
6845         to live in memory.
6846         (asan_sanitize_use_after_scope): New function.
6847         (asan_no_sanitize_address_p): Likewise.
6848         * cfgexpand.c (partition_stack_vars): Consider
6849         asan_sanitize_use_after_scope in condition.
6850         (expand_stack_vars): Likewise.
6851         * common.opt (-fsanitize-address-use-after-scope): New option.
6852         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6853         Explain the parameter.
6854         * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6855         * gimplify.c (build_asan_poison_call_expr): New function.
6856         (asan_poison_variable): Likewise.
6857         (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6858         variables that have address taken.
6859         (gimplify_decl_expr): Likewise.
6860         (gimplify_target_expr): Likewise for C++ temporaries.
6861         (sort_by_decl_uid): New function.
6862         (gimplify_expr): Unpoison all variables for a label we can jump
6863         from outside of a scope.
6864         (gimplify_switch_expr): Unpoison variables defined in the switch
6865         context.
6866         (gimplify_function_tree): Clear asan_poisoned_variables.
6867         (asan_poison_variables): New function.
6868         (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6869         * internal-fn.c (expand_ASAN_MARK): New function.
6870         * internal-fn.def (ASAN_MARK): Declare.
6871         * opts.c (finish_options): Handle -fstack-reuse if
6872         -fsanitize-address-use-after-scope is enabled.
6873         (common_handle_option): Enable address sanitization if
6874         -fsanitize-address-use-after-scope is enabled.
6875         * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6876         New parameter.
6877         * params.h: Likewise.
6878         * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6879         * sanitizer.def: Define __asan_poison_stack_memory and
6880         __asan_unpoison_stack_memory functions.
6881         * asan.c (asan_mark_poison_p): New function.
6882         (transform_statements): Handle asan_mark_poison_p calls.
6883         * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6885 2016-11-07  Tamar Christina  <tamar.christina@arm.com>
6887         PR driver/78196
6888         * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6890 2016-11-07  Martin Liska  <mliska@suse.cz>
6892         * tree-profile.c (gimple_gen_time_profiler): Set proper type
6893         to time_profiler_counter_ptr.
6895 2016-11-07  Richard Biener  <rguenther@suse.de>
6897         PR tree-optimization/37150
6898         * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6899         parameter.
6900         * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6901         (vect_analyze_slp_cost_1): Account for the real number of
6902         permutations emitted and for dead loads.
6903         (vect_transform_slp_perm_load): Add n_perms parameter counting
6904         the number of emitted permutations.
6905         * tree-vect-stmts.c (vectorizable_load): Adjust.
6907 2016-11-07  Richard Biener  <rguenther@suse.de>
6909         PR tree-optimization/78189
6910         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6911         alignment computation.
6913 2016-11-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
6915         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6917 2016-11-05  Martin Sebor  <msebor@redhat.com>
6919         * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6920         documentation.
6922 2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
6924         PR bootstrap/78188
6925         PR c++/71848
6926         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6928 2016-11-04  Jakub Jelinek  <jakub@redhat.com>
6930         PR target/77834
6931         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6932         doesn't have rtl set.
6934 2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6936         * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6937         (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6938         rs6000_gimple_fold_builtin.
6939         (rs6000_gimple_fold_builtin): New function.  Add handling for
6940         early expansion of vector addition builtins.
6942 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
6944         * expr.h (copy_blkmode_from_reg): Delete.
6945         * expr.c (copy_blkmode_from_reg): Make static.
6947 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
6949         * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6950         * combine.c (LOAD_EXTEND_OP): Delete.
6951         (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6952         * cse.c (LOAD_EXTEND_OP): Delete.
6953         * fold-const.c (LOAD_EXTEND_OP): Likewise.
6954         * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6955         * postreload.c (LOAD_EXTEND_OP): Delete.
6956         * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6957         Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6958         (find_reloads): Likewise.
6959         * reload1.c (eliminate_regs_1): Likewise.
6960         * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6961         (num_sign_bit_copies1): Likewise.
6963 2016-11-04  David Malcolm  <dmalcolm@redhat.com>
6965         * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6966         (selftest::ix86_test_dumping_hard_regs): New function.
6967         (selftest::ix86_run_selftests): New function.
6968         (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6969         selftest::ix86_run_selftests.
6970         * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6971         * doc/tm.texi: Regenerate
6972         * selftest-rtl.h: New file.
6973         * rtl-tests.c: Include "selftest-rtl.h".
6974         (selftest::assert_rtl_dump_eq): Make non-static.
6975         (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6976         (selftest::test_dumping_regs): Update comment.
6977         * selftest-run-tests.c: Include "target.h".
6978         (selftest::run_tests): If non-NULL, call
6979         targetm.run_target_selftests.
6980         * target.def (run_target_selftests): New hook.
6982 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6984         * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6985         representative core for this architecture.
6986         * config/arm/arm-cores.def (cortex-m33): Define new processor.
6987         * config/arm/arm-tables.opt: Regenerate.
6988         * config/arm/arm-tune.md: Likewise.
6989         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6990         valid -mcpu options.
6991         * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6993 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6995         * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6996         representative core for this architecture.
6997         * config/arm/arm-cores.def (cortex-m23): Define new processor.
6998         * config/arm/arm-tables.opt: Regenerate.
6999         * config/arm/arm-tune.md: Likewise.
7000         * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
7001         this tuning parameters apply to in the comment.
7002         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
7003         valid -mcpu options.
7004         * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
7006 2016-11-04  Bin Cheng  <bin.cheng@arm.com>
7008         * fold-const.c (fold_cond_expr_with_comparison): Remove call
7009         to pedantic_non_lvalue_loc.  Remove useless code for lvalue
7010         where cond_expr can't be a lvalue.
7012 2016-11-04  Claudiu Zissulescu  <claziss@synopsys.com>
7014         * config/arc/arc.c (arc_process_double_reg_moves): Use
7015         gen_dexcl_2op call.
7016         * config/arc/arc.md (movsi_insn): Disable unsupported move
7017         instructions for ARCv2 cores.
7018         (movdi): Use prepare_move_operands.
7019         (movsf, movdf): Use move_dest_operand predicate.
7020         * config/arc/constraints.md (Chs): Enable when barrel shifter is
7021         present.
7022         * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
7023         * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
7024         also a destination.
7025         (dexcl_3op_peep2_insn_nores): Likewise.
7026         * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
7027         (LINK_COMMAND_SPEC): Remove.
7029 2016-11-04  Richard Biener  <rguenther@suse.de>
7031         PR middle-end/78185
7032         * loop-invariant.c (find_exits): Record entering inner
7033         loops as possibly exiting to handle infinite sub-loops.
7034         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
7035         (fill_always_executed_in_1): Honor infinite child loops.
7037 2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7039         PR target/78192
7040         * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
7041         has already been adjusted for endianness, so don't adjust it any
7042         further.
7044         PR target/77993
7045         * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
7046         ICmode unless we have standard PowerPC floating point.
7047         * config/rs6000/rs6000.md (FP iterator): Likewise.
7048         (FMOVE128 iterator): Likewise.
7050 2016-11-03  Jakub Jelinek  <jakub@redhat.com>
7051             Alexandre Oliva  <aoliva@redhat.com>
7052             Jason Merrill  <jason@redhat.com>
7054         PR debug/28767
7055         PR debug/56974
7056         * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
7057         langhook.
7058         * langhooks.c (lhd_type_dwarf_attribute): New function.
7059         * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
7060         (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
7061         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
7062         LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
7063         (check_qualified_type, check_aligned_type): Call it.
7064         * dwarf2out.c (modified_type_die): Don't use type_main_variant
7065         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
7066         check_base_type and check_lang_type.
7067         (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
7068         return early.  For pointer-to-data-member add DW_AT_use_location
7069         attribute.
7070         (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
7071         if needed.
7072         (gen_type_die_with_usage): Don't use type_main_variant
7073         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
7074         check_base_type and check_lang_type.  Formatting fixes. Call
7075         get_debug_type langhook.
7077 2016-11-03  Jason Merrill  <jason@redhat.com>
7079         * tree.c (check_lang_type): New.
7080         (check_qualified_type): Use it.
7081         (check_aligned_type): Use it.
7082         * tree.h: Declare it.
7084 2016-11-03  Richard Earnshaw  <rearnsha@arm.com>
7086         * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
7087         (arm*-freebsd*): Likewise.
7088         (arm*-*-netbsdelf*): Likewise.
7089         (arm*-*-linux*): Likewise.
7090         (arm*-*-uclinux*eabi*): Likewise.
7091         (arm*-*-phoenix*): Likewise.
7092         (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
7093         (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
7094         specified.  Default to arm6 if target_cpu_cname is not set.
7095         * arm/arm.c (arm_option_override): Simplify logic.  Assert that the
7096         default cpu has been correctly configured.
7097         * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
7098         (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
7099         * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
7100         * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
7101         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
7102         * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
7103         * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
7105 2016-11-03  Jiong Wang  <jiong.wang@arm.com>
7107         * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
7108         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
7109         (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
7110         (output_cfa_loc): Support DW_CFA_val_expression.
7111         (output_cfa_loc_raw): Likewise.
7112         (output_cfi): Likewise.
7113         (output_cfi_directive): Likewise.
7114         * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
7115         (dw_cfi_oprnd2_desc): Likewise.
7116         (mem_loc_descriptor): Recognize new pattern generated for value
7117         expression.
7119 2016-11-03  Segher Boessenkool  <segher@kernel.crashing.org>
7121         PR rtl-optimization/78186
7122         * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
7123         well, when converting to IOR.
7125 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
7127         * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
7128         (vec_interleave_highv8qi): Likewise.
7130 2016-11-03  Martin Liska  <mliska@suse.cz>
7132         * profile.c (instrument_values): Fix coding style.
7133         (branch_prob): Use renamed function.
7134         * tree-profile.c (init_ic_make_global_vars): Likewise.
7135         (gimple_init_edge_profiler): Rename to
7136         gimple_init_gcov_profiler.
7137         tree_time_profiler_counter variable declaration.
7138         (gimple_gen_time_profiler): Rewrite to do a direct gimple code
7139         emission.
7140         * value-prof.h: Remove an argument.
7142 2016-11-03  Richard Biener  <rguenther@suse.de>
7144         * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
7145         symtab_node::get_create.
7147 2016-11-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7149         * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
7150         Move comments into more natural position.
7152 2016-11-03  Vineet Gupta  <vgupta@synopsys.com>
7154         * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
7155         (PTRDIFF_TYPE): Define as int.
7157 2016-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7159         * ccmp.c (expand_ccmp_expr_1): Adjust.
7160         (expand_ccmp_expr): Likewise.
7161         (expand_ccmp_next): Likewise.
7162         * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
7163         (aarch64_gen_ccmp_first): Likewise.
7164         * doc/tm.texi: Regenerate.
7165         * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
7166         (gen_ccmp_next): Likewise.
7168 2016-11-03  Bin Cheng  <bin.cheng@arm.com>
7170         * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
7171         (vect_is_simple_reduction): Swap cond_reduction by inversion.
7173 2016-11-02  Uros Bizjak  <ubizjak@gmail.com>
7175         * config/i386/i386.c (ix86_init_libfuncs): New.  Call
7176         darwin_rename_builtins here.
7177         (ix86_expand_divmod_libfunc): New.
7178         (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
7179         (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
7181 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
7182             Nathan Sidwell  <nathan@acm.org>
7184         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
7186 2016-11-02  Max Filippov  <jcmvbkbc@gmail.com>
7188         * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
7189         New function.
7190         (xtensa_output_literal): Use xtensa_output_integer_literal_parts
7191         to format MODE_INT and MODE_PARTIAL_INT literals.
7193 2016-11-02  Segher Boessenkool  <segher@kernel.crashing.org>
7195         PR target/78168
7196         * config/r6000/rs6000.c (rs6000_get_separate_components): Return
7197         NULL if TARGET_SPE_ABI.
7199 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7201         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
7202         clear padding bits even when they're less than a byte.
7204 2016-11-02  Richard Biener  <rguenther@suse.de>
7206         * gimple-ssa-store-merging.c: Include gimplify-me.h.
7207         (imm_store_chain_info::output_merged_stores): Force base_addr
7208         to be proper GIMPLE for a MEM_REF address.
7209         (pass_store_merging::execute): Restrict negative bitpos
7210         handling to non-MEM_REF bases.  Remove TREE_THIS_VOLATILE
7211         check.  Take into account non-NULL_TREE offset if the base
7212         is already addressable.
7214 2016-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
7216         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
7217         New pattern.
7218         (aarch64_be_crypto_sha1hv4si): New pattern.
7220 2016-11-02  Wilco Dijkstra  <wdijkstr@arm.com>
7222         * config/aarch64/aarch64.md (add<mode>3): Remove
7223         redundant code.  Don't split frame based additions.
7225 2016-11-02  Richard Biener  <rguenther@suse.de>
7227         * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
7228         redundant val and dest members.
7229         (store_immediate_info::store_immediate_info): Adjust.
7230         (merged_store_group::merged_store_group): Adjust.
7231         (merged_store_group::apply_stores): Likewise.
7232         (struct imm_store_chain_info): Add base_addr field.
7233         (imm_store_chain_info::imm_store_chain_info): New constructor.
7234         (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
7235         (imm_store_chain_info::output_merged_store): Likewise.  Use
7236         addr_base which is already the address.
7237         (imm_store_chain_info::output_merged_stores): Likewise.
7238         (pass_tree_store_merging::terminate_all_aliasing_chains): Take
7239         imm_store_chain_info instead of base.  Fix alias check.
7240         (pass_tree_store_merging::terminate_and_release_chain): Likewise.
7241         (imm_store_chain_info::coalesce_immediate_stores): Adjust.
7242         (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
7243         use the address of the base and adjust for other changes.
7245 2016-11-02  Martin Liska  <mliska@suse.cz>
7247         * fold-const-call.c (host_size_t_cst_p): Test whether
7248         t is convertible to size_t.
7250 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7252         PR tree-optimization/78170
7253         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
7254         introduced by native_encode_expr on little-endian as well.
7256 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7258         PR tree-optimization/78162
7259         * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
7260         as invalid.
7262 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7264         * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
7265         function comment.
7266         (aarch64_next_callee_save): Likewise.
7267         (aarch64_pushwb_single_reg): Likewise.
7268         (aarch64_gen_storewb_pair): Likewise.
7269         (aarch64_push_regs): Likewise.
7270         (aarch64_gen_loadwb_pair): Likewise.
7271         (aarch64_pop_regs): Likewise.
7272         (aarch64_gen_store_pair): Likewise.
7273         (aarch64_gen_load_pair): Likewise.
7274         (aarch64_save_callee_saves): Likewise.
7275         (aarch64_restore_callee_saves): Likewise.
7277 2016-11-02  Richard Biener  <rguenther@suse.de>
7279         PR tree-optimization/78035
7280         PR tree-optimization/77964
7281         * gimple-pretty-print.c (pp_points_to_solution): Print
7282         vars_contains_interposable.
7283         * tree-ssa-alias.c: Include varasm.h.
7284         (ptrs_compare_unequal): Check vars_contains_interposable and
7285         decl_binds_to_current_def_p.
7286         (dump_points_to_solution): Dump vars_contains_interposable.
7287         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
7288         flag.
7289         * tree-ssa-structalias.c: Include varasm.h.
7290         (set_uids_in_ptset): Record whether vars contains a
7291         not decl_binds_to_current_def_p variable in vars_contains_interposable.
7292         (ipa_escaped_pt): Update initializer.
7294 2016-11-02  Richard Biener  <rguenther@suse.de>
7296         PR tree-optimization/78047
7297         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
7298         fake field at offset zero conservatively regarding to may_have_pointers.
7300 2016-11-02  Richard Biener  <rguenther@suse.de>
7302         * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
7303         infer_value_range on stmt ops and update value-ranges.
7304         Dump visited stmts and blocks.
7305         (evrp_dom_walker::push_value_range): Dump changes.
7306         (evrp_dom_walker::pop_value_range): Likewise.
7307         (evrp_dom_walker::try_find_new_range): Avoid noop changes.
7309 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7311         * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
7312         rtx_insn *.
7313         * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
7315 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7317         * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
7318         and adjust for that.
7319         * cfgrtl.h (delete_insn_chain): Adjust prototype.
7321 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7323         * config/rl78/rl78.c (gen-and_emit_move): Change argument type
7324         to rtx_insn *.
7325         (transcode_memory_rtx): Likewise.
7326         (move_to_acc): Likewise.
7327         (move_from_acc): Likewise.
7328         (move_acc_to_reg): Likewise.
7329         (move_to_x): Likewise.
7330         (move_to_hl): Likewise.
7331         (move_to_de): Likewise.
7332         * config/rs6000/rs6000.c (emit_frame_save): Likewise.
7333         (rs6000_emit_savres_rtx): Likewise.
7334         (rs6000_emit_prologue): Likewise.
7335         * reorg.c (update_reg_unused_notes): Likewise.
7336         * rtl.h (remove_note): Adjust prototype.
7337         * rtlanal.c (remove_note): Make argument type rtx_insn *.
7339 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7341         * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
7342         variables so some can be rtx_insn *.
7343         (alpha_emit_xfloating_libcall): Likewise.
7344         * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
7345         (mips_legitimize_tls_address): Likewise.
7346         * optabs.c (expand_binop): Likewise.
7347         * reload1.c (gen_reload): Likewise.
7349 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7351         * reorg.c (relax_delay_slots): Split up the trial variable.
7353 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7355         * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
7356         of variables rtx_insn *.
7357         * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
7358         (legitimize_tls_address): Likewise.
7359         * config/bfin/bfin.c (hwloop_optimize): Likewise.
7360         (bfin_gen_bundles): Likewise.
7361         * config/c6x/c6x.c (reorg_split_calls): Likewise.
7362         (c6x_reorg): Likewise.
7363         * config/frv/frv.c (frv_reorder_packet): Likewise.
7364         * config/i386/i386.c (ix86_split_idivmod): Likewise.
7365         * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7366         * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7367         * config/mn10300/mn10300.c: Likewise.
7368         * config/rl78/rl78.c: Likewise.
7369         * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7370         * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7371         (sh_expand_cmpnstr): Likewise.
7372         (sh_expand_strlen): Likewise.
7373         (sh_expand_setmem): Likewise.
7374         * config/sh/sh.md: Likewise.
7375         * emit-rtl.c (emit_pattern_before): Likewise.
7376         * except.c: Likewise.
7377         * final.c: Likewise.
7378         * jump.c: Likewise.
7380 2016-11-01  Jason Merrill  <jason@redhat.com>
7382         * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7383         a COND_EXPR with constant condition.
7385 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
7387         * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7388         and its initialization.
7390 2016-11-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7392         * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7393         HAVE_AS_LEB128.
7395 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
7397         * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7398         argument, don't call add_linkage_name if it is true.
7399         (gen_variable_die): For C++ inline static data members, consider the
7400         initial call when old_die is NULL to be declaration and call
7401         add_name_and_src_coords_attributes in that case with true as
7402         NO_LINKAGE_NAME.  Add DW_AT_inline attribute if needed.
7403         (gen_member_die): For C++ inline static data members, emit a
7404         definition DIE right away in DW_TAG_compile_unit context.
7406 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
7408         PR target/78166
7409         * config/pa/pa.md: Add new shift/add patterns to handle
7410         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7412 2016-11-01  Max Filippov  <jcmvbkbc@gmail.com>
7414         * config/xtensa/xtensa-protos.h
7415         (xtensa_use_return_instruction_p): New prototype.
7416         * config/xtensa/xtensa.c (xtensa_current_frame_size,
7417         xtensa_callee_save_size): Remove.
7418         (struct machine_function): Add new fields: current_frame_size,
7419         callee_save_size, frame_laid_out and epilogue_done.
7420         (compute_frame_size, xtensa_expand_prologue,
7421         xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7422         cfun->machine->callee_save_size and xtensa_current_frame_size
7423         with cfun->machine->current_frame_size.
7424         (compute_frame_size): Update cfun->machine->frame_laid_out and
7425         don't update frame layout after reload completion.
7426         (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7427         instead of zeroing xtensa_current_frame_size.
7428         (xtensa_use_return_instruction_p): New function.
7429         * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7430         declaration.
7431         (INITIAL_ELIMINATION_OFFSET): Use return value of
7432         compute_frame_size instead of xtensa_current_frame_size value.
7433         * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7434         function xtensa_use_return_instruction_p instead of inline code.
7436 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
7438         * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7439         * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7440         * dwarf2out.c (rnglist_idx): New variable.
7441         (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7442         (DEBUG_RNGLISTS_SECTION): Define.
7443         (ranges_base_label): New variable.
7444         (size_of_die) <case dw_val_class_range_list>: If using
7445         DW_FORM_rnglistx, count size of uleb128 of range list index.
7446         (value_format) <case dw_val_class_range_list>: For
7447         -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7448         (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7449         offsets.  Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7450         (add_ranges_num): Remove useless prototype.  Don't multiply
7451         by 2 * DWARF2_ADDR_SIZE.  Add maybe_new_sec argument, adjust
7452         for new fields added to dw_ranges struct.
7453         (add_ranges): Add maybe_new_sec argument and pass it
7454         through to add_ranges_num.
7455         (note_rnglist_head): New function.
7456         (add_ranges_by_labels): Pass true as maybe_new_sec to
7457         add_ranges_num, call note_rnglist_head on the head of the list.
7458         (output_ranges): Add function comment.  Switch to
7459         .debug_ranges section here and emit .Ldebug_ranges0 label.
7460         (index_rnglists, output_rnglists): New functions.
7461         (gen_subprogram_die): Formatting fixes.
7462         (add_high_low_attributes): Don't divide offsets
7463         by 2 * DWARF2_ADDR_SIZE.  Call note_rnglist_head on the
7464         first list element or when pointing into the middle of
7465         a list.  Pass true as second argument to add_ranges on the
7466         first block fragment after cold/hot section switch.
7467         (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7468         section instead of .debug_ranges.  Initialize
7469         ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7470         (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7471         index_rnglists and add DW_AT_rnglists_base attr.  Don't switch
7472         to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7473         Call output_rnglists for -gdwarf-5.
7474         (dwarf2out_c_finalize): Clear rnglist_idx.
7476 2016-11-01  Fritz Reese  <fritzoreese@gmail.com>
7478         * combine.c (simplify_compare_const): Add gcc_fallthrough.
7480 2016-11-01  Bilyan Borisov  <bilyan.borisov@arm.com>
7481             Tamar Christina <tamar.christina@arm.com>
7483         * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7484         * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7485         (vmaxnmq_f32): Likewise.
7486         (vminnm_f32): Likewise.
7487         (vminnmq_f32): Likewise.
7488         * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7489         (vminnm): Likewise.
7490         * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7491         expander.
7493 2016-10-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
7495         * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7496         binary floating point types supported by the hardware except for
7497         double.
7498         (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7499         vector instruction for optimizing extracting a SImode from a
7500         V4SImode vector and converting it to floating point.
7501         (vsx_xvcvuxwdp_df): Likewise.
7502         (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7503         registers to be any VSX register.  Move stores to the end of the
7504         constraints.
7505         (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7506         to optimize extracting a SImode from a V4SImode vector and
7507         converting it to a binary floating point type supported by the
7508         hardware.  Use the vector converts instead of extracting the
7509         element, sign extending it, and then converting it to double.
7510         Other floating point types  than double first convert to double,
7511         then the double is converted to that type.
7512         (vsx_extract_si_<uns>float_<mode>): Likewise.
7514 2016-10-31  Andrew Pinski  <apinski@cavium.com>
7516         * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7517         Rewrite handling of part num to handle the case where
7518         multiple implementers share the same part num.
7520 2016-10-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7521             Jakub Jelinek  <jakub@redhat.com>
7523         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7524         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7526 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
7528         * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7529         (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7530         (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7531         (is_cu_die, is_unit_die): Likewise.
7532         (should_move_die_to_comdat, break_out_comdat_types): Adjust
7533         comments for DWARF5 DW_UT_type units.
7534         (output_compilation_unit_header): Add UT argument, output
7535         start of DWARF5 .debug_info section header.
7536         (output_comp_unit): Add dwo_id argument.  Adjust
7537         output_compilation_unit_header caller, for DW_UT_split_compile
7538         emit dwo_id field, otherwise padding1.  Emit padding2 field.
7539         (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7540         rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7541         (output_skeleton_debug_sections): Add dwo_id argument, for
7542         -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7543         (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7544         DW_UT_type or DW_UT_split_type units rather than .debug_types.
7545         (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7546         DW_TAG_compile_unit for skeleton unit die.  Don't add
7547         DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7548         address to output_comp_unit and output_skeleton_debug_sections.
7550         * dwarf2out.c (debug_line_str_section): New variable.
7551         (debug_line_str_hash): Likewise.
7552         (DEBUG_LINE_STR_SECTION): Define.
7553         (set_indirect_string): Handle DW_FORM_line_strp like
7554         DW_FORM_strp.
7555         (find_string_form): Fix up formatting.
7556         (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7557         Fix up indentation.
7558         (output_die): Handle DW_FORM_line_strp.
7559         (DWARF5_USE_DEBUG_LINE_STR): Define.
7560         (output_line_string): New function.
7561         (output_file_names): Add -gdwarf-5 support.
7562         (output_line_info): Likewise.
7563         (init_sections_and_labels): Initialize debug_line_str_section.
7564         (output_indirect_string): Change 2nd argument from void *
7565         to enum dwarf_form form, compare with form rather than
7566         DW_FORM_strp.
7567         (output_indirect_strings): Pass DW_FORM_strp to
7568         output_indirect_string traversion.
7569         (dwarf2out_finish): Output .debug_line_str strings.
7570         (dwarf2out_c_finalize): Clear debug_line_str_section and
7571         debug_line_str_hash.
7573 2016-10-31  Tom Tromey  <tom@tromey.com>
7575         PR debug/77315
7576         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7577         (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7578         DW_OP_GNU_push_tls_address case.
7579         (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7581 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
7583         * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7584         for frame_offset_rel bit.
7585         (struct array_descr_info): Add rank field.
7586         * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7587         and placeholder_seen fields.
7588         (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7589         and DW_OP_over.  Optimize DW_OP_pick 0 into DW_OP_dup and
7590         DW_OP_pick 1 into DW_OP_over.
7591         (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7592         gen_variant_part): Clear placeholder_{arg,seen}.
7593         (loc_list_from_tree_1): Drop const from context argument.
7594         Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7595         (loc_list_for_address_of_addr_expr_of_indirect_ref,
7596         loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7597         context argument.
7598         (add_scalar_info): Drop const from context argument.  Handle
7599         context->placeholder_arg.
7600         (add_bound_info): Drop const from context argument.
7601         (gen_descr_array_type_die): Drop const from ctx variable.
7602         Initialize placeholder_arg and placeholder_seen.  Add DW_AT_rank
7603         attribute and use a single DW_TAG_generic_subrange instead of
7604         7 DW_TAG_subrange_type for assumed rank arrays.
7606         * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7607         * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7608         from bool to 1-bit uchar bitfield.  Add num_assigned and
7609         offset_emitted bitfields.
7610         (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7611         for dw_val_class_lineptr and dw_val_class_macptr.  Handle
7612         dw_val_class_loclistsptr.
7613         (new_addr_loc_descr): Fix up formatting.
7614         (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7615         (add_AT_low_high_pc): Fix up formatting.
7616         (add_AT_loclistsptr): New function.
7617         (AT_lbl): Allow dw_val_class_loclistsptr.
7618         (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7619         Handle dw_val_class_loclistsptr.
7620         (loc_list_idx): New variable.
7621         (output_loclists_offsets, assign_location_list_indexes): New
7622         functions.
7623         (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7624         add size_of_uleb128 of the index.  Drop never used
7625         dwarf_split_debug_info AT_index handling.  Handle
7626         dw_val_class_loclistsptr.
7627         (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7628         if -gsplit-dwarf -gdwarf-5.  Handle dw_val_class_loclistsptr.
7629         (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7630         (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7631         DW_FORM_loclistx indexes.
7632         (output_attr_index_or_value): Fix up formatting.  Don't handle
7633         dw_val_class_loc_list here.
7634         (output_die): Formatting fixes.  Handle dw_val_class_loclistsptr.
7635         For dw_val_class_loc_list call output_loc_list_offset rather than
7636         output_attr_index_or_value.
7637         (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7638         or .debug_loclists.dwo section name for debug_loc_section.
7639         (resolve_addr_in_expr): Formatting fix.
7640         (index_location_lists): Likewise.
7641         (dwarf2out_finish): If there are any location lists, for
7642         -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute.  Call
7643         index_location_lists only if have_location_lists.  Call
7644         assign_location_list_indexes for -gsplit-dwarf -gdwarf-5.  Emit
7645         .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7646         -gsplit-dwarf also emit offset table.
7648         * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7649         (size_of_die, value_format, output_die): Use
7650         DW_FORM_data16 for 128-bit dw_val_class_const_double or
7651         dw_val_class_wide_int.
7653         * dwarf2out.c (dwarf_op): Renamed to ...
7654         (dwarf_OP): ... this.
7655         (convert_descriptor_to_mode, scompare_loc_descriptor,
7656         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7657         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7658         callers.
7659         (dwarf_AT, dwarf_TAG): New functions.
7660         (check_die): Disallow DW_AT_call_all_calls next to
7661         DW_AT_GNU_all_call_sites.
7662         (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7663         and attributes instead of the corresponding GNU tag and attributes.
7664         (gen_subprogram_die): Likewise.  Emit call site information even
7665         for -gdwarf-5 -gstrict-dwarf.  Replace DW_AT_GNU_defaulted with
7666         DW_AT_defaulted in comment.
7667         (resolve_addr): Handle DW_AT_call_origin attribute on
7668         DW_TAG_call_site DIE like DW_AT_abstract_origin on
7669         DW_TAG_GNU_call_site DIE.
7671         * dwarf2out.c (dwarf_op): New function.
7672         (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7673         DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7674         (output_loc_operands, output_loc_operands_raw): Likewise.
7675         (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7676         mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7677         (resolve_addr_in_expr): Likewise.  Only punt for !dwarf_strict
7678         if dwarf_version < 5.
7679         (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7680         DW_OP_GNU_xxx.
7681         (scompare_loc_descriptor, ucompare_loc_descriptor,
7682         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7683         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7684         optimize_location_into_implicit_ptr): Likewise.  Only punt for
7685         !dwarf_strict if dwarf_version < 5.
7686         (string_cst_pool_decl): Adjust comment.
7687         (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7689         * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7690         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7691         (struct dw_val_node): Add val_file_implicit field.
7692         * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7693         attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7694         output_die): Handle dw_val_class_const_implicit,
7695         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7696         (abbrev_die_table): Change into va_gc vec.
7697         (abbrev_die_table_allocated, abbrev_die_table_in_use,
7698         ABBREV_DIE_TABLE_INCREMENT): Remove.
7699         (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7700         (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7701         variables.
7702         (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7703         If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7704         vectors.
7705         (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7706         functions.
7707         (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7708         the implicit value.
7709         (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7710         vec.
7711         (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7712         unit.  Call optimize_abbrev_table.
7713         (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7714         abbrev_die_table being a va_gc vec.
7716         PR tree-optimization/77860
7717         * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7718         also integral complex and vector constants.
7720         * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7721         optimize_macinfo_range, save_macinfo_strings): Replace
7722         DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7723         (output_macinfo): Likewise.  Emit .debug_macro* rather than
7724         .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7725         (init_sections_and_labels): Use .debug_macro* labels rather than
7726         .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7727         (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7728         or DW_AT_GNU_macros for -gdwarf-5.
7730 2016-10-31  Waldemar Brodkorb  <wbx@openadk.org>
7732         * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7734 2016-09-11  Le-Chun Wu  <lcwu@google.com>
7735             Mark Wielaard  <mjw@redhat.com>
7737         * common.opt (Wshadow=global): New option. Default for -Wshadow.
7738         (Wshadow=local): New option.
7739         (Wshadow-local): Hidden alias for -Wshadow=local.
7740         (Wshadow=compatible-local): New option.
7741         (Wshadow-compatible-local): Hidden alias for
7742         -Wshadow=compatible-local.
7743         * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7744         Wshadow=compatible-local.
7746 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
7748         * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7749         Check slp defs for COND_EXPR by swapping/inverting operands if the
7750         new parameter SWAP indicates so.
7751         (vect_build_slp_tree_1): New parameter SWAP.  Check COND_EXPR stmt
7752         is isomorphic to the first stmt via swapping/inverting.  Store swap
7753         information in the new parameter SWAP.
7754         (vect_build_slp_tree): New local array SWAP and pass it to function
7755         vect_build_slp_tree_1.  Cleanup result handling code for function
7756         call to vect_get_and_check_slp_defs.  Skip operand swapping if the
7757         order of operands has been fixed as indicated by SWAP[i].
7759 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
7761         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7762         unnecessary data dependence check after visited store stmt.
7764 2016-10-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7766         PR tree-optimization/71915
7767         PR tree-optimization/71490
7768         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7769         stride_type field.
7770         (find_basis_for_base_expr): Require stride types to match when
7771         seeking a basis.
7772         (alloc_cand_and_find_basis): Record the stride type.
7773         (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7774         (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7775         the expressions having those types.
7776         (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7777         (create_mul_ssa_cand): Likewise.
7778         (create_mul_imm_cand): Likewise.
7779         (create_add_ssa_cand): Likewise.
7780         (create_add_imm_cand): Likewise.
7781         (legal_cast_p_1): Change interface to accept types rather than the
7782         expressions having those types.
7783         (legal_cast_p): Pass types to legal_cast_p_1.
7784         (slsr_process_cast): Pass stride type to
7785         alloc_cand_and_find_basis.
7786         (slsr_process_copy): Likewise.
7787         (dump_candidate): Display stride type when a cast exists.
7788         (create_add_on_incoming_edge): Introduce a cast when necessary for
7789         the stride type.
7790         (analyze_increments): Change the code checking for invalid casts
7791         to rely on the stride type, and update the documentation and
7792         example.  Change the code checking for pointer multiplies to rely
7793         on the stride type.
7794         (insert_initializers): Introduce a cast when necessary for the
7795         stride type.  Use the stride type for the type of the initializer.
7797 2016-10-30  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7799         * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7801 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
7803         PR rtl-optimization/77919
7804         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7805         into memory if both modes are complex and their inner modes have the
7806         same precision.  If the two modes are different complex modes, convert
7807         each part separately and generate a new CONCAT.
7809 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
7811         * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7813 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
7815         PR target/78148
7816         * gimple-ssa-store-merging.c
7817         (imm_store_chain_info::output_merged_store): Use build_aligned_type
7818         instead of SET_TYPE_ALIGN on shared integral type.
7820 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
7822         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7823         (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7824         Adjust comment.
7826 2016-10-28  Jeff Law  <law@redhat.com>
7828         * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7829         * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7831 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
7833         * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7835 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
7837         * target.def (min_arithmetic_precision): New hook.
7838         * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7839         * doc/tm.texi: Regenerate.
7840         * internal-fn.c (expand_arith_overflow): Adjust handling of target
7841         dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7842         * targhooks.c (default_min_arithmetic_precision): New function.
7843         * targhooks.h (default_min_arithmetic_precision): Declare.
7844         * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7845         (sparc_min_arithmetic_precision): New function.
7847 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
7849         PR target/71847
7850         * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7851         Swap commutative operands in new RTL if needed.  Handle zero_ext
7852         in the set_dest.
7853         (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7854         PATTERN (insn).
7856 2016-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7857             Kugan Vivekanandarajah  <kuganv@linaro.org>
7858             Jim Wilson  <jim.wilson@linaro.org>
7860         PR tree-optimization/43721
7861         * target.def: New hook expand_divmod_libfunc.
7862         * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7863         * doc/tm.texi: Regenerate.
7864         * internal-fn.def: Add new entry for DIVMOD ifn.
7865         * internal-fn.c (expand_DIVMOD): New.
7866         * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7867         targhooks.h.
7868         (widen_mul_stats): Add new field divmod_calls_inserted.
7869         (target_supports_divmod_p): New.
7870         (divmod_candidate_p): Likewise.
7871         (convert_to_divmod): Likewise.
7872         (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7873         renumber_gimple_stmt_uids at beginning of function. Call
7874         convert_to_divmod and record stats for divmod.
7875         * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7876         TARGET_EXPAND_DIVMOD_LIBFUNC.
7877         * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7878         divmod_simode.
7880 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
7881             Segher Boessenkool  <segher@kernel.crashing.org>
7883         * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7884         swapping the arms of the branch.
7885         * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7886         sequence for the generic signed-signed-signed case.
7888 2016-10-28  Jeff Law  <law@redhat.com>
7890         * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7891         fallthru comment.
7892         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7894 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
7896         PR rtl-optimization/78029
7897         * function.c (prologue_contains, epilogue_contains): New functions.
7898         (record_prologue_seq, record_epilogue_seq): New functions.
7899         * function.h (prologue_contains, epilogue_contains,
7900         record_prologue_seq, record_epilogue_seq): New declarations.
7901         * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7902         mixing prologue and epilogue insns.
7903         (init_deps): Initialize the new fields in struct deps_desc.
7904         * sched-int.h (struct deps_desc): New fields last_prologue,
7905         last_epilogue, and last_logue_was_epilogue.
7906         * shrink-wrap.c (emit_common_heads_for_components): Record all
7907         emitted prologue and epilogue insns.
7908         (emit_common_tails_for_components): Ditto.
7909         (insert_prologue_epilogue_for_components): Ditto.
7911 2016-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7913         PR middle-end/22141
7914         * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7915         * common.opt (fstore-merging): New Optimization option.
7916         * opts.c (default_options_table): Add entry for
7917         OPT_ftree_store_merging.
7918         * fold-const.h (can_native_encode_type_p): Declare prototype.
7919         * fold-const.c (can_native_encode_type_p): Define.
7920         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7921         (PARAM_MAX_STORES_TO_MERGE): Likewise.
7922         * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7923         * passes.def: Insert pass_tree_store_merging.
7924         * tree-pass.h (make_pass_store_merging): Declare extern
7925         prototype.
7926         * gimple-ssa-store-merging.c: New file.
7927         * doc/invoke.texi (Optimization Options): Document
7928         -fstore-merging.
7929         (--param documentation): Document store-merging-allow-unaligned
7930         and max-stores-to-merge.
7932 2016-10-28  Will Schmidt <will_schmidt@vnet.ibm.com>
7934         PR middle-end/72747
7935         * gimplify.c (gimplify_init_constructor): Move emit of constructor
7936         assignment to earlier in the if/else logic.
7938 2016-10-28  Richard Biener  <rguenther@suse.de>
7940         PR middle-end/78128
7941         PR middle-end/71002
7942         * fold-const.c (make_bit_field_ref): Only adjust alias set
7943         when the original alias set was zero.
7945 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7947         * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7948         (s390_adjust_loops): New function.
7949         (s390_reorg): Invoke s390_adjust_loops.
7950         * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7951         ("osc_break"): New insn definition.
7953 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7955         * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7956         * config.gcc: Support alternate archXX cpu levels with
7957         --with-arch= and --with-tune=.
7958         * config/s390/linux.h: Translate new archXX cpu levels to the
7959         original names when calling GAS.
7960         * config/s390/tpf.h: Likewise.
7961         * doc/invoke.texi: Document the alternate cpu level names.
7963 2016-10-28  Jakub Jelinek  <jakub@redhat.com>
7965         PR rtl-optimization/77919
7966         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7967         MEM if mode1 is not a complex mode.
7969         PR rtl-optimization/78132
7970         * ree.c (combine_reaching_defs): Give up if copy_needed and
7971         !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7973 2016-10-27  Eric Botcazou  <ebotcazou@adacore.com>
7975         * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7977 2016-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
7979         * config/rs6000/constraints.md (wH constraint): Add new
7980         constraints for allowing 32-bit integers (and eventually 8/16-bit
7981         integers) into the vector registers.
7982         (wI constraint): Likewise.
7983         (wJ constraint): Likewise.
7984         (wK constraint): Likewise.
7985         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7986         -mvsx-small-integer as a default option for ISA 2.07
7987         (i.e. power8).
7988         (POWERPC_MASKS): Likewise.
7989         * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7990         switch to turn off small integer support in vector registers.
7991         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7992         test for -mupper-regs-di, since it is already done with the
7993         reg_add[mode].scalar_in_vsx_p.  Add support for the switch
7994         -mvsx-small-integer.
7995         (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7996         constraints.
7997         (rs6000_setup_reg_addr_masks): Likewise.
7998         (rs6000_init_hard_regno_mode_ok): Likewise.
7999         (rs6000_option_override_internal): Add consistency checks for
8000         -mvsx-small-integer.
8001         (rs6000_secondary_reload_simple_move): SImode is a simple move if
8002         -mvsx-small-integer.
8003         (rs6000_secondary_reload): Use std::swap.
8004         (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
8005         VSX_REGS for small integers in vector registers, since there is no
8006         D-FORM address mode for such types.
8007         (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
8008         (rs6000_opt_masks): Add -mvsx-small-integer.
8009         * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
8010         support.
8011         (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
8012         extracts can be done on ISA 2.07.
8013         (vsx_extract_<mode>): Add support for small integers in vsx
8014         registers.
8015         (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
8016         longer support V4SImode in this pattern.
8017         (vsx_extract_si): New insn to support extraction of SImode in ISA
8018         2.07 using either xxextractuw or vspltw.
8019         (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
8020         longer support V4SImode in this pattern.
8021         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
8022         wJ, and wK constraints.
8023         * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
8024         storing SDmode with VSX instructions.
8025         (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
8026         GPR load and before the FPR and VSX loads.  Remove ??, ! from the
8027         constraints.  Add MFVSRWZ and XXEXTRACTUW instructions to support
8028         small integers in vector registers.
8029         (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
8030         load and before the FPR and VSX loads.  Remove ??, ! from the
8031         constraints.  Add VEXTSW2D support for small integers in vector
8032         registers.
8033         (lfiwax): Remove ! constraint.  Add VEXTSW2D support for small
8034         integers in vector registers.
8035         (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
8036         move instead of using an UNSPEC.
8037         (lfiwzx): Remove ! constraint.  Add XXEXTRACTUW support for small
8038         integers in vector registers.
8039         (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
8040         move instead of using an UNSPEC.
8041         (movsi_internal1): Add support for -mvsx-small-integer.  Align
8042         columns so that it is more readable.
8043         (SImode splitter for ISA 3.0 constants): Add splitter for
8044         -128..127 constants that can easily be constructed on ISA 3.0.
8045         * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
8046         constraints.
8048 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
8050         PR middle-end/78025
8051         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
8052         functions.
8054 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8056         * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
8057         PIC_OFFSET_TABLE_REGNUM twice.
8059 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
8061         * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
8062         support for constant operand for OP.
8064 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
8066         * dwarf2out.c (gen_member_die): Only reparent_child instead of
8067         splice_child_die if child doesn't have DW_AT_specification attribute.
8069 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8071         * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
8072         (TARGET_HAVE_LDREXBH): Likewise.
8073         (TARGET_HAVE_LDACQ): Likewise.
8075 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8077         * config/arm/arm.c (arm_split_atomic_op): Add function comment.  Add
8078         logic to to decide whether to copy over old value to register for new
8079         value.
8080         * config/arm/sync.md: Add comments explaning why mode and code
8081         attribute are not defined in iterators.md
8082         (thumb1_atomic_op_str): New code attribute.
8083         (thumb1_atomic_newop_str): Likewise.
8084         (thumb1_atomic_fetch_op_str): Likewise.
8085         (thumb1_atomic_fetch_newop_str): Likewise.
8086         (thumb1_atomic_fetch_oldop_str): Likewise.
8087         (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
8088         mirror the more restrictive constraints of the Thumb-1 insns after
8089         split compared to Thumb-2 counterpart insns.
8090         (atomic_<sync_optab><mode>): Likewise.  Add comment to keep constraints
8091         in sync with non atomic version.
8092         (atomic_nand<mode>): Likewise.
8093         (atomic_fetch_<sync_optab><mode>): Likewise.
8094         (atomic_fetch_nand<mode>): Likewise.
8095         (atomic_<sync_optab>_fetch<mode>): Likewise.
8096         (atomic_nand_fetch<mode>): Likewise.
8097         * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
8098         in sync with atomic version.
8099         (thumb1_subsi3_insn): Likewise.
8100         (thumb1_andsi3_insn): Likewise.
8101         (thumb1_iorsi3_insn): Likewise.
8102         (thumb1_xorsi3_insn): Likewise.
8104 2016-10-27  Nick Clifton  <nickc@redhat.com>
8106         * plugin.c (register_plugin_info): Produce an error message if the
8107         plugin is not found in the hash table.
8109 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
8111         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
8112         New pattern.
8114 2016-10-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8116         PR target/78056
8117         * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
8118         define builtin functions from the bdesc_spe_predicates or
8119         bdesc_spe_evsel arrays if the builtin mask is not compatible with
8120         the current compiler configuration.
8121         (paired_init_builtins): Modify loop to not define define builtin
8122         functions from the bdesc_paried_preds array if the builtin mask is
8123         not compatible with the current compiler configuration.
8124         (altivec_init_builtins): Modify loops to not define the
8125         __builtin_altivec_stxvl function nor the builtin functions from
8126         the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
8127         builtin mask is not compatible with the current compiler
8128         configuration.
8130 2016-10-26  Jeff Law  <law@redhat.com>
8132         * config/sh/sh.c (output_branch): Add missing fallthru comments.
8133         (gen_shl_and): Likewise.
8134         * config/sh/sh.md (movsicc): Add missing fallthru comments.
8136         * config/mips/mips.c (mips16_constant_cost): Add missing
8137         fallthru comments.
8138         (mips16_build_call_stub): Increase buffer size.  Adjust
8139         fallthru comment.
8141 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
8143         * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
8144         INSN_UIDs for all insns in compact mode.
8145         (rtx_writer::print_rtx): Likewise.
8146         * print-rtl.h (rtx_writer::flag_compact): Update comment.
8147         * rtl-tests.c (selftest::test_dumping_insns): Update expected
8148         output to include INSN_UID.
8149         (selftest::test_uncond_jump): Likewise.
8151 2016-10-26  Pat Haugen  <pthaugen@us.ibm.com>
8153         * haifa-sched.c (call_used_regs_num): Rename to...
8154         (call_saved_regs_num): ...this.
8155         (fixed_regs_num): New variable.
8156         (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
8157         regs not call_used.
8158         (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
8160 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
8162         * print-rtl-function.c (print_rtx_function): Rewrite in terms of
8163         class rtx_writer.
8164         * print-rtl.c (outfile): Delete global.
8165         (sawclose): Likewise.
8166         (indent): Likewise.
8167         (in_call_function_usage): Likewise.
8168         (flag_compact): Likewise.
8169         (flag_simple): Likewise.
8170         (rtx_writer::rtx_writer): New ctor.
8171         (print_rtx_operand_code_0): Convert to...
8172         (rtx_writer::print_rtx_operand_code_0): ...this.
8173         (print_rtx_operand_code_e): Convert to...
8174         (rtx_writer::print_rtx_operand_code_e): ...this.
8175         (print_rtx_operand_codes_E_and_V): Convert to...
8176         (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
8177         (print_rtx_operand_code_i): Convert to...
8178         (rtx_writer::print_rtx_operand_code_i): ...this.
8179         (print_rtx_operand_code_r): Convert to...
8180         (rtx_writer::print_rtx_operand_code_r): ...this.
8181         (print_rtx_operand_code_u): Convert to...
8182         (rtx_writer::print_rtx_operand_code_u): ...this.
8183         (print_rtx_operand): Convert to...
8184         (rtx_writer::print_rtx_operand): ...this.
8185         (print_rtx): Convert to...
8186         (rtx_writer::print_rtx): ...this.
8187         (print_inline_rtx): Rewrite in terms of class rtx_writer.
8188         (debug_rtx): Likewise.
8189         (print_rtl): Convert to...
8190         (rtx_writer::print_rtl): ...this.
8191         (print_rtl): Reimplement in terms of class rtx_writer.
8192         (print_rtl_single): Rewrite in terms of class rtx_writer.
8193         (print_rtl_single_with_indent): Convert to..
8194         (rtx_writer::print_rtl_single_with_indent): ...this.
8195         (print_simple_rtl): Rewrite in terms of class rtx_writer.
8196         * print-rtl.h (flag_compact): Delete decl.
8197         (class rtx_writer): New class.
8198         * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
8199         class rtx_writer.
8201 2016-10-26  Jeff Law  <law@redhat.com>
8203         * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
8204         fallthru.
8206         * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
8207         (check_if_valid_sleep_operand): Add missing fallthru comment.
8208         (arc_register_move_cost): Increase buffer size.
8209         * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
8210         comment.
8211         * config/arc/predicates.md (move_str_operand): Avoid fallthru.
8213         * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
8214         comment.  Add gcc_unreachable for path that should never happen.
8216         * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
8217         fallthru comment.
8219 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
8220             Martin Liska  <mliska@suse.cz>
8222         PR fortran/77973
8223         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
8224         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
8225         on outer context if any.
8227 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
8229         * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
8230         by increment rather than double it.
8231         (insert_remove_pass): Strip leading whitespace from args[3].  Don't
8232         emit a space before args[4].
8233         (END): Don't emit a space before with_arg.
8235 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8237         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
8238         Baseline only alternatives to (i) hold store atomic success value in a
8239         return register rather than a scratch register, (ii) use a low register
8240         for it and to (iii) ensure the cbranchsi insn generated by the split
8241         respect the constraints of Thumb-1 cbranchsi4_insn and
8242         cbranchsi4_scratch.
8243         * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
8244         constraints must match those in atomic_compare_and_swap.
8245         (cbranchsi4_scratch): Likewise.
8247 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8249         * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
8250         variable.  Add the new parameter to the insn generator.  Set that
8251         parameter to be CC flag for 32-bit targets, bval otherwise.  Set the
8252         return value from the negation of that parameter for Thumb-1, keeping
8253         the logic unchanged otherwise except for using bdst as the destination
8254         register of the compare_and_swap insn.
8255         (arm_split_compare_and_swap): Add explanation about how is the value
8256         returned to the function comment.  Rename scratch variable to
8257         neg_bval.  Adapt initialization of variables holding operands to the
8258         new operand numbers.  Use return register to hold result of store
8259         exclusive for Thumb-1, scratch register otherwise.  Construct the
8260         appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
8261         for 32-bit targets.  Guard Z flag setting to restrict to 32bit targets.
8262         Use gen_cbranchsi4 rather than hand-written conditional branch to loop
8263         for strongly ordered compare_and_swap.
8264         * config/arm/predicates.md (cc_register_operand): New predicate.
8265         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
8266         match_operand with the new predicate to accept either the CC flag or a
8267         destination register for the boolean return value, restricting it to
8268         CC flag only via constraint.  Adapt operand numbers accordingly.
8270 2016-10-26  Jeff Law  <law@redhat.com>
8272         * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
8274         * config/frv/frv.c (comparison_string): Do not fall through after
8275         an error.
8277         * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
8278         comment.
8279         (expand_one_builtin): Add missing break.
8281         * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
8282         (m32c_legitimate_address_p): Likewise.
8284         * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
8286         * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
8288         * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
8289         fallthru comment.
8291         * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
8292         fallthru comment.
8294         * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
8296         * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
8297         comment.
8298         (rl78_asm_ctor_dtor): Increase buffer size.
8300         * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
8301         buffer size.
8302         (xstormy16_asm_output_constructor): Likewise.
8304         * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
8305         size.
8307         * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
8308         comment to silence warning.
8310         * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
8311         (spu_legitimate_address_p): Fix logic error and add missing fallthru
8312         comment.
8314 2016-10-26  Michael Matz  <matz@suse.de>
8316         PR tree-optimization/78060
8317         PR tree-optimization/78061
8318         PR tree-optimization/78088
8319         * tree-ssa-loop-split.c (easy_exit_values): New function.
8320         (tree_ssa_split_loops): Use it.
8321         (compute_new_first_bound): Change order of operations,
8322         fix invalid use of types.
8324 2016-10-26  Georg-Johann Lay  <avr@gjlay.de>
8326         gen-pass-instances.awk is sensitive to the order in which
8327         passes are added; passes that appear later have to be added first.
8329         PR target/71676
8330         PR target/71678
8331         * config/avr/avr-passes.def: Swap order of directives for
8332         gen-pass-instances.awk.
8334 2016-10-25  Jeff Law  <law@redhat.com>
8336         * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
8337         (vax_notice_update_cc): Likewise.
8339 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8341         * config.gcc (sparc*-*-solaris2*): Adjust.
8342         (sparc64-*-linux*): Likewise.
8343         * config/sparc/default-64.h: Rename to...
8344         * config/sparc/default64.h: ...this.
8345         * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
8346         with TARGET_ARCH64.
8347         (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
8348         * config/sparc/sparc.h: Minor tweaks.
8349         * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
8350         TARGET_ARCH32 throughout.  Minor various tweaks throughout.
8352 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
8354         * input.c (fcache::file_patch): Add comment about lifetime.
8355         (selftest::cpp_reader_ptr): New class.
8356         (selftest::lexer_test): Convert m_parser from cpp_reader *
8357         to a cpp_reader_ptr, and move m_tempfile to after it.
8358         (selftest::lexer_test::lexer_test): Update for above reordering.
8359         (lexer_test::~lexer_test): Move cleanup of m_parser to
8360         cpp_reader_ptr's dtor.
8362 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
8364         * toplev.c (toplev::main): Remove call to
8365         location_adhoc_data_fini.
8367 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8369         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8370         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
8372 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
8374         * ggc-tests.c (forcibly_ggc_collect): Rename to...
8375         (selftest::forcibly_ggc_collect): ...this, and remove "static".
8376         (test_basic_struct): Update for above renaming.
8377         (test_length): Likewise.
8378         (test_union): Likewise.
8379         (test_finalization): Likewise.
8380         (test_deletable_global): Likewise.
8381         (test_inheritance): Likewise.
8382         (test_chain_next): Likewise.
8383         (test_user_struct): Likewise.
8384         (test_tree_marking): Likewise.
8385         * selftest-run-tests.c (selftest::run_tests): Call
8386         selftest::forcibly_ggc_collect at the end of the selftests.
8387         * selftest.h (selftest::forcibly_ggc_collect): New decl.
8389 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
8391         PR target/78102
8392         * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8393         * optabs.c (expand_vec_cond_expr): For comparison codes
8394         EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8395         (expand_vec_cmp_expr): For comparison codes
8396         EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8397         * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8398         Add enum tree_code argument.
8399         * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8400         inline functions.
8401         * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument.  For
8402         CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8403         fallback.
8404         (expand_vec_cond_expr_p): Add CODE argument.  For CODE EQ_EXPR or
8405         NE_EXPR, attempt to use vcondeq_optab as fallback.
8406         * tree-vect-generic.c (expand_vector_comparison,
8407         expand_vector_divmod, expand_vector_condition): Adjust
8408         expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8409         * tree-vect-stmts.c (vectorizable_condition,
8410         vectorizable_comparison): Likewise.
8411         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8412         check_bool_pattern, search_type_for_mask_1): Likewise.
8413         * expr.c (do_store_flag): Likewise.
8414         * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8415         @code{vcondeq@var{m}@var{n}}): Document.
8416         * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8417         New expanders.
8419 2016-10-25  Jeff Law  <law@redhat.com>
8421         * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8422         comment.
8423         (v850_output_aligned_bss): Add missing break.
8425         * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8427 2016-10-25  Martin Liska  <mliska@suse.cz>
8429         PR sanitizer/78106
8430         * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8431         statements as they can also contain possibly a freeing call.
8433 2016-10-25  H.J. Lu  <hongjiu.lu@intel.com>
8434             Martin Liska  <mliska@suse.cz>
8436         PR ipa/78099
8437         * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8438         * ipa-icf.c (sem_function::get_hash): Add target optimization
8439         node to hash.
8441 2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
8443         PR target/78041
8444         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8445         Remove partial overlap check for shift by 1.
8446         (ashldi3_neon): Likewise.
8448 2016-10-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8450         * config/arm/constraints.md (Q constraint): Document its use for
8451         Thumb-1.
8452         (Pf constraint): New constraint for relaxed, consume or relaxed memory
8453         models.
8454         * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8455         alternatives to allow any register when memory model matches Pf and
8456         thus lda is used, but only low registers otherwise.  Use unpredicated
8457         output template for Thumb-1 targets.
8458         (atomic_store<mode>): Likewise for stl.
8459         (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8460         whose output template does not have predication.
8461         (arm_load_acquire_exclusive<mode>): Likewise.
8462         (arm_load_exclusivesi): Likewise.
8463         (arm_load_acquire_exclusivesi): Likewise.
8464         (arm_store_release_exclusive<mode>): Likewise.
8465         (arm_store_exclusive<mode>): Use unpredicated output template for
8466         Thumb-1 targets.
8468 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
8470         * internal-fn.def (LAUNDER): New internal function.
8471         * internal-fn.c (expand_LAUNDER): New function.
8473 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
8474             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
8476         New avr target pass to work around performance loss by PR fix.
8478         PR target/71676
8479         PR target/71678
8480         * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8481         (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8482         * config/avr/predicates.md (extend_operator): New.
8483         * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8484         * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8485         (make_avr_pass_casesi): New prototypes.
8486         * config/avr/avr.c (print-rtl.h): Include it.
8487         (pass_data avr_pass_data_casesi): Data for new pass.
8488         (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8489         (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8490         (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8491         (avr_optimize_casesi): New functions.
8493 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
8494             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
8496         PR target/71676
8497         PR target/71678
8498         * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8500 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
8502         * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8503         DW_AT_rvalue_reference attributes.
8505 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8507         * doc/invoke.text (Wint-in-bool-context): Update documentation.
8508         * value-prof.c (stringop_block_profile): Fix a warning.
8510 2016-10-24  Martin Sebor  <msebor@redhat.com>
8512         PR middle-end/77735
8513         * builtins.c (string_length): New function.
8514         (c_strlen): Use string_length.  Correctly handle wide strings.
8515         * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8516         functions.
8517         (target_int_max): Call target_max_value.
8518         (format_result::knownrange): New data member.
8519         (fmtresult::fmtresult): Define default constructor.
8520         (format_integer): Use it and set format_result::knownrange.
8521         Handle global constants.
8522         (format_floating_max): Add third argument.
8523         (format_floating): Recompute maximum value for %a for each argument.
8524         (get_string_length): Use fmtresult default ctor.
8525         (format_string): Set format_result::knownrange.
8526         (format_directive): Check format_result::knownrange.
8527         (add_bytes): Same.  Correct caret placement in diagnostics.
8528         (pass_sprintf_length::compute_format_length): Set
8529         format_result::knownrange.
8530         (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8532 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
8534         * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8535         VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8537 2016-10-24  Ximin Luo  <infinity0@pwned.gg>
8539         PR debug/77985
8540         * dwarf2out.c (file_table_relative_p): Remove.
8541         (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8542         also for absolute paths.
8543         * doc/tm.texi: Update.
8544         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8545         * target.def (force_at_comp_dir): Remove hook.
8546         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8548 2016-10-24  Richard Biener  <rguenther@suse.de>
8550         * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8551         backedges when identifying the single predecessor to take
8552         conditional info from.  Use SCEV to get at ranges for loop IVs.
8553         * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8554         avoid false warning.
8556 2016-10-24  Georg-Johann Lay  <avr@gjlay.de>
8558         PR target/78093
8559         * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8560         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8561         (avr_address_tiny_absdata_p): New static function.
8562         (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8563         it to determine validity of constant addresses.
8564         (avr_attribute_table) [absdata]: New variable attribute...
8565         (avr_handle_absdata_attribute): ...and handler.
8566         (avr_decl_absdata_p): New static function.
8567         (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8568         AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8569         (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8571 2016-10-24  Richard Biener  <rguenther@suse.de>
8573         PR tree-optimization/78076
8574         * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8575         also on the loop tree root.
8577 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
8579         * config/i386/i386.c (ix86_fold_builtin): Handle
8580         IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8581         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8582         (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8583         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8585 2016-10-24  Martin Liska  <mliska@suse.cz>
8587         PR sanitizer/77966
8588         * opts.c (finish_options): Skip conditionally.
8590 2016-10-23  Martin Sebor  <msebor@redhat.com>
8592         PR target/77837
8593         * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8594         * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8596 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8598         * config/sparc/sparc.md (cpu_feature): Minor tweak.
8599         (enabled): Likewise.
8600         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8601         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8602         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8603         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8604         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8605         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8607 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8609         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8610         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
8612 2016-10-21  Andrew Pinski  <apinski@cavium.com>
8614         * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8615         integer constants.
8616         * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8617         implementer_id to unsigned char.
8618         Change part_no to unsigned int.
8619         (AARCH64_BIG_LITTLE): New define.
8620         (INVALID_IMP): New define.
8621         (INVALID_CORE): New define.
8622         (cpu_data): Change the last element's implementer_id and part_no to
8623         integers.
8624         (valid_bL_string_p): Rewrite to ..
8625         (valid_bL_core_p): this for integers instead of strings.
8626         (parse_field): New function.
8627         (contains_string_p): Rewrite to ...
8628         (contains_core_p): this for integers and only for the part_no.
8629         (host_detect_local_cpu): Rewrite handling of implementation and
8630         par num to be integers; simplifying the code.
8632 2016-10-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
8634         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8635         value range for pointers in more cases.
8637 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
8639         * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8640         Add extra argument to allow emitting the move immediate.
8641         Use add/sub with positive immediate.
8642         (aarch64_add_constant): Add inline function.
8643         (aarch64_add_sp): Likewise.
8644         (aarch64_sub_sp): Likewise.
8645         (aarch64_expand_prologue): Call aarch64_sub_sp.
8646         (aarch64_expand_epilogue): Call aarch64_add_sp.
8647         Decide when to leave out move.
8648         (aarch64_output_mi_thunk): Call aarch64_add_constant.
8650 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
8652         * config/aarch64/aarch64.c (aarch64_layout_frame):
8653         Align FP callee-saves.
8655 2016-10-21  Jakub Jelinek  <jakub@redhat.com>
8657         * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8658         _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8659         Formatting fixes.
8660         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8661         _rdseed64_step): Likewise.
8662         * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8664         PR target/78057
8665         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8666         and tree-ssanames.h.
8667         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8668         with INTEGER_CST argument.
8669         (ix86_gimple_fold_builtin): New function.
8670         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8672         * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8673         (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8674         (ranges_table_allocated, ranges_table_in_use,
8675         ranges_by_label_allocated, ranges_by_label_in_use,
8676         RANGES_TABLE_INCREMENT): Removed.
8677         (add_ranges_num): Use vec_safe_push into ranges_table.
8678         (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8679         (output_ranges): Adjust for ranges_table and ranges_by_label
8680         conversion from arrays to vec.
8681         (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8682         conversion from arrays to vec.
8683         (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8684         ranges_table_in_use, ranges_by_label_allocated and
8685         ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.
8687         * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8688         if needed.  Re-add origin_die variable and its initialization.
8690         * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8691         even for -fstack-reuse=none, or for volatile vars etc.
8693 2016-10-21  David Malcolm  <dmalcolm@redhat.com>
8695         * print-rtl-function.c (flag_compact): Move extern decl to...
8696         * print-rtl.h (flag_compact): ...here.
8697         * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8698         (ASSERT_RTL_DUMP_EQ): New macro.
8699         (selftest::test_dumping_regs): New function.
8700         (selftest::test_dumping_insns): New function.
8701         (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8702         the insns.
8703         (selftest::rtl_tests_c_tests): Call the new test functions.
8705 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8707         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8708         (outgoing_edges_match): Likewise.
8709         (try_crossjump_to_edge): Likewise.
8710         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8711         (rtl_tidy_fallthru_edge): Likewise.
8712         * rtl.h (tablejump_p): Adjust prototype.
8713         * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8715 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8717         * rtl.h (label_ref_label): New function.
8718         (set_label_ref_label): New function.
8719         (LABEL_REF_LABEL): Delete.
8720         * alias.c (rtx_equal_for_memref_p): Adjust.
8721         * cfgbuild.c (make_edges): Likewise.
8722         (purge_dead_tablejump_edges): Likewise.
8723         * cfgexpand.c (convert_debug_memory_address): Likewise.
8724         * cfgrtl.c (patch_jump_insn): Likewise.
8725         * combine.c (distribute_notes): Likewise.
8726         * cse.c (hash_rtx_cb): Likewise.
8727         (exp_equiv_p): Likewise.
8728         (fold_rtx): Likewise.
8729         (check_for_label_ref): Likewise.
8730         * cselib.c (rtx_equal_for_cselib_1): Likewise.
8731         (cselib_hash_rtx): Likewise.
8732         * emit-rtl.c (mark_label_nuses): Likewise.
8733         * explow.c (convert_memory_address_addr_space_1): Likewise.
8734         * final.c (output_asm_label): Likewise.
8735         (output_addr_const): Likewise.
8736         * gcse.c (add_label_notes): Likewise.
8737         * genconfig.c (walk_insn_part): Likewise.
8738         * genrecog.c (validate_pattern): Likewise.
8739         * ifcvt.c (cond_exec_get_condition): Likewise.
8740         (noce_emit_store_flag): Likewise.
8741         (noce_get_alt_condition): Likewise.
8742         (noce_get_condition): Likewise.
8743         * jump.c (maybe_propagate_label_ref): Likewise.
8744         (mark_jump_label_1): Likewise.
8745         (redirect_exp_1): Likewise.
8746         (rtx_renumbered_equal_p): Likewise.
8747         * lra-constraints.c (operands_match_p): Likewise.
8748         * print-rtl.c (print_value): Likewise.
8749         * reload.c (find_reloads): Likewise.
8750         * reload1.c (set_label_offsets): Likewise.
8751         * reorg.c (get_branch_condition): Likewise.
8752         * rtl-tests.c (test_uncond_jump): Likewise.
8753         * rtl.c (rtx_equal_p_cb): Likewise.
8754         (rtx_equal_p): Likewise.
8755         * rtlanal.c (reg_mentioned_p): Likewise.
8756         (rtx_referenced_p): Likewise.
8757         (get_condition): Likewise.
8758         * varasm.c (const_hash_1): Likewise.
8759         (compare_constant): Likewise.
8760         (const_rtx_hash_1): Likewise.
8761         (output_constant_pool_1): Likewise.
8763 2016-10-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8765         PR target/71627
8766         * reload.c (find_valid_class_1): Allow regclass if atleast one
8767         regno in regclass is ok. Compute and use rclass size based on
8768         actually available regnos for mode in rclass.
8770 2016-10-21  Eric Botcazou  <ebotcazou@adacore.com>
8772         * config/sparc/sparc-modes.def (CCV): New.
8773         (CCXV): Likewise.
8774         * config/sparc/predicates.md (v_comparison_operator): New.
8775         (icc_comparison_operator): Add support for CCV/CCXV.
8776         (xcc_comparison_operator): Likewise.
8777         * config/sparc/sparc.c (output_cbranch): Likewise.
8778         (sparc_print_operand): Likewise.
8779         * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8780         (uaddvdi4): New expander.
8781         (addvdi4): Likewise.
8782         (uaddvdi4_sp32): New instruction.
8783         (addvdi4_sp32): Likewise.
8784         (uaddvsi4): New expander.
8785         (addvsi4): Likewise.
8786         (cmp_ccc_plus_sltu_set): New instruction.
8787         (cmp_ccv_plus): Likewise.
8788         (cmp_ccxv_plus): Likewise.
8789         (cmp_ccv_plus_set): Likewise.
8790         (cmp_ccxv_plus_set): Likewise.
8791         (cmp_ccv_plus_sltu_set): Likewise.
8792         (uaddvdi4): New expander.
8793         (subvdi4): Likewise.
8794         (usubdi4_sp32): New instruction.
8795         (subvdi4_sp32): Likewise.
8796         (usubvsi4): New expander.
8797         (subvsi4): Likewise.
8798         (cmpsi_minus_sltu_set): New instruction.
8799         (cmp_ccv_minus): Likewise.
8800         (cmp_ccxv_minus): Likewise.
8801         (cmp_ccv_minus_set): Likewise.
8802         (cmp_ccxv_minus_set): Likewise.
8803         (cmp_ccv_minus_sltu_set): Likewise.
8804         (unegvdi3): New expander.
8805         (negvdi3): Likewise.
8806         (unegdi3_sp32): New instruction.
8807         (negvdi3_sp32): Likewise.
8808         (unegvsi3): New expander.
8809         (negvsi3): Likewise.
8810         (cmp_ccc_neg_sltu_set): New instruction.
8811         (cmp_ccv_neg): Likewise.
8812         (cmp_ccxv_neg): Likewise.
8813         (cmp_ccv_neg_set): Likewise.
8814         (cmp_ccxv_neg_set): Likewise.
8815         (cmp_ccv_neg_sltu_set): Likewise.
8817         * tree-ssa-loop-split.c: Remove trailing spaces.
8818         * match.pd: Likewise.
8820 2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8822         PR rtl-optimization/78038
8823         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8824         be deduced to set REG through the RTL structure.
8825         (make_defs_and_copies_lists): Return false on a failing get_defs call.
8827 2016-10-21  Richard Biener  <rguenther@suse.de>
8829         PR tree-optimization/78051
8830         * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8831         and mark replaced if folding did something.
8833 2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
8835         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8836         and "protected" in visibility types.
8837         (rs6000_xcoff_declare_function_name): Fix formatting.
8838         (rs6000_xcoff_declare_object_name): Fix formatting.
8840 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
8842         * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8843         and IX86_BUILTIN_HUGE_VALQ here ...
8844         (ix86_expand_builtin): ... not here.
8846 2016-10-20  Jakub Jelinek  <jakub@redhat.com>
8848         * doc/gty.texi (for_user): Use @item next to @findex.
8850 2016-10-20  Uros Bizjak  <ubizjak@gmail.com>
8852         PR target/78037
8853         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8854         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8855         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8856         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8857         __builtin_ia32_lzcnt_u16.
8858         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8859         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8860         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8861         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8862         (bmi_tzcnt_<mode>): New expander.
8863         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8864         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8865         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8866         (lzcnt_<mode>): New expander.
8867         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8868         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8869         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8870         (UINT64_FTYPE_UINT64): New.
8871         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8872         (__builtin_ia32_lzcnt_u16): New description.
8873         (__builtin_ia32_lzcnt_u32): Ditto.
8874         (__builtin_ia32_lzcnt_u64): Ditto.
8875         (__builtin_ctzs): Remove description.
8876         (__builtin_ia32_tzcnt_u16): New description.
8877         (__builtin_ia32_tzcnt_u32): Ditto.
8878         (__builtin_ia32_tzcnt_u64): Ditto.
8879         * config/i386/i386.c (ix86_expand_args_builtin): Handle
8880         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8882 2016-10-20  Martin Liska  <mliska@suse.cz>
8884         PR lto/78049
8885         * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8886         comparison with STMT_UID_NOT_IN_RANGE.
8887         (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8888         LTRANS.
8890 2016-10-20  Eric Botcazou  <ebotcazou@adacore.com>
8892         * compare-elim.c (conforming_compare): Accept UNSPECs.
8893         (find_comparison_dom_walker::before_dom_children): Deal with
8894         instructions both using and killing the flags register.
8895         (equivalent_reg_at_start): New function extracted from...
8896         (try_eliminate_compare): ...here.  Use it and add support for
8897         registers and UNSPECs as second operand of the compare.
8898         * config/visium/visium-modes.def (CCV): New.
8899         * config/visium/predicates.md (visium_v_comparison_operator): New.
8900         (visium_branch_operator): Deal with CCV mode.
8901         * config/visium/visium.c (visium_select_cc_mode): Likewise.
8902         (output_cbranch): Likewise.
8903         * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8904         (uaddv<mode>4): New expander.
8905         (addv<mode>4): Likewise.
8906         (add<mode>3_insn_set_carry): New instruction.
8907         (add<mode>3_insn_set_overflow): Likewise.
8908         (addsi3_insn_set_overflow): Likewise.
8909         (usubv<mode>4): New expander.
8910         (subv<mode>4): Likewise.
8911         (sub<mode>3_insn_set_carry): New instruction.
8912         (sub<mode>3_insn_set_overflow): Likewise.
8913         (subsi3_insn_set_overflow): Likewise.
8914         (unegv<mode>3): New expander.
8915         (negv<mode>3): Likewise.
8916         (neg<mode>2_insn_set_overflow): New instruction.
8917         (addv_tst<mode>): Likewise.
8918         (subv_tst<mode>): Likewise.
8919         (negv_tst<mode>): Likewise.
8920         (cbranch<mode>4_addv_insn): New splitter and instruction.
8921         (cbranch<mode>4_subv_insn): Likewise.
8922         (cbranch<mode>4_negv_insn): Likewise.
8924 2016-10-20  Richard Biener  <rguenther@suse.de>
8926         * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8927         Handle decls possibly not bound.
8928         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8929         nothing_id for decls that might not be bound if we are interested
8930         for the address.
8931         (get_constraint_for_component_ref): Deal with that.
8933 2016-10-20  Michael Matz  <matz@suse.de>
8935         Loop splitting.
8936         * common.opt (-fsplit-loops): New flag.
8937         * passes.def (pass_loop_split): Add.
8938         * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8939         (enable_fdo_optimizations): Add loop splitting.
8940         * timevar.def (TV_LOOP_SPLIT): Add.
8941         * tree-pass.h (make_pass_loop_split): Declare.
8942         * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8943         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8944         * tree-ssa-loop-split.c: New file.
8945         * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8946         * doc/invoke.texi (fsplit-loops): Document.
8947         * doc/passes.texi (Loop optimization): Add paragraph about loop
8948         splitting.
8950 2016-10-20  Richard Biener  <rguenther@suse.de>
8952         * cgraphunit.c (analyze_functions): Set node->definition to
8953         false to signal symbol removal to debug_hooks->late_global_decl.
8954         * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8955         WPA signal symbol removal to the debuginfo machinery.
8956         * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8957         using early_finised to guard the we're called for symbol
8958         removal case look at the symtabs definition flag.
8959         (gen_variable_die): Remove redundant check.
8961 2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8963         * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8965 2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8967         PR tree-optimization/53979
8968         * match.pd ((a ^ b) | a -> a | b): New pattern.
8970 2016-10-19  John David Anglin  <danglin@gcc.gnu.org>
8972         * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8973         config/pa/pa64-hpux-lib.h.
8974         (PA_CRTBEGIN_HACK): Likewise.
8975         (DTOR_LIST_BEGIN): Likewise.
8977 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8979         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8980         register only if "in" and "out" are different registers.
8982 2016-10-19  Eric Botcazou  <ebotcazou@adacore.com>
8984         * omp-low.c (pass_oacc_device_lower::gate): New method.
8985         (execute): Always call execute_oacc_device_lower.
8987 2016-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8989         PR tree-optimization/77916
8990         PR tree-optimization/77937
8991         * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8992         stopgap fix.
8993         (insert_initializers): Requirement of initializer for -1 should be
8994         based on pointer-typedness of the candidate basis.
8996 2016-10-19  Bin Cheng  <bin.cheng@arm.com>
8998         PR tree-optimization/78005
8999         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
9000         upper (included) bound for niters of prolog loop.
9001         (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
9002         Compute niters of scalar loop above which vectorized loop is
9003         preferred, as well as the upper (included) bound for the niters.
9004         (vect_do_peeling): Record niter bound for loops accordingly.
9006 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
9008         PR lto/77458
9009         * tree-core.h (enum tree_index): Put the complex types after their
9010         component types.
9011         * tree-streamer.c (verify_common_node_recorded): New function.
9012         (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
9014 2016-10-19  Martin Liska  <mliska@suse.cz>
9016         * cgraph.h (cgraph_edge::binds_to_current_def_p):
9017         Replace NULL with false as a return value.
9019 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
9021         PR tree-optimization/78024
9022         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
9023         don't clear BB_VISITED after processing.
9025 2016-10-19  Richard Biener  <rguenther@suse.de>
9027         * domwalk.c (dom_walker::walk): Use RPO order.
9029 2016-10-19  Richard Biener  <rguenther@suse.de>
9031         * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
9032         stmts_to_remove.
9033         (evrp_dom_walker::~evrp_dom_walker): Free it.
9034         (evrp_dom_walker::stmts_to_remove): Add.
9035         (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
9036         whose output we fully propagate for removal.  Propagate
9037         into BB destination PHI arguments.
9038         (execute_early_vrp): Remove queued stmts.  Dump value ranges
9039         before stmt removal.
9041 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
9043         * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
9044         * passes.def: Add two instances of pass_walloca.
9045         * tree-pass.h (make_pass_walloca): New.
9046         * gimple-ssa-warn-alloca.c: New file.
9047         * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
9048         -Wvla-larger-than= options.
9050 2016-10-18  Thomas Schwinge  <thomas@codesourcery.com>
9052         * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
9053         * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
9055 2016-10-18  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9057         * config/rs6000/altivec.h (vec_xl_len): New macro.
9058         (vec_xst_len): New macro.
9059         (vec_cmpnez): New macro.
9060         (vec_cntlz_lsbb): New macro.
9061         (vec_cnttz_lsbb): New macro.
9062         (vec_xlx): New macro.
9063         (vec_xrx): New macro.
9064         (vec_all_nez): New C++ predicate template.
9065         (vec_any_eqz): New C++ predicate template.
9066         (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
9067         conditional compilation.
9068         (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
9069         conditional compilation.
9070         (vec_all_nez): New macro.
9071         (vec_any_eqz): New macro.
9072         (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
9073         compilation.
9074         (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
9075         compilation.
9076         * config/rs6000/vector.md (VI): Moved this mode iterator
9077         definition from altivec.md to vector.md.
9078         (UNSPEC_NEZ_P): New value.
9079         (vector_ne_<mode>_p): New expansion for implementation of
9080         vec_all_ne and vec_any_eq built-in functions.
9081         (vector_nez_<mode>_p): New expansion for implementation of
9082         vec_all_nez and vec_any_eqz built-in functions.
9083         (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
9084         and vec_any_eq built-in function.
9085         (cr6_test_for_zero): New commentary to explain this expansion.
9086         (cr6_test_for_zero_reverse): New commentary to explain this expansion.
9087         (cr6_test_for_lt): New commentary to explain this expansion.
9088         (cr6_test_for_lt_reverse): New commentary to explain this
9089         expansion.
9090         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9091         overloaded function prototypes for vec_all_ne, vec_all_nez,
9092         vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
9093         vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
9094         built-in functions.
9095         (altivec_resolve_overloaded_builtin): Modify the handling of
9096         ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
9097         the compiler is configured to support TARGET_P9_VECTOR.
9098         * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
9099         to explain the special processing that is given to predicate
9100         built-ins introduced using this macro.
9101         (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
9102         the special processing given to predicate built-ins introduced
9103         using this macro.
9104         (BU_VSX_P): Likewise.
9105         (BU_P8V_AV_P): Likewise.
9106         (BU_P9V_AV_P): Likewise.
9107         (BU_P9V_AV_X): New macro.
9108         (BU_P9V_64BIT_AV_X): New macro.
9109         (BU_P9V_VSX_3): New macro.
9110         (BU_P9V_OVERLOAD_P): New macro.
9111         (LXVL): New BU_P9V_64BIT_VSX_2.
9112         (VEXTUBLX): New BU_P9V_AV_2.
9113         (VEXTUBRX): Likewise.
9114         (VEXTUHLX): Likewise.
9115         (VEXTUHRX): Likewise.
9116         (VEXTUWLX): Likewise.
9117         (VEXTUWRX): Likewise.
9118         (STXVL): New BU_P9V_64BIT_AV_X.
9119         (VCLZLSBB): New BU_P9V_AV_1.
9120         (VCTZLSBB): Likewise.
9121         (CMPNEB): New BU_P9V_AV_2.
9122         (CMPNEH): Likewise.
9123         (CMPNEW): Likewise.
9124         (CMPNEF): Likewise.
9125         (CMPNED): Likewise.
9126         (VCMPNEB_P): New BU_P9V_AV_P.
9127         (VCMPNEH_P): Likewise.
9128         (VCMPNEW_P): Likewise.
9129         (VCMPNED_P): Likewise.
9130         (VCMPNEFP_P): Likewise.
9131         (VCMPNEDP_P): Likewise.
9132         (CMPNEZB): New BU_P9V_AV_2.
9133         (CMPNEZH): Likewise.
9134         (CMPNEZW): Likewise.
9135         (VCMPNEZB_P): New BU_P9V_AV_P.
9136         (VCMPNEZH_P): Likewise.
9137         (VCMPNEZW_P): Likewise.
9138         (LXVL): New BU_P9V_OVERLOAD_2.
9139         (STXVL): New BU_P9V_OVERLOAD_3.
9140         (VEXTULX): New BU_P9V_OVERLOAD_2.
9141         (VEXTURX): Likewise.
9142         (CMPNEZ): Likewise.
9143         (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
9144         (VCMPNE_P): Likewise.
9145         (VCLZLSBB): New BU_P9V_OVERLOAD_1.
9146         (VCTZLSBB): Likewise.
9147         * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
9148         comment to explain mode used for scratch register.
9149         (altivec_expand_stxvl_builtin): New function.
9150         (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
9151         (altivec_init_builtins): Add initialized variable
9152         void_ftype_v16qi_pvoid_long and use this type to define the
9153         built-in function __builtin_altivec_stxvl.
9154         * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
9155         (UNSPEC_STXVL): New value.
9156         (UNSPEC_VCLZLSBB): New value.
9157         (UNSPEC_VCTZLSBB): New value.
9158         (UNSPEC_VEXTUBLX): New value.
9159         (UNSPEC_VEXTUHLX): New value.
9160         (UNSPEC_VEXTUWLX): New value.
9161         (UNSPEC_VEXTUBRX): New value.
9162         (UNSPEC_VEXTUHRX): New value.
9163         (UNSPEC_VEXTUWRX): New value.
9164         (UNSPEC_VCMPNEB): New value.
9165         (UNSPEC_VCMPNEZB): New value.
9166         (UNSPEC_VCMPNEH): New value.
9167         (UNSPEC_VCMPNEZH): New value.
9168         (UNSPEC_VCMPNEW): New value.
9169         (UNSPEC_VCMPNEZW): New value.
9170         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
9171         vector of integer modes.
9172         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
9173         vector of float or double modes.
9174         (*vector_nez_<mode>_p): New insn for vector test all not equal or
9175         zero.
9176         (lxvl): New expand for load VSX vector with length.
9177         (*lxvl): New insn for load VSX vector with length.
9178         (stxvl): New expand for store VSX vector with length.
9179         (*stxvl): New insn for store VSX vector with length.
9180         (vcmpneb): New insn for vector of byte compare not equal.
9181         (vcmpnezb): New insn for vector of byte compare not equal or zero.
9182         (vcmpneh): New insn for vector of half word compare not equal.
9183         (vcmpnezh): New insn for vector of half word compare not equal or
9184         zero.
9185         (vcmpnew): New insn for vector of word compare not equal.
9186         (vcmpne<VSs>): New insn for vector of float or double compare not
9187         equal.
9188         (vcmpnezw): New insn for vector of word compare not equal or zero.
9189         (vclzlsbb): New insn for vector count leading zero
9190         least-significant bits byte.
9191         (vctzlsbb): New insn for vector count trailing zero least
9192         signficant bits byte.
9193         (vextublx): New insn for vector extract unsigned byte left
9194         indexed.
9195         (vextubrx): New insn for vector extract unsigned byte right
9196         indexed.
9197         (vextuhlx): New insn for vector extract unsigned half word left
9198         indexed.
9199         (vextuhrx): New insn for vector extract unsigned half word right
9200         indexed.
9201         (vextuwlx): New insn for vector extract unsigned word left
9202         indexed.
9203         (vextuwrx): New insn for vector extract unsigned word right
9204         indexed.
9205         * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
9206         clarify intent of this constant.
9207         * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
9208         * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
9209         documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
9210         vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
9211         and vec_xrx functions.
9213 2016-10-18  Andrew Pinski  <apinski@cavium.com>
9215         PR tree-opt/65950
9216         * predict.c (is_exit_with_zero_arg): New function.
9217         (tree_bb_level_predictions): Don't consider paths leading to exit(0)
9218         as nottaken.
9220 2016-10-18  Uros Bizjak  <ubizjak@gmail.com>
9222         PR target/77991
9223         * config/i386/i386.c (legitimize_tls_address)
9224         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
9225         convert dest to Pmode if different than Pmode.
9227 2016-10-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9229         PR tree-optimization/77916
9230         * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
9231         stopgap fix, as pointers with -1 increment are still broken.
9233 2016-10-18  David Edelsohn  <dje.gcc@gmail.com>
9235         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
9236         mapping class decoration from here...
9237         (rs6000_xcoff_encode_section): ...to here.
9239         (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
9240         if shrink-wrapping and optimizing for speed.
9242 2016-10-18  Richard Biener  <rguenther@suse.de>
9244         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9245         not visited but non-executable predecessors.  Return taken edge.
9246         Simplify conditions and refactor propagation vs. folding step.
9248 2016-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
9250         * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
9251         {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
9252         (rs6000_get_separate_components): Assert we do not have those
9253         strategies selected.
9255 2016-10-18  Richard Biener  <rguenther@suse.de>
9257         * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
9258         * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
9259         clearing.
9260         (substitute_and_fold_dom_walker): Adjust constructor.
9261         (substitute_and_fold_dom_walker::before_dom_children): Remove
9262         do_dce flag and handling (always true).
9263         (substitute_and_fold): Likewise.
9264         * tree-vrp.c (vrp_finalize): Adjust.
9265         (execute_early_vrp): Remove final BB_VISITED clearing.
9266         * tree-ssa-ccp.c (ccp_finalize): Adjust.
9267         * tree-ssa-copy.c (fini_copy_prop): Likewise.
9268         * ira.c (ira): Call clear_bb_flags.
9270 2016-10-18  Richard Biener  <rguenther@suse.de>
9272         * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
9273         get at the operand to look at with TREE_OPERAND for generic
9274         sub-nodes.
9276 2016-10-18  David Malcolm  <dmalcolm@redhat.com>
9278         * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
9279         copy_md_ptr_loc.
9280         (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
9281         (write_test_expr): Use rtx_reader_ptr for calls to
9282         fprint_c_condition.
9283         (write_attr_value): Likewise.
9284         * genconditions.c (write_one_condition): Use rtx_reader_ptr for
9285         call to print_md_ptr_loc.
9286         (write_one_condition): Likewise for calls to print_c_condition.
9287         * genconstants.c: Include "statistics.h" and "vec.h".
9288         (main): Update for conversion to member functions.
9289         * genemit.c (emit_c_code): Use rtx_reader_ptr for
9290         call to print_md_ptr_loc.
9291         * genenums.c: Include "statistics.h" and "vec.h".
9292         (main): Update for conversion of traverse_enum_types to a method.
9293         * genmddeps.c: Include "statistics.h" and "vec.h".
9294         * genoutput.c (process_template): Use rtx_reader_ptr for call to
9295         print_md_ptr_loc.
9296         * genpreds.c (write_predicate_subfunction): Likewise.
9297         (write_predicate_expr): Likewise for calls to print_c_condition.
9298         * genrecog.c (print_test): Likewise.
9299         * gensupport.c (process_rtx): Likewise for calls to
9300         copy_md_ptr_loc and join_c_conditions.
9301         (alter_test_for_insn): Likewise for call to join_c_conditions.
9302         (process_substs_on_one_elem): Likewise.
9303         (gen_mnemonic_setattr): Update for move of string_obstack to a
9304         field of rtx_reader.
9305         (mnemonic_htab_callback): Likewise.  Fix formatting.
9306         (gen_mnemonic_attr): Likewise.
9307         * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
9308         to print_c_condition.
9309         * read-md.c: Include "statistics.h" and "vec.h".
9310         (string_obstack): Convert this global to field "m_string_obstack"
9311         of class rtx_reader.
9312         (ptr_locs): Likewise, as "m_ptr_locs".
9313         (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
9314         (joined_conditions): Likewise, as "m_joined_conditions".
9315         (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
9316         (md_constants): Likewise, as "m_md_constants".
9317         (enum_types): Likewise, as "m_enum_types".
9318         (set_md_ptr_loc): Convert to...
9319         (rtx_reader::set_md_ptr_loc): ...member function.
9320         (get_md_ptr_loc): Convert to...
9321         (rtx_reader::get_md_ptr_loc): ...member function.
9322         (copy_md_ptr_loc): Convert to...
9323         (rtx_reader::copy_md_ptr_loc): ...member function.
9324         (fprint_md_ptr_loc): Convert to...
9325         (rtx_reader::fprint_md_ptr_loc): ...member function.
9326         (print_md_ptr_loc): Convert to...
9327         (rtx_reader::print_md_ptr_loc): ...member function.
9328         (join_c_conditions): Convert to...
9329         (rtx_reader::join_c_conditions): ...member function.
9330         (fprint_c_condition): Convert to...
9331         (rtx_reader::fprint_c_condition): ...member function.
9332         (print_c_condition): Convert to...
9333         (rtx_reader::print_c_condition): ...member function.
9334         (read_name): Convert to...
9335         (rtx_reader::read_name): ...member function.
9336         (read_escape): Convert to...
9337         (rtx_reader::read_escape): ...member function.
9338         (read_quoted_string): Convert to...
9339         (rtx_reader::read_quoted_string): ...member function.
9340         (read_braced_string): Convert to...
9341         (rtx_reader::read_braced_string): ...member function.
9342         (read_string): Convert to...
9343         (rtx_reader::read_string): ...member function.
9344         (read_skip_construct): Convert to...
9345         (rtx_reader::read_skip_construct): ...member function.
9346         (handle_constants): Convert to...
9347         (rtx_reader::handle_constants): ...member function.
9348         (traverse_md_constants): Convert to...
9349         (rtx_reader::traverse_md_constants): ...member function.
9350         (handle_enum): Convert to...
9351         (rtx_reader::handle_enum): ...member function.
9352         (lookup_enum_type): Convert to...
9353         (rtx_reader::lookup_enum_type): ...member function.
9354         (traverse_enum_types): Convert to...
9355         (rtx_reader::traverse_enum_types): ...member function.
9356         (rtx_reader::rtx_reader): Move initializations
9357         of various former global data from rtx_reader::read_md_files to
9358         here, as fields, along with the call to unlock_std_streams.
9359         (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9360         the new fields.
9361         (rtx_reader::read_md_files): Move initializations of various
9362         global data from here to the ctor.
9363         * read-md.h (read_name): Convert to...
9364         (rtx_reader::read_name): ...member function.
9365         (rtx_reader::read_escape): New method decl.
9366         (read_quoted_string): Convert to...
9367         (rtx_reader::read_quoted_string): ...member function.
9368         (rtx_reader::read_braced_string): New method decl.
9369         (read_string): Convert to...
9370         (rtx_reader::read_string): ...member function.
9371         (rtx_reader::read_skip_construct): New method decl.
9372         (rtx_reader::set_md_ptr_loc): New method decl.
9373         (rtx_reader::get_md_ptr_loc): New method decl.
9374         (copy_md_ptr_loc): Convert to...
9375         (rtx_reader::copy_md_ptr_loc): ...member function.
9376         (fprint_md_ptr_loc): Convert to...
9377         (rtx_reader::fprint_md_ptr_loc): ...member function.
9378         (print_md_ptr_loc): Convert to...
9379         (rtx_reader::print_md_ptr_loc): ...member function.
9380         (rtx_reader::lookup_enum_type): New method decl.
9381         (rtx_reader::traverse_enum_types): New method decl.
9382         (rtx_reader::handle_constants): New method decl.
9383         (traverse_md_constants): Convert to...
9384         (rtx_reader::traverse_md_constants): ...member function.
9385         (rtx_reader::handle_enum): New method decl.
9386         (rtx_reader::join_c_conditions): New method decl.
9387         (fprint_c_condition): Convert to...
9388         (rtx_reader::fprint_c_condition): ...member function.
9389         (print_c_condition): Convert to...
9390         (rtx_reader::print_c_condition): ...member function.
9391         (rtx_reader::apply_iterator_to_string): New method decl.
9392         (rtx_reader::copy_rtx_for_iterators): New method decl.
9393         (rtx_reader::read_conditions): New method decl.
9394         (rtx_reader::record_potential_iterator_use): New method decl.
9395         (rtx_reader::read_mapping): New method decl.
9396         (rtx_reader::read_rtx): New method decl.
9397         (rtx_reader::read_rtx_code): New method decl.
9398         (rtx_reader::read_rtx_operand): New method decl.
9399         (rtx_reader::read_nested_rtx): New method decl.
9400         (rtx_reader::read_rtx_variadic): New method decl.
9401         (rtx_reader::get_string_obstack): New method.
9402         (rtx_reader::get_md_constants): New method.
9403         (string_obstack): Convert global variable decl to...
9404         (rtx_reader::m_string_obstack): ...this new field.
9405         (rtx_reader::m_ptr_locs): New field.
9406         (rtx_reader::m_ptr_loc_obstack): New field.
9407         (rtx_reader::m_joined_conditions): New field.
9408         (rtx_reader::m_joined_conditions_obstack): New field.
9409         (rtx_reader::m_md_constants): New field.
9410         (rtx_reader::m_enum_types): New field.
9411         * read-rtl.c (apply_iterator_to_string): Convert to...
9412         (rtx_reader::apply_iterator_to_string): ...member function.
9413         (copy_rtx_for_iterators): Convert to...
9414         (rtx_reader::copy_rtx_for_iterators): ...member function.
9415         (add_condition_to_string): Use rtx_reader_ptr for
9416         calls join_c_conditions.
9417         (apply_iterators): Use rtx_reader_ptr for calls to
9418         join_c_conditions and copy_rtx_for_iterators.
9419         (read_conditions): Convert to...
9420         (rtx_reader::read_conditions): ...member function.
9421         (record_potential_iterator_use): Convert to...
9422         (rtx_reader::record_potential_iterator_use): ...member function.
9423         (read_mapping): Convert to...
9424         (rtx_reader::read_mapping): ...member function.
9425         (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9426         (read_rtx): Convert to...
9427         (rtx_reader::read_rtx): ...member function.
9428         (read_rtx_code): Convert to...
9429         (rtx_reader::read_rtx_code): ...member function.
9430         (read_rtx_operand): Convert to...
9431         (rtx_reader::read_rtx_operand): ...member function.  Update for move
9432         of string_obstack to a field.
9433         (read_nested_rtx): Convert to..
9434         (rtx_reader::read_nested_rtx): ...member function.
9435         (read_rtx_variadic): Convert to..
9436         (rtx_reader::read_rtx_variadic): ...member function.
9438 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
9440         * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9442 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
9444         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9445         for pointer type too.
9446         (ipcp_update_vr): set_ptr_nonnull for pointer.
9448 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
9450         * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9451         pt_solution_singleton_p.
9452         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9453         pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9454         * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9455         pointer nonnull computed by VRP.
9456         Also Conservatively set pt.null to 1.
9457         (pt_solution_reset): Conservatively set pt.null to 1.
9458         (pt_solution_singleton_or_null_p): Renamed from
9459         pt_solution_singleton_p.
9460         * tree-ssanames.h (set_ptr_nonnull): Declare.
9461         (get_ptr_nonnull): Likewise.
9462         * tree-ssanames.c (set_ptr_nonnull): New.
9463         (get_ptr_nonnull): Likewise.
9464         * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9465         (evrp_dom_walker::before_dom_children): Likewise.
9467 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
9469         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9470         * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9471         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9472         * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9473         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9474         * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9475         (rs6000_option_override_internal): Clear it if ABI_AIX.
9476         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9477         * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9479 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9481         * gimple-ssa-strength-reduction.c (record_increment): Remove
9482         garbage comment.
9484 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
9486         * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9487         that the result is non-zero if it is true.
9488         (maybe_expand_shift): New wrapper around expand_shift_1.
9489         (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9491 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9493         PR tree-optimization/77916
9494         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9495         Don't allow a MINUS_EXPR for pointer arithmetic for either known
9496         or unknown strides.
9497         (record_increment): Increments of -1 for unknown strides just use
9498         a multiply initializer like other negative values.
9499         (analyze_increments): Remove stopgap solution for -1 increment
9500         applied to pointer arithmetic.
9502 2016-10-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
9504         * dominance.c (dom_info::dom_info): Add new constructor for region
9505         which is vector of basic blocks.
9506         (dom_init): New method to initialize members common for both
9507         constructors.
9508         (dom_info::dom_info): Invoke dom_init for partial initialization.
9509         (dom_info::get_idom): Add check to corner cases on basic blocks which
9510         are not in region.
9511         (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9512         to detect unreachable bbs.
9513         (dom_info::calc_idoms): Likewise.
9514         (compute_dom_fast_query_in_region): New function.
9515         (calculate_dominance_info_for_region): Likewise.
9516         (free_dominance_info_for_region): Likewise.
9517         * dominance.h: Add prototypes for introduced region-based functions
9518         * tree-if-conv.c (build_region): New function.
9519         (if_convertible_loop_p_1): Invoke local version of post-dominators
9520         calculation before basic block predication with subsequent freeing
9521         post-dominator info.
9522         (tree_if_conversion): Remove free of post-dominator info
9523         (pass_if_conversion::execute): Delete detection of infinite loops
9524         and fake edges to exit block since post-dominator calculation is
9525         performed per if-converted loop only.
9527 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9529         PR target/77308
9530         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9531         register explicitly.
9532         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9533         optimizing for size.
9535 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9537         * config/aarch64/aarch64.c: Delete inclusion of
9538         cortex-a57-fma-steering.h.
9539         (aarch64_override_options): Delete call
9540         to aarch64_register_fma_steering.
9541         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9542         * config/aarch64/cortex-a57-fma-steering.h: Delete.
9543         * config/aarch64/aarch64-passes.def: New file.
9544         * config/aarch64/cortex-a57-fma-steering.c
9545         (aarch64_register_fma_steering): Delete definition.
9546         (make_pass_fma_steering): Remove static qualifier.
9547         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9548         (cortex-a57-fma-steering.o): Remove dependency on
9549         cortex-a57-fma-steering.h.
9551 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
9553         * explow.c (validize_mem): Do not modify the argument in-place.
9555 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
9557         * tree-streamer.c (record_common_node): Explicitly list expected
9558         tree codes.
9560 2016-10-17  Richard Biener  <rguenther@suse.de>
9562         PR tree-optimization/77988
9563         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9565 2016-10-17  Marek Polacek  <polacek@redhat.com>
9567         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9569 2016-10-17  Richard Biener  <rguenther@suse.de>
9571         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9572         before using it.
9574 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9576         PR tree-optimization/71636
9577         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9579 2016-10-17  Richard Biener  <rguenther@suse.de>
9581         * gimplify.c (gimplify_function_tree): Do not move the outer
9582         binds block.
9584 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
9586         * langhooks.h (struct lang_hooks_for_decls): Remove
9587         function_decl_explicit_p, function_decl_deleted_p and
9588         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
9589         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9590         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9591         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9592         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9593         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9594         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9595         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9596         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
9597         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9598         * langhooks.c (lhd_decl_dwarf_attribute): New function.
9599         * dwarf2out.c (gen_subprogram_die): Use
9600         lang_hooks.decls.decl_dwarf_attribute instead of
9601         lang_hooks.decls.function_decl_*.
9603 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
9605         PR ada/37139
9606         PR ada/67205
9607         * common.opt (-ftrampolines): New option.
9608         * doc/invoke.texi (Code Gen Options): Document it.
9609         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9610         * doc/tm.texi: Regenerate.
9611         * builtins.def: Add init_descriptor and adjust_descriptor.
9612         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9613         on platforms with descriptors.
9614         (expand_builtin_init_descriptor): New function.
9615         (expand_builtin_adjust_descriptor): Likewise.
9616         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9617         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9618         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9619         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
9620         Set STATIC_CHAIN_REG_P on the static chain register, if any.
9621         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9622         (expand_call): Likewise.  Move around call to prepare_call_address
9623         and pass all flags to it.
9624         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9625         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9626         (gimple_call_set_by_descriptor): New setter.
9627         (gimple_call_by_descriptor_p): New getter.
9628         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9629         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9630         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9631         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9632         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9633         * rtl.h (STATIC_CHAIN_REG_P): New macro.
9634         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9635         * target.def (custom_function_descriptors): New POD hook.
9636         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9637         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9638         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9639         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9640         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9641         (build_common_builtin_nodes): Initialize init_descriptor and
9642         adjust_descriptor.
9643         * tree-nested.c: Include target.h.
9644         (struct nesting_info): Add 'any_descr_created' field.
9645         (get_descriptor_type): New function.
9646         (lookup_element_for_decl): New function extracted from...
9647         (create_field_for_decl): Likewise.
9648         (lookup_tramp_for_decl): ...here.  Adjust.
9649         (lookup_descr_for_decl): New function.
9650         (convert_tramp_reference_op): Deal with descriptors.
9651         (build_init_call_stmt): New function extracted from...
9652         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
9653         * defaults.h (FUNCTION_ALIGNMENT): Define.
9654         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9655         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9656         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9657         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9658         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9660 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
9662         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9663         constants in CONST_VECTORs.
9665 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
9667         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9668         register as destination of bmask.
9669         (vector_init_bshuffle): Likewise.
9670         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9671         (bmaskdi_vis): Enable only in 64-bit mode.
9673 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
9675         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9676         make LR a separately shrink-wrapped component unless savres_strategy
9677         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
9678         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
9679         wrapping when not both {SAVE,REST}_INLINE_GPRS.
9681 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
9683         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9684         and keep looping on failure.
9686 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
9688         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9689         set.
9690         (print_rtx_function): Update example in comment for...
9691         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9692         non-virtual pseudos with a '%' sigil followed by the regno, offset
9693         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9694         pseudo is dumped as "%0".
9696 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
9698         PR middle-end/77959
9699         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9700         return a MEM.
9702 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9704         * config/sparc/sparc-passes.def: New file.
9705         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9706         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9707         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9709 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
9711         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9712         loop peel to loops with exit test at the beginning.
9714 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
9716         PR rtl-optimization/68212
9717         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9718         frequency when computing scale factor for peeled copies.
9719         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9720         values for switch/peel blocks/edges.
9722 2016-10-14  Pedro Alves  <palves@redhat.com>
9724         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9726 2016-10-14  Catherine Moore  <clm@codesourcery.com>
9728         * config/mips/mips.c (mips_prepare_pch_save): Initialize
9729         micromips_globals to zero.
9731 2016-10-14  Richard Biener  <rguenther@suse.de>
9733         PR tree-optimization/77979
9734         * tree-vrp.c (compare_name_with_value): Handle released SSA names
9735         in the equivalency sets.
9736         (compare_names): Likewise.
9738 2016-10-14  Martin Liska  <mliska@suse.cz>
9740         * builtins.h(target_char_cst_p): Declare the function.
9741         * builtins.c (fold_builtin_memchr): Remove.
9742         (target_char_cst_p): Move the function from gimple-fold.c.
9743         (fold_builtin_3): Do not call the function.
9744         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9745         (gimple_fold_builtin): Call the function.
9746         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9748 2016-10-14  Martin Liska  <mliska@suse.cz>
9750         * builtins.c (fold_builtin_strcmp): Remove function.
9751         (fold_builtin_strncmp): Likewise.
9752         (fold_builtin_2): Remove call of the function.
9753         (fold_builtin_3): Likewise.
9754         * fold-const-call.c (fold_const_call): Add constant folding
9755         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9756         * fold-const-call.h (build_cmp_result): Declare the function.
9757         * gimple-fold.c (gimple_load_first_char): New function.
9758         (gimple_fold_builtin_string_compare): Likewise.
9759         (gimple_fold_builtin): Call the function.
9761 2016-10-14  Nathan Sidwell  <nathan@acm.org>
9763         * gcov-io.c (gcov_open): Deconstify 'mode'.
9765 2016-10-14  Martin Liska  <mliska@suse.cz>
9767         * fold-const.c (c_getstr): Support of properly \0-terminated
9768         string constants.  New argument is added.
9769         * fold-const.h: New argument is added.
9771 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9773         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9774         New function.
9775         (aarch64_print_hint_for_core): Likewise.
9776         (aarch64_print_hint_for_arch): Likewise.
9777         (aarch64_validate_march): Use it.  Fix indentation in type signature.
9778         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9779         (aarch64_validate_mtune): Likewise.
9780         (aarch64_handle_attr_arch): Likewise.
9781         (aarch64_handle_attr_cpu): Likewise.
9782         (aarch64_handle_attr_tune): Likewise.
9784 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9786         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9787         and udivmod_optab.
9789 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
9791         * config/m68k/m68k.c (m68k_option_override): Check
9792         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9793         instead of stack_limit_rtx.
9795 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
9797         * dwarf2out.c (gen_member_die): Handle inline static data member
9798         definitions.
9800 2016-10-13  Nathan Sidwell  <nathan@acm.org>
9802         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
9803         gcov_var.mode.  Remove unnecessary fstat.
9805 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
9807         PR bootstrap/77962
9808         * function.c (thread_prologue_and_epilogue_insns): Call all
9809         make_*logue_seq in the same order as traditional.  Call them
9810         all a second time if shrink_wrapped_separate.
9812 2016-10-13  Marek Polacek  <polacek@redhat.com>
9814         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9815         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9816         use -Wno-error.
9818 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9820         PR tree-optimization/77937
9821         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9822         to infinite when we have a pointer with an increment of -1.
9824 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9826         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9827         into ...
9828         * memmodel.h: This file.
9829         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9830           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9831           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9832           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9833           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9834           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9835           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9836           compare-elim.c, config/aarch64/aarch64-builtins.c,
9837           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9838           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9839           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9840           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9841           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9842           config/darwin.c, config/epiphany/epiphany.c,
9843           config/epiphany/mode-switch-use.c,
9844           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9845           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9846           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9847           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9848           config/m68k/m68k.c, config/mcore/mcore.c,
9849           config/microblaze/microblaze.c, config/mmix/mmix.c,
9850           config/mn10300/mn10300.c, config/moxie/moxie.c,
9851           config/msp430/msp430.c, config/nds32/nds32-cost.c,
9852           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9853           config/nds32/nds32-memory-manipulation.c,
9854           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9855           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9856           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9857           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9858           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9859           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9860           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9861           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9862           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9863           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9864           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9865           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9866           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9867           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9868           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9869           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9870           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9871           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9872           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9873           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9874           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9875           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9876           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9877           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9878           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9879           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9880           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9881           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9882           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9883           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9884           var-tracking.c, varasm.c: Include memmodel.h.
9885         * genattrtab.c (write_header): Include memmodel.h in generated file.
9886         * genautomata.c (main): Likewise.
9887         * gengtype.c (open_base_files): Likewise.
9888         * genopinit.c (main): Likewise.
9889         * genconditions.c (write_header): Include memmodel.h earlier in
9890         generated file.
9891         * genemit.c (main): Likewise.
9892         * genoutput.c (output_prologue): Likewise.
9893         * genpeep.c (main): Likewise.
9894         * genpreds.c (write_insn_preds_c): Likewise.
9895         * genrecog.c (write_header): Likewise.
9896         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9898 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
9900         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9901         for new "compact" param of print_rtx_function.  Check for "cinsn"
9902         rather than "insn".
9903         * print-rtl-function.c (flag_compact): New decl.
9904         (print_rtx_function): Add param "compact" and use it to set
9905         flag_compact, adding a description of the effect to the leading
9906         comment, and updating the example output.
9907         * print-rtl.c (flag_compact): New variable.
9908         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9909         mode.
9910         (print_rtx_operand_code_i): When printing source locations, wrap
9911         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
9912         (print_rtx_operand_code_r): Don't print regnos for hard regs and
9913         virtuals in compact mode.
9914         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9915         apart from in LABEL_REFs.
9916         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9917         Don't print basic block ids in compact mode.
9918         (print_rtx):  In compact mode, prefix the code of insns with "c",
9919         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9920         * print-rtl.h (print_rtx_function): Add "compact" param.
9922 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
9924         * arm.h (TARGET_VFP): Delete.
9925         (TARGET_VFPD32): Remove references to TARGET_VFP.
9926         (TARGET_VFP3, TARGET_VFP5): Likewise.
9927         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9928         (TARGET_NEON_FP16): Likewise.
9929         (TARGET_FMA): Likewise.
9930         (TARGET_CRYPTO): Likewise.
9931         (TARGET_NEON): Likewise.
9932         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9933         (FUNCTION_ARG_REGNO_P): Likewise.
9934         * arm.c (arm_option_check_internal): Likewise.
9935         (arm_option_override): Likewise.
9936         (use_return_insn): Likewise.
9937         (arm_function_value_regno_p): Likewise.
9938         (arm_apply_result_size): Likewise.
9939         (use_vfp_abi): Likewise.
9940         (arm_legitimate_address_outer_p): Likewise.
9941         (thumb2_legitimate_address_p): Likewise.
9942         (arm_legitimate_index_p): Likewise.
9943         (thumb2_legitimate_index_p): Likewise.
9944         (arm_legitimate_address): Likewise.
9945         (arm_get_vfp_saved_size): Likewise.
9946         (arm_emit_vfp_multi_reg_pop): Likewise.
9947         (arm_get_frame_offsets): Likewise.
9948         (arm_save_coproc_regs): Likewise.
9949         (arm_hard_regno_mode_ok): Likewise.
9950         (arm_expand_epilogue_apcs_frame): Likewise.
9951         (arm_expand_epilogue): Likewise.
9952         (arm_file_start): Likewise.
9953         (arm_conditional_register_usage): Likewise.
9954         (arm_validize_comparison): Use vfp_compare_operand directly.
9955         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9956         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9957         unsupported usage.
9958         (arm_atomic_assign_expand_fenv): Likewise.
9959         * arm.md (divsf3): Likewise.
9960         (arm_negsi2): Likewise.
9961         (absdf2): Likewise.
9962         (arm_movdi): Likewise.
9963         (arm_movt): Likewise.
9964         (cbranchsf4): Change predicate to vfp_compare_operand.
9965         (cbranchdf4): Change predicate to vfp_compare_operand.
9966         (cstorehf4): Change predicate to vfp_compare_operand.
9967         (cstoresf4): Change predicate to vfp_compare_operand.
9968         (cstoredf4): Change predicate to vfp_compare_operand.
9969         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9970         (movhi_insn_arch4, movhi_bytes): Likewise.
9971         * constraints.md (Dt): Likewise.
9972         (Dp): Likewise.
9973         * iterators.md (SDF): Likewise.
9974         * predicates.md (arm_float_compare_operand): Delete.
9975         (const_double_vcvt_power_of_two_reciprocal): Remove references to
9976         TARGET_VFP.
9977         (const_double_vcvt_power_of_two): Likewise.
9978         * thumb2.md thumb2_movsi_insn): Likewise.
9979         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9980         (movhf_vfp): Likewise.
9981         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9982         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9983         (movsf_vfp, thumb2_movsf_vfp): Likewise.
9984         (movdf_vfp, thumb2_movdf_vfp): Likewise.
9985         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9986         (subsf3_vfp, divsf3_vfp): Likewise.
9987         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9988         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9989         (mulsf3negsfsubsf_vfp): Likewise.
9990         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9991         (floatunssisf2, sqrtsf2_vfp): Likewise.
9992         (movcc_vfp): Likewise.
9993         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9994         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9995         (push_multi_vfp): Likewise.
9996         (set_fpscr, get_fpscr): Likewise.
9997         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9999 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
10001         * arm.h (TARGET_VFP): Unconditionally define to 1.
10002         (arm_fpu_desc): Remove 'model' field.
10003         (TARGET_FPU_MODEL): Delete.
10004         * arm.c (all_fpus): Don't initialize the model field.
10005         (arm_can_inline_p): Don't check the FPU model.
10006         * arm-fpus.def: Remove redundant model field from all FPU
10007         descriptions.
10009 2016-10-13  Richard Biener  <rguenther@suse.de>
10011         PR middle-end/77826
10012         * genmatch.c (struct capture): Add value_match member.
10013         (commutate): Preserve value_match.
10014         (lower_opt_convert): Likewise.
10015         (lower_cond): Likewise.
10016         (replace_id): Likewise.
10017         (struct dt_operand): Add value_match member.
10018         (decision_tree::cmp_node): Compare it.
10019         (decision_tree::insert_operand): Honor it when finding and
10020         when appending a DT_MATCH.
10021         (dt_operand::gen_match_op): Generate a type check after
10022         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
10023         (parser::get_internal_capture_id): New helper.
10024         (parser::finish_match_operand): New function lowering @@<id>.
10025         (parser::parse_capture): Parse @@<id> as value-match.
10026         (parser::parse_expr): Use get_internal_capture_id.
10027         (parser::parse_simplify): Call finish_match_operand.
10028         (walk_captures): New helper.
10029         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
10030         of operand_equal_p.
10031         ((X /[ex] A) * A -> X): Likewise.
10032         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
10033         convert[12] and value-matching.
10034         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
10035         ((X | Y) | Y -> X | Y): Likewise.
10036         ((X ^ Y) ^ Y -> X): Likewise.
10037         (A - (A & B) -> ~B & A): Likewise.
10038         ((T)(P + A) - (T)P -> (T) A): Likewise.
10039         ((T)P - (T)(P + A) -> -(T) A): Likewise.
10040         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
10041         * doc/match-and-simplify.texi: Amend capture section.
10043 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
10045         * config/arc/arc.md (umul_600): Remove predicated variant.
10046         (umul64_600): Likewise.
10048 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
10050         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
10052 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10054         * tree-vect-loop.c (loop_niters_no_overflow): New func.
10055         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
10056         no-overflow information to vect_do_peeling_for_loop_bound and
10057         vect_gen_vector_loop_niters.
10059 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10061         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
10062         iterates 1 time.
10064 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10066         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
10067         adjust_vec automatically.
10068         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
10069         param exit_bb to guard_to.
10070         (slpeel_checking_verify_cfg_after_peeling):
10071         (set_prologue_iterations):
10072         (create_lcssa_for_virtual_phi): New func which is factored out from
10073         slpeel_tree_peel_loop_to_edge.
10074         (slpeel_tree_peel_loop_to_edge):
10075         (iv_phi_p): New func.
10076         (vect_can_advance_ivs_p): Call iv_phi_p.
10077         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
10078         new gimple stmts in basic block.
10079         (vect_gen_niters_for_prolog_loop): Rename to...
10080         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
10081         adjust implementation.
10082         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
10083         sizetype if necessary.
10084         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
10085         it to external function.
10086         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
10087         (vect_gen_vector_loop_niters_mult_vf): New.
10088         (slpeel_update_phi_nodes_for_loops): New.
10089         (slpeel_update_phi_nodes_for_guard1): Reimplement.
10090         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
10091         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
10092         * tree-vect-loop.c (vect_build_loop_niters): Move to file
10093         tree-vect-loop-manip.c
10094         (vect_generate_tmps_on_preheader): Delete.
10095         (vect_transform_loop): Rename vectorization_factor to vf.  Call
10096         vect_do_peeling instead of vect_do_peeling-* functions.
10097         * tree-vectorizer.h (vect_do_peeling): New decl.
10098         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
10099         (vect_do_peeling_for_loop_bound): Delete.
10100         (vect_do_peeling_for_alignment): Delete.
10102 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10104         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
10105         duplicated loop after its preheader and after the original loop.
10107 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10109         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
10110         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
10112 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10114         * tree-vect-loop.c (vectorizable_live_operation): Support handling
10115         for live variable outside loop but not in lcssa form.
10117 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10119         * cfg.c (reset_original_copy_tables): New func.
10120         * cfg.h (reset_original_copy_tables): New decl.
10122 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
10124         PR c/77946
10125         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
10126         public_flag.
10127         * varasm.c (default_binds_local_p_3): Formatting fix.
10129 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
10131         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
10132         style issue.
10133         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
10134         Remove useless code.
10136 2016-10-13  Martin Liska  <mliska@suse.cz>
10138         PR tree-optimization/77943
10139         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
10140         a different EH landing pads.
10142 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
10144         PR target/77957
10145         * hooks.h (hook_tree_void_null): Declare.
10146         * hooks.c (hook_tree_void_null): New function.
10147         * langhooks.c (lhd_return_null_tree_v): Remove.
10148         * langhooks-def.h (lhd_return_null_tree_v): Remove.
10149         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
10150         set y to const0_rtx.
10151         * function.c (stack_protect_epilogue): Likewise.
10152         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
10153         if TARGET_THREAD_SSP_OFFSET is defined.
10154         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
10155         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
10156         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
10157         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
10158         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
10159         (ix86_stack_protect_guard): New function.
10161 2016-10-13  Richard Biener  <rguenther@suse.de>
10163         * dwarf2out.c (tree_add_const_value_attribute): Do not try
10164         rtl_for_decl_init during early phase.
10165         (gen_variable_die): Do not create locations during early phase.
10166         (gen_label_die): Likewise.
10167         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
10168         twice.
10170 2016-10-12  Richard Biener  <rguenther@suse.de>
10172         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
10173         try_add_new_range and made to eturn new range.
10174         (evrp_dom_walker::before_dom_children): Push op1 value range before
10175         pushing op0 value range.
10177 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10179         PR tree-optimization/77937
10180         * gimple-ssa-strength-reduction.c (analyze_increments): Use
10181         POINTER_TYPE_P on the candidate type to determine whether
10182         candidates in this chain require pointer arithmetic.
10184 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
10186         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
10187         correction if the type is smaller than a word.
10188         (visium_select_cc_mode): Add ... fall through ... comment.
10190 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
10192         * config/rs6000/rs6000.c (machine_function): Add new fields
10193         gpr_is_wrapped_separately and lr_is_wrapped_separately.
10194         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
10195         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
10196         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
10197         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
10198         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
10199         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
10200         (rs6000_get_separate_components): New function.
10201         (rs6000_components_for_bb): New function.
10202         (rs6000_disqualify_components): New function.
10203         (rs6000_emit_prologue_components): New function.
10204         (rs6000_emit_epilogue_components): New function.
10205         (rs6000_set_handled_components): New function.
10206         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
10207         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
10208         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
10209         (rs6000_emit_epilogue): Don't emit GPR restores if
10210         gpr_is_wrapped_separately for that register.  Don't make a
10211         REG_CFA_RESTORE note for registers we did not restore, either.
10213 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
10215         * function.c (thread_prologue_and_epilogue_insns): Call
10216         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
10217         if it has possibly changed.  Compute the split_prologue_seq and
10218         epilogue_seq later, too.
10219         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
10220         (dump_components): New function.
10221         (struct sw): New struct.
10222         (SW): New function.
10223         (init_separate_shrink_wrap): New function.
10224         (fini_separate_shrink_wrap): New function.
10225         (place_prologue_for_one_component): New function.
10226         (spread_components): New function.
10227         (disqualify_problematic_components): New function.
10228         (emit_common_heads_for_components): New function.
10229         (emit_common_tails_for_components): New function.
10230         (insert_prologue_epilogue_for_components): New function.
10231         (try_shrink_wrapping_separate): New function.
10232         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
10234 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
10236         * regrename.c (build_def_use): Invalidate chains that have a
10237         REG_CFA_RESTORE on some instruction.
10239 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
10241         * dce.c (delete_unmarked_insns): Don't delete instructions with
10242         a REG_CFA_RESTORE note.
10244 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
10246         * common.opt (-fshrink-wrap-separate): New flag.
10247         * doc/invoke.texi: Document it.
10248         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
10249         * doc/tm.texi: Regenerate.
10250         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
10251         * target.def (shrink_wrap): New hook vector.
10252         (get_separate_components, components_for_bb, disqualify_components,
10253         emit_prologue_components, emit_epilogue_components,
10254         set_handled_components): New hooks.
10256 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
10258         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
10259         vector return by reference only if -Wpsabi.
10260         (rs6000_pass_by_reference): Similarly, for argument passing.
10262 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
10264         * function-tests.c: Include "print-rtl.h".
10265         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
10266         function, and verify what is dumped.
10267         * print-rtl-function.c (print_edge): New function.
10268         (begin_any_block): New function.
10269         (end_any_block): New function.
10270         (can_have_basic_block_p): New function.
10271         (print_rtx_function): Track the basic blocks of insns in the
10272         chain, wrapping those that are within blocks within "(block)"
10273         directives.  Remove the "(cfg)" directive.
10275 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
10277         * selftest.c (selftest::read_file): New function.
10278         (selftest::test_read_file): New function.
10279         (selftest::selftest_c_tests): Call test_read_file.
10280         * selftest.h (selftest::read_file): New decl.
10282 2016-10-12  Richard Biener  <rguenther@suse.de>
10284         PR debug/77947
10285         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
10286         function context.
10288 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
10290         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
10292         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
10293         dwarf2out_assembly_start.
10295         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
10297         * Makefile.in (SELFTEST_FLAGS): New variable.
10298         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
10300         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
10301         early_finish hook.
10303 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
10305         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
10306         dumped in RTL dumps.
10308 2016-10-12  Martin Liska  <mliska@suse.cz>
10310         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
10311         (gimple_fold_builtin_memory_op): Use the function.
10312         (gimple_fold_builtin_strchr): Likewise.
10313         (gimple_fold_builtin_strcat): Likewise.
10314         (gimple_build): Likewise.
10316 2016-10-12  Nathan Sidwell  <nathan@acm.org>
10318         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
10320 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
10322         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
10323         equivalent 32-bit constant (modulo 2**32) when that yields
10324         smaller instructions.
10325         (size_of_int_loc_descriptor): Update accordingly.
10327 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
10329         * dwarf2out.c (dwarf2out_early_global_decl): For nested
10330         functions, call dwarf2out_decl on the parent function first.
10332 2016-10-12  Richard Biener  <rguenther@suse.de>
10334         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
10335         on the conversion.
10337 2016-10-12  Richard Biener  <rguenther@suse.de>
10339         * tree-ssa-propagate.c
10340         (substitute_and_fold_dom_walker::before_dom_children): Do not
10341         ignore ASSERT_EXPRs but only preserve them.
10342         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
10343         that have been propagated into.
10344         (vrp_finalize): Enable DCE for substitute_and_fold.
10346 2016-10-12  Richard Biener  <rguenther@suse.de>
10348         PR tree-optimization/77920
10349         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
10350         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
10351         (simplify_abs_using_ranges): Likewise.
10352         (simplify_conversion_using_ranges): Likewise.
10353         (simplify_stmt_using_ranges): Adjust.
10355 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
10357         PR tree-optimization/77929
10358         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
10359         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10361 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10363         PR target/77934
10364         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10365         needs a base register for arg 1.
10367 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
10369         * common.opt (Wimplicit-fallthrough) Turn into alias to
10370         -Wimplicit-fallthrough=3.  Remove EnabledBy.
10371         (Wimplicit-fallthrough=): New option.
10372         * gimplify.c (warn_implicit_fallthrough_r): Use
10373         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10374         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10375         to -Wimplicit-fallthrough=3.
10376         (-Wimplicit-fallthrough=): Document.
10378 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10380         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10381         and GEU in DImode if TARGET_SUBXC.
10382         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10383         (seqdi<W:mode>_zero_subxc): Delete.
10384         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10385         (neg_seqdi<W:mode>_zero_vis3): Delete.
10386         (plus_seqdi<W:mode>_zero): Likewise.
10387         (minus_seqdi<W:mode>_zero): Likewise.
10388         (plus_plus_sltu<W:mode>): Accept only register.
10389         (addx<W:mode>): Likewise.
10390         (plus_sltu<W:mode>_vis3): Likewise.
10391         (plus_plus_sltu<W:mode>_vis3): Likewise.
10392         (neg_sgeu<W:mode>_vis3): Delete.
10393         (minus_sgeu<W:mode>_vis3): Likewise.
10394         (addxc<W:mode>): Accept only registers.
10395         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10396         (minus_neg_sltu<W:mode>_subxc): Accept only register.
10397         (neg_plus_sltu<W:mode>_subxc): Likewise.
10398         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10399         (minus_minus_sltu<W:mode>_subxc): Accept only register.
10400         (sgeu<W:mode>_insn_subxc): Delete.
10401         (plus_sgeu<W:mode>_subxc): Likewise.
10402         (subxc<W:mode>): Accept only register.
10403         (scc splitter): Split always GEU again.
10405 2016-10-11  Jeff Law  <law@redhat.com>
10407         PR tree-optimization/77424
10408         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10409         dead conditionals.  Assert that all e->aux fields are NULL.
10411 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
10413         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
10414         operand-printing "switch" statement into...
10415         (print_rtx_operand_code_0): ...this new function, ...
10416         (print_rtx_operand_code_e): ...this new function, ...
10417         (print_rtx_operand_codes_E_and_V): ...this new function, ...
10418         (print_rtx_operand_code_i): ...this new function, ...
10419         (print_rtx_operand_code_r): ...this new function, ...
10420         (print_rtx_operand_code_u): ...this new function, ...
10421         (print_rtx_operand): ...and this new function.
10423 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
10425         * config/alpha/alpha-passes.def: New file.
10426         * config/alpha/t-alpha: New file.
10427         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10428         (make_pass_handle_trap_shadows): New prototype.
10429         (make_pass_align_insns): Ditto.
10430         * config/alpha/alpha.c (alpha_option_override): Don't register
10431         passes here.
10432         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10434 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10436         PR target/77924
10437         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10438         distinct __ibm128 IBM extended double type if long doubles are
10439         128-bits and the default format for long double is IEEE 128-bit.
10441 2016-10-11  Richard Biener  <rguenther@suse.de>
10443         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10444         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10445         (verify_die): New function.
10446         (dwarf2out_finish): Call it.
10447         (output_line_info): Handle case of -gsplit-dwarf without
10448         DWARF2_ASM_LINE_DEBUG_INFO.
10450 2016-10-11  Richard Biener  <rguenther@suse.de>
10452         PR debug/77931
10453         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10454         sub-chains of BLOCK_VARS and gimple_bind_vars.
10456 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10458         * config/i386/znver1.md : Fix imov/imovx load type reservations.
10460 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10462         * config/sparc/sparc.opt (msubxc): New option.
10463         * doc/invoke.texi (SPARC options): Document it and tidy up.
10464         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10465         * doc/tm.texi: Regenerate.
10466         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10467         (CCNZ): ...this.
10468         (CCX_NOOV): Rename into...
10469         (CCXNZ): ...this.
10470         (CCC): New.
10471         (CCXC): Likewise.
10472         * config/sparc/predicates.m (fcc_register_operand): Simplify.
10473         (fcc0_register_operand): Likewise.
10474         (icc_register_operand): New.
10475         (icc_or_fcc_register_operand): Simplify.
10476         (nz_comparison_operator): New.
10477         (c_comparison_operator): Likewise.
10478         (noov_compare_operator): Rename into...
10479         (icc_comparison_operator): ...this.  Use above predicates.
10480         (noov_compare64_operator): Rename into...
10481         (v9_comparison_operator): ...this and tidy up.
10482         (fcc_comparison_operator): New.
10483         (icc_or_fcc_comparison_operator): Likewise.
10484         (v9_register_compare_operator): Rename info...
10485         (v9_register_comparison_operator): ...this.
10486         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10487         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10488         for Niagara-7.
10489         (sparc_fixed_condition_code_regs): New function.
10490         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
10491         renaming and add support for CCC/CCXC.
10492         (output_cbranch): Likewise.
10493         (sparc_print_operand): Likewise.
10494         (gen_v9_scc): Remove obsolete assertion.
10495         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
10496         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
10497         (output_cbcond): Remove bogus handling of CC modes.
10498         (sparc_register_move_cost): Return 100 for NO_REGS.
10499         * config/sparc/sparc.md (W): New mode iterator.
10500         (length): Adjust for noov_compare64_operator renaming.
10501         (cmpsi_sne): New instruction.
10502         (cmpdi_sne): Likewise.
10503         (seqdi_special): Delete.
10504         (seqdi_special): Likewise.
10505         (snesi<P:mode>_special): Likewise.
10506         (snedi_special): Likewise.
10507         (snedi_special_vis3): Likewise.
10508         (snesi patterns): Use W iterator.
10509         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
10510         (sltu patterns): Likewise.
10511         (sgeu patterns): Likewise.
10512         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10513         (normal_branch): Use icc_comparison_operator predicate.
10514         (inverted_branch): Likewise.
10515         (cbcond_sp32): Use comparison_operator predicate.
10516         (cbcond_sp64): Likewise.
10517         (normal_int_branch_sp64): Adjust for renaming
10518         (inverted_int_branch_sp64): Likewise.
10519         (mov<I:mode>_cc_reg_sp64): Likewise.
10520         (movsf_cc_reg_sp6): Likewise.
10521         (movdf_cc_reg_sp64): Likewise.
10522         (movtf_cc_reg_hq_sp64): Likewise.
10523         (movtf_cc_reg_sp64): Likewise.
10524         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10525         (movsf_cc_v9): Likewise.
10526         (movdf_cc_v9): Likewise.
10527         (movtf_cc_hq_v9): Likewise.
10528         (movtf_cc_v9): Likewise.
10529         (adddi3): Call gen_adddi3_sp32.
10530         (adddi3_insn_sp32): Rename to...
10531         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
10532         and use CCCmode for the carry.
10533         (addx_extend_sp32): Use CCCmode for the carry.
10534         (addx_extend_sp64): Delete.
10535         (adddi3_extend_sp32): Use CCCmode for the carry.
10536         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10537         (subdi3): Call gen_subdi3_sp32.
10538         (subdi3_insn_sp32): Rename to...
10539         (subdi3_sp32): ...this and use CCmode for the carry.
10540         (subx_extend_sp32): Use CCCmode for the carry.
10541         (subx_extend_sp64): Delete.
10542         (subdi3_extend_sp32): Use CCmode for the carry.
10543         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10544         (negdi3): Call gen_negdi3_sp32.
10545         (negdi3_sp32): Use CCCmode for the carry.
10546         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10547         (cmp_nz_ashift_1): Use CCNZ mode.
10548         (cmp_nz_set_ashift_1): Likewise.
10549         (ctrapsi4): Use comparison_operator predicate.
10550         (ctrapdi4): Likewise.
10551         (trapsi_insn): Use icc_comparison_operator predicate.
10552         (trapdi_insn): Likewise.
10553         (edge8 patterns): Use CCNZmode.
10554         (edge16 patterns): Likewise.
10555         (edge32 patterns): Likewise.
10557 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10559         * config/visium/visium-modes.def (CC_NOOV): Rename into...
10560         (CCNZ): ...this.
10561         (CC_BTST): Rename into...
10562         (CCC): ...this.
10563         * config/visium/predicates.md (real_add_operand): New.
10564         (visium_btst_operator): Rename into...
10565         (visium_equality_comparison_operator): ...this.
10566         (visium_noov_operator): Rename into...
10567         (visium_nz_comparison_operator): ...this.
10568         (visium_c_comparison_operator): New.
10569         (visium_branch_operator): Adjust and deal with all CC modes.
10570         * config/visium/visium.c (visium_adjust_cost): Adjust.
10571         (visium_split_double_add): Use the *_set_carry patterns.
10572         (visium_select_cc_mode): Add support for CCC mode and adjust.
10573         (output_cbranch): Adjust and use the carry-based operators for
10574         floating-point comparisons.
10575         * config/visium/visium.md (flags_subst_arith): Adjust.
10576         (addsi3_insn_set_carry): New instruction.
10577         (subsi3_insn_set_carry): Likewise.
10578         (negsi2_insn_set_carry): Likewise.
10579         (btst): Adjust.
10580         (cmp<mode>_sne): Likewise.
10581         (cbranch<mode>4): Use ordered_comparison_operator.
10582         (cbranch<mode>4_insn): Likewise.
10583         (cbranchsi4_btst_insn): Adjust.
10585 2016-10-11  Tom de Vries  <tom@codesourcery.com>
10587         PR middle-end/77558
10588         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10589         special-casing.
10591 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10593         * tree.h (build_complex_type): Add second parameter with default.
10594         * tree.c (build_complex_type): Add NAMED second parameter and adjust
10595         recursive call.  Create a TYPE_DECL only if NAMED is true.
10596         (build_common_tree_nodes): Pass true in calls to build_complex_type.
10598 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
10600         New avr-passes.def to register AVR specific passes.
10602         * config/avr/avr-passes.def: New file.
10603         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10604         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10605         (make_avr_pass_recompute_note): New proto.
10606         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10607         (avr_pass_recompute_notes): Use anonymous namespace.
10608         (avr_register_passes): Remove function...
10609         (avr_option_override): ...and its call.
10611 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
10613         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10614         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10615         PTF_AVOID_BRANCHLIKELY_SPEED for others.
10616         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10617         flags.
10618         * config/mips/mips.c (mips_option_override): Enable the branch
10619         likely depending on the tune flags and optimization level.
10620         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10621         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10622         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10623         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10625 2016-10-11  Richard Biener  <rguenther@suse.de>
10627         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10628         (output_function): Properly stream the whole block tree.
10629         * lto-streamer-in.c (input_function): Likewise.
10631 2016-10-11  Marek Polacek  <polacek@redhat.com>
10633         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10635 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
10637         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10638         (evrp_dom_walker::before_dom_children): Infer and push new value
10639         ranges for x in y < x.
10641 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
10643         PR target/77586
10644         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10645         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10646         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10647         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10648         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10649         (IA64_NO_LIBGCC_TFMODE): Likewise.
10651 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
10653         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10654           copying.
10656 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
10658         * config.gcc: Add aarch64-*-freebsd* support.
10659         * config.host: Likewise.
10660         * config/aarch64/aarch64-freebsd.h: New file.
10661         * config/aarch64/t-aarch64-freebsd: Ditto.
10663 2016-10-10  Jeff Law  <law@redhat.com>
10665         PR tree-optimization/71947
10666         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10667         B with A within a single statement.
10669 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10671         PR tree-optimization/77824
10672         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10673         zero cost for copies.
10674         (find_candidates_dom_walker::before_dom_children): Replace
10675         MODIFY_EXPR with SSA_NAME.
10676         (replace_mult_candidate): Likewise.
10677         (replace_profitable_candidates): Likewise.
10679 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10681         * config/s390/s390.h: Wrap more macros args in brackets and fix
10683 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
10685         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10687 2016-10-10  Andreas Schwab  <schwab@suse.de>
10689         PR target/77738
10690         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10691         pseudo is not DImode.
10693 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
10695         * common/config/arc/arc-common.c (arc_option_optimization_table):
10696         Remove compact casesi option.
10697         * config/arc/arc.c (arc_override_options): Use compact casesi
10698         option only for pre-ARCv2 cores.
10699         * doc/invoke.texi (mcompact-casesi): Update text.
10701 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10703         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10704         Add macro to say we can efficiently handle overlapping unaligned
10705         loads.
10706         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10707         poor code for processors older than p8.
10709 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
10711         * gen-pass-instances.awk: Remove GNUism.
10713 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10715         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10716         NULL of (*ipcp_transformations)][node->uid].
10718 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
10720         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10721         (MALLOC_ABI_ALIGNMENT): Define.
10723 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
10725         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10726         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10727         VAR_OR_FUNCTION_DECL_P macros.
10728         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10729         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10730         chkp_find_bounds_1): Likewise.
10731         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10732         * hsa-gen.c (get_symbol_for_decl): Likewise.
10733         * cgraphunit.c (check_global_declaration, analyze_functions,
10734         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10735         Likewise.
10736         * gimple-fold.c (can_refer_decl_in_current_unit_p,
10737         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10738         Likewise.
10739         * tree.c (set_decl_section_name, copy_node_stat,
10740         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10741         merge_dllimport_decl_attributes, handle_dll_attribute,
10742         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10743         verify_type): Likewise.
10744         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10745         find_explicit_erroneous_behavior): Likewise.
10746         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10747         * ipa.c (process_references): Likewise.
10748         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10749         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10750         notice_global_symbol, assemble_variable, mark_decl_referenced,
10751         build_constant_desc, output_constant_def_contents, do_assemble_alias,
10752         make_decl_one_only, default_section_type_flags,
10753         categorize_decl_for_section, default_encode_section_info): Likewise.
10754         * trans-mem.c (requires_barrier): Likewise.
10755         * gimple-expr.c (mark_addressable): Likewise.
10756         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10757         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10758         expand_debug_expr): Likewise.
10759         * tree-dump.c (dequeue_and_dump): Likewise.
10760         * ubsan.c (instrument_bool_enum_load): Likewise.
10761         * tree-pretty-print.c (print_declaration): Likewise.
10762         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10763         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10764         * asan.c (asan_protect_global, instrument_derefs): Likewise.
10765         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10766         pass_build_ssa::execute): Likewise.
10767         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10768         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10769         Likewise.
10770         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10771         Likewise.
10772         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10773         can_be_nonlocal, remap_decls, copy_debug_stmt,
10774         initialize_inlined_parameters, add_local_variables,
10775         reset_debug_binding, replace_locals_op): Likewise.
10776         * dse.c (can_escape): Likewise.
10777         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10778         Likewise.
10779         * tree-diagnostic.c (default_tree_printer): Likewise.
10780         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10781         unpack_ts_decl_with_vis_value_fields,
10782         lto_input_ts_decl_common_tree_pointers): Likewise.
10783         * builtins.c (builtin_save_expr, fold_builtin_expect,
10784         readonly_data_expr): Likewise.
10785         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10786         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10787         Likewise.
10788         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10789         * gimplify.c (force_constant_size, gimplify_bind_expr,
10790         gimplify_decl_expr, gimplify_var_or_parm_decl,
10791         gimplify_compound_lval, gimplify_init_constructor,
10792         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10793         gimplify_type_sizes): Likewise.
10794         * cgraphbuild.c (record_reference, record_type_list, mark_address,
10795         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10796         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10797         remove_unused_locals): Likewise.
10798         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10799         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10800         * function.c (instantiate_expr, instantiate_decls_1,
10801         setjmp_vars_warning, add_local_decl): Likewise.
10802         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10803         Likewise.
10804         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10805         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10806         optimize_va_list_gpr_fpr_size): Likewise.
10807         * tree-nrv.c (pass_nrv::execute): Likewise.
10808         * tsan.c (instrument_expr): Likewise.
10809         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10810         * vtable-verify.c (verify_bb_vtables): Likewise.
10811         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10812         get_ref_base_and_extent): Likewise.
10813         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10814         Likewise.
10815         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10816         analyze_all_variable_accesses): Likewise.
10817         * tree-nested.c (get_nonlocal_debug_decl,
10818         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10819         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10820         get_local_debug_decl, convert_local_omp_clauses,
10821         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10822         Likewise.
10823         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10824         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10825         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10826         dbxout_symbol, dbxout_common_check): Likewise.
10827         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10828         string_constant): Likewise.
10829         * hsa.c (hsa_get_declaration_name): Likewise.
10830         * passes.c (rest_of_decl_compilation): Likewise.
10831         * tree-ssanames.c (make_ssa_name_fn): Likewise.
10832         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10833         pack_ts_decl_with_vis_value_fields,
10834         write_ts_decl_common_tree_pointers): Likewise.
10835         * stor-layout.c (place_field): Likewise.
10836         * symtab.c (symtab_node::maybe_create_reference,
10837         symtab_node::verify_base, symtab_node::make_decl_local,
10838         symtab_node::copy_visibility_from,
10839         symtab_node::can_increase_alignment_p): Likewise.
10840         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10841         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10842         fortran_common, add_location_or_const_value_attribute,
10843         add_scalar_info, add_linkage_name, set_block_abstract_flags,
10844         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10845         optimize_one_addr_into_implicit_ptr,
10846         optimize_location_into_implicit_ptr): Likewise.
10847         * gimple-low.c (record_vars_into): Likewise.
10848         * ipa-visibility.c (update_vtable_references): Likewise.
10849         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10850         Likewise.
10851         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10852         DFS::DFS_write_tree_body, write_symbol): Likewise.
10853         * langhooks.c (lhd_warn_unused_global_decl,
10854         lhd_set_decl_assembler_name): Likewise.
10855         * attribs.c (decl_attributes): Likewise.
10856         * except.c (output_ttype): Likewise.
10857         * varpool.c (varpool_node::get_create, ctor_for_folding,
10858         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10859         * fold-const.c (fold_unary_loc): Likewise.
10860         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10861         ipa_find_agg_cst_from_init): Likewise.
10862         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10863         expand_omp_target, lower_omp_regimplify_p,
10864         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10865         find_link_var_op): Likewise.
10866         * tree-chrec.c (chrec_contains_symbols): Likewise.
10867         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10868         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10869         execute_fixup_cfg): Likewise.
10871         PR tree-optimization/77901
10872         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10873         if ranges[i].exp is SSA_NAME when looking for >= and only when
10874         ranges[i].exp is NULL or SSA_NAME when looking for the other
10875         comparison.
10877 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10879         * ipa-cp.c (ipcp_alignment_lattice): Remove.
10880         (ipcp_param_lattices): Remove field alignment.
10881         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10882         (set_all_contains_variable): Remove call to
10883         ipcp_alignment_lattice::set_to_bottom.
10884         (initialize_node_lattices): Likewise.
10885         (propagate_alignment_accross_jump_function): Remove.
10886         (propagate_constants_accross_call): Remove call to
10887         propagate_alignment_accross_jump_function.
10888         (ipcp_store_alignment_results): Remove.
10889         (ipcp_driver): Remove call to ipcp_store_alignment_results.
10890         (propagate_bits_accross_jump_function): Handle ancestor jump function.
10891         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10892         pretty-printing of alignment jump function.
10893         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10894         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10895         alignments and remove computing ipa_alignment jump function.
10896         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10897         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10898         (ipa_read_jump_function): Remove reading of ipa_alignment.
10899         (write_ipcp_transformation_info): Remove streaming for alignment
10900         propagation summary.
10901         (read_ipcp_transformation_info): Remove reading of alignment
10902         propagation summary.
10903         (ipcp_update_alignments): Remove.
10904         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10905         type.
10906         (ipcp_transform_function): Remove call to ipcp_update_alignments()
10907         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10908         * ipa-prop.h (ipa_alignment): Remove.
10909         (ipa_jump_func): Remove field alignment.
10910         (ipcp_transformation_summary): Remove field alignments.
10911         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10912         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10913         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10915 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
10917         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10919         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10920         change.
10921         (visium_expand_fp_cstore): Likewise.
10923 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10925         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10926         * diagnostic.c (warning_at_rich_loc_n): New function.
10927         (diagnostic_n_impl_richloc): Likewise.
10928         (diagnostic_n_impl): Move most of the function to
10929         diagnostic_n_impl_richloc and call it.
10931 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
10933         * gen-pass-instances.awk: Rewritten.
10934         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10935         $(PASSES_EXTRA) after passes.def to the script.
10936         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10937         * config/i386/i386-passes.def: New file.
10938         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10939         make_pass_stv): Declare.
10940         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10941         false.
10942         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10943         or !TARGET_64BIT.
10944         (pass_stv::clone, pass_stv::set_pass_param): New methods.
10945         (pass_stv::timode_p): New non-static data member.
10946         (ix86_option_override): Don't register passes here.
10948         * doc/invoke.texi: Document accepting Else, fallthrough.
10950         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10951         style changes.
10953         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10954         FALLTHRU comment styles.
10956 2016-10-07  Andrew Pinski  <apinski@cavium.com>
10958         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10959         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10960         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10961         Likewise.
10962         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10963         Likewise.
10964         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10965         Likewise.
10966         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10967         (AARCH64_ARCH): Likewise.
10968         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10969         Likewise.
10970         (AARCH64_CORE): Likewise.
10971         (AARCH64_ARCH): Likewise.
10972         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10973         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10974         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10975         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10976         (AARCH64_ARCH): Likewise.
10977         (AARCH64_CORE): Likewise.
10978         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10979         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10980         (AARCH64_CORE): Likewise.
10981         (AARCH64_ARCH): Likewise.
10983 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10985         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10986         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10987         floating point type infrastructre, and -mfloat128 that enables the
10988         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10989         if -mfloat128-type.  Define __ibm128 to be long double by default.
10990         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10991         the IEEE 128-bit floating point type infrastructure should
10992         automatically be enabled.
10993         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10994         instead of -mfloat128 to enable KFmode.
10995         (rs6000_option_override_internal): Split the option -mfloat128
10996         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
10997         systems, automatically set -mfloat128-type, but don't enable it on
10998         other operating systems.  Move setting the long double size and
10999         IEEE quad support before the IEEE 128-bit floating point changes.
11000         (rs6000_init_builtins): Do not create a unique type for __ibm128
11001         if long double is IBM extended double, instead rely on __ibm128
11002         being defined as 'long double'.  If -mfloat128-type and not
11003         -mfloat128, create the KFmode type with an undocumented __ieee128
11004         keyword.
11005         (rs6000_init_libfuncs): Use -mfloat128-type instead of
11006         -mfloat128 for tests about the types, but keep tests for
11007         -mfloat128 to enable the keyword support.
11008         (rs6000_complex_function_value): Likewise.
11009         (rs6000_scalar_mode_supported_p): Likewise.
11010         (rs6000_floatn_mode): Likewise.
11011         (rs6000_c_mode_for_suffix): Likewise.
11012         (rs6000_opt_masks): Add -mfloat128-type.
11013         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
11014         -mfloat128-type being split from -mfloat128.  Add
11015         -mfloat128-hardware, which was missing.
11016         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
11017         -mfloat128 and -mfloat128-type:
11018         (-mfloat128-type): Likewise.
11019         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
11020         that 64-bit Linux systems with enable -mfloat128-type by default
11021         on VSX systems.
11022         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
11023         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
11024         -mfloat128-type instead of -mfloat128.
11025         (FLOAT128_2REG_P): Likewise.
11026         (MASK_FLOAT128_TYPE): Likewise.
11027         (ALTIVEC_ARG_MAX_RETURN): Likewise.
11028         (RS6000_BTM_FLOAT128): Likewise.
11029         (TARGET_FLOAT128): Poison old identifiers.
11030         (OPTION_MASK_FLOAT128): Likewise.
11031         (MASK_FLOAT128): Likewise.
11032         * config/rs6000/rs6000.md (FP): Likewise.
11033         (FLOAT128): Likewise.
11034         (fix_trunc<mode>di2): Likewise.
11035         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
11036         (floatdi<mode>2): Likewise.
11037         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
11038         (neg<mode>2, FLOAT128 iterator): Likewise.
11039         (abs<mode>2, FLOAT128 iterator): Likewise.
11040         (ieee_128bit_negative_zero): Likewise.
11041         (ieee_128bit_vsx_neg<mode>2): Likewise.
11042         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11043         (ieee_128bit_vsx_abs<mode>2): Likewise.
11044         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11045         (ieee_128bit_vsx_nabs<mode>2): Likewise.
11046         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11047         (extendiftf2): Likewise.
11048         (extendifkf2): Likewise.
11049         (extendtfkf2): Likewise.
11050         (trunciftf2): Likewise.
11051         (truncifkf2): Likewise.
11052         (trunckftf2): Likewise.
11053         (trunctfif2): Likewise.
11054         (extendkftf2): Likewise.
11055         (trunctfkf2): Likewise.
11057 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11059         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
11060         before merging in bytes to pass down to real_from_target.
11062 2016-10-07  Richard Biener  <rguenther@suse.de>
11064         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
11065         required hack.
11066         (substitute_and_fold_dom_walker::before_dom_children):
11067         Substitute and fold before pass specific folding to avoid
11068         feeding that with SSA names that will be later released.
11069         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
11070         introduced by folding and visited by evaluate_stmt called during
11071         ccp_fold_stmt.
11072         (likely_value): Likewise.
11073         (evaluate_stmt): Likewise.
11074         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
11075         (simplify_div_or_mod_using_ranges): Likewise.
11076         (simplify_min_or_max_using_ranges): Likewise.
11077         (simplify_abs_using_ranges): Likewise.
11078         (simplify_conversion_using_ranges): Likewise.
11079         (simplify_float_conversion_using_ranges): Likewise.
11080         (simplify_stmt_using_ranges): Likewise.
11082 2016-10-07  Marek Polacek  <polacek@redhat.com>
11084         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
11085         FALLTHROUGH_LABEL_P here...
11086         (warn_implicit_fallthrough_r): ...not here.
11088 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
11090         PR tree-optimization/77880
11091         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
11092         necessary.
11094 2016-10-07  Marek Polacek  <polacek@redhat.com>
11096         PR c++/77803
11097         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
11099 2016-10-07  Richard Biener  <rguenther@suse.de>
11101         * bitmap.h: Document constraints on bitmap modification while
11102         iterating over it.
11104 2016-10-07  Richard Biener  <rguenther@suse.de>
11106         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
11107         * bitmap.h (bmp_iter_set): When advancing to the next element
11108         check that we didn't remove the current one.
11109         (bmp_iter_and): Likewise.
11110         (bmp_iter_and_compl): Likewise.
11111         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
11112         we currently iterate on but keep a one-level queue.
11113         * sched-deps.c (remove_from_deps): Do not clear current bit
11114         but keep a one-level queue.
11116 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
11118         PR tree-optimization/77664
11119         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
11120         for the other ranges.
11121         (optimize_range_tests_diff): Fix up formatting.
11122         (optimize_range_tests_var_bound): New function.
11123         (optimize_range_tests): Use it.
11125 2016-10-07  Martin Liska  <mliska@suse.cz>
11127         * coverage.c (build_gcov_exit_decl): Fix priority what
11128         should be really 99.
11130 2016-10-07  Richard Biener  <rguenther@suse.de>
11132         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
11133         vars in gimple_bind_vars but not in BLOCK_VARS.
11135 2016-10-07  Richard Biener  <rguenther@suse.de>
11137         PR tree-optimization/77879
11138         * tree-ssa-structalias.c (handle_const_call): Properly handle
11139         NRV return slots.
11140         (handle_pure_call): Likewise.
11142 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11144         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
11145         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
11146         possible overflow.
11148 2016-10-06  Andrew Pinski  <apinski@cavium.com>
11150         * config/aarch64/aarch64-cores.def: Add a comment before each
11151         set of cores.
11153 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
11155         PR tree-optimization/77862
11156         * tree-vrp.c (add_equivalence): Use get_value_range so that
11157         num_vr_values is checked before accessing vr_values.
11159 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
11161         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
11162           POINTER_TYPE_P.
11164 2016-10-05  Jeff Law  <law@redhat.com>
11166         PR tree-optimization/71661
11167         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
11168         removal of a forwarder exposes a new natural loop.
11170 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
11172         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
11173         Introduce ssesuffix variable.
11174         (<mask_codefor><code><mode>3<mask_name>): Ditto.
11175         (*<code><mode>3): Ditto.
11177 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
11179         * postreload.c (reload_cse_simplify): Skip also USE when detecting
11180         noop move.
11182 2016-10-06  Richard Biener  <rguenther@suse.de>
11184         PR tree-optimization/77855
11185         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
11186         instead of removing the current item while iterating over the set
11187         which is not safe.
11189 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
11190             Eric Botcazou  <ebotcazou@adacore.com>
11192         PR target/77759
11193         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
11194         (classify_registers): Don't set it
11195         (function_arg_slotno): Don't initialize and test it.  Tidy up.
11197 2016-10-06  Richard Biener  <rguenther@suse.de>
11199         PR tree-optimization/77839
11200         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
11201         lattice transition.
11203 2016-10-06  Martin Liska  <mliska@suse.cz>
11205         * gcc.c: Set -fprofile-update=atomic when profiling is
11206         enabled and -pthread is set.  Warn when one combines
11207         -pthread and -fprofile-update=single for an app using
11208         profiling code.
11210 2016-10-06  Martin Liska  <mliska@suse.cz>
11212         PR bootstrap/77788
11213         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
11214         * gimple-ssa-strength-reduction.c (slsr_process_cast):
11215         Initialize a pointer to NULL.
11216         (slsr_process_copy): Likewise.
11217         * input.c (location_get_source_line): Likewise.
11218         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
11220 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
11222         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
11223         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
11224         (ix86_handle_option): Deleted handle of OPT_mpcommit.
11225         * config.gcc: Deleted pcommitintrin.h
11226         * config/i386/pcommitintrin.h: Deleted file.
11227         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
11228         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
11229         detection.
11230         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
11231         __PCOMMIT__.
11232         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
11233         (PTA_PCOMMIT): Deleted define.
11234         (ix86_option_override_internal): Deleted handle of option.
11235         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
11236         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
11237         __builtin_ia32_pcommit): Deleted.
11238         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
11239         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
11240         (pcommit): Deleted instruction.
11241         * config/i386/i386.opt: Mention -mpcommit deprecation.
11242         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
11244 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
11246         PR target/77874
11247         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
11248         Remove wrong assert.
11249         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
11250         Use <round_constraint> as operand 1 constraint.
11252 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
11254         PR sanitizer/66343
11255         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
11256         (ubsan_instrument_float_cast): And not here.
11258         PR sanitizer/66343
11259         * ubsan.c (ubsan_ids): New GTY(()) array.
11260         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
11261         instead of static local counters.
11263 2016-10-05  Martin Sebor  <msebor@redhat.com>
11265         PR bootstrap/77819
11266         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
11267         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
11268         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
11269         (default_printf_pointer_format): Define function.
11270         * targhooks.c (linux_printf_pointer_format): Define new function.
11271         * targhooks.h (linux_printf_pointer_format): Declare.
11272         (gnu_libc_printf_pointer_format): Remove declaration.
11274 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11276         * fold-const.c (native_encode_real): Fix logic for selecting offset
11277         to write to when BYTES_BIG_ENDIAN.
11279 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
11281         * builtins.c (fold_builtin_strchr): Remove function.
11282         (fold_builtin_strrchr): Likewise.
11283         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
11284         * gimple-fold.c (target_char_cst_p): New function.
11285         (gimple_fold_builtin_strchr) Add more foldings.
11286         (gimple_fold_builtin): Add index, strrchr, rindex cases.
11288 2016-10-05  Richard Biener  <rguenther@suse.de>
11290         PR middle-end/77863
11291         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
11292         capture ids in c-exprs.
11294 2016-10-05  Richard Biener  <rguenther@suse.de>
11296         PR middle-end/77826
11297         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
11298         with types_match for GIMPLE code gen to handle type mismatched
11299         constants properly.
11300         (dt_operand::gen): Adjust.
11301         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
11302         and constant A.
11304 2016-10-05  Richard Biener  <rguenther@suse.de>
11306         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
11308 2016-10-05  Richard Biener  <rguenther@suse.de>
11310         PR middle-end/77842
11311         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
11313 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
11315         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
11316         version check to protect only DW_TAG_imported_module generation.
11318 2016-10-05  Richard Biener  <rguenther@suse.de>
11320         PR middle-end/55152
11321         * match.pd (min(a,-a) -> -abs(a)): New pattern.
11323 2016-10-04  Ian Lance Taylor  <iant@golang.org>
11325         * explow.c (allocate_dynamic_stack_space): Call
11326         do_pending_stack_adjust before handling flag_split_stack.
11328 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
11330         * genattrtab.c (make_internal_attr): Supply dummy column number to
11331         file_location ctor.
11332         (main): Likewise.
11333         * genoutput.c (init_insn_for_nothing): Likewise.
11334         * gensupport.c (add_define_attr): Likewise.
11335         * read-md.c (message_at_1): Print column number.
11336         (fatal_with_file_and_line): Likewise.
11337         (rtx_reader::read_char): Track column numbers.
11338         (rtx_reader::unread_char): Likewise.
11339         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
11340         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
11341         (rtx_reader::handle_file): Initialize m_read_md_colno.
11342         (rtx_reader::get_current_location): Supply column number to
11343         file_location ctor.
11344         * read-md.h (struct file_location): Add field "colno".
11345         (file_location::file_location): Likewise.
11346         (rtx_reader::get_colno): New accessor.
11347         (rtx_reader::m_read_md_colno): New field.
11348         (rtx_reader::m_last_line_colno): New field.
11350 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
11352         * doc/extend.texi (Java Exceptions): Remove.
11353         (java_interface): Remove.
11355 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
11357         PR tree-optimization/77808
11358         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
11359         and addr are different before copying points-to information.
11361 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
11363         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11364         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11365         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11366         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11368 2016-10-04  Richard Biener  <rguenther@suse.de>
11370         PR tree-optimization/77399
11371         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11372         verify the target can convert.
11374 2016-10-04  Richard Biener  <rguenther@suse.de>
11376         PR middle-end/77833
11377         * explow.c (plus_constant): Verify the mode of the constant
11378         pool offset before calling plus_constant.
11380 2016-10-04  Richard Biener  <rguenther@suse.de>
11382         PR middle-end/77407
11383         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11384         type support, mark with :C.
11385         (X / -X -> -1): Mark with :C.
11387 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
11389         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11390         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11391         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11392         * doc/tm.texi: Regenerated.
11393         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11394         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11395         * config/darwin.h (JCR_SECTION_NAME): Remove.
11396         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11397         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11398         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11399         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11400         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11401         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11403 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11405         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11406         between "because" and "param" in dump message in call to fprintf.
11408 2016-10-03  Jeff Law  <law@redhat.com>
11410         PR tree-optimization/71550
11411         PR tree-optimization/71403
11412         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11413         (profitable_jump_thread_path): Also return boolean indicating if
11414         the realized path will create an irreducible loop.
11415         Remove loop depth tests from 71403.
11416         (fsm_find_control_statement_thread_paths): Remove loop depth tests
11417         from 71403.  If threading will create an irreducible loop, then
11418         throw away loop iteration and related information.
11420 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
11422         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11423         -Woverloaded-virtual checks for warning options.
11424         * configure: Regenerate.
11426 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11428         PR preprocessor/77699
11429         * input.c (maybe_grow): Don't allocate one byte extra headroom.
11430         (get_next_line): Return false on error.
11431         (read_next_line): Removed, use get_next_line instead.
11432         (read_line_num): Don't copy the line.
11433         (location_get_source_line): Don't use static data.
11434         (selftest::test_reading_source_line): Add more test cases.
11436 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11438         Revert
11439         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11441         * ifcvt.c (noce_try_avoid_const_materialization): New function.
11442         (noce_process_if_block): Use it.
11444 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11446         * doc/invoke.texi: Update -Wint-in-bool-context.
11448 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
11450         * dwarf2out.c (output_fde, output_call_frame_info,
11451         dwarf2out_do_cfi_startproc, set_indirect_string,
11452         gen_internal_sym, output_die, output_line_info): Use
11453         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11454         ASM_GENERATE_INTERNAL_LABEL output.
11456 2016-10-01  Richard Biener  <rguenther@suse.de>
11458         PR middle-end/77798
11459         * genmatch.c (get_operand_type): Add operand position arg
11460         and handle COND_EXPR comparison operand with fixed boolean_type_node.
11461         (expr::gen_transform): Adjust.
11462         (dt_simplify::gen_1): Likewise.
11464 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
11466         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11467         comments.  Simplify asserts, remove unnecessary conditions.
11468         Formatting fixes.
11469         (*<code><mode>3): Likewise.
11471 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
11473         * doc/invoke.texi (-Wregister): Document.
11475 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11477         * configure.ac: Split CHECKING_P into CHECKING_P and
11478         ENABLE_EXTRA_CHECKING.
11479         * configure: Regenerated.
11480         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
11481         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11483 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
11485         PR other/31566
11486         * gcc.c (process_command): For @filename handling, output
11487         the correct name if the file does not exist.
11489 2016-09-30  Marek Polacek  <polacek@redhat.com>
11491         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11492         * config/alpha/predicates.md: Likewise.
11494 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11496         * ifcvt.c (noce_try_avoid_const_materialization): New function.
11497         (noce_process_if_block): Use it.
11499 2016-09-30  Martin Liska  <mliska@suse.cz>
11501         * doc/invoke.texi: Document asan-use-after-return that
11502         it's disabled by default in runtime.
11504 2016-09-30  Richard Biener  <rguenther@suse.de>
11506         * tree-vrp.c (intersect_ranges): If we failed to handle
11507         the intersection choose a constant singleton range if available.
11509 2016-09-30  Richard Biener  <rguenther@suse.de>
11511         PR tree-optimization/77399
11512         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11513         float <-> int conversions.
11515 2016-09-30  Alan Modra  <amodra@gmail.com>
11517         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11519 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
11521         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11522         ext_level before calling CPUID with 0x80000008.
11523         Simplify xgetbv checks.
11525 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
11527         * Makefile.in (OBJS): Add print-rtl-function.o.
11528         * print-rtl-function.c: New file.
11529         * print-rtl.h (print_rtx_function): New decl.
11531 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
11533         PR target/77756
11534         * config/i386/cpuid.h (__get_cpuid_count): New.
11535         (__get_cpuid): Rename __level to __leaf.
11537 2016-09-29  Marek Polacek  <polacek@redhat.com>
11539         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11541 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
11543         PR target/77718
11544         * builtins.c (expand_builtin_memcmp): Don't swap args unless
11545         result is only being compared with zero.
11547 2016-09-29  Marek Polacek  <polacek@redhat.com>
11549         * dwarf2out.c (loc_descriptor): Add fall through comment.
11550         (add_const_value_attribute): Likewise.
11552 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
11554         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11555         with "v6t2".  Move "arch" attribute above "pool_range".
11556         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11557         with "v6t2".
11558         (*thumb2_movhi_vfp): Likewise.
11559         (*arm_movhi_fp16): Likewise.
11560         (*thumb2_movhi_fp16): Likewise.
11561         (*arm_movsi_vfp): Remove "arch" attribute.
11562         (*thumb2_movsi_vfp): Likewise.
11564 2016-09-29  Martin Liska  <mliska@suse.cz>
11566         * doc/extend.texi: Remove limitation of Objective C for
11567         __attribute__((constructor)) and __attribute__((destructor)).
11569 2016-09-29  Richard Biener  <rguenther@suse.de>
11571         PR tree-optimization/77768
11572         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11573         Handle stores to readonly memory when removing redundant stores.
11575 2016-09-29  Richard Biener  <rguenther@suse.de>
11577         PR middle-end/77407
11578         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11579         X / -X -> -1 simplifications.
11581 2016-09-29  Richard Biener  <rguenther@suse.de>
11583         PR middle-end/55152
11584         * match.pd: Add max(a,-a) -> abs(a) pattern.
11585         * tree-ssa-phiopt.c (minmax_replacement): Disable for
11586         HONOR_SIGNED_ZEROS types.
11588 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
11590         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11591         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11593 2016-09-29  Richard Biener  <rguenther@suse.de>
11595         * tree-vrp.c (set_defs_to_varying): New helper avoiding
11596         writing to vr_const_varying.
11597         (vrp_initialize): Call it.
11598         (vrp_visit_stmt): Likewise.
11599         (evrp_dom_walker::before_dom_children): Likewise.
11601 2016-09-29  Richard Biener  <rguenther@suse.de>
11603         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11604         constructors with vector elements.
11606 2016-09-29  Richard Biener  <rguenther@suse.de>
11608         PR tree-optimization/77768
11609         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11610         with stores to a place we know has a constant value.
11612 2016-09-29  Alan Modra  <amodra@gmail.com>
11614         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11615         * doc/invoke.texi: Document it.
11616         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11617         (rs6000_passes_float): Comment.
11618         (rs6000_passes_long_double): New static var.
11619         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11620         (init_cumulative_args): Set up to emit fp .gnu_attribute for
11621         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
11622         to include fp values returned in vectors.
11623         Set rs6000_passes_long_double.
11624         (rs6000_function_arg_advance_1): Likewise for function args.
11625         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11626         and SPE.  Emit long double tag value too.
11627         (rs6000_opt_vars): Add gnu-attr.
11628         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11629         * configure: Regenerate.
11630         * config.in: Regenerate.
11632 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
11634         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11635         of 0 < x.
11636         (format_floating, format_string, format_directive,
11637         get_destination_size, pass_sprintf_length::handle_gimple_call):
11638         Likewise.
11640 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
11642         * gimple-ssa-sprintf.c: Fix comment formatting.
11643         (format_integer): Use is_gimple_assign.
11644         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11645         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
11646         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
11647         (pass_sprintf_length::execute): Use is_gimple_call.
11649 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
11651         * gimple-fold.c (gimple_fold_builtin): After failing to fold
11652         strchr, also try the generic folding.
11654 2016-09-28  Martin Sebor  <msebor@redhat.com>
11656         PR c/77762
11657         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11658         Fix typos.
11660 2016-09-28  Martin Sebor  <msebor@redhat.com>
11662         PR middle-end/77683
11663         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11664         length modifier is not expected.
11665         (format_floating): Ignore l length modifier and fail gracefuly
11666         when it isn't one of the other expected ones.
11668 2016-09-28  Martin Sebor  <msebor@redhat.com>
11670         PR bootstrap/77753
11671         * varasm.c (assemble_addr_to_section): Increase local buffer size.
11673 2016-09-27  Richard Biener  <rguenther@suse.de>
11675         * dwarf2out.c (cu_die_list): New global.
11676         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
11677         main_comp_unit_die to cu_die_list if we created it.
11678         Move break_out_includes ...
11679         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
11680         the cu_die_list.
11682 2016-09-28  Richard Biener  <rguenther@suse.de>
11684         * dwarf2out.c (struct die_struct): Add removed flag.
11685         (lookup_type_die): If the DIE is marked as removed, clear
11686         TYPE_SYMTAB_DIE and return NULL.
11687         (lookup_decl_die): If the DIE is marked as removed, remove it
11688         from the hash and return NULL.
11689         (mark_removed): New helper.
11690         (prune_unused_types_prune): Call it for removed DIEs.
11691         (gen_subprogram_die): Move the premark_used_types call to after
11692         DIEs for the functions scopes are generated.
11693         (process_scope_var): Do not re-create pruned types or type decls.
11694         Make sure to also re-parent type decls.
11695         (dwarf2out_finish): Move unused type pruning and debug_types
11696         handling ...
11697         (dwarf2out_early_finish): ... here.
11699 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
11701         * config/arc/arc-c.c: New file.
11702         * config/arc/arc-c.def: Likewise.
11703         * config/arc/t-arc: Likewise.
11704         * config.gcc: Include arc-c.o as c and cpp object.
11705         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11706         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11707         arc_cpu_cpp_builtins.
11709 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
11711         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11712         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11714 2016-09-28  Nathan Sidwell  <nathan@acm.org>
11716         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11717         printing.
11719 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
11721         PR tree-optimization/61056
11722         * gimple-fold.c (gimple_fold_builtin_strchr):
11723         New function to optimize strchr (s, 0) to strlen.
11724         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11726 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
11728         PR tree-optimization/77724
11729         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11730         Add tree_fits_shwi_p check.
11732 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
11734         * auto-inc-dec.c (try_merge): Remove break after return.
11735         * cselib.c (autoinc_split): Likewise.
11736         * explow.c (promote_mode): Likewise.
11737         * fixed-value.c (fixed_arithmetic): Likewise.
11738         * hsa.c (hsa_internal_fn::get_arity): Likewise.
11739         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11740         * trans-mem.c (get_attrs_for): Likewise.
11741         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11742         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11743         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11744         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11745         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11746         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11747         * config/cris/cris.c (cris_op_str): Likewise.
11748         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11749         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11751 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
11753         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11754         IFN_GOACC_REDUCTION_CODES): New.
11755         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11756         ifn_goacc_reduction_kind): Use them.
11757         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11758         of internal functions, when applicable.
11760 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
11762         * config/mips/constraints.md (d): Fix documentation.
11763         * doc/md.texi (Machine Constraints): Update accordingly.
11765 2016-09-27  Richard Biener  <rguenther@suse.de>
11767         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11768         cur_line_info_table initialization ...
11769         (dwarf2out_assembly_start): ... here.
11771 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
11773         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11774         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11775         (*thumb2_movhi_vfp): Likewise.
11776         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11777         template.  Expand predicable attribute to mark VMOV.F16 as not
11778         predicable.  Add "arch" attribute.
11779         (*thumb2_movhi_fp16): Likewise.
11780         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
11781         (*thumb2_movsi_vfp): Add "arch" attribute.
11783 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
11785         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11786         VAR_DECL string.
11788 2016-09-27  Marek Polacek  <polacek@redhat.com>
11790         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11791         comment.
11793         * config/c6x/c6x.h: Adjust fall through comment.
11794         * config/sh/sh.c (final_prescan_insn): Likewise.
11795         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11796         (visium_expand_fp_cstore): Likewise.
11798 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11800         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11801         expected by -Wimplicit-fallthrough.
11802         (thumb1_size_rtx_costs): Likewise.
11803         (thumb2_reorg): Likewise.
11804         (tls_mentioned_p): Add "Fall through" comment.
11805         (thumb2_reorg): Likewise.
11806         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11807         comment form expected by -Wimplicit-fallthrough.
11809 2016-09-27  Martin Liska  <mliska@suse.cz>
11811         PR gcov-profile/46266
11812         * input.h (RESERVED_LOCATION_P): New macro.
11813         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11814         instread of comparison with UNKNOWN_LOCATION.
11816 2016-09-27  Richard Biener  <rguenther@suse.de>
11818         PR tree-optimization/77745
11819         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11820         When removing redundant stores make sure to check compatibility
11821         of the TBAA state for downstream accesses.
11822         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11823         value-numbering virtual operands for store matches.
11825 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
11827         PR target/51244
11828         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11829         movrt patterns.  Match them before anything else in the SET case.
11831 2016-09-27  Martin Liska  <mliska@suse.cz>
11833         PR gcov-profile/7970
11834         PR gcov-profile/16855
11835         PR gcov-profile/44779
11836         * coverage.c (build_gcov_exit_decl): New function.
11837         (coverage_obj_init): Call the function and generate __gcov_exit
11838         destructor.
11839         * doc/gcov.texi: Document when __gcov_exit function is called.
11841 2016-09-27  Marek Polacek  <polacek@redhat.com>
11843         PR bootstrap/77751
11844         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11845         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11846         -Wno-error instead of -Wno-implicit-fallthrough.
11848 2016-09-27  Martin Liska  <mliska@suse.cz>
11850         PR bootstrap/77749
11851         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11853 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
11855         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11856         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11857         comments.  Remove break after return.
11858         (ix86_fp_compare_code_to_integer, has_dispatch,
11859         ix86_simd_clone_usable): Remove break after return.
11861 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11863         PR rlt-optimization/77714
11864         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11865         REG_EQUAL note.
11867 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
11869         PR ipa/77677
11870         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11871         extract_range_from_unary_expr to convert value_range.
11872         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11873         (extract_range_from_unary_expr): This.
11874         * tree-vrp.h (extract_range_from_unary_expr): Declare.
11876 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
11878         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11880 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11882         * config/i386/i386.c (ix86_print_operand)
11883         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11884         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11885         (epilogue_renumber): Likewise.
11887 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
11889         PR middle-end/77719
11890         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11891         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11893 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11895         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11896         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11897         is_mm_seq_cst, is_mm_sync): Move to ...
11898         * memmodel.h: This.  New file.
11899         * builtins.c: Include memmodel.h.
11900         * optabs.c: Likewise.
11901         * tsan.c: Likewise.
11902         * config/aarch64/aarch64.c: Likewise.
11903         * config/alpha/alpha.c: Likewise.
11904         * config/arm/arm.c: Likewise.
11905         * config/i386/i386.c: Likewise.
11906         * config/ia64/ia64.c: Likewise.
11907         * config/mips/mips.c: Likewise.
11908         * config/rs6000/rs6000.c: Likewise.
11909         * config/sparc/sparc.c: Likewise.
11910         * genconditions.c: Include memmodel.h in generated file.
11911         * genemit.c: Likewise.
11912         * genoutput.c: Likewise.
11913         * genpeep.c: Likewise.
11914         * genpreds.c: Likewise.
11915         * genrecog.c: Likewise.
11917 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
11919         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11920         "c" instead when parsing characters.  Move operand parsing into...
11921         (read_rtx_operand): ...this new function, renaming "i" to "idx",
11922         and tightening the scope of various locals.
11924 2016-09-26  Liu Hao  <lh_mouse@126.com>
11926         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11928 2016-09-26  Marek Polacek  <polacek@redhat.com>
11930         * system.h: Use __has_attribute to check whether the fallthrough
11931         attribute is supported.
11933 2016-09-26  Marek Polacek  <polacek@redhat.com>
11935         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11936         gimple_call_internal_p.
11937         * ipa-split.c (find_return_bb): Likewise.
11938         (execute_split_functions): Likewise.
11939         * omp-low.c (dump_oacc_loop_part): Likewise.
11940         (oacc_loop_xform_head_tail): Likewise.
11941         * predict.c (predict_loops): Likewise.
11942         * sanopt.c (pass_sanopt::execute): Likewise.
11943         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11944         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11945         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11946         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11947         (expand_ifn_va_arg): Likewise.
11948         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11949         (optimize_mask_stores): Likewise.
11950         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11951         (vect_transform_stmt): Likewise.
11952         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11953         * tsan.c (instrument_memory_accesses): Likewise.
11955 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11956             Alexander Monakov  <amonakov@ispras.ru>
11958         * regrename.c (rename_chains): Check
11959         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11960         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11961         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11963 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11965         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11966         (s390_sched_score): Likewise.
11968 2016-09-26  Martin Liska  <mliska@suse.cz>
11970         * doc/gcov.texi: Update program output of gcov tool.
11972 2016-09-26  Martin Liska  <mliska@suse.cz>
11974         PR gcov-profile/23332
11975         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11976         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11977         * value-prof.c (dump_histogram_value): Do not handle
11978         HIST_TYPE_CONST_DELTA.
11979         (stream_in_histogram_value): Likewise.
11980         (gimple_find_values_to_profile): Likewise.
11981         * value-prof.h (enum hist_type): Likewise.
11983 2016-09-26  Martin Liska  <mliska@suse.cz>
11985         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11986         from default sanitize recover values.
11987         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11988         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11989         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11990         consistent.
11991         * opts.c (finish_options): Do a generic loop over options
11992         that can be recovered.
11993         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11994         SANITIZE_RETURN.
11995         (common_handle_option): Likewise.
11996         * opts.h: Declare can_recover to sanitizer_opts_s.
11998 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12000         * target.def(elf_flags_numeric): Change documentation to present tense.
12001         * doc/tm.texi: Regenerate.
12003 2016-09-26  Marek Polacek  <polacek@redhat.com>
12005         PR c/7652
12006         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
12007         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
12008         -Wno-switch-fallthrough.
12009         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
12010         (expand_builtin): Likewise.
12011         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
12012         * convert.c (convert_to_real_1): Likewise.
12013         (convert_to_integer_1): Likewise.
12014         * final.c (output_alternate_entry_point): Likewise.
12015         * genattrtab.c (make_canonical): Likewise.
12016         (write_test_expr): Likewise.
12017         * genpreds.c (validate_exp): Likewise.
12018         * gimple-ssa-strength-reduction.c
12019         (find_candidates_dom_walker::before_dom_children): Likewise.
12020         * godump.c (go_format_type): Likewise.
12021         * reload1.c (elimination_effects): Likewise.
12022         * resource.c (mark_referenced_resources): Likewise.
12023         (mark_set_resources): Likewise.
12024         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
12025         * varasm.c (output_addressed_constants): Likewise.
12027 2016-09-26  Marek Polacek  <polacek@redhat.com>
12029         PR c/7652
12030         * common.opt (Wimplicit-fallthrough): New option.
12031         * doc/extend.texi: Document statement attributes and the fallthrough
12032         attribute.
12033         * doc/invoke.texi: Document -Wimplicit-fallthrough.
12034         * gimple.h (gimple_call_internal_p): New function.
12035         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
12036         (struct label_entry): New struct.
12037         (find_label_entry): New function.
12038         (case_label_p): New function.
12039         (collect_fallthrough_labels): New function.
12040         (last_stmt_in_scope): New function.
12041         (should_warn_for_implicit_fallthrough): New function.
12042         (warn_implicit_fallthrough_r): New function.
12043         (maybe_warn_implicit_fallthrough): New function.
12044         (expand_FALLTHROUGH_r): New function.
12045         (expand_FALLTHROUGH): New function.
12046         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
12047         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
12048         (gimplify_label_expr): New function.
12049         (gimplify_case_label_expr): Set location.
12050         (gimplify_expr): Call gimplify_label_expr.
12051         * internal-fn.c (expand_FALLTHROUGH): New function.
12052         * internal-fn.def (FALLTHROUGH): New internal function.
12053         * langhooks.c (lang_GNU_OBJC): New function.
12054         * langhooks.h (lang_GNU_OBJC): Declare.
12055         * system.h (gcc_fallthrough): Define.
12056         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
12057         * tree.h (FALLTHROUGH_LABEL_P): Define.
12059 2016-09-26  Richard Biener  <rguenther@suse.de>
12061         * dwarf2out.c (stripattributes): Remove unused function.
12062         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
12063         Push dwarf_split_debug_info handling into init_sections_and_labels.
12064         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
12065         (DEBUG_MACRO_SECTION_FLAGS): Remove.
12066         (debug_macinfo_section_name): New global.
12067         (output_macinfo): Use debug_macinfo_section_name.
12068         (init_sections_and_labels): Split out section and label generation
12069         from dwarf2out_init.  Set debug_macinfo_section_name.
12070         (dwarf2out_init): Move text section label generation and emission
12071         to ...
12072         (dwarf2out_assembly_start): ... here.
12073         (dwarf2out_finish): Call init_sections_and_labels before DWARF
12074         output starts.
12076 2016-09-26  Richard Biener  <rguenther@suse.de>
12078         PR debug/77692
12079         * cgraphunit.c (analyze_functions): Before early removing
12080         global vars calls the late_global_decl debug handler mark
12081         the variable as readonly.
12083 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
12085         PR target/51244
12086         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
12087         (sh_rtx_costs): Handle SET of movt and movrt patterns.
12088         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
12089         declare new overloads.
12090         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
12091         operand.
12093 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
12095         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
12096         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
12098 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
12100         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
12101         * configure: Regenerate.
12103 2016-09-24  Marek Polacek  <polacek@redhat.com>
12105         PR c/77490
12106         * doc/invoke.texi: Document -Wbool-operation.
12108 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
12110         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
12111         * config/rs6000/rs6000.c (expand_block_compare): New function used by
12112         cmpmemsi pattern to do builtin expansion of memcmp ().
12113         (compute_current_alignment): Add helper function for
12114         expand_block_compare used to compute alignment as the compare proceeds.
12115         (select_block_compare_mode): Used by expand_block_compare to select
12116         the mode used for reading the next chunk of bytes in the compare.
12117         (do_load_for_compare): Used by expand_block_compare to emit the load
12118         insns for the compare.
12119         (rs6000_emit_dot_insn): Moved this function to avoid a forward
12120         reference from expand_block_compare ().
12121         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
12122         prototype for this function.
12123         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
12124         target option for controlling how much code inline expansion of
12125         memcmp() will be allowed to generate.
12127 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
12129         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
12130         hook_bool_mode_false, hook_bool_mode_true,
12131         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
12132         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
12133         hook_bool_const_rtx_insn_const_rtx_insn_true,
12134         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
12135         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
12136         hook_bool_const_tree_hwi_hwi_const_tree_false,
12137         hook_bool_const_tree_hwi_hwi_const_tree_true,
12138         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
12139         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
12140         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
12141         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
12142         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
12143         hook_bool_const_tree_true, hook_bool_tree_tree_false,
12144         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
12145         hook_bool_rtx_insn_true, hook_bool_rtx_false,
12146         hook_bool_uintp_uintp_false,
12147         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
12148         hook_rtx_tree_int_null, hook_uint_mode_0,
12149         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
12150         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
12151         hook_constcharptr_const_rtx_insn_null,
12152         hook_constcharptr_const_tree_const_tree_null,
12153         hook_constcharptr_int_const_tree_null,
12154         hook_constcharptr_int_const_tree_const_tree_null,
12155         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
12156         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
12157         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
12159         * vec.h (vNULL): Extend comment to say = vNULL initialization
12160         isn't needed for static vars.
12162         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
12163         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
12164         = vNULL initialization of file scope vec.
12165         * passes.c (pass_tab, enabled_pass_uid_range_tab,
12166         disabled_pass_uid_range_tab): Likewise.
12167         * haifa-sched.c (sched_luids, h_i_d): Likewise.
12168         * tree-chkp-opt.c (check_infos): Likewise.
12169         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
12171         * vec.h (vnull::operator vec): Add constexpr keyword for
12172         C++11 and later.
12174 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
12176         PR tree-optimization/77654
12177         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
12178         to duplicate_ssa_name_ptr_info.
12180 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
12182         PR preprocessor/77672
12183         * input.c (selftest::test_lexer_string_locations_simple): Update
12184         test to expect location information of the terminator character
12185         at the location of the final closing quote.
12186         (selftest::test_lexer_string_locations_hex): Likewise.
12187         (selftest::test_lexer_string_locations_oct): Likewise.
12188         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
12189         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
12190         (selftest::test_lexer_string_locations_ucn4): Likewise.
12191         (selftest::test_lexer_string_locations_ucn8): Likewise.
12192         (selftest::test_lexer_string_locations_u8): Likewise.
12193         (selftest::test_lexer_string_locations_utf8_source): Likewise.
12194         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
12195         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
12196         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
12197         (selftest::test_lexer_string_locations_macro): Likewise.
12198         (selftest::test_lexer_string_locations_long_line): Likewise.
12200 2016-09-23  Richard Biener  <rguenther@suse.de>
12202         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
12203         virtual definition to virtual use if the call devirtualizes
12204         to a const or pure function.
12205         (visit_use): Also visit calls we can devirtualize to a
12206         const or pure function.
12208 2016-09-23  Richard Biener  <rguenther@suse.de>
12210         PR tree-optimization/77697
12211         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
12212         signal error if we have sth ternary or unhandled.
12214 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12216         * config/arm/arm_neon.h (vabd_f16): New.
12217         (vabdq_f16): New.
12218         (vabs_f16): New.
12219         (vabsq_f16): New.
12220         (vadd_f16): New.
12221         (vaddq_f16): New.
12222         (vcage_f16): New.
12223         (vcageq_f16): New.
12224         (vcagt_f16): New.
12225         (vcagtq_f16): New.
12226         (vcale_f16): New.
12227         (vcaleq_f16): New.
12228         (vcalt_f16): New.
12229         (vcaltq_f16): New.
12230         (vceq_f16): New.
12231         (vceqq_f16): New.
12232         (vceqz_f16): New.
12233         (vceqzq_f16): New.
12234         (vcge_f16): New.
12235         (vcgeq_f16): New.
12236         (vcgez_f16): New.
12237         (vcgezq_f16): New.
12238         (vcgt_f16): New.
12239         (vcgtq_f16): New.
12240         (vcgtz_f16): New.
12241         (vcgtzq_f16): New.
12242         (vcle_f16): New.
12243         (vcleq_f16): New.
12244         (vclez_f16): New.
12245         (vclezq_f16): New.
12246         (vclt_f16): New.
12247         (vcltq_f16): New.
12248         (vcltz_f16): New.
12249         (vcltzq_f16): New.
12250         (vcvt_f16_s16): New.
12251         (vcvt_f16_u16): New.
12252         (vcvt_s16_f16): New.
12253         (vcvt_u16_f16): New.
12254         (vcvtq_f16_s16): New.
12255         (vcvtq_f16_u16): New.
12256         (vcvtq_s16_f16): New.
12257         (vcvtq_u16_f16): New.
12258         (vcvta_s16_f16): New.
12259         (vcvta_u16_f16): New.
12260         (vcvtaq_s16_f16): New.
12261         (vcvtaq_u16_f16): New.
12262         (vcvtm_s16_f16): New.
12263         (vcvtm_u16_f16): New.
12264         (vcvtmq_s16_f16): New.
12265         (vcvtmq_u16_f16): New.
12266         (vcvtn_s16_f16): New.
12267         (vcvtn_u16_f16): New.
12268         (vcvtnq_s16_f16): New.
12269         (vcvtnq_u16_f16): New.
12270         (vcvtp_s16_f16): New.
12271         (vcvtp_u16_f16): New.
12272         (vcvtpq_s16_f16): New.
12273         (vcvtpq_u16_f16): New.
12274         (vcvt_n_f16_s16): New.
12275         (vcvt_n_f16_u16): New.
12276         (vcvtq_n_f16_s16): New.
12277         (vcvtq_n_f16_u16): New.
12278         (vcvt_n_s16_f16): New.
12279         (vcvt_n_u16_f16): New.
12280         (vcvtq_n_s16_f16): New.
12281         (vcvtq_n_u16_f16): New.
12282         (vfma_f16): New.
12283         (vfmaq_f16): New.
12284         (vfms_f16): New.
12285         (vfmsq_f16): New.
12286         (vmax_f16): New.
12287         (vmaxq_f16): New.
12288         (vmaxnm_f16): New.
12289         (vmaxnmq_f16): New.
12290         (vmin_f16): New.
12291         (vminq_f16): New.
12292         (vminnm_f16): New.
12293         (vminnmq_f16): New.
12294         (vmul_f16): New.
12295         (vmul_lane_f16): New.
12296         (vmul_n_f16): New.
12297         (vmulq_f16): New.
12298         (vmulq_lane_f16): New.
12299         (vmulq_n_f16): New.
12300         (vneg_f16): New.
12301         (vnegq_f16): New.
12302         (vpadd_f16): New.
12303         (vpmax_f16): New.
12304         (vpmin_f16): New.
12305         (vrecpe_f16): New.
12306         (vrecpeq_f16): New.
12307         (vrnd_f16): New.
12308         (vrndq_f16): New.
12309         (vrnda_f16): New.
12310         (vrndaq_f16): New.
12311         (vrndm_f16): New.
12312         (vrndmq_f16): New.
12313         (vrndn_f16): New.
12314         (vrndnq_f16): New.
12315         (vrndp_f16): New.
12316         (vrndpq_f16): New.
12317         (vrndx_f16): New.
12318         (vrndxq_f16): New.
12319         (vrsqrte_f16): New.
12320         (vrsqrteq_f16): New.
12321         (vrecps_f16): New.
12322         (vrecpsq_f16): New.
12323         (vrsqrts_f16): New.
12324         (vrsqrtsq_f16): New.
12325         (vsub_f16): New.
12326         (vsubq_f16): New.
12328 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12330         * config.gcc (extra_headers): Add arm_fp16.h
12331         * config/arm/arm_fp16.h: New.
12332         * config/arm/arm_neon.h: Include "arm_fp16.h".
12334 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12336         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
12337         variants).
12338         (vmulf): New (v8hf, v4hf variants).
12339         (vfma): New (v8hf, v4hf variants).
12340         (vfms): New (v8hf, v4hf variants).
12341         (vsub): New (v8hf, v4hf variants).
12342         (vcage): New (v8hf, v4hf variants).
12343         (vcagt): New (v8hf, v4hf variants).
12344         (vcale): New (v8hf, v4hf variants).
12345         (vcalt): New (v8hf, v4hf variants).
12346         (vceq): New (v8hf, v4hf variants).
12347         (vcgt): New (v8hf, v4hf variants).
12348         (vcge): New (v8hf, v4hf variants).
12349         (vcle): New (v8hf, v4hf variants).
12350         (vclt): New (v8hf, v4hf variants).
12351         (vceqz): New (v8hf, v4hf variants).
12352         (vcgez): New (v8hf, v4hf variants).
12353         (vcgtz): New (v8hf, v4hf variants).
12354         (vcltz): New (v8hf, v4hf variants).
12355         (vclez): New (v8hf, v4hf variants).
12356         (vabd): New (v8hf, v4hf variants).
12357         (vmaxf): New (v8hf, v4hf variants).
12358         (vmaxnm): New (v8hf, v4hf variants).
12359         (vminf): New (v8hf, v4hf variants).
12360         (vminnm): New (v8hf, v4hf variants).
12361         (vpmaxf): New (v4hf variant).
12362         (vpminf): New (v4hf variant).
12363         (vpadd): New (v4hf variant).
12364         (vrecps): New (v8hf, v4hf variants).
12365         (vrsqrts): New (v8hf, v4hf variants).
12366         (vabs): New (v8hf, v4hf variants).
12367         (vneg): New (v8hf, v4hf variants).
12368         (vrecpe): New (v8hf, v4hf variants).
12369         (vrnd): New (v8hf, v4hf variants).
12370         (vrnda): New (v8hf, v4hf variants).
12371         (vrndm): New (v8hf, v4hf variants).
12372         (vrndn): New (v8hf, v4hf variants).
12373         (vrndp): New (v8hf, v4hf variants).
12374         (vrndx): New (v8hf, v4hf variants).
12375         (vrsqrte): New (v8hf, v4hf variants).
12376         (vmul_lane): Add v4hf and v8hf variants.
12377         (vmul_n): Add v4hf and v8hf variants.
12378         (vext): New (v8hf, v4hf variants).
12379         (vcvts): New (v8hi, v4hi variants).
12380         (vcvts): New (v8hf, v4hf variants).
12381         (vcvtu): New (v8hi, v4hi variants).
12382         (vcvtu): New (v8hf, v4hf variants).
12383         (vcvts_n): New (v8hf, v4hf variants).
12384         (vcvtu_n): New (v8hi, v4hi variants).
12385         (vcvts_n): New (v8hi, v4hi variants).
12386         (vcvtu_n): New (v8hf, v4hf variants).
12387         (vbsl): New (v8hf, v4hf variants).
12388         (vcvtas): New (v8hf, v4hf variants).
12389         (vcvtau): New (v8hf, v4hf variants).
12390         (vcvtms): New (v8hf, v4hf variants).
12391         (vcvtmu): New (v8hf, v4hf variants).
12392         (vcvtns): New (v8hf, v4hf variants).
12393         (vcvtnu): New (v8hf, v4hf variants).
12394         (vcvtps): New (v8hf, v4hf variants).
12395         (vcvtpu): New (v8hf, v4hf variants).
12397 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12399         * config/arm/arm-builtins.c (hf_UP): New.
12400         (si_UP): New.
12401         (vfp_builtin_data): New.  Update comment.
12402         (enum arm_builtins): Include "arm_vfp_builtins.def".
12403         (ARM_BUILTIN_VFP_PATTERN_START): New.
12404         (arm_init_vfp_builtins): New.
12405         (arm_init_builtins): Add arm_init_vfp_builtins.
12406         (arm_expand_vfp_builtin): New.
12407         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
12408         long line.
12409         * config/arm/arm_vfp_builtins.def: New file.
12410         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12411         (arm-builtins.o): Likewise.
12413 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
12415         PR ipa/77677
12416         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12417         from constant while creating value range.
12419 2016-09-23  Renlin Li  <renlin.li@arm.com>
12421         * ira.c (ira): Move ira_use_lra_p initialization code to ...
12422         (ira_init_once): Here.
12424 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
12425             Jakub Jelinek  <jakub@redhat.com>
12427         * hooks.h (hook_uint_uintp_false): Rename to...
12428         (hook_bool_uint_uintp_false): ... this.
12429         * hooks.c (hook_uint_uintp_false): Rename to...
12430         (hook_bool_uint_uintp_false): ... this.
12431         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12432         instead of hook_uint_uintp_false.
12434 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12436         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12437         (arm_init_builtins): Move body of a loop to the standalone
12438         function arm_init_neon_builtin.
12439         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
12440         moved from arm_neon_builtin with some white-space fixes.
12441         (arm_expand_neon_builtin): Move code into the standalone function
12442         arm_expand_neon_builtin_1.
12444 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12446         * config/arm/iterators.md (VCVTHI): New.
12447         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
12448         (NEON_VAGLTE): New.
12449         (VFM_LANE_AS): New.
12450         (VH_CVTTO): New.
12451         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
12452         (V_HALF): Add V4HF.  Fix white-space.
12453         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
12454         (V_s_elem): Likewise.
12455         (V_sz_elem): Fix white-space.
12456         (V_elem_ch): Likewise.
12457         (VH_elem_ch): New.
12458         (scalar_mul_constraint): Add V8HF and V4HF.
12459         (Is_float_mode): Fix white-space.
12460         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
12461         (q): Add HF.  Fix white-space.
12462         (float_sup): New.
12463         (float_SUP): New.
12464         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12465         (neon_vfm_lane_as): New.
12466         * config/arm/neon.md (add<mode>3_fp16): New.
12467         (sub<mode>3_fp16): New.
12468         (mul<mode>3add<mode>_neon): New.
12469         (fma<VH:mode>4_intrinsic): New.
12470         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12471         (fmsub<VH:mode>4_intrinsic): New.
12472         (<absneg_str><mode>2): New.
12473         (neon_v<absneg_str><mode>): New.
12474         (neon_v<fp16_rnd_str><mode>): New.
12475         (neon_vrsqrte<mode>): New.
12476         (neon_vpaddv4hf): New.
12477         (neon_vadd<mode>): New.
12478         (neon_vsub<mode>): New.
12479         (neon_vmulf<mode>): New.
12480         (neon_vfma<VH:mode>): New.
12481         (neon_vfms<VH:mode>): New.
12482         (neon_vc<cmp_op><mode>): New.
12483         (neon_vc<cmp_op><mode>_fp16insn): New
12484         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12485         (neon_vca<cmp_op><mode>): New.
12486         (neon_vca<cmp_op><mode>_fp16insn): New.
12487         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12488         (neon_vc<cmp_op>z<mode>): New.
12489         (neon_vabd<mode>): New.
12490         (neon_v<maxmin>f<mode>): New.
12491         (neon_vp<maxmin>fv4hf: New.
12492         (neon_<fmaxmin_op><mode>): New.
12493         (neon_vrecps<mode>): New.
12494         (neon_vrsqrts<mode>): New.
12495         (neon_vrecpe<mode>): New (VH variant).
12496         (neon_vdup_lane<mode>_internal): New.
12497         (neon_vdup_lane<mode>): New.
12498         (neon_vcvt<sup><mode>): New (VCVTHI variant).
12499         (neon_vcvt<sup><mode>): New (VH variant).
12500         (neon_vcvt<sup>_n<mode>): New (VH variant).
12501         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12502         (neon_vcvt<vcvth_op><sup><mode>): New.
12503         (neon_vmul_lane<mode>): New.
12504         (neon_vmul_n<mode>): New.
12505         * config/arm/unspecs.md (UNSPEC_VCALE): New
12506         (UNSPEC_VCALT): New.
12507         (UNSPEC_VFMA_LANE): New.
12508         (UNSPECS_VFMS_LANE): New.
12510 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12512         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12513         ("*extzv<mode><clobbercc_or_nocc>"):
12514         Correct a typo in a comment.
12515         Merged patterns.
12516         ("*insv<mode>_zEC12", "*insv<mode>_z10")
12517         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12518         ("*insv<mode>_zEC12_appendbitsleft")
12519         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12520         ("*insv<mode>_z10_appendbitsleft"): Ditto.
12521         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12522         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12523         Provide pattern with operands switched.
12524         ("*pre_z10_extv<mode>"):
12525         Use new subst patterns.
12526         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12527         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12528         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12529         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12530         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12531         ("*<risbg_n>_sidi_ior_and_lshiftrt")
12532         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12533         New patterns.
12534         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12535         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12536         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12537         on zEC12.
12538         ("SINT"): New mode_iterator with SI, HI, QI.
12539         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12540         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12541         duplication.
12543 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12545         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12546         new interface of s390_contiguous_bitmask_p.
12547         ("contiguous_bitmask_nowrap_operand"): New predicate.
12548         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12549         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12550         of s390_contiguous_bitmask_p.
12551         ("NxxDw"): Rename NxxDq constraint to NxxDw.
12552         ("NxxSw"): New constraint.
12553         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12554         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12555         interface.
12556         (s390_contiguous_bitmask_nowrap_p): Export.
12557         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12558         former s390_contiguous_bitmask_p.
12559         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12560         detect contiguous bit ranges with wraparound.  Change signature to
12561         return START and END position instead of POS and LENGTH.
12562         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12563         ranges with wraparound.
12564         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12565         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12566         Adapt to new signature of s390_contiguous_bitmask_p.
12568 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
12570         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12571         (create_intersect_range_checks): New.
12572         (vect_create_cond_for_alias_checks): Call above function.
12574 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12576         * config/arm/iterators.md (Code iterators): Fix some white-space
12577         in the comments.
12578         (GLTE): New.
12579         (ABSNEG): New
12580         (FCVT): Moved from vfp.md.
12581         (VCVT_HF_US_N): New.
12582         (VCVT_SI_US_N): New.
12583         (VCVT_HF_US): New.
12584         (VCVTH_US): New.
12585         (FP16_RND): New.
12586         (absneg_str): New.
12587         (FCVTI32typename): Moved from vfp.md.
12588         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12589         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12590         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12591         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
12592         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12593         (vcvth_op): New.
12594         (fp16_rnd_str): New.
12595         (fp16_rnd_insn): New.
12596         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12597         (UNSPEC_VCVT_HF_U_N): New.
12598         (UNSPEC_VCVT_SI_S_N): New.
12599         (UNSPEC_VCVT_SI_U_N): New.
12600         (UNSPEC_VCVTH_S): New.
12601         (UNSPEC_VCVTH_U): New.
12602         (UNSPEC_VCVTA_S): New.
12603         (UNSPEC_VCVTA_U): New.
12604         (UNSPEC_VCVTM_S): New.
12605         (UNSPEC_VCVTM_U): New.
12606         (UNSPEC_VCVTN_S): New.
12607         (UNSPEC_VCVTN_U): New.
12608         (UNSPEC_VCVTP_S): New.
12609         (UNSPEC_VCVTP_U): New.
12610         (UNSPEC_VCVTP_S): New.
12611         (UNSPEC_VCVTP_U): New.
12612         (UNSPEC_VRND): New.
12613         (UNSPEC_VRNDA): New.
12614         (UNSPEC_VRNDI): New.
12615         (UNSPEC_VRNDM): New.
12616         (UNSPEC_VRNDN): New.
12617         (UNSPEC_VRNDP): New.
12618         (UNSPEC_VRNDX): New.
12619         * config/arm/vfp.md (<absneg_str>hf2): New.
12620         (neon_vabshf): New.
12621         (neon_v<fp16_rnd_str>hf): New.
12622         (neon_vrndihf): New.
12623         (addhf3): New.
12624         (subhf3): New.
12625         (divhf3): New.
12626         (mulhf3): New.
12627         (*mulsf3neghf_vfp): New.
12628         (*negmulhf3_vfp): New.
12629         (*mulsf3addhf_vfp): New.
12630         (*mulhf3subhf_vfp): New.
12631         (*mulhf3neghfaddhf_vfp): New.
12632         (*mulhf3neghfsubhf_vfp): New.
12633         (fmahf4): New.
12634         (neon_vfmahf): New.
12635         (fmsubhf4_fp16): New.
12636         (neon_vfmshf): New.
12637         (*fnmsubhf4): New.
12638         (*fnmaddhf4): New.
12639         (neon_vsqrthf): New.
12640         (neon_vrsqrtshf): New.
12641         (FCVT): Move to iterators.md.
12642         (FCVTI32typename): Likewise.
12643         (neon_vcvth<sup>hf): New.
12644         (neon_vcvth<sup>si): New.
12645         (neon_vcvth<sup>_nhf_unspec): New.
12646         (neon_vcvth<sup>_nhf): New.
12647         (neon_vcvth<sup>_nsi_unspec): New.
12648         (neon_vcvth<sup>_nsi): New.
12649         (neon_vcvt<vcvth_op>h<sup>si): New.
12650         (neon_<fmaxmin_op>hf): New.
12652 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12654         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12655         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12656         ("*insv<mode>_zEC12_appendbitsleft")
12657         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12658         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12660 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
12662         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12663         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12664         construct values without normalization.
12665         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12666         static local lhs_ops to vNULL.
12668 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12669             Jiong Wang <jiong.wang@arm.com>
12671         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12672         available when FP16 instructions are available.
12673         (output_move_vfp): Add support for 16-bit data moves.
12674         (arm_validize_comparison): Fix some white-space.  Support HFmode
12675         by conversion to SFmode.
12676         * config/arm/arm.md (truncdfhf2): Fix a comment.
12677         (extendhfdf2): Likewise.
12678         (cstorehf4): New.
12679         (movsicc): Fix some white-space.
12680         (movhfcc): New.
12681         (movsfcc): Fix some white-space.
12682         (*cmovhf): New.
12683         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12684         instructions are available.
12685         (*thumb2_movhi_vfp): Likewise.
12686         (*arm_movhi_fp16): New.
12687         (*thumb2_movhi_fp16): New.
12688         (*movhf_vfp_fp16): New.
12689         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12690         (*movhf_vfp): Likewise.
12691         (extendhfsf2): Enable when VFP FP16 instructions are available.
12692         (truncsfhf2):  Enable when VFP FP16 instructions are available.
12694 2016-09-23  Martin Liska  <mliska@suse.cz>
12696         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12698 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12700         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12701         V4HF modes.
12702         (arm_evpc_neon_vtrn): Likewise.
12703         (arm_evpc_neon_vrev): Likewise.
12704         (arm_evpc_neon_vext): Likewise.
12705         * config/arm/arm_neon.h (vbsl_f16): New.
12706         (vbslq_f16): New.
12707         (vdup_n_f16): New.
12708         (vdupq_n_f16): New.
12709         (vdup_lane_f16): New.
12710         (vdupq_lane_f16): New.
12711         (vext_f16): New.
12712         (vextq_f16): New.
12713         (vmov_n_f16): New.
12714         (vmovq_n_f16): New.
12715         (vrev64_f16): New.
12716         (vrev64q_f16): New.
12717         (vtrn_f16): New.
12718         (vtrnq_f16): New.
12719         (vuzp_f16): New.
12720         (vuzpq_f16): New.
12721         (vzip_f16): New.
12722         (vzipq_f16): New.
12723         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12724         (vdup_lane): New (v8hf, v4hf variants).
12725         (vext): New (v8hf, v4hf variants).
12726         (vbsl): New (v8hf, v4hf variants).
12727         * config/arm/iterators.md (VDQWH): New.
12728         (VH): New.
12729         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
12730         (Scalar_mul_8_16): Fix white-space.
12731         (Is_d_reg): Add V4HF and V8HF.
12732         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12733         (neon_vdup_lane<mode>): New.
12734         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12735         (*neon_vtrn<mode>_insn): Likewise.
12736         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12737         (*neon_vzip<mode>_insn): Likewise
12738         (neon_vuzp<mode>_internal): Likewise.
12739         (*neon_vuzp<mode>_insn): Likewise
12740         * config/arm/vec-common.md (vec_perm_const<mode>): New.
12742 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
12743             Matthew Wahab  <matthew.wahab@arm.com>
12745         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12746         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12747         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12748         available.  Also fix some white-space.
12749         * config/arm/vfp.md (*arm_movhi_vfp): New.
12750         (*thumb2_movhi_vfp): New.
12752 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12754         * config/arm/arm-c.c (arm_cpu_builtins): Define
12755         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12756         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12758 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12760         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12761         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
12762         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12763         arm_v8_2a_fp16_neon_hw.
12764         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12765         arm_v8_2a_neon.
12767 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12769         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12770         arm_fp16_alternative_ok and arm_fp16_none_ok.
12772 2016-09-23  Martin Liska  <mliska@suse.cz>
12774         * ipa-icf.c (sem_variable::merge): Replace adress with address.
12776 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
12778         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12779         ("armv8.2-a"): New.
12780         ("armv8.2-a+fp16"): New.
12781         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12782         (FL2_FP16INST): New.
12783         (FL2_FOR_ARCH8_2A): New.
12784         * config/arm/arm-tables.opt: Regenerate.
12785         * config/arm/arm.c (arm_arch8_2): New.
12786         (arm_fp16_inst): New.
12787         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
12788         for incompatible fp16-format settings.
12789         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12790         (TARGET_NEON_FP16INST): New.
12791         (arm_arch8_2): Declare.
12792         (arm_fp16_inst): Declare.
12793         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12794         march=armv8.2-a and march=armv8.2-a+fp16.
12795         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12796         and armv8.2-a+fp16.
12797         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12798         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12800 2016-09-23  Martin Liska  <mliska@suse.cz>
12802         * doc/extend.texi: Remove fused-madd from i386 target options.
12804 2016-09-23  Martin Liska  <mliska@suse.cz>
12806         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12807         Handle movbe.
12809 2016-09-23  Martin Liska  <mliska@suse.cz>
12811         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12812         Handle crc32.
12814 2016-09-23  Martin Liska  <mliska@suse.cz>
12816         PR target/71652
12817         * config/i386/i386.c (ix86_option_override_internal): Change
12818         signature and return false when there's an error related to
12819         arch string.
12820         (release_options_strings): New function.
12821         (ix86_valid_target_attribute_tree): Call the function.
12823 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
12825         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12826         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12827         (gen_hsa_ctor_assignment): Likewise.
12828         * print-tree.c (print_node): Likewise.
12829         * tree-dump.c (dequeue_and_dump): Likewise.
12830         * tree-sra.c (sra_modify_constructor_assign): Likewise.
12831         * expr.c (store_constructor): Likewise.
12832         * fold-const.c (operand_equal_p): Likewise.
12833         * tree-pretty-print.c (dump_generic_node): Likewise.
12834         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12835         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12837 2016-09-23  Richard Biener  <rguenther@suse.de>
12839         * hooks.h (hook_uint_uintp_false): Declare.
12841 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12843         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12844         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12846 2016-09-22  Martin Sebor  <msebor@redhat.com>
12848         PR target/77676
12849         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12850         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12851         (target_int_min): Correct computation.
12852         (format_integer): Use long long as the argument for the ll length
12853         modifier.
12854         (format_floating): Use target_int_max().
12855         (get_string_length): Same.
12856         (format_string): Avoid setting the bounded flag for strings
12857         of unknown length.
12858         (try_substitute_return_value): Avoid setting range info when
12859         the result isn't bounded.
12860         * varasm.c (assemble_name): Increase buffer size.
12862 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12863             Terry Guo  <terry.guo@arm.com>
12865         * target.def (elf_flags_numeric): New target hook.
12866         * targhooks.h (default_asm_elf_flags_numeric): New.
12867         * varasm.c (default_asm_elf_flags_numeric): New.
12868         (default_elf_asm_named_section): Use new target hook.
12869         * config/arm/arm.opt (mpure-code): New.
12870         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12871         * config/arm/arm.c (arm_asm_init_sections): Add section
12872         attribute to default text section if -mpure-code.
12873         (arm_option_check_internal): Diagnose use of option with
12874         non supported targets and/or options.
12875         (arm_asm_elf_flags_numeric): New.
12876         (arm_function_section): New.
12877         (arm_elf_section_type_flags): New.
12878         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12879         for -mpure-code.
12880         * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12881         * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12883 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
12885         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12887 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12889         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12890         * rtl.h: Adjust prototype.
12892 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12894         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12895         (prev_active_insn): Likewise.
12896         (active_insn_p): Likewise.
12897         * rtl.h: Adjust prototypes.
12898         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12899         * config/arc/arc.md: Likewise.
12900         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12901         (branch_needs_nop_p): Likewise.
12902         (use_skip_p): Likewise.
12903         * config/sh/sh.c (gen_block_redirect): Likewise.
12904         (split_branches): Likewise.
12905         * reorg.c (optimize_skip): Likewise.
12906         (fill_simple_delay_slots): Likewise.
12907         (fill_slots_from_thread): Likewise.
12908         (relax_delay_slots): Likewise.
12909         * resource.c (mark_target_live_regs): Likewise.
12911 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12913         * config/cris/cris.c (cris_asm_output_case_end): Change argument
12914         type to rtx_insn *.
12915         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12916         (prev_nonnote_nondebug_insn): Likewise.
12917         * config/cris/cris-protos.h: Adjust prototype.
12918         * rtl.h: Likewise.
12919         * jump.c (rtx_renumbered_equal_p): Adjust.
12921 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12923         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12924         * rtl.h: Adjust prototype.
12925         * config/sh/sh.md: Adjust.
12926         * dwarf2out.c (add_var_loc_to_decl): Likewise.
12928 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12930         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12931         (prev_nondebug_insn): Likewise.
12932         * loop-doloop.c (doloop_condition_get): Likewise.
12933         * rtl.h: Adjust prototype.
12934         * cfgloop.h: Likewise.
12936 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12938         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12939         (prev_nonnote_insn): Likewise.
12940         * jump.c (reversed_comparison_code_parts): Likewise.
12941         (reversed_comparison): Likewise.
12942         * rtl.h: Adjust prototypes.
12943         * config/arc/arc.md: Adjust.
12944         * cse.c (find_comparison_args): Likewise.
12945         * reorg.c (redundant_insn): Change return type to rtx_insn *.
12946         (fix_reg_dead_note): Change argument type to rtx_insn *.
12947         (delete_prior_computation): Likewise.
12948         (delete_computation): Likewise.
12949         (fill_slots_from_thread): Adjust.
12950         (relax_delay_slots): Likewise.
12951         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12952         (simplify_relational_operation_1): Likewise.
12953         (simplify_ternary_operation): Likewise.
12955 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12957         * config/arc/arc-protos.h (arc_label_align): Change type of
12958         variables from rtx to rtx_insn *.
12959         * config/arc/arc.c (arc_label_align): Likewise.
12960         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12961         * config/bfin/bfin.c (workaround_speculation): Likewise.
12962         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12963         (find_last_same_clock): Likewise.
12964         (reorg_split_calls): Likewise.
12965         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12966         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12967         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12968         (same_cmp_following_p): Likewise.
12969         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12970         (same_cmp_following_p): Likwise.
12971         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12972         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12973         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12974         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12975         (rl78_alloc_physical_registers_cmp): Likewise.
12976         (rl78_alloc_physical_registers_umul): Likewise.
12977         (rl78_calculate_death_notes): Likewise.
12978         * config/s390/s390-protos.h (s390_label_align): Likewise.
12979         * config/s390/s390.c (s390_label_align): Likewise.
12980         * config/sh/sh.c (barrier_align): Likewise.
12981         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12982         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12983         (emit_cbcond_nop): Likewise.
12985 2016-09-22  Martin Liska  <mliska@suse.cz>
12987         PR ipa/77653
12988         * ipa-icf.c (sem_variable::merge): Yield merge operation if
12989         alias address matters, not necessarily address of original.
12991 2016-09-22  Richard Biener  <rguenther@suse.de>
12993         PR middle-end/77697
12994         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12995         fold fails.
12997 2016-09-22  Richard Biener  <rguenther@suse.de>
12999         PR middle-end/77677
13000         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
13001         from constant folding results.
13002         (gimple_resimplify2): Likewise.
13003         (gimple_resimplify3): Likewise.
13005 2016-09-22  Richard Biener  <rguenther@suse.de>
13007         PR middle-end/77678
13008         * expr.c (expand_expr_real_1): Guard array access against negative
13009         offset.
13011 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13013         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
13014         of MPFR_RNDN.
13015         (format_floating): Likewise.
13017 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
13019         PR fortran/77665
13020         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
13021         for all IFN_GOMP_SIMD_* internal fns, not just for
13022         IFN_GOMP_SIMD_ORDERED_*.
13024 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13026         PR target/77670
13027         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
13028         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
13029         instructions when you want to invert the test.
13030         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
13031         correct order for XXSEL.
13032         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
13033         for using XSCMP{EQ,GT,GE}DP.
13035 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
13037         * genconstants.c (main): Introduce noop_reader and convert call
13038         to read_md_files to a method call.
13039         * genenums.c (main): Likewise.
13040         * genmddeps.c (main): Likewise.
13041         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
13042         rtx_reader_ptr->get_top_level_filename ().
13043         (write_tm_preds_h): Likewise.
13044         (write_insn_preds_c): Likewise.
13045         * gensupport.c (class gen_reader): New subclass of rtx_reader.
13046         (rtx_handle_directive): Convert to...
13047         (gen_reader::handle_unknown_directive): ...this.
13048         (init_rtx_reader_args_cb): Convert return type from bool to
13049         rtx_reader *.  Create a gen_reader instance, using it for the
13050         call to read_md_files.  Return it if no errors occur.
13051         (init_rtx_reader_args): Convert return type from bool to
13052         rtx_reader *.
13053         * gensupport.h (init_rtx_reader_args_cb): Likewise.
13054         (init_rtx_reader_args_cb): Likewise.
13055         * read-md.c (struct file_name_list): Move to class rtx_reader.
13056         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
13057         (read_md_filename): Delete in favor of
13058         rtx_reader::m_read_md_filename.
13059         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
13060         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
13061         (base_dir): Delete in favor of rtx_reader::m_base_dir.
13062         (first_dir_md_include): Delete in favor of
13063         rtx_reader::m_first_dir_md_include.
13064         (last_dir_md_include_ptr): Delete in favor of
13065         rtx_reader::m_last_dir_md_include_ptr.
13066         (max_include_len): Delete.
13067         (rtx_reader_ptr): New.
13068         (fatal_with_file_and_line): Use get_filename and get_lineno
13069         accessors of rtx_reader_ptr.
13070         (require_char_ws): Likewise.
13071         (rtx_reader::read_char): New method, based on ::read_char.
13072         (rtx_reader::unread_char): New method, based on ::unread_char.
13073         (read_escape): Use get_filename and get_lineno accessors of
13074         rtx_reader_ptr.
13075         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
13076         (read_string): Use get_filename and get_lineno accessors of
13077         rtx_reader_ptr.
13078         (rtx_reader::rtx_reader): New ctor.
13079         (rtx_reader::~rtx_reader): New dtor.
13080         (handle_include): Convert from a function to...
13081         (rtx_reader::handle_include): ...this method, converting
13082         handle_directive from a callback to a virtual function.
13083         (handle_file): Likewise, converting to...
13084         (rtx_reader::handle_file): ...this method.
13085         (handle_toplevel_file): Likewise, converting to...
13086         (rtx_reader::handle_toplevel_file): ...this method.
13087         (rtx_reader::get_current_location): New method.
13088         (parse_include): Convert from a function to...
13089         (rtx_reader::add_include_path): ...this method, dropping redundant
13090         update to unused max_include_len.
13091         (read_md_files): Convert from a function to...
13092         (rtx_reader::read_md_files): ...this method, converting
13093         handle_directive from a callback to a virtual function.
13094         (noop_reader::handle_unknown_directive): New method.
13095         * read-md.h (directive_handler_t): Delete this typedef.
13096         (in_fname): Delete.
13097         (read_md_file): Delete.
13098         (read_md_lineno): Delete.
13099         (read_md_filename): Delete.
13100         (class rtx_reader): New class.
13101         (rtx_reader_ptr): New decl.
13102         (class noop_reader): New subclass of rtx_reader.
13103         (read_char): Reimplement in terms of rtx_reader::read_char.
13104         (unread_char): Reimplement in terms of rtx_reader::unread_char.
13105         (read_md_files): Delete.
13106         * read-rtl.c (read_rtx_code): Update for deletion of globals
13107         read_md_filename and read_md_lineno.
13109 2016-09-21  Jason Merrill  <jason@redhat.com>
13111         * input.h (from_macro_definition_at): New.
13113 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
13115         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
13117 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13119         PR tree-optimization/77550
13120         * tree-vect-stmts.c (create_array_ref): Change parameters.
13121         (get_group_alias_ptr_type): New function.
13122         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
13124 2016-09-21  Marek Polacek  <polacek@redhat.com>
13126         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
13127         Add falls through comment.
13129 2016-09-21  Richard Biener  <rguenther@suse.de>
13131         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
13132         (replace_child): Likewise.
13133         (remove_child_TAG): Adjust.
13134         (move_marked_base_types): Likewise.
13135         (prune_unused_types_prune): Clear die_sib of removed children.
13137 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
13139         PR target/77326
13140         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
13141         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
13143 2016-09-21  Richard Biener  <rguenther@suse.de>
13145         PR tree-optimization/77648
13146         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
13147         with complex RHS.
13148         (make_transitive_closure_constraints): Adjust comment.
13149         (make_any_offset_constraints): New function.
13150         (handle_rhs_call): Make sure to first expand a pointer to all
13151         subfields before transitively closing it.
13152         (handle_const_call): Likewise.  Properly expand returned
13153         pointers as well.
13154         (handle_pure_call): Likewise.
13156 2016-09-21  Richard Biener  <rguenther@suse.de>
13157             Jakub Jelinek  <jakub@redhat.com>
13159         PR tree-optimization/77621
13160         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
13161         group at non-vectorizable stmts.
13163 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13165         PR tree-optimization/72835
13166         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
13167         (make_new_ssa_for_all_defs): Likewise.
13168         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
13170 2016-09-20  Martin Sebor  <msebor@redhat.com>
13172         PR middle-end/49905
13173         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
13174         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
13175         * config/linux.c (gnu_libc_printf_pointer_format): New function.
13176         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
13177         * config/sol2.c (solaris_printf_pointer_format): New function.
13178         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
13179         options.
13180         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
13181         * doc/tm.texi: Regenerate.
13182         * gimple-fold.h (get_range_strlen): New function.
13183         (get_maxval_strlen): Declare existing function.
13184         * gimple-fold.c (get_range_strlen): Add arguments and compute both
13185         maximum and minimum.
13186          (get_range_strlen): Define overload.
13187         (get_maxval_strlen): Adjust.
13188         * gimple-ssa-sprintf.c: New file and pass.
13189         * passes.def (pass_sprintf_length): Add new pass.
13190         * targhooks.h (default_printf_pointer_format): Declare new function.
13191         (gnu_libc_printf_pointer_format): Same.
13192         (solaris_libc_printf_pointer_format): Same.
13193         * targhooks.c (default_printf_pointer_format): Define new function.
13194         * tree-pass.h (make_pass_sprintf_length): Declare new function.
13195         * print-tree.c: Increase buffer size.
13197 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13199         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
13201 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13203         * common.opt: New option -fipa-vrp.
13204         * ipa-cp.c (ipa_get_vr_lat): New.
13205         (ipcp_vr_lattice::print): Likewise.
13206         (print_all_lattices): Call ipcp_vr_lattice::print.
13207         (ipcp_vr_lattice::meet_with): New.
13208         (ipcp_vr_lattice::meet_with_1): Likewise.
13209         (ipcp_vr_lattice::top_p): Likewise.
13210         (ipcp_vr_lattice::bottom_p): Likewsie.
13211         (ipcp_vr_lattice::set_to_bottom): Likewise.
13212         (set_all_contains_variable): Call VR set_to_bottom.
13213         (initialize_node_lattices): Init VR lattices.
13214         (propagate_vr_accross_jump_function): New.
13215         (propagate_constants_accross_call): Call
13216         propagate_vr_accross_jump_function.
13217         (ipcp_store_vr_results): New.
13218         (ipcp_driver): Handle VR.
13219         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
13220         (ipa_set_jf_unknown): Likewise.
13221         (ipa_compute_jump_functions_for_edge): Likewise.
13222         (ipa_node_params_t::duplicate): Likewise.
13223         (ipa_write_jump_function): Likewise.
13224         (ipa_read_jump_function): Likewise.
13225         (write_ipcp_transformation_info): Likewise.
13226         (read_ipcp_transformation_info): Likewise.
13227         (ipcp_update_vr): New.
13228         (ipcp_transform_function): Handle VR.
13229         * ipa-prop.h (struct ipa_vr): New.
13230         * cgraph.c: Include tree-vrp.h.
13231         * cgraphunit.c: Likewise.
13232         * ipa-utils.c: Likewise.
13233         * ipa.c: Likewise.
13234         * opts.c: Likewise.
13235         * toplev.c: Likewise.
13236         * ipa-devirt.c: Likewise.
13237         * ipa-inline-transform.c: Likewise.
13238         * ipa-inline.c: Likewise.
13239         * ipa-profile.c: Likewise.
13241 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13243         * doc/invoke.texi: Document -fdump-tree-evrp.
13244         * passes.def: Define new pass_early_vrp.
13245         * timevar.def: Define new TV_TREE_EARLY_VRP.
13246         * tree-pass.h (make_pass_early_vrp): New.
13247         * tree-ssa-propagate.c: Make replace_uses_in non static.
13248         * tree-ssa-propagate.h: Export replace_uses_in.
13249         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
13250         (extract_range_from_assert): Factor out
13251         extract_range_for_var_from_comparison_expr.
13252         (vrp_initialize_lattice): New.
13253         (vrp_initialize): Factor out vrp_initialize_lattice.
13254         (vrp_valueize): Fix it to reject complex value ranges.
13255         (vrp_free_lattice): New.
13256         (evrp_dom_walker::before_dom_children): Likewise.
13257         (evrp_dom_walker::after_dom_children): Likewise.
13258         (evrp_dom_walker::push_value_range): Likewise.
13259         (evrp_dom_walker::pop_value_range): Likewise.
13260         (execute_early_vrp): Likewise.
13261         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
13262         (make_pass_early_vrp): New.
13264 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
13266         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
13267         instead of exact_log2.
13269 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
13271         PR target/77621
13272         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
13273         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
13274         (ix86_add_stmt_cost): Penalize DFmode vector operations
13275         for !TARGET_VECTORIZE_DOUBLE.
13277 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
13279         * doc/invoke.texi (Warning Options): Simplify language.
13280         (Optimize Options): Complete sentence.
13282 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
13284         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
13285         early_finish hook.
13287 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
13289         PR target/71395
13290         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
13291         inits on power8 and above, use the VMRGEW instruction instead of a
13292         permute.
13294         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
13295         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
13296         initialization.
13298 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
13300         * config/aarch64/arm_neon.h
13301         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
13302         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
13303         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
13305 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13307         * config/var/vax.h (ELIMINABLE_REGS): Define.
13308         (INITIAL_ELIMINATION_OFFSET): Define.
13310 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
13312         PR middle-end/77624
13313         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
13314         cast to void * if the cast is from some other pointer type.
13316 2016-09-20  Richard Biener  <rguenther@suse.de>
13318         PR tree-optimization/77646
13319         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
13320         a VDEF.
13322 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
13324         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
13325         attributes to all inlined functions and make them extern.
13327 2016-09-20  Richard Biener  <rguenther@suse.de>
13329         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
13330         hook.
13331         * debug.c (do_nothing_debug_hooks): Adjust.
13332         * dbxout.c (dbx_debug_hooks): Likewise.
13333         * sdbout.c (sdb_debug_hooks): Likewise.
13334         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
13335         (dwarf2out_finish): Move producer, filename and
13336         path annotation ...
13337         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
13338         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
13340 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13342         PR c++/77434
13343         * doc/invoke.texi: Document -Wint-in-bool-context.
13345         PR middle-end/77421
13346         * dwarf2out.c (output_loc_operands): Fix an assertion.
13348 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
13350         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
13351         (CR_DECIMAL_DIG): New macro.
13353 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
13355         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
13356         element.
13358 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
13360         PR rtl-optimization/77416
13361         * lra-remat.c (operand_to_remat): Process hard coded insn
13362         registers.
13364 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13366         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13367         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13369 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
13371         * target.def (lra_p): Wordsmithing.
13372         * doc/tm.texi: Regenerate.
13374 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
13375             Jan Hubicka  <jh@suse.cz>
13377         PR target/77587
13378         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13379         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13380         Call ultimate_alias_target just once, not up to 4 times.
13382 2016-09-19  Richard Biener  <rguenther@suse.de>
13384         * dwarf2out.c (early_dwarf_finished): New global.
13385         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13386         is false.
13387         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13388         if called from LTO exit early.
13389         (dwarf2out_late_global_decl): When being during the early
13390         debug phase do not add locations but only const value attributes.
13391         Adjust the way we generate early DIEs for LTO.
13393 2016-09-19  Richard Biener  <rguenther@suse.de>
13395         PR middle-end/77605
13396         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13397         proper niter to bound the loops.
13399 2016-09-19  Richard Biener  <rguenther@suse.de>
13401         PR tree-optimization/77514
13402         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13403         search for folded stmt.
13405 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
13407         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13408         * tree-pass.h (make_pass_early_thread_jumps): Declare.
13409         * tree-ssa-threadbackward.c (fsm_find_thread_path,
13410         fsm_find_thread_path, profitable_jump_thread_path,
13411         fsm_find_control_statement_thread_paths,
13412         find_jump_threads_backwards): Add speed_p parameter.
13413         (pass_data_early_thread_jumps): New pass.
13414         (make_pass_early_thread_jumps): New function.
13416 2016-09-17  Andreas Schwab  <schwab@suse.de>
13418         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13419         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13421 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
13423         * recog.c (rest_of_handle_split_after_reload): Delete.
13424         (pass_split_after_reload::gate): New method.
13425         (pass_split_after_reload::execute): Call split_all_insns directly.
13427 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
13429         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13430         parameters for functions taking long long arguments.
13432 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13434         PR target/77613
13435         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13436         splat with truncate.
13438 2016-09-16  Jason Merrill  <jason@redhat.com>
13440         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13441         New.
13442         * hwint.c (exact_log2): Use pow2p_hwi.
13443         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13444         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13445         * builtins.c (get_object_alignment_2, get_object_alignment)
13446         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13447         least_bit_hwi.
13448         * calls.c (compute_argument_addresses, store_one_arg): Use
13449         least_bit_hwi.
13450         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13451         * combine.c (force_to_mode): Use least_bit_hwi.
13452         (contains_muldiv, find_split_point, combine_simplify_rtx)
13453         (simplify_if_then_else, simplify_set, force_to_mode)
13454         (if_then_else_cond, simplify_and_const_int_1)
13455         (simplify_compare_const): Use pow2p_hwi.
13456         * cse.c (fold_rtx): Use pow2p_hwi.
13457         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13458         Use least_bit_hwi.
13459         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13460         (init_expmed_one_conv): Use pow2p_hwi.
13461         * expr.c (is_aligning_offset): Use pow2p_hwi.
13462         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13463         (fold_binary_loc): Use pow2p_hwi.
13464         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13465         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13466         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13467         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13468         Use least_bit_hwi.
13469         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13470         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13471         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13472         * omp-low.c (oacc_loop_fixed_partitions)
13473         (oacc_loop_auto_partitions): Use least_bit_hwi.
13474         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13475         * stor-layout.c (place_field): Use least_bit_hwi.
13476         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13477         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13478         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13479         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13480         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13481         * tree-vect-data-refs.c (vect_analyze_group_access_1)
13482         (vect_grouped_store_supported, vect_grouped_load_supported)
13483         (vect_permute_load_chain, vect_shift_permute_load_chain)
13484         (vect_transform_grouped_load): Use pow2p_hwi.
13485         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13486         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13487         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13488         least_bit_hwi.
13489         * tsan.c (instrument_expr): Use least_bit_hwi.
13490         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13492 2016-09-16  Andreas Schwab  <schwab@suse.de>
13494         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13495         OFFSET, not offset.
13496         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13498 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
13500         PR target/77526
13501         * combine.c (rest_of_handle_combine): If any edges have been purged,
13502         free dominators if available.
13504 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
13505             Eric Botcazou  <ebotcazou@adacore.com>
13507         PR middle-end/77594
13508         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13509         through into expand_addsub_overflow after expand_neg_overflow.
13511 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
13513         * diagnostic-show-locus.c
13514         (selftest::test_fixit_insert_containing_newline): New function.
13515         (selftest::test_fixit_replace_containing_newline): New function.
13516         (selftest::diagnostic_show_locus_c_tests): Call the above.
13518 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
13520         PR tree-optimization/77503
13521         * tree-vect-loop.c (vectorizable_reduction): Record reduction
13522         code for CONST_COND_REDUCTION at analysis stage and use it at
13523         transform stage.
13524         * tree-vectorizer.h (struct _stmt_vec_info): New field.
13525         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13526         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13527         field.
13529 2016-09-15  Richard Biener  <rguenther@suse.de>
13531         PR middle-end/77544
13532         * fold-const.c (split_tree): Do not split constant ~X.
13534 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
13536         PR rtl-optimization/77425
13537         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13538         is NULL.
13540         PR middle-end/77475
13541         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13542         use %qs instead of %s where desirable, use argument instead of arg in
13543         the diagnostic wording, add list of supported strategies and
13544         spellcheck hint.
13545         (ix86_option_override_internal): Emit target("m...") instead of
13546         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
13547         -march/-mtune option diagnostic.  Add list of supported arches/tunings
13548         and spellcheck hint.  Remove prefix, suffix and sw variables, use
13549         main_args_p ? "..." : "..." in diagnostics to make translation
13550         possible.
13552 2016-09-15  Richard Biener  <rguenther@suse.de>
13554         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13555         extra offset argument.
13556         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13557         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13558         to reflect new offset parameter.
13559         * doc/tm.texi: Regenerate.
13560         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13561         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13562         offset argument.
13563         (darwin_asm_output_dwarf_offset): Likewise.
13564         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13565         argument.
13566         (darwin_asm_output_dwarf_offset): Pass offset argument through.
13567         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13568         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13570 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
13572         PR fortran/72743
13573         * ipa-icf.c (set_alias_uids): New function.
13574         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13575         all the merged variable's referring aliases.
13577 2016-09-15  Richard Biener  <rguenther@suse.de>
13579         PR tree-optimization/77514
13580         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13581         only forced_stmts sequence.
13583 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
13585         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13586         * cfgexpand.c (update_alias_info_with_stack_vars): Use
13587         FOR_EACH_SSA_NAME to iterate over SSA variables.
13588         (pass_expand::execute): Likewise.
13589         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13590         * tree-cfg.c (dump_function_to_file): Likewise.
13591         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13592         (update_ssa): Likewise.
13593         * tree-ssa-alias.c (dump_alias_info): Likewise.
13594         * tree-ssa-ccp.c (ccp_finalize): Likewise.
13595         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13596         (create_outofssa_var_map): Likewise.
13597         (coalesce_ssa_name): Likewise.
13598         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13599         * tree-ssa-pre.c (compute_avail): Likewise.
13600         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13601         (scc_vn_restore_ssa_info): Likewise.
13602         (free_scc_vn): Likwise.
13603         (run_scc_vn): Likewise.
13604         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13605         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13606         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13607         * tree-ssa.c (verify_ssa): Likewise.
13609 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
13611         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13612         and mips64r2 as default 32-bit and 64-bit architectures.
13613         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13614         as default 32-bit and 64-bit architectures.
13616 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
13618         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13619         of succ edge.
13621 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13623         * target.def (lra_p): Change commentary (for the manual) for the
13624         new default.
13625         * doc/tm.texi: Regenerate.
13627 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13629         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13630         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13631         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13632         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13634 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13636         * targhooks.c (default_lra_p): Return true instead of false.
13638 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13640         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13641         hook_bool_void_false.
13642         * config/avr/avr.c: Ditto.
13643         * config/bfin/bfin.c: Ditto.
13644         * config/c6x/c6x.c: Ditto.
13645         * config/cr16/cr16.c: Ditto.
13646         * config/cris/cris.c: Ditto.
13647         * config/epiphany/epiphany.c: Ditto.
13648         * config/fr30/fr30.c: Ditto.
13649         * config/frv/frv.c: Ditto.
13650         * config/h8300/h8300.c: Ditto.
13651         * config/ia64/ia64.c: Ditto.
13652         * config/iq2000/iq2000.c: Ditto.
13653         * config/lm32/lm32.c: Ditto.
13654         * config/m32c/m32c.c: Ditto.
13655         * config/m32r/m32r.c: Ditto.
13656         * config/m68k/m68k.c: Ditto.
13657         * config/mcore/mcore.c: Ditto.
13658         * config/microblaze/microblaze.c: Ditto.
13659         * config/mmix/mmix.c: Ditto.
13660         * config/mn10300/mn10300.c: Ditto.
13661         * config/moxie/moxie.c: Ditto.
13662         * config/msp430/msp430.c: Ditto.
13663         * config/nios2/nios2.c: Ditto.
13664         * config/nvptx/nvptx.c: Ditto.
13665         * config/pa/pa.c: Ditto.
13666         * config/pdp11/pdp11.c: Ditto.
13667         * config/rl78/rl78.c: Ditto.
13668         * config/sparc/sparc.c: Ditto.
13669         * config/spu/spu.c: Ditto.
13670         * config/stormy16/stormy16.c: Ditto.
13671         * config/tilegx/tilegx.c: Ditto.
13672         * config/tilepro/tilepro.c: Ditto.
13673         * config/v850/v850.c: Ditto.
13674         * config/vax/vax.c: Ditto.
13675         * config/visium/visium.c: Ditto.
13676         * config/xtensa/xtensa.c: Ditto.
13678 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
13680         PR sanitizer/68260
13681         * tsan.c: Include target.h.
13682         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13683         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13684         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13685         BUILT_IN_ATOMIC_TEST_AND_SET entries.
13686         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13688 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13689             Martin Liska  <mliska@suse.cz>
13691         PR middle-end/77574
13692         * predict.c (force_edge_cold): Add braces to a condition.
13694 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13696         PR rtl-optimization/77289
13697         * lra-constraints.c (get_final_hard_regno): Removed.
13698         (get_hard_regno): Add new parameter final_p.
13699         (get_reg_class): Directly call lra_get_elimination_hard_regno.
13700         (operands_match_p): Adjust call to get_hard_regno.
13701         (uses_hard_regs_p): Likewise.
13702         (process_alt_operands): Likewise.
13704 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
13706         PR target/70713
13707         * config/msp430/msp430.c (msp430_start_function): Emit an error
13708         if a function is both weak and specifies an interrupt number.
13710 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
13712         PR tree-optimization/77454
13713         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13714         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
13715         Formatting fix.
13717 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
13719         * config/aarch64/aarch64-builtins.c
13720         (aarch64_init_simd_builtins): Fix builtin type signature printing.
13722 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
13724         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13725         SFmode and SCmode arguments by reference.
13727 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
13729         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13730         Rename to...
13731         (selftest::test_one_liner_fixit_insert_before): ...this, and update
13732         for renaming of add_fixit_insert to add_fixit_insert_before.
13733         (selftest::test_one_liner_fixit_insert_after): New function.
13734         (selftest::test_one_liner_fixit_validation_adhoc_locations):
13735         Update for renaming of add_fixit_insert to add_fixit_insert_before.
13736         (selftest::test_one_liner_many_fixits): Likewise.
13737         (selftest::test_diagnostic_show_locus_one_liner): Update for
13738         renaming, call new test function.
13739         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13740         renaming of add_fixit_insert to add_fixit_insert_before.
13741         (selftest::test_fixit_consolidation): Likewise.
13742         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13743         Likewise.
13744         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13745         (selftest::test_applying_fixits_insert_before): ...this.
13746         (selftest::test_applying_fixits_insert): Update for renaming of
13747         add_fixit_insert to add_fixit_insert_before.
13748         (selftest::test_applying_fixits_insert_after): New function.
13749         (selftest::test_applying_fixits_insert_after_at_line_end): New
13750         function.
13751         (selftest::test_applying_fixits_insert_after_failure): New function.
13752         (selftest::test_applying_fixits_multiple): Update for renaming of
13753         add_fixit_insert to add_fixit_insert_before.
13754         (selftest::change_line): Likewise.
13755         (selftest::test_applying_fixits_unreadable_file): Likewise.
13756         (selftest::test_applying_fixits_line_out_of_range): Likewise.
13757         (selftest::test_applying_fixits_column_validation): Likewise.
13758         (selftest::test_applying_fixits_column_validation): Likewise.
13759         (selftest::edit_context_c_tests): Update for renamed test function;
13760         call new test functions.
13762 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
13764         PR tree-optimization/77536
13765         PR rtl-optimization/68212
13766         * config/rs6000/rs6000.md (div->recip splitter): Remove
13767         optimize_insn_for_speed_p condition.
13769 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
13771         * optabs.c (prepare_cmp_insn): Update documentation comment.
13773 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
13774             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13776         PR middle-end/77475
13777         * opts.h (candidates_list_and_hint): Declare.
13778         * opts-common.c (candidates_list_and_hint): New function.
13779         (cmdline_handle_error): Use it.
13781 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
13783         * edit-context.c (edited_line::get_len): New accessor.
13784         (edited_file::print_diff): Split out hunk-printing into...
13785         (edited_file::print_diff_hunk): New method.
13786         (edited_file::print_diff_line): New method.
13788 2016-09-12  Andrew Pinski  <apinski@cavium.com>
13790         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13791         New tuning option.
13792         * config/aarch64/aarch64.c (thunderx_tunings): Enable
13793         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13794         (aarch64_operands_ok_for_ldpstp): Return false if
13795         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13796         was SImode and the alignment is less than 8 byte.
13797         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13799 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
13801         PR target/77570
13802         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13804 2016-09-12  Marek Polacek  <polacek@redhat.com>
13806         * doc/extend.texi: Use lowercase "boolean".
13807         * doc/invoke.texi: Likewise.
13808         * doc/md.texi: Likewise.
13809         * target.def: Likewise.
13810         * doc/tm.texi: Regenerated.
13812 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13814         PR middle-end/77426
13815         * expmed.c (synth_mult): Delete duplicate mode check.
13817 2016-09-10  Tom de Vries  <tom@codesourcery.com>
13819         PR C/71602
13820         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13821         va_list type only.
13822         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13823         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13825 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
13827         PR rtl-optimization/77289
13828         * lra-constraints.c (get_final_hard_regno): Add support for non hard
13829         register numbers.  Remove support for subregs.
13830         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
13831         (get_reg_class): Delete removed get_final_hard_regno() argument.
13832         (uses_hard_regs_p): Call get_final_hard_regno().
13834 2016-09-09  Martin Sebor  <msebor@redhat.com>
13836         PR c/77520
13837         PR c/77521
13838         * pretty-print.c (pp_quoted_string): New function.
13839         (pp_format): Call it for %c and %s directives.
13841 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13843         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13844         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13845         INITIAL_ELIMINATION_OFFSET) : Update documentation.
13846         * target.def (frame_pointer_required, can_eliminate): Likewise.
13847         * doc/tm.texi: Regenerated.
13848         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13849         ELIMINABLE_REGS.
13850         * df-scan.c (df_hard_reg_init): Likewise.
13851         * ira.c (ira_setup_eliminable_regset): Likewise.
13852         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13853         init_elim_table): Likewise.
13854         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13855         set_initial_elim_offsets, update_eliminables,
13856         init_elim_table): Likewise.
13857         * rtlanal.c (get_initial_register_offset): Likewise.
13858         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13859         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13860         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13861         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13862         * config/fr30/fr30.h: Fix comment.
13863         * config/frv/frv.c: Likewise.
13864         * config/frv/frv.h: Likewise.
13865         * config/ft32/ft32.h: Likewise.
13866         * config/visium/visium.h: Likewise.
13867         * config/pa/pa64-linux.h: Likewise.
13868         * config/v850/v850.h: Likewise.
13869         * config/cris/cris.c: Likewise.
13870         * config/ia64/ia64.h: Likewise.
13871         * config/moxie/moxie.h: Likewise.
13872         * config/m32r/m32r.h: Likewise.
13874 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13876         PR target/77267
13877         * config.in: Regenerate.
13878         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13879         New macro.
13880         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13881         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13882         static-libmpxwrappers case.
13883         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13884         MPX_LD_AS_NEEDED_GUARD_POP.
13885         * configure: Regenerate.
13886         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13887         defined if linker support "--push-state"/"--pop-state".
13889 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13891         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13893 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
13895         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13896         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13897         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13898         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13899         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13900         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13901         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13902         Document.
13903         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13904         width macros from TS 18661-1.
13905         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13907 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
13909         PR fortran/77516
13910         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13911         OMP_CLAUSE_SAFELEN_EXPR.
13913 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
13915         * Makefile.in (OBJS): Add substring-locations.o.
13916         * langhooks-def.h (class substring_loc): New forward decl.
13917         (lhd_get_substring_location): New decl.
13918         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13919         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13920         * langhooks.c (lhd_get_substring_location): New function.
13921         * langhooks.h (class substring_loc): New forward decl.
13922         (struct lang_hooks): Add field get_substring_location.
13923         * substring-locations.c: New file, taking definition of
13924         format_warning_va and format_warning_at_substring from
13925         c-family/c-format.c, making them non-static.
13926         * substring-locations.h (class substring_loc): Move class here
13927         from c-family/c-common.h.  Add and rewrite comments.
13928         (format_warning_va): New decl.
13929         (format_warning_at_substring): New decl.
13930         (get_source_location_for_substring): Add comment.
13932 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
13934         * config/i386/i386.c: Add 'U' suffix to processor feature bits
13935         to avoid -Wnarrowing warning.
13936         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13937         * opts.c: Likewise for SANITIZER_OPT bitmasks.
13939 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
13941         * config/aarch64/aarch64.c (aarch64_legitimize_address):
13942         Avoid use of base_offset if offset already in range.
13944 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13946         * config/sh/sh-protos.h (struct sh_atomic_model,
13947         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13948         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13949         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13950         * config/sh/sh.h (struct sh_atomic_model,
13951         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13952         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13953         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13954         Guard with __cplusplus.
13956 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
13958         PR target/69255
13959         * config/i386/i386.c (ix86_expand_builtin): For builtin with
13960         unsupported or unknown ISA, use expand_call.
13962 2016-09-06  Martin Liska  <mliska@suse.cz>
13964         PR gcov-profile/77378
13965         PR gcov-profile/77466
13966         * tree-profile.c (tree_profiling): Detect whether target can use
13967         -fprofile-update=atomic.
13969 2016-09-06  Richard Biener  <rguenther@suse.de>
13971         PR tree-optimization/77479
13972         * tree-vrp.c (update_value_range): Extend overflow handling to
13973         VARYING.
13975 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
13977         PR target/77476
13978         * config/i386/i386.md (isa): Add x64_avx512bw.
13979         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13980         (kmov_isa): New mode attr.
13981         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13982         (*zero_extend<mode>si2): Likewise.
13983         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13985 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
13987         * doc/invoke.texi (SPU Options): nops -> NOPs.
13988         (x86 Options): Ditto.
13990 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
13992         PR middle-end/77475
13993         * toplev.c (process_options): Temporarily set input_location
13994         to UNKNOWN_LOCATION around targetm.target_option.override () call.
13996 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
13998         PR rtl-optimization/77452
13999         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
14000         inner-mode reference to a CONST_VECTOR constant in the constant pool.
14002 2016-09-05  Marek Polacek  <polacek@redhat.com>
14004         PR c/77423
14005         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
14007 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
14009         PR other/77421
14010         * gensupport.c (alter_output_for_subst_insn): Remove redundant
14011         *insn_out == '*' test.  Don't copy unnecessary to yet another
14012         memory buffer, and don't leak it.
14014         PR rtl-optimization/77425
14015         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
14017 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
14019         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
14021 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
14023         * common.opt (fdiagnostics-generate-patch): New option.
14024         * diagnostic.c: Include "edit-context.h".
14025         (diagnostic_initialize): Initialize context->edit_context_ptr.
14026         (diagnostic_finish): Delete context->edit_context_ptr.
14027         (diagnostic_report_diagnostic): Add fix-it hints from the
14028         diagnostic to context->edit_context_ptr, if any.
14029         * diagnostic.h (class edit_context): Add forward decl.
14030         (struct diagnostic_context): Add field "edit_context_ptr".
14031         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
14032         -fdiagnostics-generate-patch.
14033         (-fdiagnostics-generate-patch): New item.
14034         * toplev.c: Include "edit-context.h".
14035         (process_options): Set global_dc->edit_context_ptr to a new
14036         edit_context if the options need one.
14037         (toplev::main): Handle -fdiagnostics-generate-patch by using
14038         global_dc->edit_context_ptr.
14040 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
14042         PR c/65467
14043         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
14044         map and firstprivate clauses on target construct for _Atomic
14045         qualified decls.
14046         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
14047         on target construct for _Atomic qualified decls.
14048         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
14049         decls.
14050         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
14051         _Atomic qualified arguments not mentioned in uniform clause.
14053 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
14055         * Makefile.in (OBJS-libcommon): Add edit-context.o.
14056         * diagnostic-color.c (color_dict): Add "diff-filename",
14057         "diff-hunk", "diff-delete", and "diff-insert".
14058         (parse_gcc_colors): Update default value of GCC_COLORS in comment
14059         to reflect above changes.
14060         * doc/invoke.texi (-fdiagnostics-color): Update description of
14061         default GCC_COLORS, and of the supported capabilities.
14062         * edit-context.c: New file.
14063         * edit-context.h: New file.
14064         * input.c (struct fcache): Add field "missing_trailing_newline".
14065         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
14066         true.
14067         (add_file_to_cache_tab): Likewise.
14068         (fcache::fcache): Likewise.
14069         (get_next_line): Update c->missing_trailing_newline.
14070         (location_missing_trailing_newline): New function.
14071         * input.h (location_missing_trailing_newline): New decl.
14072         * selftest-run-tests.c (selftest::run_tests): Call
14073         edit_context_c_tests.
14074         * selftest.h (edit_context_c_tests): New decl.
14076 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
14077             Richard Biener  <rguenth@suse.de>
14079         PR tree-optimization/77444
14080         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
14081         as steptype, remove redundant initialization.
14083 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
14085         PR sanitizer/77396
14086         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
14087         (sanopt_optimize_walker): Optimize away
14088         __asan_before_dynamic_init (...) followed by
14089         __asan_after_dynamic_init () without intervening memory loads/stores.
14090         * ipa-pure-const.c (special_builtin_state): Handle
14091         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
14092         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
14094 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14096         * cfg.c (free_original_copy_tables): Replace second assignment of
14097         bb_copy = NULL by bb_original = NULL.
14099 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
14101         PR other/77421
14102         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
14103         assignment added in r216794.
14105 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
14107         * Makefile.in (OBJS): Add typed-splay-tree.o.
14108         * selftest-run-tests.c (selftest::run_tests): Call
14109         typed_splay_tree_c_tests.
14110         * selftest.h (typed_splay_tree_c_tests): New decl.
14111         * typed-splay-tree.c: New file.
14112         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
14113         (typed_splay_tree::max): New method.
14114         (typed_splay_tree::min): New method.
14115         (typed_splay_tree::foreach): New method.
14116         (typed_splay_tree::closure): New struct.
14117         (typed_splay_tree::inner_foreach_fn): New function.
14119 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14121         * ipa-cp.c (ipcp_store_bits_results): Change option name from
14122         -fipa-cp-bit to -fipa-bit-cp.
14124 2016-09-01  Martin Sebor  <msebor@redhat.com>
14126         PR tree-optimization/71831
14127         * tree-object-size.h: Return bool instead of the size and add
14128         argument for the size.
14129         * tree-object-size.c (compute_object_offset): Update signature.
14130         (addr_object_size): Same.
14131         (compute_builtin_object_size): Return bool instead of the size
14132         and add argument for the size.  Handle POINTER_PLUS_EXPR when
14133         optimization is disabled.
14134         (expr_object_size): Adjust.
14135         (plus_stmt_object_size): Adjust.
14136         (pass_object_sizes::execute): Adjust.
14137         * builtins.c (fold_builtin_object_size): Adjust.
14138         * doc/extend.texi (Object Size Checking): Update.
14139         * ubsan.c (instrument_object_size): Adjust.
14141 2016-09-01  Martin Sebor  <msebor@redhat.com>
14143         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
14144         it fits the output of the formatted function regardless of its
14145         arguments.
14146         * genmodes.c (parser::parse_expr): Same.
14147         * gimplify.c (gimplify_asm_expr): Same.
14148         * passes.c (pass_manager::register_one_dump_file): Same.
14149         * print-tree.c (print_node): Same.
14151 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
14153         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
14155 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
14157         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
14159 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
14161         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
14162         * config/rs6000/vector.md: Ditto.
14163         * config/rs6000/vsx.md: Ditto.
14165 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
14167         * ipa-inline-analysis.c (param_change_prob): Get to the base object
14168         first in all cases.
14170 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
14172         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
14173         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
14174         *return_and_restore_gpregs_<mode>_r11,
14175         *return_and_restore_gpregs_<mode>_r12,
14176         *return_and_restore_gpregs_<mode>_r1,
14177         *return_and_restore_fpregs_<mode>_r11,
14178         *return_and_restore_fpregs_<mode>_r12,
14179         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
14180         directly instead of via the "l" constraint.  Renumber operands.
14181         Fix whitespace.
14183 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
14185         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
14186         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
14187         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
14188         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
14189         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
14190         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
14191         *call_value_nonlocal_darwin64, reload_macho_picbase,
14192         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
14193         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
14194         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
14195         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
14196         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
14197         *save_fpregs_<mode>_r1): Ditto.
14198         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
14199         *return_and_restore_gpregs_spe): Ditto.
14201 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
14203         * config/rs6000/rs6000.md
14204         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
14205         the use of the link register.
14206         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
14208 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14209             Michael Meissner  <meissner@linux.vnet.ibm.com>
14211         PR target/72827
14212         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
14213         reg+reg addressing for TImode.
14214         (rs6000_legitimate_address_p): Only allow register indirect
14215         addressing for TImode, even without TARGET_QUAD_MEMORY.
14217 2016-09-01  Richard Biener  <rguenther@suse.de>
14219         PR middle-end/77436
14220         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
14221         check whether the result fits the desired result type.
14223 2016-09-01  Nathan Sidwell  <nathan@acm.org>
14225         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
14227 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
14229         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
14230         New function.
14231         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
14233 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14235         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
14236         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
14237         for comparisons of integer ZERO_EXTEND against zero.
14239 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
14241         * config/i386/i386.c (ix86_option_override_internal): Also disable the
14242         STV pass if -mstackrealign is enabled.
14244 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
14246         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
14247         AVX512IFMA.
14249 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
14251         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
14252         (layout_range::intersects_line_p): New method.
14253         (test_range_contains_point_for_single_point): Rename to...
14254         (test_layout_range_for_single_point): ...this, and add testing
14255         for layout_range::intersects_line_p.
14256         (test_range_contains_point_for_single_line): Rename to...
14257         (test_layout_range_for_single_line): ...this,  and add testing
14258         for layout_range::intersects_line_p.
14259         (test_range_contains_point_for_multiple_lines): Rename to...
14260         (test_layout_range_for_multiple_lines): ...this,  and add testing
14261         for layout_range::intersects_line_p.
14262         (layout::layout): Populate m_fixit_hints.
14263         (layout::get_expanded_location): Handle the case of a line-span
14264         for a fix-it hint.
14265         (layout::validate_fixit_hint_p): New method.
14266         (get_line_span_for_fixit_hint): New function.
14267         (layout::calculate_line_spans): Add spans for fixit-hints.
14268         (layout::should_print_annotation_line_p): New method.
14269         (layout::print_any_fixits): Drop param "richloc", instead using
14270         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
14271         (diagnostic_show_locus): Avoid printing blank annotation lines.
14272         (selftest::test_diagnostic_context::test_diagnostic_context):
14273         Initialize show_column and start_span.
14274         (selftest::test_diagnostic_context::start_span_cb): New static
14275         function.
14276         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
14277         (selftest::diagnostic_show_locus_c_tests): Update for function
14278         renamings.  Call test_diagnostic_show_locus_fixit_lines.
14280 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
14282         PR tree-optimization/73714
14283         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
14285 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
14287         * selftest.c: Move "namespace selftest {" to top of file,
14288         removing explicit "selftest::" qualifiers throughout.
14290 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
14292         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
14293         New types.
14294         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
14295         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
14296         Replace builtin with vector extension.
14297         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
14298         New types.
14299         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
14300         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
14301         Replace builtin with vector extension.
14302         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
14303         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
14304         Replace builtin with vector extension.
14305         * config/i386/xmmintrin.h (__m128_u): New type.
14306         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
14307         (_mm_load_ps, _mm_store_ps): Simplify.
14309 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
14311         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
14313 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
14315         * diagnostic-show-locus.c (colorizer::begin_state): Support more
14316         than 3 ranges per diagnostic by alternating between color 1 and
14317         color 2.
14318         (layout::layout): Replace use of rich_location::MAX_RANGES
14319         with richloc->get_num_locations ().
14320         (layout::calculate_line_spans): Replace use of
14321         rich_location::MAX_RANGES with m_layout_ranges.length ().
14322         (layout::print_annotation_line): Handle arbitrary numbers of
14323         ranges in caret-printing by defaulting to '^'.
14324         (selftest::test_one_liner_many_fixits): New function.
14325         (test_diagnostic_show_locus_one_liner): Call it.
14326         * diagnostic.c (diagnostic_initialize): Update for renaming
14327         of rich_location::MAX_RANGES to
14328         rich_location::STATICALLY_ALLOCATED_RANGES.
14329         * diagnostic.h (struct diagnostic_context): Likewise.
14331 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
14333         * selftest.c (selftest::named_temp_file::named_temp_file): New
14334         ctor.
14335         (selftest::temp_source_file::~temp_source_file): Move to...
14336         (selftest::named_temp_file::~named_temp_file): ...here.
14337         (selftest::test_named_temp_file): New function.
14338         (selftest::selftest_c_tests): Call test_named_temp_file.
14339         * selftest.h (class named_temp_file): New class.
14340         (class temp_source_file): Convert to a subclass of named_temp_file.
14342 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
14344         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
14345         USEs of LR_REGNO in returns and sibcalls.
14346         (rs6000_output_mi_thunk): Similar.
14347         (rs6000_sibcall_aix): Similar.
14348         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
14349         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
14350         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
14351         Remove the USE of LR_REGNO from the patterns as well.  Delete an
14352         obsolete comment.
14353         (return_internal_<mode>): Delete.
14355 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
14357         * config/aarch64/aarch64-simd.md
14358         (aarch64_ld2<mode>_dreg_le): New.
14359         (aarch64_ld2<mode>_dreg_be): New.
14360         (aarch64_ld2<mode>_dreg): Removed.
14361         (aarch64_ld3<mode>_dreg_le): New.
14362         (aarch64_ld3<mode>_dreg_be): New.
14363         (aarch64_ld3<mode>_dreg): Removed.
14364         (aarch64_ld4<mode>_dreg_le): New.
14365         (aarch64_ld4<mode>_dreg_be): New.
14366         (aarch64_ld4<mode>_dreg): Removed.
14367         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14369 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
14371         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14372         redundant location param.
14373         (test_one_liner_fixit_remove): Likewise.
14374         (test_one_liner_fixit_replace): Likewise.
14375         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14376         * gcc-rich-location.c
14377         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14378         get_range_from_loc.  Drop overload taking a const char *.
14379         * gcc-rich-location.h
14380         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14381         a const char *.
14383 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14385         * config/linux.c (linux_libc_has_function): Return true on musl.
14387 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14389         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14391 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
14393         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14394         used for abnormal egdes.
14396 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
14398         PR tree-optimization/72866
14399         * tree-vect-patterns.c (search_type_for_mask): Turn into
14400         a small wrapper, move all code to ...
14401         (search_type_for_mask_1): ... this new function.  Add caching
14402         and adjust recursive calls.
14404         PR debug/77363
14405         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14406         instead of lookup_type_die (type_main_variant (type)) even for array
14407         types.
14409         PR middle-end/77377
14410         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14411         constant pool reference return x instead of c.
14413 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
14415         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14416         include MQ.
14418 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
14420         * input.c
14421         (selftest::test_make_location_nonpure_range_endpoints): Fix
14422         header comment.
14424 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
14426         * diagnostic-show-locus.c
14427         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14428         function.
14429         (selftest::test_diagnostic_show_locus_one_liner): Call it.
14430         * input.c (get_pure_location): Move to libcpp/line-map.c.
14431         * input.h (get_pure_location): Convert decl to an inline function
14432         calling implementation in libcpp.
14434 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
14436         PR target/77403
14437         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14438         template for intel asm dialect.
14439         (vec_set_hi_<mode><mask_name>): Ditto.
14441 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
14443         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14444         (selftest::fail_formatted): Likewise.
14446 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
14448         * input.c (make_location): Call get_start and get_finish
14449         on the endpoints to avoid storing packed ranges or ad-hoc
14450         ranges in them.
14451         (selftest::test_make_location_nonpure_range_endpoints): New function.
14452         (selftest::input_c_tests): Call it.
14453         * input.h (get_start): New inline function.
14455 2016-08-29  Tom de Vries  <tom@codesourcery.com>
14457         PR c/77398
14458         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14459         with assert.
14461 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
14463         * Makefile.in (gcov-iov.h): Add dummy recipe.
14465 2016-08-29  Nathan Sidwell  <nathan@acm.org>
14467         * config/nvptx/nvptx.c: #include tree-vrp.h.
14469 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
14471         PR target/77324
14472         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14473         HIGH+LO construct during reload.
14475 2016-08-28  Tom de Vries  <tom@codesourcery.com>
14477         PR lto/70955
14478         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14479         'sysv_abi va_list' attribute.
14480         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14481         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14482         attributes.
14484 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14486         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14487         * emit-rtl.c (unshare_all_rtl_1): Adjust.
14488         (unshare_all_rtl_again): Likewise.
14489         * function.c (assign_stack_local_1): Likewise.
14490         (assign_stack_temp_for_type): Likewise.
14492 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14494         * cfgbuild.c (make_edges): Adjust.
14495         * cfgrtl.c (can_delete_label_p): Likewise.
14496         * dwarf2cfi.c (create_trace_edges): Likewise.
14497         * except.c (sjlj_emit_dispatch_table): Likewise.
14498         * function.h (struct expr_status): make x_forced_labels a vector.
14499         * jump.c (rebuild_jump_labels_1): Adjust.
14500         * reload1.c (set_initial_label_offsets): Likewise.
14501         * stmt.c (force_label_rtx): Likewise.
14502         (expand_label): Likewise.
14504 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14506         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14508 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
14510         PR tree-optimization/71077
14511         PR tree-optimization/68542
14512         * fold-const.c (fold_relational_const): Fix folding of
14513         VECTOR_CST comparisons that have a scalar boolean result type.
14514         (selftest::test_vector_folding): New static function.
14515         (selftest::fold_const_c_tests): Call it.
14517 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
14519         * doc/extend.texi (SPU Built-in Functions): Remove stale
14520         references to material formerly at IBM and Sony.
14522 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
14524         PR target/77349
14525         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14527 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
14529         * diagnostic-show-locus.c
14530         (selftest::test_fixit_consolidation): New function.
14531         (selftest::diagnostic_show_locus_c_tests): Call it.
14532         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14533         constructor based on source_range.
14535 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
14537         * diagnostic-color.c (color_dict): Add "fixit-insert" and
14538         "fixit-delete".
14539         (parse_gcc_colors): Update description of default GCC_COLORS.
14540         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14541         (colorizer::set_fixit_insert): New method.
14542         (colorizer::set_fixit_delete): New method.
14543         (colorizer::get_color_by_name): New method.
14544         (colorizer::STATE_FIXIT_INSERT): New constant.
14545         (colorizer::STATE_FIXIT_DELETE): New constant.
14546         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
14547         fields in favor of new field "m_stop_color".  Add fields
14548         "m_fixit_insert" and "m_fixit_delete".
14549         (colorizer::colorizer): Update for above changes.  Replace
14550         colorize_start calls with calls to get_color_by_name.
14551         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14552         STATE_FIXIT_DELETE.  Update for field renamings.
14553         (colorizer::finish_state): Simplify by using m_stop_color,
14554         rather than multiple identical "*_ce" fields.
14555         (colorizer::get_color_by_name): New method.
14556         (layout::print_any_fixits): Print insertions and replacements
14557         using the "fixit-insert" color, and deletions using the
14558         "fixit-delete" color.
14559         * doc/invoke.texi (-fdiagnostics-color): Update description of
14560         default GCC_COLORS, and of the supported capabilities.
14562 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
14564         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14565         current_function_static_stack_size variable with the static
14566         stack frame size of the current function when
14567         flag_stack_usage_info is enabled.
14569 2016-08-26  Nathan Sidwell  <nathan@acm.org>
14571         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14572         assignment inside if condition.
14574 2016-08-26  Richard Biener  <rguenther@suse.de>
14576         PR tree-optimization/69047
14577         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14578         extracts similar to what FRE does.
14579         (non_rewritable_mem_ref_base): Likewise.
14581 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
14583         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14584         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14585         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14586         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14587         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14588         Likewise.
14589         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14590         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14591         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14592         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14593         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14595 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14597         PR target/70473
14598         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14599         reservation duration to 15 cycles.
14600         (cortex_a8_vfp_macs): Likewise.
14601         (cortex_a8_vfp_macd): Likewise.
14602         (cortex_a8_vfp_divs): Likewise.
14603         (cortex_a8_vfp_divd): Likewise.
14605 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14607         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14608         (aarch_macro_fusion_pair_p): Use above to avoid early return.
14610 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14611             Martin Jambhor  <mjambor@suse.cz>
14613         * common.opt: New option -fipa-bit-cp.
14614         * doc/invoke.texi: Document -fipa-bit-cp.
14615         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14616         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14617         * tree-ssa-ccp.h: New header file.
14618         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14619         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14620         Replace all occurences of tree parameter by two new params: signop, int.
14621         (bit_value_unop_1): Change to bit_value_unop and export it.
14622         Replace all occurences of tree parameter by two new params: signop,
14623         int.
14624         (bit_value_binop): Change call from bit_value_binop_1 to
14625         bit_value_binop.
14626         (bit_value_assume_aligned): Likewise.
14627         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14628         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14629         to ccp_finalize.
14630         (ccp_finalize): Skip processing if val->mask == 0.
14631         * ipa-cp.c: Include tree-ssa-ccp.h
14632         (ipcp_bits_lattice): New class.
14633         (ipcp_param_lattice (bits_lattice): New member.
14634         (print_all_lattices): Call ipcp_bits_lattice::print.
14635         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14636         (initialize_node_lattices): Likewise.
14637         (propagate_bits_accross_jump_function): New function.
14638         (propagate_constants_accross_call): Call
14639         propagate_bits_accross_jump_function.
14640         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14641         (ipcp_store_bits_results): New function.
14642         (ipcp_driver): Call ipcp_store_bits_results.
14643         * ipa-prop.h (ipa_bits): New struct.
14644         (ipa_jump_func): Add new member bits of type ipa_bits.
14645         (ipa_param_descriptor): Change decl to decl_or_type.
14646         (ipa_get_param): Change decl to decl_or_type and assert on
14647         PARM_DECL.
14648         (ipa_get_type): New function.
14649         (ipcp_transformation_summary): New member bits.
14650         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14651         (ipa_populate_param_decls): Likewise.
14652         (ipa_dump_param): Likewise.
14653         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14654         function.
14655         (ipa_set_jf_unknown): Set ipa_bits::known to false.
14656         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14657         propagation.
14658         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14659         (ipa_write_jump_function): Add streaming for ipa_bits.
14660         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14661         (write_ipcp_transformation_info): Add streaming for ipa_bits
14662         summary for ltrans.
14663         (read_ipcp_transfomration_info): Add support for reading streamed
14664         ipa_bits.
14665         (ipcp_update_bits): New function.
14666         (ipcp_transform_function): Call ipcp_update_bits.
14668 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14670         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14671         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14673 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
14675         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14677 2016-08-25  Richard Biener  <rguenther@suse.de>
14679         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14680         Only add locations in late dwarf.
14681         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14682         (dwarf2out_early_finish): But do it here.
14684 2016-08-24  Michael Collison  <michael.collison@linaro.org>
14685             Michael Collison  <michael.collison@arm.com>
14687         * config/arm/arm-modes.def: Add new condition code mode CC_V
14688         to represent the overflow bit.
14689         * config/arm/arm.c (maybe_get_arm_condition_code):
14690         Add support for CC_Vmode.
14691         (arm_gen_unlikely_cbranch): New function to generate common
14692         rtl conditional branches for overflow patterns.
14693         * config/arm/arm-protos.h: Add prototype for
14694         arm_gen_unlikely_cbranch.
14695         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14696         addsi3_compareV_upper): New patterns to support signed
14697         builtin overflow add operations.
14698         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14699         New patterns to support unsigned builtin add overflow operations.
14700         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14701         builtin overflow subtract operations,
14702         (usubv<mode>4): New patterns to support unsigned builtin subtract
14703         overflow operations.
14704         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14705         to support builtin overflow negate operations.
14707 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14709         Revert
14710         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14712         * explow.c (get_dynamic_stack_size): Take known alignment of stack
14713         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14714         needed.
14716 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14718         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14719         MULTILIB_OPTIONS should be used.  Small wording fixes.
14720         * genmultilib: Memorize set of all option combinations in
14721         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
14722         found in MULTILIB_OPTIONS by checking if option set is listed in
14723         combination_space.  Output new and existing error message to stderr.
14725 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14727         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14728         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14729         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14730         (MULTILIB_REUSE): Remove reuse rules for option set including
14731         -mfpu=fp-armv8 and -mfpu=vfpv4
14733 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14735         * config/arm/t-rtems: Add vfp multilib.
14737 2016-08-23  Ian Lance Taylor  <iant@golang.org>
14739         * config/s390/s390.c (s390_asm_file_start): Call
14740         default_file_start.
14742 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14744         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14745         initialization of all 0's to the 0 constant, instead of directly
14746         generating XOR.  Add support for V4SImode vector initialization on
14747         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14748         initialization.  Change variables used in V4SFmode vector
14749         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
14750         any memory addresses are in index form.  Add support for using
14751         VSPLTH/VSPLTB to initialize vector short and vector char vectors
14752         with all of the same element.
14753         (regno_or_subregno): New helper function to return a register
14754         number for either REG or SUBREG.
14755         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14756         Use regno_or_subregno where possible.
14757         (rs6000_split_v4si_init_di_reg): New helper function to build up a
14758         DImode value from two SImode values in order to generate V4SImode
14759         vector initialization on 64-bit systems with direct move.
14760         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14761         initialization.
14762         (rtx_is_swappable_p): V4SImode vector initialization insn is not
14763         swappable.
14764         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14765         declaration.
14766         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14767         attributes to initialize V8HImode and V16QImode vectors with the
14768         same element.
14769         (VSX_SPLAT_COUNT): Likewise.
14770         (VSX_SPLAT_SUFFIX): Likewise.
14771         (UNSPEC_VSX_VEC_INIT): New unspec.
14772         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14773         Allow SFmode values to come from Altivec registers.
14774         (vsx_init_v4si): New insn/split for V4SImode vector initialization
14775         on 64-bit systems with direct move.
14776         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14777         vector initializations, to allow V4SImode vector initializations
14778         on 64-bit systems with direct move.
14779         (vsx_splat_v4si): Likewise.
14780         (vsx_splat_v4si_di): Likewise.
14781         (vsx_splat_v4sf): Likewise.
14782         (vsx_splat_v4sf_internal): Likewise.
14783         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14784         register classes.
14785         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14786         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14787         initializing V8HImode and V16QImode vectors with the same
14788         element.
14789         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14790         optimization if -maltivec=be.
14792 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
14794         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14795         attribute for alternatives 3 and 4.
14797 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
14799         * selftest.c (selftest::assert_str_contains): New function.
14800         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14801         * selftest.h (selftest::assert_str_contains): New decl.
14802         (ASSERT_STR_CONTAINS): New macro.
14804 2016-08-23  Richard Biener  <rguenther@suse.de>
14806         PR tree-optimization/77286
14807         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14808         the CFG here.
14809         (vect_transform_loop): Split exit edges of loop and scalar
14810         loop if required and at the appropriate time.
14812 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14814         * explow.c (get_dynamic_stack_size): Take known alignment of stack
14815         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14816         needed.
14817         Correct a typo in a comment.
14819 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14821         * config/s390/s390.md ("*andc_split"): New splitter for and with
14822         complement.
14824 2016-08-23  Richard Biener  <rguenther@suse.de>
14826         PR tree-optimization/27336
14827         * tree-vrp.c (infer_value_range): Handle stmts that can throw
14828         by looking for a non-EH edge.
14829         (process_assert_insertions_for): Likewise.
14831 2016-08-23  Richard Biener  <rguenther@suse.de>
14833         PR middle-end/77305
14834         * statistics.c (statistics_counter_event): Robustify against
14835         NULL current_pass.
14837 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14839         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14840         for targets amdfam10 and barcelona.
14842 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
14844         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14845         (zero_extend<mode>di2): Ditto.
14846         (*zero_extend<mode>si2): Ditto.
14847         (*zero_extendqihi2): Ditto.
14849 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
14851         PR middle-end/77269
14852         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14853         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14855 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
14857         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14858         identical consecutive elements.
14859         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
14860         the node's def stmt, avoid printing an unwanted trailing newline by
14861         replacing the call to print_gimple_stmt() with its inlined body and
14862         adjusting it to not set pp_needs_newline and to call pp_flush()
14863         instead of pp_newline_and_flush().
14865 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
14867         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14868         (float32_type_node, float64_type_node, float32x_type_node)
14869         (float128x_type_node): New macros.
14870         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14871         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14872         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14873         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14874         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14875         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14876         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14877         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14878         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14879         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14880         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14881         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14882         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14883         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14884         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14885         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14886         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14887         (copysign, fabs, huge_val, inf, nan, nans): Use it.
14888         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14889         and copysign.
14890         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14891         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14892         * doc/extend.texi (Other Builtins): Document these built-in
14893         functions.
14894         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14895         for nan and nans.
14897 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
14899         * doc/install.texi (Binaries): www.opencsw.org now uses https.
14901 2016-08-22  Richard Biener  <rguenther@suse.de>
14903         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14905 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
14907         PR target/77270
14908         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14909         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14910         non-SSE2 athlons only, otherwise prefer SSE prefetches.
14912 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14914         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14915         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14916         (vrp_visit_switch_stmt): Likewise.
14917         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14918         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14919         (vrp_visit_stmt): Use extract_range_from_stmt.
14920         (vrp_visit_phi_node): Use extract_range_from_phi_node.
14922 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14924         * Makefile.in: Add tree-vrp.h to GTFILES.
14925         * gengtype.c (open_base_files): Add tree-vrp.h.
14926         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14927         * builtins.c: Likewise.
14928         * fold-const.c: Likewise.
14929         * gimple-builder.c: Likewise.
14930         * gimple-laddress.c: Likewise.
14931         * hsa-gen.c: Likewise.
14932         * internal-fn.c: Likewise.
14933         * ssa.h: Likewise.
14934         * targhooks.c: Liewise,
14935         * tree-ssa-address.c: Likewise.
14936         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14937         * tree-vrp.c (struct value_range): Move to tree-vrp.h
14938         * tree-vrp.h: New file.
14940 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14942         PR tree-optimization/61839
14943         * tree-vrp.c (two_valued_val_range_p): New.
14944         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14945         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14946         Also Convert VAR BINOP CST where VAR is two-valued to
14947         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14949 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
14951         * diagnostic-show-locus.c
14952         (layout::annotation_line_showed_range_p): New method.
14953         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14954         Reimplement case fixit_hint::REPLACE to cover removals, and
14955         replacements where the range of the replacement isn't one
14956         of the ranges in the rich_location.
14957         (test_one_liner_fixit_replace): Likewise.
14958         (selftest::test_one_liner_fixit_replace_non_equal_range): New
14959         function.
14960         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14961         New function.
14962         (selftest::test_diagnostic_show_locus_one_liner): Call the new
14963         functions.
14964         * diagnostic.c (print_parseable_fixits): Remove case
14965         fixit_hint::REMOVE.
14967 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
14969         PR target/77270
14970         * config/i386/i386.c (ix86_option_override_internal): Remove
14971         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14972         Enable SSE prefetch also for TARGET_PREFETCHWT1.
14973         Do not try to enable TARGET_PRFCHW ISA flag here.
14974         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14975         Rewrite expander function body.
14976         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14978 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
14980         PR c/32187
14981         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14982         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14983         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14984         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14985         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14986         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14987         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14988         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14989         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14990         tree_index values.
14991         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14992         macros.
14993         (struct floatn_type_info): New structure type.
14994         (floatn_nx_types): New variable declaration.
14995         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14996         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14997         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14998         * tree.c (floatn_nx_types): New variable.
14999         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
15000         corresponding complex types.
15001         * target.def (floatn_mode): New hook.
15002         * targhooks.c: Include "real.h".
15003         (default_floatn_mode): New function.
15004         * targhooks.h (default_floatn_mode): New prototype.
15005         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
15006         types.
15007         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
15008         effective-target and dg-add-options keywords.
15009         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
15010         Document new effective-target keywords.
15011         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
15012         * doc/tm.texi: Regenerate.
15013         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
15014         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
15015         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
15016         18661-3.
15017         * real.h (struct real_format): Add field ieee_bits.
15018         * real.c (ieee_single_format, mips_single_format)
15019         (motorola_single_format, spu_single_format, ieee_double_format)
15020         (mips_double_format, motorola_double_format)
15021         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
15022         (ieee_extended_intel_128_format)
15023         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
15024         (mips_extended_format, ieee_quad_format, mips_quad_format)
15025         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
15026         (decimal_double_format, decimal_quad_format, ieee_half_format)
15027         (arm_half_format, real_internal_format: Initialize ieee_bits
15028         field.
15029         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
15030         float128_type_node.  Set float80_type_node to float64x_type_node
15031         if appropriate and long_double_type_node not appropriate.
15032         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
15033         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
15034         Initialize ieee_bits field.
15035         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
15036         (rs6000_init_builtins): Set ieee128_float_type_node to
15037         float128_type_node.
15038         (rs6000_floatn_mode): New function.
15040 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
15042         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
15043         _rdseed64_step): Uglify argument names and/or local variable names
15044         in inline functions.
15045         * config/i386/rtmintrin.h (_xabort): Likewise.
15046         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
15047         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
15048         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
15049         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
15050         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
15051         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
15052         _mm_maskz_ternarylogic_epi32): Likewise.
15053         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
15054         __lwpins32, __lwpins64): Likewise.
15055         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
15056         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
15057         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
15058         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
15059         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
15060         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
15061         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
15062         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
15063         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
15064         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
15065         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
15066         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
15067         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
15068         _mm256_mask_i64gather_epi32): Likewise.
15069         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
15070         * config/i386/ia32intrin.h (__writeeflags): Likewise.
15071         * config/i386/pkuintrin.h (_wrpkru): Likewise.
15072         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
15073         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
15074         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
15075         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
15076         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
15077         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
15078         _mm512_mask_prefetch_i64scatter_ps): Likewise.
15079         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
15080         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
15081         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
15082         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
15083         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
15084         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
15085         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
15086         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
15088         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
15089         returning void.
15090         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
15091         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
15092         Likewise.
15093         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
15094         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
15095         function name.
15096         (_rdpkru_u32): Add space after function name.
15098         * config/i386/t-i386 (i386-c.o): Don't depend on
15099         i386-builtin-types.inc.
15100         (i386.o): Depend on i386-builtin-types.inc.
15102 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
15104         PR target/77281
15105         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
15106         Use const_vec_duplicate to check for duplicated elements.
15108 2016-08-19  Richard Biener  <rguenther@suse.de>
15110         PR tree-optimization/77290
15111         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15112         Fix flag_tree_parallelize_loops check.
15114 2016-08-19  Richard Biener  <rguenther@suse.de>
15116         * match.pd (x | 0 -> x): Add.
15118 2016-08-19  Richard Biener  <rguenther@suse.de>
15120         PR tree-optimization/77286
15121         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15122         Deal with virtual PHIs being out-of-order.
15124 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
15126         * doc/invoke.texi (fverbose-asm): Note that source code lines
15127         are emitted, and provide an example.
15128         * final.c (asm_show_source): New function.
15129         (final_scan_insn): Call asm_show_source.
15131 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
15133         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
15134         param with diagnostic_kind.
15135         (class colorizer): Similarly replace field m_diagnostic with
15136         m_diagnostic_kind.
15137         (colorizer::colorizer): Replace diagnostic
15138         param with diagnostic_kind.
15139         (colorizer::begin_state): Update for above field change.
15140         (layout::layout): Replace diagnostic param with rich_location *
15141         and diagnostic_kind.
15142         (diagnostic_show_locus): Replace diagnostic param with richloc
15143         and diagnostic_kind.
15144         (class selftest::test_diagnostic_context): New class.
15145         (selftest::test_diagnostic_show_locus_unknown_location): New
15146         function.
15147         (selftest::test_one_liner_simple_caret): New function.
15148         (selftest::test_one_liner_caret_and_range): New function.
15149         (selftest::test_one_liner_multiple_carets_and_ranges): New
15150         function.
15151         (selftest::test_one_liner_fixit_remove): New function.
15152         (selftest::test_one_liner_fixit_replace): New function.
15153         (selftest::test_diagnostic_show_locus_one_liner): New function.
15154         (selftest::diagnostic_show_locus_c_tests): Call the new test
15155         functions.
15156         * diagnostic.c (diagnostic_initialize): Initialize
15157         colorize_source_p, show_ruler_p and parseable_fixits_p.
15158         (default_diagnostic_finalizer): Update for change to
15159         diagnostic_show_locus.
15160         (diagnostic_append_note): Likewise.
15161         * diagnostic.h (diagnostic_show_locus): Replace
15162         const diagnostic_info * param with location * and diagnostic_t.
15164 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
15166         * input.c (saved_line_table): New global.
15167         (class selftest::temp_line_table): Rename to line_table_test and
15168         move declaration to selftest.h, and drop field m_old_line_table.
15169         (selftest::temp_line_table::temp_line_table): Rename ctor to...
15170         (selftest::line_table_test::line_table_test): ...this.  Add a
15171         default ctor.  Store current value of line_table within
15172         saved_line_table.
15173         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
15174         (selftest::line_table_test::~line_table_test): ...this, and
15175         restore line_table from the saved_line_table, rather than
15176         m_old_line_table.
15177         (selftest::test_accessing_ordinary_linemaps): Update for above
15178         renaming.
15179         (selftest::test_lexer): Likewise.
15180         (struct selftest::lexer_test): Likewise.
15181         (selftest::lexer_test::lexer_test): Likewise.
15182         (selftest::input_c_tests): Move the looping over test cases from
15183         here into...
15184         (selftest::for_each_line_table_case): New function.
15185         * input.h (saved_line_table): New decl.
15186         * selftest.h (struct selftest::line_table_case): New forward decl.
15187         (class selftest::line_table_test): New class, moved here from
15188         selftest::temp_line_table in input.c, and renamed.
15189         (selftest::for_each_line_table_case): New decl.
15191 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15193         PR target/72839
15194         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
15196 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
15198         PR middle-end/70895
15199         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
15200         enclosing parallel construct for reduction variables on OpenACC loop
15201         directives.
15203 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
15205         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
15206         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
15207         -gdwarf-3.
15208         (function_to_dwarf_procedure): Update comment.
15210 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
15212         * input.c (diagnostics_file_cache_forcibly_evict_file): New
15213         function.
15214         * input.h (diagnostics_file_cache_forcibly_evict_file): New
15215         declaration.
15216         * selftest.c (selftest::temp_source_file::~temp_source_file):
15217         Evict m_filename from the diagnostic file cache.
15219 2016-08-18  Richard Biener  <rguenther@suse.de>
15221         * tree-pass.h (make_pass_materialize_all_clones): Declare.
15222         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
15223         make_pass_materialize_all_clones): New simple IPA pass encapsulating
15224         clone materialization.
15225         * passes.def (all_late_ipa_passes): Start with
15226         pass_materialize_all_clones.
15227         * cgraphunit.c (symbol_table::compile): Remove call to
15228         materialize_all_clones.
15229         * tree-into-ssa.c: Include statistics.h.
15230         (update_ssa): Count number of times we do incremental/rewrite
15231         SSA update.
15233 2016-08-18  Richard Biener  <rguenther@suse.de>
15235         PR tree-optimization/77282
15236         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15237         When doing auto-parallelizing also prevent use of PHIs that
15238         carry dependences across loop backedges.
15240 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
15241             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15243         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
15245 2016-08-18  Richard Biener  <rguenther@suse.de>
15247         * ssa-iterators.h (ssa_vuse_operand): New inline.
15248         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
15249         (predicate_all_scalar_phis): Use remove_phi_node to remove
15250         phi nodes predicated.  Delay removing virtual PHIs.
15251         (predicate_mem_writes): Update virtual operands.
15252         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
15253         (tree_if_conversion): Do not rewrite virtual SSA form.
15254         * tree-phinodes.c (release_phi_node): Make static.
15255         * tree-phinodes.h (release_phi_node): Remove.
15257 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
15259         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
15260         codes that appear in bdesc_* arrays, instead include i386-builtin.def
15261         twice to define those.
15262         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
15263         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
15264         bdesc_multi_arg): Define by including i386-builtin.def the third time.
15265         * config/i386/i386-builtin.def: New file.
15267 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
15269         * input.c (get_source_range_for_char): Rename to...
15270         (selftest::get_source_range_for_char): ...this, and move within
15271         the #if CHECKING_P guard.
15272         (get_num_source_ranges_for_substring): Rename to...
15273         (selftest::get_num_source_ranges_for_substring): ...this, move
15274         within the #if CHECKING_P guard, and make static.
15275         (selftest::assert_num_substring_ranges): Initialize
15276         actual_num_ranges.
15278 2016-08-18  Alan Modra  <amodra@gmail.com>
15280         PR rtl-optimization/72771
15281         * reload.c (find_reloads): Don't assume that a subreg mem is OK
15282         when find_reloads_toplev returns address_reloaded==-1.
15283         (alternative_allows_const_pool_ref): Update comment.
15285 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
15287         PR tree-optimization/71752
15288         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
15289         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
15291 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
15293         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
15294         instead of testing ECF_NORETURN bit in gimple_call_flags.
15295         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
15296         * predict.c (tree_bb_level_predictions): Likewise.
15297         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
15299         PR middle-end/77259
15300         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
15301         turning a call into __builtin_unreachable-like noreturn call, adjust
15302         gimple_call_set_fntype.
15303         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
15304         gimple_call_fntype has void return type.
15306 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
15308         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
15309         maybe_lookup_decl, to handle nested acc loop directives.
15311 2016-08-17  Richard Biener  <rguenther@suse.de>
15313         PR tree-optimization/76490
15314         * tree-vrp.c (update_value_range): Preserve overflow infinities
15315         when intersecting with ranges from get_range_info.
15316         (operand_less_p): Handle overflow infinities correctly.
15317         (value_range_constant_singleton): Use vrp_operand_equal_p
15318         to handle overflow max/min correctly.
15319         (vrp_valueize): Likewise.
15320         (union_ranges): Likewise.
15321         (intersect_ranges): Likewise.
15322         (vrp_visit_phi_node): Improve iteration limitation to only
15323         apply when we'll possibly re-visit the PHI via a changed argument
15324         on the backedge.
15326 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15328         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
15329         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
15330         rather than those that should not be built.
15332 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
15334         PR target/66488
15335         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
15337 2016-08-17  Richard Biener  <rguenther@suse.de>
15339         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
15340         (verify_vssa): New function verifying virtual SSA form.
15341         (verify_ssa): Call it.
15342         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
15343         Do not apply loop-closed SSA handling to virtuals.
15344         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
15345         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
15346         when rewriting their symbol.
15347         (prepare_def_site_for): Likewise.
15348         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
15349         operands of moved stmts.
15351 2016-08-17  Richard Biener  <rguenther@suse.de>
15353         PR tree-optimization/23855
15354         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
15355         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
15356         find guards to hoist.  Do not update SSA form but rewrite virtuals
15357         into loop closed SSA.
15358         (find_loop_guard): Adjust to skip already hoisted guards.  Do
15359         not mark virtuals for renaming or update SSA form.
15361 2016-08-17  Martin Liska  <mliska@suse.cz>
15363         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15364         a LONG_LONG_TYPE_SIZE comparison.
15365         * gcov-io.h: Remove macro definitions.
15366         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15367         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15368         comparison.
15370 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
15372         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15373         that builtins not mentioned in bdesc_* arrays come first, then
15374         the ones mentioned in bdesc_* arrays in the order they appear in
15375         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15376         IX86_BUILTIN__BDESC_*_LAST enumerator.
15377         (bdesc_mpx): Fix up a comment typo.
15378         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15379         __builtin_ia32_vpcomneu[bwdq] builtins.
15380         (BDESC_VERIFY, BDESC_VERIFYS): Define.
15381         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15382         enum ix86_builtins ordering.
15383         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15384         for direct bdesc_* array member access instead of searching all the
15385         arrays until an fcode match is found.
15387 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
15389         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15390         pattern as define_insn_and_split.  Split insn before reload to
15391         ashl<mode>3_1.
15392         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
15393         <shift_insn><mode>3_1.
15394         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
15395         <rotate_insn><mode>3_1.
15397 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
15399         PR c/72857
15400         * input.c (get_source_range_for_substring): Rename to...
15401         (get_source_location_for_substring): ...this, adding param
15402         "caret_idx", and converting output param from source_range * to
15403         location_t *.
15404         (get_source_range_for_char): New function.
15405         (get_num_source_ranges_for_substring): Update comment to reflect
15406         above renaming.
15407         (assert_char_at_range): Update to use get_source_range_for_char
15408         rather than get_source_range_for_substring.
15409         (test_lexer_string_locations_concatenation_2): Likewise.
15410         * substring-locations.h (get_source_range_for_substring): Rename
15411         to...
15412         (get_source_location_for_substring): ...this, and adding param
15413         "caret_idx", and converting output param from source_range * to
15414         location_t *.
15416 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
15418         * input.c (class selftest::temp_source_file): Move to
15419         selftest.h.
15420         (selftest::temp_source_file::temp_source_file): Move to
15421         selftest.c.
15422         (selftest::temp_source_file::~temp_source_file): Likewise.
15423         * selftest.c (selftest::temp_source_file::temp_source_file): Move
15424         here from input.c.
15425         (selftest::temp_source_file::~temp_source_file): Likewise.
15426         * selftest.h (class selftest::temp_source_file): Move here from
15427         input.c
15429 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
15431         PR target/71910
15432         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
15433         inlining, add cgraph edge for the added __builtin_unreachable call.
15435         PR middle-end/67485
15436         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15437         only cast it to SHWI for the final comparison.
15439 2016-08-16  Martin Liska  <mliska@suse.cz>
15441         PR gcov-profile/36412
15442         * doc/gcov.texi: Document --hash-filenames(-x).
15443         * gcov.c (print_usage): Add the option.
15444         (process_args): Process the option, sort options alphabetically.
15445         (md5sum_to_hex): New function.
15446         (make_gcov_file_name): Do the md5sum and append it to a
15447         filename.
15449 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
15451         PR tree-optimization/69848
15452         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15453         and swtich operands to avoid additional NOT instruction.
15454         (vcond<v_cmp_mixed><mode>): Ditto.
15455         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15457 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
15459         * doc/install.texi (*-*-solaris2*): Adjust latest change.
15461 2016-08-16  Richard Biener  <rguenther@suse.de>
15463         PR tree-optimization/76783
15464         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
15465         BB visited flags at start.
15467 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
15469         PR tree-optimization/72817
15470         PR tree-optimization/73450
15471         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15472         multiple_of_p for adjusted IV.base.
15474 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
15476         PR target/72867
15477         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15478         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15479         for !flag_finite_math_only or flag_signed_zeros.
15480         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15481         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
15482         depend on flag_finite_math_only.
15483         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15484         New insn pattern.
15485         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15486         (*ieee_smin<mode>3): Ditto.
15487         (*ieee_smax<mode>3): Ditto.
15488         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15489         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15490         flag_signed_zeros.
15491         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
15492         depend on flag_finite_math_only.
15493         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15494         (*mmx_<code>v2sf3): Remove.
15495         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15496         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15497         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15499 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
15501         PR rtl-optimization/73650
15502         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15503         it is not a simple move.
15505 2016-08-15  Martin Liska  <mliska@suse.cz>
15507         PR driver/72765
15508         * gcc.c (do_spec_1): Call save_string with the right size.
15509         (save_string): Do an assert about string we copy.
15511 2016-08-15  Richard Biener  <rguenther@suse.de>
15513         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15514         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15515         TV_MACH_DEP.
15516         (pass_data_stv): Likewise.
15518 2016-08-15  Richard Biener  <rguenther@suse.de>
15520         PR tree-optimization/73434
15521         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15522         TBAA info on the base when forwarding a non-invariant address.
15524 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
15526         * dwarf2out.c (struct checksum_attributes): Add
15527         at_string_length_bit_size and at_string_length_byte_size fields.
15528         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15529         and DW_AT_string_length_byte_size.
15530         (die_checksum_ordered): Handle at_string_length_bit_size and
15531         at_string_length_byte_size.
15532         (gen_array_type_die): For dwarf_version >= 5 emit
15533         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15534         (adjust_string_types): For dwarf_version >= 5 remove
15535         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15536         (resolve_addr): Likewise.
15538         PR debug/71906
15539         * dwarf2out.c (string_types): New variable.
15540         (gen_array_type_die): Change early_dwarf handling of
15541         DW_AT_string_length, create DW_OP_call4 referencing the
15542         length var temporarily.  Handle parameters that are pointers
15543         to string length.
15544         (adjust_string_types): New function.
15545         (gen_subprogram_die): Temporarily set string_types to local var,
15546         call adjust_string_types if needed.
15547         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15548         New functions.
15549         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15551 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
15553         * doc/install.texi (*-*-solaris2*): Fix version number and document
15554         requirement on GNU make for building libjava with the Solaris linker.
15556 2016-08-15  Martin Liska  <mliska@suse.cz>
15557             Jakub Jelinek  <jakub@redhat.com>
15559         PR tree-optimization/72824
15560         * tree-loop-distribution.c (const_with_all_bytes_same)
15561         <case VECTOR_CST>: Fix a typo.
15563 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
15565         PR target/76342
15566         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15567         Renamed from _mm512_undefined_si512.
15568         (_mm_undefined_si512): New definition.
15570 2016-08-13  Richard Biener  <rguenther@suse.de>
15572         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15573         into PHIs and update the lattice for its def.
15575 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
15577         PR c/71512
15578         * ubsan.c (instrument_si_overflow): Pass true instead of false
15579         to gsi_replace.
15580         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15581         of bbs.  Return TODO_cleanup_cfg if any returned true.
15583 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15585         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15586         ISA 3.0 MTVSRDD instruction.
15587         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15588         vecperm.
15590 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15592         PR tree-optimization/71083
15593         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15594         bitfield access when possible.
15596 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
15598         PR middle-end/71654
15599         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15600         sign-changing cast from a shorter unsigned type to a wider
15601         signed type.
15603 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
15605         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15606         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15607         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15609 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15611         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15612         Correct costs for vec_construct.
15614 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
15616         PR tree-optimization/69848
15617         * tree-vectorizer.h (enum vect_def_type): New condition reduction
15618         type CONST_COND_REDUCTION.
15619         * tree-vect-loop.c (vectorizable_reduction): Support new condition
15620         reudction type CONST_COND_REDUCTION.
15622 2016-08-12  Richard Biener  <rguenther@suse.de>
15624         PR tree-optimization/57326
15625         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15626         returning an SSA name.
15627         (phi_translate_1): When fully_constant_expression returns a NAME
15628         make sure we have a leader for it.
15630 2016-08-12  Martin Liska  <mliska@suse.cz>
15631             Adam Fineman  <afineman@afineman.com>
15633         * gcov.c (process_file): Create .gcov file when .gcda
15634         file is missing.
15636 2016-08-12  Marek Polacek  <polacek@redhat.com>
15638         PR c/7652
15639         * alias.c (find_base_value): Adjust fall through comment.
15640         * cfgexpand.c (expand_debug_expr): Likewise.
15641         * combine.c (find_split_point): Likewise.
15642         (expand_compound_operation): Likewise.  Add FALLTHRU.
15643         (make_compound_operation): Adjust fall through comment.
15644         (canon_reg_for_combine): Add FALLTHRU.
15645         (force_to_mode): Adjust fall through comment.
15646         (simplify_shift_const_1): Likewise.
15647         (simplify_comparison): Likewise.
15648         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15649         FALLTHRU.
15650         * config/aarch64/predicates.md: Likewise.
15651         * config/i386/i386.c (function_arg_advance_32): Likewise.
15652         (ix86_gimplify_va_arg): Likewise.
15653         (print_reg): Likewise.
15654         (ix86_print_operand): Likewise.
15655         (ix86_build_const_vector): Likewise.
15656         (ix86_expand_branch): Likewise.
15657         (ix86_sched_init_global): Adjust fall through comment.
15658         (ix86_expand_args_builtin): Add FALLTHRU.
15659         (ix86_expand_builtin): Likewise.
15660         (ix86_expand_vector_init_one_var): Likewise.
15661         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15662         (rs6000_adjust_cost): Likewise.
15663         (insn_must_be_first_in_group): Likewise.
15664         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
15665         * dbxout.c (dbxout_symbol): Adjust fall through comment.
15666         * df-scan.c (df_uses_record): Likewise.
15667         * dojump.c (do_jump): Add FALLTHRU.
15668         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
15669         comment.
15670         (resolve_args_picking_1): Adjust fall through comment.
15671         (loc_list_from_tree_1): Likewise.
15672         * expmed.c (make_tree): Likewise.
15673         * expr.c (expand_expr_real_2): Add FALLTHRU.
15674         (expand_expr_real_1): Likewise.  Adjust fall through comment.
15675         * fold-const.c (const_binop): Adjust fall through comment.
15676         (fold_truth_not_expr): Likewise.
15677         (fold_cond_expr_with_comparison): Add FALLTHRU.
15678         (fold_binary_loc): Likewise.
15679         (contains_label_1): Adjust fall through comment.
15680         (multiple_of_p): Likewise.
15681         * gcov-tool.c (process_args): Add FALLTHRU.
15682         * genattrtab.c (check_attr_test): Likewise.
15683         (write_test_expr): Likewise.
15684         * genconfig.c (walk_insn_part): Likewise.
15685         * genpreds.c (validate_exp): Adjust fall through comment.
15686         (needs_variable): Likewise.
15687         * gensupport.c (get_alternatives_number): Add FALLTHRU.
15688         (subst_dup): Likewise.
15689         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15690         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15691         (gimplify_scan_omp_clauses): Add FALLTHRU.
15692         (goa_stabilize_expr): Likewise.
15693         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15694         through comment.
15695         * hsa-gen.c (get_address_from_value): Likewise.
15696         * ipa-icf.c (sem_function::hash_stmt): Likewise.
15697         * ira.c (ira_setup_alts): Add FALLTHRU.
15698         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15699         comment.
15700         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15701         * opts.c (common_handle_option): Likewise.
15702         * read-rtl.c (read_rtx_code): Likewise.
15703         * real.c (round_for_format): Likewise.
15704         * recog.c (asm_operand_ok): Likewise.
15705         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15706         * reload1.c (set_label_offsets): Likewise.
15707         (eliminate_regs_1): Likewise.
15708         (reload_reg_reaches_end_p): Likewise.
15709         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15710         (rtx_cost): Likewise.
15711         * sched-rgn.c (is_exception_free): Likewise.
15712         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15713         * stor-layout.c (int_mode_for_mode): Likewise.
15714         * toplev.c (print_to_asm_out_file): Likewise.
15715         (print_to_stderr): Likewise.
15716         * tree-cfg.c (gimple_verify_flow_info): Likewise.
15717         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15718         (chrec_fold_multiply): Likewise.
15719         (evolution_function_is_invariant_rec_p): Likewise.
15720         (for_each_scev_op): Likewise.
15721         * tree-data-ref.c (siv_subscript_p): Likewise.
15722         (get_references_in_stmt): Likewise.
15723         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15724         (substitute_in_expr): Likewise.
15725         (type_cache_hasher::equal): Likewise.
15726         (walk_type_fields): Likewise.
15727         * var-tracking.c (adjust_mems): Add FALLTHRU.
15728         (set_dv_changed): Adjust fall through comment.
15729         * varasm.c (default_function_section): Add FALLTHRU.
15731 2016-08-12  Marek Polacek  <polacek@redhat.com>
15733         PR c/7652
15734         * tree-complex.c (expand_complex_division): Add missing break.
15736 2016-08-12  Richard Biener  <rguenther@suse.de>
15738         * passes.c (execute_todo): Do not push/pop TV_TODO.
15739         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15740         (execute_one_pass): Likewise.
15741         * common.opt (ftime-report-details): New switch.
15742         * doc/invoke.texi (ftime-report-details): Document.
15743         * timevar.h (timer::print_row): Adjust signature.
15744         (timer::all_zero): New static helper.
15745         (timer::child_map_t): New typedef.
15746         (timer::time_var_def): Add children field.
15747         * timevar.c (timer::named_items::print): Adjust.
15748         (timer::~timer): Free timevar recorded children.
15749         (timer::pop_internal): When -ftime-report-details record
15750         time spent in sub-timevars.
15751         (timer::print_row): Adjust.
15752         (timer::print): Print sub-timevar stats, use all_zero.
15753         * timevar.def (TV_TODO): Remove.
15755 2016-08-12  Richard Biener  <rguenther@suse.de>
15757         PR tree-optimization/72851
15758         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
15759         worklists to use bitmaps indexed in execution order.
15760         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15761         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15762         (cfg_blocks): Make a bitmap.
15763         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15764         New globals.
15765         (cfg_blocks_empty_p): Adjust.
15766         (cfg_blocks_add): Likewise.
15767         (cfg_blocks_get): Likewise.
15768         (add_ssa_edge): Likewise.
15769         (add_control_edge): Likewise.
15770         (simulate_stmt): Likewise.
15771         (process_ssa_edge_worklist): Likewise.
15772         (simulate_block): Likewise.
15773         (ssa_prop_init): Compute PRE order and stmt UIDs.
15774         (ssa_prop_fini): Adjust.
15775         (ssa_propagate): Adjust.
15777 2016-08-12  Richard Biener  <rguenther@suse.de>
15779         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15780         the currently executable edges have fixed ranges.  Always
15781         go through update_value_range.
15783 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
15785         PR debug/63240
15786         * langhooks-def.h
15787         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15788         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15789         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15790         (LANG_HOOKS_DECLS): Add it.
15791         * langhooks.h (struct lang_hooks_for_decls): Add
15792         function_decl_defaulted.  Const_tree-ify
15793         function_decl_explicit_p and function_decl_deleted_p.
15794         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15795         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15796         also at strict DWARF v5.
15798         PR debug/55641
15799         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15800         TYPE_QUAL_CONST in reference-typed decls.
15802         PR debug/49366
15803         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15804         in DW_OP_pieces, just enough to handle pointers to member
15805         functions.
15806         (gen_remaining_tmpl_value_param_die_attribute): Use a location
15807         expression on DWARFv5 if a constant value doesn't work.
15809 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
15811         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15812         * selftest.c (selftest::test_assertions): New function.
15813         (selftest::selftest_c_tests): New function.
15814         * selftest.h (selftest::selftest_c_tests): New declaration.
15816 2016-08-11  Richard Biener  <rguenther@suse.de>
15817             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15819         PR rtl-optimization/72855
15820         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15822 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15824         PR target/72863
15825         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15826         (vsx_store_<mode>): Likewise.
15828 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
15830         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15831         TImode CONST_WIDE_INT store.
15832         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15834 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
15836         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15837         mode if unaligned SSE load and store are optimal.
15839 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15841         PR tree-optimization/71083
15842         * tree-predcom.c (ref_at_iteration): Correctly align the
15843         reference type.
15845 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15847         * config/s390/s390-builtin-types.def: Add INT128 types.
15848         * config/s390/s390-builtins.def: Add INT128 variants for the add
15849         sub low-level builtins dealing with TImode.
15850         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15851         via subreg when expanding a builtin.
15852         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15853         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15854         Fix comment.
15855         * config/s390/vecintrin.h: Adjust builtin names accordingly.
15856         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15857         ("vec_addc<mode>", "vec_addc_u128"): Merge to
15858         "vacc<bhfgq>_<mode>".
15859         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15860         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15861         ("vec_subc<mode>", "vec_subc_u128"): Merge to
15862         "vscbi<bhfgq>_<mode>".
15863         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15864         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15866 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15868         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15870 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
15872         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15873         unused declaration.
15874         (vcond<v_cmp_mixed><mode>): Ditto.
15875         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15877 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
15879         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15880         variable explicitly, also assert on it before use.
15882 2016-08-11  Richard Biener  <rguenther@suse.de>
15884         PR tree-optimization/72772
15885         * cfgloopmanip.c (create_preheader): Use split_edge if there
15886         is a single loop entry, avoiding degenerate PHIs.
15888 2016-08-11  Richard Biener  <rguenther@suse.de>
15890         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15891         unconditional TODO_cleanup_cfg.
15892         (pass_thread_jumps::execute): Initialize loops, perform a CFG
15893         cleanup only if we threaded a jump.
15895 2016-08-11  Alan Modra  <amodra@gmail.com>
15897         PR target/71680
15898         * lra-constraints.c (simplify_operand_subreg): Allow subreg
15899         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15900         slow.  Emit two reloads for slow mem case, first loading in
15901         fast innermode, then converting to required mode.
15903 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15905         * config/rs6000/altivec.h (vec_extract_exp): New macro.
15906         (vec_extract_sig): New macro.
15907         (vec_insert_exp): New macro.
15908         (vec_test_data_class): New macro.
15909         (scalar_extract_exp): New macro.
15910         (scalar_extract_sig): New macro.
15911         (scalar_insert_exp): New macro.
15912         (scalar_test_data_class): New macro.
15913         (scalar_test_neg): New macro.
15914         (scalar_cmp_exp_gt): New macro.
15915         (scalar_cmp_exp_lt): New macro.
15916         (scalar_cmp_exp_eq): New macro.
15917         (scalar_cmp_exp_unordered): New macro.
15918         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15919         to enforce constraint that operand is a 7-bit unsigned literal.
15920         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15921         for power9 built-ins.
15922         (BU_P9V_VSX_2): Likewise.
15923         (BU_P9V_64BIT_VSX_2): Likewise.
15924         (VSEEDP): Add scalar extract exponent support.
15925         (VSEESP): Add scalar extract signature support.
15926         (VSTDCNDP): Add scalar test negative support.
15927         (VSTDCNSP): Likewise.
15928         (VSIEDP): Add scalar insert exponent support.
15929         (VSCEDPGT): Add scalar compare exponent greater than support.
15930         (VSCEDPLT): Add scalar compare exponent less than support.
15931         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15932         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15933         (VSTDCDP): Add scalar test data class support.
15934         (VSTDCSP): Likewise.
15935         (VSEEDP): Add overload support for scalar extract exponent
15936         operation.
15937         (VSESDP): Add overload support for scalar extract signature
15938         operation.
15939         (VSTDCN): Add overload support for scalar test negative
15940         operation.
15941         (VSTDCNDP): Add overload support for scalar test negative
15942         operation.
15943         (VSTDCNSP): Add overload support for scalar test negative
15944         operation.
15945         (VSIEDP): Add overload support for scalar insert exponent
15946         operation.
15947         (VSTDC): Add overload support for scalar test data class
15948         operation.
15949         (VSTDCDP): Add overload support for scalar test data class
15950         operation.
15951         (VSTDCSP): Add overload support for scalar test data class
15952         opreation.
15953         (VSCEDPGT): Add overload support for scalar compare exponent
15954         greater than operation.
15955         (VSCEDPLT): Add overload support for scalar compare exponent
15956         less than operation.
15957         (VSCEDPEQ): Add overload support for scalar compare exponent
15958         test-for-equality operation.
15959         (VSCEDPUO): Add overload support for scalar compare exponent
15960         test-for-unordered operation.
15961         (VEEDP): Add vector extract exponent support.
15962         (VEESP): Likewise.
15963         (VESDP): Add vector extract significand support.
15964         (VESSP): Likewise.
15965         (VIEDP): Add vector insert exponent support.
15966         (VIESP): Likewise.
15967         (VTDCDP): Add vector test data class support.
15968         (VTDCSP): Likewise.
15969         (VES): Add overload support for vector extract significand operation.
15970         (VESDP): Likewise.
15971         (VESSP): Likewise
15972         (VEE): Add overload support for vector extract exponent operation.
15973         (VEEDP): Likewise.
15974         (VEESP): Likewise.
15975         (VTDC): Add overload support for vector test data class operation.
15976         (VTDCDP): Likewise.
15977         (VTDCSP): Likewise.
15978         (VIE): Add overload support for vector insert exponent operation.
15979         (VIEDP): Likewise.
15980         (VIESP): Likewise.
15981         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15982         overloaded binary floating point functions.
15983         (altivec_resolve_overloaded_builtin): Improve error messages to
15984         distinguish between functions not supported in the current
15985         compiler configuration and functions that were invoked with an
15986         invalid parameter combination, and include the built-in function
15987         name in both error messages.
15988         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15989         New prototype.
15990         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15991         function.
15992         (rs6000_expand_binop_builtin): Add check to enforce that argument
15993         2 of the test data class operations is a 7-bit unsigned literal.
15994         (rs6000_invalid_builtin): Add code to issue an error message if a
15995         built-in function that requires the power9_vector and -m32
15996         command-line options is compiled without these options.
15997         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15998         (UNSPEC_VSX_SXSIGDP): New value.
15999         (UNSPEC_VSX_SXSIGPDP): New value.
16000         (UNSPEC_VSX_SIEXPDP): New value.
16001         (UNSPEC_VSX_SCMPEXPDP): New value.
16002         (UNSPEC_VSX_STSTDC): New value.
16003         (UNSPEC_VSX_VXEXP): New value.
16004         (UNSPEC_VSX_VXSIG): New value.
16005         (UNSPEC_VSX_VIEXP): New value.
16006         (UNSPEC_VSX_VTSTDC): New value.
16007         (xsxexpdp): New insn for scalar extract exponent.
16008         (xsxsigdp): New insn for scalar extract significand.
16009         (xsiexpdp): New insn for scalar insert exponent.
16010         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
16011         (*xscmpexpdp): New insn for scalar compare exponents.
16012         (xststdc<Fvsx): New expansion for both single- and
16013         double-precision scalar test data class operations.
16014         (xststdcneg<Fvsx>): New expansion for both single- and
16015         double-precision scalar test for negative value operations.
16016         (*xststdc<Fvsx>): New insn for scalar test data class
16017         operation.
16018         (xvxexp<VSs>): New insn for single- and double-precision
16019         vector extract exponent operation.
16020         (xvxsig<VSs>): New insn for single- and double-precision
16021         vector extract significand operation.
16022         (xviexp<VSs>): New insn for single- and double-precision
16023         vector insert exponent operation.
16024         (xvtstdc<VSs>): New insn for single- and double-precision
16025         vector test data class operation.
16026         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16027         built-in functions to represent the Power9 binary floating-point
16028         support instructions.
16030 2016-08-10  bin cheng  <bin.cheng@arm.com>
16032         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
16034 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
16035             Renlin Li  <renlin.li@arm.com>
16036             Bin Cheng  <bin.cheng@arm.com>
16038         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
16039         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
16040         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
16041         (aarch64_vcond_internal<mode><mode>): Delete pattern.
16042         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
16043         (vcond<v_cmp_result><mode>): Ditto.
16044         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
16045         (vcondu<mode><mode>): Ditto.
16046         (vcond<v_cmp_mixed><mode>): New pattern.
16047         (vcondu<mode><v_cmp_mixed>): New pattern.
16048         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
16049         of aarch64_vcond_internal.
16051 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
16052             Renlin Li  <renlin.li@arm.com>
16053             Bin Cheng  <bin.cheng@arm.com>
16055         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
16056         (vec_cmp<mode><v_cmp_result>): New pattern.
16057         (vec_cmpu<mode><mode>): New pattern.
16058         (vcond_mask_<mode><v_cmp_result>): New pattern.
16060 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
16062         PR tree-optimization/71734
16063         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
16064         REF_LOOP, invoke ref_indep_loop_p_1.
16065         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
16066         to ref_indep_loop_p.
16067         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
16068         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
16069         is inside LOOP, do not cache dpendence value for loops with
16070         non-zero SAFELEN.
16071         (ref_indep_loop_p_2): Delete function.
16072         (can_sm_ref_p): Pass LOOP as additional argument to
16073         ref_indep_loop_p.
16075 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16077         PR target/72853
16078         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
16079         being an offsettable address.
16081 2016-08-10  Martin Liska  <mliska@suse.cz>
16083         PR gcov-profile/58306
16084         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
16085         atomic variants of profile update functions.
16087 2016-08-10  Martin Liska  <mliska@suse.cz>
16089         Cherry picked (and modified) from google-4_7 branch
16090         2012-12-26  Rong Xu  <xur@google.com>
16091         * common.opt (fprofile-update): Add new flag.
16092         * coretypes.h: Define enum profile_update.
16093         * doc/invoke.texi: Document -fprofile-update.
16094         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
16095         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
16096         * tree-profile.c (gimple_init_edge_profiler): Generate
16097         also atomic profiler update.
16098         (gimple_gen_edge_profiler): Likewise.
16100 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
16102         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
16103         stack_usage_file to NULL after fclose calls.
16105 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16107         PR target/71873
16108         * reload.c (push_reload): Compute subreg_in_class for
16109         subregs of constants and plus expressions. Remove special
16110         handling of SYMBOL_REFs.
16112 2016-08-10  Alan Modra  <amodra@gmail.com>
16114         PR target/71680
16115         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
16116         SImode for TARGET_E500_DOUBLE when given SImode.
16118 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
16120         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
16121         unused variable __O.
16123 2016-08-09  Martin Liska  <mliska@suse.cz>
16125         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
16126         _gcov_reset to __gcov_reset.
16127         * doc/gcov-tool.texi: Fix typo.
16129 2016-08-09  Martin Liska  <mliska@suse.cz>
16131         * value-prof.c (gimple_divmod_values_to_profile): Do not
16132         instrument MOD histogram if a value is not a SSA name.
16134 2016-08-09  Martin Liska  <mliska@suse.cz>
16136         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
16137         values.
16139 2016-08-09  Renlin Li  <renlin.li@arm.com>
16141         PR middle-end/64971
16142         * calls.c (prepare_call_address): Convert funexp to Pmode when
16143         necessary.
16144         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
16145         (sibcall_value): Likewise.
16147 2016-08-09  Marek Polacek  <polacek@redhat.com>
16149         PR c/7652
16150         * cselib.c (cselib_expand_value_rtx_1): Add return.
16151         * gengtype.c (dbgprint_count_type_at): Likewise.
16152         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
16153         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
16155 2016-08-09  Martin Jambor  <mjambor@suse.cz>
16157         PR ipa/71981
16158         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
16159         if instance is a MEM_REF.
16161 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
16163         PR target/72843
16164         * config/i386/i386.md (*movtf_internal): Use
16165         lra_in_progress || reload_completed instead of !can_create_pseudo_p
16166         in the insn constraint.
16167         (*movxf_internal): Ditto.
16168         (*movdf_internal): Ditto.
16169         (*movsf_internal): Ditto.
16171 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
16173         PR tree-optimization/72772
16174         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16175         for expanded base.
16177 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
16179         PR tree-optimization/72772
16180         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
16181         parameter STOP.
16182         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
16183         parameter STOP and update calls.  Move expand_simple_operations
16184         function call from here...
16185         (simplify_using_initial_conditions): ...to here.  Delete parameter
16186         STOP.
16187         (tree_simplify_using_condition): Delete parameter STOP.
16188         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
16189         simplify_using_initial_conditions.
16191 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
16193         PR c/65345
16194         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
16195         Use create_tmp_var_raw instead of create_tmp_var.
16197 2016-08-09  Richard Biener  <rguenther@suse.de>
16199         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
16200         Treat same SSA names related.
16202 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
16204         PR tree-optimization/72824
16205         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
16206         real_zerop is not negative.
16208 2016-08-09  Richard Biener  <rguenther@suse.de>
16210         PR tree-optimization/71802
16211         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
16212         all merge opportunities with the predecessor.
16214 2016-08-09  Richard Biener  <rguenther@suse.de>
16216         PR ipa/68273
16217         * ipa-prop.c (ipa_modify_formal_parameters): Build
16218         parameter types with natural alignment also for the
16219         over-aligned case.
16221 2016-08-08  Andi Kleen  <ak@linux.intel.com>
16223         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
16225 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
16227         PR c/64955
16228         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
16229         do-nothing langhook.
16230         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
16231         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
16232         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
16233         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
16235 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
16237         PR bootstrap/72844
16238         * input.c: Ensure that HAVE_ICONV is defined.
16240 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
16242         PR middle-end/72781
16243         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
16244         private vars for lastprivate and for linear iterator.
16246         PR middle-end/68762
16247         * omp-simd-clone.c: Include varasm.h.
16248         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
16249         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
16250         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
16251         update function name.
16253 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16255         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
16256         (avr_diagnose_devicespecs_error): Remove.
16257         (avr_devicespecs_file): Remove composing absolute path for specfile
16258         and its verbose info. Remove conditions to check specs-file,
16260 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
16262         PR rtl-optimization/72821
16263         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
16264         just return false for them.
16266 2016-08-08  Alan Modra  <amodra@gmail.com>
16268         PR target/72771
16269         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
16270         toc refs created during reload.  Update function comment.
16272 2016-08-08  Alan Modra  <amodra@gmail.com>
16274         PR target/72802
16275         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
16276         alternatives.  Put loads first, then stores, and reg/reg moves
16277         within same class later.  Delete attr length.
16279 2016-08-08  Alan Modra  <amodra@gmail.com>
16281         PR target/72802
16282         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
16283         (mem_operand_ds_form): New predicate.
16284         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
16285         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
16286         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
16287         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
16288         (extendsfdf2_fpr): Replace o constraint with wY.
16290 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
16292         * tree-ssa-threadbackward.c: Include tree-inline.h
16293         (profitable_jump_thread_path): Use estimate_num_insns to estimate
16294         size of copied block; for cold paths reduce duplication.
16295         (find_jump_threads_backwards): Remove redundant tests.
16296         (pass_thread_jumps::gate): Enable for -Os.
16298 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
16300         PR c/72816
16301         * stor-layout.c (layout_decl): Fix up formatting.
16302         (relayout_decl): Allow DECL to be FIELD_DECL.
16304 2016-08-07  Alan Modra  <amodra@gmail.com>
16306         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
16308 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
16310         * data-streamer-in.c (streamer_read_wide_int): New.
16311         (streamer_read_widest_int): Renamed function.
16312         * data-streamer-out.c (streamer_write_wide_int): New
16313         (streamer_write_widest_int): Renamed function.
16314         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
16315         data-stream-in.c.
16316         (input_cfg): Call renamed function.
16317         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
16318         data-stream-out.c.
16319         (output_cfg): Call renamed function.
16320         * data-streamer.h: Add declarations.
16322 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16324         * tree-ssa-ccp.c (extend_mask): New param sgn.
16325         Remove ORing with wi::mask.
16326         (get_default_value): Adjust call to extend_mask to pass sign.
16327         (evaluate_stmt): Likewise.
16329 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
16331         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
16332         INT64_MAX.
16334 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16336         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
16337         transform if operand's type is pointer to function or method.
16339 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
16341         PR tree-optimization/18046
16342         * tree-ssa-threadedge.c: Include cfganal.h.
16343         (simplify_control_statement_condition): If simplifying a
16344         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
16345         with the dominating ASSERT_EXPR before handing it off to VRP.
16346         Mention that a CASE_LABEL_EXPR may be returned.
16347         (thread_around_empty_blocks): Adjust to handle
16348         simplify_control_statement_condition() returning a
16349         CASE_LABEL_EXPR.
16350         (thread_through_normal_block): Likewise.
16351         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
16352         a switch statement by trying to determine which case label
16353         will be taken.
16355 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
16357         PR rtl-optimization/69847
16358         * lra-constraints.c (process_invariant_for_inheritance): Save
16359         pattern instead of src.
16360         (remove_inheritance_pseudos): Use the pattern.  Add assert.
16362 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
16364         * input.c (string_concat::string_concat): New constructor.
16365         (string_concat_db::string_concat_db): New constructor.
16366         (string_concat_db::record_string_concatenation): New method.
16367         (string_concat_db::get_string_concatenation): New method.
16368         (string_concat_db::get_key_loc): New method.
16369         (class auto_cpp_string_vec): New class.
16370         (get_substring_ranges_for_loc): New function.
16371         (get_source_range_for_substring): New function.
16372         (get_num_source_ranges_for_substring): New function.
16373         (class selftest::lexer_test_options): New class.
16374         (struct selftest::lexer_test): New struct.
16375         (class selftest::ebcdic_execution_charset): New class.
16376         (selftest::ebcdic_execution_charset::s_singleton): New variable.
16377         (selftest::lexer_test::lexer_test): New constructor.
16378         (selftest::lexer_test::~lexer_test): New destructor.
16379         (selftest::lexer_test::get_token): New method.
16380         (selftest::assert_char_at_range): New function.
16381         (ASSERT_CHAR_AT_RANGE): New macro.
16382         (selftest::assert_num_substring_ranges): New function.
16383         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16384         (selftest::assert_has_no_substring_ranges): New function.
16385         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16386         (selftest::test_lexer_string_locations_simple): New function.
16387         (selftest::test_lexer_string_locations_ebcdic): New function.
16388         (selftest::test_lexer_string_locations_hex): New function.
16389         (selftest::test_lexer_string_locations_oct): New function.
16390         (selftest::test_lexer_string_locations_letter_escape_1): New function.
16391         (selftest::test_lexer_string_locations_letter_escape_2): New function.
16392         (selftest::test_lexer_string_locations_ucn4): New function.
16393         (selftest::test_lexer_string_locations_ucn8): New function.
16394         (selftest::uint32_from_big_endian): New function.
16395         (selftest::test_lexer_string_locations_wide_string): New function.
16396         (selftest::uint16_from_big_endian): New function.
16397         (selftest::test_lexer_string_locations_string16): New function.
16398         (selftest::test_lexer_string_locations_string32): New function.
16399         (selftest::test_lexer_string_locations_u8): New function.
16400         (selftest::test_lexer_string_locations_utf8_source): New function.
16401         (selftest::test_lexer_string_locations_concatenation_1): New
16402         function.
16403         (selftest::test_lexer_string_locations_concatenation_2): New
16404         function.
16405         (selftest::test_lexer_string_locations_concatenation_3): New
16406         function.
16407         (selftest::test_lexer_string_locations_macro): New function.
16408         (selftest::test_lexer_string_locations_stringified_macro_argument):
16409         New function.
16410         (selftest::test_lexer_string_locations_non_string): New function.
16411         (selftest::test_lexer_string_locations_long_line): New function.
16412         (selftest::test_lexer_char_constants): New function.
16413         (selftest::input_c_tests): Call the new test functions once per
16414         case within the line_table test matrix.
16415         * input.h (struct string_concat): New struct.
16416         (struct location_hash): New struct.
16417         (class string_concat_db): New class.
16418         * substring-locations.h: New header.
16420 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
16422         PR tree-optimization/72810
16423         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16424         the type of the case labels when truncating.
16426 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
16428         PR Target/72819
16429         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16430         (aarch64_fp16_ptr_type_node): Likewise.
16431         * config/aarch64/aarch64-simd-builtins.c
16432         (aarch64_fp16_ptr_type_node): Define.
16433         (aarch64_init_fp16_types): New, refactored out of...
16434         (aarch64_init_builtins): ...here, update to call
16435         aarch64_init_fp16_types.
16436         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16437         HFmode.
16438         (aapcs_vfp_sub_candidate): Likewise.
16440 2016-08-05  Martin Liska  <mliska@suse.cz>
16441             Joshua Cranmer  <Pidgeot18@gmail.com>
16443         * gcov.c (line_t::has_block): New function.
16444         (enum loop_type): New enum.
16445         (handle_cycle): New function.
16446         (unblock): Likewise.
16447         (circuit): Likewise.
16448         (get_cycles_count): Likewise.
16449         (accumulate_line_counts): Use new loop detection algorithm.
16451 2016-08-05  Martin Liska  <mliska@suse.cz>
16453         * gcov.c (output_intermediate_file): Rename
16454         function_info::line_next to next_file_fn.
16455         (process_file): Likewise.
16456         (read_graph_file): Likewise.
16457         (accumulate_line_counts): Likewise.
16458         (output_lines): Likewise.
16460 2016-08-05  Richard Biener  <rguenther@suse.de>
16462         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16463         restriction on threading to a loop header.
16465 2016-08-05  Richard Biener  <rguenther@suse.de>
16467         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16468         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16469         adjust loop info accordingly.
16471 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
16473         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16474         before folding call to __builtin_constant_p with parameters to false.
16476 2016-08-05  Alan Modra  <amodra@gmail.com>
16478         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16479         code accidentally committed 2016-05-02 providing class when given
16480         NO_REGS.
16482 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
16484         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16485         the case label ranges that partially overlap with OP's value
16486         range.
16488 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
16490         PR target/72805
16491         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16492         Cast builtin function result to __mmask16 instead of __mmask8.
16493         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16494         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16495         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16497 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
16499         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16500         (ASSERT_TRUE_AT): New macro.
16501         (ASSERT_FALSE): Reimplement in terms of...
16502         (ASSERT_FALSE_AT): New macro.
16503         (ASSERT_STREQ_AT): Fix typo in comment.
16505 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
16507         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16508         labels are exhaustive, designate the label with the widest
16509         range to be the default label.
16511 2016-08-04  Andrew Pinski  <apinski@cavium.com>
16513         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16514         (thunderx_tunings): Use thunderx_vector_cost instead of
16515         generic_vector_cost.
16517 2016-08-04  Martin Liska  <mliska@suse.cz>
16519         * gcov.c (main): Fix GNU coding style.
16520         (output_intermediate_file): Likewise.
16521         (process_file): Likewise.
16522         (generate_results): Likewise.
16523         (release_structures): Likewise.
16524         (create_file_names): Likewise.
16525         (find_source): Likewise.
16526         (read_graph_file): Likewise.
16527         (find_exception_blocks): Likewise.
16528         (canonicalize_name): Likewise.
16529         (make_gcov_file_name): Likewise.
16530         (mangle_name): Likewise.
16531         (accumulate_line_counts): Likewise.
16532         (output_branch_count): Likewise.
16533         (read_line): Likewise.
16535 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16537         PR rtl-optimization/71779
16538         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16539         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16540         or if it was truncated.
16542         PR rtl-optimization/70903
16543         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16545 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
16547         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16548         accessing SSA_NAME_PTR_INFO.
16550 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
16552         PR 70677
16553         * common/config/avr/avr-common.c (avr_option_optimization_table)
16554         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16556 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
16558         PR 55181
16559         * config/avr/avr.md: New pattern to work around do_store_flag
16560         generating shift instructions for bit extractions.
16562 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
16564         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16565         BITMAP_ALLOC.
16566         (add_equivalence): Likewise.
16567         (get_value_range): Allocate value range with vrp_value_range_pool.
16568         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16569         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16571 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
16573         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16574         the default for the rs6000 port.
16576 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16578         PR middle-end/71876
16579         * calls.c (special_function_p): Remove special handling of
16580         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16581         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
16582         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16584 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
16586         PR middle-end/72778
16587         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16588         Don't stop on regular insns.
16590 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
16592         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16593         size to DImode boundary.
16594         (nvptx_propagate): Likewise.
16596 2016-08-03  Alan Modra  <amodra@gmail.com>
16598         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16599         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16600         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16601         from -mefficient-unaligned-vector.  Note that this affects fp too.
16603 2016-08-03  Alan Modra  <amodra@gmail.com>
16605         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16606         cost more.
16608 2016-08-03  Alan Modra  <amodra@gmail.com>
16610         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16611         to a reg.  Localize vars.
16613 2016-08-03  Alan Modra  <amodra@gmail.com>
16615         * config/rs6000/rs6000.opt: Remove negatives from help strings
16616         and comments.
16618 2016-08-03  Alan Modra  <amodra@gmail.com>
16620         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16621         Delete duplicated code.
16623 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
16625         PR middle-end/72778
16626         * lra-spills.c (regno_in_use_p): New.
16627         (lra_final_code_change): Use it.
16629 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
16631         PR rtl-optimization/69847
16632         * lra-int.h (struct lra-reg): Use restore_rtx instead of
16633         restore_regno.
16634         (lra_rtx_hash): New.
16635         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16636         of restore_regno.
16637         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16638         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16639         * lra-spills.c (lra_final_code_change): Don't delete insn when the
16640         next insn is USE with the same reg as the current insn source.
16641         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16642         of restore_regno.
16643         (lra_constraints_init): Call initiate_invariants.
16644         (lra_constraints_finish): Call finish_invariants.
16645         (struct invariant, invariant_t, invariant_ptr_t): New.
16646         (const_invariant_ptr_t, invariants, invariants_pool): New.
16647         (invariant_table, invariant_hash, invariant_eq_p): New.
16648         (insert_invariant, initiate_invariants, finish_invariants): New.
16649         (clear_invariants, invalid_invariant_regs): New.
16650         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16651         instead of restore_regno.
16652         (invariant_p, process_invariant_for_inheritance): New.
16653         (inherit_in_ebb): Implement invariant inheritance.
16654         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16655         (remove_inheritance_pseudos): Implement undoing invariant
16656         inheritance.
16657         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16658         instead of restore_regno.
16659         * lra-assigns.c (regno_live_length): New.
16660         (reload_pseudo_compare_func): Use regno_live_length.
16661         (assign_by_spills): Use restore_rtx instead of restore_regno.
16662         (lra_assign): Ditto.  Initiate regno_live_length.
16664 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
16666         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16667         __builtin_aarch64_fmindf.
16669 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
16671         PR tree-optimization/34114
16672         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16673         information for more control IVs.
16675 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
16677         PR tree-optimization/34114
16678         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16679         PLUS_EXPR case.  Handle SSA_NAME case.
16681 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
16683         * config/aarch64/aarch64-simd-builtins.def
16684         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16685         (__builtin_aarch64_fmaxdf): Likewise.
16686         (__builtin_aarch64_smin_nandf): Likewise.
16687         (__builtin_aarch64_smax_nandf): Likewise.
16688         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16689         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16690         (<fmaxmin><mode>3): ...this.
16691         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16692         (vminnm_f64): Likewise.
16693         (vmin_f64): Likewise.
16694         (vmax_f64): Likewise.
16695         * config/aarch64/iterators.md (FMAXMIN): Merge with...
16696         (FMAXMIN_UNS): ...this.
16697         (fmaxmin): Merged with
16698         (fmaxmin_op): ...this...
16699         (maxmin_uns_op): ...in to this.
16701 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16703         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16704         Add support for vec_extract on vector float, vector int, vector
16705         short, and vector char vector types.
16706         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16707         vector float, vector int, vector short, and vector char
16708         optimizations on 64-bit ISA 2.07 systems for both constant and
16709         variable element numbers.
16710         (rs6000_split_vec_extract_var): Likewise.
16711         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16712         Altivec registers on ISA 2.07 and above.
16713         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16714         which never was matched due to the split occuring before register
16715         allocation (and the code would not have worked on little endian
16716         systems if it did match).  Allow extracts to go to the Altivec
16717         registers if ISA 2.07 (power8).  Change from using "" around the
16718         C++ code to using {}'s.
16719         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16720         vec_extracts when the vector is in memory.
16721         (vsx_extract_v4sf_var): New insn to optimize vector float
16722         vec_extracts when the element number is variable on 64-bit ISA
16723         2.07 systems.
16724         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16725         for 64-bit ISA 2.07 as well as ISA 3.0.
16726         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16727         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16728         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16729         optimize vector int, vector short, and vector char vec_extracts
16730         when the vector is in memory.
16731         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16732         optimize vector int, vector short, and vector char vec_extracts
16733         when the element number is variable.
16735 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
16737         PR target/71948
16738         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16739         does not overlap with other symbol flags.
16741 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
16743         * config/aarch64/aarch64.h (aarch64_frame):
16744         Remove padding0 and hardfp_offset.  Add locals_offset,
16745         initial_adjust, callee_adjust, callee_offset and final_adjust.
16746         * config/aarch64/aarch64.c (aarch64_layout_frame):
16747         Remove unused padding0 and hardfp_offset initializations.
16748         Choose frame layout and set frame variables accordingly.
16749         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16750         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16751         (aarch64_pop_regs): Likewise.
16752         (aarch64_expand_prologue): Remove all decision code, just emit
16753         prolog according to frame variables.
16754         (aarch64_expand_epilogue): Remove all decision code, just emit
16755         epilog according to frame variables.
16756         (aarch64_initial_elimination_offset): Use offset to local/arg area.
16758 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
16760         PR target/72748
16761         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16762         fix_debug_reg_uses after changing source register mode to
16763         V1TImode if source register is undefined.
16765 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
16767         PR tree-optimization/71818
16768         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16769         with non invariant evolutions
16771 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
16773         PR target/72767
16774         * config/avr/avr.md (length) [branch]: Correct insn length
16775         attribute for forward branches.
16777 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
16779         * doc/extend.texi (AVR Built-in Functions): Document
16780         __builtin_avr_nops.
16781         * config/avr/builtins.def (NOPS): New.
16782         * config/avr/avr.c (avr_expand_nops): New static function.
16783         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16785 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16787         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16788         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16789         addresses.
16791 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
16793         * config/aarch64/aarch64.c (vulcan_tunings): Update
16794         vulcan L1 cache_line_size.
16796 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
16798         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16799         function that takes a vector memory address, a hard register, an
16800         element number and a temporary base register, and recreates an
16801         address that points to the appropriate element within the vector.
16802         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16803         (rs6000_split_vec_extract_var): Add support for the target of a
16804         vec_extract with variable element number being a scalar memory
16805         location.
16806         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16807         swappable.
16808         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16809         vsx_extract_<mode>_load insn with a new insn that optimizes
16810         storing either element to a memory location, using scratch
16811         registers to pick apart the vector and reconstruct the address.
16812         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16813         (vsx_extract_<mode>_store): Rework alternatives to more correctly
16814         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
16815         store instruction.
16816         (vsx_extract_<mode>_var): Add support for extracting a variable
16817         element number from memory.
16819 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
16821         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16822         when testing for compares against constants of the form 0xabab.
16824 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
16826         PR tree-optimization/57558
16827         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16828         function.
16829         (vect_loop_versioning): Support versioning with niter assumptions.
16830         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16831         (vect_get_loop_niters): New parameter.  Reimplement to support
16832         assumptions in loop niter info.
16833         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16834         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16835         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16836         Support loop versioning for niters.
16837         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16838         (vect_free_loop_info_assumptions): New function.
16839         (vectorize_loops): Free loop niter info for loops with flag
16840         LOOP_F_ASSUMPTIONS set if vectorization failed.
16841         * tree-vectorizer.h (struct _loop_vec_info): New field
16842         num_iters_assumptions.
16843         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16844         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16845         (LOOP_REQUIRES_VERSIONING): New macro.
16846         (vect_free_loop_info_assumptions): New decl.
16848 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
16850         * cfgloop.h (struct loop): New field constraints.
16851         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16852         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16853         functions.
16854         * cfgloop.c (alloc_loop): Initialize new field.
16855         * cfgloopmanip.c (copy_loop_info): Copy constraints.
16856         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16857         Adjust niter analysis wrto loop constraints.
16858         * doc/loop.texi (@node Number of iterations): Add description for loop
16859         constraints.
16861 2016-07-29  Marek Polacek  <polacek@redhat.com>
16863         PR c/7652
16864         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16865         (ix86_expand_round_builtin): Likewise.
16867 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
16868             Georg-Johann Lay  <avr@gjlay.de>
16870         PR rtl-optimization/71976
16871         * combine.c (get_last_value): Return 0 if the argument for which
16872         the function is called has a wider mode than the recorded value.
16874 2016-07-29  Marek Polacek  <polacek@redhat.com>
16876         PR c/7652
16877         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16878         (altivec_expand_st_builtin): Likewise.
16880 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
16882         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16883         introduced in r238381.
16885 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
16887         PR middle-end/68217
16888         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16889         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16891 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
16893         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16894         New declaration.
16895         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16896         Add support for vec_extract of vector double or vector long having
16897         a variable element number on 64-bit ISA 2.07 systems or newer.
16898         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16899         Likewise.
16900         (rs6000_split_vec_extract_var): New function to split a
16901         vec_extract built-in function with variable element number.
16902         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16903         swappable.
16904         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16905         (UNSPEC_VSX_EXTRACT): Likewise.
16906         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16907         direct move instructions to be generated on 64-bit ISA 2.07
16908         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16909         instruction.
16910         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16911         arguments for vec_extract variable element.
16912         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16913         vec_extract with variable element on V2DFmode and V2DImode
16914         vectors.
16915         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16916         -mupper-regs-df requirement, since it isn't needed.
16917         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16918         do direct moves on 64-bit systems, which allows optimization of
16919         vec_extract on 64-bit ISA 2.07 systems and newer.
16921 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
16922 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
16924          * config/aarch64/aarch64.md
16925         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16926         statement and type.
16927         (<optab>qihi2_aarch64): Likewise, and split into two.
16928         (extendqihi2_aarch64): New.
16929         (zero_extendqihi2_aarch64): New.
16930         * config/aarch64/iterators.md (ldrxt): Remove.
16931         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16932         uxtb/uxth.
16934 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
16936         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16938 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
16940         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16941         (aarch64_push_reg): New function to push 1 or 2 registers.
16942         (aarch64_pop_reg): New function to pop 1 or 2 registers.
16943         (aarch64_expand_prologue): Use aarch64_push_regs.
16944         (aarch64_expand_epilogue): Use aarch64_pop_regs.
16946 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
16948         PR tree-optimization/71734
16949         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16950         attribute instead of REF_LOOP and use it.
16951         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16952         set it for Loops having non-zero safelen attribute.
16953         (ref_indep_loop_p): Pass zero as initial value for safelen.
16955 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
16957         PR middle-end/72657
16958         PR target/72683
16959         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16960         call using chkp_gimple_call_builtin_p.
16961         (chkp_copy_bounds_for_assign): Likewise.
16963 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16965         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16966         * config/arm/arm-protos.h (struct tune_params): Likewise.
16967         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16968         (cortex_a9_sched_adjust_cost): Likewise.
16969         (fa726te_sched_adjust_cost): Likewise.
16970         (arm_adjust_cost): Likewise.
16971         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16972         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16973         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16974         * config/i386/i386.c (ix86_adjust_cost): Likewise.
16975         * config/ia64/ia64.c: Likewise.
16976         * config/m68k/m68k.c: Likewise.
16977         * config/mep/mep.c (mep_adjust_cost): Likewise.
16978         * config/microblaze/microblaze.c (microblaze_adjust_cost):
16979         * Likewise.
16980         * config/mips/mips.c (mips_adjust_cost): Likewise.
16981         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16982         * Likewise.
16983         * config/pa/pa.c (pa_adjust_cost): Likewise.
16984         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16985         (rs6000_debug_adjust_cost): Likewise.
16986         * config/sh/sh.c (sh_adjust_cost): Likewise.
16987         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16988         (hypersparc_adjust_cost): Likewise.
16989         (sparc_adjust_cost): Likewise.
16990         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16991         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16992         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16993         * Likewise.
16994         * config/visium/visium.c (visium_adjust_cost): Likewise.
16995         * doc/tm.texi: Regenerate.
16996         * haifa-sched.c (dep_cost_1): Adjust.
16997         * target.def: Merge adjust_cost and adjust_cost_2.
16999 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17001         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
17003 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17005         * store-motion.c (struct st_expr): Make pattern_regs a vector.
17006         (extract_mentioned_regs): Append to a vector instead of
17007         returning a rtx_expr_list.
17008         (st_expr_entry): Adjust.
17009         (free_st_expr_entry): Likewise.
17010         (store_ops_ok): Likewise.
17011         (store_killed_in_insn): Likewise.
17012         (find_moveable_store): Likewise.
17014 2016-07-28  Martin Liska  <mliska@suse.cz>
17016         PR gcov-profile/68025
17017         * tree-profile.c (tree_profiling): Respect
17018         no_profile_instrument_function attribute.
17019         * doc/extend.texi: Document no_profile_instrument_function
17020         attribute.
17022 2016-07-28  Martin Liska  <mliska@suse.cz>
17024         PR rtl-optimization/70944
17025         * combine.c (make_compound_operation):
17026         Do not allow make_compound_operation for vector mode
17028 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
17030         PR middle-end/71994
17031         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
17032          before calling get_ops.
17034 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17036         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
17037         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
17038         (BITS_PER_UNIT_LOG): Remove.
17039         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
17040         * expr.c (expand_assignment): Likewise.
17041         * stor-layout.c (initialize_sizetypes): Likewise.
17043 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
17045         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
17046         signature of rs6000_expand_vector_extract so that the element
17047         number is a RTX instead of a constant integer.
17048         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
17049         Likewise.
17050         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
17051         (altivec_expand_vec_ext_builtin): Likewise.
17052         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
17053         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
17054         MFVSRLD instruction.
17056 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
17058         * input.c (get_pure_location): Move here from tree.c.
17059         (make_location): Likewise.  Add header comment.
17060         (selftest::test_accessing_ordinary_linemaps): Verify
17061         pure_location_p, make_location, get_location_from_adhoc_loc and
17062         get_range_from_loc.
17063         * input.h (get_pure_location): Move declaration here from tree.h.
17064         (get_finish): Likewise for inline function.
17065         (make_location): Likewise for declaration.
17066         * tree.c (get_pure_location): Move to input.c.
17067         (make_location): Likewise.
17068         * tree.h (get_pure_location): Move declaration to tree.h.
17069         (get_finish): Likewise for inline function.
17070         (make_location): Likewise for declaration.
17072 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17074         PR middle-end/71078
17075         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
17077 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
17079         * system.h (STATIC_ASSERT): Use static_assert if building
17080         with C++11 onwards.
17082 2016-07-27  Richard Biener  <rguenther@suse.de>
17084         PR tree-optimization/72517
17085         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
17086         Revert change to not compute read-read dependences.
17088 2016-07-27  Richard Biener  <rguenther@suse.de>
17090         * predict.c (set_even_probabilities): Make nedges unsigned.
17092 2016-07-27  Martin Liska  <mliska@suse.cz>
17094         * predict.c (set_even_probabilities): Handle unlikely edges.
17095         (combine_predictions_for_bb): Likewise.
17097 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17099         PR target/71869
17100         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
17101         __float128 support when we don't have hardware support, so that
17102         the IEEE built-in functions like isgreater, first call __unordkf3
17103         to make sure neither operand is a NaN, and if both operands are
17104         ordered, do the normal comparison.
17106 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
17108         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
17109         name.
17110         (extract_code_and_val_from_cond_with_ops): Verify that name is
17111         either cond_op0 or cond_op1.
17113 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
17115         PR tree-optimization/18046
17116         * genmodes.c (emit_mode_size_inline): Emit an assert that
17117         verifies that mode is a valid array index.
17118         (emit_mode_nuinits_inline): Likewise.
17119         (emit_mode_inner_inline): Likewise.
17120         (emit_mode_unit_size_inline): Likewise.
17121         (emit_mode_unit_precision_inline): Likewise.
17122         * tree-vrp.c: Include params.h.
17123         (find_switch_asserts): Register edge assertions for the default
17124         label which correspond to the anti-ranges of each case label.
17125         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
17126         * doc/invoke.texi: Document it.
17128 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17130         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
17131         and unnecessary call to gimple_bb.
17133 2016-07-26  Richard Biener  <rguenther@suse.de>
17135         PR rtl-optimization/71984
17136         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
17137         for VOIDmode.
17139 2016-07-26  Richard Biener  <rguenther@suse.de>
17141         PR middle-end/72517
17142         * expmed.c (extract_bit_field_1): Constrain the vector mode
17143         with element size matching the extraction mode size when
17144         choosing a better vector mode to do the extraction from.
17146 2016-07-26  Richard Biener  <rguenther@suse.de>
17147             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17149         PR middle-end/70920
17150         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
17151         pattern.
17153 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17155         * tree-ssa-structalias.c (struct scc_info): Change types of
17156         members to auto_sbitmap and auto_vec.
17157         (scc_info::scc_info): New constructor.
17158         (scc_info::~scc_info): New destructor.
17159         (init_scc_info): Remove.
17160         (free_scc_info): Remove.
17161         (find_indirect_cycles): Adjust.
17162         (perform_var_substitution): Likewise.
17163         (free_var_substitution_info): Likewise.
17165 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17167         * tree-outof-ssa.c (struct elim_graph): Change type of members
17168         to auto_vec and auto_sbitmap.
17169         (elim_graph::elim_graph): New constructor.
17170         (delete_elim_graph): Remove.
17171         (expand_phi_nodes): Adjust.
17173 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17175         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
17176         (new_elim_graph): Adjust.
17177         (clear_elim_graph): Likewise.
17178         (delete_elim_graph): Likewise.
17179         (elim_graph_size): Likewise.
17180         (elim_graph_add_node): Likewise.
17181         (elim_graph_add_edge): Likewise.
17182         (elim_graph_remove_succ_edge): Likewise.
17183         (eliminate_name): Likewise.
17184         (eliminate_build): Likewise.
17185         (elim_forward): Likewise.
17186         (elim_unvisited_predecessor): Likewise.
17187         (elim_backward): Likewise.
17188         (elim_create): Likewise.
17189         (eliminate_phi): Likewise.
17190         (expand_phi_nodes): Likewise.
17192 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17194         * bt-load.c (compute_out): Use auto_sbitmap class.
17195         (link_btr_uses): Likewise.
17196         * cfganal.c (mark_dfs_back_edges): Likewise.
17197         (post_order_compute): Likewise.
17198         (inverted_post_order_compute): Likewise.
17199         (pre_and_rev_post_order_compute_fn): Likewise.
17200         (single_pred_before_succ_order): Likewise.
17201         * cfgexpand.c (pass_expand::execute): Likewise.
17202         * cfgloop.c (verify_loop_structure): Likewise.
17203         * cfgloopmanip.c (fix_bb_placements): Likewise.
17204         (remove_path): Likewise.
17205         (update_dominators_in_loop): Likewise.
17206         * cfgrtl.c (break_superblocks): Likewise.
17207         * ddg.c (check_sccs): Likewise.
17208         (create_ddg_all_sccs): Likewise.
17209         * df-core.c (df_worklist_dataflow): Likewise.
17210         * dse.c (dse_step3): Likewise.
17211         * except.c (eh_region_outermost): Likewise.
17212         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17213         * gcse.c (prune_expressions): Likewise.
17214         (prune_insertions_deletions): Likewise.
17215         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
17216         * graph.c (draw_cfg_nodes_no_loops): Likewise.
17217         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
17218         * lcm.c (compute_earliest): Likewise.
17219         (compute_farthest): Likewise.
17220         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
17221         (unroll_loop_runtime_iterations): Likewise.
17222         (unroll_loop_stupid): Likewise.
17223         * lower-subreg.c (decompose_multiword_subregs): Likewise.
17224         * lra-lives.c: Likewise.
17225         * lra.c (lra): Likewise.
17226         * modulo-sched.c (schedule_reg_moves): Likewise.
17227         (optimize_sc): Likewise.
17228         (get_sched_window): Likewise.
17229         (sms_schedule_by_order): Likewise.
17230         (check_nodes_order): Likewise.
17231         (order_nodes_of_sccs): Likewise.
17232         (order_nodes_in_scc): Likewise.
17233         * recog.c (split_all_insns): Likewise.
17234         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
17235         * reload1.c (reload): Likewise.
17236         * sched-rgn.c (haifa_find_rgns): Likewise.
17237         (split_edges): Likewise.
17238         (compute_trg_info): Likewise.
17239         * sel-sched.c (init_seqno): Likewise.
17240         * store-motion.c (remove_reachable_equiv_notes): Likewise.
17241         * tree-into-ssa.c (update_ssa): Likewise.
17242         * tree-ssa-live.c (live_worklist): Likewise.
17243         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
17244         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
17245         * Likewise.
17246         (try_peel_loop): Likewise.
17247         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
17248         * Likewise.
17249         * tree-ssa-pre.c (compute_antic): Likewise.
17250         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
17251         * tree-stdarg.c (reachable_at_most_once): Likewise.
17252         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
17253         * var-tracking.c (vt_find_locations): Likewise.
17255 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17257         * sbitmap.h (auto_sbitmap): New class.
17259 2016-07-26  Alan Modra  <amodra@gmail.com>
17261         PR target/72103
17262         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
17263         sri->t_icode.
17265 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
17267         * input.c (selftest::temp_source_file::temp_source_file): Fix
17268         missing "%s" in fprintf.
17270 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
17272         PR middle-end/71732
17273         * cselib.c (cselib_process_insn): Invalidate argument slots for
17274         const/pure calls.
17276 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17278         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
17279         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
17280         vmulxh_lane_f16, vmulxh_laneq_f16): New.
17282 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17284         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17285         * config/aarch64/aarch64.md (fma, fnma): Support HF.
17286         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
17288 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17290         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17291         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
17292         New.
17293         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
17294         (add<mode>3): Likewise.
17295         (sub<mode>3): Likewise.
17296         (mul<mode>3): Likewise.
17297         (div<mode>3): Likewise.
17298         (*div<mode>3): Likewise.
17299         (<fmaxmin><mode>3): Extend to HF.
17300         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
17301         (fabd<mode>3): Likewise.
17302         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
17303         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
17304         (aarch64_fmulx<mode>): Likewise.
17305         (aarch64_fac<optab><mode>): Likewise.
17306         (aarch64_frecps<mode>): Likewise.
17307         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
17308         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
17309         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
17310         (VSDQ_HSDI): Support HI.
17311         (fcvt_target, FCVT_TARGET): Likewise.
17312         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
17313         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
17314         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
17315         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
17316         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
17317         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
17318         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
17319         vrsqrtsh_f16): New.
17321 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17323         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
17324         * config/aarch64/aarch64-builtins.c (hi_UP): New.
17325         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17326         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
17327         mode.
17328         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
17329         (aarch64_cm<optab><mode>): Likewise.
17330         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
17331         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
17332         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17333         (sqrt<mode>2): Likewise.
17334         (*sqrt<mode>2): Likewise.
17335         (abs<mode>2): Likewise.
17336         (<optab><mode>hf2): New pattern for HF mode.
17337         (<optab>hihf2): Likewise.
17338         * config/aarch64/arm_neon.h: Include arm_fp16.h.
17339         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
17340         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
17341         Support HF mode.
17342         * config/aarch64/arm_fp16.h: New file.
17343         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
17344         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
17345         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
17346         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
17347         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
17348         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
17349         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
17350         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
17351         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
17352         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
17353         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
17354         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
17355         vsqrth_f16): New.
17357 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17359         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
17360         reduc_smin_scal_): Use VDQIF_F16.
17361         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17362         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17363         Use VHSDF.
17364         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17365         * config/aarch64/iterators.md (VDQIF_F16): New.
17366         (vp): Support HF modes.
17367         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17368         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17370 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17372         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17373         "*aarch64_mulx_elt_from_dup<mode>".
17374         (*aarch64_mul3_elt<mode>): Update schedule type.
17375         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17376         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17377         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17378         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17379         (f, fp): Support HF modes.
17380         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17381         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17382         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17383         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17384         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17385         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17387 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17389         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17390         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17391         modes.
17392         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17393         vfmsq_f16): New.
17395 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17397         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17398         * config/aarch64/aarch64-simd.md
17399         (aarch64_rsqrts<mode>): Extend to HF modes.
17400         (fabd<mode>3): Likewise.
17401         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17402         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17403         (aarch64_<maxmin_uns>p<mode>): Likewise.
17404         (<su><maxmin><mode>3): Likewise.
17405         (<maxmin_uns><mode>3): Likewise.
17406         (<fmaxmin><mode>3): Likewise.
17407         (aarch64_faddp<mode>): Likewise.
17408         (aarch64_fmulx<mode>): Likewise.
17409         (aarch64_frecps<mode>): Likewise.
17410         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17411         (add<mode>3): Extend to HF modes.
17412         (sub<mode>3): Likewise.
17413         (mul<mode>3): Likewise.
17414         (div<mode>3): Likewise.
17415         (*div<mode>3): Likewise.
17416         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17417         HF, V4HF and V8HF.
17418         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17419         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17420         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17421         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17422         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17423         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17424         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17425         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17426         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17427         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17428         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17429         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17430         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17431         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17433 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17435         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17436         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17437         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17438         (neg<mode>2): Likewise.
17439         (abs<mode>2): Likewise.
17440         (<frint_pattern><mode>2): Likewise.
17441         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17442         (<optab><VDQF:mode><fcvt_target>2): Likewise.
17443         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17444         (ftrunc<VDQF:mode>2): Likewise.
17445         (<optab><fcvt_target><VDQF:mode>2): Likewise.
17446         (sqrt<mode>2): Likewise.
17447         (*sqrt<mode>2): Likewise.
17448         (aarch64_frecpe<mode>): Likewise.
17449         (aarch64_cm<optab><mode>): Likewise.
17450         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17451         HF, V4HF and V8HF.
17452         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17453         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17454         (stype): New.
17455         * config/aarch64/arm_neon.h (vdup_n_f16): New.
17456         (vdupq_n_f16): Likewise.
17457         (vld1_dup_f16): Use vdup_n_f16.
17458         (vld1q_dup_f16): Use vdupq_n_f16.
17459         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17460         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17461         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17462         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17463         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17464         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17465         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17466         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17467         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17468         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17469         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17470         vsqrt_f16, vsqrtq_f16): New.
17472 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17474         * config/aarch64/aarch64-simd.md
17475         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17476         (aarch64_ext<mode>): Likewise.
17477         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17478         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17479         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17480         and V8HFmode.
17481         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17482         float16x8_t.
17483         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17484         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17485         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17486         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17487         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17488         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17489         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17490         New.
17491         (vmov_n_f16): Reimplement using vdup_n_f16.
17492         (vmovq_n_f16): Reimplement using vdupq_n_f16..
17494 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17496         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17497         "frame_related_p".  Generate CFA annotation when it's necessary.
17498         (aarch64_expand_prologue): Use aarch64_add_constant.
17499         (aarch64_expand_epilogue): Likewise.
17500         (aarch64_output_mi_thunk): Pass "false" when calling
17501         aarch64_add_constant.
17503 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17505         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17506         sequences.
17508 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
17510         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17511         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17512         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17513         (aarch64_build_constant): Delete.
17515 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
17517         Revert
17518         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
17520         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17521         flag_toplevel_reorder.
17523 2016-07-25  Richard Biener  <rguenther@suse.de>
17525         * cgraph.c (cgraph_node::verify_node): Compare against builtin
17526         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17527         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17528         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17529         (streamer_get_builtin_tree): Likewise.
17530         (streamer_write_builtin): Likewise.
17531         * lto-streamer.h (LTO_builtin_decl): Remove.
17532         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17533         (lto_input_scc): Remove LTO_builtin_decl handling.
17534         (lto_input_tree_1): Liekwise.
17535         * lto-streamer-out.c (lto_output_tree_1): Remove special
17536         handling of builtins.
17537         (DFS::DFS): Likewise.
17538         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17539         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17540         assert.
17541         (streamer_write_builtin): Remove.
17543 2016-07-25  Martin Liska  <mliska@suse.cz>
17545         * lto-cgraph.c (input_symtab): Don't call get_working_sets
17546         if flag_auto_profile is set to true.
17548 2016-07-25  Martin Liska  <mliska@suse.cz>
17550         PR gcov-profile/71868
17551         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17552         have a function with multiple latches, count them all.
17554 2016-07-25  Martin Liska  <mliska@suse.cz>
17556         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17558 2016-07-25  Martin Liska  <mliska@suse.cz>
17560         PR tree-optimization/71987
17561         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17562         just for SSA_NAMEs. Fix GNU coding style.
17564 2016-07-25  Martin Liska  <mliska@suse.cz>
17566         PR gcov-profile/64874
17567         * gcov-io.h: Update command about file format.
17568         * gcov-iov.c (main): Adapt the numbering scheme.
17570 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
17572         PR middle-end/66726
17573         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17574         whose result is used in PHI.
17575         (final_range_test_p): Likewise.
17576         (maybe_optimize_range_tests): Likewise.
17578 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
17580         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17581         Reformat two multi-line strings.
17583 2016-07-22  Martin Sebor  <msebor@redhat.com>
17585         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17587 2016-07-22  Martin Sebor  <msebor@redhat.com>
17589         PR c/71560
17590         * doc/extend.texi (Compound Literals): Correct and clarify.
17591         (Cast to Union): Same.
17593 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17595         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17596         comments to explain why certain error messages make mention of
17597         undocumented options.
17598         (rs6000_invalid_builtin): Change error messages to replace mention
17599         of undocumented options with mention of the -mcpu=power9 option
17600         that enables those undocumented options.
17601         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17602         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17603         definition of this macro to correct an existing error.
17604         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17605         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17606         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17607         descriptions of built-in functions so that they depend on
17608         -mcpu=power9 instead of on the corresponding undocumented flags.
17609         * doc/invoke.texi (Option Summary):  Remove all mention of newly
17610         undocumented flags.
17611         (IBM RS/6000 and PowerPC Options): Likewise.
17612         * doc/md.texi (Constraints for Particuliar Machines): Remove all
17613         mention of newly undocumented flags.
17615 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
17617         * ipa-cp.c (determine_versionability): Do not create constprop clones,
17618         when target_clones attribute is set.
17620 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
17622         * common.opt (funsafe-loop-optimizations): Mark ignore.
17623         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17624         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17625         related code.
17626         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17627         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17629 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
17631         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17632         Parameter.
17633         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17634         Parameter.
17635         (number_of_iterations_exit): Warn missed loop optimization for
17636         possible infinite loops.
17638 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
17640         PR target/71216
17641         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17642         when to emit a ".machine" pseudo-op.
17644 2016-07-22  Martin Liska  <mliska@suse.cz>
17646         PR gcov-profile/69028
17647         PR gcov-profile/62047
17648         * coverage.c (coverage_compute_lineno_checksum): Do not
17649         calculate checksum for fns w/o xloc.file.
17650         (coverage_compute_profile_id): Likewise.
17652 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
17654         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17655         (avr_secondary_reload): ...and implementation.
17656         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17657         * config/avr/avr.md (reload_in<mode>): Remove insns.
17658         (adjust_len) [lpm]: Remove insn attribute value.
17659         * config/avr/predicates.md (flash_operand): Remove insn predicate.
17661 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17663         PR middle-end/71876
17664         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17665         attribute.
17666         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17667         * calls.c (special_function_p): Remove the special handling of the
17668         "__builtin_" prefix.
17670 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17672         PR middle-end/71876
17673         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
17674         if STMT may be an alloca call.
17675         (gimple_alloca_call_p, alloca_call_p): Return only true for the
17676         builtin alloca call.
17677         * calls.h (gimple_maybe_alloca_call_p): New function.
17678         * tree-inline.c (inline_forbidden_p_stmt): Use
17679         gimple_maybe_alloca_call_p here.
17681 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
17683         * spellcheck-tree.c (best_macro_match::best_macro_match):
17684         Explictly specify the template arguments when invoking the base
17685         class constructor, to help older C++ compilers.
17687 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
17689         PR sanitizer/71953
17690         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17691         before builtin_decl_implicit.
17693 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
17695         * optabs.c (emit_condiitonal_move): Short circuit for identical
17696         sources.
17698 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
17700         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17701         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
17702         (noce_conversion_profitable_p): New.
17703         (noce_try_store_flag_constants): Use it.
17704         (noce_try_addcc): Likewise.
17705         (noce_try_store_flag_mask): Likewise.
17706         (noce_try_cmove): Likewise.
17707         (noce_try_cmove_arith): Likewise.
17708         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17709         overwriting it.
17710         (noce_convert_multiple_sets): Move cost model to here, from...
17711         (bb_ok_for_noce_convert_multiple_sets) ...here.
17712         (noce_process_if_block): Update calls for above changes.
17713         (noce_find_if_block): Record new noce_if_info parameters.
17715 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
17717         * target.def (max_noce_ifcvt_seq_cost): New.
17718         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17719         * doc/tm.texi: Regenerate.
17720         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17721         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17722         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17723         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17724         * doc/invoke.texi: Document new params.
17726 2016-07-21  Richard Biener  <rguenther@suse.de>
17728         PR tree-optimization/71947
17729         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17730         ranges have useful limit_vr information.
17732 2016-07-21  Richard Biener  <rguenther@suse.de>
17734         * function-tests.c (build_trivial_generic_function): Set
17735         BLOCK_SUPERCONTEXT of DECL_INITIAL.
17736         * omp-low.c (create_omp_child_function): Likewise.
17737         (grid_expand_target_grid_body): Likewise.
17738         * cgraphunit.c (init_lowered_empty_function): Likewise.
17739         (cgraph_node::expand_thunk): Likewise.
17740         * tree-parloops.c (create_loop_fn): Likewise.
17741         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17743 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17745         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17746         in comment.
17748 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
17750         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17751         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17752         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17753         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17754         values for insn attribute.
17755         * config/avr/avr.c (avr_out_insert_notbit): New function.
17756         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17757         ADJUST_LEN_INSV_NOTBIT_0/_7.
17758         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17760 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
17762         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
17763         (chrec_convert_1, chrec_convert): Ditto.
17764         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17765         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17766         * tree-vrp.c (adjust_range_with_scev): Ditto.
17767         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17768         (scev_var_range_cant_overflow): New function.
17769         (scev_probably_wraps_p): New parameter.  Call above function.
17770         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17772 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
17774         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17775         by removing computation of may_be_zero.
17777 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
17779         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17781 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
17783         Improving concepts performance and diagnostics.
17784         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17785         for constraint satisfaction and subsumption.
17786         * timevar.h (auto_timevar): New constructor that matches the push/pop
17787         pattern of usage in pt.c.
17789 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
17791         * hwint.h (HOST_WIDE_INT_0): New define.
17792         (HOST_WIDE_INT_0U): Ditto.
17793         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17794         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17795         * simplify-rtx.c: Ditto.
17796         * tree-object-size.c: Ditto.
17798 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17800         * config/s390/s390.c (s390_encode_section_info): Remove mode size
17801         check.
17803 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
17805         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17806         * combine.c: Use HOST_WIDE_INT_M1U instead of
17807         ~(unsigned HOST_WIDE_INT) 0.
17808         * double-int.h: Ditto.
17809         * dse.c: Ditto.
17810         * dwarf2asm.c:Ditto.
17811         * expmed.c: Ditto.
17812         * genmodes.c: Ditto.
17813         * match.pd: Ditto.
17814         * read-rtl.c: Ditto.
17815         * tree-ssa-loop-ivopts.c: Ditto.
17816         * tree-ssa-loop-prefetch.c: Ditto.
17817         * tree-vect-generic.c: Ditto.
17818         * tree-vect-patterns.c: Ditto.
17819         * tree.c: Ditto.
17821 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
17823         * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17824         constant addresses outside [0,0xc0] into a register.
17825         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
17826         cases where the base address register is unused after.
17827         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17828         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17829         (avr_out_store_psi_reg_disp_tiny): Same.
17831 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
17833         Implement attribute progmem on reduced Tiny cores by adding
17834         flash offset 0x4000 to respective symbols.
17836         PR target/71948
17837         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17838         documentation how it works on reduced Tiny cores.
17839         (AVR Named Address Spaces): No support for reduced Tiny.
17840         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17841         (avr_address_tiny_pm_p): New static function.
17842         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17843         if the address is in progmem.
17844         (avr_assemble_integer): Same.
17845         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17846         for symbol_ref in progmem.
17847         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17848         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17849         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17851 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
17853         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
17854         * configure: Regenerate.
17855         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17856         (USE_THIN_ARCHIVES): New variable.
17857         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17858         this archive as a thin archive.
17860 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
17862         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17863         same location as last time, don't skip if we have fix-it hints.
17864         Clarify the skipping logic by converting it from one "if" clause
17865         to repeated "if" clauses.
17866         * spellcheck-tree.c: Include "cpplib.h".
17867         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17868         (best_macro_match::best_macro_match): New constructor.
17869         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17870         Move here from c/c-decl.c.
17871         (class best_macro_match): Move here from c/c-decl.c, converting
17872         from a typedef to a subclass, gaining a ctor.
17874 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
17876         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17877         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17878         define...
17879         (avr_addr_space_diagnose_usage): ...and implementation.
17880         (avr_addr_space_supported_p): New function.
17881         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17882         report bad address space usage if that space is supported.
17883         (avr_insert_attributes): Same.  No more complain about unsupported
17884         address spaces.
17885         * config/avr/avr-c.c (tm_p.h): Include it.
17886         (avr_cpu_cpp_builtins): Only define addr-space related built-in
17887         macro if avr_addr_space_supported_p.
17889 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
17891         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17892         flag_toplevel_reorder.
17894 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
17896         * gcc-rich-location.c
17897         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17898         a const char *.
17899         * gcc-rich-location.h
17900         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17902 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
17904         * target.def (addr_space): Add new diagnose_usage to hook vector.
17905         * targhooks.c (default_addr_space_diagnose_usage): Add default
17906         implementation and...
17907         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17908         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17909         is some address space, call targetm.addr_space.diagnose_usage.
17910         * doc/tm.texi.in (Named Address Spaces): Add anchor for
17911         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17912         * doc/tm.texi: Regenerate.
17914 2016-07-20  Martin Liska  <mliska@suse.cz>
17916         PR middle-end/71898
17917         * graphite-isl-ast-to-gimple.c (later_of_the_two):
17918         Properly handly PHI stmts.
17920 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
17922         PR tree-optimization/71503
17923         PR tree-optimization/71683
17924         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17925         and break.
17927 2016-07-20  Martin Liska  <mliska@suse.cz>
17929         * doc/invoke.texi (-fipa-ra): Document when the option is
17930         disabled. Fix a typo.
17932 2016-07-20  Martin Liska  <mliska@suse.cz>
17934         * Makefile.in: Include fibonacci_heap.c
17935         * fibonacci_heap.c: New file.
17936         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17937         (fibonacci_heap::union_with): Fix deletion of the second heap.
17938         * selftest-run-tests.c (selftest::run_tests): Incorporate
17939         fibonacci heap tests.
17940         * selftest.h: Declare fibonacci_heap_c_tests.
17942 2016-07-20  Martin Liska  <mliska@suse.cz>
17944         * selftest-run-tests.c (selftest::run_tests): New function.
17945         * selftest.h (sreal_c_tests): Declare.
17946         * sreal.c (sreal_verify_basics): New function.
17947         (verify_aritmetics): Likewise.
17948         (sreal_verify_arithmetics): Likewise.
17949         (verify_shifting): Likewise.
17950         (sreal_verify_shifting): Likewise.
17951         (void sreal_c_tests): Likewise.
17953 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
17955         PR rtl-optimization/71916
17956         * cfgrtl.c (contains_no_active_insn_p): Return false also for
17957         bb which have a single succ fake edge.
17959 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
17961         PR debug/71855
17962         * dwarf2out.c (gen_subprogram_die): Only call
17963         gen_unspecified_parameters_die while dumping early dwarf.
17965 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
17967         PR middle-end/71874
17968         * gimple-fold.c (fold_builtin_memory_op): Use
17969         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17971 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
17973         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17974         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17975         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17976         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17977         * combine.c: Ditto.
17978         * cse.c: Ditto.
17979         * dojump.c: Ditto.
17980         * double-int.c: Ditto.
17981         * dse.c: Ditto.
17982         * dwarf2out.c: Ditto.
17983         * expmed.c: Ditto.
17984         * expr.c: Ditto.
17985         * fold-const.c: Ditto.
17986         * function.c: Ditto.
17987         * fwprop.c: Ditto.
17988         * genmodes.c: Ditto.
17989         * hwint.c: Ditto.
17990         * hwint.h: Ditto.
17991         * ifcvt.c: Ditto.
17992         * loop-doloop.c: Ditto.
17993         * loop-invariant.c: Ditto.
17994         * loop-iv.c: Ditto.
17995         * match.pd: Ditto.
17996         * optabs.c: Ditto.
17997         * real.c: Ditto.
17998         * reload.c: Ditto.
17999         * rtlanal.c: Ditto.
18000         * simplify-rtx.c: Ditto.
18001         * stor-layout.c: Ditto.
18002         * toplev.c: Ditto.
18003         * tree-ssa-loop-ivopts.c: Ditto.
18004         * tree-vect-generic.c: Ditto.
18005         * tree-vect-patterns.c: Ditto.
18006         * tree.c: Ditto.
18007         * tree.h: Ditto.
18008         * ubsan.c: Ditto.
18009         * varasm.c: Ditto.
18010         * wide-int-print.cc: Ditto.
18011         * wide-int.cc: Ditto.
18012         * wide-int.h: Ditto.
18014 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
18016         * selftest.c (selftest::assert_streq): Handle NULL values of
18017         val_actual and val_expected.
18019 2016-07-19  Martin Jambor  <mjambor@suse.cz>
18021         PR fortran/71688
18022         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
18023         rather than cgraph_create_node to get a call graph node.
18025 2016-07-19  Richard Biener  <rguenther@suse.de>
18027         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
18028         handle all tcc_constant bases and valueize SSA names.
18029         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
18030         tcc_constant bases.
18032 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
18034         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
18035         the flags of the exit block and bb2, not just the entry block.
18037 2016-07-19  Richard Biener  <rguenther@suse.de>
18039         PR tree-optimization/71901
18040         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
18041         align member, group stuff with the bitfield.
18042         (vn_ref_op_align_unit): New inline.
18043         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
18044         record element alignment and operand 3 unchanged.
18045         (ao_ref_init_from_vn_reference): Adjust.
18046         (valueize_refs_1): Likewise.
18047         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18049 2016-07-19  Richard Biener  <rguenther@suse.de>
18051         PR tree-optimization/71908
18052         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
18053         symbolic constants in a more reliable way.
18055 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
18057         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
18058         comment.
18059         (vect_update_inits_of_drs): Likewise.
18060         (vect_create_cond_for_alias_checks): Likewise.
18061         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
18063 2016-07-19  Richard Biener  <rguenther@suse.de>
18065         PR lto/71907
18066         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
18067         with an abstract origin that is not an inlined function outer
18068         scope add a self-reference as abstract origin.
18069         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
18071 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
18073         PR target/71493
18074         * config/rs6000/rs6000.c (rs6000_function_value): Fix
18075         unintentional System V.4 structure return breakage for structures
18076         with a single floating point element.
18078 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18080         PR tree-optimization/71734
18081         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
18082         contains REF, use it to check safelen, assume that safelen value
18083         must be greater 1, fix style.
18084         (ref_indep_loop_p_2): Add REF_LOOP argument.
18085         (ref_indep_loop_p): Pass LOOP as additional argument to
18086         ref_indep_loop_p_2.
18088 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18090         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
18091         allocation in the prologue.
18092         * explow.c (get_dynamic_stack_base): New function to return an address
18093         expression for the dynamic stack base.
18094         (get_dynamic_stack_size): New function to do the required dynamic stack
18095         space size calculations.
18096         (allocate_dynamic_stack_space): Use new functions.
18097         (align_dynamic_address): Move some code from
18098         allocate_dynamic_stack_space to new function.
18099         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
18101 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18103         * config/s390/s390.c (s390_encode_section_info): Always set
18104         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
18105         found.
18107 2016-07-18  Richard Biener  <rguenther@suse.de>
18109         PR tree-optimization/71893
18110         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
18111         for sizetype cast added by array_ref_element_size.
18112         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18114 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
18116         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
18117         register parameters.  Remove code to initialize argument pointer
18118         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
18119         using a pc-relative branch.  Cleanup conditional code.
18120         * config/pa/pa.md (call_mcount): New expander.
18121         (call_mcount_nonpic): New insn.
18122         (call_mcount_pic): New insn and split.
18123         (call_mcount_pic_post_reload): New insn.
18124         (call_mcount_64bit): New insn and split.
18125         (call_mcount_64bit_post_reload): New insn.
18127 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
18129         * config/avr/predicates.md (const_m255_to_m1_operand): New.
18130         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
18131         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
18132         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
18133         (*usum_widenqihi3, *udiff_widenqihi3)
18134         (*addhi3_zero_extend.const): New combiner insns.
18135         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
18136         just 1 bit is affected.
18137         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
18138         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
18140 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
18142         * omp-low.c (lower_omp_target): Mark data clauses with
18143         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
18144         zero-length subarrays.
18146 2016-07-15  Richard Biener  <rguenther@suse.de>
18148         PR tree-optimization/71881
18149         * tree-loop-distribution.c (destroy_loop): Remove blocks in
18150         reverse DOM order to make debug temp generation happy.
18152 2016-07-15  Richard Biener  <rguenther@suse.de>
18154         PR tree-optimization/71887
18155         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
18156         verify it is not zero for division / modulo handling.
18157         (value_replacement): Adjust.
18159 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
18160             Julian Brown  <julian@codesourcery.com>
18162         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
18163         * config/aarch64/aarch64-cost-tables.h
18164         (vulcan_extra_costs): New variable.
18165         * config/aarch64/aarch64.c
18166         (vulcan_addrcost_table): Likewise.
18167         (vulcan_regmove_cost): Likewise.
18168         (vulcan_vector_cost): Likewise.
18169         (vulcan_branch_cost): Likewise.
18170         (vulcan_tunings): Likewise.
18172 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
18174         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
18175         (output_in_order): Loop over undefined variables too.  Output them
18176         via assemble_undefined_decl.  Skip variables that correspond to hard
18177         registers or have value-exprs.
18178         * varpool.c (symbol_table::output_variables): Handle undefined
18179         variables together with defined ones.
18181 2016-07-15  Richard Biener  <rguenther@suse.de>
18183         * tree-ssa-pre.c (get_representative_for): Make sure to return
18184         the value number of SSA names.
18185         (phi_translate_1): get_representative_for cannot return NULL.
18186         (do_pre_regular_insertion): Remove redundant call to
18187         fully_constant_expression.
18188         (do_pre_partial_partial_insertion): Likewise.
18190 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
18192         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
18193         (derive_simple_iv_with_niters): New function.
18194         (simple_iv): Rewrite using simple_iv_with_niters.
18195         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
18196         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
18197         function.
18198         (number_of_iterations_exit): Rewrite using above function.
18199         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
18200         Decl.
18202 2016-07-15  Richard Biener  <rguenther@suse.de>
18204         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
18205         vec_construct cost.
18207 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
18209         PR tree-optimization/71872
18210         * tree-data-ref.c (get_references_in_stmt): Ignore references
18211         with is_gimple_constant get_base_address.
18213 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18215         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
18216         (TARGET_HAVE_LDACQD): New macro.
18217         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
18218         than TARGET_HAVE_LDACQ.
18219         (arm_load_acquire_exclusivedi): Likewise.
18220         (arm_store_release_exclusivedi): Likewise.
18222 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18224         PR rtl-optimization/71878
18225         * lra-constraints.c (match_reload): Pass information about other
18226         output operands.  Create new unique register value if matching input
18227         operand shares same register value as output operand being considered.
18228         (curr_insn_transform): Record output operands already processed.
18230 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18232         PR target/65951
18233         PR tree-optimization/70923
18234         * tree-vect-patterns.c: Include mult-synthesis.h.
18235         (target_supports_mult_synth_alg): New function.
18236         (synth_lshift_by_additions): Likewise.
18237         (apply_binop_and_append_stmt): Likewise.
18238         (vect_synth_mult_by_constant): Likewise.
18239         (target_has_vecop_for_code): Likewise.
18240         (vect_recog_mult_pattern): Use above functions to synthesize vector
18241         multiplication by integer constants.
18243 2016-07-14  Alan Modra  <amodra@gmail.com>
18245         * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
18246         gpr alternatives.  Correct '*' placement on Y,r alternative.
18247         Add '*' on operand 1 of r,r alternative.
18249 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18251         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
18252         * expmed.h: ... Here.
18254 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
18256         * gimple.h (stmt_can_terminate_bb_p): New function.
18257         * tree-cfg.c (need_fake_edge_p): Rename to ...
18258         (stmt_can_terminate_bb_p): ... this; return true if stmt can
18259         throw external; handle const and pure calls.
18260         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
18262 2016-07-14  Richard Biener  <rguenther@suse.de>
18264         PR tree-optimization/71866
18265         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
18266         (do_hoist_insertion): Avoid endless recursion when we
18267         didn't insert anything because we managed to simplify
18268         things down to a constant or SSA name.
18269         (fully_constant_expression): Re-write in terms of ...
18270         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
18271         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
18272         vn_nary_build_or_lookup_1.
18273         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
18274         (vn_nary_build_or_lookup): ... this which now wraps it.
18276 2016-07-14  Alan Modra  <amodra@gmail.com>
18278         PR target/71733
18279         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
18280         with p9_vector override before power9-dform override.
18282 2016-07-13  Andi Kleen  <ak@linux.intel.com>
18284         * value-prof.c (gimple_value_profile_transformations): Don't run
18285         when auto_profile is on.
18287 2016-07-13  Andi Kleen  <ak@linux.intel.com>
18289         * auto-profile.c (update_inlined_ind_target,
18290         afdo_indirect_call): Print information to dump file.
18292 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
18294         * genrecog.c (special_predicate_operand_p): New function.
18295         (predicate_name): Move function.
18296         (validate_pattern): Don't warn about missing mode for all
18297         define_special_predicate predicates.
18299 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
18301         * tree-vect-data-refs.c (vect_no_alias_p): New function.
18302         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
18303         resolve alias checks which are known at compilation time.
18304         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
18305         alias checks are resolved.  Move dump info for too many runtime
18306         alias checks to here...
18307         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
18309 2016-07-13  Richard Biener  <rguenther@suse.de>
18311         PR tree-optimization/24574
18312         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
18313         position and add shift, rotate, divison and modulo support
18314         for left zero.
18315         (value_replacement): Pass in argument position to absorbing_element_p.
18317 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18319         PR ipa/71633
18320         * ipa-inline-transform.c (inline_call): Support
18321         instrumented thunks.
18323 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18325         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
18326         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
18327         divide feature.
18328         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
18329         Baseline.  Make initial alternative TARGET_32BIT only.
18330         (udivsi3): Likewise.
18331         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
18332         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
18333         target.
18335 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18337         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
18338         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
18339         availability with TARGET_HAVE_MOVT.
18340         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
18341         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
18342         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
18343         UINTVAL.
18344         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
18345         extra instruction if MOVW is available.  Use a cost variable
18346         incremented by COSTS_N_INSNS (1) when the condition match rather than
18347         returning an arithmetic expression based on COSTS_N_INSNS.  Make
18348         constant with bottom half word zero cost 2 instruction if MOVW is
18349         available.
18350         * config/arm/arm.md (define_attr "arch"): Add v8mb.
18351         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18352         target is ARMv8-M Baseline.
18353         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
18354         (arm_movtas_ze): Likewise.
18355         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
18356         alternative for constants satisfying j constraint.
18357         (thumb1_movsi_insn): Likewise.
18358         (movsi splitter for K alternative): Tighten condition to not trigger
18359         if movt is available and j constraint is satisfied.
18360         (Pe immediate splitter): Likewise.
18361         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18362         constant fitting in an halfword to use MOVW.
18363         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18364         effective target.
18366 2016-07-13  Richard Biener  <rguenther@suse.de>
18368         PR middle-end/71104
18369         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18370         gimplifying the LHS.  Make sure to gimplify a returning twice
18371         call LHS without using SSA names.
18373 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18375         * tree-data-ref.c (find_data_references_in_stmt): Remove
18376         unnecessary call to vec::release.
18377         (graphite_find_data_references_in_stmt): Likewise.
18378         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18379         * tree-vect-stmts.c (vectorizable_condition): Likewise.
18381 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18383         * cfgexpand.c (expand_used_vars): Make the type of a local
18384         variable auto_vec.
18385         * genmatch.c (lower_for): Likewise.
18386         * haifa-sched.c (haifa_sched_init): Likewise.
18387         (add_to_speculative_block): Likewise.
18388         (create_check_block_twin): Likewise.
18389         * predict.c (handle_missing_profiles): Likewise.
18390         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18391         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18392         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18393         Likewise.
18394         (maybe_lower_iteration_bound): Likewise.
18395         * tree-ssa-sccvn.c (DFS): Likewise.
18396         * tree-stdarg.c (reachable_at_most_once): Likewise.
18397         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18398         (vectorizable_store): Likewise.
18400 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18402         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18403         (sccvn_dom_walker): make cond_stack an auto_vec.
18405 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18407         * ree.c (struct ext_state): Make type of members auto_vec.
18408         (find_and_remove_re): Adjust.
18410 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18412         * cfgexpand.c (struct stack_vars_data): Make type of fields
18413         auto_vec.
18414         (expand_used_vars): Adjust.
18416 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18418         * ipa.c (record_cdtor_fn): Adjust.
18419         (build_cdtor_fns): Likewise.
18420         (ipa_cdtor_merge): Make static_ctors and static_dtors local
18421         variables.
18423 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18425         * genextract.c (struct accum_extract): Add constructor and make
18426         members auto_vec.
18427         (gen_insn): Adjust.
18429 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18431         * tree.c (struct free_lang_data_d): Add constructor and change
18432         types of members to ones that automatically manage resources.
18433         (fld_worklist_push): Adjust.
18434         (find_decls_types): Likewise.
18435         (find_decls_types_in_eh_region): Likewise.
18436         (free_lang_data_in_cgraph): Stop manually creating and
18437         destroying members of free_lang_data_d.
18439 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
18441         PR rtl-optimization/68961
18442         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18443         peephole variant.  Use sse_reg_operand predicates.
18445 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
18447         * config/i386/predicates.md (x86_64_immediate_operand)
18448         <case CONST_INT>: Remove unneeded truncation to DImode.
18449         <case CONST>: Ditto.
18450         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18452 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18454         PR target/71805
18455         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18456         The xxperm and xxpermr instructions require that the 2nd input
18457         operand overlap with the output operand, and not the 1st.
18458         (altivec_vperm_v8hiv16qi): Likewise.
18459         (altivec_vperm_<mode>_uns_internal): Likewise.
18460         (altivec_vpermr_<mode>_internal): Likewise.
18461         (vperm_v8hiv4si): Likewise.
18462         (vperm_v16qiv8hi): Likewise.
18464 2016-07-12  Nathan Sidwell  <nathan@acm.org>
18466         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18467         when -mno-pic-data-is-text-relative is in effect, by default.
18468         * doc/invoke.texi (mpic-data-is-text-relative): Document new
18469         behavior and clarify.
18471 2016-07-12  Martin Liska  <mliska@suse.cz>
18473         * params.def: Add avg-loop niter.
18474         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18475         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18476         * doc/invoke.texi: Document the new parameter.
18478 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18480         PR middle-end/71700
18481         * expr.c (store_constructor): Mask sign-extended bits when widening
18482         sub-word constructor element at the start of a word.
18484 2016-07-12  Martin Liska  <mliska@suse.cz>
18486         * Makefile.in: Append rule for params-options.h.
18487         * params-options.h: New file.
18489 2016-07-12  Martin Liska  <mliska@suse.cz>
18491         * ira-build.c (mark_loops_for_removal): Properly iterate
18492         loops.
18494 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
18495             Richard Biener  <rguenther@suse.de>
18497         PR tree-optimization/23286
18498         PR tree-optimization/70159
18499         * doc/invoke.texi: Document -fcode-hoisting.
18500         * common.opt (fcode-hoisting): New flag.
18501         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18502         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18503         (do_regular_insertion): Rename to ...
18504         (do_pre_regular_insertion): ... this and amend general comments
18505         on insertion strathegy.
18506         (do_partial_partial_insertion): Rename to ...
18507         (do_pre_partial_partial_insertion): ... this.
18508         (do_hoist_insertion): New function.
18509         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18510         and call do_hoist_insertion properly.
18511         (insert): Adjust.
18512         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18513         (pass_pre::execute): Register hoist_insert stats.
18515 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
18517         PR middle-end/71716
18518         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18519         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18520         is different from mode's bitsize.  Small cleanup.
18522 2016-07-12  Richard Biener  <rguenther@suse.de>
18524         PR rtl-optimization/68961
18525         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18526         to simplify to a non-constant.
18528 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
18530         PR middle-end/71758
18531         * omp-low.c (expand_omp_target): Gimplify device.
18533         PR tree-optimization/71823
18534         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18535         to get vec_oprnds2 from op2.
18537 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
18539         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18540         Hoist common subexpressions.
18541         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18543 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
18545         PR target/71800
18546         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18547         prevent generation of 'stxsiwx' on pre Power8 hardware.
18549 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
18551         * input.c: Include cpplib.h.
18552         (selftest::temp_source_file): New class.
18553         (selftest::temp_source_file::temp_source_file): New ctor.
18554         (selftest::temp_source_file::~temp_source_file): New dtor.
18555         (selftest::should_have_column_data_p): New function.
18556         (selftest::test_should_have_column_data_p): New function.
18557         (selftest::temp_line_table): New class.
18558         (selftest::temp_line_table::temp_line_table): New ctor.
18559         (selftest::temp_line_table::~temp_line_table): New dtor.
18560         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18561         it to create a temp_line_table.
18562         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18563         locations that are known to have column data.
18564         (selftest::line_table_case): New struct.
18565         (selftest::test_reading_source_line): Move tempfile handling
18566         to class temp_source_file.
18567         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18568         (selftest::assert_token_loc_eq): New function.
18569         (ASSERT_TOKEN_LOC_EQ): New macro.
18570         (selftest::test_lexer): New function.
18571         (selftest::boundary_locations): New array.
18572         (selftest::input_c_tests): Call test_should_have_column_data_p.
18573         Loop over a test matrix of interesting values of location and
18574         default_range_bits, calling test_lexer on each case in the matrix.
18575         Move call to test_accessing_ordinary_linemaps into the matrix.
18576         * selftest.h (ASSERT_EQ): Reimplement in terms of...
18577         (ASSERT_EQ_AT): New macro.
18579 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
18581         PR target/71801
18582         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18583         Don't convert TImode in debug insn.
18585 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18587         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18588         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18589         (tree_type_common::lang_flag_7): New.
18590         (tree_type_common::spare): Reduce size.
18591         * tree.h (TYPE_ALIGN_OK): Remove.
18592         (TYPE_LANG_FLAG_7): New.
18593         (get_inner_reference): Adjust header.
18594         * print-tree.c (print_node): Adjust.
18595         * expr.c (get_inner_reference): Remove parameter keep_aligning.
18596         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18597         calls to get_inner_reference.
18598         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
18599         handling of TYPE_ALIGN_OK.
18600         * builtins.c (get_object_alignment_2): Adjust call to
18601         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
18602         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18603         TYPE_ALIGN_OK.
18604         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18605         * cfgexpand.c (expand_debug_expr): Likewise.
18606         * dbxout.c (dbxout_expand_expr): Likewise.
18607         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18608         loc_list_from_tree, fortran_common): Likewise.
18609         * fold-const.c (optimize_bit_field_compare,
18610         decode_field_reference, fold_unary_loc, fold_comparison,
18611         split_address_to_core_and_offset): Likewise.
18612         * gimple-laddress.c (execute): Likewise.
18613         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18614         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18615         * hsa-gen.c (gen_hsa_addr): Likewise.
18616         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18617         * tsan.c (instrument_expr): Likewise.
18618         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18619         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18620         * tree-affine.c (tree_to_aff_combination,
18621         get_inner_reference_aff): Adjust calls to get_inner_reference.
18622         * tree-data-ref.c (split_constant_offset_1,
18623         dr_analyze_innermost): Likewise.
18624         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18625         * tree-sra.c (ipa_sra_check_caller): Likewise.
18626         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18627         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18628         bswap_replace): Likewise.
18629         * tree-vect-data-refs.c (vect_check_gather,
18630         vect_analyze_data_refs): Likewise.
18631         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18632         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18633         TYPE_ALIGN_OK.
18635 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
18637         * Makefile.in (selftest-valgrind): New phony target.
18638         * function-tests.c (selftest::build_cfg): Delete pass instances
18639         created by the test.
18640         (selftest::convert_to_ssa): Likewise.
18641         (selftest::test_expansion_to_rtl): Likewise.
18642         * tree-cfg.c (selftest::test_linear_chain): Release dominator
18643         vectors.
18644         (selftest::test_diamond): Likewise.
18646 2016-07-11  Richard Biener  <rguenther@suse.de>
18648         PR tree-optimization/71816
18649         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18650         than replacing all of its operands.
18652 2016-07-11  Alan Modra  <amodra@gmail.com>
18654         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18655         (ctr<mode>): Add unspec.
18656         (ctr<mode>_internal*): Likewise.
18658 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
18660         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18661         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18663 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
18665         PR rtl-optimization/71621
18666         * lra-constraints.c (process_alt_operands): Check combination of
18667         reg class and mode.
18669 2016-07-08  Jason Merrill  <jason@redhat.com>
18670             Richard Biener  <rguenther@suse.de>
18672         P0145: Refining Expression Order for C++.
18673         * gimplify.c (initial_rhs_predicate_for): New.
18674         (gimplfy_modify_expr): Gimplify RHS before LHS.
18676 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18678         PR target/71297
18679         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18680         Allow standard error handling to take over when a wrong number
18681         of arguments is presented to __builtin_vec_ld () or
18682         __builtin_vec_st ().
18684 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
18686         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18687         variants.
18688         (smin): Likewise.
18689         (fmax): New entry.
18690         (fmin): Likewise.
18691         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18692         __builtin_aarch64_fmaxv2sf.
18693         (vmaxnmq_f32): Likewise.
18694         (vmaxnmq_f64): Likewise.
18695         (vminnm_f32): Likewise.
18696         (vminnmq_f32): Likewise.
18697         (vminnmq_f64): Likewise.
18699 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
18701         PR target/71806
18702         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18703         enable -mfloat128-hardware by default.
18704         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18705         that IEEE 128-bit hardware support needs.
18706         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18707         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18708         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18709         floating point requires.
18710         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18711         -mfloat128 and -mfloat128-hardware changes.
18713 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
18715         PR tree-optimization/71667
18716         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18718 2016-07-08  Martin Liska  <mliska@suse.cz>
18720         PR middle-end/71606
18721         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18722         folding produces SAVE_EXPRs, thus return false for the type.
18724 2016-07-07  Martin Liska  <mliska@suse.cz>
18726         * file-find.c (remove_prefix): New function.
18727         * file-find.h (remove_prefix): Declare the function.
18728         * gcc-ar.c (main): Skip a folder of the wrapper if
18729         a wrapped binary would point to the same file.
18731 2016-07-07  Jan Hubicka  <jh@suse.cz>
18733         * tree-scalar-evolution.c (iv_can_overflow_p): export.
18734         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18735         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18737 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
18739         PR ipa/71624
18740         * ipa-inline-analysis.c (compute_inline_parameters): Set
18741         local.can_change_signature to false for intrumentation
18742         thunk callees.
18744 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18746         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18747         with TARGET_HAVE_MOVT.
18748         (TARGET_HAVE_MOVT): Define.
18749         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18750         availability with TARGET_HAVE_MOVT.
18751         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18752         availability.
18753         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18754         TARGET_THUMB2.
18755         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18756         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18757         * config/arm/constraints.md (define_constraint "j"): Use
18758         TARGET_HAVE_MOVT to check MOVT availability.
18760 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18762         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18764 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18766         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18767         (armv8-m.main): Likewise.
18768         (armv8-m.main+dsp): Likewise.
18769         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18770         (FL_FOR_ARCH8M_MAIN): Likewise.
18771         * config/arm/arm-tables.opt: Regenerate.
18772         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18773         armv8-m.main+dsp to BE8_LINK_SPEC.
18774         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18775         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18776         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18777         Baseline and Mainline.
18778         (arm_option_override_internal): Also disable arm_restrict_it when
18779         !arm_arch_notm.  Update comment for -munaligned-access to also cover
18780         ARMv8-M Baseline.
18781         (arm_file_start): Increase buffer size for printing architecture name.
18782         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18783         and armv8-m.main+dsp.
18784         (mno-unaligned-access): Clarify that this is disabled by default for
18785         ARMv8-M Baseline architectures as well.
18787 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18789         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18790         decide whether to prevent some libgcc routines being included for some
18791         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18792         link between this condition and the one in
18793         libgcc/config/arm/lib1func.S.
18795 2016-07-07  Richard Biener  <rguenther@suse.de>
18797         * tree-ssa-pre.c: Include alias.h.
18798         (compute_avail): If we have multiple VN_REFERENCEs with the
18799         same hashtable entry adjust that to make it a valid replacement
18800         for all of them with respect to alignment and aliasing
18801         when doing insertion.
18802         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18803         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18805 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
18807         PR target/70098
18808         PR target/71763
18809         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18810         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18811         constraint.
18813 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18815         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18816         (adjust_mems): Adjust.
18817         (adjust_insn): Likewise.
18818         (prepare_call_arguments): Likewise.
18820 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18822         * gcse.c (struct ls_expr): Make stores field a vector.
18823         (ldst_entry): Adjust.
18824         (free_ldst_entry): Likewise.
18825         (print_ldst_list): Likewise.
18826         (compute_ld_motion_mems): Likewise.
18827         (update_ld_motion_stores): Likewise.
18829 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18831         * gcse.c (struct ls_expr): Remove loads field.
18832         (ldst_entry): Adjust.
18833         (free_ldst_entry): Likewise.
18834         (print_ldst_list): Likewise.
18835         (compute_ld_motion_mems): Likewise.
18837 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18839         * store-motion.c (struct st_expr): Make antic_stores a vector.
18840         (st_expr_entry): Adjust.
18841         (free_st_expr_entry): Likewise.
18842         (print_store_motion_mems): Likewise.
18843         (find_moveable_store): Likewise.
18844         (compute_store_table): Likewise.
18845         (remove_reachable_equiv_notes): Likewise.
18846         (replace_store_insn): Likewise.
18847         (build_store_vectors): Likewise.
18849 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18851         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18852         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18854 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
18856         PR tree-optimization/71518
18857         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18858         misalign also for outer loops with negative step.
18860 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
18862         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18863         (cortex_a53_shift): Add mov_shift.
18864         (cortex_a53_shift_reg): Add new reservation for register shifts.
18865         (cortex_a53_alu): Remove bfm.
18866         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18867         (cortex_a53_alu_extr): Add new reservation for EXTR.
18868         (bypasses): Improve bypass modelling.
18870 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18872         PR target/50739
18873         * config/avr/avr.c (avr_asm_select_section): Strip off
18874         SECTION_DECLARED from flags when calling get_section.
18876 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18878         * tree-vectorizer.h (vect_memory_access_type): Add
18879         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18880         * tree-vect-stmts.c (compare_step_with_zero): New function.
18881         (perm_mask_for_reverse): Move further up file.
18882         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18883         step is negative.
18884         (get_negative_load_store_type): New function.
18885         (get_load_store_type): Call it.  Add an ncopies argument.
18886         (vectorizable_mask_load_store): Update call accordingly and
18887         remove tests for negative steps.
18888         (vectorizable_store, vectorizable_load): Likewise.  Handle new
18889         memory_access_types.
18891 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18893         * tree-vectorizer.h (vect_memory_access_type): New enum.
18894         (_stmt_vec_info): Add a memory_access_type field.
18895         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18896         (vect_model_store_cost): Take an access type instead of a boolean.
18897         (vect_model_load_cost): Likewise.
18898         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18899         vect_model_store_cost and vect_model_load_cost.
18900         * tree-vect-stmts.c (vec_load_store_type): New enum.
18901         (vect_model_store_cost): Take an access type instead of a
18902         store_lanes_p boolean.  Simplify tests.
18903         (vect_model_load_cost): Likewise, but for load_lanes_p.
18904         (get_group_load_store_type, get_load_store_type): New functions.
18905         (vectorizable_store): Use get_load_store_type.  Record the access
18906         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18907         (vectorizable_load): Likewise.
18908         (vectorizable_mask_load_store): Likewise.  Replace is_store
18909         variable with vls_type.
18911 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18913         * tree-vectorizer.h (vect_grouped_load_supported): Add a
18914         single_element_p parameter.
18915         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18916         Check the PR65518 case here rather than in vectorizable_load.
18917         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18918         * tree-vect-stmts.c (vectorizable_load): Likewise.
18920 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18922         * tree-vectorizer.h (gather_scatter_info): New structure.
18923         (vect_check_gather_scatter): Return a bool rather than a decl.
18924         Replace return-by-pointer arguments with a single
18925         gather_scatter_info *.
18926         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18927         (vect_analyze_data_refs): Update call accordingly.
18928         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18929         (vectorizable_mask_load_store): Likewise.  Also record the
18930         offset dt and vectype in the gather_scatter_info.
18931         (vectorizable_store): Likewise.
18932         (vectorizable_load): Likewise.
18934 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18936         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18937         strided groups, use the cost of N scalar accesses instead
18938         of ncopies vector accesses.
18939         (vect_model_load_cost): Likewise.
18941 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18943         * tree-vect-stmts.c (vect_cost_group_size): Delete.
18944         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
18945         variable to indicate when once-per-group costs are being used.
18946         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
18948 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18950         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18951         peeling-for-gaps condition.
18953 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18955         * config/s390/s390.c (s390_expand_vec_init): Force initializer
18956         element to register if it doesn't match general_operand.
18958 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
18959             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18961         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18962         prototype.
18963         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18964         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18965         (SIGNBIT): New mode iterator.
18966         (Fsignbit): New mode attribute.
18967         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18968         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18969         when direct moves are available.
18970         (signbit<mode>2_dm): New define_insn_and_split).
18971         (signbit<mode>2_dm2): New define_insn.
18973 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18975         PR rtl-optimization/71594
18976         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18977         into subregs of appropriate mode before trying to emit a conditional
18978         move.
18980 2016-07-05  Jan Hubicka  <jh@suse.cz>
18982         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18983         (simple_iv): Use it.
18985 2016-07-05  Jan Hubicka  <jh@suse.cz>
18987         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18989 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
18991         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18992         "offmemok".
18994 2016-07-05  Jan Hubicka  <jh@suse.cz>
18996         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18997         IV can overflow.
18999 2016-07-05  Richard Biener  <rguenther@suse.de>
19001         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
19002         Handle empty else block.
19003         (is_feasible_trace): Likewise.
19004         (split_paths): Likewise.
19006 2016-07-05  Richard Biener  <rguenther@suse.de>
19008         * tree-loop-distribution.c (distribute_loop): Fix issue with
19009         the cost model loop.
19011 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
19013         * config/arm/neon-testgen.ml: Delete.
19014         * config/arm/neon.ml: Delete.
19016 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
19018         PR c++/71739
19019         * tree.c (attribute_value_equal): Use get_attribute_name instead of
19020         directly using TREE_PURPOSE.
19022 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
19024         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
19025         * config/aarch64/aarch64_neon.h: Likewise.
19026         * config/aarch64/arm_neon.h: Likewise.
19027         * config/aarch64/atomics.md: Likewise.
19028         * config/aarch64/aarch64-simd-builtins.def: Likewise.
19029         * doc/invoke.texi: Likewise.
19031 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19033         * config/s390/s390.md: Add "z13" cpu_facility.
19034         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
19035         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
19036         condition" type instructions.
19038 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19039             Jeff Law  <law@redhat.com>
19041         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
19042         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
19044 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
19046         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
19047         permutation for TARGET_AVX512F.
19048         (ix86_expand_vec_one_operand_perm_avx512): New function.
19049         (expand_vec_perm_1): Invoke introduced function.
19050         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19051         it may be not valid after vectorization.
19053 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19055         PR target/63874
19056         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
19057         typo in comment.  Only force to memory if it is a weak
19058         external reference.
19060 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
19061             Jiong Wang  <jiong.wang@arm.com>
19063         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
19064         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
19065         (AARCH64_FL_F16): New.
19066         (AARCH64_FL_FOR_ARCH8_2): New.
19067         (AARCH64_ISA_8_2): New.
19068         (AARCH64_ISA_F16): New.
19069         (TARGET_FP_F16INST): New.
19070         (TARGET_SIMD_F16INST): New.
19071         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
19072         ("fp"): Disabling "fp" also disables "fp16".
19073         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
19074         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
19075         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
19076         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
19078 2016-07-04  Jan Beulich  <jbeulich@suse.com>
19080         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
19082 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
19084         PR target/71720
19085         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
19086         the insns, use an insn form that does not adjust the offset on
19087         little endian systems.
19089 2016-07-01  Jan Beulich  <jbeulich@suse.com>
19091         * varasm.c (get_variable_section): Validate initializer in
19092         named .bss-like sections.
19094 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19096         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
19097         Exchange the order of the second and third operands in the vpermr
19098         instruction tmeplate.
19100 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
19102         PR target/71698
19103         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
19104         Disallow TDmode values.
19106 2016-07-01  Alan Modra  <amodra@gmail.com>
19108         PR rtl-optimization/71709
19109         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
19110         being set, not referenced.
19112 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19114         PR tree-optimization/70729
19115         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
19116         of loop since it can be not valid after transformation.
19118 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19120         * config/arm/arm.c (thumb_reload_in_hi): Delete.
19121         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
19123 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
19125         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
19126         for NULL decl.
19128 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
19130         PR target/71677
19131         * config/rs6000/constraints.md (wY constraint): New constraint to
19132         match the requirements for the LXSD and STXSD instructions.
19133         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
19134         predicate to match the requirements for the LXSD and STXSD
19135         instructions.
19136         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
19137         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
19138         to make sure that the bottom 2 bits of offset are 0, the address
19139         form is offsettable, and no updating is done in the address mode.
19140         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
19141         (movdi_internal32): Likewise
19142         (movdi_internal64): Likewise.
19144 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
19146         PR tree-optimization/71707
19147         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
19148         strinfo even for ADDR_EXPR ptr.
19150 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19152         * config/rs6000/altivec.md (darn_32): Change the condition to
19153         TARGET_P9_MISC instead of TARGET_MODULO.
19154         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
19155         condition expression.
19156         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
19157         condition expression.
19158         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
19159         (DFP_TEST): New code iterator.
19160         (dfptstsfi_<code>_mode>): New define_expand.
19161         (*dfp_sgnfcnc_<mode>): New define_insn.
19162         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
19163         definition next to BU_P9_MISC_1 definition and change the MASK
19164         value to RS6000_BTM_P9_MISC.
19165         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
19166         (BU_P9_64BIT_MISC_0): Likewise.
19167         (BU_P9_DFP_MISC_0): New macro definition.
19168         (BU_P9_DFP_MISC_1): New macro definition.
19169         (BU_P9_DFP_MISC_2): New macro definition.
19170         (BU_P9_DFP_OVERLOAD_1): New macro definition.
19171         (BU_P9_DFP_OVERLOAD_2): New macro definition.
19172         (BU_P9_DFP_OVERLOAD_3): New macro definition.
19173         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
19174         (TSTSFI_LT_TD): Likewise.
19175         (TSTSFI_EQ_DD): Likewise.
19176         (TSTSFI_EQ_TD): Likewise.
19177         (TSTSFI_GT_DD): Likewise.
19178         (TSTSFI_GT_TD): Likewise.
19179         (TSTSFI_OV_DD): Likewise.
19180         (TSTSFI_OV_TD): Likewise.
19181         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
19182         (TSTSFI_LT_DD): Likewise.
19183         (TSTSFI_LT_TD): Likewise.
19184         (TSTSFI_EQ): Likewise.
19185         (TSTSFI_EQ_DD): Likewise.
19186         (TSTSFI_EQ_TD): Likewise.
19187         (TSTSFI_GT): Likewise.
19188         (TSTSFI_GT_DD): Likewise.
19189         (TSTSFI_GT_TD): Likewise.
19190         (TSTSFI_OV): Likewise.
19191         (TSTSFI_OV_DD): Likewise.
19192         (TSTSFI_OV_TD): Likewise.
19193         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19194         overloaded test significance functions.
19195         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19196         OPTION_MASK_P9_MISC into the representation of this mask.
19197         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
19198         of this mask.
19199         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
19200         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
19201         non-zero.
19202         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
19203         argument is a 6-bit unsigned literal value if the icode argument
19204         represents a DFP test significance built-in call.
19205         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
19206         flag used independently and in combination with the
19207         RS6000_BTM_64BIT flag.
19208         (rs6000_opt_masks): Add entry for power9-misc command-line option.
19209         (rs6000_builtin_mask_names): Add entry for power9-misc
19210         command-line option.
19211         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
19212         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
19213         RS6000_BTM_P9_MISC macros.
19214         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
19215         option and change the description of the -mpower9-vector option to
19216         enable only vector instructions, removing its erroneously claimed
19217         support for scalar instructions.
19218         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19219         the ISA 3.0 digital floating point test significance built-in
19220         functions.
19222 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
19224         * config/aarch64/aarch64.c (cortexa35_tunings):
19225         Enable AES fusion.  Use cortexa57_branch_cost.
19226         (cortexa53_tunings): Use cortexa57_branch_cost.
19227         (cortexa72_tunings): Use cortexa57_branch_cost.
19228         Use AUTOPREFETCHER_WEAK.
19229         (cortexa73_tunings): Use cortexa57_branch_cost.
19231 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19232             James Greenhalgh  <james.greenhalgh@arm.com>
19234         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
19235         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
19236         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
19237         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
19238         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
19239         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
19240         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
19241         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
19242         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
19243         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
19244         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
19245         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
19246         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
19247         New intrinsics.
19249 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
19250             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19252         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
19253         New define_insn.
19254         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
19256 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
19258         PR driver/71651
19259         * gcc.c (driver::build_option_suggestions): Pass "option" to
19260         add_misspelling_candidates.
19261         * opts-common.c (add_misspelling_candidates): Add "option" param;
19262         use it to avoid adding negated forms for options marked with
19263         RejectNegative.
19264         * opts.h (add_misspelling_candidates): Add "option" param.
19266 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
19268         PR middle-end/71693
19269         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
19270         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
19271         first when permuting bitwise operation with rotate.  Cast
19272         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
19274 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
19276         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
19277         for misspelled param names.
19278         * params.c: Include spellcheck.h.
19279         (find_param_fuzzy): New function.
19280         * params.h (find_param_fuzzy): New prototype.
19281         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
19282         * spellcheck.h (struct edit_distance_traits<const char *>):
19283         ...here.
19285 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
19287         * config/rs6000/predicates.md (const_0_to_7_operand): New
19288         predicate, recognize 0..7.
19289         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19290         support for doing extracts from V16QImode, V8HImode, V4SImode
19291         under ISA 3.0.
19292         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
19293         vector extract support.
19294         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
19295         for ISA 3.0 vector extract.
19296         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
19297         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
19298         extracts of a constant element number from small integer vectors
19299         on 64-bit ISA 3.0 systems.
19300         (vsx_extract_<mode>_di): Likewise.
19301         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
19302         say when we can do ISA 3.0 vector extracts.
19303         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
19304         registers, using the stxsiwx instruction.
19306 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
19308         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
19309         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
19310         qdf24xx_regmove_cost, qdf24xx_tunings): New.
19311         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
19312         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
19313         * config/arm/arm.c (arm_qdf24xx_tune): New.
19315 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
19317         * config/aarch64/aarch64.c (cortexa53_tunings):
19318         Increase loop alignment to 8.  Set function alignment to 16.
19319         (cortexa35_tunings): Likewise.
19320         (cortexa57_tunings): Increase loop alignment to 8.
19321         (cortexa72_tunings): Likewise.
19322         (cortexa73_tunings): Likewise.
19324 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19326         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
19327         for arm_fp16_ok and arm_fp16_hw.
19328         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
19329         arm_fp16_alternative.
19331 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19333         PR tree-optimization/71655
19334         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
19335         types when swapping operands.
19337 2016-06-29  Martin Liska  <mliska@suse.cz>
19339         PR middle-end/71585
19340         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
19341         * ipa-inline-transform.c (inline_call): Remove unnecessary call
19342         of build_optimization_node.
19344 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
19346         PR tree-optimization/70729
19347         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
19348         independent in loops having positive safelen value.
19349         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19350         it may be not valid after vectorization.
19352 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
19354         PR tree-optimization/71625
19355         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
19356         is sorted by ascending list->offset.  If PTR is non-NULL and there is
19357         previous strinfo, call get_stridx_plus_constant.
19358         (get_stridx): Pass exp as second argument to get_addr_stridx.
19359         (addr_stridxptr): Add missing list = list->next, so that there can be
19360         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
19361         the list is sorted by ascending list->offset.
19362         (get_stridx_plus_constant): Adjust so that it can be also called with
19363         ADDR_EXPR instead of SSA_NAME as PTR.
19364         (handle_char_store): Pass NULL_TREE as second argument to
19365         get_addr_stridx.
19367 2016-06-29  Richard Biener  <rguenther@suse.de>
19369         PR rtl-optimization/68961
19370         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19372 2016-06-29  Richard Biener  <rguenther@suse.de>
19374         PR middle-end/71002
19375         * alias.c (component_uses_parent_alias_set_from): Handle
19376         type punning through union accesses by using the union alias set.
19377         * gimple.c (gimple_get_alias_set): Remove union type punning case.
19379 2016-07-29  Richard Biener  <rguenther@suse.de>
19381         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19382         precision not matching mode precision.
19384 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
19386         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19387         pa_output_arg_descriptor.
19388         (call_val_symref_64bit_post_reload): Likewise.
19389         (call_val_powf_64bit_post_reload): Likewise.
19390         (sibcall_internal_symref_64bit): Likewise.
19391         (sibcall_value_internal_symref_64bit): Likewise.
19393 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
19395         PR middle-end/71626
19396         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19397         a constant, force its SUBREG_REG into memory or register instead
19398         of whole op1.
19400 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19402         PR target/58655
19403         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19404         * doc/invoke.texi (AVR Options): Document it.
19406 2016-06-28  Walter Lee  <walt@tilera.com>
19408         * config/tilegx/linux.h: Do not include arch/icache.h
19409         (CLEAR_INSN_CACHE): Provide inlined definition directly.
19410         * config/tilepro/linux.h: Do not include arch/icache.h
19411         (CLEAR_INSN_CACHE): Provide inlined definition directly.
19413 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
19415         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19416         for big-endian BIT_FIELD_REF.
19418 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
19420         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19421         ('size' attribute): Add '128'.
19422         Include power9.md.
19423         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19424         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19425         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19426         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19427         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19428         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19429         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19430         *trunc<mode>df2_odd): Set size attribute to '128'.
19431         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19432         * config/rs6000/power6.md (power6-fp): Include dfp type.
19433         * config/rs6000/power7.md (power7-fp): Likewise.
19434         * config/rs6000/power8.md (power8-fp): Likewise.
19435         * config/rs6000/power9.md: New file.
19436         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19437         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19438         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19439         htmsimple.
19440         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19441         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19442         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19443         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19444         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19445         dfp_dscri_<mode>): Change type attribute to dfp.
19446         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19447         attribute to vecsimple.
19448         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19449         and prefetch streams.
19450         (rs6000_option_override_internal): Remove temporary code setting
19451         tuning to power8.  Don't set rs6000_sched_groups for power9.
19452         (last_scheduled_insn): Change to rtx_insn *.
19453         (divide_cnt, vec_load_pendulum): New variables.
19454         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19455         (rs6000_issue_rate): Set issue rate for Power9.
19456         (is_power9_pairable_vec_type): New.
19457         (power9_sched_reorder2): New.
19458         (rs6000_sched_reorder2): Call new function for Power9 specific
19459         reordering.
19460         (insn_must_be_first_in_group): Remove Power9.
19461         (insn_must_be_last_in_group): Likewise.
19462         (force_new_group): Likewise.
19463         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19464         Initialize divide_cnt/vec_load_pendulum.
19465         (_rs6000_sched_context, rs6000_init_sched_context,
19466         rs6000_set_sched_context): Handle context save/restore of new
19467         variables.
19469 2016-06-28  Richard Biener  <rguenther@suse.de>
19471         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19472         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19473         COMPONENT_REF operand.
19474         (nonoverlapping_component_refs_p): Likewise.
19475         * stor-layout.c (start_bitfield_representative): Mark
19476         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19478 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
19480         * Makefile.in: Don't cat ../stage_current if it does not exist.
19482         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19483         last argument is a bit-field.
19485         PR rtl-optimization/71673
19486         * internal-fn.c (expand_arith_overflow_result_store): Use
19487         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19488         expand_simple_binop.
19490         PR middle-end/66867
19491         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19492         expand_ifn_atomic_compare_exchange): New functions.
19493         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19494         * tree.h (build_call_expr_internal_loc): Rename to ...
19495         (build_call_expr_internal_loc_array): ... this.  Fix up type of
19496         last argument.
19497         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19498         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19499         ATOMIC_COMPARE_EXCHANGE result.
19500         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19501         * gimple-fold.h (optimize_atomic_compare_exchange_p,
19502         fold_builtin_atomic_compare_exchange): New prototypes.
19503         * gimple-fold.c (optimize_atomic_compare_exchange_p,
19504         fold_builtin_atomic_compare_exchange): New functions..
19505         * tree-ssa.c (execute_update_addresses_taken): If
19506         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19507         of call when finding addressable vars, and if such var becomes
19508         non-addressable, call fold_builtin_atomic_compare_exchange.
19510 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
19512         PR target/71670
19513         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19514         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19516 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
19518         * config/rs6000/rs6000.md ('type' attribute): Add
19519         veclogical,veccmpfx,vecexts,vecmove insn types.
19520         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19521         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19522         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19523         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19524         *nabs<mode>2_hw): Change type to vecmove.
19525         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19526         *boolcc<mode>3_internal, *eqv<mode>3_internal,
19527         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19528         *ieee_128bit_vsx_abs<mode>2_internal,
19529         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19530         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19531         *ieee128_mtvsrd_32bit): Change type to veclogical.
19532         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19533         *movdi_internal32, *movdi_internal64): Update insn types.
19534         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19535         vsx_extract_<mode>): Change type to veclogical.
19536         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19537         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19538         *vsx_sign_extend_si_v2di): Change type to vecexts.
19539         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19540         type to veclogical.
19541         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19542         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19543         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19544         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19545         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19546         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19547         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19548         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19549         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19550         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19551         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19552         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19553         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19554         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19555         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19556         (ppc7450-vecsimple): Add veclogical, vecmove.
19557         (ppc7450-veccmp): Add veccmpfx.
19558         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19559         vecmove.
19560         (ppc8540_vector_compare): Add veccmpfx.
19561         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19562         * config/rs6000/cell.md (cell-fp): Add fpsimple.
19563         (cell-vecsimple): Add veclogical, vecmove.
19564         (cell-veccmp): Add veccmpfx.
19565         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19566         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19567         veccmpfx.
19568         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19569         * config/rs6000/power4.md (power4-fp): Add fpsimple.
19570         (power4-vecsimple): Add veclogical, vecmove.
19571         (power4-veccmp): Add veccmpfx.
19572         * config/rs6000/power5.md (power5-fp): Add fpsimple.
19573         * config/rs6000/power6.md (power6-fp): Add fpsimple.
19574         (power6-vecsimple): Add veclogical, vecmove.
19575         (power6-veccmp): Add veccmpfx.
19576         * config/rs6000/power7.md (power7-fp): Add fpsimple.
19577         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19578         * config/rs6000/power8.md (power8-fp): Add fpsimple.
19579         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19580         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19581         * config/rs6000/titan.md (titan_fp): Add fpsimple.
19582         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19583         fpsimple.
19584         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19586 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
19588         PR target/71656
19589         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19590         OPTION_MASK_P9_DFORM_VECTOR.
19591         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19592         disable -mpower9-dform-vector when using reload.
19593         (quad_address_p): Remove 'gpr_p' argument and all associated code.
19594         New 'strict' argument.  Update all callers.  Add strict addressing
19595         support.
19596         (rs6000_legitimate_offset_address_p): Remove call to
19597         virtual_stack_registers_memory_p.
19598         (rs6000_legitimize_reload_address): Add quad address support.
19599         (rs6000_legitimate_address_p): Move call to quad_address_p above
19600         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
19601         to account for new strict usage.
19602         (rs6000_output_move_128bit): Adjust quad_address_p args to account
19603         for new strict usage.
19604         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19606 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
19608         PR target/70902
19609         PR target/71453
19610         PR target/71555
19611         PR target/71596
19612         PR target/71657
19613         * config/i386/i386.c (ix86_spill_class): Disable condition to
19614         always return NO_REGS.
19616 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
19618         * predict.c: Include gimple-pretty-print.h
19619         (predicted_by_loop_heuristics_p): Check also
19620         PRED_LOOP_EXIT_WITH_RECURSION
19621         (predict_loops): Find self recursive calls and use special purpose
19622         predictors for them; dump log about decisions.
19623         (pass_profile::execute): Dump info about #of iterations.
19624         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19625         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19627 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
19629         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19630         output_asm_insn calls and shorten long lines.  Output .CALL
19631         argument descriptor using pa_output_arg_descriptor.  Add various
19632         inline $$dyncall and other optimizations.
19633         (pa_attr_length_indirect_call): Adjust ordering and lengths.
19635 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
19637         PR tree-optimization/71643
19638         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19639         EH preds.
19641         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19642         leak a bitmap if dep_bb is NULL.
19644         PR tree-optimization/71631
19645         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19646         to rewrite_expr_tree even if negate_result, move new_lhs var
19647         declaration and initialization earlier, for powi_result set afterwards
19648         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
19649         if new_lhs != lhs, and don't shadow gsi var.
19651 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
19653         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19654         Add in_loop parameter.
19655         (predict_loops): Add loop guard heuristics.
19656         * predict.def (PRED_LOOP_GUARD): New heuristics.
19658 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
19660         * predict.c: Include ipa-utils.h
19661         (tree_bb_level_prediction): Predict recursive calls.
19662         (tree_estimate_probability_bb): Skip inexpensive calls for call
19663         predictor.
19664         * predict.def (PRED_RECURSIVE_CALL): New.
19666 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19668         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19669         (BU_FLOAT128_1): Likewise.
19670         (FABSQ): Likewise.
19671         (COPYSIGNQ): Likewise.
19672         (RS6000_BUILTIN_NANQ): Likewise.
19673         (RS6000_BUILTIN_NANSQ): Likewise.
19674         (RS6000_BUILTIN_INFQ): Likewise.
19675         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19676         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19677         (TARGET_FOLD_BUILTIN): New #define.
19678         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19679         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19680         (rs6000_fold_builtin): New target hook implementation, handling
19681         folding of 128-bit NaNs and infinities.
19682         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19683         entries are filled in to avoid problems during bootstrap
19684         self-test; define builtins for 128-bit NaNs and infinities.
19685         (rs6000_opt_mask): Add entry for float128.
19686         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19687         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19688         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19689         (const_str_type_node): New #define.
19690         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19691         to a define_expand that dispatches to either copysign<mode>3_soft
19692         or copysign<mode>3_hard.
19693         (copysign<mode>3_hard): Rename from copysign<mode>3.
19694         (copysign<mode>3_soft): New define_insn.
19695         * doc/extend.texi: Document new builtins.
19697 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
19699         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19700         PRIu64 instead of lu.
19702 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
19704         PR debug/71642
19705         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19706         copy the type name.
19708 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
19710         PR tree-optimization/71647
19711         * omp-low.c (lower_rec_input_clauses): Convert
19712         omp_clause_aligned_alignment (c) to size_type_node for the
19713         last argument of __builtin_assume_aligned.
19715 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19717         * configure.ac (calling ___tls_get_addr via GOT): New
19718         assembler/linker check.
19719         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
19720         assembler and linker supports calling ___tls_get_addr via GOT.
19721         Otherise, defined to 0.
19722         * config.in: Regenerated.
19723         * configure: Likewise.
19724         * config/i386/constraints.md (Yb): New constraint.
19725         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19726         (REG_CLASS_NAMES): Likewise.
19727         (REG_CLASS_CONTENTS): Likewise.
19728         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19729         the b constraint with the Yb constraint.  Call ___tls_get_addr
19730         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19731         is 1.
19732         (*tls_local_dynamic_base_32_gnu): Likewise.
19733         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19734         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19735         (*tls_local_dynamic_base_64_<mode>): Likewise.
19737 2016-06-24  Martin Liska  <mliska@suse.cz>
19739         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19740         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19741         few functions.
19742         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19743         argument to true if the expected number of iterations is
19744         loop-based.
19746 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
19748         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19749         assemble for 32bit target.
19750         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19751         and $ld_ix86_gld_32_opt to link for 32bit target.
19752         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19753         * configure: Regenerate.
19755 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19757         * config/arm/arm.c (int_log2): Delete definition and prototype.
19758         (shift_op): Use exact_log2 instead of int_log2.
19759         (vfp3_const_double_for_fract_bits): Likewise.
19761 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
19763         * internal-fn.c (expand_arith_set_overflow): New function.
19764         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19765         Use it.
19766         (expand_arith_overflow_result_store): Likewise.  Handle precision
19767         smaller than mode precision.
19768         * tree-vrp.c (extract_range_basic): For imag part, handle
19769         properly signed 1-bit precision result.
19770         * doc/extend.texi (__builtin_add_overflow): Document that last
19771         argument can't be pointer to enumerated or boolean type.
19772         (__builtin_add_overflow_p): Document that last argument can't
19773         have enumerated or boolean type.
19775 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19776             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19778         * config/rs6000/predicates.md (splat_input_operand): Rework.
19779         Don't allow constants, since the insns that use this predicate
19780         don't support constants.  Constants are handled by other insns
19781         that are created via combine.  During and after register
19782         allocation, only allow indexed or indirect addresses, and not
19783         general addresses.  Only allow modes supported by the hardware.
19784         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19785         comment.  Move check for using VSPLTIS<x> to a common location,
19786         instead of doing it in two different places.
19788 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
19790         * config/i386/driver-i386.c (host_detect_local_cpu): Set
19791         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19792         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19793         signature_CENTAUR_ebx.
19795 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19797         PR target/66232
19798         PR target/67400
19799         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19800         (as_ix86_gas_32_opt): This.
19801         (ld_ix86_tls_ldm_opt): Renamed to ...
19802         (ld_ix86_gld_32_opt): This.
19803         (R_386_TLS_LDM reloc): Updated.
19804         (R_386_GOT32X reloc): New assembler/linker check.
19805         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
19806         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
19807         defined to 0.
19808         * config.in: Regenerated.
19809         * configure: Likewise.
19810         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19811         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19812         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19813         if ix86_force_load_from_GOT_p returns true.
19814         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19815         ix86_force_load_from_GOT_p returns true.
19816         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19817         the external function address via the GOT slot.
19818         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19819         HAVE_AS_IX86_GOT32X before returning false.
19820         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19821         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19823 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
19825         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19827 2016-06-23  Andi Kleen  <ak@linux.intel.com>
19829         * Makefile.in: Regenerate.
19830         * doc/install.texi: Document autoprofiledbootstrap.
19832 2016-06-23  Andi Kleen  <ak@linux.intel.com>
19834         * config/i386/gcc-auto-profile: New file.
19836 2016-06-23  Martin Liska  <mliska@suse.cz>
19838         PR middle-end/71619
19839         * predict.c (predict_loops): Revert the hunk that was removed
19840         in r237103.
19842 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
19844         * config.gcc: Add support for arm*-*-phoenix* targets.
19845         * config/arm/t-phoenix: New.
19846         * config/phoenix.h: New.
19848 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
19849             H.J. Lu  <hongjiu.lu@intel.com>
19851         PR target/67400
19852         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19853         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19854         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19855         ix86_force_load_from_GOT_p returns true.
19856         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19857         ix86_force_load_from_GOT_p returns true.
19858         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19859         ix86_force_load_from_GOT_p returns true.
19860         (ix86_expand_move): Load the external function address via the
19861         GOT slot if ix86_force_load_from_GOT_p returns true.
19862         * config/i386/predicates.md (x86_64_immediate_operand): Return
19863         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19864         (x86_64_zext_immediate_operand): Ditto.
19866 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
19868         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19870 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
19872         PR c/70339
19873         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19874         * diagnostic.c (pedwarn_at_rich_loc): New function.
19875         * spellcheck.h (best_match::best_match): Add a
19876         "best_distance_so_far" optional parameter.
19877         (best_match::set_best_so_far): New method.
19878         (best_match::get_best_distance): New accessor.
19879         (best_match::get_best_candidate_length): New accessor.
19881 2016-06-22  Nick Clifton  <nickc@redhat.com>
19883         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19884         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19885         modes are accepted as well.
19886         (ucompare_loc_descriptor): Likewise.
19887         (minmax_loc_descriptor): Likewise.
19888         (clz_loc_descriptor): Likewise.
19889         (popcount_loc_descriptor): Likewise.
19890         (bswap_loc_descriptor): Likewise.
19891         (rotate_loc_descriptor): Likewise.
19892         (mem_loc_descriptor): Likewise.
19893         (loc_descriptor): Likewise.
19895 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
19897         * common.opt (fdiagnostics-parseable-fixits): New option.
19898         * diagnostic.c: Include "selftest.h".
19899         (print_escaped_string): New function.
19900         (print_parseable_fixits): New function.
19901         (diagnostic_report_diagnostic): Call print_parseable_fixits.
19902         (selftest::assert_print_escaped_string): New function.
19903         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19904         (selftest::test_print_escaped_string): New function.
19905         (selftest::test_print_parseable_fixits_none): New function.
19906         (selftest::test_print_parseable_fixits_insert): New function.
19907         (selftest::test_print_parseable_fixits_remove): New function.
19908         (selftest::test_print_parseable_fixits_replace): New function.
19909         (selftest::diagnostic_c_tests): New function.
19910         * diagnostic.h (struct diagnostic_context): Add field
19911         "parseable_fixits_p".
19912         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19913         -fdiagnostics-parseable-fixits.
19914         (-fdiagnostics-parseable-fixits): New option.
19915         * opts.c (common_handle_option): Handle
19916         -fdiagnostics-parseable-fixits.
19917         * selftest-run-tests.c (selftest::run_tests): Call
19918         selftest::diagnostic_c_tests.
19919         * selftest.h (selftest::diagnostic_c_tests): New prototype.
19921 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
19923         PR tree-optimization/71488
19924         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19925         comparison of boolean vectors.
19926         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19927         of boolean vectors using bitwise operations.
19929 2016-06-22  Andreas Schwab  <schwab@suse.de>
19931         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19932         Remove declaration.
19934 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
19936         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19938 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19940         * config/i386/i386.c (print_reg): Emit an error message on attempt to
19941         print FLAGS_REG.
19943 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19945         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19946         * config/arm/arm-cores.def (cortex-a73): New entry.
19947         (cortex-a73.cortex-a35): Likewise.
19948         (cortex-a73.cortex-a53): Likewise.
19949         * config/arm/arm-tables.opt: Regenerate.
19950         * config/arm/arm-tune.md: Likewise.
19951         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19952         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19953         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19954         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19955         * doc/invoke.texi (ARM Options): Document cortex-a73,
19956         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19958 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19960         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19961         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19962         (cortex-a73.cortex-a35): Likewise.
19963         (cortex-a73.cortex-a53): Likewise.
19964         * config/aarch64/aarch64-tune.md: Regenerate.
19965         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19966         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19967         -mcpu and -mtune.
19969 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19971         * configure.ac (gcc_cv_as_compress_debug): Remove
19972         --compress-debug-sections as extra as switch.
19973         Handle gas --compress-debug-sections=type.
19974         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19975         Handle gld --compress-debug-sections=type.
19976         * configure: Regenerate.
19978 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
19980         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19982 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
19984         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19985         (do_rewrite): likewise.
19987 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19989         * common/config/mep/mep-common.c: Remove.
19990         * config.gcc: Remove mep-* support.
19991         * config/mep/constraints.md: Remove.
19992         * config/mep/default.h: Remove.
19993         * config/mep/intrinsics.h: Remove.
19994         * config/mep/intrinsics.md: Remove.
19995         * config/mep/ivc2-template.h: Remove.
19996         * config/mep/mep-c5.cpu: Remove.
19997         * config/mep/mep-core.cpu: Remove.
19998         * config/mep/mep-default.cpu: Remove.
19999         * config/mep/mep-ext-cop.cpu: Remove.
20000         * config/mep/mep-intrin.h: Remove.
20001         * config/mep/mep-ivc2.cpu: Remove.
20002         * config/mep/mep-pragma.c: Remove.
20003         * config/mep/mep-protos.h: Remove.
20004         * config/mep/mep.c: Remove.
20005         * config/mep/mep.cpu: Remove.
20006         * config/mep/mep.h: Remove.
20007         * config/mep/mep.md: Remove.
20008         * config/mep/mep.opt: Remove.
20009         * config/mep/predicates.md: Remove.
20010         * config/mep/t-mep: Remove.
20011         * doc/install.texi: Remove mep-* documentation.
20012         * doc/md.texi: Likewise.
20014 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20016         * config.gcc: Remove support for avr-rtems.
20017         * config/avr/gen-avr-mmcu-specs.c: Likewise.
20018         * config/avr/rtems.h: Remove.
20019         * config/avr/t-rtems: Remove.
20021 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20023         * config.gcc: Remove m32r-rtems support.
20024         * config/m32r/rtems.h: Remove.
20026 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20028         * config.gcc: Remove h8300-rtems support.
20029         * config/h8300/rtems.h: Remove.
20030         * config/h8300/t-rtems: Remove.
20032 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20034         * config.gcc: Remove support for knetbsd.
20035         * configure.ac: Likewise.
20036         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
20037         * config/knetbsd-gnu.h: Remove.
20038         * configure: Regenerate.
20040 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20042         * config.gcc: Remove support for openbsd 2 and 3.
20043         * config/openbsd-oldgas.h: Remove.
20045 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20047         * config.gcc: Remove interix support.
20048         * config/i386/i386-interix.h: Remove.
20049         * config/i386/interix.opt: Remove.
20050         * config/i386/t-interix: Remove.
20051         * configure: Regenerate.
20052         * configure.ac: Remove interix support.
20053         * doc/install.texi: Remove interix documentation.
20055 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20057         * config/rs6000/rs6000.h: Add conditional preprocessing directives
20058         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
20059         not defined.
20061 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
20063         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
20064         they are both PLACEHOLDER_EXPRs.
20066 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20068         * stor-layout.c (layout_type): Move setting complex MODE to
20069         layout_type, instead of setting it ahead of time by the caller.
20070         * tree.c (build_complex_type): Likewise.
20072 2016-06-21  Martin Liska  <mliska@suse.cz>
20074         * predict.c (force_edge_cold): Replace imposisble with
20075         impossible.
20077 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
20079         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
20080         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
20082 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
20084         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
20086 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
20087             Ilya Enkovich  <ilya.enkovich@intel.com>
20089         PR target/71549
20090         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
20091         New member function to convert V1TImode register to SUBREG
20092         TImode in debug insn.
20093         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
20094         after changing register mode to V1TImode.
20096 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
20098         * config/aarch64/aarch64-cores.def (vulcan): New core.
20099         * config/aarch64/aarch64-tune.md: Regenerate.
20100         * doc/invoke.texi: Document vulcan as an available option.
20102 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
20104         * cse.c (canon_asm_operands): New function extracted from...
20105         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
20106         either standalone or member of a PARALLEL.
20108 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
20110         PR target/30417
20111         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
20112         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
20113         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
20115 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
20117         PR target/71103
20118         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
20119         constant addresses if can_create_pseudo_p.
20121 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
20123         PR tree-optimization/71588
20124         * tree-ssa-strlen.c (valid_builtin_call): New function.
20125         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
20126         it.
20128 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
20130         PR middle-end/71581
20131         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
20132         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
20133         for conversion of scalar user var to complex type and use the
20134         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
20135         punt.
20137         PR rtl-optimization/71591
20138         * toplev.c (toplev::run_self_tests): If no_backend, complain and
20139         don't run any tests.
20141 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
20143         PR target/71571
20144         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
20145         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
20146         space for PIC with non-v32 and the common non-PIC "jump".
20148 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
20150         PR target/71559
20151         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
20152         returned values and add UN*/LTGT/*ORDERED cases with values matching
20153         D operand modifier on vcmp for AVX.
20155 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
20157         * config/aarch64/aarch64.opt
20158         (mpc-relative-literal-loads): Rename internal option name.
20159         * config/aarch64/aarch64.c
20160         (aarch64_nopcrelative_literal_loads): Rename to
20161         aarch64_pcrelative_literal_loads.
20162         (aarch64_expand_mov_immediate): Likewise.
20163         (aarch64_secondary_reload): Likewise.
20164         (aarch64_can_use_per_function_literal_pools_p): Likewise.
20165         (aarch64_override_options_after_change_1): Rename and simplify logic.
20166         (aarch64_classify_symbol): Merge large model checks into switch,
20167         remove pc-relative load check.
20169 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
20171         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
20172         costs relative to the cost of a register move.
20174 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
20176         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
20177         (vcvt_n_f64_u64): Likewise.
20178         (vcvt_n_s64_f64): Likewise.
20179         (vcvt_n_u64_f64): Likewise.
20180         (vcvt_f64_s64): Likewise.
20181         (vrecpe_f64): Likewise.
20182         (vcvt_f64_u64): Likewise.
20183         (vrecps_f64): Likewise.
20185 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
20187         * config/aarch64/aarch64.md
20188         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
20189         iterators.
20190         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
20191         attributes.
20192         * config/aarch64/aarch64-builtins.c
20193         (aarch64_types_binop_uss_qualifiers): Delete.
20194         (TYPES_BINOP_USS): Likewise.
20195         (aarch64_types_binop_sus_qualifiers): Likewise.
20196         (TYPES_BINOP_SUS): Likewise.
20197         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
20198         (TYPES_FCVTIMM_SUS): Likewise.
20199         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
20200         rather than BINOP.
20201         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
20202         (fcvtzs): Use SHIFTIMM rather than BINOP.
20203         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
20205 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
20207         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
20208         costs relative to the cost of a register move.
20210 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
20212         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
20213         Allow scalar/single vector modes to be tieable.
20215 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
20217         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
20219 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20221         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
20222         "alignement".
20223         * tree.h (TYPE_ALIGN): Likewise.
20225 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
20227         PR target/71103
20228         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
20230 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
20232         * config/avr/avr.c (avr_print_operand): Fix "format not a string
20233         literal" build warnings.
20234         (avr_print_operand_address): Dito.
20236 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
20238         PR target/71375
20239         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
20240         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
20242 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
20244         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
20246 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
20248         PR bootstrap/71435
20249         * reload1.c (reload): Pass 0 to finish_spills when called because
20250         update_eliminables_and_spill returns true and remove did_spill.
20251         (finish_spills): Adjust comment and document GLOBAL parameter.
20253 2016-06-17  DJ Delorie  <dj@redhat.com>
20255         PR target/71338
20256         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
20257         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
20258         (umulqihi3_virt): Likewise.
20259         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
20260         (umulqihi3_real): Likewise.
20262 2016-06-17  Martin Liska  <mliska@suse.cz>
20264         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
20266 2016-06-17  Martin Liska  <mliska@suse.cz>
20268         * predict.def: PRED_LOOP_EXIT from 92 to 85.
20270 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
20272         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
20273         __FAST_MATH__.
20274         (vaddq_f32): Likewise.
20275         (vmul_f32): Likewise.
20276         (vmulq_f32): Likewise.
20277         (vsub_f32): Likewise.
20278         (vsubq_f32): Likewise.
20280 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
20282         PR tree-optimization/71347
20283         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
20284         cost for all uses in group.
20286 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
20288         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
20289         insert gimple seq if it's not empty.
20291 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
20293         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
20294         member OFFSET.
20295         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
20296         rather than OFFSET.
20297         (comp_dr_with_seg_len_pair): Ditto.
20298         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
20299         struct dr_with_seg_len_pair against DR_OFFSET.
20300         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
20301         DR_OFFSET directly.
20303 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20305         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
20307 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
20309         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
20310         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
20311         (pa_output_millicode_call): Likewise.
20312         (pa_output_call): Likewise.
20313         (pa_output_indirect_call): Likewise.
20314         (pa_asm_output_mi_thunk): Likewise.
20316 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20318         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
20320 2016-06-16  Martin Liska  <mliska@suse.cz>
20322         * predict.c (combine_predictions_for_insn): When we find a first
20323         match predictor, we should consider just predictors with
20324         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
20325         DS theory predictor.
20326         (combine_predictions_for_bb): Likewise.
20328 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
20330         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
20331         with base of reference to struct.
20333 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
20335         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
20337 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20339         PR target/71151
20340         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
20341         progmem_swtable_section.
20342         (progmem_swtable_section): Remove.
20343         (avr_asm_function_rodata_section): Remove.
20344         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
20345         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
20347 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
20349         * config/i386/driver-i386.c (host_detect_local_cpu): Set
20350         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
20351         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
20352         signature_CENTAUR_ebx.
20353         * config/i386/i386.c (ix86_option_override_internal): Add
20354         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
20355         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
20356         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
20358 2016-06-16  Martin Liska  <mliska@suse.cz>
20360         * predict.def: Add fortran loop preheader predictor.
20361         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20362         fold IFN_BUILTIN_EXPECT with a known constant argument.
20364 2016-06-16  Martin Liska  <mliska@suse.cz>
20366         * predict.def: Add 'Fortran' to display text of all
20367         PRED_FORTRAN_* predictors.
20369 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
20371         PR target/71242
20372         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20373         [IA64_BUILTIN_NANSQ]: Ditto.
20374         (ia64_fold_builtin): New function.
20375         (TARGET_FOLD_BUILTIN): New define.
20376         (ia64_init_builtins) Declare const_string_type node.
20377         Add __builtin_nanq and __builtin_nansq builtin functions.
20378         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20380 2016-06-16  Nick Clifton  <nickc@redhat.com>
20382         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20383         MSP430_HWMULT_ prefix to enum values.
20384         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20385         * config/msp430/msp430.c: Update use of enum values.
20386         * config/msp430/msp430.md: Likewise.
20387         * config/msp430/msp430.opt: Likewise.
20389 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
20391         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20392         of comparsions in the last iteration.
20394 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
20395             Joern Rennecke  <joern.rennecke@embecosm.com>
20397         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20398         addresses.
20399         (arc_needs_pcl_p): Add GOTOFFPC.
20400         (arc_legitimate_pic_addr_p): Likewise.
20401         (arc_output_pic_addr_const): Likewise.
20402         (arc_legitimize_pic_address): Generate a pc-relative address using
20403         GOTOFFPC.
20404         (arc_output_libcall): Use @pcl syntax.
20405         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20406         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20407         (*movsi_insn): Use @pcl syntax.
20408         (doloop_begin_i): Likewise.
20410 2016-06-16  Martin Liska  <mliska@suse.cz>
20412         * predict.def: Define a new predictor.
20414 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
20416         * config/arc/arc.opt (mtp-regno): Update text.
20418 2016-06-16  Renlin Li  <renlin.li@arm.com>
20420         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20422 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
20424         PR target/71554
20425         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20426         (setcc + and peephole2): Likewise.
20428         PR rtl-optimization/71532
20429         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20430         memory slots.
20432 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
20434         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20435         DImode constants with XXSPLTIB in vector registers.
20436         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20437         vsx_extract_<mode>_internal{1,2} into a single insn that handles
20438         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20439         extraction of the element at the top of the register as a scalar
20440         value.
20441         (vsx_extract_<mode>_internal1): Likewise.
20442         (vsx_extract_<mode>_internal2): Likewise.
20443         * config/rs6000/constraints.md (wi constraint): Remove a comment
20444         about DImode not being allowed in Altivec registers.
20445         (wB constraint): New constraint for constants that can be
20446         generated in Altivec registers with VSPLTISW/VUPKHSW.
20447         * config/rs6000/predicates.md (xxspltib_constant_split): Update
20448         comments.
20449         (xxspltib_constant_nosplit): Likewise.
20450         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20451         support for -mupper-regs-di to enable DImode to go into Altivec
20452         registers.
20453         (POWERPC_MASKS): Likewise.
20454         (power7 cpu): Likewise.
20455         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20456         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20457         for DImode being allowed in Altivec registers.  Update wi/wj
20458         constraints.  Set scalar_in_vmx_p flag.
20459         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20460         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
20461         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20462         (rs6000_opt_masks): Add -mupper-regs-di.
20463         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20464         direct move to use wi and not wj.
20465         (lfiwzx): Likewise.
20466         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20467         alternative.
20468         (floatunssi<mode>2_lfiwzx_mem): Likewise.
20469         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20470         any VSX register, instead of just Altivec registers, to allow
20471         either operand to be an Altivec register or both.
20472         (fixuns_trunc<mode>di2_fctiduz): Likewise.
20473         (movdi_internal32): Add support for -mupper-regs-di.  Add support
20474         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
20475         the alternatives and attributes to be lined up to be easier to
20476         read.
20477         (movdi_internal64): Likewise.
20478         (64-bit DImode splitters): Change predicates to only split loading
20479         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
20480         load constants in ISA 3.0 or ISA 2.07 respectively.
20481         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20482         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
20483         mention -mcpu=power9 sets these options.
20484         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20485         wB constraint.
20487 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20489         PR target/67353
20490         * config/avr/avr.c (avr_set_current_function): Warn misspelled
20491         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20492         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20493         by default to warn misspelled interrupt/ signal handler.
20494         * doc/invoke.texi (AVR Options): Document it. Update description
20495         for -nodevicelib option.
20497 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20499         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20500         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
20501         (aarch64_<sur>shll2_n<mode>): Likewise.
20503 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
20505         PR middle-end/71529
20506         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20507         DECL_CONTEXT for copied arguments.
20509 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
20511         PR tree-optimization/71483
20512         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20513         for slp
20515 2016-06-15  Martin Liska  <mliska@suse.cz>
20517         * predict.c (tree_predict_by_opcode): Call predict_edge_def
20518         instead of predict_edge w/o a probability.
20520 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
20522         PR tree-optimization/71439
20523         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20524         live PHIs.
20526 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20528         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20529         register subregs in SET_SRC.
20531 2016-06-15  Richard Biener  <rguenther@suse.de>
20533         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20534         store restrictions.
20536 2016-06-15  Richard Biener  <rguenther@suse.de>
20538         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20539         not consider dependences between accesses that belong to the
20540         same group.
20541         (vect_analyze_data_ref_dependences): Do not analyze read-read
20542         or self-dependences.
20544 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
20546         * spellcheck-tree.c: Include spellcheck-tree.h rather than
20547         spellcheck.h.
20548         (find_closest_identifier): Reimplement in terms of
20549         best_match<tree,tree>.
20550         * spellcheck-tree.h: New file.
20551         * spellcheck.c (struct edit_distance_traits<const char *>): New
20552         struct.
20553         (find_closest_string): Reimplement in terms of
20554         best_match<const char *, const char *>.
20555         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20556         overload to spellcheck-tree.h.
20557         (find_closest_identifier): Likewise.
20558         (struct edit_distance_traits<T>): New template.
20559         (class best_match): New class.
20561 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
20563         * selftest-run-tests.c (selftest::run_tests): Call
20564         selftest::spellcheck_tree_c_tests.
20565         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20566         * spellcheck-tree.c: Include selftest.h and stringpool.h.
20567         (selftest::test_find_closest_identifier): New function.
20568         (selftest::spellcheck_tree_c_tests): New function.
20569         * spellcheck.c (selftest::test_find_closest_string): Verify that
20570         the order of the vec does not affect the results for this case.
20571         (selftest::test_data): New array.
20572         (selftest::test_metric_conditions): New function.
20573         (selftest::spellcheck_c_tests): Add a test of case-comparison.
20574         Call selftest::test_metric_conditions.
20576 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20578         * config/rs6000/rs6000-builtin.def (commentary): Typo.
20579         (BU_P9_MISC_1): Likewise.
20580         (BU_P9_64BIT_MISC_0): Likewise.
20581         (BU_P9_MISC_0): Likewise.
20583 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
20585         * gcc-rich-location.c
20586         (gcc_rich_location::add_fixit_misspelled_id): New method.
20587         * gcc-rich-location.h
20588         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20590 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
20592         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20593         FreeBSD 11 and above.
20595 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
20597         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20599 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20601         * expmed.h: Close parenthesis in "at your option" in copyright
20602         boilerplate.
20603         * lower-subreg.h: Likewise.
20605 2016-06-14  Richard Biener  <rguenther@suse.de>
20607         PR middle-end/71526
20608         * genmatch.c (expr::gen_transform): Use in_type for comparisons
20609         if available.
20611 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20613         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20614         New function.
20615         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
20616         mask+shift version.
20617         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20618         New prototype.
20619         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20620         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20622 2016-06-14  Richard Biener  <rguenther@suse.de>
20624         PR tree-optimization/71522
20625         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20626         copying into float copying.
20628 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
20630         PR tree-optimization/71520
20631         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20632         (replace_block_by): Move user labels from bb1 to bb2.
20634 2016-06-14  Richard Biener  <rguenther@suse.de>
20636         PR middle-end/71310
20637         PR bootstrap/71510
20638         * expr.h (get_bit_range): Declare.
20639         * expr.c (get_bit_range): Export.
20640         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20641         word_mode again to constrain the bitfield access.
20643 2016-06-14  Richard Biener  <rguenther@suse.de>
20645         PR tree-optimization/71521
20646         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20647         division int_const_binop against zero divisor.
20649 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
20651         * config/i386/i386.md (signbittf2): New expander.
20652         * config/i386/sse.md (ptesttf2): New insn pattern.
20654 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
20656         PR bootstrap/71481
20657         * input.c (selftest::test_reading_source_line): Avoid reading from
20658         __FILE__ by creating a tempfile with known content and reading
20659         from that instead.
20661 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
20663         * pretty-print.c (assert_pp_format_colored): Skip the test if
20664         GCC_COLORS is set.
20665         (test_pp_format): Remove comment about GCC_COLORS.
20667 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
20669         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20670         * pretty-print.c (assert_pp_format_va): Add location param and use
20671         it with ASSERT_STREQ_AT.
20672         (assert_pp_format): Add location param and pass it to
20673         assert_pp_format_va.
20674         (assert_pp_format_colored): Likewise.
20675         (ASSERT_PP_FORMAT_1): New.
20676         (ASSERT_PP_FORMAT_2): New.
20677         (ASSERT_PP_FORMAT_3): New.
20678         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20679         explicitly, or implicitly via the above macros.
20680         * selftest.c (selftest::pass): Use a selftest::location rather
20681         than file and line.
20682         (selftest::fail): Likewise.  Print the function name.
20683         (selftest::fail_formatted): Likewise.
20684         (selftest::assert_streq): Use a selftest::location rather than
20685         file and line.
20686         * selftest.h (selftest::location): New struct.
20687         (SELFTEST_LOCATION): New macro.
20688         (selftest::pass): Accept a const location & rather than file
20689         and line.
20690         (selftest::fail): Likewise.
20691         (selftest::fail_formatted): Likewise.
20692         (selftest::assert_streq): Likewise.
20693         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20694         (ASSERT_FALSE): Likewise.
20695         (ASSERT_EQ): Likewise.
20696         (ASSERT_NE): Likewise.
20697         (ASSERT_STREQ): Likewise.
20698         (ASSERT_PRED1): Likewise.
20699         (ASSERT_STREQ_AT): New macro.
20701 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
20703         * selftest.c (selftest::fail_formatted): New function.
20704         (selftest::assert_streq): New function.
20705         * selftest.h (selftests::fail_formatted): New decl.
20706         (selftest::assert_streq): New decl.
20707         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20709 2016-06-13  Jeff Law  <law@redhat.com>
20711         PR tree-optimization/71403
20712         * tree-ssa-threadbackward.c
20713         (convert_and_register_jump_thread_path): No longer accept reference
20714         to path.  Do not pop items off the path anymore.
20715         (fsm_find_control_statement_thread_paths): Do not allow threading
20716         to a deeper loop nest.  Pop the last item off the path here rather
20717         than in convert_and_register_jump_thread_path.
20719 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
20720             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
20722         [AArch64] Emit division using the Newton series
20724         * config/aarch64/aarch64-protos.h
20725         (cpu_approx_modes): Add new member "division".
20726         (aarch64_emit_approx_div): Declare new function.
20727         * config/aarch64/aarch64.c
20728         (generic_approx_modes): New member "division".
20729         (exynosm1_approx_modes): Likewise.
20730         (xgene1_approx_modes): Likewise.
20731         (aarch64_emit_approx_div): Define new function.
20732         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20733         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20734         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20735         * doc/invoke.texi (-mlow-precision-div): Describe new option.
20737 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
20738             Wilco Dijkstra  <wilco.dijkstra@arm.com>
20740         [AArch64] Emit square root using the Newton series
20742         * config/aarch64/aarch64-protos.h
20743         (aarch64_emit_approx_rsqrt): Replace with new function
20744         "aarch64_emit_approx_sqrt".
20745         (cpu_approx_modes): New member "sqrt".
20746         * config/aarch64/aarch64.c
20747         (generic_approx_modes): New member "sqrt".
20748         (exynosm1_approx_modes): Likewise.
20749         (xgene1_approx_modes): Likewise.
20750         (aarch64_emit_approx_rsqrt): Replace with new function
20751         "aarch64_emit_approx_sqrt".
20752         (aarch64_override_options_after_change_1): Handle new option.
20753         * config/aarch64/aarch64-simd.md
20754         (rsqrt<mode>2): Use new function instead.
20755         (sqrt<mode>2): New expansion and insn definitions.
20756         * config/aarch64/aarch64.md: Likewise.
20757         * config/aarch64/aarch64.opt
20758         (mlow-precision-sqrt): Add new option description.
20759         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20761 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
20763         [AArch64] Add more choices for the reciprocal square root approximation
20765         Allow a target to prefer such operation depending on the operation mode.
20767         * config/aarch64/aarch64-protos.h
20768         (AARCH64_APPROX_MODE): New macro.
20769         (AARCH64_APPROX_{NONE,ALL}): Likewise.
20770         (cpu_approx_modes): New structure.
20771         (tune_params): New member "approx_modes".
20772         * config/aarch64/aarch64-tuning-flags.def
20773         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20774         * config/aarch64/aarch64.c
20775         (generic_approx_modes): New core "cpu_approx_modes" structure.
20776         (exynosm1_approx_modes): Likewise.
20777         (xgene1_approx_modes): Likewise.
20778         (generic_tunings): New member "approx_modes".
20779         (cortexa35_tunings): Likewise.
20780         (cortexa53_tunings): Likewise.
20781         (cortexa57_tunings): Likewise.
20782         (cortexa72_tunings): Likewise.
20783         (exynosm1_tunings): Likewise.
20784         (thunderx_tunings): Likewise.
20785         (xgene1_tunings): Likewise.
20786         (use_rsqrt_p): New argument for the mode and use new member from
20787         "tune_params".
20788         (aarch64_builtin_reciprocal): Devise mode from builtin.
20789         (aarch64_optab_supported_p): New argument for the mode.
20790         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20792 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20794         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20795         RS6000_BTM_MODULO flag into the set of flags that are considered
20796         to be part of the common configuration.
20798 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20800         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20801         difference unsigned.
20802         (vec_absdb): New macro for vector absolute difference unsigned
20803         byte.
20804         (vec_absdh): New macro for vector absolute difference unsigned
20805         half-word.
20806         (vec_absdw): New macro for vector absolute difference unsigned word.
20807         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20808         (vadu<mode>3): New insn.
20809         (*p9_vadu<mode>3): New insn.
20810         * config/rs6000/rs6000-builtin.def (vadub): New built-in
20811         definition.
20812         (vaduh): New built-in definition.
20813         (vaduw): New built-in definition.
20814         (vadu): New overloaded built-in definition.
20815         (vadub): New overloaded built-in definition.
20816         (vaduh): New overloaded built-in definition.
20817         (vaduw): New overloaded built-in definition.
20818         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20819         overloaded vector absolute difference unsigned functions.
20820         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20821         the ISA 3.0 vector absolute difference unsigned built-in functions.
20823 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
20825         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20826         update shared_lookup_references only once after changing operands.
20828 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
20830         PR middle-end/71373
20831         * tree-nested.c (convert_nonlocal_omp_clauses)
20832         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20834         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20835         * tree.def (CASE_LABEL_EXPR): Likewise.
20837 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20839         PR bootstrap/71481
20840         * input.c (test_builtins): Fix an assertion.
20842 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
20844         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20845         (paritysi2): Ditto.
20846         (isinfxf2): Ditto.
20847         (isinf<mode>2): Ditto.
20849 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
20851         * ggc-tests.c (test_finalization): Only test need_finalization_p
20852         for GCC_VERSION >= 4003.
20854 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20856         * config/s390/vecintrin.h: Fix file description in comment.
20858 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20860         * config/s390/s390-builtin-types.def: Change builtin type naming
20861         scheme to match builtin-types.def.
20863 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
20865         * fold-const.c (optimize_minmax_comparison): Remove.
20866         (fold_comparison): Remove call to the above.
20867         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20868         New transformations.
20870 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
20872         PR tree-optimization/71416
20873         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20874         multiple entries
20876 2016-06-13  Martin Liska  <mliska@suse.cz>
20878         * predict.c (enum predictor_reason): Prefix enum with REASON_.
20879         (combine_predictions_for_insn): Likewise.
20880         (prune_predictions_for_bb): Likewise.
20881         (combine_predictions_for_bb): Likewise.
20883 2016-06-13  Richard Biener  <rguenther@suse.de>
20885         PR tree-optimization/71505
20886         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20887         assert match comment.
20889 2016-06-13  Marek Polacek  <polacek@redhat.com>
20891         PR middle-end/71476
20892         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20893         gimplify_switch_expr.
20894         (warn_switch_unreachable_r): New function.
20896 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20898         PR target/71379
20899         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20900         one.
20902 2016-06-13  Richard Biener  <rguenther@suse.de>
20904         PR middle-end/64516
20905         * fold-const.c (fold_unary_loc): Preserve alignment when
20906         folding a VIEW_CONVERT_EXPR into a MEM_REF.
20908 2016-06-13  Martin Liska  <mliska@suse.cz>
20910         PR sanitizer/71458
20911         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20912         w/ -fsanitize=bounds.
20914 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
20916         * config/i386/i386.c (ix86_init_builtins): Calculate
20917         FLOAT128_FTYPE_CONST_STRING function type only once.
20918         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20919         built-in functions are available for x86-32 and x86-64 targets.
20921 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
20923         PR target/71241
20924         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20925         New primitive type.
20926         (FLOAT128_FTYPE_CONST_STRING): New function type.
20927         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20928         [IX86_BUILTIN_NANSQ]: Ditto.
20929         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20930         (ix86_init_builtin_types): Declare const_string_type_node.
20931         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20932         builtin functions.
20933         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20934         * doc/extend.texi (x86 Built-in Functions): Document
20935         __builtin_nanq and __builtin_nansq.
20937 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
20939         PR target/71061
20940         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20941         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20942         length for pop patterns.
20943         (arm_attr_length_push_multi): Update comments.
20944         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20945         attribute.
20946         (*pop_multiple_with_writeback_and_return): Likewise.
20947         (*pop_multiple_with_return): Likewise.
20949 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
20951         PR middle-end/71310
20952         * fold-const.c (optimize_bit_field_compare): Don't try to use
20953         word_mode unconditionally for reading the bit field, look at
20954         DECL_BIT_FIELD_REPRESENTATIVE instead.
20956 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
20958         PR middle-end/71478
20959         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20960         vector integer type.
20962 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
20964         PR middle-end/71494
20965         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20966         without LABEL_DECL, set *handled_ops_p to false instead of true.
20968 2016-06-10  Martin Sebor  <msebor@redhat.com>
20970         PR c/71392
20971         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20972         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20973         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20974         them.
20975         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20976         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20977         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20978         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20979         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20980         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20981         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20982         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20984 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20986         * config/arm/arm.h (pool_vector_label,
20987         return_used_this_function): Remove.
20989 2016-06-10  Jeff Law  <law@redhat.com>
20991         PR tree-optimization/71335
20992         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20993         zero length paths here.
20994         (convert_and_register_jump_thread_path): Remove hacks related to
20995         duplicated blocks in the jump thread path.
20996         (fsm_find_control_statement_thread_paths): Avoid putting the same
20997         block on the thread path twice, but ensure the thread path is
20998         unchanged from the caller's point of view.
21000 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
21002         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
21003         * predict.def (PRED_LOOP_BRANCH): Remove.
21005 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
21007         * Makefile.in (OBJS): Add ggc-tests.o.
21008         (GTFILES): Add ggc-tests.c.
21009         * ggc-tests.c: New file.
21010         * selftest-run-tests.c (selftest::run_tests): Call
21011         selftest::ggc_tests_c_tests.
21012         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
21014 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
21016         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
21018 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
21020         PR sanitizer/71480
21021         * varasm.c (place_block_symbol): Adjust alignment for asan protected
21022         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
21024 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
21026         * profile.c: Include cfgloop.h.
21027         (branch_prob): Compute estimated number of iterations.
21028         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
21029         recompute estimate number of iterations from profile.
21031 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21033         PR inline-asm/68843
21034         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
21035         must be grouped on top of stack.  Don't force early clobber
21036         on ordinary reg outputs.
21038 2016-06-10  Richard Biener  <rguenther@suse.de>
21040         * targhooks.c (default_builtin_vectorization_cost): Adjust
21041         vec_construct cost.
21043 2016-06-10  Richard Biener  <rguenther@suse.de>
21045         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
21046         to fold the RHS to a constant if possible.
21048 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
21050         PR middle-end/71373
21051         * tree-nested.c (convert_nonlocal_omp_clauses)
21052         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
21053         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21054         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
21056         * gimplify.c (gimplify_adjust_omp_clauses): Discard
21057         OMP_CLAUSE_TILE.
21058         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
21060         * omp-low.c (scan_sharing_clauses): Don't expect
21061         OMP_CLAUSE__CACHE_.
21063 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
21065         PR tree-optimization/71407
21066         PR tree-optimization/71416
21067         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
21068         BIT_FIELD_REF type.
21070 2016-06-10  Richard Biener  <rguenther@suse.de>
21072         PR middle-end/71477
21073         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
21075 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
21077         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
21079 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
21080             Jiong Wang  <jiong.wang@arm.com>
21082         PR rtl-optimization/70751
21083         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
21084         spilled into memory.
21086 2016-06-09  Jonathan Yong  <10walls@gmail.com>
21088         Revert:
21089         2015-09-21  Jonathan Yong  <10walls@gmail.com>
21091         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
21092         sysroot/usr/lib/32api for additional win32 libraries,
21093         fixes failing Cygwin bootstrapping.
21095 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
21097         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
21098         Delete.
21100 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
21102         PR bootstrap/71471
21103         * pretty-print.c (pp_indent): Specify that %p is printed in a
21104         host-dependent manner.
21105         (test_pp_format): Remove the test for %p.
21107 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
21109         * config/mips/mips.c (mips_output_jump): Fix formatting.
21111 2016-06-09  Richard Biener  <rguenther@suse.de>
21113         PR tree-optimization/71462
21114         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
21115         removed blocks.
21117 2016-06-09  Martin Liska  <mliska@suse.cz>
21119         * predict.c (dump_prediction): Add new argument.
21120         (enum predictor_reason): New enum.
21121         (struct predictor_hash): New struct.
21122         (predictor_hash::hash): New function.
21123         (predictor_hash::equal): Likewise.
21124         (not_removed_prediction_p): New function.
21125         (prune_predictions_for_bb): Likewise.
21126         (combine_predictions_for_bb): Prune predictions.
21128 2016-06-09  Martin Liska  <mliska@suse.cz>
21130         * predict.c (filter_predictions): New function.
21131         (remove_predictions_associated_with_edge): Use the filter
21132         function.
21133         (equal_edge_p): New function.
21135 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
21137         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
21138         Correct usage of @samp vs @option, add @samp where appropriate.
21139         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
21140         Add armv6s-m and document it, as it is no official ARM name.
21142 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21144         * ifcvt.c (struct noce_if_info): Add transform_name field.
21145         (noce_try_move): Set if_info->transform_name to the function name.
21146         (noce_try_ifelse_collapse): Likewise.
21147         (noce_try_store_flag): Likewise.
21148         (noce_try_inverse_constants): Likewise.
21149         (noce_try_store_flag_constants): Likewise.
21150         (noce_try_addcc): Likewise.
21151         (noce_try_store_flag_mask): Likewise.
21152         (noce_try_cmove): Likewise.
21153         (noce_try_cmove_arith): Likewise.
21154         (noce_try_minmax): Likewise.
21155         (noce_try_abs): Likewise.
21156         (noce_try_sign_mask): Likewise.
21157         (noce_try_bitop): Likewise.
21158         (noce_convert_multiple_sets): Likewise.
21159         (noce_process_if_block): Print if_info->transform_name to
21160         dump_file if transformation succeeded.
21162 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21164         * config/arm/cortex-a57.md (cortex_a57_alu):
21165         Handle csel type.
21167 2016-06-08  Martin Sebor  <msebor@redhat.com>
21168             Jakub Jelinek  <jakub@redhat.com>
21170         PR c++/70507
21171         PR c/68120
21172         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
21173         BUILT_IN_MUL_OVERFLOW_P): New builtins.
21174         * builtins.c: Include gimple-fold.h.
21175         (fold_builtin_arith_overflow): Handle
21176         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
21177         (fold_builtin_3): Likewise.
21178         * doc/extend.texi (Integer Overflow Builtins): Document
21179         __builtin_{add,sub,mul}_overflow_p.
21181 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
21183         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
21184         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
21186 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
21188         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
21189         Rewrite, looking one level down for records and arrays.
21191 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
21193         * pretty-print.c: Include "selftest.h".
21194         (pp_format): Fix comment.
21195         (identifier_to_locale): Likewise.
21196         (selftest::test_basic_printing): New function.
21197         (selftest::assert_pp_format): New function.
21198         (selftest::test_pp_format): New function.
21199         (selftest::pretty_print_c_tests): New function.
21200         * selftest-run-tests.c (selftest::run_tests): Call
21201         selftest::pretty_print_c_tests.
21202         * selftest.h (pretty_print_c_tests): New declaration.
21204 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
21206         * invoke.texi (max-loop-headers-insns): Document.
21207         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
21208         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
21209         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
21211 2016-06-08  Richard Biener  <rguenther@suse.de>
21213         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
21214         on strided SLP loads and fall back to scalar loads in case
21215         we can't chunk them.
21217 2016-06-08  Richard Biener  <rguenther@suse.de>
21219         PR tree-optimization/71452
21220         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
21221         type used for the SSA rewrite has enough precision to cover
21222         the dynamic type of the location.
21224 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
21225             Richard Biener  <rguenther@suse.de>
21227         PR c++/71448
21228         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
21229         the same as DECL_P (base0) for indirect_base0.  Use equality_code
21230         in one further place.
21232 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
21234         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
21235         to one word if the field is known to overlap other words.
21236         (extract_bit_field_1): Likewise.
21237         (store_split_bit_field): Remove compensating code.
21238         (extract_split_bit_field): Likewise.
21240 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
21242         PR debug/71432
21243         PR ada/71413
21244         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
21246 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
21248         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
21249         VDQF.
21250         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
21251         (arch64_addpv4sf): Delete.
21252         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
21253         "gen_aarch64_addpv4sf".
21254         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
21255         builtin.
21256         (vpadds_f32): Likewise.
21257         (vpaddq_f32): Likewise.
21258         (vpaddq_f64): Likewise.
21260 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
21262         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
21263         VALLF.
21264         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
21265         to VALLF.  Rename to "fabd<mode>3".
21266         "*fabd_scalar<mode>3): Delete.
21267         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
21268         Use builtin.
21269         (vabdd_f64): Likewise.
21270         (vabd_f32): Likewise.
21271         (vabd_f64): Likewise.
21272         (vabdq_f32): Likewise.
21273         (vabdq_f64): Likewise.
21275 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
21277         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
21278         VALLF.
21279         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
21280         "aarch64_rsqrts<mode>".
21281         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
21282         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
21283         builtin.
21284         (vrsqrtsd_f64): Likewise.
21285         (vrsqrts_f32): Likewise.
21286         (vrsqrts_f64): Likewise.
21287         (vrsqrtsq_f32): Likewise.
21288         (vrsqrtsq_f64): Likewise.
21290 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
21292         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
21293         VALLF.
21294         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
21295         "aarch64_rsqrte<mode>".
21296         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
21297         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
21298         builtin.
21299         (vrsqrted_f64): Likewise.
21300         (vrsqrte_f32): Likewise.
21301         (vrsqrte_f64): Likewise.
21302         (vrsqrteq_f32): Likewise.
21303         (vrsqrteq_f64): Likewise.
21305 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
21307         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
21308         (ucvtf): Likewise.
21309         (fcvtzs): Likewise.
21310         (fcvtzu): Likewise.
21311         * config/aarch64/aarch64-simd.md
21312         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
21313         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
21314         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
21315         Use builtin.
21316         (vcvt_n_f32_u32): Likewise.
21317         (vcvt_n_s32_f32): Likewise.
21318         (vcvt_n_u32_f32): Likewise.
21319         (vcvtq_n_f32_s32): Likewise.
21320         (vcvtq_n_f32_u32): Likewise.
21321         (vcvtq_n_f64_s64): Likewise.
21322         (vcvtq_n_f64_u64): Likewise.
21323         (vcvtq_n_s32_f32): Likewise.
21324         (vcvtq_n_s64_f64): Likewise.
21325         (vcvtq_n_u32_f32): Likewise.
21326         (vcvtq_n_u64_f64): Likewise.
21327         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
21328         (VSDQ_SDI): Likewise.
21329         (fcvt_target): Support V4DI, V4SI and V2SI.
21330         (FCVT_TARGET): Likewise.
21332 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
21334         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
21335         (TYPES_BINOP_SUS): Likewise.
21336         (aarch64_simd_builtin_data): Update include file name.
21337         (aarch64_builtins): Likewise.
21338         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
21339         for conversion between scalar float-point and fixed-point.
21340         (ucvtf): Likewise.
21341         (fcvtzs): Likewise.
21342         (fcvtzu): Likewise.
21343         * config/aarch64/aarch64.md
21344         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
21345         pattern for conversion between scalar float to fixed-pointer.
21346         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
21347         (UNSPEC_FCVTZS): New UNSPEC enumeration.
21348         (UNSPEC_FCVTZU): Likewise.
21349         (UNSPEC_SCVTF): Likewise.
21350         (UNSPEC_UCVTF): Likewise.
21351         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
21352         Use builtin.
21353         (vcvtd_n_f64_u64): Likewise.
21354         (vcvtd_n_s64_f64): Likewise.
21355         (vcvtd_n_u64_f64): Likewise.
21356         (vcvtd_n_f32_s32): Likewise.
21357         (vcvts_n_f32_u32): Likewise.
21358         (vcvtd_n_s32_f32): Likewise.
21359         (vcvts_n_u32_f32): Likewise.
21360         * config/aarch64/iterators.md (fcvt_target): Support integer to float
21361         mapping.
21362         (FCVT_TARGET): Likewise.
21363         (FCVT_FIXED2F): New iterator.
21364         (FCVT_F2FIXED): Likewise.
21365         (fcvt_fixed_insn): New define_int_attr.
21367 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
21369         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21370         some statements was removed.
21372 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
21374         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21375         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21376         (vect_can_advance_ivs_p): likewise.
21377         (vect_update_ivs_after_vectorizer): likewise.
21378         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21379         (vect_analyze_scalar_cycles_1): likewise.
21380         (vect_analyze_loop_operations): likewise.
21381         (report_vect_op): likewise.
21382         (vect_is_slp_reduction): likewise.
21383         (vect_is_simple_reduction): likewise.
21384         (get_initial_def_for_induction): likewise.
21385         (vect_transform_loop): likewise.
21386         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21387         (vect_recog_sad_pattern): likewise.
21388         (vect_recog_widen_sum_pattern): likewise.
21389         (vect_recog_widening_pattern): likewise.
21390         (vect_recog_divmod_pattern): likewise.
21391         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21392         (vect_analyze_slp_instance): likewise.
21393         (vect_transform_slp_perm_load): likewise.
21394         (vect_schedule_slp_instance): likewise.
21396 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
21398         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21399         (return_prediction): PRED_CONST_RETURN predict return as not taken.
21400         * predict.def (PRED_CONTINUE): Change hitrate 50->67
21401         (PRED_LOOP_BRANCH): Document predictor as broken.
21402         (PRED_LOOP_EXIT): Change hitrate 91->92.
21403         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21404         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21405         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21406         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21407         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21408         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21409         (PRED_CALL): Chane hitrate 71->67.
21410         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21411         (PRED_GOTO): Document as unused right now.
21412         (PRED_CONST_RETURN): Change hitrate 67->69
21413         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21414         (PRED_NULL_RETURN): Change hitrate 91->90.
21415         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21416         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21417         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21419 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
21421         * config/rs6000/altivec.h: Add __builtin_vec_mul.
21422         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21423         special case Altivec builtin.
21424         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21425         VSX_BUILTIN_VEC_MUL (replaced with special case code).
21426         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21427         code for ALTIVEC_BUILTIN_VEC_MUL.
21428         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21429         for __builtin_vec_mul.
21431 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
21433         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21434         -mno-htm.
21436 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
21438         * spellcheck.c (selftest::test_find_closest_string): New function.
21439         (spellcheck_c_tests): Call the above.
21441 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21443         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21445 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
21447         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21448         Yv=Yv,C alternatives.
21450 2016-06-07  Richard Biener  <rguenther@suse.de>
21452         PR c/61564
21453         * common.opt (ffast-math): Make Optimization.
21455 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
21456             Prachi Godbole  <prachi.godbole@imgtec.com>
21458         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21459         `fabs' and `fneg' type attributes.
21460         (p5600_fpu_fabs): Add `fmove' to the comment.
21462 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
21464         * gimple.c: Include builtins.h
21465         (gimple_inexpensive_call_p): New function.
21466         * gimple.h (gimple_inexpensive_call_p): Declare.
21467         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21468         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21469         fix formatting.
21471 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
21473         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21474         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21475         warning_at_rich_loc, warning_n, pedwarn, permerror,
21476         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21477         sorry, fatal_error, internal_error, internal_error_no_backtrace):
21478         Use the above.
21480 2016-06-07  Richard Biener  <rguenther@suse.de>
21482         PR tree-optimization/71428
21483         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21484         BIT_FIELD_REF op vs. load.
21486 2016-06-07  Richard Biener  <rguenther@suse.de>
21488         PR middle-end/71423
21489         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21490         for signed ops.
21492 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
21494         * config/pa/pa.md (call): Generate indirect long calls to non-local
21495         functions on TARGET_64BIT.
21496         (call_value): Likewise.
21498 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
21500         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21501         pattern and subsequent splitters.
21502         (call_val_reg_64bit_post_reload): Likewise.
21504 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
21506         PR middle-end/71408
21507         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21508         propagate_op_to_single_use.
21510 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
21512         PR middle-end/71281
21513         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21515 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
21517         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21518         (enum x86_dirflag_state): New enum.
21519         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21520         (machine_function): Remove needs_cld.
21521         (ix86_current_function_needs_cld): Remove.
21522         * config/i386/i386.c (ix86_set_func_type): Set
21523         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21524         (ix86_expand_prologue): Do not emit CLD here.
21525         (ix86_dirflag_mode_needed): New function.
21526         (ix86_dirflag_mode_entry): Ditto.
21527         (ix86_mode_needed): Handle X86_DIRFLAG entity.
21528         (ix86_mode_after): Ditto.
21529         (ix86_mode_entry): Ditto.
21530         (ix86_mode_exit): Ditto.
21531         (ix86_emit_mode_set): Ditto.
21532         * config/i386/i386.md (strmov_singleop): Set
21533         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21534         Do not set ix86_current_function_needs_cld.
21535         (rep_mov): Ditto.
21536         (strset_singleop): Ditto.
21537         (rep_stos): Ditto.
21538         (cmpstrnqi_nz_1): Ditto.
21539         (cmpstrnqi_1): Ditto.
21540         (strlenqi_1): Ditto.
21542 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
21544         PR tree-optimization/71259
21545         * tree-vect-slp.c (vect_get_constant_vectors): For
21546         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21547         one for constant op, and use COND_EXPR for non-constant.
21549 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
21551         * Makefile.in (OBJS): Add function-tests.o,
21552         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21553         selftest-run-tests.o.
21554         (OBJS-libcommon): Add selftest.o.
21555         (OBJS-libcommon-target): Add selftest.o.
21556         (all.internal): Add "selftest".
21557         (all.cross): Likewise.
21558         (selftest): New phony target.
21559         (s-selftest): New target.
21560         (selftest-gdb): New phony target.
21561         (COLLECT2_OBJS): Add selftest.o.
21562         * bitmap.c: Include "selftest.h".
21563         (selftest::test_gc_alloc): New function.
21564         (selftest::test_set_range): New function.
21565         (selftest::test_clear_bit_in_middle): New function.
21566         (selftest::test_copying): New function.
21567         (selftest::test_bitmap_single_bit_set_p): New function.
21568         (selftest::bitmap_c_tests): New function.
21569         * common.opt (fself-test): New.
21570         * diagnostic-show-locus.c: Include "selftest.h".
21571         (make_range): New function.
21572         (test_range_contains_point_for_single_point): New function.
21573         (test_range_contains_point_for_single_line): New function.
21574         (test_range_contains_point_for_multiple_lines): New function.
21575         (assert_eq): New function.
21576         (test_get_line_width_without_trailing_whitespace): New function.
21577         (selftest::diagnostic_show_locus_c_tests): New function.
21578         * et-forest.c: Include "selftest.h".
21579         (selftest::test_single_node): New function.
21580         (selftest::test_simple_tree): New function.
21581         (selftest::test_disconnected_nodes): New function.
21582         (selftest::et_forest_c_tests): New function.
21583         * fold-const.c: Include "selftest.h".
21584         (selftest::assert_binop_folds_to_const): New function.
21585         (selftest::assert_binop_folds_to_nonlvalue): New function.
21586         (selftest::test_arithmetic_folding): New function.
21587         (selftest::fold_const_c_tests): New function.
21588         * function-tests.c: New file.
21589         * gimple.c: Include "selftest.h".
21590         Include "gimple-pretty-print.h".
21591         (selftest::verify_gimple_pp): New function.
21592         (selftest::test_assign_single): New function.
21593         (selftest::test_assign_binop): New function.
21594         (selftest::test_nop_stmt): New function.
21595         (selftest::test_return_stmt): New function.
21596         (selftest::test_return_without_value): New function.
21597         (selftest::gimple_c_tests): New function.
21598         * hash-map-tests.c: New file.
21599         * hash-set-tests.c: New file.
21600         * input.c: Include "selftest.h".
21601         (selftest::assert_loceq): New function.
21602         (selftest::test_accessing_ordinary_linemaps): New function.
21603         (selftest::test_unknown_location): New function.
21604         (selftest::test_builtins): New function.
21605         (selftest::test_reading_source_line): New function.
21606         (selftest::input_c_tests): New function.
21607         * rtl-tests.c: New file.
21608         * selftest-run-tests.c: New file.
21609         * selftest.c: New file.
21610         * selftest.h: New file.
21611         * spellcheck.c: Include "selftest.h".
21612         (selftest::levenshtein_distance_unit_test_oneway): New function,
21613         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21614         (selftest::levenshtein_distance_unit_test): Likewise.
21615         (selftest::spellcheck_c_tests): Likewise.
21616         * toplev.c: Include selftest.h.
21617         (toplev::run_self_tests): New.
21618         (toplev::main): Handle -fself-test.
21619         * toplev.h (toplev::run_self_tests): New.
21620         * tree.c: Include "selftest.h".
21621         (selftest::test_integer_constants): New function.
21622         (selftest::test_identifiers): New function.
21623         (selftest::test_labels): New function.
21624         (selftest::tree_c_tests): New function.
21625         * tree-cfg.c: Include "selftest.h".
21626         (selftest::push_fndecl): New function.
21627         (selftest::test_linear_chain): New function.
21628         (selftest::test_diamond): New function.
21629         (selftest::test_fully_connected): New function.
21630         (selftest::tree_cfg_c_tests): New function.
21631         * vec.c: Include "selftest.h".
21632         (selftest::safe_push_range): New function.
21633         (selftest::test_quick_push): New function.
21634         (selftest::test_safe_push): New function.
21635         (selftest::test_truncate): New function.
21636         (selftest::test_safe_grow_cleared): New function.
21637         (selftest::test_pop): New function.
21638         (selftest::test_safe_insert): New function.
21639         (selftest::test_ordered_remove): New function.
21640         (selftest::test_unordered_remove): New function.
21641         (selftest::test_block_remove): New function.
21642         (selftest::reverse_cmp): New function.
21643         (selftest::test_qsort): New function.
21644         (selftest::vec_c_tests): New function.c.
21645         * wide-int.cc: Include selftest.h and wide-int-print.h.
21646         (selftest::from_int <wide_int>): New function.
21647         (selftest::from_int <offset_int>): New function.
21648         (selftest::from_int <widest_int>): New function.
21649         (selftest::assert_deceq): New function.
21650         (selftest::assert_hexeq): New function.
21651         (selftest::test_printing <VALUE_TYPE>): New function template.
21652         (selftest::test_ops <VALUE_TYPE>): New function template.
21653         (selftest::test_comparisons <VALUE_TYPE>): New function template.
21654         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21655         template.
21656         (selftest::wide_int_cc_tests): New function.
21658 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21660         PR middle-end/37780
21661         * ifcvt.c (noce_try_ifelse_collapse): New function.
21662         Declare prototype.
21663         (noce_process_if_block): Call noce_try_ifelse_collapse.
21664         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21665         (simplify_ternary_operation): Use the above to simplify
21666         conditional CLZ/CTZ expressions.
21668 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21670         PR middle-end/37780
21671         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21672         define_insn_and_split.
21674 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21676         PR middle-end/37780
21677         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21679 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21681         PR c/24414
21682         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21683         Implicitly clobber memory for basic asm with non-empty assembler
21684         string.  Use targetm.md_asm_adjust also here.
21685         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21686         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21687         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21688         non-empty assembler string.
21689         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21690         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21691         (decode_asm_operands): Handle basic asm in PARALLEL block.
21692         (extract_insn): Handle basic asm in PARALLEL block.
21693         * doc/extend.texi: Mention new behavior of basic asm.
21694         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21695         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21696         branch_needs_nop_p): Use asm_noperands.
21698 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
21700         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21701         Include the M7 SPARC DFA scheduler.
21702         New attribute v3pipe.
21703         Annotate insns with v3pipe where appropriate.
21704         Define cpu_feature vis4.
21705         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21706         Add (V8QI "8") to vbits.
21707         Add insns {add,sub}v8qi3
21708         Add insns ss{add,sub}v8qi3
21709         Add insns us{add,sub}{v8qi,v4hi}3
21710         Add insns {min,max}{v8qi,v4hi,v2si}3
21711         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21712         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21713         * config/sparc/niagara4.md: Add a comment explaining the
21714         discrepancy between the documented latenty numbers and the
21715         implemented ones.
21716         * config/sparc/niagara7.md: New file.
21717         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21718         supports SPARC5 and VIS 4.0 instructions.
21719         * configure: Regenerate.
21720         * config.in: Likewise.
21721         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21722         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21723         TARGET_CPU_niagara7.
21724         (ASM_CPU64_DEFAULT_SPEC): Likewise.
21725         (CPP_CPU_SPEC): Handle niagara7.
21726         (ASM_CPU_SPEC): Likewise.
21727         * config/sparc/sparc-opts.h (processor_type): Add
21728         PROCESSOR_NIAGARA7.
21729         (mvis4): New option.
21730         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21731         (AS_NIAGARA7_FLAG): Define.
21732         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21733         (CPP_CPU64_DEFAULT_SPEC): Likewise.
21734         (CPP_CPU_SPEC): Handle niagara7.
21735         (ASM_CPU_SPEC): Likewise.
21736         * config/sparc/sparc.c (niagara7_costs): Define.
21737         (sparc_option_override): Handle niagara7 and adjust cache-related
21738         parameters with better values for niagara cpus.  Also support VIS4.
21739         (sparc32_initialize_trampoline): Likewise.
21740         (sparc_use_sched_lookahead): Likewise.
21741         (sparc_issue_rate): Likewise.
21742         (sparc_register_move_cost): Likewise.
21743         (dump_target_flag_bits): Support VIS4.
21744         (sparc_vis_init_builtins): Likewise.
21745         (sparc_builtins): Likewise.
21746         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21747         VIS4 4.0.
21748         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21749         UltraSparc M7.
21750         * config/sparc/sparc.opt (sparc_processor_type): New value
21751         niagara7.
21752         * config/sparc/visintrin.h (__attribute__): Prototypes for the
21753         VIS4 builtins.
21754         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21755         -mvis4.
21756         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21757         VIS4 builtins.
21759 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
21761         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21763 2016-06-06  Richard Biener  <rguenther@suse.de>
21765         PR tree-optimization/71398
21766         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21767         remove edges.
21769 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
21771         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21772         ft32_expand_prolog, ft32_expand_epilogue):
21773         Handle pretend_args.
21774         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21775         * config/ft32/ft32.md: Add pretend_returner.
21777 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
21779         PR target/71389
21780         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21781         Copy op1 RTX to avoid invalid sharing.
21782         (ix86_expand_vector_move_misalign): Ditto.
21784 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
21786         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21787         ATTRIBUTE_UNUSED.
21789 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
21791         * predict.c (predicted_by_loop_heuristics_p): New function.
21792         (predict_iv_comparison): Use it.
21793         (predict_loops): Walk from innermost loops; do not predict edges
21794         leaving multiple loops multiple times; implement
21795         PRED_LOOP_ITERATIONS_MAX heuristics.
21796         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21798 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
21800         * cfg.c (check_bb_profile): Do not report mismatched profiles when
21801         only edges out of BB are EH edges.
21803 2016-06-04  Martin Sebor  <msebor@redhat.com>
21804             Marcin Baczyński  <marbacz@gmail.com>
21806         PR c/48116
21807         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21808         a void expression in a void function.
21810 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
21812         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21813         aux; dump reasons of decisions.
21814         (should_duplicate_loop_header_p): Likewise.
21815         (do_while_loop_p): Likewise.
21816         (ch_base::copy_headers): Dump asi num insns duplicated.
21818 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
21820         PR tree-optimization/71405
21821         * tree-ssa.c (execute_update_addresses_taken): For clobber with
21822         incompatible type, build a new clobber with the right type instead
21823         of building a VIEW_CONVERT_EXPR around it.
21825 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
21827         PR tree-optimization/52171
21828         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21829         by_pieces_ninsns instead of move_by_pieces_ninsns.
21831 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
21833         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21834         for reg+reg addressing mode.
21836 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21838         * rs6000-c.c (c/c-tree.h): Add #include.
21839         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21840         in C++ when found in the base position of vec_ld or vec_st.
21842 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
21844         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21845         use of profile unless profile status is PROFILE_READ.
21846         * profile.c (compute_branch_probabilities): Set profile status
21847         only after reporting predictor hitrates.
21849 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
21851         PR target/71276
21852         PR target/71277
21853         * common.opt (ffp-int-builtin-inexact): New option.
21854         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21855         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21856         (ceil@var{m}2): Document dependence on this option.
21857         * ipa-inline-transform.c (inline_call): Handle
21858         flag_fp_int_builtin_inexact.
21859         * ipa-inline.c (can_inline_edge_p): Likewise.
21860         * config/i386/i386.md (rintxf2): Do not test
21861         flag_unsafe_math_optimizations.
21862         (rint<mode>2_frndint): New define_insn.
21863         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21864         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
21865         for 387 instead of extending and truncating.
21866         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21867         !flag_trapping_math instead of flag_unsafe_math_optimizations.
21868         Change to frndint<mode>2_<rounding>.
21869         (frndintxf2_<rounding>_i387): Likewise.  Change to
21870         frndint<mode>2_<rounding>_i387.
21871         (<rounding_insn>xf2): Likewise.
21872         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21873         !flag_trapping_math instead of flag_unsafe_math_optimizations for
21874         x87.  Test TARGET_ROUND || !flag_trapping_math ||
21875         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21876         SSE.  Use ROUND_NO_EXC in constant operand of
21877         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
21878         for 387 instead of extending and truncating.
21880 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
21881             Julia Koval  <julia.koval@intel.com>
21883         PR target/66960
21884         PR target/67630
21885         PR target/67634
21886         PR target/67841
21887         PR target/68037
21888         PR target/68618
21889         PR target/68661
21890         PR target/69575
21891         PR target/69596
21892         PR target/69734
21893         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21894         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21895         all registers, except for function return registers if there are
21896         no caller-saved registers.
21897         (ix86_set_func_type): New function.
21898         (ix86_set_current_function): Call ix86_set_func_type to set
21899         no_caller_saved_registers and func_type.  Call reinit_regs if
21900         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
21901         nor x87 instructions in interrupt handler nor function with
21902         no_caller_saved_registers attribute.
21903         (ix86_function_ok_for_sibcall): Return false if there are no
21904         caller-saved registers.
21905         (type_natural_mode): Don't warn ABI change for MMX in interrupt
21906         handler.
21907         (ix86_function_arg_advance): Skip for callee in interrupt handler.
21908         (ix86_function_arg): Return special arguments in interrupt handler.
21909         (ix86_promote_function_mode): Promote pointer to word_mode only
21910         for normal functions.
21911         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21912         interrupt handler.
21913         (ix86_epilogue_uses): New function.
21914         (ix86_hard_regno_scratch_ok): Likewise.
21915         (ix86_save_reg): Preserve all registers in interrupt handler
21916         after reload.  Preserve all registers, except for function return
21917         registers, if there are no caller-saved registers after reload.
21918         (find_drap_reg): Always use callee-saved register if there are
21919         no caller-saved registers.
21920         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21921         for interrupt handler.
21922         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21923         Emit cld instruction if stringops are used in interrupt handler
21924         or interrupt handler isn't a leaf function.
21925         (ix86_expand_epilogue): Generate interrupt return for interrupt
21926         handler and pop the 'ERROR_CODE' off the stack before interrupt
21927         return in exception handler.
21928         (ix86_expand_call): Disallow calling interrupt handler directly.
21929         If there are no caller-saved registers, mark all registers that
21930         are clobbered by the call which returns as clobbered.
21931         (ix86_handle_no_caller_saved_registers_attribute): New function.
21932         (ix86_handle_interrupt_attribute): Likewise.
21933         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21934         attributes.
21935         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21936         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21937         accumulation in interrupt function if stack may be realigned to
21938         avoid DRAP.
21939         (EPILOGUE_USES): New.
21940         (function_type): New enum.
21941         (machine_function): Add func_type and no_caller_saved_registers.
21942         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21943         (interrupt_return): New pattern.
21944         * doc/extend.texi: Document x86 interrupt and
21945         no_caller_saved_registers attributes.
21947 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
21949         PR tree-optimization/52171
21950         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21951         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
21952         Look for constant strings.  Move some code to emit_block_cmp_hints
21953         and use it.
21954         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21955         * defaults.h (COMPARE_MAX_PIECES): New macro.
21956         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21957         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21958         (clear_by_pieces_1): Don't declare.  Move definition before use.
21959         (can_do_by_pieces): New static function.
21960         (can_move_by_pieces): Use it.  Return bool.
21961         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
21962         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
21963         (class pieces_addr); New.
21964         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21965         pieces_addr::adjust, pieces_addr::increment_address,
21966         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21967         functions for it.
21968         (class op_by_pieces_d): New.
21969         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21970         functions for it.
21971         (class move_by_pieces_d, class compare_by_pieces_d,
21972         class store_by_pieces_d): New subclasses of op_by_pieces_d.
21973         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21974         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21975         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21976         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21977         compare_by_pieces_d::finish_mode): New member functions.
21978         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21979         functions.
21980         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21981         (emit_block_cmp_hints): New function.
21982         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21983         use the newly defined classes.
21984         * expr.h (by_pieces_constfn): New typedef.
21985         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21986         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21987         (move_by_pieces_ninsns): Don't declare.
21988         (can_move_by_pieces): Change return value to bool.
21989         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21990         (compare_by_pieces_branch_ratio): New hook.
21991         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21992         (by_pieces_ninsns): Declare.
21993         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21994         COMPARE_BY_PIECES.
21995         (default_compare_by_pieces_branch_ratio): New function.
21996         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21997         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21998         * doc/tm.texi: Regenerate.
21999         * tree-ssa-strlen.c: Include "builtins.h".
22000         (handle_builtin_memcmp): New static function.
22001         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
22002         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
22004 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
22006         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
22007         relevant stmts which are simple and invariant.
22008         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
22009         instead of simple and invariant
22011 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
22013         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
22014         (vectorizable_reduction): Check for new relevant state.
22015         (vectorizable_live_operation): vectorize live stmts using
22016         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
22017         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
22018         (vect_stmt_relevant_p): Check for stmts which are only used live.
22019         (process_use): Use of a stmt does not inherit it's live value.
22020         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
22021         (vect_analyze_stmt): Check for new relevant state.
22022         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
22023         outside the loop, but not inside it.
22025 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
22027         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
22028         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
22029         (vect_get_vec_def_for_operand): Split out code.
22031 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
22033         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
22035 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
22037         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
22039 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22041         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
22043 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
22045         PR middle-end/71387
22046         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
22047         to noreturn e->callee->decl that has void return type and void
22048         arguments, adjust gimple_call_fntype and remove lhs even if it had
22049         previously addressable type.
22051 2016-06-02  Jeff Law  <law@redhat.com>
22053         PR tree-optimization/71328
22054         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
22055         error when checking for a jump back onto the copied path.
22057 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
22059         * config/microblaze/microblaze.c (get_branch_target): Add return
22060         NULL_RTX for the non-CALL_P case.
22061         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
22062         (insert_wic): Remove unused local "j".
22064 2016-06-02  Martin Liska  <mliska@suse.cz>
22066         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
22068 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
22069             Julia Koval  <julia.koval@intel.com>
22071         * function.c (assign_parm_setup_stack): Force source into a
22072         register if needed.
22073         * target.def (function_incoming_arg): Update documentation to
22074         allow arbitrary address computation based on hard register.
22075         * doc/tm.texi: Regenerated.
22077 2016-06-02  Martin Liska  <mliska@suse.cz>
22079         * predict.c (combine_predictions_for_bb): Fix first match in
22080         cases where a first predictor contains more than one occurence
22081         in list of predictors.  Take the best value in such case.
22083 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22085         PR rtl-optimization/71295
22086         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
22087         offset would go over the size of the inner mode reject it.
22089 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
22091         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
22092         x=x,x and v=v,m instead of x=x,m.
22094         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
22095         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
22096         alternative to v=rm,C.
22098         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
22099         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
22100         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
22101         instead of vex for the last two above mentioned alternatives.
22103 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22105         PR target/70830
22106         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
22108 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
22110         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
22112 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
22114         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
22115         from int to unsigned.
22117 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
22119         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
22120         alternatives, eliminating preferred register class.  Add support
22121         for the MTVSRDD instruction in ISA 3.0.
22122         (vsx_splat_v4si_internal): Use splat_input_operand instead of
22123         reg_or_indexed_operand.
22124         (vsx_splat_v4sf_internal): Likewise.
22126 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
22128         PR target/71186
22129         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
22130         for loading up all 0's or all 1's.
22132 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22134         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
22136 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
22138         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
22139         extension.
22140         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
22141         * gcc.c (set_source_date_epoch_envvar): New function, sets
22142         the SOURCE_DATE_EPOCH environment variable to the current time.
22144 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
22146         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
22147         the factor for live Phi nodes.
22149 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
22151         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
22152         * tree-parloops.c (parallelize_loops): likewise.
22153         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
22154         tree_unswitch_outer_loop): likewise.
22156 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
22158         PR middle-end/71371
22159         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
22160         around creation of the temporary.
22162 2016-06-01  Richard Biener  <rguenther@suse.de>
22164         PR tree-optimization/71366
22165         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
22166         (unloop_loops): Move removing edges here ...
22167         (try_unroll_loop_completely): ... from here.
22168         (try_peel_loop): ... and here.
22169         (tree_unroll_loops_completely_1): Track parent loops via
22170         bitmap of header BBs.
22171         (tree_unroll_loops_completely): Adjust for that.
22173 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22175         * config/rs6000/altivec.h (vec_slv): New macro.
22176         (vec_srv): New macro.
22177         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
22178         (UNSPEC_VSRV): New value.
22179         (vslv): New insn.
22180         (vsrv): New insn.
22181         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
22182         (vsrv): New builtin definition.
22183         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
22184         define argument types for new builtin.
22185         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
22186         new builtin.
22187         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
22188         functions.
22190 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
22191             Jocelyn Mayer  <l_indien@magic.fr>
22193         PR target/67310
22194         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
22195         detect processor family for signature_CENTAUR_ebx.
22196         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
22197         signature_CENTAUR_ebx.
22198         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
22199         <default>: Pass x86-64 for has_longmode.
22201 2016-06-01  Nathan Sidwell  <nathan@acm.org>
22203         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
22204         undefined weak.
22206 2016-06-01  Richard Biener  <rguenther@suse.de>
22208         PR tree-optimization/71261
22209         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
22210         of stmts successfully put in the bool pattern.  Remove
22211         single-use restriction.
22212         (adjust_bool_pattern_cast): Add cast at the use site via the
22213         pattern def sequence.
22214         (adjust_bool_pattern): Remove recursion, maintain a hash-map
22215         of patterned defs.  Use the pattern def seqence instead of
22216         multiple independent patterns.
22217         (sort_after_uid): New qsort compare function.
22218         (adjust_bool_stmts): New function to process stmts in the bool
22219         pattern in IL order.
22220         (vect_recog_bool_pattern): Adjust.
22221         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
22222         (ifcvt_walk_pattern_tree): Likewise.
22223         (stmt_is_root_of_bool_pattern): Likewise.
22224         (ifcvt_repair_bool_pattern): Likewise.
22225         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
22227 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
22229         * loop-unroll.c (decide_unroll_constant_iterations,
22230         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
22231         likely upper bounds.
22232         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
22234 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
22236         * tree-core.h (enum omp_clause_code): Remove
22237         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
22239 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22241         * config/arm/sync.md (arm_store_exclusive<mode>):
22242         Use 'H' output modifier on operands[2] rather than creating a new
22243         entry in out-of-bounds memory of the operands array.
22244         (arm_store_release_exclusivedi): Likewise.
22246 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22248         * config/arm/arm.c (arm_fusion_enabled_p): New function.
22249         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
22250         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
22251         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
22253 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
22255         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
22256         into account live statements for mask producers.
22258 2016-06-01  Richard Biener  <rguenther@suse.de>
22260         PR tree-optimization/71311
22261         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
22262         restrict to non-INTEGER_CST @0.
22264 2016-06-01  Richard Biener  <rguenther@suse.de>
22266         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
22267         (relational patterns): Use :c to avoid pattern duplications.
22269 2016-06-01  Richard Biener  <rguenther@suse.de>
22271         * genmatch.c (comparison_code_p): New predicate.
22272         (swap_tree_comparison): New function.
22273         (commutate): Add for_vec parameter to append new for entries.
22274         Support commutating relational operators by swapping it alongside
22275         operands.
22276         (lower_commutative): Adjust.
22277         (dt_simplify::gen): Do not pass artificial operators to gen
22278         functions.
22279         (decision_tree::gen): Do not add artificial operators as parameters.
22280         (parser::parse_expr): Verify operator commutativity when :c is
22281         applied.  Allow :C to override this.
22282         * match.pd: Adjust patterns to use :C instead of :c where required.
22284 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
22286         PR tree-optimization/71077
22287         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
22288         the combining step, use boolean_false_node and boolean_true_node
22289         as the designated false/true return values.
22291 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
22293         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
22294         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
22295         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
22296         PRED_LOOP_EXIT.
22298 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
22300         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
22301         of flags impliying the register renaming.
22302         * toplev.c (process_options): Do not imply flag_rename_registers with
22303         loop peeling.
22305 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
22307         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
22308         default implementation.
22310 2016-05-31  Nathan Sidwell  <nathan@acm.org>
22312         * dwarf2out.c (cur_line_info_table): Add GTY marker.
22314 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
22316         * config/sh/constraints.md (b): Remove constraint.
22317         * config/sh/predicates.md (arith_reg_operand): Remove
22318         TARGET_REGISTER_P.
22319         * config/sh/sh-modes.def (PDI): Remove.
22320         * config/sh/sh.c (sh_target_reg_class,
22321         sh_optimize_target_register_callee_saved): Remove functions.
22322         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
22323         (sh_expand_epilogue): Update comment.
22324         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
22325         sh_secondary_reload): Remove TARGET_REGS related code.
22326         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
22327         TARGET_REGISTER_P): Remove macros.
22328         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
22329         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
22330         TR1_REG, TR2_REG): Remove constants.
22331         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
22333 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
22335         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
22336         define_expand patterns.
22337         (adddi3_compact): Rename to adddi3.
22338         (subdi3_compact): Rename to subdi3.
22339         (*negdi2): Rename to negdi2.
22340         (*abs<mode>2): Rename to abs<mode>2.
22342 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
22344         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
22345         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
22346         (atomic_sub_fetchsi): ... this new pattern.
22347         (mvtc): Add CC_REG clobber.
22349 2016-05-31  Marek Polacek  <polacek@redhat.com>
22351         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
22353 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22355         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
22356         aarch64_fusion_enabled_p to check for fusion capabilities.
22358 2016-05-31  Richard Biener  <rguenther@suse.de>
22360         PR tree-optimization/71352
22361         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22362         minus one and a negate.
22364 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22366         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22367         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22368         Delete prototype.
22369         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22370         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22371         Remove use of aarch64_simd_attr_length_move, set length attribute
22372         directly.
22373         (*aarch64_be_movoi): Likewise.
22374         (*aarch64_be_movci): Likewise.
22375         (*aarch64_be_movxi): Likewise.
22377 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
22379         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22380         It no longer does that.
22381         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22383 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
22385         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22386         attribute __unused__.
22388 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22390         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22391         * config/arm/arm.c (arm_arch_thumb1): Define.
22392         (arm_option_override): Initialize arm_arch_thumb1.
22393         * config/arm/arm.h (arm_arch_thumb1): Declare.
22394         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22395         support Thumb-1 ISA.
22397 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
22399         PR target/71346
22400         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22401         `Yv' for scalar operand.
22403 2016-05-31  Tom de Vries  <tom@codesourcery.com>
22405         PR tree-optimization/69068
22406         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22407         phis with more than two args.
22409 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
22411         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22412         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22413         target.
22415 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
22417         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22418         tune_64.
22419         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22420         support on SPARC.
22421         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22422         cpu_32, cpu_64, tune_32 and tune_64.
22423         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22425 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
22427         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22429 2016-05-30  Andi Kleen  <ak@linux.intel.com>
22431         * auto-profile.c (read_profile): Replace asserts with errors
22432         when file does not exist.
22433         * gcov-io.c (gcov_read_words): Dito.
22435 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
22437         * tree-cfg.c (print_loop): Print likely upper bounds.
22439 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
22441         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22442         * opts.c (default_options): Enable peel loops at -O3.
22443         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22444         (try_peel_loop): Do not re-peel already peeled loops;
22445         use likely upper bounds; fix profile updating.
22446         (pass_complete_unroll::execute): Initialize peeled_loops.
22448 2016-05-30  Martin Liska  <mliska@suse.cz>
22450         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22451         computed costs by frequency of BB they belong to.
22452         (get_scaled_computation_cost_at): New function.
22454 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
22455             Marc Glisse  <marc.glisse@inria.fr>
22457         PR tree-optimization/71289
22458         * match.pd (-1 / B < A, A > -1 / B): New transformations.
22460 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
22462         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22464 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
22466         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22467         for peeled copies; avoid underflow when updating estimates; correctly
22468         scale loop profile.
22470 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
22472         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22473         r236875. Corrected oe3 to oe2 as obvious.
22475 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
22477         PR middle-end/71269
22478         PR middle-end/71252
22479         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22480         that inserted stmt will not dominate stmts that defines its operand.
22481         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22482         (rewrite_expr_tree_parallel): Likewise.
22484 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
22486         PR middle-end/71252
22487         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22488         all fields including stmt_to_insert are swapped.
22490 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
22492         * predict.h (force_edge_cold): Declare.
22493         * predict.c (force_edge_cold): New function.
22494         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22495         updating.
22496         (canonicalize_loop_induction_variables): Fix formating.
22498 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
22500         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22501         (visium_expand_copysign): Use gen_int_mode directly.
22502         (visium_compute_frame_size): Minor tweaks.
22504 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
22506         * tree-vect-loop.c (vect_analyze_loop_2): Use
22507         likely_max_stmt_executions_int.
22509 2016-05-30  Tom de Vries  <tom@codesourcery.com>
22511         PR tree-optimization/69067
22512         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22514 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
22516         PR target/71245
22517         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22518         New peepholes to remove unneeded fild/fistp pairs.
22519         (define_peephole2 atomic_loaddi_fpu): Ditto.
22521 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22523         * predict.c (maybe_hot_frequency_p): Avoid division.
22525 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
22527         * doc/install.texi: Use https for shop.fsf.org.
22529 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22531         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22532         likely_max_stmt_executions_int.
22534 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22536         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22537         likely_max_stmt_executions_int.
22539 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22541         * profile.c (compute_branch_probabilities): Do not report hitrates
22542         here.
22543         (branch_prob): Report hitrates here.
22544         * predict.c (gimple_predict_edge): Do not assert profile status;
22545         fix formatting issues.
22547 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22549         * predict.c (edge_predicted_by_p): New function.
22550         (predict_paths_for_bb): Do not put multiple predictions of the same type
22551         on one edge.
22553 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22555         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22556         commit.
22558 2016-05-28  Alan Modra  <amodra@gmail.com>
22560         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22562 2016-05-28  Alan Modra  <amodra@gmail.com>
22564         PR rtl-optimization/71275
22565         * ira.c (ira): Free dominance info.
22567 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
22569         * doc/sourcebuild.texi: New address for upstream Go repository.
22571 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22573         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22574         (TARGET_ARM_V7M): Likewise.
22576 2016-05-26  Jeff Law  <law@redhat.com>
22578         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22579         (thread_across_edge): Remove calls to find_jump_threads_backwards.
22580         * passes.def: Add jump threading passes before DOM/VRP.
22581         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22582         argument to a basic block from an edge.  Remove tests which are
22583         handled elsewhere.
22584         (pass_data_thread_jumps, class pass_thread_jumps): New.
22585         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22586         (make_pass_thread_jumps): Likewise.
22587         * tree-pass.h (make_pass_thread_jumps): Declare.
22589 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22591         * config/visium/visium-protos.h (split_double_move): Rename into...
22592         (visium_split_double_move): ...this.
22593         (visium_split_double_add): Declare.
22594         * config/visium/visium.c (split_double_move): Rename into...
22595         (visium_split_double_move): ...this.
22596         (visium_split_double_add): New function.
22597         (visium_expand_copysign): Renumber operands for consistency.
22598         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22599         (DFmode move splitter): Likewise.
22600         (*addi3_insn): Split by means of visium_split_double_add.
22601         (*adddi3_insn_flags): Delete.
22602         (*plus_plus_sltu<subst_arith>): New insn.
22603         (*subdi3_insn): Split by means of visium_split_double_add.
22604         (subdi3_insn_flags): Delete.
22605         (*minus_minus_sltu<subst_arith>): New insn.
22606         (*negdi2_insn): Split by means of visium_split_double_add.
22607         (*negdi2_insn_flags): Delete.
22609 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
22611         * configure.ac: Treat a --with-headers option without argument
22612         the same as the default (i.e. consult sys-include directory).
22613         * configure: Regenerate.
22615 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22617         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22618         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22619         prototype.
22620         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22621         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
22623 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
22625         PR target/63596
22626         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22627         tree-stdarg analysis results.
22628         (aarch64_setup_incoming_varargs): Likewise.
22630 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
22632         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22633         va_list_gpr_counter_field and va_list_fpr_counter_field.
22635 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
22637         PR67609
22638         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22639         * config/aarch64/aarch64.c
22640         (aarch64_cannot_change_mode_class): Remove function.
22641         * config/aarch64/aarch64-protos.h
22642         (aarch64_cannot_change_mode_class): Remove.
22644 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
22646         * cfgloop.c (record_niter_bound): Record likely upper bounds.
22647         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22648         get_likely_max_loop_iterations_int): New.
22649         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22650         any_likely_upper_bound.
22651         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22652         Declare.
22653         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22654         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22655         upper bound.
22656         (unroll_loop_constant_iterations): Likewise.
22657         (unroll_loop_runtime_iterations): Likewise.
22658         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22659         * lto-streamer-out.c (output_cfg): Likewise.
22660         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22661         bounds.
22662         (canonicalize_loop_induction_variables): Dump likely upper bounds.
22663         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22664         (likely_max_loop_iterations): New.
22665         (likely_max_loop_iterations_int): New.
22666         (likely_max_stmt_executions): New.
22667         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22668         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22669         likely_max_stmt_executions): Declare.
22671 2016-05-27  Marek Polacek  <polacek@redhat.com>
22673         PR middle-end/71308
22674         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22676 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22678         * config/s390/s390.md (2x risbg splitters): Use
22679         reg_overlap_mentioned_p instead of rtx_equal_p.
22681 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22683         * combine.c (make_compound_operation): Take known zero bits into
22684         account when checking for possible zero_extend.
22686 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22688         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22689         Use const_int_operand for operand 2 predicate.  Simplify expand code
22690         as a result.
22692 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
22694         PR middle-end/71279
22695         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22696         into comparison.
22698 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22700         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22701         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22702         that returns CC_SESWPmode and CC_ZESWPmode.
22703         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22704         and CC_SESWPmode.
22705         (aarch64_rtx_costs): Likewise.
22707 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22709         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22710         for ISA 3.0 min/max support.
22711         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22712         conditional move support.
22713         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22714         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22715         available.
22716         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22717         conditional moves where the comparison type is different from move
22718         type.
22719         (fp_minmax): New code iterator for smin/smax.
22720         (minmax): New code attributes for min/max.
22721         (SMINMAX): Likewise.
22722         (smax<mode>3): Combine min, max insns into one insn using the
22723         fp_minmax code iterator.  Add support for ISA 3.0 min/max
22724         instructions that don't need -ffast-math.
22725         (s<minmax><mode>3): Likewise.
22726         (smax<mode>3_vsx): Likewise.
22727         (smin<mode>3): Likewise.
22728         (s<minmax><mode>3_vsx): Likewise.
22729         (smin<mode>3_vsx): Likewise.
22730         (pre-VSX min/max splitters): Likewise.
22731         (s<minmax><mode>3_fpr): Likewise.
22732         (movsfcc): Rewrite floating point conditional moves to combine
22733         SFmode/DFmode into a single insn.
22734         (mov<mode>cc): Likewise.
22735         (movdfcc): Likewise.
22736         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22737         SFDF2 iterators to handle all combinations.
22738         (fseldfsf4): Likewise.
22739         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22740         (fseldfdf4): Likewise.
22741         (fselsfdf4): Likewise.
22742         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22743         comparison instructions that set a 0/-1 mask, and use it for
22744         floating point conditional move via XXSEL.
22745         (fpmask<mode>): Likewise.
22746         (xxsel<mode>): Likewise.
22747         * config/rs6000/predicates.md (min_max_operator): Delete, no
22748         longer used.
22749         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22750         instructions that generate a 0/-1 mask for use with XXSEL.
22751         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22752         say whether floating point min/max is available, either through
22753         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22754         (TARGET_MINMAX_DF): Likewise.
22756 2016-05-27  Alan Modra  <amodra@gmail.com>
22758         PR rtl-optimization/71275
22759         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22760         for update_equiv_regs and combine_and_move_insns.
22762 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
22764         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22765         if_then_else or cond RTXes to calculate attribute value.
22766         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22767         <attr "length_immediate>: Ditto.
22768         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22769         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22770         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22771         <attr "type">: Ditto.
22772         <attr "prefix_data16">: Ditto.
22773         <attr "prefix_extra">: Ditto.
22774         <attr "length_immediate">: Ditto.
22775         <attr "prefix">: Ditto.
22776         (vec_set<mode>_0) <attr "isa">: Ditto.
22777         <attr "prefix_extra">: Ditto.
22778         <attr "length_immediate">: Ditto.
22779         <attr "prefix">: Ditto.
22780         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22781         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22782         (sse2_storelpd) <attr "prefix_data16">: Ditto.
22783         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22784         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22785         <attr "length_immediate">: Ditto.
22786         <attr "prefix">: Ditto.
22787         (sse2_movsd) <attr "length_immediate">: Ditto.
22788         <attr "prefix">: Ditto.
22789         (vec_concatv2df)  <attr "isa">: Ditto.
22790         <attr "prefix">: Ditto.
22791         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22792         (*vec_extractv2di_1) <attr "isa">: Ditto.
22793         <attr "type">: Ditto.
22794         <attr "length_immediate">: Ditto.
22795         <attr "prefix_rex">: Ditto.
22796         <attr "prefix_extra">: Ditto.
22797         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22798         <attr "prefix_extra">: Ditto.
22799         <attr "length_immediate">: Ditto.
22800         (vec_concatv2di) <attr "isa">: Ditto.
22801         <attr "prefix_extra">: Ditto.
22802         <attr "length_immediate">: Ditto.
22803         <attr "prefix">: Ditto.
22805 2016-05-26  Martin Liska  <mliska@suse.cz>
22807         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22808         function.
22809         (operator+): Likewise.
22810         (operator-): Likewise.
22811         (comp_cost::operator+=): Likewise.
22812         (comp_cost::operator-=): Likewise.
22813         (comp_cost::operator/=): Likewise.
22814         (comp_cost::operator*=): Likewise.
22815         (operator<): Likewise.
22816         (operator==): Likewise.
22817         (operator<=): Likewise.
22818         (new_cost): Remove.
22819         (infinite_cost_p): Likewise.
22820         (add_costs): Likewise.
22821         (sub_costs): Likewise.
22822         (compare_costs): Likewise.
22823         (set_group_iv_cost): Use the newly introduced functions.
22824         (get_address_cost): Likewise.
22825         (get_shiftadd_cost): Likewise.
22826         (force_expr_to_var_cost): Likewise.
22827         (split_address_cost): Likewise.
22828         (ptr_difference_cost): Likewise.
22829         (difference_cost): Likewise.
22830         (get_computation_cost_at): Likewise.
22831         (determine_group_iv_cost_generic): Likewise.
22832         (determine_group_iv_cost_address): Likewise.
22833         (determine_group_iv_cost_cond): Likewise.
22834         (autoinc_possible_for_pair): Likewise.
22835         (determine_group_iv_costs): Likewise.
22836         (cheaper_cost_pair): Likewise.
22837         (iv_ca_recount_cost): Likewise.
22838         (iv_ca_set_no_cp): Likewise.
22839         (iv_ca_set_cp): Likewise.
22840         (iv_ca_cost): Likewise.
22841         (iv_ca_new): Likewise.
22842         (iv_ca_dump): Likewise.
22843         (iv_ca_narrow): Likewise.
22844         (iv_ca_prune): Likewise.
22845         (iv_ca_replace): Likewise.
22846         (try_add_cand_for): Likewise.
22847         (try_improve_iv_set): Likewise.
22848         (find_optimal_iv_set): Likewise.
22850 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
22852         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22853         that internal functions will clobber all caller-saved registers.
22855 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
22857         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22858         Return a better case_values_threshold when optimizing.
22860 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
22862         * config/aarch64/aarch64-simd.md (aarch64_combinez):
22863         Add ? to integer variant.
22864         (aarch64_combinez_be): Likewise.
22866 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
22868         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22869         instead of x constraint.
22870         (vcvtps2ph256<mask_name>): Likewise.
22872         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22873         alternative.  Formatting fix.
22875         * config/i386/sse.md
22876         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22877         to ...
22878         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22879         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
22880         maybe_evex prefix instead of vex.
22881         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
22882         EXT_REX_SSE_REG_P (op0) case in the splitter.
22884 2016-05-25  Jeff Law  <law@redhat.com>
22886         PR tree-optimization/71272
22887         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22888         Update comments.  Add test for empty path.
22890 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
22892         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22893         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22894         special case builtin.
22895         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22896         code for ALTIVEC_BUILTIN_VEC_CMPNE.
22897         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22898         for __builtin_vec_cmpne.
22900 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
22902         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22903         redundant test and bail out if the type of the new operand is not
22904         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22906 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
22908         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22909         (x_ix86_target_flags_explicit): Remove.
22910         * config/i386/i386.c (ix86_function_specific_save): Do not copy
22911         x_ix86_target_flags_explicit.
22912         (ix86_function_specific_restore): Ditto.
22914 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
22915             H.J. Lu  <hongjiu.lu@intel.com>
22917         PR target/70738
22918         * common/config/i386/i386-common.c
22919         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22920         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22921         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22922         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22923         (-mgeneral-regs-only): Add new option.
22924         * config/i386/i386.c (ix86_option_override_internal): Don't enable
22925         x87 instructions if only general registers are allowed.
22926         (ix86_target_string): Add ix86_flags argument. Handle additional
22927         flags options through ix86_flags argument.  Update all callers.
22928         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22930 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22932         PR rtl-optimization/66940
22933         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22934         decrementing desired_val will not overflow before performing these
22935         operations.
22937 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
22939         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22940         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22941         * config/i386/i386.c (enum ix86_builtins): Add
22942         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22943         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22944         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22945         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22946         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22947         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22948         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22949         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22950         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22951         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22952         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22953         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22954         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22955         __builtin_ia32_cvtps2dq512_mask.
22956         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22957         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22958         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22959         * config/i386/sse.md
22960         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22961         Rename to ...
22962         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22963         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22964         to ...
22965         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22966         (avx512f_vec_pack_sfix_v8df): New define_expand.
22967         (avx512f_roundpd512): Rename to ...
22968         (avx512f_round<castmode>512): ... this.  Change iterator.
22969         (avx512f_roundps512_sfix): New define_expand.
22970         (round<mode>2_sfix): Change iterator.
22972 2016-05-25  Nick Clifton  <nickc@redhat.com>
22974         * config/msp430/msp430.c (msp430_attr): Produce an error if a
22975         static interrupt handler is detected.
22976         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22977         default linker script.
22978         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22979         the low part of a symbolic pointer.
22981 2016-05-25  Richard Biener  <rguenther@suse.de>
22983         PR tree-optimization/71261
22984         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22985         interesting stmt instead of immediate uses when looking
22986         for the use operand to replace.
22988 2016-05-25  Martin Liska  <mliska@suse.cz>
22990         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22992 2016-05-25  Richard Biener  <rguenther@suse.de>
22994         PR tree-optimization/71264
22995         * tree-vect-stmts.c (vect_init_vector): Properly deal with
22996         vector type val.
22998 2016-05-25  Martin Liska  <mliska@suse.cz>
23000         PR tree-optimization/71239
23001         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
23002         if DECL_SIZE is NULL.
23004 2016-05-25  Richard Biener  <rguenther@suse.de>
23006         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
23007         * tree-if-conv.c (pass_data_if_conversion): Use it.
23009 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23011         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
23012         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
23013         * varpool.c (varpool_node::get_availability): Likewise.
23015 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23017         * config/rs6000/altivec.md (VNEG iterator): New iterator for
23018         VNEGW/VNEGD instructions.
23019         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
23020         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
23021         support for ISA 3.0 VNEGW/VNEGD instructions.
23023 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
23025         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
23026         pointers inside OACC_DATA regions.
23027         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
23028         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
23029         (gimplify_adjust_omp_clauses): Fix typo in comment.
23031 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23033         * config/rs6000/altivec.md (VParity): New mode iterator for vector
23034         parity built-in functions.
23035         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
23036         zeros.
23037         (p9v_parity<mode>2): Likewise.
23038         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
23039         parity.
23040         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
23041         (parity<mode>2): ISA 3.0 expander for vector parity.
23042         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
23043         power9 built-ins.
23044         (BU_P9_64BIT_MISC_0): Likewise.
23045         (BU_P9_MISC_0): Likewise.
23046         (BU_P9V_AV_1): Likewise.
23047         (BU_P9V_AV_2): Likewise.
23048         (BU_P9V_AV_3): Likewise.
23049         (BU_P9V_AV_P): Likewise.
23050         (BU_P9V_VSX_1): Likewise.
23051         (BU_P9V_OVERLOAD_1): Likewise.
23052         (BU_P9V_OVERLOAD_2): Likewise.
23053         (BU_P9V_OVERLOAD_3): Likewise.
23054         (VCTZB): Add vector count trailing zeros support.
23055         (VCTZH): Likewise.
23056         (VCTZW): Likewise.
23057         (VCTZD): Likewise.
23058         (VPRTYBD): Add vector parity support.
23059         (VPRTYBQ): Likewise.
23060         (VPRTYBW): Likewise.
23061         (VCTZ): Add overloaded vector count trailing zeros support.
23062         (VPRTYB): Add overloaded vector parity support.
23063         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23064         overloaded vector count trailing zeros and parity instructions.
23065         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
23066         vector parity support.
23067         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
23068         trailing zeros support.
23069         (vec_cntlz): Likewise.
23070         (vec_vctzb): Likewise.
23071         (vec_vctzd): Likewise.
23072         (vec_vctzh): Likewise.
23073         (vec_vctzw): Likewise.
23074         (vec_vprtyb): Add ISA 3.0 vector parity support.
23075         (vec_vprtybd): Likewise.
23076         (vec_vprtybw): Likewise.
23077         (vec_vprtybq): Likewise.
23078         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
23079         the ISA 3.0 vector count trailing zeros and vector parity built-in
23080         functions.
23082 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
23084         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
23085         when there is stmt_to_insert.
23087 2016-05-24  Martin Sebor  <msebor@redhat.com>
23089         PR c++/71147
23090         * tree.h (complete_or_array_type_p): New inline function.
23092 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
23094         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
23095         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
23096         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
23098         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
23099         Limit 1st alternative to noavx isa, split 2nd alternative into one
23100         noavx and one avx alternative, use *x and Bm in the former and
23101         x and m in the latter.
23103         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
23104         of sse4 for the first alternative, drop %v from the template
23105         and d operand modifier.  Split second alternative into one sse4_noavx
23106         and one avx alternative, use *x instead of *v in the former and v
23107         instead of *v in the latter.
23108         (*sse4_1_extractps): Use noavx isa instead of * for the first
23109         alternative, drop %v from the template.  Split second alternative into
23110         one noavx and one avx alternative, use *x instead of *v in the
23111         former and v instead of *v in the latter.
23112         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
23113         with noavx and the last one with avx.
23114         (sse4_1_phminposuw): Guard first alternative with noavx isa,
23115         split the second one into one noavx and one avx alternative,
23116         use *x and Bm in the former and x and m in the latter one.
23117         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
23118         alternatives.
23120         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
23121         first two alternatives to noavx, use *x instead of *v in the second
23122         one, add avx alternative without *.
23123         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
23124         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
23125         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
23127 2016-05-24  Jeff Law  <law@redhat.com>
23129         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
23130         New function, extracted from...
23131         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
23132         Allow simple copies and constant initializations in the SSA chain.
23134 2016-05-24  Marek Polacek  <polacek@redhat.com>
23136         PR c/71249
23137         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
23138         scope.
23140 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
23142         PR c++/71257
23143         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
23144         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
23145         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
23146         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
23147         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
23149 2016-05-24  Richard Biener  <rguenther@suse.de>
23151         PR tree-optimization/71240
23152         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
23153         has integral type.
23155 2016-05-24  Richard Biener  <rguenther@suse.de>
23157         PR tree-optimization/71230
23158         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
23160 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
23162         * tree-vectorizer.h (vectorizable_comparison): Delete.
23163         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
23164         PURE_SLP_STMT check.
23165         * tree-vect-stmts.c (vectorizable_call): Likewise.
23166         (vectorizable_simd_clone_call): Likewise.
23167         (vectorizable_conversion): Likewise.
23168         (vectorizable_assignment): Likewise.
23169         (vectorizable_shift): Likewise.
23170         (vectorizable_operation): Likewise.
23171         (vectorizable_load): Likewise.
23172         (vectorizable_condition): Likewise.
23173         (vectorizable_store): Likewise.  Assert that we don't have
23174         hybrid SLP.
23175         (vectorizable_comparison): Make static.  Remove redundant
23176         PURE_SLP_STMT check.
23177         (vect_transform_stmt): Assert that we always have an slp_node
23178         if PURE_SLP_STMT.
23180 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23182         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
23183         operands[2] against 1 with comparison against CONST1_RTX.
23184         (<shift>di3_neon): Likewise.
23185         * config/arm/predicates.md (const0_operand): Replace with comparison
23186         against CONST0_RTX.
23188 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23190         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
23191         operands[2] against 1 with comparison against CONST1_RTX.
23192         (ashrdi3): Likewise.
23193         (lshrdi3): Likewise.
23194         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
23195         UINTVAL.
23196         (ashrsi3): Likewise.
23197         (lshrsi3): Likewise.
23198         (rotrsi3): Likewise.
23199         (define_split above *compareqi_eq0): Likewise.
23200         (define_split above "prologue"): Likewise.
23201         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
23202         * config/arm/predicates.md (shift_operator): Likewise.
23203         (shift_nomul_operator): Likewise.
23204         (sat_shift_operator): Likewise.
23205         (thumb1_cmp_operand): Likewise.
23206         (const_neon_scalar_shift_amount_operand): Replace manual range
23207         check with IN_RANGE.
23208         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
23209         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
23211 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23213         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
23214         with HOST_WIDE_INT_1.
23215         (insv): Likewise.
23216         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
23217         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
23218         (arm_canonicalize_comparison): Likewise.
23219         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
23220         HOST_WIDE_INT_1.
23221         (thumb1_size_rtx_costs): Likewise.
23222         (vfp_const_double_index): Replace cast of 1 to unsigned
23223         HOST_WIDE_INT with HOST_WIDE_INT_1U.
23224         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
23225         HOST_WIDE_INT_1.
23226         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
23227         HOST_WIDE_INT with HOST_WIDE_INT_1U.
23228         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
23229         HOST_WIDE_INT with HOST_WIDE_INT_1.
23231 2016-05-24  Marek Polacek  <polacek@redhat.com>
23233         * tree-cfg.h (should_remove_lhs_p): New predicate.
23234         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23235         * gimplify.c (gimplify_modify_expr): Likewise.
23236         * tree-cfg.c (verify_gimple_call): Likewise.
23237         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23238         * gimple-fold.c: Include "tree-cfg.h".
23239         (gimple_fold_call): Use should_remove_lhs_p.
23241 2016-05-24  Richard Biener  <rguenther@suse.de>
23243         PR tree-optimization/71253
23244         * cfganal.h (control_dependences): Make robust against edge
23245         and BB removal.
23246         (control_dependences::control_dependences): Remove edge_list argument.
23247         (control_dependences::get_edge): Remove.
23248         (control_dependences::get_edge_src): Add.
23249         (control_dependences::get_edge_dest): Likewise.
23250         (control_dependences::m_el): Make a vector of edge src/dest index.
23251         * cfganal.c (control_dependences::find_control_dependence): Adjust.
23252         (control_dependences::control_dependences): Likewise.
23253         (control_dependences::~control_dependence): Likewise.
23254         (control_dependences::get_edge): Remove.
23255         (control_dependences::get_edge_src): Add.
23256         (control_dependences::get_edge_dest): Likewise.
23257         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
23258         get_edge_src.
23259         (perform_tree_ssa_dce): Adjust.
23260         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
23261         get_edge_src.
23262         (pass_loop_distribution::execute): Adjust.  Do loop destroying
23263         conditional on changed.
23265 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23267         PR target/69857
23268         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
23269         return.  Reindent transformation comment and mention the ARM state
23270         behavior.
23272 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
23274         PR middle-end/71252
23275         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
23276         after build_and_add_sum creates new use stmt.
23278 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
23280         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
23281         load_lanes/grouped_load classification comes first.  Don't check
23282         whether the vectorization factor is a multiple of the group size
23283         for load_lanes.
23285 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
23287         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
23288         GROUP_GAP for single-element interleaving.
23289         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
23290         variable.
23292 2016-05-24  Richard Biener  <rguenther@suse.de>
23294         PR middle-end/70434
23295         PR c/69504
23296         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
23297         bases which are accessed with non-invariant indices.
23298         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
23299         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
23301 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
23303         PR middle-end/71170
23304         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
23305         (add_to_ops_vec): Add stmt_to_insert.
23306         (add_repeat_to_ops_vec): Init stmt_to_insert.
23307         (insert_stmt_before_use): New.
23308         (transform_add_to_multiply): Remove mult_stmt insertion and add it
23309         to ops vector.
23310         (get_ops): Init stmt_to_insert.
23311         (maybe_optimize_range_tests): Likewise.
23312         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
23313         (rewrite_expr_tree_parallel): Likewise.
23314         (reassociate_bb): Likewise.
23316 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
23318         PR target/71201
23319         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
23320         ISA 3.0 xxperm fusion alternative.
23321         (altivec_vperm_v8hiv16qi): Likewise.
23322         (altivec_vperm_<mode>_uns_internal): Likewise.
23323         (vperm_v8hiv4si): Likewise.
23324         (vperm_v16qiv8hi): Likewise.
23326 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
23327             Kelvin Nilsen  <kelvin@gcc.gnu.org>
23329         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
23330         vpermr/xxpermr on ISA 3.0.
23331         (altivec_expand_vec_perm_le): Likewise.
23332         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
23333         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
23334         ISA 3.0.
23336 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
23338         * config/i386/i386.h (IS_STACK_MODE): Enable for
23339         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
23340         SSE_FLOAT_MODE_P macros.
23341         * config/i386/i386.c (ix86_preferred_reload_class): Use
23342         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
23343         Cleanup regclass processing for CONST_DOUBLE_P.
23344         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
23345         (ix86_rtx_costs): Remove redundant TARGET_80387 check
23346         with IS_STACK_MODE macro.
23347         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
23348         with TARGET_SSE2.
23349         (*movdf_internal): Use IS_STACK_MODE macro.
23350         (*movsf_internal): Ditto.
23352 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
23354         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
23355         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
23357 2016-05-23  Jeff Law  <law@redhat.com>
23359         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23360         extracted from ...
23361         (fsm_find_control_statement_thread_paths): Call it.
23363 2016-05-23  Martin Jambor  <mjambor@suse.cz>
23365         PR ipa/71234
23366         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23367         from_global_constant if t is not NULL.
23369 2016-05-23  Marek Polacek  <polacek@redhat.com>
23371         PR c/49859
23372         * common.opt (Wswitch-unreachable): New option.
23373         * doc/invoke.texi: Document -Wswitch-unreachable.
23374         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23375         warning.
23377 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
23379         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23380         TMR_INDEX is non-NULL.
23382 2016-05-23  Richard Biener  <rguenther@suse.de>
23384         PR tree-optimization/71230
23385         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23386         (try_special_add_to_ops): ... here.  Always test for single-use.
23388 2016-05-23  Martin Jambor  <mjambor@suse.cz>
23390         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23391         default block if a PHI node in the original one would be resized.
23393 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23395         PR tree-optimization/58135
23396         * tree-vect-slp.c: When group size is not multiple
23397         of vector size, allow splitting of store group at
23398         vector boundary.
23400 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
23402         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23404 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
23406         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23407         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23408         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
23409         of 64x2.
23411         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23412         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23413         v constraint instead of x and vinserti32x4 insn.
23415         * config/i386/sse.md (i128vldq): New mode iterator.
23416         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23417         avx512dq and avx512vl alternatives.
23419         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23420         constraint, use maybe_evex prefix instead of vex.
23421         (vec_dupv4sf): Use v constraint instead of x for output
23422         operand except for noavx alternative, use Yv constraint
23423         instead of x for input.  Use maybe_evex prefix instead of vex.
23424         (*vec_dupv4si): Likewise.
23425         (*vec_dupv2di): Likewise.
23427 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23429         PR middle-end/40921
23430         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23431         (linearize_expr_tree): Call try_special_add_to_ops.
23432         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23434 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23436         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23437         to computed stack_usage.
23439 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23441         PR target/71103
23442         * config/avr/avr.md (define_expand "mov<mode>"): If the source
23443         operand is subreg (symbol_ref) then move the symbol ref to register.
23445 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
23447         * tree.c (array_at_struct_end_p): Look through MEM_REF.
23449 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
23451         PR middle-end/71179
23452         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23453         VECTOR type.
23455 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
23457         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23458         ranges by calling get_single_symbol and tidy up.  Look more closely
23459         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23461 2016-05-20  Jeff Law  <law@redhat.com>
23463         * bitmap.c (bitmap_find_bit): Remove useless test.
23465 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
23467         * function.c (thread_prologue_and_epilogue_insns): Commit the
23468         insertion of the epilogue.
23470 2016-05-20  Martin Jambor  <mjambor@suse.cz>
23472         PR tree-optimization/70884
23473         * tree-sra.c (initialize_constant_pool_replacements): Do not check
23474         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23475         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23476         of constant pool data as a reason for scalarization.
23478 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
23480         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23481         for naked functions.
23482         (thumb1_expand_prologue): Likewise.
23484 2016-05-20  Nathan Sidwell  <nathan@acm.org>
23486         * config/nvptx/nptx.c (nvptx_option_override): Only set
23487         flag_toplevel_reorder, if not explicitly specified.  Set
23488         flag_no_common, unless explicitly specified.
23490 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
23492         * calls.c (can_implement_as_sibling_call_p): Mark param
23493         reg_parm_stack_space with ATTRIBUTE_UNUSED.
23495 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
23497         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23498         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23499         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23500         constants.
23501         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23502         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23503         and CASE_CONST_ANY.
23505 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
23507         * config/nvptx/nvptx.md (sincossf3): New pattern.
23509 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
23511         * calls.c (maybe_complain_about_tail_call): New function.
23512         (initialize_argument_information): Call
23513         maybe_complain_about_tail_call when clearing *may_tailcall.
23514         (can_implement_as_sibling_call_p): Call
23515         maybe_complain_about_tail_call when returning false.
23516         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23517         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
23518         if tail-call optimization fails.
23519         * cfgexpand.c (expand_call_stmt): Initialize
23520         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23521         * gimple-pretty-print.c (dump_gimple_call): Dump
23522         gimple_call_must_tail_p.
23523         * gimple.c (gimple_build_call_from_tree): Call
23524         gimple_call_set_must_tail with the value of
23525         CALL_EXPR_MUST_TAIL_CALL.
23526         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23527         (gimple_call_set_must_tail): New function.
23528         (gimple_call_must_tail_p): New function.
23529         * print-tree.c (print_node): Update printing of TREE_STATIC
23530         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23531         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23532         trailing comment listing applicable flags.
23533         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23535 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
23537         * calls.c (expand_call): Move "Rest of purposes for tail call
23538         optimizations to fail" to...
23539         (can_implement_as_sibling_call_p): ...this new function, and
23540         split into multiple "if" statements.
23542 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
23544         * cfgloop.h (expected_loop_iterations_unbounded,
23545         expected_loop_iterations): Unconstify.
23546         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23547         profile with known upper bound; return 3 when profile is absent.
23548         (expected_loop_iterations): Update.
23550 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
23552         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23553         and get_max_loop_iterations_int.
23555 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
23557         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23558         realistic upper bounds here.
23560 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
23562         PR c++/71210
23563         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23564         calls if the LHS is variable length or has addressable type.
23565         If targets[0]->decl is a noreturn call with void return type and
23566         zero arguments, adjust fntype and remove lhs in that case.
23568 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
23570         PR tree-optimization/71079
23571         PR tree-optimization/71206
23572         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23574 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23576         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23577         (get_vec_alignment_for_array_decl): Likewise.
23578         (get_vec_alignment_for_record_decl): Likewise.
23579         (increase_alignment::execute): Move code to find alignment to
23580         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23581         (type_align_map): New hash_map.
23583 2016-05-20  Richard Guenther  <rguenther@suse.de>
23585         PR tree-optimization/29756
23586         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23587         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23588         * fold-const.c (operand_equal_p): Likewise.
23589         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23590         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23591         * tree-inline.c (estimate_operator_cost): Likewise.
23592         * tree-pretty-print.c (dump_generic_node): Likewise.
23593         * tree-ssa-operands.c (get_expr_operands): Likewise.
23594         * cfgexpand.c (expand_debug_expr): Likewise.
23595         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23596         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23597         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23598         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23599         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23600         (execute_update_addresses_taken): Do it.
23602 2016-05-20  Richard Biener  <rguenther@suse.de>
23604         PR tree-optimization/71185
23605         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23606         register operations.
23608 2016-05-20  Richard Biener  <rguenther@suse.de>
23610         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23611         gimple_seq_add_seq_without_update.
23612         (release_bb_predicate): Assert we have no operands to free.
23613         (if_convertible_loop_p_1): Calculate post dominators later.
23614         Do not free BB predicates here.
23615         (combine_blocks): Do not recompute BB predicates.
23616         (version_loop_for_if_conversion): Save BB predicates around
23617         loop versioning.
23619 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
23621         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23622         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
23623         code.  Ignore sibcalls on EDGE_IGNORE edges.
23624         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
23625         on edges for sibcalls that run without prologue.  The rest of the
23626         function is combined from...
23627         (fix_fake_fallthrough_edge): ... this, and ...
23628         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
23629         function argument, make it a local variable.
23631 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
23633         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23634         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23635         for 32-bit mode and SEH for 64-bit.
23636         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23637         TARGET_64BIT_DEFAULT.
23639 2016-05-19  Ryan Burn  <contact@rnburn.com>
23641         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23642         * gengtype.c (open_base_files): Add cilk.h to ifiles.
23644 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
23646         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23647         force pending loads from memory.
23649 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
23651         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23652         (UNSPEC_DARN_32): New unspec constant.
23653         (UNSPEC_DARN_RAW): New unspec constant.
23654         (darn_32): New instruction.
23655         (darn_raw): New instruction.
23656         (darn): New instruction.
23657         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23658         support and documentation for this macro.
23659         (BU_P9_MISC_1): New macro definition.
23660         (BU_P9_64BIT_MISC_0): New macro definition.
23661         (BU_P9_MISC_0): New macro definition.
23662         (darn_32): New builtin definition.
23663         (darn_raw): New builtin definition.
23664         (darn): New builtin definition.
23665         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23666         RS6000_BUILTIN_0 directives to surround each occurrence of
23667         #include "rs6000-builtin.def".
23668         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23669         RS6000_BTM_64BIT flags to the returned mask, depending on
23670         configuration.
23671         (def_builtin): Correct an error in the assignments made to the
23672         debugging variable attr_string.
23673         (rs6000_expand_builtin): Add support for no-operand built-in
23674         functions.
23675         (builtin_function_type): Remove fatal_error assertion that is no
23676         longer valid.
23677         (rs6000_common_init_builtins): Add support for no-operand built-in
23678         functions.
23679         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23680         definition.
23681         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23682         definition.
23683         (RS6000_BTM_64BIT): New macro definition.
23684         * doc/extend.texi: Document __builtin_darn (void),
23685         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23686         functions.
23688 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
23690         * tree-vect-loop.c (vect_analyze_loop_2): Use also
23691         max_loop_iterations_int.
23693 2016-05-19  Marek Polacek  <polacek@redhat.com>
23695         PR tree-optimization/71031
23696         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23697         condition and adjust the code a bit.
23699 2016-05-19  Martin Liska  <mliska@suse.cz>
23701         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23702         auto_vec instead of vec.
23704 2016-05-19  Martin Liska  <mliska@suse.cz>
23706         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23708 2016-05-19  Martin Liska  <mliska@suse.cz>
23710         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23712 2016-05-19  Martin Liska  <mliska@suse.cz>
23714         * ipa-pure-const.c (set_function_state): Remove an existing
23715         funct_state.
23716         (remove_node_data): Do not free it as it's released
23717         in set_function_state.
23719 2016-05-19  Martin Liska  <mliska@suse.cz>
23721         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23722         bitmap.
23724 2016-05-19  Martin Liska  <mliska@suse.cz>
23726         * omp-simd-clone.c (simd_clone_adjust): Release vector.
23728 2016-05-19  Martin Liska  <mliska@suse.cz>
23730         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23731         an auto_vec instead of re-creating it.
23733 2016-05-19  Martin Liska  <mliska@suse.cz>
23735         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23736         auto_vec instead of vec.
23738 2016-05-19  Martin Liska  <mliska@suse.cz>
23740         * lto-section-in.c (lto_get_section_data): Call
23741         lto_check_version with additional argument.
23742         * lto-streamer.c (lto_check_version): Add new argument.
23743         * lto-streamer.h (lto_check_version): Likewise.
23745 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23747         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23748         Don't add cost of inner memory when handling sign-extended loads.
23750 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
23752         PR rtl-optimization/71148
23753         * cse.c (cse_main): Free dominance info.
23754         (rest_of_handle_cse): Don't free dominance info.
23755         (rest_of_handle_cse2): Likewise.
23756         (rest_of_handle_cse_after_global_opts): Likewise.
23758 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23760         PR target/71056
23761         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23762         NULL_TREE early if NEON is not available.  Remove now redundant check
23763         in ARM_CHECK_BUILTIN_MODE.
23765 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
23767         PR sanitizer/64354
23768         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23769         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23770         * doc/cpp.texi: Document new macros.
23772 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
23774         PR tree-optimization/69848
23775         * tree-vect-loop.c (vectorizable_reduction): Don't factor
23776         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23778 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
23780         * function.c (thread_prologue_and_epilogue_insn): Move the
23781         "goto epilogue_done" one block later.
23783 2016-05-19  Richard Biener  <rguenther@suse.de>
23785         PR tree-optimization/70729
23786         * passes.def: Move LIM pass before PRE.  Remove no longer
23787         required copyprop and move first DCE out of the loop pipeline.
23789 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
23791         PR driver/69265
23792         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23793         (OBJS-libcommon-target): ...here.
23794         * opts-common.c: Include spellcheck.h.
23795         (cmdline_handle_error): Build a vec of valid options and use it
23796         to suggest provide hints for misspelled arguments.
23798 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
23800         PR c++/71100
23801         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23802         lhs if it has TREE_ADDRESSABLE type.
23804 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
23806         PR target/71145
23807         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23808         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23810 2016-05-18  Martin Jambor  <mjambor@suse.cz>
23812         PR ipa/69708
23813         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23814         input for NOP_EXPR pass-through functions.
23815         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23816         aggregate global constant VAR_DECLs in constant jump functions.
23818 2016-05-18  Martin Jambor  <mjambor@suse.cz>
23820         PR ipa/69708
23821         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23822         from TREE_READONLY parameters.
23824 2016-05-18  Martin Jambor  <mjambor@suse.cz>
23826         PR ipa/69708
23827         * cgraph.h (cgraph_indirect_call_info): New field
23828         guaranteed_unmodified.
23829         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23830         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23831         appropriate.
23832         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23833         pass the parameter value to ipa_find_agg_cst_for_param.
23834         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23835         guaranteed_unmodified, store AA results there instead of bailing out
23836         if present.
23837         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23838         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23839         (find_constructor_constant_at_offset): New function.
23840         (ipa_find_agg_cst_from_init): Likewise.
23841         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23842         static initializers of contants, report back through a new paameter
23843         from_global_constant if that was the case.
23844         (try_make_edge_direct_simple_call): Also pass parameter value to
23845         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23846         appropriate.
23847         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23848         (ipa_read_indirect_edge_info): Likewise.
23849         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23850         (ipa_load_from_parm_agg): Likewise.
23852 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
23854         PR rtl-optimization/71150
23855         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23856         check.
23858 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
23860         PR target/70915
23861         * config/rs6000/constraints.md (wE constraint): New constraint
23862         for a vector constant that can be loaded with XXSPLTIB.
23863         (wM constraint): New constraint for a vector constant of a 1's.
23864         (wS constraint): New constraint for a vector constant that can be
23865         loaded with XXSPLTIB and a vector sign extend instruction.
23866         * config/rs6000/predicates.md (xxspltib_constant_split): New
23867         predicates for wE/wS constraints.
23868         (xxspltib_constant_nosplit): Likewise.
23869         (easy_vector_constant): Add support for constants that can be
23870         loaded via XXSPLTIB.
23871         (all_ones_constant): New predicate for vector constant with all
23872         1's set.
23873         (splat_input_operand): Add support for ISA 3.0 word splat operations.
23874         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23875         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23876         instruction and possibly with a sign extension.
23877         (output_vec_const_move): Add support for XXSPLTIB. If we are
23878         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23879         instead of XXLXOR/XXLORC.
23880         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23881         operations.
23882         (rs6000_legitimize_reload_address): Likewise.
23883         (rs6000_output_move_128bit): Use output_vec_const_move to emit
23884         constants.
23885         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23886         combine VSX_M and VSX_M2 into one iterator.
23887         (VSX_M2): Likewise.
23888         (VSINT_84): New iterators for loading constants with XXSPLTIB.
23889         (VSINT_842): Likewise.
23890         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23891         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23892         XXSPLTIB instruction.
23893         (xxspltib_<mode>_nosplit): Likewise.
23894         (xxspltib_<mode>_split): New insn to load up constants with
23895         XXSPLTIB and a sign extend instruction.
23896         (vsx_mov<mode>): Replace single move that handled all vector types
23897         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
23898         moves (when -mvsx-timode is in effect) into the main vector
23899         moves.  Eliminate separate moves for <VSr> <VSa>, where the
23900         preferred register class (<VSr>) is listed first, and the
23901         secondary register class (<VSa>) is listed second with a '?' to
23902         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
23903         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23904         that if the register was involved in a slow operation, the
23905         clear/set operation does not wait for the slow operation to
23906         finish.  Adjust the length attributes for 32-bit mode.  Use
23907         rs6000_output_move_128bit and drop the use of the string
23908         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
23909         spacing so that the alternatives and attributes don't generate
23910         long lines, and put things in columns, so that it is easier to
23911         match up the operands and attributes with the insn alternatives.
23912         (vsx_mov<mode>_64bit): Likewise.
23913         (vsx_mov<mode>_32bit): Likewise.
23914         (vsx_movti_64bit): Fold movti into normal vector moves.
23915         (vsx_movti_32bit): Likewise.
23916         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23917         splat instructions.
23918         (vsx_splat_v4si_internal): Likewise.
23919         (vsx_splat_v4sf_internal): Likewise.
23920         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23921         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23922         extend vector elements.
23923         (vsx_sign_extend_hi_<mode>): Likewise.
23924         (vsx_sign_extend_si_v2di): Likewise.
23925         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23926         declaration.
23927         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23928         constraints.  Add trailing period to wL documentation.
23930 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
23932         PR middle-end/71020
23933         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23934         * tree-dfa.c (replace_abnormal_ssa_names): New function.
23935         * tree-call-cdce.c: Include tree-dfa.h.
23936         (can_guard_call_p): New function, extracted from...
23937         (can_use_internal_fn): ...here.
23938         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23939         and return void.
23940         (shrink_wrap_one_built_in_call): Likewise.
23941         (use_internal_fn): Likewise.
23942         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23943         and return void.  Call replace_abnormal_ssa_names.
23944         (pass_call_cdce::execute): Check can_guard_call_p during the
23945         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
23946         will always change something.
23948 2016-05-18  Martin Jambor  <mjambor@suse.cz>
23950         PR ipa/70646
23951         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23952         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23954 2016-05-18  Martin Jambor  <mjambor@suse.cz>
23956         PR ipa/70646
23957         * ipa-inline.h (condition): New field size.
23958         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23959         for comaprison and store it into the new condition.
23960         (evaluate_conditions_for_known_args): Use condition size to check
23961         access sizes for all but CHANGED conditions.
23962         (unmodified_parm_1): New parameter size_p, store access size into it.
23963         (unmodified_parm): Likewise.
23964         (unmodified_parm_or_parm_agg_item): Likewise.
23965         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23966         (set_cond_stmt_execution_predicate): Extract access sizes and store
23967         them to conditions.
23968         (set_switch_stmt_execution_predicate): Likewise.
23969         (will_be_nonconstant_expr_predicate): Likewise.
23970         (will_be_nonconstant_predicate): Likewise.
23971         (inline_read_section): Stream condition size.
23972         (inline_write_summary): Likewise.
23974 2016-05-18  Richard Biener  <rguenther@suse.de>
23976         * tree-ssa-loop-im.c (determine_max_movement): Properly add
23977         condition cost to PHI cost instead of total_cost.
23979 2016-05-18  Martin Liska  <mliska@suse.cz>
23981         PR fortran/70856
23982         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23983         merged variables.
23985 2016-05-18  Richard Biener  <rguenther@suse.de>
23987         * lto-streamer.h (LTO_major_version): Bump to 6.
23989 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
23991         * function.c (make_split_prologue_seq, make_prologue_seq,
23992         make_epilogue_seq): New functions, factored out from...
23993         (thread_prologue_and_epilogue_insns): Here.
23995 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
23997         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23998         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23999         of before.  Add a comment.
24001 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
24003         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
24004         expression pointer, not pointer to the pointer.
24006 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
24008         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
24009         (avx2_pbroadcast<mode>): Add another alternative with v instead
24010         of x constraints in it, using <pbroadcast_evex_isa> isa.
24011         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
24013         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
24014         constraint x instead of v in second alternative, add avx512bw
24015         alternative.
24017         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
24018         constraint x instead of v in second alternative, add avx512bw
24019         alternative.
24021         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
24022         constraint x instead of v in second alternative, add avx512bw
24023         alternative.
24025         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
24026         avx512bw alternative.
24028 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
24030         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
24031         array to 128 chars.
24032         (define_insn "*andnottf3"): Ditto.
24033         (define_insn "*<code><mode>3"/any_logic): Ditto.
24034         (define_insn "*<code>tf3"/any_logic): Ditto.
24035         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
24036         operand to block AVX-512VL insn variant emit when it is not enabled.
24038 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
24040         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
24041         constraint fot SF mode.
24043 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
24044             Kirill Yukhin  <kirill.yukhin@intel.com>
24046         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
24047         modifiers.
24048         (define_insn "rsqrt14<mode>"): Ditto.
24049         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
24050         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
24051         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
24052         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
24053         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
24054         Ditto.
24055         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
24056         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
24057         * config/i386/i386.c (ix86_print_operand): Expand check for size
24058         override codes for Intel syntax.
24060 2016-05-18  Richard Biener  <rguenther@suse.de>
24062         PR tree-optimization/71168
24063         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
24064         initialization earlier.
24066 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
24068         * config/aarch64/aarch64-simd.md
24069         (aarch64_reduc_plus_internal<mode>): Rename to...
24070         (reduc_plus_scal): ...This, and remove previous implementation.
24072 2016-05-18  Richard Biener  <rguenther@suse.de>
24074         * passes.def: Put late dse and cd_dce in canonical order.
24076 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
24078         * ipa-inline-transform.c (preserve_function_body_p): Look for
24079         first non-thunk clone.
24080         (save_function_body): Save into first non-thunk.
24081         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
24082         up call stmt id.
24083         (lto_output_node): Inline thunks don't need body in every
24084         partition.
24085         * lto-streamer-in.c: Do not fixup thunk clones.
24086         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
24087         thunks.
24088         * tree-inline.c (copy_bb): Be prepared for target node to be new after
24089         folding suceeds.
24091 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
24093         PR middle-end/63586
24094         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
24095         (reassociate_bb): Call transform_add_to_multiply.
24097 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
24099         * config/aarch64/aarch64.c (all_extensions): Removed unused
24100         static variable.
24102 2016-05-17  Nathan Sidwell  <nathan@acm.org>
24104         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
24105         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
24107 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
24109         PR tree-optimization/54579
24110         PR middle-end/55299
24111         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
24113 2016-05-17  Marek Polacek  <polacek@redhat.com>
24115         PR ipa/71146
24116         * tree-inline.c (expand_call_inline): Call
24117         maybe_remove_unused_call_args.
24119 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
24121         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
24122         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
24123         * doc/md.texi (fmin@var{m}3): Likewise.
24125 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
24127         * match.pd (X & C): New transformation.
24129 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
24131         * match.pd (~X & Y): New transformation.
24133 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
24135         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
24136         information for new SSA_NAME.
24137         (simplify_conversion_using_ranges): Get range through get_range_info
24138         instead of get_value_range.
24140 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
24142         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
24143         Remove inline assembly.
24144         (vmvn_s16): Likewise.
24145         (vmvn_s32): Likewise.
24146         (vmvn_u8): Likewise.
24147         (vmvn_u16): Likewise.
24148         (vmvn_u32): Likewise.
24149         (vmvnq_s8): Likewise.
24150         (vmvnq_s16): Likewise.
24151         (vmvnq_s32): Likewise.
24152         (vmvnq_u8): Likewise.
24153         (vmvnq_u16): Likewise.
24154         (vmvnq_u32): Likewise.
24155         (vmvn_p8): Likewise.
24156         (vmvnq_p16): Likewise.
24158 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
24160         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
24161         Use builtin.
24162         (vmul_n_s16): Likewise.
24163         (vmul_n_s32): Likewise.
24164         (vmul_n_u16): Likewise.
24165         (vmul_n_u32): Likewise.
24166         (vmulq_n_f32): Likewise.
24167         (vmulq_n_f64): Likewise.
24168         (vmulq_n_s16): Likewise.
24169         (vmulq_n_s32): Likewise.
24170         (vmulq_n_u16): Likewise.
24171         (vmulq_n_u32): Likewise.
24173 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
24175         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
24176         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
24178 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
24180         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
24181         to *aarch64_fma4_elt_from_dup<mode>.
24182         (*aarch64_fnma4_elt_to_128df): Rename to
24183         *aarch64_fnma4_elt_from_dup<mode>.
24184         * config/aarch64/arm_neon.h (vfma_n_f64): New.
24185         (vfms_n_f32): Likewise.
24186         (vfms_n_f64): Likewise.
24187         (vfmsq_n_f32): Likewise.
24188         (vfmsq_n_f64): Likewise.
24190 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
24192         * wide-int.h: Change fixed_wide_int_storage from class to struct.
24194 2016-05-17  Richard Biener  <rguenther@suse.de>
24196         PR tree-optimization/71132
24197         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
24198         Only add control dependences for blocks in the loop.
24199         (build_rdg): Adjust.
24200         (generate_code_for_partition): Return whether loop should
24201         be destroyed and delay that.
24202         (distribute_loop): Likewise.
24203         (pass_loop_distribution::execute): Record loops to be destroyed
24204         and perform delayed destroying of loops.
24206 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24208         PR target/70809
24209         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
24211 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
24213         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
24215 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
24217         PR target/71114
24218         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
24219         insertion point for instructions generated by validize_mem.
24221 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
24223         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
24224         in brackets.
24226 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
24228         * config/aarch64/aarch64.c
24229         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
24230         rather than a macro.
24232 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
24234         * doc/invoke.texi (AArch64 Options): Various updates.
24236 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
24238         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
24239         into instrumentation thunks.
24240         * cif-code.def (CIF_CHKP): New.
24242 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
24244         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
24246 2016-05-16  Martin Jambor  <mjambor@suse.cz>
24248         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
24249         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
24251 2016-05-16  Marek Polacek  <polacek@redhat.com>
24253         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
24254         commentary.
24256 2016-05-16  Martin Jambor  <mjambor@suse.cz>
24258         PR hsa/70857
24259         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
24260         the outlined kernel function.
24262 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
24264         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
24265         (ISA_HAS_DLSA): Ditto.
24267 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
24269         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
24271 2016-05-16  Nathan Sidwell  <nathan@acm.org>
24273         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
24274         (nvptx_name_replacement): Restore.  Add comment.
24275         (write_fn_proto, write_fn_proto_from_insn,
24276         nvptx_output_call_insn): Restore
24277         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
24279 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
24281         * config/aarch64/aarch64.md
24282         (add<mode>3_compareC_cconly_imm): Remove use of %w.
24283         (add<mode>3_compareC_imm): Likewise.
24284         (<optab>si3_uxtw): Split into register and immediate variants.
24285         (andsi3_compare0_uxtw): Likewise.
24286         (and<mode>3_compare0): Likewise.
24287         (and<mode>3nr_compare0): Likewise.
24288         (stack_protect_test_<mode>): Don't use %x for memory operands.
24290 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
24292         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
24294 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
24296         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
24297         Split integer shifts into shift_reg and bfm.
24298         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24299         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
24300         (ror<mode>3_insn): Likewise.
24301         (<optab>si3_insn_uxtw): Likewise.
24302         (<optab><mode>3_insn): Change to rotate_imm.
24303         (extr<mode>5_insn_alt): Likewise.
24304         (extrsi5_insn_uxtw): Likewise.
24305         (extrsi5_insn_uxtw_alt): Likewise.
24307 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
24309         * doc/tm.texi: Regenerate.
24310         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
24311         (TARGET_INVALID_RETURN_TYPE): Remove.
24312         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
24313         TARGET_INVALID_RETURN_TYPE.
24314         * target.def (invalid_parameter_type): Remove.
24315         (invalid_return_type): Remove.
24317 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
24319         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
24320         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
24321         calls from thunk.
24322         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
24323         gimple body.
24324         (preserve_function_body_p): No need to preserve function body
24325         * cif-codes.def (CIF_THUNK): Remove.
24326         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
24328 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
24330         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
24332 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
24334         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
24335         for thunks.
24337 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
24339         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
24340         (inline_small_functions): Do not look for function symbol when
24341         resetting caches.
24343 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
24345         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
24346         of inline thunks
24348 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
24349             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24350             Jiong Wang  <jiong.wang@arm.com>
24352         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
24353         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
24354         Define __ARM_FP16_ARGS when appropriate.
24355         * config/arm/arm.c (arm_invalid_parameter_type): Remove
24356         declaration.
24357         (arm_invalid_return_type): Likewise.
24358         (TARGET_INVALID_PARAMETER_TYPE): Remove.
24359         (TARGET_INVALID_RETURN_TYPE): Remove.
24360         (aapcs_vfp_sub_candidate): Allow HFmode.
24361         (aapcs_vfp_allocate): Add comment.  Support HFmode.
24362         (aapcs_vfp_allocate_return_reg): Likewise.
24363         (struct aapcs_cp_arg_layout): Slightly reword comments for
24364         is_return_candidate and allocate_return_reg.
24365         (output_mov_vfp): Update assert.
24366         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24367         condition.
24368         (arm_invalid_parameter_type): Remove.
24369         (amr_invalid_return_type): Remove.
24370         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24371         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24372         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24374 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
24376         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24377         * config/aarch64/arch64-protos.h
24378         (aarch64_legitimize_reload_address): Remove.
24379         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24380         Remove.
24382 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24384         * configure.ac: Add ACX_NONCANONICAL_HOST.
24385         * configure: Regenerate.
24386         * Makefile.in: Set host_noncanonical.
24388 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
24390         PR target/71097
24391         * config/i386/i386.md (*movtf_internal): Before register allocation,
24392         do not allow FP constants for CM_MEDIUM memory model, allow only
24393         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24394         (*movxf_internal): Ditto.
24395         (*movdf_internal): Ditto.
24396         (*movsf_internal): Ditto.
24398 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
24400         PR rtl-optimization/67483
24401         * combine.c (make_compound_operation): Don't call extract_left_shift
24402         with negative shift amounts.
24404 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
24406         PR bootstrap/71071
24407         * fold-const.c (fold_checksum_tree): Allow modification
24408         of TYPE_ALIAS_SET during folding.
24410         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24411         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24412         (ix86_split_to_parts): Likewise.  Fix up formatting.
24414 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24416         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24417         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24418         printf format.
24420 2016-05-13  Nathan Sidwell  <nathan@acm.org>
24422         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24423         (nvptx_name_replacement): Delete.
24424         (write_fn_proto, write_fn_proto_from_insn,
24425         nvptx_output_call_insn): Remove nvptx_name_replacement call.
24426         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24427         * langhooks.c (add_builtin_funcction_common): Call
24428         targetm.mangle_decl_assembler_name.
24430         * config/nvptx/nvptx.c (write_fn_proto): Handle
24431         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24433 2016-05-13  Martin Liska  <mliska@suse.cz>
24435         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24436         and PRIu64 in printf format.
24438 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24440         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24441         comment.
24443 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24445         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24446         Change --param max-completely-peeled-times to
24447         --param max-completely-peel-times in dump file printing.
24449 2016-05-13  Richard Biener  <rguenther@suse.de>
24451         PR tree-optimization/42587
24452         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24453         (find_bswap_or_nop_1): Likewise.
24454         (bswap_replace): Likewise.
24456 2016-05-13  Martin Liska  <mliska@suse.cz>
24458         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24459         Initialize a variable with default value.
24461 2016-05-13  Martin Liska  <mliska@suse.cz>
24463         * doc/invoke.texi: Enhance explanation of error recovery
24464         of sanitizers.
24466 2016-05-13  Martin Liska  <mliska@suse.cz>
24468         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24469         (struct cost_pair): Change inv_expr_id (int) to inv_expr
24470         (iv_inv_expr_ent *).
24471         (struct iv_inv_expr_ent): Comment struct fields.
24472         (sort_iv_inv_expr_ent): New function.
24473         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24474         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24475         a hash_map between iv_inv_expr_ent and number of usages.
24476         (niter_for_exit): Fix coding style.
24477         (tree_ssa_iv_optimize_init): Use renamed variable.
24478         (determine_base_object): Fix coding style.
24479         (alloc_iv): Likewise.
24480         (find_interesting_uses_outside): Likewise.
24481         (add_candidate_1): Likewise.
24482         (add_standard_iv_candidates): Likewise.
24483         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24484         (prepare_decl_rtl): Fix coding style.
24485         (get_address_cost): Likewise.
24486         (get_shiftadd_cost): Likewise.
24487         (force_expr_to_var_cost): Likewise.
24488         (compare_aff_trees): Likewise.
24489         (get_expr_id): Restructure the function.
24490         (get_loop_invariant_expr_id): Renamed to
24491         get_loop_invariant_expr.
24492         (get_computation_cost_at): Replace usage of inv_expr_id with
24493         inv_expr.
24494         (get_computation_cost): Likewise.
24495         (determine_group_iv_cost_generic): Likewise.
24496         (determine_group_iv_cost_address): Likewise.
24497         (iv_period): Fix coding style.
24498         (iv_elimination_compare_lt): Likewise.
24499         (may_eliminate_iv): Likewise.
24500         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
24501         inv_expr.
24502         (determine_group_iv_costs): Dump invariant expressions.
24503         (iv_ca_recount_cost): Use the newly added hash_map.
24504         (iv_ca_set_remove_invariants): Fix coding style.
24505         (iv_ca_set_add_invariants): Fix coding style.
24506         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24507         invariants.
24508         (iv_ca_set_cp): Likewise.
24509         (iv_ca_new): Initialize the newly added hash_map and remove
24510         initialization of fields.
24511         (iv_ca_free): Delete the hash_map.
24512         (iv_ca_dump): Dump invariant expressions.
24513         (iv_ca_extend): Fix coding style.
24514         (try_add_cand_for): Likewise.
24515         (create_new_ivs): Dump information about # of avg iterations and
24516         # of used invariant expressions.
24517         (rewrite_use_compare): Fix coding style.
24518         (free_loop_data): Set default value for max_inv_expr_id.
24520 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24522         * cse.c (rest_of_handle_cse): Use cleanup_cfg
24523         returned value cse_cfg_altered computation.
24524         (rest_of_handle_cse2): Likewise.
24525         (rest_of_handle_cse_after_global_opts): Likewise.
24527 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24529         PR target/53440
24530         * config/arm/arm.c (arm32_output_mi_thunk): New.
24531         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24532         to split Thumb1 vs TARGET_32BIT functionality.
24533         (arm_thumb1_mi_thunk): New.
24535 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24537         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24538         to true.
24540 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24542         PR target/71080
24543         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24545 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
24547         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24548         (expand_builtin_trap): Emit a regular call.
24549         (set_builtin_user_assembler_name): Remove obsolete cases.
24550         * dse.c (scan_insn): Adjust.
24551         * except.c: Include calls.h.
24552         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24553         emit a regular call to setjmp.
24554         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24555         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24556         (emit_block_move_via_libcall): Delete.
24557         (block_move_fn): Delete.
24558         (init_block_move_fn): Likewise.
24559         (emit_block_move_libcall_fn): Likewise.
24560         (emit_block_op_via_libcall): New function.
24561         (set_storage_via_libcall): Tidy up and use memset builtin.
24562         (block_clear_fn): Delete.
24563         (init_block_clear_fn): Likewise.
24564         (clear_storage_libcall_fn): Likewise.
24565         (expand_assignment): Call emit_block_move_via_libcall.
24566         Do not include gt-expr.h.
24567         * expr.h (emit_block_op_via_libcall): Declare.
24568         (emit_block_copy_via_libcall): New inline function.
24569         (emit_block_move_via_libcall): Likewise.
24570         (emit_block_comp_via_libcall): Likewise.
24571         (block_clear_fn): Delete.
24572         (init_block_move_fn): Likewise.
24573         (init_block_clear_fn): Likewise.
24574         (emit_block_move_via_libcall): Likewise.
24575         (set_storage_via_libcall): Add default parameter value.
24576         * libfuncs.h (enum libfunc_index): Remove obsolete values.
24577         (abort_libfunc): Delete.
24578         (memcpy_libfunc): Likewise.
24579         (memmove_libfunc): Likewise.
24580         (memcmp_libfunc): Likewise.
24581         (memset_libfunc): Likewise.
24582         (setbits_libfunc): Likewise.
24583         (setjmp_libfunc): Likewise.
24584         (longjmp_libfunc): Likewise.
24585         (profile_function_entry_libfunc): Likewise.
24586         (profile_function_exit_libfunc): Likewise.
24587         (gcov_flush_libfunc): Likewise.
24588         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24589         and DECL_VISIBILITY on the declaration.
24590         (init_optabs): Do not initialize obsolete libfuncs.
24591         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24592         * tree-core.h (ECF_RET1): Define.
24593         (ECF_TM_PURE): Adjust.
24594         (ECF_TM_BUILTIN): Likewise.
24595         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24596         (build_common_builtin_nodes): Initialize abort builtin.
24597         Add ECF_RET1 on memcpy, memmove and memset builtins.
24598         Pass final flags for alloca and alloca_with_align builtins.
24599         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24600         obsolete builtins.
24601         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24602         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24603         set_storage_via_libcall and call emit_block_copy_via_libcall.
24605 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
24607         * config/i386/i386.md (*call_got_x32): Change operand 0 to
24608         DImode before it is passed to ix86_output_call_operand.
24609         (*call_value_got_x32): Ditto for operand 1.
24611 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
24613         PR rtl-optimization/70904
24614         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24615         reload for wide mode.
24617 2016-05-12  Marek Polacek  <polacek@redhat.com>
24619         PR c/70756
24620         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24621         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24622         * langhooks.h (incomplete_type_error): Likewise.
24623         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
24624         parameter, pass it down to incomplete_type_error.
24625         * tree.h (size_in_bytes): New inline overload.
24626         (size_in_bytes_loc): Renamed from size_in_bytes.
24628 2016-05-12  Richard Biener  <rguenther@suse.de>
24630         PR tree-optimization/71059
24631         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24632         nary before looking up or entering the expression into the VN
24633         hashes.
24634         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24635         Make sure to re-use NARYs without result as inserted by
24636         phi-translation.
24638 2016-05-12  Richard Biener  <rguenther@suse.de>
24640         PR tree-optimization/71062
24641         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24642         field.
24643         * tree-ssa-structalias.c (set_uids_in_ptset): Set
24644         vars_contains_restrict if the var is a restrict tag.
24645         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24646         do not disambiguate pointers against it.
24647         (dump_points_to_solution): Re-structure and adjust for new
24648         vars_contains_restrict flag.
24649         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24651 2016-05-12  Martin Liska  <mliska@suse.cz>
24653         * doc/invoke.texi: Explain connection between
24654         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24656 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
24658         PR tree-optimization/71006
24659         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24660         consider COND_EXPR as a mask producer.
24662 2016-05-12  Marek Polacek  <polacek@redhat.com>
24664         PR driver/71063
24665         * opts.c (common_handle_option): Detect missing argument for --help^.
24667 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24669         PR target/70830
24670         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24671         when popping the PC and within an interrupt handler routine.
24672         Add missing tab to output of "ldmfd".
24673         (output_return_instruction): Output LDMFD with SP update rather
24674         than POP when returning from interrupt handler.
24676 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
24678         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24679         TARGET_64BIT && TARGET_AVX512DQ.
24680         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24681         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24682         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24683         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24684         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24685         (*vec_extractv4si_zext): Add avx512dq alternative.
24686         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24687         use v instead of x constraint in other alternatives where possible.
24689         * config/i386/sse.md (sse2_loadld): Use v instead of x
24690         constraint in alternatives 0,1,4.
24692         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24693         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24694         v constraints instead of x and <pinsr_evex_isa> isa attribute.
24696         PR target/71019
24697         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24698         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24699         is not emitted unless TARGET_AVX512BW.
24700         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24701         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24702         for the result operand.
24704         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24705         constraint instead of x in avx alternatives.  Use maybe_evex instead
24706         of vex prefix.
24708         * config/i386/constraints.md (Yv): New constraint.
24709         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24710         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24711         * config/i386/i386.md (avx512fvecmode): New mode attr.
24712         (*pushtf): Use v constraint instead of x.
24713         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
24714         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24715         (*absneg<mode>2): Use Yv constraint instead of x constraint.
24716         (*absnegtf2_sse): Likewise.
24717         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24718         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24719         avx512f alternatives.
24720         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24722 2016-05-12  Richard Biener  <rguenther@suse.de>
24724         PR tree-optimization/71060
24725         * tree-data-ref.c (initialize_data_dependence_relation): Do not
24726         require exact match of DR_BASE_OBJECT but only matching address and
24727         type.
24729 2016-05-12  Richard Biener  <rguenther@suse.de>
24731         PR tree-optimization/70986
24732         * cfganal.c: Include cfgloop.h.
24733         (dfs_find_deadend): Prefer to take edges exiting loops.
24735 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24737         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24738         compile and run time.
24740 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
24742         PR c/43651
24743         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24745 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
24747         * config/i386/i386.c (legitimize_pic_address): Use
24748         copy_to_suggested_reg instead of gen_movsi.
24750 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24752         * config/rs6000/predicates.md (quad_memory_operand): Move most of
24753         the code into quad_address_p and call it to share code with
24754         vsx_quad_dform_memory_operand.
24755         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24756         d-form support.
24757         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24758         bit instead of being a separate word.  Split -mpower9-dform into
24759         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24760         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24761         for the register class supporting 128-bit quad word memory offsets.
24762         (mode_supports_vsx_dform_quad): Helper function to return if the
24763         register class uses quad word memory offsets.
24764         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24765         (rs6000_debug_reg_global): Always print if we are using LRA or not.
24766         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24767         instructions are enabled, set up the appropriate addr_masks for
24768         128-bit types.
24769         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24770         -mpower9-dform-scalar, instead of -mpower9-dform.
24771         (rs6000_option_override_internal): Split -mpower9-dform into two
24772         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
24773         -mpower9-dform switch sets or clears both.  If we are not using
24774         the LRA register allocator, do not enable -mpower9-dform-vector by
24775         default.  If we are using LRA, enable -mpower9-dform-vector and
24776         -mvsx-timode if it is appropriate.  Issue a warning if either
24777         -mpower9-dform-vector or -mvsx-timode are explicitly used without
24778         enabling LRA.
24779         (quad_address_offset_p): New helper function to return if the
24780         offset is legal for quad word memory instructions.
24781         (quad_address_p): New function to determin if GPR or vector
24782         register quad word memory addresses are legal.
24783         (mem_operand_gpr): Validate quad word address offsets.
24784         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24785         d-form (register + offset) instructions.
24786         (offsettable_ok_by_alignment): Likewise.
24787         (rs6000_legitimate_offset_address_p): Likewise.
24788         (legitimate_lo_sum_address_p): Likewise.
24789         (rs6000_legitimize_address): Likewise.
24790         (rs6000_legitimize_reload_address): Add more debug statements for
24791         -mdebug=addr.
24792         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24793         d-form instructions.
24794         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24795         d-form instructions.  Distinguish different cases in debug
24796         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24797         d-form instructions.
24798         (rs6000_preferred_reload_class): Likewise.
24799         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24800         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
24801         of the ISA 2.06 indexed memory instructions.
24802         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24803         use them to save/restore the saved vector registers instead of
24804         using Altivec instructions.
24805         (rs6000_emit_epilogue): Likewise.
24806         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24807         (rs6000_opt_masks): Split -mpower9-dform into
24808         -mpower9-dform-scalar and -mpower9-dform-vector.
24809         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24810         was not selected.
24811         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24812         ISA 3.0 vector indexed memory instructions, and fold the code into
24813         the normal mov<mode> patterns.
24814         (p9_vecstore_<mode>): Likewise.
24815         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24816         instructions.
24817         (vsx_movti_64bit): Likewise.
24818         (vsx_movti_32bit): Likewise.
24819         * config/rs6000/constraints.md (wO constraint): New constraint for
24820         ISA 3.0 vector d-form support.
24821         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24822         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
24823         include -mpower9-dform-vector until we switch over to LRA.
24824         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24825         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24826         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24827         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24828         for -mpower9-dform and -mlra.
24829         * doc/md.texi (wO constraint): Document wO constraint.
24831 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
24833         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24834         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24835         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24836         Move handling of non-insn arguments inline into the sole user:
24837         (output_trans_func): ...here.
24838         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24839         in emitted function prototype.
24840         (output_internal_insn_latency_func): Ditto.  Simplify.
24841         (output_internal_maximal_insn_latency_func): Ditto.  Delete
24842         always-unused argument.
24843         (output_insn_latency_func): Ditto.
24844         (output_maximal_insn_latency_func): Ditto.
24846 2016-05-11  Richard Biener  <rguenther@suse.de>
24848         PR tree-optimization/71055
24849         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24850         sth with precision not equal to access size verify we don't chop
24851         off bits.
24853 2016-05-11  Richard Biener  <rguenther@suse.de>
24855         PR debug/71057
24856         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24857         (dwarf2out_finish): Move retry_incomplete_types call ...
24858         (dwarf2out_early_finish): ... here.
24860 2016-05-11  Richard Biener  <rguenther@suse.de>
24862         PR middle-end/71002
24863         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24864         if the langhook insists on it.
24865         * fold-const.c (make_bit_field_ref): Add arg for the original
24866         reference and preserve its alias-set.
24867         (decode_field_reference): Take exp by reference and adjust it
24868         to the original memory reference.
24869         (optimize_bit_field_compare): Adjust callers.
24870         (fold_truth_andor_1): Likewise.
24871         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24873 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
24875         PR middle-end/70807
24876         * cfgrtl.h (delete_insn_and_edges): Now return bool.
24877         * cfgrtl.c (delete_insn_and_edges): Likewise.
24878         * config/i386/i386.c (convert_scalars_to_vector): Remove
24879         redundant code.
24880         * cse.c (cse_insn): Compute cse_cfg_altered.
24881         (delete_trivially_dead_insns): Likewise.
24882         (cse_cc_succs): Likewise.
24883         (rest_of_handle_cse): Free dominance info if required.
24884         (rest_of_handle_cse2): Likewise.
24885         (rest_of_handle_cse_after_global_opts): Likewise.
24887 2016-05-11  Alan Modra  <amodra@gmail.com>
24889         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24890         abi_v4_pass_in_fpr): New functions.
24891         (rs6000_function_arg_boundary): Exclude complex IBM long double
24892         from 64-bit alignment when ABI_V4.
24893         (rs6000_function_arg, rs6000_function_arg_advance_1,
24894         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24896 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
24898         PR rtl-optimization/71028
24899         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24900         jump with just a return in the fallthrough block if the branch
24901         block contains just a return as well.
24903 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
24905         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24906         * match.pd ((X & Y) ^ Y): ... this.
24907         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24908         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24910 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
24912         * read-md.c (require_char_ws): New function.
24913         (read_string): Simplify using require_char_ws.
24914         (handle_constants): Likewise.
24915         (handle_enum): Likewise.
24916         (handle_file): Likewise.
24917         * read-md.h (require_char_ws): New declaration.
24918         * read-rtl.c (read_conditions): Simplify using require_char_ws.
24919         (read_mapping): Likewise.
24920         (read_rtx_code): Likewise.
24921         (read_nested_rtx): Likewise.
24923 2016-05-10  James Norris  <jnorris@codesourcery.com>
24925         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24926         if offloading is enabled and -fopenacc or -fopenmp is specified.
24927         (CRTOFFLOADEND): Likewise.
24928         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24929         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24931 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
24933         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24934         gotoff_operand code paths.  Use copy_to_suggested_regs and
24935         expand_simple_binop where appropriate.  Cleanup.
24937 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
24939         PR target/70799
24940         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24941         integer constants.
24942         (dimode_scalar_chain::vector_const_cost): New.
24943         (dimode_scalar_chain::compute_convert_gain): Handle constants.
24944         (dimode_scalar_chain::convert_op): Likewise.
24945         (dimode_scalar_chain::convert_insn): Likewise.
24947 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
24949         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24950         unary operation, not a binary one.
24952 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
24954         PR middle-end/70877
24955         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24956         calls with type casted fndecl.
24958 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
24960         PR tree-optimization/70786
24961         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24962         * calls.c (initialize_argument_information): Bind bounds
24963         with corresponding args passed by reference.
24965 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
24967         PR target/70927
24968         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24969         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24970         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24971         accordingly.
24973 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24975         PR target/70963
24976         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24977         code for a zero scale factor.
24978         (vsx_xvcvdpuxds_scale): Likewise.
24980 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
24982         * diagnostic-show-locus.c (layout::layout): Call show_ruler
24983         if show_ruler_p was set on the context.
24984         (layout::show_ruler): New method.
24985         * diagnostic.h (struct diagnostic_context): Add field
24986         "show_ruler_p".
24988 2016-05-10  Richard Biener  <rguenther@suse.de>
24990         PR tree-optimization/71039
24991         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24992         (chk_uses): New function.
24993         (propagate_with_phi): Verify we can safely replicate the lhs of an
24994         aggregate assignment on all incoming edges.
24996 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
24998         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24999         Forward declare.
25000         (rx_atomic_sequence): New class.
25001         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
25002         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
25003         non-inline.
25004         (rx_atomic_sequence::rx_atomic_sequence,
25005         rx_atomic_sequence::~rx_atomic_sequence): New functions.
25006         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
25007         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
25008         CTRLREG_INTB): New constants.
25009         (FETCHOP): New code iterator.
25010         (fethcop_name, fetchop_name2): New iterator code attributes.
25011         (QIHI): New mode iterator.
25012         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
25013         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
25014         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
25016 2016-05-10  Martin Liska  <mliska@suse.cz>
25018         * tree-inline.c (remap_dependence_clique): Do not remap
25019         debugging statements.
25021 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25023         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
25024         ("*fixuns_truncdfdi2_z13")
25025         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
25026         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
25027         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
25029 2016-05-10  Richard Biener  <rguenther@suse.de>
25031         PR tree-optimization/70497
25032         PR tree-optimization/28367
25033         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
25034         split out from ...
25035         (visit_reference_op_load): ... here.
25036         (vn_reference_lookup_3): Use it to handle subreg-like accesses
25037         with simplified BIT_FIELD_REFs.
25038         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
25039         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
25040         correctly.
25042 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
25044         * dwarf2out.c (add_abstract_origin_attribute): Adjust
25045         documentation comment.  For BLOCK nodes, add a
25046         DW_AT_abstract_origin attribute that points to the DIE generated
25047         for the origin BLOCK.
25048         (gen_lexical_block_die): Call add_abstract_origin_attribute for
25049         blocks from inlined functions.
25051 2016-05-10  Alan Modra  <amodra@gmail.com>
25053         PR target/70947
25054         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
25055         regrename modifying insns saving lr before __morestack call.
25056         * config/rs6000/rs6000.md (split_stack_return): Similarly for
25057         insns restoring lr after __morestack call.
25059 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
25061         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
25062         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
25063         expanders.
25064         * config/i386/sse.md (vec_interleave_high<mode>,
25065         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
25066         <avx512>_vpermt2var<mode>3_maskz): Likewise.
25068 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
25070         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
25071         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
25072         parallel reassociation for power8 and forward.
25074 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
25076         * config/i386/i386.md (absneg splitters with general regs): Use
25077         general_reg_operand predicate.
25078         (btsq peephole2): Use x86_64_immediate_operand to check if new
25079         value is suitable for immediate operand.  Generate emitted insn
25080         using RTL expressions.
25081         (btcq peephole2): Ditto.
25082         (btrq peephole2): Ditto.  Generate correct immediate operand
25083         for AND masking.
25085 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
25087         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
25088         bitpos.
25090 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
25092         * tree-affine.c (wide_int_constant_multiple_p): Add missing
25093         pointer dereference.
25095 2016-05-09  Richard Biener  <rguenther@suse.de>
25097         PR tree-optimization/70985
25098         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
25099         op0 isn't a gimple register.
25101 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
25103         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
25104         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
25105         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
25106         (i6400_fpu_mult): New cpu units.
25107         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
25108         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
25109         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
25110         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
25111         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
25112         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
25113         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
25114         (i6400_msa_long_float4, i6400_msa_long_float5)
25115         (i6400_msa_long_float8, i6400_msa_fdiv_df)
25116         (i6400_msa_fdiv_sf): New reservations.
25117         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
25118         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
25119         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
25120         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
25121         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
25122         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
25123         (msa_short_cmp, msa_short_float2, msa_short_logic3)
25124         (msa_short_store4, msa_long_load, msa_short_store)
25125         (msa_long_logic, msa_long_float2, msa_long_float4)
25126         (msa_long_float5, msa_long_float8, msa_long_mult)
25127         (msa_long_fdiv, msa_long_div): New reservations.
25129 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
25130             Sameera Deshpande  <sameera.deshpande@imgtec.com>
25131             Matthew Fortune  <matthew.fortune@imgtec.com>
25132             Graham Stott  <graham.stott@imgtec.com>
25133             Chao-ying Fu  <chao-ying.fu@imgtec.com>
25135         * config.gcc: Add MSA header file for mips*-*-* target.
25136         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
25137         (Ubv8i, Urv8):  New constraints.
25138         * config/mips/mips-ftypes.def: Add function types for MSA
25139         builtins.
25140         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
25141         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
25142         * config/mips/mips-msa.md: New file.
25143         * config/mips/mips-protos.h
25144         (mips_split_128bit_const_insns): New prototype.
25145         (mips_msa_idiv_insns): Likewise.
25146         (mips_split_128bit_move): Likewise.
25147         (mips_split_128bit_move_p): Likewise.
25148         (mips_split_msa_copy_d): Likewise.
25149         (mips_split_msa_insert_d): Likewise.
25150         (mips_split_msa_fill_d): Likewise.
25151         (mips_expand_msa_branch): Likewise.
25152         (mips_const_vector_same_val_p): Likewise.
25153         (mips_const_vector_same_bytes_p): Likewise.
25154         (mips_const_vector_same_int_p): Likewise.
25155         (mips_const_vector_shuffle_set_p): Likewise.
25156         (mips_const_vector_bitimm_set_p): Likewise.
25157         (mips_const_vector_bitimm_clr_p): Likewise.
25158         (mips_msa_vec_parallel_const_half): Likewise.
25159         (mips_msa_output_division): Likewise.
25160         (mips_ldst_scaled_shift): Likewise.
25161         (mips_expand_vec_cond_expr): Likewise.
25162         * config/mips/mips.c (enum mips_builtin_type): Add
25163         MIPS_BUILTIN_MSA_TEST_BRANCH.
25164         (mips_gen_const_int_vector_shuffle): New prototype.
25165         (mips_const_vector_bitimm_set_p): New function.
25166         (mips_const_vector_bitimm_clr_p): Likewise.
25167         (mips_const_vector_same_val_p): Likewise.
25168         (mips_const_vector_same_bytes_p): Likewise.
25169         (mips_const_vector_same_int_p): Likewise.
25170         (mips_const_vector_shuffle_set_p): Likewise.
25171         (mips_symbol_insns): Forbid loading symbols via immediate for
25172         MSA.
25173         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
25174         stores.
25175         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
25176         MSA.
25177         (mips_lx_address_p): Add support load indexed address for MSA.
25178         (mips_address_insns): Add calculation of instructions needed for
25179         stores and loads for MSA.
25180         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
25181         CONST_VECTOR for MSA and let it fall through.
25182         (mips_ldst_scaled_shift): New function.
25183         (mips_subword_at_byte): Likewise.
25184         (mips_msa_idiv_insns): Likewise.
25185         (mips_legitimize_move): Validate MSA moves.
25186         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
25187         calculation of costs for MSA division.
25188         (mips_split_move_p): Check if MSA moves need splitting.
25189         (mips_split_move): Split MSA moves if necessary.
25190         (mips_split_128bit_move_p): New function.
25191         (mips_split_128bit_move): Likewise.
25192         (mips_split_msa_copy_d): Likewise.
25193         (mips_split_msa_insert_d): Likewise.
25194         (mips_split_msa_fill_d): Likewise.
25195         (mips_output_move): Handle MSA moves.
25196         (mips_expand_msa_branch): New function.
25197         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
25198         Reinstate 'y' modifier.
25199         (mips_file_start): Add MSA .gnu_attribute.
25200         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
25201         FPRs.
25202         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
25203         (mips_class_max_nregs): Add register size for MSA supported mode.
25204         (mips_cannot_change_mode_class): Allow conversion between MSA
25205         vector modes and TImode.
25206         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
25207         instruction.
25208         (mips_secondary_reload_class): Force MSA loads/stores via memory.
25209         (mips_preferred_simd_mode): Add preffered modes for MSA.
25210         (mips_vector_mode_supported_p): Add MSA supported modes.
25211         (mips_autovectorize_vector_sizes): New function.
25212         (mips_msa_output_division): Likewise.
25213         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
25214         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
25215         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
25216         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
25217         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
25218         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
25219         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
25220         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
25221         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
25222         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
25223         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
25224         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
25225         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
25226         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
25227         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
25228         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
25229         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
25230         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
25231         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
25232         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
25233         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
25234         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
25235         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
25236         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
25237         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
25238         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
25239         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
25240         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
25241         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
25242         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
25243         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
25244         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
25245         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
25246         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
25247         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
25248         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
25249         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
25250         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
25251         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
25252         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
25253         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
25254         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
25255         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
25256         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
25257         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
25258         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
25259         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
25260         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
25261         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
25262         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
25263         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
25264         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
25265         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
25266         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
25267         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
25268         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
25269         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
25270         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
25271         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
25272         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
25273         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
25274         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
25275         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
25276         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
25277         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
25278         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
25279         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
25280         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
25281         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
25282         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
25283         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
25284         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
25285         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
25286         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
25287         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
25288         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
25289         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
25290         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
25291         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
25292         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
25293         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
25294         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
25295         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
25296         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
25297         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
25298         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
25299         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
25300         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
25301         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
25302         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
25303         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
25304         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
25305         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
25306         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
25307         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
25308         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
25309         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
25310         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
25311         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
25312         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
25313         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
25314         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
25315         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
25316         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
25317         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
25318         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
25319         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
25320         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
25321         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
25322         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
25323         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
25324         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
25325         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
25326         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
25327         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
25328         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
25329         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
25330         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
25331         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
25332         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
25333         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
25334         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
25335         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
25336         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
25337         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
25338         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
25339         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
25340         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
25341         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
25342         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
25343         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
25344         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
25345         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
25346         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
25347         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
25348         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
25349         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
25350         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
25351         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
25352         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
25353         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
25354         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
25355         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
25356         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
25357         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
25358         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
25359         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
25360         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25361         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25362         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25363         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25364         move_v builtins.
25365         (mips_get_builtin_decl_index): New array.
25366         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25367         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25368         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25369         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25370         (mips_init_builtins): Initialize mips_get_builtin_decl_index
25371         array.
25372         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25373         hook.
25374         (mips_expand_builtin_insn): Prepare operands for
25375         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25376         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25377         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25378         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25379         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25380         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25381         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25382         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25383         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25384         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25385         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25386         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25387         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25388         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25389         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25390         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25391         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25392         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25393         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25394         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25395         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25396         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25397         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25398         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25399         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25400         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25401         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25402         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25403         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25404         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25405         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25406         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25407         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25408         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25409         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25410         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25411         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25412         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25413         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25414         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25415         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25416         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25417         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25418         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25419         These are set implicitly and an error is reported if overridden.
25420         (mips_expand_builtin_msa_test_branch): New function.
25421         (mips_expand_msa_shuffle): Likewise.
25422         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25423         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25424         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25425         (mips_expand_vec_unpack): Add support for MSA.
25426         (mips_expand_vector_init): Likewise.
25427         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25428         instead of const0_rtx.
25429         (mips_msa_vec_parallel_const_half): New function.
25430         (mips_gen_const_int_vector): Likewise.
25431         (mips_gen_const_int_vector_shuffle): Likewise.
25432         (mips_expand_msa_cmp): Likewise.
25433         (mips_expand_vec_cond_expr): Likewise.
25434         * config/mips/mips.h
25435         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25436         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25437         specified.
25438         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25439         (ISA_HAS_MSA): New macro.
25440         (UNITS_PER_MSA_REG): Likewise.
25441         (BITS_PER_MSA_REG): Likewise.
25442         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25443         (MSA_REG_FIRST): New macro.
25444         (MSA_REG_LAST): Likewise.
25445         (MSA_REG_NUM): Likewise.
25446         (MSA_REG_P): Likewise.
25447         (MSA_REG_RTX_P): Likewise.
25448         (MSA_SUPPORTED_MODE_P): Likewise.
25449         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25450         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25451         * config/mips/mips.md: Include mips-msa.md.
25452         (alu_type): Add simd_add.
25453         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25454         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25455         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25456         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25457         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25458         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25459         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25460         simd_move, simd_load, simd_store.  Choose "multi" for moves
25461         for "qword_mode".
25462         (qword_mode): New attribute.
25463         (insn_count): Add instruction count for quad moves.
25464         Increase the count for MIPS SIMD division.
25465         (UNITMODE): Add UNITMODEs for vector types.
25466         (addsub): New code iterator.
25467         * config/mips/mips.opt (mmsa): New option.
25468         * config/mips/msa.h: New file.
25469         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25470         specified.
25471         * config/mips/mti-linux.h: Likewise.
25472         * config/mips/predicates.md
25473         (const_msa_branch_operand): New constraint.
25474         (const_uimm3_operand): Likewise.
25475         (const_uimm4_operand): Likewise.
25476         (const_uimm5_operand): Likewise.
25477         (const_uimm8_operand): Likewise.
25478         (const_imm5_operand): Likewise.
25479         (aq10b_operand): Likewise.
25480         (aq10h_operand): Likewise.
25481         (aq10w_operand): Likewise.
25482         (aq10d_operand): Likewise.
25483         (const_m1_operand): Likewise.
25484         (reg_or_m1_operand): Likewise.
25485         (const_exp_2_operand): Likewise.
25486         (const_exp_4_operand): Likewise.
25487         (const_exp_8_operand): Likewise.
25488         (const_exp_16_operand): Likewise.
25489         (const_vector_same_val_operand): Likewise.
25490         (const_vector_same_simm5_operand): Likewise.
25491         (const_vector_same_uimm5_operand): Likewise.
25492         (const_vector_same_uimm6_operand): Likewise.
25493         (const_vector_same_uimm8_operand): Likewise.
25494         (par_const_vector_shf_set_operand): Likewise.
25495         (reg_or_vector_same_val_operand): Likewise.
25496         (reg_or_vector_same_simm5_operand): Likewise.
25497         (reg_or_vector_same_uimm6_operand): Likewise.
25498         * doc/extend.texi (MIPS SIMD Architecture Functions): New
25499         section.
25500         * doc/invoke.texi (-mmsa): Document new option.
25502 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25504         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25505         * configure: Regenerate.
25506         * config.in: Regenerate.
25507         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25508         on -fvtable-verify.
25509         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25510         (ENDFILE_VTV_SPEC): Define.
25512 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
25514         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25515         registers in all interrupt handlers if necessary.
25516         (rl78_option_override): Add warning.
25517         (MUST_SAVE_MDUC_REGISTERS): New macro.
25518         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25519         * config/rl78/rl78.c (check_mduc_usage): New function.
25520         (mduc_regs): New structure to hold MDUC register data.
25521         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25522         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25523         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25524         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25525         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25526         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25528 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
25530         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25531         (tree-ssa-loop-niter.h): Ditto.
25532         (idx_within_array_bound, ref_within_array_bound): New functions.
25533         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25534         Factor out check on writable base object to ...
25535         (base_object_writable): ... here.
25537 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25539         * config/arm/arm.md (probe_stack): Add modes to set source
25540         and destination.
25542 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
25544         * regrename.c (base_reg_class_for_rename): New static function.
25545         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25547 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
25549         * cgraph.c (thunk_adjust): Export.
25550         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25551         * cgraphunit.c (thunk_adjust): Export.
25552         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25553         thunks.
25554         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25555         inlinable.
25556         * tree-inline.c (expand_call_inline): Expand thunks inline.
25558 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
25560         PR target/70998
25561         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25562         (*sse2_vd_cvtss2sd): Ditto.
25563         * config/i386/i386.md
25564         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25565         Generate *sse2_vd_cvtsd2ss pattern.
25566         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25567         Generate *sse2_vd_cvtss2sd pattern.
25569 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
25571         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25572         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
25573         users.
25575 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
25577         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25578         * config/sh/sh.c: Define and declare variables on first use throughout
25579         the file.
25580         (current_function_interrupt): Change to bool type.
25581         (frame_insn): Rename to emit_frame_insn and update users.
25582         (push_regs): Use bool for 'interrupt_handler' argument.
25583         (save_schedule_s): Remove.
25584         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25585         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25586         targetm.asm_out.unaligned_op.di.
25587         (gen_far_branch): Remove redundant forward declaration.
25588         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25589         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25590         (sh_set_return_address, sh_function_ok_for_sibcall,
25591         scavenge_reg): Update comments.
25592         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25593         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25594         (sh_attr_renesas_p): Remove unnecessary parentheses.
25595         (branch_dest): Simplify.
25596         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25597         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25598         (CUMULATIVE_ARGS): Change macro to typedef.
25599         (current_function_interrupt): Change to bool type.
25600         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25601         Surround with __cplusplus ifdef.
25602         (sh_compare_op0, sh_compare_op1): Remove.
25603         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25605 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
25607         * config/arm/arm.md (arch): Add neon.
25608         (arch_enabled): Return yes for arch neon when TARGET_NEON.
25609         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
25610         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
25611         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
25612         attributes for alt renumbering.  Mark alt 3 as non-predicable.
25613         (thumb2_movdf_vfp): Likewise.
25615 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
25617         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25618         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25619         (*andqi_1): Add preferred_for_speed attribute to disparage
25620         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25621         (*<code>qi_1): Ditto.
25622         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25623         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25624         (*ashlqi3_1): Ditto.
25625         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25626         Add preferred_for_size attribute to disparage alternative 0 and
25627         preferred_for_speed attribute to disparage alternative 1 for
25628         TARGET_PARTIAL_REG_STALL targets.
25630 2016-05-07  Tom de Vries  <tom@codesourcery.com>
25632         PR tree-optimization/70956
25633         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25634         def.
25636 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
25638         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25639         * config/sh/sh.c (sh_cbranch_distance): Implement it.
25640         * config/sh/sh.md (branch_zero): Remove define_attr.
25641         (define_delay): Disable delay slot if branch distance is one insn.
25643 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
25645         * config/i386/i386.md (LEAMODE): New mode attribute.
25646         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25647         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25648         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
25649         operand 2 predicate.
25650         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25651         (*lea<mode>_general_3): Ditto.
25652         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25654 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
25656         * genmddump.c (main): Convert argv from char ** to const char **.
25658 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
25660         * coretypes.h (OVERRIDE): New macro.
25661         (FINAL): New macro.
25663 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
25665         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25666         allow coalescing if the types are compatible.
25668 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
25670         * pass_manager.h (pass_manager::register_pass_name): New method.
25671         (pass_manager::get_pass_by_name): New method.
25672         (pass_manager::create_pass_tab): New method.
25673         (pass_manager::m_name_to_pass_map): New field.
25674         * passes.c (name_to_pass_map): Delete global in favor of field
25675         "m_name_to_pass_map" of pass_manager.
25676         (register_pass_name): Rename from a function to...
25677         (pass_manager::register_pass_name): ...this method, updating
25678         for renaming of global "name_to_pass_map" to field
25679         "m_name_to_pass_map".
25680         (create_pass_tab): Rename from a function to...
25681         (pass_manager::create_pass_tab): ...this method, updating
25682         for renaming of global "name_to_pass_map" to field.
25683         (get_pass_by_name): Rename from a function to...
25684         (pass_manager::get_pass_by_name): ...this method.
25685         (enable_disable_pass): Convert use of get_pass_by_name to
25686         a method call, locating the pass_manager singleton.
25688 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
25690         * genattr-common.c (main): Convert argv from char ** to const char **.
25691         * genattr.c (main): Likewise.
25692         * genattrtab.c (main): Likewise.
25693         * genautomata.c (initiate_automaton_gen): Likewise.
25694         (main): Likewise.
25695         * gencodes.c (main): Likewise.
25696         * genconditions.c (main): Likewise.
25697         * genconfig.c (main): Likewise.
25698         * genconstants.c (main): Likewise.
25699         * genemit.c (main): Likewise.
25700         * genenums.c (main): Likewise.
25701         * genextract.c (main): Likewise.
25702         * genflags.c (main): Likewise.
25703         * genmddeps.c (main): Likewise.
25704         * genopinit.c (main): Likewise.
25705         * genoutput.c (main): Likewise.
25706         * genpeep.c (main): Likewise.
25707         * genpreds.c (main): Likewise.
25708         * genrecog.c (main): Likewise.
25709         * gensupport.c (init_rtx_reader_args_cb): Likewise.
25710         (init_rtx_reader_args): Likewise.
25711         * gensupport.h (init_rtx_reader_args_cb): Likewise.
25712         (init_rtx_reader_args): Likewise.
25713         * gentarget-def.c (main): Likewise.
25714         * read-md.c (read_md_files): Likewise.
25715         * read-md.h (read_md_files): Likewise.
25717 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
25719         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25720         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25721         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25722         Remove unused predicate.
25723         (register_and_not_fp_reg_operand): Ditto.
25725 2016-05-06  Martin Liska  <mliska@suse.cz>
25727         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25728         instead of vec as the vector is local to the function.
25730 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
25732         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25733         avx512bw alternative.
25735         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25736         before the ashr<mode>3 pattern.
25738         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25739         v instead of x in vex or maybe_vex alternatives, use
25740         maybe_evex instead of vex in prefix.
25742         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25743         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25744         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25745         in vex or maybe_vex alternatives, use maybe_evex instead of vex
25746         in prefix.
25748         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25749         v instead of x in vex or maybe_vex alternatives, use
25750         maybe_evex instead of vex in prefix.
25752         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25753         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25754         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25755         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25756         alternatives, use maybe_evex instead of vex in prefix.
25758         * config/i386/sse.md (vec_interleave_lowv4sf,
25759         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25760         v instead of x in vex or maybe_vex alternatives, use
25761         maybe_evex instead of vex in prefix.
25763         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25764         v instead of x in vex or maybe_vex alternatives, use
25765         maybe_evex instead of vex in prefix.
25767         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25768         v constraint instead of x.
25770 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
25772         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25773         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25774         equality first.
25776 2016-05-06  Richard Biener  <rguenther@suse.de>
25778         PR tree-optimization/70948
25779         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25780         Properly clobber all fields of va_list for __builtin_va_start.
25782 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
25784         PR debug/70935
25785         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25786         loop latch destination.
25788 2016-05-06  Martin Liska  <mliska@suse.cz>
25790         * tree-ssa-uninit.c: Apply manual changes
25791         to the GNU coding style.
25792         (prune_uninit_phi_opnds): Rename from
25793         prune_uninit_phi_opnds_in_unrealizable_paths.
25795 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25797         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25798         mspace): Remove deprecated options.
25799         * doc/invoke.texi (SH options): Remove -mspace.
25801 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25803         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25805 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25807         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25808         corresponding combine split pattern.
25810 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25812         PR target/58219
25813         * config/sh/predicates.md (long_displacement_mem_operand): New.
25814         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25815         Add movi20, movi20s alternatives.  Adjust length attribute for
25816         alternatives.
25817         (movsi_ie): Allow for any FPU.  Adjust length attribute for
25818         alternatives.
25819         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
25820         attribute for alternatives.
25821         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25822         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25823         length attribute for alternatives.
25825 2016-05-06  Richard Biener  <rguenther@suse.de>
25827         PR tree-optimization/70960
25828         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25830 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25832         PR target/52933
25833         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25834         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25836 2016-05-06  Marek Polacek  <polacek@redhat.com>
25838         PR sanitizer/70875
25839         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25841 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25843         PR target/54089
25844         * config/sh/sh.md (*rotcr): Add another variant.
25846 2016-05-06  Richard Biener  <rguenther@suse.de>
25848         PR middle-end/70931
25849         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25851 2016-05-06  Richard Biener  <rguenther@suse.de>
25853         PR middle-end/70941
25854         * fold-const.c (split_tree): Always convert to the original type
25855         before negating.
25857 2016-05-06  Richard Biener  <rguenther@suse.de>
25859         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25860         (fwprop_addr): Likewise.
25862 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
25864         PR target/70873
25865         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25866         New prototype.
25867         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25868         * config/i386/i386.md (push mem splitter): Use find_constant_src in
25869         the splitter condition.
25870         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25871         the splitter condition.
25872         (FP float_extend load splitter): Ditto.
25874 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
25876         * config/i386/i386.md (peehole2 patterns): Change true_regnum
25877         to REGNO in all peephole2 patterns.
25878         (post-reload splitters): Change true_regnum to REGNO in
25879         post-reload splitters.
25880         (zero_extend splitters): Use general_reg_operand and
25881         nonimmediate_gr_operand predicates.
25883 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
25885         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25886         v constraint instead of x.
25888 2016-05-05  Alan Modra  <amodra@gmail.com>
25890         PR target/68662
25891         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25892         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
25893         TARGET_NO_FP_IN_TOC for -mrelocatable.
25894         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25895         TARGET_RELOCATABLE test.
25896         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25897         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25898         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25899         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25900         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25901         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25902         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25903         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25904         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25905         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25906         Likewise.
25907         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25908         (rs6000_stack_info): Likewise.
25909         (rs6000_elf_asm_out_constructor): Likewise.
25910         (rs6000_elf_asm_out_destructor): Likewise.
25911         (rs6000_elf_declare_function_name): Likewise.
25912         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25913         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25914         Don't define.
25916 2016-05-05  Alan Modra  <amodra@gmail.com>
25918         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25920 2016-05-05  Alan Modra  <amodra@gmail.com>
25922         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25923         out-of-line gpr restore for one or two regs if that would add
25924         a save of lr.
25926 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
25928         PR target/70873
25929         * config/i386/i386.md
25930         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25931         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
25932         as operand 0 predicate.
25933         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25934         Ditto.
25935         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25936         Ditto.  Emit the pattern using RTX.
25938         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25939         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
25940         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
25941         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25942         Ditto.
25943         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25944         sse_reg_operand as operand 0 predicate.
25946         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25947         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
25948         instead of gen_rtx_REG.
25949         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25950         Ditto.
25952 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25954         * function.c (emit_use_return_register_into_block): Delete.
25955         (gen_return_pattern): Delete.
25956         (emit_return_into_block): Delete.
25957         (active_insn_between): Delete.
25958         (convert_jumps_to_returns): Delete.
25959         (emit_return_for_exit): Delete.
25960         (thread_prologue_and_epilogue_insns): Delete all code dealing with
25961         simple_return for shrink-wrapped blocks.
25962         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25963         end of blocks that need one.
25964         (get_unconverted_simple_return): Delete.
25965         (convert_to_simple_return): Delete.
25966         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25967         (convert_to_simple_return): Ditto.
25969 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25971         * cfgcleanup.c (bb_is_just_return): New function.
25972         (try_optimize_cfg): Simplify jumps to return, branches to return,
25973         and branches around return.
25975 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25977         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25978         branch to a return.
25980 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
25982         PR c++/70906
25983         PR c++/70933
25984         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25985         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25986         assert flags & OEP_HASH_CHECK, instead of asserting it
25987         never happens.  Handle TARGET_EXPR.
25988         * fold-const.c (operand_equal_p): For hash verification,
25989         or in OEP_HASH_CHECK into flags.
25991 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
25993         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25994         comment.
25995         (compute_samebase_partition_bases): Fix typo.
25997 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
25999         * config/i386/sse.md (vec_interleave_highv8sf,
26000         vec_interleave_lowv8sf, vec_interleave_highv4df,
26001         vec_interleave_lowv4df): Remove constraints from expanders.
26003         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
26005 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
26007         * tree-inline.c (expand_call_inline): Fix path dealing with
26008         making lhs of call statement undefined.
26010 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
26012         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
26013         Check availability on NODE, too.
26014         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
26015         (cgraph_node::call_for_symbol_and_aliases): Likewise.
26016         (varpool_node::call_for_symbol_and_aliase): Likewise.
26017         * ipa-pure-const.c (add_new_function): Analyze all bodies.
26018         (propagate_pure_const): Propagate across interposable functions, too.
26019         (skip_function_for_local_pure_const): Do not skip interposable bodies
26020         with aliases.
26021         (pass_local_pure_const::execute): Update.
26023 2016-05-04  Marek Polacek  <polacek@redhat.com>
26025         * doc/invoke.texi: Document -Wdangling-else.
26027 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26029         * config.gcc: Error out when conflicting multilib is detected.  Do not
26030         loop over multilibs since no combination is legal.
26032 2016-05-04  Alan Modra  <amodra@gmail.com>
26034         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
26035         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
26036         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
26037         Align .toc.
26039 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
26041         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
26042         Clean up p5600 comments.
26044 2016-05-04  Richard Biener  <rguenther@suse.de>
26046         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
26047         constructor simplifications.
26048         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
26050 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
26052         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
26053         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
26054         result.set_rtx is null instead of aborting.
26055         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
26056         Always enable.
26057         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
26058         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
26059         *mov<mode>_store_postinc): New patterns.
26061 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
26063         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
26064         as commutative.  Check both conversions are NOP.
26065         ((A & B) OP (C & B)): Remove.
26067 2016-05-04  Alan Modra  <amodra@gmail.com>
26069         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
26071 2016-05-04  Alan Modra  <amodra@gmail.com>
26073         PR target/70866
26074         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
26075         when cr2,3,4 are all fixed regs.
26077 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
26079         PR rtl-optimization/57193
26080         * opts.c (default_options_table): Revert OPT_frename_registers change.
26081         * doc/invoke.texi (-frename-registers, -O2): Likewise.
26083 2016-05-03  Martin Sebor  <msebor@redhat.com>
26085         PR c++/66561
26086         * builtins.c (fold_builtin_FILE): New function.
26087         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
26088         (fold_builtin_0): Call them.
26089         * gimplify.c (gimplify_call_expr): Remove the handling of
26090         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
26092         PR c++/66561
26093         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
26094         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
26095         constants.
26097         PR c++/66639
26098         * doc/extend.texi (Function Names as Strings): Update __func__,
26099         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
26100         constants.
26102 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
26103             Richard Biener  <rguenther@suse.de>
26105         PR tree-optimization/70916
26106         * tree-if-conv.c: Include cfganal.h.
26107         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
26108         and remove_fake_exit_edges around the optimization pass.
26110 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
26112         * cgraph.c (symbol_table::create_edge): Set inline_failed.
26113         (cgraph_edge::make_direct): Likewise.
26114         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
26115         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
26116         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
26117         (CIF_THUNK): New code.
26118         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
26119         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
26120         (compute_inline_parameters): Set inline_failed for thunks.
26121         (inline_analyze_function): Cleanup.
26122         * ipa-inline.c (can_inline_edge_p): Do not deal with
26123         call_stmt_cannot_inline_p.
26124         (can_early_inline_edge_p): Likewise.
26125         (early_inliner): Initialize inline_failed.
26126         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
26128 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
26130         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
26131         from nonimm_ssenomem_operand.
26132         (nonimm_ssenomem_operand): New predicate.
26133         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
26134         as operand 0 predicate.
26135         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
26136         Disable unsupported alternatives using "enabled" attribute.
26137         Use register_ssemem_operand as operand 0 predicate.
26138         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
26140 2016-05-03  Marek Polacek  <polacek@redhat.com>
26142         PR c/70859
26143         * input.c (expansion_point_location): New function.
26144         * input.h (expansion_point_location): Declare.
26146 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
26148         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
26149         occurence with frame_offset_ ones.
26151 2016-05-03  Alan Modra  <amodra@gmail.com>
26153         PR rtl-optimization/70890
26154         * ira.c (combine_and_move_insns): When moving def_insn, remove
26155         equivs on use_insn.
26157 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26159         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
26160         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
26161         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
26162         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
26164 2016-05-03  Alan Modra  <amodra@gmail.com>
26166         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
26167         for SAVE_MULTIPLE/STORE_MULTIPLE.
26169 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
26171         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
26172         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
26174 2016-05-03  Richard Biener  <rguenther@suse.de>
26176         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
26177         default true.
26178         (gimplify_arg): Likewise.
26179         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
26180         re-writing the result to a decl if required.
26181         (internal_get_tmp_var): Add allow_ssa parameter
26182         and override into_ssa with it.
26183         (get_formal_tmp_var): Adjust.
26184         (get_initialized_tmp_var): Add allow_ssa parameter.
26185         (gimplify_arg): Add allow_ssa parameter and avoid generating
26186         SSA names for the result false.
26187         (gimplify_call_expr): If the call may return twice do not
26188         gimplify parameters into SSA.
26189         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
26190         (gimplify_modify_expr): Adjust assert.  For noreturn calls
26191         with a SSA name LHS adjust its def.
26192         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
26193         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
26194         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
26195         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
26196         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
26197         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
26198         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
26199         (optimize_target_teams): Do not allow SSA names for clause operands.
26200         (gimplify_expr): Likewise for where we mark the result addressable.
26201         * passes.def (pass_init_datastructures): Remove.
26202         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
26203         (rewrite_stmt): Likewise.
26204         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
26205         (replace_locals_op): Replace SSA names.
26206         (copy_gimple_seq_and_replace_locals): Init src_cfun.
26207         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
26208         * cgraph.c (release_function_body): Free CFG annotations only
26209         when we have a CFG.  Simplify.
26210         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
26211         force_gimple_operand instead of get_initialized_tmp_var.
26212         * tree-pass.h (make_pass_init_datastructures): Remove.
26213         * tree-ssa.c (execute_init_datastructures): Remove.
26214         (pass_data_init_datastructures): Likewise.
26215         (class pass_init_datastructures): Likewise.
26216         (make_pass_init_datastructures): Likewise.
26217         * omp-low.c (create_omp_child_function): Init SSA data structures.
26218         (grid_expand_target_grid_body): Likewise.
26219         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
26220         name before adding it to names_to_release.
26221         (remove_bb): Always release SSA defs.
26222         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
26223         before dereferencing it.
26224         * cgraphunit.c (init_lowered_empty_function): Always
26225         int SSA data structures.
26226         * tree-ssanames.c (release_defs): Remove assert that we are in
26227         SSA form.
26228         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
26230 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
26231             Uros Bizjak  <ubizjak@gmail.com>
26233         PR rtl-optimization/70467
26234         * config/i386/predicates.md (x86_64_hilo_int_operand,
26235         x86_64_hilo_general_operand): New predicates.
26236         * config/i386/constraints.md (Wd): New constraint.
26237         * config/i386/i386.md (mode attr di): Use Wd instead of e.
26238         (general_hilo_operand): New mode attr.
26239         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
26240         instead of <general_operand>.
26241         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
26242         x86_64_hilo_general_operand instead of <general_operand>.
26244 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
26246         PR tree-optimization/70916
26247         * tree-if-conv.c (constant_or_ssa_name): Removed.
26248         (fold_build_cond_expr): Use is_gimple_val instead of
26249         constant_or_ssa_name.
26251         PR tree-optimization/70916
26252         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
26253         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
26255         PR target/49244
26256         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
26257         (optimize_atomic_bit_test_and): New function.
26258         (pass_fold_builtins::execute): Use it.
26259         * optabs.def (atomic_bit_test_and_set_optab,
26260         atomic_bit_test_and_complement_optab,
26261         atomic_bit_test_and_reset_optab): New optabs.
26262         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
26263         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
26264         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
26265         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
26266         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
26267         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
26268         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
26269         * doc/md.texi (atomic_bit_test_and_set@var{mode},
26270         atomic_bit_test_and_complement@var{mode},
26271         atomic_bit_test_and_reset@var{mode}): Document.
26272         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
26273         atomic_bit_test_and_complement<mode>,
26274         atomic_bit_test_and_reset<mode>): New expanders.
26275         (atomic_bit_test_and_set<mode>_1,
26276         atomic_bit_test_and_complement<mode>_1,
26277         atomic_bit_test_and_reset<mode>_1): New insns.
26279 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
26281         PR rtl-optimization/70687
26282         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
26283         instead of unsigned HOST_WIDE_INT.
26285 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
26287         PR rtl-optimization/44281
26288         * hard-reg-set.h (struct target_hard_regs): New field
26289         x_fixed_nonglobal_reg_set.
26290         (fixed_nonglobal_reg_set): New macro.
26291         * reginfo.c (init_reg_sets_1): Initialize it.
26292         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
26293         of fixed_reg_set.
26294         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
26296 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
26298         PR tree-optimization/56541
26299         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
26300         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
26301         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
26302         (any_complicated_phi): new static variable.
26303         (aggressive_if_conv): delete.
26304         (if_convertible_phi_p): support phis with more than two arguments.
26305         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
26306         critical pred edges.
26307         (ifcvt_split_critical_edges): support phis with more than two
26308         arguments by checking new parameter.  only split critical edges
26309         if needed.
26310         (tree_if_conversion): handle simd pragma marked loop using new
26311         local variable aggressive_if_conv.  check any_complicated_phi.
26313 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
26315         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
26316         before using it.
26318 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
26320         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
26321         cbase.
26323 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26325         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
26326         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
26327         define_insn_and_split.
26328         (mulsi3_i): New define_insn_and_split.
26329         (mulsi3_call): Convert to define_insn.
26330         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
26331         Remove constraints.
26333 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26335         * machmode.h (mode_complex): Add support to give the complex mode
26336         for a given mode.
26337         (GET_MODE_COMPLEX_MODE): Likewise.
26338         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
26339         stored by build_complex_type and gfc_build_complex_type instead of
26340         trying to figure out the appropriate mode based on the size. Raise
26341         an assertion error, if the type was not set.
26342         * genmodes.c (struct mode_data): Add field for the complex type of
26343         the given type.
26344         (blank_mode): Likewise.
26345         (make_complex_modes): Remember the complex mode created in the
26346         base type.
26347         (emit_mode_complex): Write out the mode_complex array to map a
26348         type mode to the complex version.
26349         (emit_insn_modes_c): Likewise.
26350         * tree.c (build_complex_type): Set the complex type to use before
26351         calling layout_type.
26352         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
26353         support for __float128 complex datatypes.
26354         (rs6000_hard_regno_mode_ok): Likewise.
26355         (rs6000_setup_reg_addr_masks): Likewise.
26356         (rs6000_complex_function_value): Likewise.
26357         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
26358         __float128 and __ibm128 complex.
26359         (FLOAT128_IBM_P): Likewise.
26360         (ALTIVEC_ARG_MAX_RETURN): Likewise.
26361         * doc/extend.texi (Additional Floating Types): Document that
26362         -mfloat128 must be used to enable __float128.  Document complex
26363         __float128 and __ibm128 support.
26365 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
26367         PR target/49244
26368         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26369         char/short arguments promoted to int because of promote_prototypes.
26371 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
26373         * config/i386/predicates.md (register_ssemem_operand): New predicate.
26374         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26375         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26376         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
26377         alternatives using "enabled" attribute.  Use register_ssemem_operand
26378         as operand 1 predicate.
26379         (*cmpi<unord>xf_i387): Split XFmode pattern from
26380         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26381         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26382         *absneg<mode>2_i387.  Disable unsupported alternatives using
26383         "enabled" attribute.
26384         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26386 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
26388         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26389         marker.
26390         (oacc_loop_process): Check mask for loop termination.
26392 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
26394         * cif-code.def (CIF_THUNK): Add.
26395         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26396         accidental change.
26398 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
26400         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26401         (dump_inline_summary): Dump it.
26402         (fp_expression_p): New predicate.
26403         (estimate_function_body_sizes): Use it.
26404         (inline_merge_summary): Merge fp_expressions.
26405         (inline_read_section): Read fp_expressions.
26406         (inline_write_summary): Write fp_expressions.
26407         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26408         codegen boundary if either caller or callee is !fp_expressions.
26409         * ipa-inline.h (inline_summary): Add fp_expressions.
26410         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26411         to fp_expressions be sure the fp generation flags are updated.
26413 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
26415         PR rtl-optimization/70467
26416         * cse.c (cse_insn): Handle no-op MEM moves after folding.
26418         PR rtl-optimization/70467
26419         * ipa-pure-const.c (check_call): Handle internal calls even in
26420         ipa mode like in local mode.
26422 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26424         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26426 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
26428         * match.pd (X u< X, X u> X): New transformations.
26430 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
26432         * flag-types.h (enum warn_strict_overflow_code): Move ...
26433         * coretypes.h: ... here.
26434         * fold-const.h (fold_overflow_warning): Declare.
26435         * fold-const.c (fold_overflow_warning): Make non-static.
26436         (fold_comparison): Move the transformation of X +- C1 CMP C2
26437         into X CMP C2 -+ C1 ...
26438         * match.pd: ... here.
26439         * gimple-fold.c (fold_stmt_1): Protect with
26440         fold_defer_overflow_warnings.
26442 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
26444         * omp-low.c (struct oacc_loop): Add 'inner' field.
26445         (new_oacc_loop_raw): Initialize it to zero.
26446         (oacc_loop_fixed_partitions): Initialize it.
26447         (oacc_loop_auto_partitions): Partition outermost loop to outermost
26448         available partitioning.
26450 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
26452         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26453         register_operand.
26454         (umulsidi3): Likewise.
26455         (indirect_jump): Fix jump instruction assembly patterns.
26457 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
26459         PR target/70860
26460         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26461         (nvptx_function_value): Assert non-NULL cfun.
26463 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
26465         PR rtl-optimization/70886
26466         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26468         * cselib.h (rtx_equal_for_cselib_1): Declare.
26469         (rtx_equal_for_cselib_p: New inline function.
26470         * cselib.c (rtx_equal_for_cselib_p): Delete.
26471         (rtx_equal_for_cselib_1): Make public.
26473 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
26475         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26476         (register_mixssei387nonimm_operand): Remove predicate.
26477         * config/i386/i386.md (*fop_<mode>_comm): Merge from
26478         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
26479         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
26480         for TARGET_MIX_SSE_I387 alternatives.
26481         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26482         Disable unsupported alternatives using "enabled" attribute.  Use
26483         nonimm_ssenomem_operand as operand 1 predicate.  Also check
26484         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26486 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
26488         * tree.c (cst_and_fits_in_hwi): Simplify.
26490 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
26492         * tree.h (wi::to_wide): New function.
26493         * expr.c (expand_expr_real_1): Use wi::to_wide.
26494         * fold-const.c (int_const_binop_1): Likewise.
26495         (extract_muldiv_1): Likewise.
26497 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
26499         * wide-int.h: Update offset_int and widest_int documentation.
26500         (WI_SIGNED_SHIFT_RESULT): New macro.
26501         (wi::binary_shift): Define signed_shift_result_type for
26502         shifts on offset_int- and widest_int-like types.
26503         (generic_wide_int): Support <<= and >>= if << and >> are supported.
26504         * tree.h (int_bit_position): Use shift operators instead of wi::
26505          shifts.
26506         * alias.c (adjust_offset_for_component_ref): Likewise.
26507         * expr.c (get_inner_reference): Likewise.
26508         * fold-const.c (fold_comparison): Likewise.
26509         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26510         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26511         * tree-dfa.c (get_ref_base_and_extent): Likewise.
26512         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26513         (stmt_kills_ref_p): Likewise.
26514         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26515         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26516         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26517         (ao_ref_init_from_vn_reference): Likewise.
26519 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
26521         * wide-int.h: Update offset_int and widest_int documentation.
26522         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26523         (wi::binary_traits): Allow ordered comparisons between offset_int and
26524         offset_int, between widest_int and widest_int, and between either
26525         of these types and basic C types.
26526         (operator <, <=, >, >=): Define for the same combinations.
26527         * tree.h (tree_int_cst_lt): Use comparison operators instead
26528         of wi:: comparisons.
26529         (tree_int_cst_le): Likewise.
26530         * gimple-fold.c (fold_array_ctor_reference): Likewise.
26531         (fold_nonarray_ctor_reference): Likewise.
26532         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26533         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26534         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26535         * tree-sra.c (completely_scalarize): Likewise.
26536         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26537         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26538         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26539         (check_for_binary_op_overflow): Likewise.
26540         (search_for_addr_array): Likewise.
26541         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26543 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
26545         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26546         (arc_save_restore): Likewise.
26547         (arc_dwarf_register_span): Likewise.
26548         (arc_output_pic_addr_const): Initialize suffix variable.
26550 2016-05-02  Martin Liska  <mliska@suse.cz>
26552         * symbol-summary.h (function_summary::function_summary):
26553         Remove checking assert for all cgraph nodes.
26554         (function_summary::get): Check summary_uid.
26555         (symtab_insertion): Check summary_uid.
26557 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
26559         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26560         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26561         bmaskn instruction.
26562         (arc_dwarf_register_span): Remove enum keyword.
26563         (compact_memory_operand_p): New function.
26564         * config/arc/arc.h (reg_class): Add code density register classes.
26565         (REG_CLASS_NAMES): Likewise.
26566         (REG_CLASS_CONTENTS): Likewise.
26567         * config/arc/arc.md (*movqi_insn): Add code density instructions.
26568         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26569         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26570         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26571         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26572         constraints.
26573         (h, Rcd, Rsd, Rzd): New register constraints.
26574         (T): Use compact_memory_operand_p function.
26575         * config/arc/predicates.md (compact_load_memory_operand): Remove.
26577 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
26579         * config/sh/sh.md (*negnegt, *movtt): Remove.
26581 2016-05-02  Marek Polacek  <polacek@redhat.com>
26582             Tom de Vries  <tom@codesourcery.com>
26584         PR tree-optimization/70700
26585         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26586         bigger than FIRST_REF_NODE.
26588 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
26590         PR target/52898
26591         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26592         TARGET_CMPEQDI_T.
26593         (prepare_cbranch_operands): Don't use scratch register.  Assume that
26594         function is used when pseudos can be created.
26595         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
26596         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26597         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26598         define_expand.  Allow it only when pseudos can be created.
26599         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26601 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
26603         * config/i386/constraints.md (BC): Only allow -1 operands.
26604         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26605         Add "enabled" attribute.  Update XI mode attribute calculation.
26606         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26607         (*movoi_internal_avx): Update XI mode attribute calculation.
26608         (*movti_internal): Ditto.
26610 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
26612         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26613         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26615 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
26617         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26618         statement on instruction code.  Remove trailing spaces.
26619         (altivec_expand_stv_builtin): Likewise.
26621 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
26623         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26624         (TARGET_FPU_DOUBLE): Simplify.
26625         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26626         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26627         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26628         with 'TARGET_FPU_DOUBLE'.
26629         * config/sh/sh.md: Likewise.
26631 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
26633         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26634         SH_DIV_STR_FOR_SIZE): Remove.
26635         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26636         SH_DIV_STR_FOR_SIZE): Remove.
26638 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
26640         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26641         logical_reg_operand): Delete.
26642         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26643         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26644         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26645         match_operand and match_test.
26646         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
26647         variables on their first use.  Return bool values.
26648         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26649         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26650         arith_reg_operand for input operand.  Remove empty constraints.
26651         (xorsi3): Delete.
26652         (*xorsi3_compact): Rename to xorsi3.
26653         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26654         (*zero_extend<mode>si2_disp_mem): Update comment.
26655         (mov_nop): Delete.
26657 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
26659         * config/sh/t-sh: Remove SH5 support.
26660         * config.gcc: Likewise.
26661         * configure: Likewise.
26663 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26665         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26667 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
26669         * config/sh/sh.c (register_sh_passes, sh_option_override,
26670         sh_print_operand, prepare_move_operands,
26671         sh_can_follow_jump): Remove TARGET_SH1 checks.
26672         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26673         PROMOTE_MODE): Likewise.
26674         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26675         movdi): Likewise.
26677 2016-04-30  Alan Modra  <amodra@gmail.com>
26679         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26680         restoring when fixed_reg_p, but allow out-of-line or stmw save.
26681         Check for user regs later to avoid unnecessary looping over regs.
26682         Merge user reg check with non-saved reg check.  Don't force
26683         inline VR restore when static chain used.
26684         (rs6000_frame_related): Omit eh_frame info for user regs when
26685         saving.
26686         (fixed_regs_p): Delete.
26688 2016-04-30  Alan Modra  <amodra@gmail.com>
26690         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26691         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
26692         Update all uses.
26694 2016-04-30  Alan Modra  <amodra@gmail.com>
26696         PR target/69645
26697         * config/rs6000/rs6000.c (fixed_reg_p): New function.
26698         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
26699         Update all uses.
26701 2016-04-30  Alan Modra  <amodra@gmail.com>
26703         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26704         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
26705         flag_pic test for Darwin.
26707 2016-04-30  Alan Modra  <amodra@gmail.com>
26709         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26710         throw_calls_crossed.
26711         (REG_FREQ_CALLS_CROSSED): Delete.
26712         (REG_N_THROWING_CALLS_CROSSED): Delete.
26713         * regstat.c (regstat_bb_compute_ri): Don't calculate
26714         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26715         (dump_reg_info): Don't print call cross frequency.
26716         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26717         and REG_N_THROWING_CALLS_CROSSED.
26719 2016-04-30  Alan Modra  <amodra@gmail.com>
26721         * regs.h (struct reg_info_t): Delete live_length.
26722         (REG_LIVE_LENGTH): Delete macro.
26723         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26724         local_live, local_processed and local_live_last_luid params.
26725         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
26726         Formatting fixes.
26727         (regstat_compute_ri): Adjust for above.  Don't set
26728         REG_LIVE_LENGTH.
26729         (dump_reg_info): Don't print live length.
26730         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26731         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
26732         Localize loop_depth var.
26734 2016-04-30  Alan Modra  <amodra@gmail.com>
26736         * ira.c (enum valid_equiv): New.
26737         (validate_equiv_mem): Return enum.
26738         (update_equiv_mem): Create replacement in more cases.
26739         (add_store_equivs): Update validate_equiv_mem call.
26741 2016-04-30  Alan Modra  <amodra@gmail.com>
26743         * ira.c (combine_and_move_insns): Rather than scanning insns,
26744         use DF infrastucture to find use and def insns.
26746 2016-04-30  Alan Modra  <amodra@gmail.com>
26748         ira.c (combine_and_move_insns): Move invariant conditions..
26749         (ira.c): ..to here.  Call combine_and_move_insns before
26750         add_store_equivs.  Call grow_reg_equivs later.  Allocate
26751         req_equiv later using max_reg_num() rather than global max_regno.
26752         (contains_replace_regs): Delete.
26753         (add_store_equivs): Remove contains_replace_regs test.
26755 2016-04-30  Alan Modra  <amodra@gmail.com>
26757         * ira.c (struct equiv_mem_data): New.
26758         (equiv_mem, equiv_mem_modified): Delete static vars.
26759         (validate_equiv_mem_from_store): Use "data" param to communicate..
26760         (validate_equiv_mem): ..from here.
26762 2016-04-30  Alan Modra  <amodra@gmail.com>
26764         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26765         split out from..
26766         (update_reg_equivs): ..here.  Move allocation and freeing of
26767         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26768         end_alias_analysis to..
26769         (ira): ..here.
26771 2016-04-30  Alan Modra  <amodra@gmail.com>
26773         * ira.c (pdx_subregs): Delete.
26774         (struct equivalence): Add pdx_subregs field.
26775         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
26776         pdx_subregs access.
26777         (update_equiv_regs): Don't create or free pdx_subregs.  Update
26778         pdx_subregs access.
26780 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26782         * config/rs6000/altivec.h: Change definitions of vec_xl and
26783         vec_xst.
26784         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26785         (LD_ELEMREV_V2DI): New.
26786         (LD_ELEMREV_V4SF): New.
26787         (LD_ELEMREV_V4SI): New.
26788         (LD_ELEMREV_V8HI): New.
26789         (LD_ELEMREV_V16QI): New.
26790         (ST_ELEMREV_V2DF): New.
26791         (ST_ELEMREV_V2DI): New.
26792         (ST_ELEMREV_V4SF): New.
26793         (ST_ELEMREV_V4SI): New.
26794         (ST_ELEMREV_V8HI): New.
26795         (ST_ELEMREV_V16QI): New.
26796         (XL): New.
26797         (XST): New.
26798         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26799         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26800         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26801         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26802         (altivec_expand_builtin): Add handling for
26803         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26804         (rs6000_invalid_builtin): Add error-checking for
26805         RS6000_BTM_P9_VECTOR.
26806         (altivec_init_builtins): Define builtins used to implement vec_xl
26807         and vec_xst.
26808         (rs6000_builtin_mask_names): Define power9-vector.
26809         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26810         (RS6000_BTM_P9_VECTOR): Define.
26811         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26812         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26813         (vsx_ld_elemrev_v2df): Likewise.
26814         (vsx_ld_elemrev_v4sf): Likewise.
26815         (vsx_ld_elemrev_v4si): Likewise.
26816         (vsx_ld_elemrev_v8hi): Likewise.
26817         (vsx_ld_elemrev_v16qi): Likewise.
26818         (vsx_st_elemrev_v2df): Likewise.
26819         (vsx_st_elemrev_v2di): Likewise.
26820         (vsx_st_elemrev_v4sf): Likewise.
26821         (vsx_st_elemrev_v4si): Likewise.
26822         (vsx_st_elemrev_v8hi): Likewise.
26823         (vsx_st_elemrev_v16qi): Likewise.
26824         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
26825         grammar.
26827 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
26829         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26830         out into ...
26831         (simplify_control_stmt_condition_1): ... here.  Recurse into
26832         BIT_AND_EXPRs and BIT_IOR_EXPRs.
26834 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
26836         PR target/69810
26837         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26838         (zero_extendqi<mode>2_dot): Revert earlier conversion from
26839         define_insn_and_split to define_insn.
26840         (zero_extendqi<mode>2_dot2): Same.
26841         (extendqi<mode>2_dot): Same.
26842         (extendqi<mode>2_dot2): Same.
26844 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
26846         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26847         (probe_stack): New expander.
26848         (probe_stack_<mode>): New insn pattern.
26850 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
26852         * config/i386/i386.md
26853         (operations with memory inputs setting flags peephole2):
26854         Remove uneeded REG_P checks.  Cleanup pattern generation.
26856 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
26858         * tree-vect-loop.c (vect_transform_loop): Fix
26859         nb_iterations_upper_bound computation for vectorized loop.
26861 2016-04-29  Marek Polacek  <polacek@redhat.com>
26862             Jakub Jelinek  <jakub@redhat.com>
26864         PR sanitizer/70342
26865         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26866         TARGET_EXPR_SLOT as a base.
26868 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
26870         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26871         with 'rCm2' constraints to limit possible immediate size.
26872         (*load_zeroextendqisi_update): Likewise.
26873         (*load_signextendqisi_update): Likewise.
26874         (*loadhi_update): Likewise.
26875         (*load_zeroextendhisi_update): Likewise.
26876         (*load_signextendhisi_update): Likewise.
26877         (*loadsi_update): Likewise.
26878         (*loadsf_update): Likewise.
26880 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
26882         * config/i386/predicates.md (constm1_operand): Fix comparison.
26884 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
26886         * testsuite/gcc.target/arc/ieee_eq.c: New test.
26888 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
26890         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26891         remaining SH5 related settings.
26892         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26893         shmedia_prepare_call_address): Delete.
26894         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26895         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26896         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26897         UNSUPPORTED_SH2A): Remove m5 checks.
26898         (sh_divide_strategy_e): Remove SH5 division strategies.
26899         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26900         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26902 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26904         * config/s390/s390.c (s390_rtx_costs): Update documentation.
26906 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26908         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26909         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26910         Change lder to ldr.
26911         * config/s390/vector.md ("mov<mode>"): Likewise.
26913 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
26915         * config/s390/constraints.md ("U", "W"): Invoke
26916         s390_mem_constraint with "ZR" and "ZT".
26917         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26918         addresses when using LRA.  Accept also short displacements for S
26919         and T constraints.  Do not check for long displacement target for
26920         S and T constraints.
26921         (s390_mem_constraint): Remove handling of U and W constraints.
26922         * config/s390/s390.md (various patterns): Remove the short
26923         displacement constraints (Q and R) if a long displacement
26924         constraint is present.  Add longdisp as required CPU capability.
26925         * config/s390/vector.md: Likewise.
26926         * config/s390/vx-builtins.md: Likewise.
26928 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26930         PR target/60040
26931         * reload1.c (reload): Call finish_spills before
26932         restarting reload loop. Skip select_reload_regs
26933         if update_eliminables_and_spill returns true.
26935 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
26937         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26938         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26939         (umulhisi3_imm): Update predicates and constraint letters.
26940         (umulhisi3_reg): Declare instruction as commutative.
26941         * config/arc/constraints.md (J12, J16): New constraints.
26942         * config/arc/predicates.md (short_unsigned_const_operand): New
26943         predicate.
26944         (arc_short_operand): Likewise.
26945         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26947 2016-04-29  Richard Biener  <rguenther@suse.de>
26949         PR tree-optimization/13962
26950         PR tree-optimization/65686
26951         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26952         * tree-ssa-alias.c (ptrs_compare_unequal): New function
26953         using PTA to compare pointers.
26954         * match.pd: Add pattern for pointer equality compare simplification
26955         using ptrs_compare_unequal.
26957 2016-04-29  Richard Biener  <rguenther@suse.de>
26959         * stor-layout.c (layout_type): Do not build a pointer-to-element
26960         type for arrays.
26962 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
26964         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26965         Use SWI mode iterator.  Use general_reg_operand predicate.
26966         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26967         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
26968         predicates.
26970 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
26972         PR middle-end/70843
26973         * fold-const.c (operand_equal_p): Don't verify hash value equality
26974         if arg0 == arg1.
26975         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
26976         and OMP_CLAUSE.
26978 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
26980         PR target/70858
26981         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26982         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26983         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26984         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26985         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26987 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
26989         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26990         to info.  Don't initialize separate fields to 0.  Clean up
26991         formatting a bit.
26993 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
26995         * config/i386/i386.md (peephole2s for operations with memory inputs):
26996         Use SWI mode iterator.
26997         (peephole2s for operations with memory outputs): Ditto.
26998         Do not check for stack checking probe.
27000         (probe_stack): Remove expander.
27002 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
27003             Andrew Burgess  <andrew.burgess@embecosm.com>
27005         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
27006         operands as 32-bits.
27008 2016-04-28  Jason Merrill  <jason@redhat.com>
27010         * gdbinit.in: Skip line-map.h.
27012 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
27013             Andrew Burgess  <andrew.burgess@embecosm.com>
27015         * config/arc/arc.c (arc_conditional_register_usage): Take
27016         TARGET_RRQ_CLASS into account.
27017         (arc_print_operand): Support printing 'p' and 's' operands.
27018         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
27019         as 0.
27020         (TARGET_RRQ_CLASS): Define.
27021         (IS_POWEROF2_OR_0_P): Define.
27022         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
27023         alternatives.
27024         (*tst_movb): New define_insn.
27025         (*tst): Avoid recognition if it could prevent '*tst_movb'
27026         combination; replace c/CnL with c/Chs alternative.
27027         (*tst_bitfield_tst): New define_insn.
27028         (*tst_bitfield_asr): New define_insn.
27029         (*tst_bitfield): New define_insn.
27030         (andsi3_i): Add Rrq variant.
27031         (extzv): New define_expand.
27032         (insv): New define_expand.
27033         (*insv_i): New define_insn.
27034         (*movb): New define_insn.
27035         (*movb_signed): New define_insn.
27036         (*movb_high): New define_insn.
27037         (*movb_high_signed): New define_insn.
27038         (*movb_high_signed + 1): New define_split pattern.
27039         (*mrgb): New define_insn.
27040         (*mrgb + 1): New define_peephole2 pattern.
27041         (*mrgb + 2): New define_peephole2 pattern.
27042         * config/arc/arc.opt (mbitops): New option for nps400, uses
27043         TARGET_NPS_BITOPS_DEFAULT.
27044         * config/arc/constraints.md (q): Make register class conditional.
27045         (Rrq): New register constraint.
27046         (Chs): New constraint.
27047         (Clo): New constraint.
27048         (Chi): New constraint.
27049         (Cbf): New constraint.
27050         (Cbn): New constraint.
27051         (C18): New constraint.
27052         (Cbi): New constraint.
27054 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
27056         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
27057         dst->popcount.
27058         (bitmap_intersection_of_preds): Ditto.
27059         (bitmap_union_of_succs): Ditto.
27060         (bitmap_union_of_preds): Ditto.
27061         * sbitmap.c (do_popcount): Delete.
27062         (BITMAP_DEBUGGING): Delete.
27063         (sbitmap_verify_popcount): Delete.
27064         (sbitmap_alloc): Don't initialize the popcount field.
27065         (sbitmap_alloc_with_popcount): Delete.
27066         (sbitmap_resize): Don't resize the popcount array.
27067         (sbitmap_vector_alloc): Don't initialize the popcount field.
27068         (bitmap_copy): Don't copy the popcount array.
27069         (bitmap_clear): Don't clear the popcount array.
27070         (bitmap_clear): Delete the popcount array handling.
27071         (bitmap_ior_and_compl): Delete the popcount assert.
27072         (bitmap_not): Ditto.
27073         (bitmap_and_compl): Ditto.
27074         (bitmap_and): Delete the popcount array handling.
27075         (bitmap_xor): Ditto.
27076         (bitmap_ior): Ditto.
27077         (bitmap_or_and): Delete the popcount assert.
27078         (bitmap_and_or): Ditto.
27079         (popcount_table): Delete.
27080         (sbitmap_elt_popcount): Delete.
27081         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
27082         (bitmap_set_bit): Delete the popcount assert.
27083         (bitmap_clear_bit): Ditto.
27084         (sbitmap_free): Don't free the popcount array.
27085         (sbitmap_alloc_with_popcount): Delete declaration.
27086         (sbitmap_popcount): Ditto.
27088 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
27089             Andrew Burgess  <andrew.burgess@embecosm.com>
27091         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
27092         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
27093         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
27094         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
27095         * config/arc/arc.opt (mcmem): New option.
27096         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
27097         supply length for r/m alternative.
27098         (*extendqisi2_ac): Likewise.
27099         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
27100         r/Uex alternative.
27101         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
27102         (movhi_insn): Likewise.
27103         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
27104         (*zero_extendqihi2_i): Add r/Ucm alternative.
27105         (*zero_extendqisi2_ac): Likewise.
27106         (*zero_extendhisi2_i): Likewise.
27107         * config/arc/constraints.md (Uex): New memory constraint.
27108         (Ucm): New define_constraint.
27109         * config/arc/predicates.md (long_immediate_loadstore_operand):
27110         Return 0 for MEM with cmem_address address.
27111         (cmem_address_0): New predicates.
27112         (cmem_address_1): Likewise.
27113         (cmem_address_2): Likewise.
27114         (cmem_address): Likewise.
27116 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
27118         * config/rs6000/rs6000.c (machine_function): Rename
27119         insn_chain_scanned_p to spe_insn_chain_scanned_p.
27120         (rs6000_stack_info): Adjust.
27122 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
27123             Andrew Burgess  <andrew.burgess@embecosm.com>
27125         * config/arc/constraints.md (Usd): Convert to define_constraint.
27126         (Us<): Likewise.
27127         (Us>): Likewise.
27129 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
27131         PR target/70821
27132         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
27133         Add new peephole2 where the first insn is *mov<mode>_or instead of
27134         *mov<mode>_internal.
27136 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
27138         * tracer.c (bb_seen): Make static.
27140 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
27142         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
27143         support, setup defaults.
27144         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
27145         * config/arc/arc.c (arc_init): Add NPS400 support.
27146         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
27147         (TARGET_ARC700): NPS400 is also an ARC700.
27148         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
27150 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
27152         PR target/70668
27153         * config/nds32/nds32.md (casesi): Don't access the operands array
27154         out of bounds.
27156 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
27158         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
27159         (or $-1,reg peephole2): Ditto.
27160         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
27162 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
27164         * doc/extend.texi (Common Function Attributes) [optimize]:
27165         Discourage use of the optimize attribute.
27167 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
27169         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
27170         special case builtin.
27171         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
27172         ALTIVEC_BUILTIN_VEC_ADDE.
27173         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
27174         support for ALTIVEC_BUILTIN_VEC_ADDE.
27175         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
27176         for __builtin_vec_adde.
27178 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
27180         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
27181         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
27183 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27185         PR testsuite/70595
27186         * doc/sourcebuild.texi (Effective-Target Keywords, Other
27187         attributes): Document cilkplus_runtime.
27189 2016-04-28  Martin Jambor  <mjambor@suse.cz>
27191         * tree-cfg.c (verify_expr): Verify that local declarations belong to
27192         this function.  Call verify_expr on MEM_REFs and bases of other
27193         handled_components.
27195 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27197         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
27198         for WORD_REGISTER_OPERATIONS to runtime check.
27200 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
27202         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
27204 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
27206         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
27207         big-endian compilation.
27208         * config/arc/arc.md (addf3): Likewise.
27209         (subdf3): Likewise.
27210         (muldf3): Likewise.
27212 2016-04-28  Richard Biener  <rguenther@suse.de>
27214         PR tree-optimization/70840
27215         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
27216         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
27217         Mark x * pow(x,c) -> pow(x,c+1) commutative.
27218         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
27220 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27222         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
27223         and explain why in a comment.
27225 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
27227         * config/arc/arc.md (cpu_facility): Add fpx variant.
27228         (subdf3): Prohibit use reverse sub when assist operations option
27229         is enabled.
27230         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
27231         instructions only when FPX is enabled.
27232         * testsuite/gcc.target/arc/trsub.c: New test.
27234 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
27236         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
27237         mult_operator when calculating "type" attribute.
27238         (*fop_<mode>_1_i387): Ditto.
27239         (*fop_xf_1_i387): Ditto.
27240         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
27241         Use std::swap to swap operands.  Use RTL expressions to generate
27242         converted pattern.
27244 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
27245             Joern Rennecke  <joern.rennecke@embecosm.com>
27247         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
27248         declaration.
27249         (emit_pic_move): Remove.
27250         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
27251         * config/arc/arc.c (emit_pic_move): Removed.
27252         (TARGET_HAVE_TLS): Define.
27253         (arc_conditional_register_usage): Test for arc_tp_regno.
27254         (arc_print_operand, arc_print_operand_address): Handle TLS
27255         unspecs.
27256         (arc_needs_pcl_p): New function.
27257         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
27258         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
27259         (arc_raw_symbolic_reference_mentioned_p): Likewise.
27260         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
27261         (arc_legitimize_tls_address): Likewise.
27262         (DTPOFF_ZERO_SYM): Define.
27263         (arc_legitimize_pic_address): Make it static, handle TLS cases.
27264         (arc_output_pic_addr_const): Print TLS unspecs.
27265         (prepare_pic_move): New function, replaces emit_pic_move.
27266         (arc_legitimate_constant_p): Handle TLS unspecs.
27267         (arc_legitimate_address_p): Likewise.
27268         (arc_rewrite_small_data_p): Use assert for TLS constants.
27269         (prepare_move_operands): Use prepare_pic_move.
27270         (arc_legitimize_address): Legitimize tls addresses.
27271         (arc_epilogue_uses): Check for arc_tp_regno.
27272         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
27273         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
27274         Define.
27275         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
27276         Likewise.
27277         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
27278         %(arc_tls_extra_start_spec).
27279         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
27280         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
27281         (EH_USES): Define.
27282         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
27283         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
27284         (UNSPEC_TLS_OFF): Add.
27285         (R10_REG): Define.
27286         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
27287         (get_thread_pointersi): New patterns.
27288         * config/arc/arc.opt (mtp-regno): New option.
27289         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
27290         (move_dest_operand): Likewise.
27291         * configure: Regenerate.
27292         * configure.ac: Add arc*-*-* case to test for tls.
27293         * doc/invoke.texi (ARC options): Document mtp-regno.
27295 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
27297         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
27298         the new ARC HS SIMD instructions.
27299         (arc_preferred_simd_mode): New function.
27300         (arc_autovectorize_vector_sizes): Likewise.
27301         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27302         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
27303         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
27304         (arc_init_builtins): Add new SIMD builtin types.
27305         (arc_split_move): Handle 64 bit vector moves.
27306         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
27307         (TARGET_PLUS_QMACW): Define.
27308         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
27309         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
27310         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
27311         (VSUBADD4H): New builtins.
27312         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
27313         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
27315 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
27316             Matthias Klose  <doko@debian.org>
27318         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
27320 2016-04-28  Richard Biener  <rguenther@suse.de>
27322         PR middle-end/70777
27323         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
27324         canonicalization.
27326 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
27328         * common/config/sh/sh-common.c: Remove SH5 support.
27329         * config/sh/constraints.md: Likewise.
27330         * config/sh/config/sh/elf.h: Likewise.
27331         * config/sh/linux.h: Likewise.
27332         * config/sh/netbsd-elf.h: Likewise.
27333         * config/sh/predicates.md: Likewise.
27334         * config/sh/sh-c.c: Likewise.
27335         * config/sh/sh-protos.h: Likewise.
27336         * config/sh/sh.c: Likewise.
27337         * config/sh/sh.h: Likewise.
27338         * config/sh/sh.md: Likewise.
27339         * config/sh/sh.opt: Likewise.
27340         * config/sh/sync.md: Likewise.
27341         * config/sh/sh64.h: Delete.
27342         * config/sh/shmedia.h: Likewise.
27343         * config/sh/shmedia.md: Likewise.
27344         * config/sh/sshmedia.h: Likewise.
27345         * config/sh/t-netbsd-sh5-64: Likewise.
27346         * config/sh/t-sh64: Likewise.
27347         * config/sh/ushmedia.h: Likewise.
27349 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
27351         * config/i386/i386.md (sign_extend to memory peephole2s): Use
27352         general_reg_operand instead of register_operand predicate.
27354 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27356         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
27358 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
27360         * match.pd (A - B > A, A + B < A): New transformations.
27362 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
27364         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27365         which defaults to true.  Emit an outer pair of parentheses only if
27366         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
27367         don't emit parentheses for the right-hand operand.
27369 2016-04-27  Jeff Law  <law@redhat.com>
27371         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27373 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27375         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27376         (altivec_lvx_<mode>_internal): Document.
27377         (altivec_lvx_<mode>_2op): New define_insn.
27378         (altivec_lvx_<mode>_1op): Likewise.
27379         (altivec_lvx_<mode>_2op_si): Likewise.
27380         (altivec_lvx_<mode>_1op_si): Likewise.
27381         (altivec_stvx_<mode>): Remove.
27382         (altivec_stvx_<mode>_internal): Document.
27383         (altivec_stvx_<mode>_2op): New define_insn.
27384         (altivec_stvx_<mode>_1op): Likewise.
27385         (altivec_stvx_<mode>_2op_si): Likewise.
27386         (altivec_stvx_<mode>_1op_si): Likewise.
27387         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27388         Expand vec_ld and vec_st during parsing.
27389         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27390         changes.
27391         (altivec_expand_stvx_be): Likewise.
27392         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27393         address-masking behavior in RTL.
27394         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27395         address-masking behavior in RTL.
27396         (altivec_expand_builtin): Change builtin code arguments for calls
27397         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27398         (insn_is_swappable_p): Avoid incorrect swap optimization in the
27399         presence of lvx/stvx patterns.
27400         (alignment_with_canonical_addr): New function.
27401         (alignment_mask): Likewise.
27402         (find_alignment_op): Likewise.
27403         (recombine_lvx_pattern): Likewise.
27404         (recombine_stvx_pattern): Likewise.
27405         (recombine_lvx_stvx_patterns): Likewise.
27406         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27407         stvx patterns from expand.
27408         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27409         expansions.
27410         (vector_altivec_store_<mode>): Likewise.
27412 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
27414         * config/aarch64/aarch64.md
27415         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27416         remove the "fp" attributes.
27417         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27418         add the "simd" attributes.
27419         (*movdf_aarch64): Likewise.
27420         (*movtf_aarch64): Remove the "fp" attributes.
27421         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27422         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27424 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
27426         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27427         rtx to rtx_code_label *.
27428         * rtl.h (maybe_set_first_label_num): Likewise.
27430 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
27432         * df-core.c (df_add_problem): Make the problem param be const.
27433         (df_remove_problem): Make local "problem" be const.
27434         * df-problems.c (problem_RD): Make const.
27435         (problem_LR): Likewise.
27436         (problem_LIVE): Likewise.
27437         (problem_MIR): Likewise.
27438         (problem_CHAIN): Likewise.
27439         (problem_WORD_LR): Likewise.
27440         (problem_NOTE): Likewise.
27441         (problem_MD): Likewise.
27442         * df-scan.c (problem_SCAN): Likewise.
27443         * df.h (struct df_problem): Make field "dependent_problem" be
27444         const.
27445         (struct dataflow): Likewise for field "problem".
27446         (df_add_problem): Make param const.
27448 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
27450         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27451         inter-unit moves to/from vector registers are enabled.  Do not disable
27452         for TARGET_MMX.
27454 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
27456         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27457         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27458         #define to...
27459         (enum df_problem_id): ...this new enum.
27460         (struct df_problem): Convert field "id" from "int" to
27461         enum df_problem_id.
27463 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
27465         * rtl.def: Update comment for "things in the instruction chain" to
27466         reflect the removal of the leading "i" field for INSN_UID in
27467         r210360.  Fix bogus apostrophe.
27469 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
27471         * config/i386/i386.md
27472         (lea arith with mem operand + setcc peephole2): Set operator mode.
27474 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
27476         PR target/70155
27477         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27478         (dimode_scalar_to_vector_candidate_p): This.
27479         (timode_scalar_to_vector_candidate_p): New function.
27480         (scalar_to_vector_candidate_p): Likewise.
27481         (timode_check_non_convertible_regs): Likewise.
27482         (timode_remove_non_convertible_regs): Likewise.
27483         (remove_non_convertible_regs): Likewise.
27484         (remove_non_convertible_regs): Renamed to ...
27485         (dimode_remove_non_convertible_regs): This.
27486         (scalar_chain::~scalar_chain): Make it virtual.
27487         (scalar_chain::compute_convert_gain): Make it pure virtual.
27488         (scalar_chain::mark_dual_mode_def): Likewise.
27489         (scalar_chain::convert_insn): Likewise.
27490         (scalar_chain::convert_registers): Likewise.
27491         (scalar_chain::add_to_queue): Make it protected.
27492         (scalar_chain::emit_conversion_insns): Likewise.
27493         (scalar_chain::replace_with_subreg): Likewise.
27494         (scalar_chain::replace_with_subreg_in_insn): Likewise.
27495         (scalar_chain::convert_op): Likewise.
27496         (scalar_chain::convert_reg): Likewise.
27497         (scalar_chain::make_vector_copies): Likewise.
27498         (scalar_chain::convert_registers): New pure virtual function.
27499         (class dimode_scalar_chain): New class.
27500         (class timode_scalar_chain): Likewise.
27501         (scalar_chain::mark_dual_mode_def): Renamed to ...
27502         (dimode_scalar_chain::mark_dual_mode_def): This.
27503         (timode_scalar_chain::mark_dual_mode_def): New function.
27504         (timode_scalar_chain::convert_insn): Likewise.
27505         (dimode_scalar_chain::convert_registers): Likewise.
27506         (scalar_chain::compute_convert_gain): Renamed to ...
27507         (dimode_scalar_chain::compute_convert_gain): This.
27508         (scalar_chain::replace_with_subreg): Renamed to ...
27509         (dimode_scalar_chain::replace_with_subreg): This.
27510         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27511         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27512         (scalar_chain::make_vector_copies): Renamed to ...
27513         (dimode_scalar_chain::make_vector_copies): This.
27514         (scalar_chain::convert_reg): Renamed to ...
27515         (dimode_scalar_chain::convert_reg ): This.
27516         (scalar_chain::convert_op): Renamed to ...
27517         (dimode_scalar_chain::convert_op): This.
27518         (scalar_chain::convert_insn): Renamed to ...
27519         (dimode_scalar_chain::convert_insn): This.
27520         (scalar_chain::convert): Call convert_registers.
27521         (convert_scalars_to_vector): Change to scalar_chain pointer to
27522         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27523         in 32-bit mode.  Delete scalar_chain pointer.  Call
27524         free_dominance_info in 64-bit mode.
27525         (pass_stv::gate): Remove TARGET_64BIT check.
27526         (ix86_option_override): Put the 64-bit STV pass before the CSE
27527         pass.
27529 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
27531         * dwarf2out.h (struct dw_loc_descr_node): Remove the
27532         dw_loc_frame_offset field.
27533         * dwarf2out.c (new_loc_descr): Likewise.
27534         (resolve_args_picking_1): Turn the VISITED hash set into a
27535         FRAME_OFFSET hash map. Use it to associate a frame offset to
27536         visited nodes. Remove uses of the CHECKING_P macro.
27537         (resolve_args_picking): Update call to resolve_args_picking_1.
27539 2016-04-27  Martin Liska  <mliska@suse.cz>
27541         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27542         (free_loop_data): Release vuses of groups.
27544 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
27546         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27547         instead of redundant use_id and boolean have_use_for.
27548         (struct iv_use): Change sub_id into group_id.  Remove field next.
27549         Move fields: related_cands, n_map_members, cost_map and selected
27550         to ...
27551         (struct iv_group): ... here.  New structure.
27552         (struct iv_common_cand): Use structure declaration directly.
27553         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27554         (MAX_CONSIDERED_USES): Rename macro to ...
27555         (MAX_CONSIDERED_GROUPS): ... here.
27556         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27557         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27558         (dump_uses): Rename to ...
27559         (dump_groups): ... here.  Update all uses.
27560         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27561         (find_induction_variables): Refactor format of dump information.
27562         (record_sub_use): Delete.
27563         (record_use): Update all uses.
27564         (record_group): New function.
27565         (record_group_use, find_interesting_uses_op): Call above functions.
27566         Update all uses.
27567         (find_interesting_uses_cond): Ditto.
27568         (group_compare_offset): New function.
27569         (split_all_small_groups): Rename to ...
27570         (split_small_address_groups_p): ... here.  Update all uses.
27571         (split_address_groups):  Update all uses.
27572         (find_interesting_uses): Refactor format of dump information.
27573         (add_candidate_1): Update all uses.  Remove redundant check on iv,
27574         base and step.
27575         (add_candidate, record_common_cand): Remove redundant assert.
27576         (add_iv_candidate_for_biv): Update use.
27577         (add_iv_candidate_derived_from_uses): Update all uses.
27578         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27579         (alloc_use_cost_map): Ditto.
27580         (set_use_iv_cost, get_use_iv_cost): Rename to ...
27581         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
27582         (determine_use_iv_cost_generic): Ditto.
27583         (determine_group_iv_cost_generic): Ditto.
27584         (determine_use_iv_cost_address): Ditto.
27585         (determine_group_iv_cost_address): Ditto.
27586         (determine_use_iv_cost_condition): Ditto.
27587         (determine_group_iv_cost_cond): Ditto.
27588         (determine_use_iv_cost): Ditto.
27589         (determine_group_iv_cost): Ditto.
27590         (set_autoinc_for_original_candidates): Update all uses.
27591         (find_iv_candidates): Update all uses.  Refactor dump information.
27592         (determine_use_iv_costs): Ditto.
27593         (determine_iv_costs): Ditto.
27594         (iv_ca_cand_for_use): Rename to ...
27595         (iv_ca_cand_for_group): ... here.  Update all uses.
27596         (iv_ca_add_use, iv_ca_add_group): Ditto.
27597         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27598         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27599         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27600         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27601         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27602         (create_new_iv, adjust_iv_update_pos): Ditto.
27603         (rewrite_use_address): Delete.
27604         (rewrite_use_address_1): Rename to ...
27605         (rewrite_use_address): ... here.
27606         (rewrite_use_compare): Update all uses.
27607         (rewrite_use): Delete.
27608         (rewrite_uses): Rename to ...
27609         (rewrite_groups): ... here.  Update all uses.
27610         (remove_unused_ivs, free_loop_data): Update all uses.
27611         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27613 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27615         * rtlanal.c (nonzero_bits1): Convert preprocessor check
27616         for WORD_REGISTER_OPERATIONS to runtime check.
27618 2016-04-27  Richard Biener  <rguenther@suse.de>
27620         PR ipa/70760
27621         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27622         aggregate_value_p to determine if a function result is
27623         returned by reference.
27624         (ipa_pta_execute): Functions having their address taken are
27625         not automatically nonlocal.
27627 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
27629         PR sanitizer/70683
27630         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27631         * fold-const.c (operand_equal_p): If flag_checking and
27632         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27633         and if it returns non-zero, assert iterative_hash_expr on both
27634         args is the same.
27636 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
27638         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27640 2016-04-27  Nick Clifton  <nickc@redhat.com>
27642         PR middle-end/49889
27643         * varasm.c (merge_weak): Generate an error if an attempt is made
27644         to convert a non-weak static function into a weak, public function.
27646 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27648         * params.def (MAX_PARTITION_SIZE): New param.
27649         * doc/invoke.texi: Document lto-max-partition.
27651 2016-04-27  Richard Biener  <rguenther@suse.de>
27653         PR ipa/70785
27654         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27655         function cummulating used_from_other_partition, externally_visible
27656         and force_output from aliases.
27657         (refered_from_nonlocal_var): Likewise.
27658         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27659         node flags properly.
27661 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
27663         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27664         (-Wmemset-elt-size): New item.
27666 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27668         PR ada/70759
27669         * stor-layout.h (internal_reference_types): Delete.
27670         * stor-layout.c (reference_types_internal): Likewise.
27671         (internal_reference_types): Likewise.
27672         (layout_type) <REFERENCE_TYPE>: Adjust.
27674 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
27676         PR sanitizer/70683
27677         * tree.h (inchash::add_expr): Add FLAGS argument.
27678         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
27679         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
27680         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27681         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
27682         if swap_tree_comparison (code) is smaller than code, hash that
27683         and arguments in the other order.  Hash CONVERT_EXPR the same
27684         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27685         of ADDR_EXPR of decl as the decl itself.  Add or remove
27686         OEP_ADDRESS_OF from recursive flags as needed.  For
27687         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27688         operands commutatively and only the third one normally.
27689         For internal CALL_EXPR hash in CALL_EXPR_IFN.
27691 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27693         * config/rtems.h (LIB_SPEC): Add -latomic.
27695 2016-04-27  Joel Sherrill  <joel@rtems.org>
27697         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27698         xilink.ld and flags not relevant to RTEMS.
27700 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
27702         * toplev.c (backend_init_target): Avoid calling init_reload when using
27703         LRA.
27705 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
27707         * reorg.c (try_merge_delay_insns): Declare i and j inside the
27708         for loops rather than one for the whole function.
27710 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
27712         * match.pd (X + CST CMP X): New transformation.
27714 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
27716         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27717         * fold-const.c (fold_binary_loc): Remove 2 transformations
27718         superseded by match.pd.
27719         * match.pd (x+x -> x*2): Generalize to integers.
27721 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
27723         * config/i386/i386.md (operation on memory peephole): Duplicate an
27724         existing peephole and adapt it to match lea rather than an operation
27725         that clobbers CC.
27727         PR rtl-optimization/57193
27728         * opts.c (default_options_table): Add OPT_frename_registers at -O2
27729         and above.
27730         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27732 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
27734         * tree-if-conv.c (any_pred_load_store): New static variable.
27735         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
27736         any_pred_load_store instead of and_mask_load_store.
27737         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27738         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27739         (combine_blocks, tree_if_conversion): Ditto.
27741 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
27743         PR tree-optimization/70771
27744         PR tree-optimization/70775
27745         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27746         virtual PHI nodes.  Delete parameter.
27747         (if_convertible_loop_p_1): Delete argument to above function.
27748         (predicate_all_scalar_phis): Delete code handling single-argument
27749         PHIs.
27750         (tree_if_conversion): Mark and update virtual SSA.
27752 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27754         PR target/61821
27755         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27756         (x86_elf_aligned_common): Rename to ...
27757         (x86_elf_aligned_decl_common): ... this.
27758         Add decl arg.  Switch to .lbss for largecomm object.  Use
27759         LARGECOMM_SECTION_ASM_OP.
27760         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27761         renaming.
27762         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27763         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27764         Pass new decl arg.
27765         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27766         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27768 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27770         PR target/59407
27771         * config/i386/i386.c (SECTION_LARGE): Define.
27772         (x86_64_elf_select_section): Set it for large data/bss sections.
27773         Only clear SECTION_WRITE for .lrodata.
27774         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27775         data/bss sections.
27776         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27777         * varasm.c (default_elf_asm_named_section): Grow flagchars.
27778         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27779         SECTION_MACH_DEP.
27780         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27781         * doc/tm.texi: Regenerate.
27783 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
27785         PR bootstrap/70704
27786         * configure.ac (--enable-checking): Document extra flag, for
27787         non-release builds default to --enable-checking=yes,extra.
27788         If misc checking and extra checking, define CHECKING_P to 2 instead
27789         of 1.
27790         * common.opt (fchecking=): Add.
27791         * doc/invoke.texi (-fchecking=): Document.
27792         * doc/install.texi: Document --enable-checking changes.
27793         * configure: Regenerated.
27794         * config.in: Regenerated.
27796 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
27798         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27799         attribute instead of which_alternative.
27800         * config/i386/sse.md (*mov<mode>_internal): Ditto.
27801         Use EXT_REX_SSE_REG_P where appropriate.
27803 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
27805         * config/i386/predicates.md (const0_operand): Do not match
27806         const_wide_int code.
27807         (const1_operand): Ditto.
27809 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
27811         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27812         for SSE constm1 operands and TARGET_AVX512VL.
27813         (*movti_internal): Ditto.
27814         (*mov<mode>_or): Use constm1_operand predicate.
27815         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27816         for SSE vector_all_ones operands and TARGET_AVX512VL.
27817         * config/i386/predicates.md (constm1_operand): New predicate.
27818         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27819         emission of constant -1 load.
27821 2016-04-25  Jason Merrill  <jason@redhat.com>
27823         * gdbinit.in: Skip is-a.h.
27825         * attribs.c (register_scoped_attributes): Fix logic.
27826         * attribs.h: Declare register_scoped_attributes.
27828 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27830         * config/rs6000/rs6000-builtin.def: Correct pasto error for
27831         stxvd2x and stxvw4x built-in functions.
27833 2016-04-25  DJ Delorie  <dj@redhat.com>
27835         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27836         (ashrhi3): Likewise.
27837         (lshrhi3): Likewise.
27839 2016-04-25  Richard Biener  <rguenther@suse.de>
27841         PR tree-optimization/70780
27842         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27843         wasn't visited yet.
27844         (compute_antic): Mark blocks with abnormal preds as visited as
27845         they have a final empty antic-in solution already.
27847 2016-04-25  Michael Collison  <michael.collison@linaro.org>
27849         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27851 2016-04-25  Michael Collison  <michael.collison@linaro.org>
27853         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27854         mode is VQI to improve mixed mode vectorization.
27855         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27856         define_insn to match low half of signed vaddw.
27857         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27858         define_insn to match high half of signed vaddw.
27859         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27860         define_insn to match low half of unsigned vaddw.
27861         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27862         define_insn to match high half of unsigned vaddw.
27863         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27864         (arm_simd_check_vect_par_cnst_half_p): Likewise.
27865         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27866         for new function.
27867         (arm_simd_check_vect_par_cnst_half_p): Likewise.
27868         * config/arm/predicates.md (vect_par_constant_high): Support
27869         big endian and simplify by calling
27870         arm_simd_check_vect_par_cnst_half
27871         (vect_par_constant_low): Likewise.
27873 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
27875         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27876         predicate for operand 2.
27878 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
27879             H.J. Lu  <hongjiu.lu@intel.com>
27881         * config/i386/i386-protos.h (standard_sse_constant_p): Add
27882         machine_mode argument.
27883         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27884         constm1_rtx operands.  For VOIDmode constants, get mode from
27885         pred_mode.  Check mode size if the mode is supported by ABI.
27886         (standard_sse_constant_opcode): Do not use standard_constant_p.
27887         Strictly check ABI support for all-ones operands.
27888         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27889         immediates. Update calls to standard_sse_constant_p.
27890         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27891         (ix86_rtx_costs): Ditto.
27892         * config/i386/i386.md (*movxi_internal_avx512f): Use
27893         nonimmediate_or_sse_const_operand instead of vector_move_operand.
27894         Use (v,BC) alternative instead of (v,C). Use register_operand
27895         checks instead of MEM_P.
27896         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27897         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
27898         isa attribute.  Use register_operand checks instead of MEM_P.
27899         (*movti_internal): Use nonimmediate_or_sse_const_operand for
27900         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
27901         alternative and corresponding sse2 isa attribute.
27902         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27903         to standard_sse_constant_p.
27904         (FP constant splitters): Ditto.
27905         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27906         (C): Ditto.
27907         * config/i386/predicates.md (constm1_operand): Remove.
27908         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27909         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27910         vector_all_ones_operand instead of constm1_operand.
27912 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27914         * print-rtl.c (print_rtx_insn_vec): New function.
27915         * print-rtl.h: New prototype.
27916         * store-motion.c (struct st_expr): Make avail_stores a vector.
27917         (st_expr_entry): Adjust.
27918         (free_st_expr_entry): Likewise.
27919         (print_store_motion_mems): Likewise.
27920         (find_moveable_store): Likewise.
27921         (compute_store_table): Likewise.
27922         (delete_store): Likewise.
27923         (build_store_vectors): Likewise.
27925 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27927         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27929 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27931         * vec.h (vec_safe_contains): New function.
27932         (vec::contains): Likewise.
27933         (vec::begin): Likewise.
27934         (vec::end): Likewise.
27936 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
27938         PR sanitizer/70712
27939         * cfgexpand.c (expand_stack_vars): Fix typo.
27941 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27943         * system.h (list, map, set, vector): Include conditionally.
27944         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27945         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27946         * ipa-icf.c (INCLUDE_LIST): Define.
27947         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27948         * config/sh/sh.c (INCLUDE_VECTOR): Define.
27949         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27950         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27951         * cp/logic.cc (INCLUDE_LIST): Define.
27952         * fortran/trans-common.c (INCLUDE_MAP): Define.
27954 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27956         * auto-profile.c: Remove <string.h> include.
27957         * ipa-icf-gimple.c: Remove <list> include.
27958         * diagnostic.c: Remove <new> include.
27959         * genmatch.c: Likewise.
27960         * pretty-print.c: Likewise.
27961         * toplev.c: Likewise
27962         * c/c-objc-common.c: Likewise.
27963         * cp/error.c: Likewise.
27964         * fortran/error.c: Likewise.
27966 2016-04-22  Richard Biener  <rguenther@suse.de>
27968         * lto-streamer-in.c (input_ssa_names): Do not allocate
27969         GIMPLE_NOP for all SSA names.
27970         * lto-streamer-out.c (output_ssa_names): Do not output
27971         SSA names that should have been released.
27973 2016-04-22  Richard Biener  <rguenther@suse.de>
27975         PR tree-optimization/70740
27976         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27977         VDEF.
27979 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
27981         PR target/70750
27982         * config/i386/predicates.md (call_insn_operand): Replace
27983         sibcall_memory_operand with memory_operand.
27985 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
27987         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27988         has_single_use() tests.
27989         (register_edge_assert_for_1): Likewise.
27990         (find_assert_locations_1): Check the liveness bitmap instead of
27991         checking has_single_use().
27993 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
27995         PR target/70728
27996         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27997         Extract AVX-512BW constraint from AVX.
27999 2016-04-21  Richard Biener  <rguenther@suse.de>
28001         PR tree-optimization/70725
28002         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
28003         for phi_convertible_by_degenerating_args.
28004         (predicate_all_scalar_phis): Handle single-argument PHIs.
28006 2016-04-21  Richard Biener  <rguenther@suse.de>
28008         PR middle-end/70747
28009         * fold-const.c (fold_comparison): Return properly typed
28010         constant boolean.
28012 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
28014         PR tree-optimization/70715
28015         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
28016         after expanding BASE using expand_simple_operations.
28018 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
28020         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
28021         New transformations.
28023 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
28025         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
28027 2016-04-20  Jan Hubicka  <jh@suse.cz>
28029         * ipa-inline.c (can_inline_edge_p): Pass caller info to
28030         ultiimate_alias_target.
28031         (update_callee_keys): Likewise.
28032         (lookup_recursive_calls): Likewise.
28033         (speculation_useful_p): Likewise.
28035 2016-04-20  Jan Hubicka  <jh@suse.cz>
28037         PR ipa/70018
28038         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
28039         (set_nothrow_flag_1): ... this; handle interposition correctly;
28040         recurse on aliases and thunks.
28041         (cgraph_node::set_nothrow_flag): New.
28042         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
28043         functions compiled with non-call exceptions that binds to current
28044         def.
28045         (propagate_nothrow): Be safe WRT interposition.
28046         * cgraph.h (set_nothrow_flag): Update prototype.
28048 2016-04-18  Jan Hubicka  <jh@suse.cz>
28050         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28051         max_loop_iterations_int.
28052         (tree_unswitch_outer_loop): Likewise.
28054 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
28056         PR tree-optimization/69489
28057         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
28058         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
28059         Revise dump message.
28060         (if_convertible_bb_p): Remove check on edge count of basic block's
28061         predecessors.
28063 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
28065         PR tree-optimization/56625
28066         PR tree-optimization/69489
28067         * tree-data-ref.h (DR_INNERMOST): New macro.
28068         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
28069         hashing struct innermost_loop_behavior.
28070         (ref_DR_map): Remove.
28071         (innermost_DR_map): New map.
28072         (baseref_DR_map): Revise comment.
28073         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
28074         to innermost_DR_map accroding to its innermost loop behavior.
28075         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
28076         to its innermost loop behavior.
28077         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
28078         Add initialization for innermost_DR_map.  Record memory reference
28079         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
28080         have innermost loop behavior.
28081         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
28082         innermost_DR_map.
28084 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
28086         * config/i386/i386.md (*lea<mode>_general_1): Rename from
28087         *lea_general_1.  Use explicit SWI12 mode interator.
28088         (*lea<mode>_general_2): Rename from *lea_general_2.
28089         Use explicit SWI12 mode interator.
28090         (*lea<mode>_general_3): Rename from *lea_general_3.
28091         Use explicit SWI12 mode interator.
28092         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
28093         Use explicit SWI12 mode interator.
28094         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
28095         Use explicit SWI48 mode interator.
28097 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
28099         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
28100         Short-cut unaligned load and store cases.  Handle all integer
28101         vector modes.
28102         (ix86_expand_vector_move_misalign): Short-cut unaligned load
28103         and store cases.  Call ix86_avx256_split_vector_move_misalign
28104         directly without checking mode class.
28106 2016-04-20  Andrew Pinski  <apinski@cavium.com>
28107             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28109         PR target/64971
28110         * config/aarch64/aarch64.md (sibcall): Force call
28111         address to be DImode for ILP32.
28112         (sibcall_value): Likewise.
28114 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
28116         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
28118 2016-04-20  Richard Biener  <rguenther@suse.de>
28120         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
28121         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
28122         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
28123         (maybe_push_res_to_seq): Adjust.
28124         * gimple-fold.c (maybe_build_generic_op): Likewise.
28126 2016-04-20  Marek Polacek  <polacek@redhat.com>
28128         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
28129         rather than true.
28131 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
28133         * config/i386/sse.md (vec_unpacks_lo_hi): Always
28134         use kmovw to support AVX512F target.
28136 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
28138         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
28140 2016-04-20  Marek Polacek  <polacek@redhat.com>
28142         PR tree-optimization/70725
28143         * tree-if-conv.c (is_false_predicate): New function.
28144         (predicate_mem_writes): Use it.
28146 2016-04-20  Richard Biener  <rguenther@suse.de>
28148         PR tree-optimization/70726
28149         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
28150         shift amounts from a pattern stmt operand.
28152 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28154         PR target/70674
28155         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
28156         stack_restore_from_fpr pattern when restoring r15.
28157         (s390_optimize_prologue): Strip away the memory barrier in the
28158         parallel when trying to get rid of restore insns.
28159         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
28160         definition for loading the stack pointer from an FPR.  Compared to
28161         the normal move insn this pattern includes a full memory barrier.
28163 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
28165         PR middle-end/70680
28166         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
28167         implicitly linear or lastprivate iterator on the outer context.
28169 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
28171         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
28172         alignment check.
28173         * config/i386/i386.md (ssememalign): Removed.
28174         * config/i386/sse.md: Remove ssememalign attribute from patterns.
28176 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
28178         PR target/69201
28179         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
28180         const short * to __builtin_ia32_loaddquhi512_mask.
28181         (_mm512_maskz_loadu_epi16): Likewise.
28182         (_mm512_mask_storeu_epi16): Pass short * to
28183         __builtin_ia32_storedquhi512_mask.
28184         (_mm512_mask_loadu_epi8): Pass const char * to
28185         __builtin_ia32_loaddquqi512_mask.
28186         (_mm512_maskz_loadu_epi8): Likewise.
28187         (_mm512_mask_storeu_epi8): Pass char * to
28188         __builtin_ia32_storedquqi512_mask.
28189         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
28190         const double * to __builtin_ia32_loadupd512_mask.
28191         (_mm512_mask_loadu_pd): Likewise.
28192         (_mm512_maskz_loadu_pd): Likewise.
28193         (_mm512_storeu_pd): Pass double * to
28194         __builtin_ia32_storeupd512_mask.
28195         (_mm512_mask_storeu_pd): Likewise.
28196         (_mm512_loadu_ps): Pass const float * to
28197         __builtin_ia32_loadups512_mask.
28198         (_mm512_mask_loadu_ps): Likewise.
28199         (_mm512_maskz_loadu_ps): Likewise.
28200         (_mm512_storeu_ps): Pass float * to
28201         __builtin_ia32_storeups512_mask.
28202         (_mm512_mask_storeu_ps): Likewise.
28203         (_mm512_mask_loadu_epi64): Pass const long long * to
28204         __builtin_ia32_loaddqudi512_mask.
28205         (_mm512_maskz_loadu_epi64): Likewise.
28206         (_mm512_mask_storeu_epi64): Pass long long *
28207         to __builtin_ia32_storedqudi512_mask.
28208         (_mm512_loadu_si512): Pass const int * to
28209         __builtin_ia32_loaddqusi512_mask.
28210         (_mm512_mask_loadu_epi32): Likewise.
28211         (_mm512_maskz_loadu_epi32): Likewise.
28212         (_mm512_storeu_si512): Pass int * to
28213         __builtin_ia32_storedqusi512_mask.
28214         (_mm512_mask_storeu_epi32): Likewise.
28215         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
28216         char * to __builtin_ia32_storedquqi256_mask.
28217         (_mm_mask_storeu_epi8): Likewise.
28218         (_mm256_mask_loadu_epi16): Pass const short * to
28219         __builtin_ia32_loaddquhi256_mask.
28220         (_mm256_maskz_loadu_epi16): Likewise.
28221         (_mm_mask_loadu_epi16): Pass const short * to
28222         __builtin_ia32_loaddquhi128_mask.
28223         (_mm_maskz_loadu_epi16): Likewise.
28224         (_mm256_mask_loadu_epi8): Pass const char * to
28225         __builtin_ia32_loaddquqi256_mask.
28226         (_mm256_maskz_loadu_epi8): Likewise.
28227         (_mm_mask_loadu_epi8): Pass const char * to
28228         __builtin_ia32_loaddquqi128_mask.
28229         (_mm_maskz_loadu_epi8): Likewise.
28230         (_mm256_mask_storeu_epi16): Pass short * to.
28231         __builtin_ia32_storedquhi256_mask.
28232         (_mm_mask_storeu_epi16): Pass short * to.
28233         __builtin_ia32_storedquhi128_mask.
28234         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
28235         const double * to __builtin_ia32_loadupd256_mask.
28236         (_mm256_maskz_loadu_pd): Likewise.
28237         (_mm_mask_loadu_pd): Pass onst double * to
28238         __builtin_ia32_loadupd128_mask.
28239         (_mm_maskz_loadu_pd): Likewise.
28240         (_mm256_mask_storeu_pd): Pass double * to
28241         __builtin_ia32_storeupd256_mask.
28242         (_mm_mask_storeu_pd): Pass double * to
28243         __builtin_ia32_storeupd128_mask.
28244         (_mm256_mask_loadu_ps): Pass const float * to
28245         __builtin_ia32_loadups256_mask.
28246         (_mm256_maskz_loadu_ps): Likewise.
28247         (_mm_mask_loadu_ps): Pass const float * to
28248         __builtin_ia32_loadups128_mask.
28249         (_mm_maskz_loadu_ps): Likewise.
28250         (_mm256_mask_storeu_ps): Pass float * to
28251         __builtin_ia32_storeups256_mask.
28252         (_mm_mask_storeu_ps): ass float * to
28253         __builtin_ia32_storeups128_mask.
28254         (_mm256_mask_loadu_epi64): Pass const long long * to
28255         __builtin_ia32_loaddqudi256_mask.
28256         (_mm256_maskz_loadu_epi64): Likewise.
28257         (_mm_mask_loadu_epi64): Pass const long long * to
28258         __builtin_ia32_loaddqudi128_mask.
28259         (_mm_maskz_loadu_epi64): Likewise.
28260         (_mm256_mask_storeu_epi64): Pass long long * to
28261         __builtin_ia32_storedqudi256_mask.
28262         (_mm_mask_storeu_epi64): Pass long long * to
28263         __builtin_ia32_storedqudi128_mask.
28264         (_mm256_mask_loadu_epi32): Pass const int * to
28265         __builtin_ia32_loaddqusi256_mask.
28266         (_mm256_maskz_loadu_epi32): Likewise.
28267         (_mm_mask_loadu_epi32): Pass const int * to
28268         __builtin_ia32_loaddqusi128_mask.
28269         (_mm_maskz_loadu_epi32): Likewise.
28270         (_mm256_mask_storeu_epi32): Pass int * to
28271         __builtin_ia32_storedqusi256_mask.
28272         (_mm_mask_storeu_epi32): Pass int * to
28273         __builtin_ia32_storedqusi128_mask.
28274         * config/i386/i386-builtin-types.def (PCSHORT): New.
28275         (PINT64): Likewise.
28276         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
28277         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
28278         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
28279         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
28280         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
28281         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
28282         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
28283         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
28284         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
28285         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
28286         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
28287         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
28288         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
28289         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
28290         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
28291         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
28292         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
28293         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
28294         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
28295         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
28296         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
28297         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
28298         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
28299         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
28300         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
28301         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
28302         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
28303         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
28304         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
28305         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
28306         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
28307         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
28308         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
28309         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
28310         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
28311         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
28312         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
28313         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
28314         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
28315         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
28316         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
28317         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
28318         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
28319         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
28320         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
28321         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
28322         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
28323         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
28324         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
28325         use UNSPEC_STOREU.
28326         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
28327         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
28328         load nor store.
28329         (ix86_expand_vector_move_misalign): Likewise.
28330         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
28331         to scalar function prototype for unaligned load/store builtins.
28332         (ix86_expand_special_args_builtin): Updated.
28333         * config/i386/sse.md (UNSPEC_LOADU): Removed.
28334         (UNSPEC_STOREU): Likewise.
28335         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
28336         (VI_ULOADSTORE_F_AVX512VL): Likewise.
28337         (ssescalarsize): Handle V4TI, V2TI and V1TI.
28338         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28339         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28340         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
28341         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
28342         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
28343         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
28344         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
28345         (<avx512>_storedqu<mode>_mask): Likewise.
28346         (*sse4_2_pcmpestr_unaligned): Likewise.
28347         (*sse4_2_pcmpistr_unaligned): Likewise.
28348         (*mov<mode>_internal): Renamed to ...
28349         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
28350         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
28351         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
28352         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
28354 2016-04-19  Richard Biener  <rguenther@suse.de>
28356         PR tree-optimization/70171
28357         * tree-ssa-phiprop.c: Include stor-layout.h.
28358         (phiprop_insert_phi): Handle the aggregate copy case.
28359         (propagate_with_phi): Likewise.
28361 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
28363         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28364         instead of simplify_gen_subreg (... , 0).
28365         (ix86_delegitimize_address): Ditto.
28366         (ix86_split_divmod): Ditto.
28367         (ix86_split_copysign_const): Ditto.
28368         (ix86_split_copysign_var): Ditto.
28369         (ix86_expand_args_builtin): Ditto.
28370         (ix86_expand_round_builtin): Ditto.
28371         (ix86_expand_special_args_builtin): Ditto.
28372         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28373         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28374         (udivmodqi4): Ditto.
28375         (absneg splitters): Ditto.
28376         (*jcc_bt<mode>_1): Ditto.
28378 2016-04-19  Richard Biener  <rguenther@suse.de>
28380         PR tree-optimization/70724
28381         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28382         restoring out from ...
28383         (free_scc_vn): ... here.
28384         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28385         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28386         tail merging.
28387         (pass_fre::execute): Restore SSA info.
28389 2016-04-19  Richard Biener  <rguenther@suse.de>
28391         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28392         * gimple-walk.c (walk_gimple_op): Initialize it.
28393         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28394         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28395         remapping SSA names of defs.
28396         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28397         adjustment.
28399 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
28401         PR middle-end/70689
28402         * lra-constraints.c (equiv_substition_p): New.
28403         (process_alt_operands): Use it.
28404         (swap_operands): Swap it.
28405         (curr_insn_transform): Update it.
28407 2016-04-18  Michael Matz  <matz@suse.de>
28409         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28410         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28411         * tree-core.h (tree_type_common.align): Use bit-field.
28412         (tree_type_common.spare): New.
28413         (tree_decl_common.off_align): Make smaller.
28414         (tree_decl_common.align): Use bit-field.
28416         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28417         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28418         (scan_sharing_clauses): Ditto.
28419         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28420         (omp_finish_file): Ditto.
28421         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28422         (layout_decl): Ditto.
28423         (relayout_decl): Ditto.
28424         (finalize_record_size): Use SET_TYPE_ALIGN.
28425         (finalize_type_size): Ditto.
28426         (finish_builtin_struct): Ditto.
28427         (layout_type): Ditto.
28428         (initialize_sizetypes): Ditto.
28429         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28430         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28431         (lookup_field_for_decl): Use SET_DECL_ALIGN.
28432         (get_chain_field): Ditto.
28433         (get_trampoline_type): Ditto.
28434         (get_nl_goto_field): Ditto.
28435         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28436         SET_DECL_ALIGN.
28437         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28438         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28439         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28440         (build_qualified_type): Use SET_TYPE_ALIGN.
28441         (build_aligned_type, build_range_type_1): Ditto.
28442         (build_atomic_base): Ditto.
28443         (build_common_tree_nodes): Ditto.
28444         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28445         (expand_one_stack_var_at): Ditto.
28446         * coverage.c (build_var): Use SET_DECL_ALIGN.
28447         * except.c (init_eh): Ditto.
28448         * function.c (assign_parm_setup_block): Ditto.
28449         * symtab.c (increase_alignment_1): Ditto.
28450         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28451         * tree-vect-stmts.c (ensure_base_align): Ditto.
28452         * varasm.c (align_variable): Ditto.
28453         (assemble_variable): Ditto.
28454         (build_constant_desc): Ditto.
28455         (output_constant_def_contents): Ditto.
28457         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28458         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28459         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28460         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28461         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28463 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
28465         PR target/70708
28466         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28467         replace %vmovsd with "%vmovq".
28468         (vec_concatv2df): Likewise.
28470 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
28472         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28473         (*vec_extractv2si_0): Ditto.
28474         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28475         (zero_extended_scalar_load_operand splitters): Ditto.
28476         (vec_extract splitters): Ditto.
28477         (*vec_extractv4si_0_zext): Ditto.
28478         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28479         and lowpart_subreg.
28480         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28481         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28482         (*sse4_1_extractps): Use lowpart_subreg.
28483         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28485 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28487         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28488         gld requirements.
28489         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28490         Mention Solaris 11 packaging changes.
28491         Update gas and gld requirements.
28492         Remove reference to pre-Solaris 10 bug.
28493         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28494         systems and bugs.
28495         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28496         with cc.
28498 2016-04-17  Jan Hubicka  <jh@suse.cz>
28500         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28501         max_loop_iterations_int.
28503 2016-04-18  Richard Biener  <rguenther@suse.de>
28505         PR tree-optimization/43434
28506         * tree-ssa-structalias.c (struct vls_data): New.
28507         (visit_loadstore): Handle all pointer-based accesses.
28508         (compute_dependence_clique): Compute a bitmap of restrict tags
28509         assigned bases and pass it to visit_loadstore.
28511 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
28513         PR target/70711
28514         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28515         armv8.1-a and armv8.1-a+crc.
28517 2016-04-18  Richard Biener  <rguenther@suse.de>
28519         PR tree-optimization/70701
28520         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28521         references after translating through a memcpy.
28523 2016-04-18  Richard Biener  <rguenther@suse.de>
28525         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28526         (compute_antic): ... here.  For partial antic use regular
28527         postorder and scrap iteration.
28528         (compute_partial_antic_aux): Remove unused return value.
28529         (init_pre): Do not allocate postorder.
28530         (fini_pre): Do not free postorder.
28532 2016-04-18  Richard Biener  <rguenther@suse.de>
28534         PR middle-end/37870
28535         * expmed.c (extract_bit_field_1): Remove broken case
28536         using a wider MODE_INT mode.
28538 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
28540         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28541         unless compiling with at least GCC-4.8.
28543 2016-04-17  Jan Hubicka  <jh@suse.cz>
28545         PR bootstrap/70706
28546         * graphite.c (graphite_finalize): Update call to
28547         tree_estimate_probability.
28548         * predict.h (tree_estimate_probability): Update prototype.
28550 2016-04-17  Jan Hubicka  <jh@suse.cz>
28552         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28553         (tree_estimate_probability): Likewise.
28554         (pass_profile::execute): Update.
28555         (report_predictor_hitrates): New function.
28556         * profile.c (compute_branch_probabilities): Use it.
28557         * predict.h (report_predictor_hitrates): Declare.
28559 2016-04-17  Jan Hubicka  <jh@suse.cz>
28561         PR ipa/70018
28562         * cgraph.h (cgraph_node::set_const_flag,
28563         cgraph_node::set_pure_flag): Update prototype to return bool;
28564         update comment.
28565         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28566         of interposable symbol are interposable, too.
28567         (cgraph_set_const_flag_1): Rename to ...
28568         (set_const_flag_1): ... this one; change to self recursive function
28569         instead of call_for_symbol_thunks_and_aliases. Handle correctly
28570         clearnig the flag in all variants and also virtual thunks of const
28571         functions are pure; track if any change was done.
28572         (cgraph_node::set_const_flag): Update.
28573         (struct set_pure_flag_info): New struct.
28574         (cgraph_set_pure_flag_1): Rename to ...
28575         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28576         rather than pointer encoded flags; track if any changes was done;
28577         handle correctly clearning flag and setting flag of aliases already
28578         declared const.
28579         (cgraph_node::set_pure_flag): Update.
28580         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28582 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28584         PR other/70433
28585         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28586         backslash in label.
28588 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28590         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28591         '{}<> ' as escape-for-record.
28593 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28595         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28596         structure.
28598 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28600         PR other/70185
28601         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28602         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28603         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28604         * passes.c (finish_optimization_passes): Only call
28605         finish_graph_dump_file if dfi->graph_dump_initialized.
28606         (execute_function_dump, pass_init_dump_file): Use
28607         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28609 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28611         PR tree-optimization/70256
28612         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28613         (debug_varmap): New function.
28615 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28617         PR other/70183
28618         * passes.c (pass_manager::register_pass): Propagate pflags.
28620 2016-04-17  Tom de Vries  <tom@codesourcery.com>
28622         PR other/68875
28623         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28624         * passes.c (pass_manager::pass_manager): Declare and init p_start in
28625         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
28626         check if it's equal to p_start.
28627         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28629 2016-04-15  Jan Hubicka  <jh@suse.cz>
28631         PR ipa/70018
28632         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28633         function does not bind to current def.
28634         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28635         handle conservatively calls to functions that does not need to bind
28636         to current def.
28637         (check_call): Update call of worse_state.
28638         (ignore_edge_for_nothrow): Update.
28639         (ignore_edge_for_pure_const): Likewise.
28640         (propagate_pure_const): Update calls to worse_state.
28641         (skip_function_for_local_pure_const): Reformat comments.
28643 2016-04-15  Jan Hubicka  <jh@suse.cz>
28645         PR ipa/70018
28646         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28647         (cgraph_node::function_symbol): Likewise.
28648         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28649         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28650         (symtab_node::ultimate_alias_target): Add REF parameter.
28651         (symtab_node::binds_to_current_def_p): Declare.
28652         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28653         (cgraph_node::function_symbol): Likewise.
28654         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28655         (cgraph_node::get_availability): Likewise.
28656         (cgraph_edge::binds_to_current_def_p): New inline function.
28657         (varpool_node::get_availability): Add REF parameter.
28658         (varpool_node::ultimate_alias_target): Likewise.
28659         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28660         (symtab_node::binds_to_current_def_p): Likewise.
28661         * varpool.c (varpool_node::get_availability): Likewise.
28663 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
28665         PR target/70662
28666         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28667         Fix mode size check.
28669 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
28671         * BASE-VER: Set to 7.0.0.
28673 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
28675         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28677 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28679         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28680         architecture revisions.
28682 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
28684         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28685         * config/i386/i386.c (ix86_using_red_zone): No longer static.
28686         * config/i386/i386.md (stack decrement to push peepholes): Guard
28687         with !x86_using_red_zone ().
28689 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
28691         PR c++/70675
28692         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28693         to dump_generic_node.
28694         (NIY): Pass also flags to do_niy.
28696 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
28698         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28699         (simd_clone_vector_of_formal_parm_types)
28700         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28701         (simd_clone_mangle, simd_clone_create)
28702         (simd_clone_adjust_return_type, create_tmp_simd_array)
28703         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28704         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28705         (ipa_simd_modify_function_body, simd_clone_linear_addend)
28706         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28707         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28708         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28709         * omp-simd-clone.c: ... this new file.
28710         (simd_clone_vector_of_formal_parm_types): Make it static.
28711         * Makefile.in (OBJS): Add omp-simd-clone.o.
28713 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
28715         PR target/70662
28716         * config/i386/sse.md: Use proper memory operand modifiers.
28719 2016-04-15  Richard Biener  <rguenther@suse.de>
28720         Alan Modra  <amodra@gmail.com>
28722         PR tree-optimization/70130
28723         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28724         when alignment stays not the same and no not use the realign
28725         scheme then.
28727 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28729         PR target/70669
28730         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28731         direct move handlers for KFmode. Change TFmode handlers test from
28732         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28734 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
28736         PR c++/70594
28737         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28738         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28739         (inlined_polymorphic_ctor_dtor_block_p): Use it.
28740         * tree-ssa-live.c (remove_unused_scope_block_p): When
28741         in_ctor_dtor_block, avoid discarding not just BLOCKs with
28742         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28743         block_ultimate_origin is FUNCTION_DECL.
28744         (remove_unused_locals): If current_function_decl is
28745         polymorphic_ctor_dtor_p, pass initial true to
28746         remove_unused_scope_block_p' is_ctor_dtor_block.
28748 2016-04-14  Martin Sebor  <msebor@redhat.com>
28750         PR c++/69517
28751         PR c++/70019
28752         PR c++/70588
28753         * doc/extend.texi (Variable Length): Revert.
28755 2016-04-14  Marek Polacek  <polacek@redhat.com>
28756             Jan Hubicka  <hubicka@ucw.cz>
28758         PR c++/70029
28759         * tree.c (verify_type): Disable the canonical type of main variant
28760         check.
28762 2016-04-14  Jason Merrill  <jason@redhat.com>
28764         * cfgexpand.c, expr.c: Revert previous change.
28766 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
28768         PR middle-end/70643
28769         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28770         when building a mem ref for the incoming reduction variable.
28772 2016-04-14  Richard Biener  <rguenther@suse.de>
28774         PR tree-optimization/70614
28775         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28776         loop if the evolution dropped to chrec_dont_know.
28777         (interpret_condition_phi): Likewise.
28779 2016-04-14  Richard Biener  <rguenther@suse.de>
28781         PR tree-optimization/70623
28782         * tree-ssa-pre.c (changed_blocks): Make global ...
28783         (compute_antic): ... local here.  Move and fix worklist
28784         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28785         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
28786         worklist handling, dump when ANTIC_IN changed.
28787         (compute_partial_antic_aux): Remove worklist handling.
28788         (init_pre): Do not compute post dominators.  Add a comment about
28789         the CFG order chosen.
28790         (fini_pre): Do not free post dominators.
28792 2016-04-13  Martin Sebor  <msebor@redhat.com>
28794         PR c++/69517
28795         PR c++/70019
28796         PR c++/70588
28797         * doc/extend.texi (Variable Length): Document C++ specifics.
28799 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
28801         PR c++/70641
28802         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28803         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
28804         eh edges have been purged.
28806         PR c++/70594
28807         * tree-sra.c (create_access_replacement,
28808         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28809         gets fancy name.
28810         * tree-pretty-print.c (dump_fancy_name): New function.
28811         (dump_decl_name, dump_generic_node): Use it.
28813 2016-04-13  Jason Merrill  <jason@redhat.com>
28815         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28816         * expr.c (expand_expr_real_1): Likewise.
28818 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28820         * config/i386/i386.md (kunpckhi): Swap operands.
28821         (kunpcksi): Likewise.
28822         (kunpckdi): Likewise.
28823         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28824         (vec_pack_trunc_<mode>): Likewise.
28826 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
28828         PR debug/70628
28829         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28831         PR middle-end/70633
28832         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28833         gimplification turns some element into non-constant.
28835         PR debug/70628
28836         * rtl.h (convert_memory_address_addr_space_1): New prototype.
28837         * explow.c (convert_memory_address_addr_space_1): No longer static,
28838         add NO_EMIT argument and don't call convert_modes if true, pass
28839         it down recursively, remove break after return.
28840         (convert_memory_address_addr_space): Adjust caller.
28841         * simplify-rtx.c (simplify_unary_operation_1): Call
28842         convert_memory_address_addr_space_1 instead of convert_memory_address,
28843         if it returns NULL, don't simplify.
28845 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
28847         PR target/70630
28848         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28850 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
28852         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28853         Bump the upper SIMDLEN limits, so that if the return type or
28854         characteristic type if the return type is void can be passed in
28855         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28856         allowed.
28858 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28860         PR target/70640
28861         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28862         Do not use "=" constraint on an input constraint.
28863         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28864         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28865         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28866         generates (neg (abs ...)) instead of (abs ...).
28868 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
28870         PR rtl-optimization/70596
28871         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28872         just invalidate LRA data and reset them.  Adjust dump wording.
28874 2016-04-12  Martin Liska  <mliska@suse.cz>
28876         Revert
28877         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
28879         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28880         estimates here.
28881         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28882         max_loop_iterations_int.
28883         (tree_unswitch_outer_loop): Likewise.
28884         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28885         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28887 2016-04-12  Tom de Vries  <tom@codesourcery.com>
28889         PR tree-optimization/68756
28890         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28891         instead of new_name.
28893 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
28895         PR tree-optimization/70602
28896         * tree-sra.c (generate_subtree_copies): Don't write anything into
28897         constant pool decls.
28899         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28900         regardless whether there are depend clauses or not.
28902 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28904         PR target/70381
28905         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28906         target attribute and pragma from changing the -mfloat128
28907         and -mfloat128-hardware options.
28909         * doc/extend.texi (Additional Floating Types): Document PowerPC
28910         __float128 restrictions.
28912 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
28914         PR target/70133
28915         * config/aarch64/driver-aarch64.c
28916         (aarch64_get_extension_string_for_isa_flags): New.
28917         (arch_extension): Rename to...
28918         (aarch64_arch_extension): ...This.
28919         (ext_to_feat_string): Rename to...
28920         (aarch64_extensions): ...This.
28921         (aarch64_core_data): Keep track of architecture extension flags.
28922         (cpu_data): Rename to...
28923         (aarch64_cpu_data): ...This.
28924         (aarch64_arch_driver_info): Keep track of architecture extension
28925         flags.
28926         (get_arch_name_from_id): Rename to...
28927         (get_arch_from_id): ...This, change return type.
28928         (host_detect_local_cpu): Update and reformat for renames, handle
28929         extensions through common infrastructure.
28931 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
28933         PR target/70133
28934         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28935         track of a canonical flag name.
28936         (all_extensions): Likewise.
28937         (arch_to_arch_name): Also track extension flags enabled by the arch.
28938         (all_architectures): Likewise.
28939         (aarch64_parse_extension): Move to here.
28940         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28941         rework.
28942         (aarch64_rewrite_selected_cpu): Update for above change.
28943         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28944         are handled, such that the single explicit value enabled by an
28945         extension is kept seperate from the implicit values it also enables.
28946         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28947         to here.
28948         (aarch64_parse_extension): New.
28949         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28950         here to config/aarch64/aarch64-protos.h.
28951         (aarch64_parse_extension): Move from here to
28952         common/config/aarch64/aarch64-common.c.
28953         (aarch64_option_print): Update.
28954         (aarch64_declare_function_name): Likewise.
28955         (aarch64_start_file): Likewise.
28956         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28957         the canonical flag for extensions.
28958         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28959         flags.
28961 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
28963         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28964         AARCH64_FL_CRC.
28966 2016-04-09  Tom de Vries  <tom@codesourcery.com>
28968         PR tree-optimization/68953
28969         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28970         first to last subscript.
28972 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
28974         PR tree-optimization/70586
28975         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28976         for any calls.
28978 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
28980         PR lto/70289
28981         PR ipa/70348
28982         PR tree-optimization/70373
28983         PR middle-end/70533
28984         PR middle-end/70534
28985         PR middle-end/70535
28986         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28987         clauses for acc parallel reductions as necessary.  Error on those
28988         that are private.
28989         * omp-low.c (scan_sharing_clauses): Don't install variables which
28990         are used in acc parallel reductions.
28991         (lower_rec_input_clauses): Remove dead code.
28992         (lower_oacc_reductions): Add support for reference reductions.
28993         (lower_reduction_clauses): Remove dead code.
28994         (lower_omp_target): Don't remap variables appearing in acc parallel
28995         reductions.
28996         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28998 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
29000         PR middle-end/70593
29001         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
29002         with multiple SSA_NAME defs, force the outputs other than first
29003         to be live before calling live_track_process_def on each output.
29005         PR rtl-optimization/70574
29006         * fwprop.c (forward_propagate_and_simplify): Don't add
29007         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
29008         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
29009         paradoxical subregs within *loc.
29011 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
29013         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
29014         -ftree-parallelize-loops={0,1}.
29015         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
29016         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
29017         * config/ia64/hpux.h (LIB_SPEC): Likewise.
29018         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29019         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
29021 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
29023         PR sanitizer/70541
29024         * asan.c (instrument_derefs): If we get unknown location, extract it
29025         with EXPR_LOCATION.
29026         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
29028 2016-04-08  Tom de Vries  <tom@codesourcery.com>
29030         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
29031         implicit firstprivate clause.
29033 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29035         PR target/70566
29036         * config/arm/thumb2.md (tst + branch-> lsls + branch
29037         peephole below *orsi_not_shiftsi_si): Require that condition
29038         register is dead after the peephole.
29039         (second peephole after the above): Likewise.
29041 2016-04-08  Alan Modra  <amodra@gmail.com>
29043         PR target/70117
29044         * builtins.c (fold_builtin_classify): For IBM extended precision,
29045         look at just the high-order double to test for NaN.
29046         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
29047         test just the high double for Inf but both doubles for subnormal
29048         limit.
29050 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
29052         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
29053         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
29054         node->simdclone->mask_mode != VOIDmode masks.
29055         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
29056         earlier, use it instead of node->simdclone.
29057         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29058         Set clonei->mask_mode.
29060 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
29062         PR c/70436
29063         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
29064         Pass it through to cp_parser_already_scoped_statement.
29065         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
29066         it through to cp_parser_statement.
29067         (cp_parser_statement): Pass IF_P through to
29068         cp_parser_iteration_statement.
29069         (cp_parser_pragma): Adjust call to
29070         cp_parser_iteration_statement.
29072 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
29074         PR c/70436
29075         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
29076         resolve a future -Wparentheses warning.
29077         * omp-low.c (scan_sharing_clauses): Likewise.
29078         * tree-parloops.c (eliminate_local_variables): Likewise.
29080 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
29082         PR rtl-optimization/70398
29083         * lra-constraints.c (process_address_1): Check zero scale and code
29084         for reloading with zero scale.
29086 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
29088         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
29089         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
29091 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
29093         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29094         Add support for AVX512F clones, include them by default for
29095         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
29096         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
29097         up to 128.
29099         PR middle-end/70550
29100         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
29101         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
29102         firstprivate clauses.
29103         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
29104         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
29105         (lower_omp_target): Set TREE_NO_WARNING for
29106         non-addressable possibly uninitialized vars which are copied into
29107         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
29109 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
29111         * config/pa/predicates.md (integer_store_memory_operand): Accept
29112         REG+D operands with a large offset when reload_in_progress is true.
29113         (floating_point_store_memory_operand): Likewise.
29115 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
29117         PR c++/70336
29118         * match.pd (nested int casts): Limit to GIMPLE.
29120 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
29122         PR ipa/66223
29123         * ipa-devirt.c (maybe_record_node): Fix comment; use
29124         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
29126 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
29128         PR rtl-optimization/70542
29129         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
29130         if there are any uses other than insn or debug insns.
29132 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
29133             Jakub Jelinek  <jakub@redhat.com>
29135         PR tree-optimization/70509
29136         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
29137         Shift HOST_WIDE_INT_1U instead of 1.
29139 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
29141         PR tree-optimization/70509
29142         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
29143         of the vector base type for index.
29145 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
29147         PR target/70510
29148         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
29150 2016-04-05  Richard Biener  <rguenther@suse.de>
29152         PR tree-optimization/70526
29153         * tree-sra.c (build_ref_for_offset): Use prev_base to
29154         extract the alias pointer type.
29156 2016-04-05  Richard Biener  <rguenther@suse.de>
29158         * dse.c (struct store_info): Remove alias_set member.
29159         (struct read_info_type): Likewise.
29160         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
29161         spill_deleted, clear_alias_set_lookup): Remove.
29162         (get_group_info): Remove dead base == NULL_RTX case.
29163         (dse_step0): Remove initialization of removed variables.
29164         (delete_dead_store_insn): Reomve alias set dumping.
29165         (free_read_records): Remove alias_set handling.
29166         (canon_address): Remove alias_set_out parameter.
29167         (record_store): Remove spill_alias_set, it's always zero.
29168         (check_mem_read_rtx): Likewise.
29169         (dse_step2): Rename from ...
29170         (dse_step2_nospill): ... this.  Adjust.
29171         (scan_stores): Rename from ...
29172         (scan_stores_nospill): ... this.
29173         (scan_reads): Rename from ...
29174         (scan_reads_nospill): ... this.
29175         (scan_stores_spill, scan_reads_spill): Remove.
29176         (dse_step3_scan): Remove for_spills argument which is always false.
29177         (dse_step3): Likewise.
29178         (dse_step5): Rename from ...
29179         (dse_step5_nospill): ... this.  Remove alias_set handling.
29180         (rest_of_handle_dse): Adjust.
29182 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
29184         PR target/70525
29185         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
29186         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
29187         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
29188         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
29190 2016-04-05  Richard Biener  <rguenther@suse.de>
29192         PR middle-end/70499
29193         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
29194         non-register type temporaries into SSA.
29196 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
29198         PR ipa/66223
29199         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
29200         calls when sanitizing.
29201         (possible_polymorphic_call_target_p): Fix formatting.
29203 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29204             Jakub Jelinek  <jakub@redhat.com>
29206         PR middle-end/70457
29207         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
29208         to ensure a call statement is compatible with a built-in's
29209         prototype.
29210         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
29211         Likewise.
29213 2016-04-04  Richard Biener  <rguenther@suse.de>
29215         PR rtl-optimization/70484
29216         * rtl.h (canon_output_dependence): Declare.
29217         * alias.c (canon_output_dependence): New function.
29218         * dse.c (record_store): Use canon_output_dependence rather
29219         than canon_true_dependence.
29221 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
29223         PR ipa/68881
29224         * cgraph.h (symtab_node::copy_visibility_from): New function.
29225         * symtab.c (symtab_node::copy_visibility_from): New function.
29226         * ipa-visibility.c (optimize_weakref): New function.
29227         (function_and_variable_visibility): Use it.
29229 2016-04-04  Martin Liska  <mliska@suse.cz>
29231         PR hsa/70402
29232         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
29233         value that is really in range handled by SBR instruction.
29234         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
29235         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
29236         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
29238 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
29240         PR target/70416
29241         PR target/67391
29242         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
29243         set, but not for SP_REG operands.
29245 2016-04-02  Martin Sebor  <msebor@redhat.com>
29247         PR c++/67376
29248         * fold-const.c (maybe_nonzero_address): New function.
29249         (fold_comparison): Call it.  Fold equality and relational
29250         expressions involving null pointers.
29251         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
29253 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
29255         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
29256         the "Y" constraint (scalar FP 0.0 immediate).
29258         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
29259         Add the "const_double" to the list of operand constraints.
29261 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
29263         PR rtl-optimization/70467
29264         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
29265         If low word of the last operand is 0, just emit addition/subtraction
29266         for the high word.
29268 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29270         PR target/70404
29271         * config/s390/s390.c (s390_expand_insv): Check for everything
29272         constant instead of just VOIDmode stuff.
29274 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29276         PR target/70496
29277         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
29279 2016-04-01  Nathan Sidwell  <nathan@acm.org>
29281         * tree.def (TRY_CATCH_EXPR): Correct documentation.
29283 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
29285         PR rtl-optimization/70461
29286         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
29287         is necessary.
29289 2016-03-31  Martin Liska  <mliska@suse.cz>
29291         PR hsa/70399
29292         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
29293         a tree value or an immediate integer value to a buffer
29294         that is eventually copied to a BRIG section.
29295         (emit_immediate_operand): Call the function here.
29296         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
29297         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
29298         of class' fields that are removed.
29299         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
29300         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
29301         m_brig_repr_size fields.
29303 2016-03-31  Martin Liska  <mliska@suse.cz>
29305         PR hsa/70391
29306         * hsa-gen.c (hsa_function_representation::update_dominance): New
29307         function.
29308         (convert_addr_to_flat_segment): Likewise.
29309         (gen_hsa_memory_set): New alignment argument.
29310         (gen_hsa_ctor_assignment): Likewise.
29311         (gen_hsa_insns_for_single_assignment): Provide alignment
29312         to gen_hsa_ctor_assignment.
29313         (gen_hsa_insns_for_direct_call): Add new argument.
29314         (expand_lhs_of_string_op): New function.
29315         (expand_string_operation_builtin): Likewise.
29316         (expand_memory_copy): New function.
29317         (expand_memory_set): New function.
29318         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
29319         (convert_switch_statements): Change signature.
29320         (generate_hsa): Use a return value of the function.
29321         (pass_gen_hsail::execute): Do not call
29322         convert_switch_statements here.
29323         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
29324         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
29325         (hsa_function_representation::update_dominance): New function.
29327 2016-03-31  Martin Liska  <mliska@suse.cz>
29329         PR hsa/70391
29330         * hsa-brig.c (emit_directive_variable): Emit alignment
29331         according to hsa_symbol::m_align.
29332         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
29333         (dump_hsa_symbol): Dump alignment of HSA symbols.
29334         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
29335         (gen_hsa_addr_with_align): New function.
29336         (hsa_bitmemref_alignment): Use newly added function.
29337         (gen_hsa_insns_for_load): Likewise.
29338         (gen_hsa_insns_for_store): Likewise.
29339         (gen_hsa_memory_copy): New argument added.
29340         (gen_hsa_insns_for_single_assignment): Respect
29341         alignment for assignments processed via gen_hsa_memory_copy.
29342         (gen_hsa_insns_for_direct_call): Likewise.
29343         (gen_hsa_insns_for_return): Likewise.
29344         (gen_function_def_parameters): Set default alignment.
29345         * hsa.c (hsa_object_alignment): New function.
29346         (hsa_byte_alignment): Pasted function.
29347         * hsa.h (hsa_symbol::m_align): New field.
29349 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
29351         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
29352         scratch field for goto case.
29354 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
29356         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
29358 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
29360         PR target/70442
29361         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29362         (scalar_chain::convert_insn): Call convert_op for reg
29363         moves to handle undefined registers.
29365 2016-03-31  Nathan Sidwell  <nathan@acm.org>
29367         PR c++/70393
29368         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29369         Assert we don't want to move backwards.
29371 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
29373         PR target/70453
29374         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29376 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
29378         PR rtl-optimization/70460
29379         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29380         with operand from REG_LABEL_OPERAND, instead substitute
29381         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29382         Don't do anything for REG_NON_LOCAL_GOTO jumps.
29384 2016-03-31  Martin Liska  <mliska@suse.cz>
29386         * passes.c (execute_one_pass): Do not call
29387         todo_after for a discarded function.
29389 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
29391         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29392         (no_cost, infinite_cost): Initialize the new field.
29393         (get_computation_cost_at): Record setup cost.
29394         (determine_use_iv_cost_address): Skip cost computation for sub
29395         uses if we can estimate it without losing accuracy.
29397 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
29399         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29400         estimates here.
29401         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29402         max_loop_iterations_int.
29403         (tree_unswitch_outer_loop): Likewise.
29404         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29405         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29407 2016-03-30  Richard Biener  <rguenther@suse.de>
29409         PR middle-end/70450
29410         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29412 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
29414         PR target/70421
29415         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29416         in gen_blendm expander.
29418 2016-03-30  Nick Clifton  <nickc@redhat.com>
29420         PR target/62254
29421         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29422         case where we are already provided with an SImode SUBREG.
29424 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29426         PR target/70439
29427         * config/i386/i386.c (ix86_expand_epilogue): Properly check
29428         conflict between DRAP register and __builtin_eh_return.
29430 2016-03-30  Michael Matz  <matz@suse.de>
29431             Richard Biener  <rguenther@suse.de>
29433         PR ipa/12392
29434         * ipa-polymorphic-call.c (struct type_change_info): Change
29435         speculative to an unsigned allowing to limit the work we do.
29436         (csftc_abort_walking_p): New inline function..
29437         (check_stmt_for_type_change): Limit the number of may-defs
29438         skipped for speculative devirtualization to
29439         max-speculative-devirt-maydefs.
29440         * params.def (max-speculative-devirt-maydefs): New param.
29441         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29443 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
29445         PR target/63890
29446         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29447         and TARGET_MACHO.
29449 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
29451         PR tree-optimization/59124
29452         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29453         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29455 2016-03-29  Jeff Law  <law@redhat.com>
29457         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29459 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
29461         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29462         to HOST_WIDE_INT.
29464 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
29466         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29467         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29468         gcrt0.o if linking dynamically.
29470 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
29472         PR ipa/70283
29473         * ipa-devirt.c (methods_equal_p): New function.
29474         (compare_virtual_tables): Use it.
29475         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29476         * cgraphclones.c (clone_function_name_1): Use
29477         symbol_table::symbol_suffix_separator.
29478         * coverage.c (build_var): Likewise.
29479         * symtab.c (symbol_table::symbol_suffix_separator): New.
29481 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
29483         PR rtl-optimization/70429
29484         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29485         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29486         mode != result_mode.
29488         PR c++/70353
29489         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29491         PR tree-optimization/70405
29492         * ssa-iterators.h (num_imm_uses): Add missing braces.
29494 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29496         PR rtl-optimization/68695
29497         * ira-color.c (allocno_copy_cost_saving): New.
29498         (improve_allocation): Use it.
29500 2016-03-29  Richard Henderson  <rth@redhat.com>
29502         PR middle-end/70355
29503         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29505 2016-03-29  Richard Biener  <rguenther@suse.de>
29507         PR middle-end/70424
29508         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29509         use alignment returned by get_pointer_alignment_1 if it is
29510         bigger than BITS_PER_UNIT.
29511         * builtins.c (get_pointer_alignment_1): Do not return true
29512         for alignment extracted from SSA info.
29514 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
29516         * config/ft32/ft32.opt (mnodiv): New.
29517         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29518         * doc/invoke.texi (FT32 Options -mnodiv): New.
29520 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
29522         PR target/70406
29523         * config/i386/i386.md (define_split, andn): Fix modes.
29525 2016-03-26  Richard Biener  <rguenther@suse.de>
29526             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29528         PR ipa/70366
29529         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29530         instead of
29531         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29532         as 2nd argument to cl_optimization_restore().
29534 2016-03-25  Richard Henderson  <rth@redhat.com>
29536         PR target/70120
29537         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29538         * config/aarch64/aarch64-protos.h: Declare it.
29539         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29541 2016-03-25  Alan Modra  <amodra@gmail.com>
29543         PR target/70052
29544         * config/rs6000/constraints.md (j): Simplify.
29545         * config/rs6000/predicates.md (easy_fp_constant): Exclude
29546         decimal float 0.D.
29547         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29548         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29549          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29550         in all constraint alternatives.
29551         (movtd_64bit_nodm): Delete "j" constraint alternative.
29553 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
29555         * tree-ssa-propagate.c: Enhance docs for
29556         SSA_PROP_NOT_INTERESTING.
29558 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
29560         * doc/extend.texi: Fix typo in documentation to pure attribute.
29562 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
29564         PR target/70319
29565         * config/pa/pa.md (bswapdi2): Use a scratch register.
29567 2016-03-24  Richard Henderson  <rth@redhat.com>
29569         PR middle-end/69845
29570         * fold-const.c (extract_muldiv_1): Correct test for multiplication
29571         overflow.
29573 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
29575         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29576         using ix86_expand_binary_operator instead of gen_andsi3.
29578 2016-03-24  Richard Biener  <rguenther@suse.de>
29580         PR tree-optimization/70396
29581         * tree-vect-stmts.c (vectorizable_comparison): Use
29582         get_vectype_for_scalar_type.
29584 2016-03-24  Richard Biener  <rguenther@suse.de>
29586         PR middle-end/70370
29587         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29588         with register bases.
29590 2016-03-24  Richard Biener  <rguenther@suse.de>
29592         PR tree-optimization/70372
29593         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29594         build_all_ones_cst to also handle vector types correctly.
29596 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
29598         PR target/70381
29599         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29600         -mfloat128 here.
29602 2016-03-23  Marek Polacek  <polacek@redhat.com>
29604         PR c++/69884
29605         * doc/invoke.texi: Document -Wignored-attributes.
29607 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
29609         PR tree-optimization/69042
29610         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29611         parameter from 30 to 40.
29613 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
29615         PR tree-optimization/69042
29616         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29617         for use with constant offset stripped in base.
29619 2016-03-23  Richard Biener  <rguenther@suse.de>
29621         PR middle-end/70251
29622         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29623         mode compatibility check.
29624         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29626 2016-03-23  Jeff Law  <law@redhat.com>
29628         PR tree-optimization/64058
29629         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29630         CONFLICT_COUNT.
29631         (struct ssa_conflicts): Move up earlier in the file.
29632         (conflicts_, var_map_): New static variables.
29633         (initialize_conflict_count): New function to initialize the
29634         CONFLICT_COUNT field for each conflict pair.
29635         (compare_pairs): Lazily initialize the conflict count and use it
29636         as the first tie-breaker.
29637         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
29638         and wipe conflicts_ and map_ around the call to qsort.  Remove
29639         special case for 2 coalesce pairs.
29640         * bitmap.c (bitmap_count_unique_bits): New function.
29641         (bitmap_count_bits_in_word): New function, extracted from
29642         bitmap_count_bits.
29643         (bitmap_count_bits): Use bitmap_count_bits_in_word.
29644         * bitmap.h (bitmap_count_unique_bits): Declare it.
29646 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
29648         PR target/69917
29649         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29650         transparent alias chain for decl assembler name.
29651         * config/sol2.c (solaris_assemble_visibility): Likewise.
29653 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29655         * config/arm/arm1020e.md (1020call_op): Reduce reservation
29656         duration.
29657         (v10_fdivs): Likewise.
29658         (v10_fdivd): Likewise.
29660 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29662         PR driver/70132
29663         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29664         to not call fclose twice on file.
29666 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
29668         PR tree-optimization/70354
29669         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29670         oprnd0 is wider than oprnd1 and there is a cast from the wider
29671         type to oprnd1, mask it with the mask of the narrower type.
29673         PR target/70321
29674         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29675         Optimize TARGET_STV splitters, if high or low word of last argument
29676         is 0 or -1.
29678 2016-03-22  Jeff Law  <law@redhat.com>
29680         PR target/70232
29681         tree-ssa-threadbackward.c
29682         (fsm_find_control_statement_thread_paths): Correctly distinguish
29683         between old style jump threads vs FSM jump threads.
29685 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
29687         PR target/70302
29688         * config/i386/i386.c (scalar_chain::convert_op): Support
29689         uninitialized register usage case.
29691 2016-03-22  Richard Biener  <rguenther@suse.de>
29693         PR middle-end/70251
29694         * genmatch.c (gen_transform): Adjust last parameter to a three-state
29695         int...
29696         (capture::gen_transform): ... to change behavior when substituting
29697         a condition into cond or not-cond expr context.
29698         (dt_simplify::gen_1): Adjust.
29699         * gimple-match-head.c: Include gimplify.h for unshare_expr.
29700         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29701         last change and instead change to
29702         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29703         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29705 2016-03-22  Anthony Green  <green@moxielogic.com>
29707         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
29708         issue for moxiebox targets.
29709         (CC1PLUS_SPEC): Ditto.
29711 2016-03-22  Richard Biener  <rguenther@suse.de>
29713         PR middle-end/70333
29714         * fold-const.c (extract_muldiv_1): Properly perform multiplication
29715         in the wide type.
29717 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
29719         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29721 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
29723         PR target/70325
29724         * config/i386/i386.c (def_builtin): Handle
29725         OPTION_MASK_ISA_AVX512VL to be and-ed with other
29726         bits.
29727         (const struct builtin_description bdesc_special_args[]):
29728         Remove duplicate ISA bits.
29730 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
29732         PR target/70329
29733         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29734         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
29735         in a way that works also for AVX512BW.
29737         PR target/70300
29738         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29739         instead of source if operands[1] is xmm16 and above and
29740         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
29741         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29743         PR c++/70295
29744         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29745         on assign if (*from_p) is a comparison, set it to
29746         TREE_NO_WARNING (*from_p).
29748 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
29750         PR middle-end/70326
29751         * lra.c (restore_scratches): Ignore deleted insns.
29753 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
29754             Jakub Jelinek  <jakub@redhat.com>
29756         PR tree-optimization/70317
29757         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29758         to HONOR_NANS.
29760 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
29762         PR target/70327
29763         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29764         of ix86_expand_move.
29765         (movoi): Ditto.
29766         (movti): Use general_operand for operand 1 predicate.
29768 2016-03-21  Martin Liska  <mliska@suse.cz>
29770         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29771         insns.
29772         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29774 2016-03-21  Martin Liska  <mliska@suse.cz>
29776         PR ipa/70306
29777         * ipa-icf.c (sem_function::parse): Skip static
29778         constructors and destructors.
29780 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
29782         PR target/70296
29783         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29784         function-like macro, peek following token(s) if it is followed
29785         by CPP_OPEN_PAREN token with optional padding in between, and
29786         if not, don't treat it like a macro.
29788 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
29789             Alexander Monakov  <amonakov@ispras.ru>
29791         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29792         for the stabs debug format.
29794 2016-03-21  Richard Biener  <rguenther@suse.de>
29796         PR tree-optimization/70310
29797         * tree-vect-generic.c (expand_vector_condition): Fold the built
29798         condition.
29800 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
29802         PR target/70293
29803         * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29804         Block third alternative for AVX-512VL target,
29806 2016-03-21  Martin Liska  <mliska@suse.cz>
29808         PR hsa/70234
29809         * hsa-brig.c (emit_function_directives): Mark unemitted
29810         global variables for emission.
29811         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29812         (get_symbol_for_decl): Likewise.
29813         * hsa.h (struct hsa_symbol): New flag.
29815 2016-03-21  Richard Biener  <rguenther@suse.de>
29817         PR tree-optimization/70288
29818         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29819         we do not estimate unsimplified all-constant conditionals or
29820         switches as optimized away.
29822 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
29824         PR rtl-optimization/69102
29825         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29826         when we have a readonly dependency context.
29828 2016-03-18  Jeff Law  <law@redhat.com>
29830         PR rtl-optimization/70263
29831         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29832         (update_equiv_regs): When trying to move a store to after the insn
29833         that sets the source of the store, make sure the store occurs after
29834         the insn that sets the source of the store.  When successful note
29835         the REG_EQUIV note created in the dump file.
29837 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
29838             Bernd Schmidt  <bschmidt@redhat.com>
29840         * doc/extend.texi: Document more potential problems with basic asms.
29842 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
29844         PR rtl-optimization/70278
29845         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29846         VOIDmode.
29848 2016-03-18  Jason Merrill  <jason@redhat.com>
29850         * calls.c (load_register_parameters): Fix zero size sibcall logic.
29852 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
29854         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29855         values to 128b regs.
29857 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
29859         PR tree-optimization/70252
29860         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29861         boolean vector has a proper number of elements.
29862         (supportable_narrowing_operation): Likewise.
29864 2016-03-18  Tom de Vries  <tom@codesourcery.com>
29866         PR ipa/70269
29867         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29869 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
29871         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29872         instead of replace_rtx for DEBUG_INSNs.
29874 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29876         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29877         load type reservations.
29879 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
29881         PR target/70188
29882         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
29883         define_constraint for "Q" and "T" constraints.
29885 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
29887         Tweak the pipeline model for Exynos M1
29889         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
29890         model.
29892 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
29894         PR c/70264
29895         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29896         where one or both locations aren't within a line_map.
29898 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
29900         PR driver/70192
29901         * opts.c (finish_options): Don't set flag_pie to the default if
29902         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
29903         if it is -1.
29905 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
29907         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29908         true as ALL_REGS argument to replace_rtx.
29910 2016-03-17  Richard Biener  <rguenther@suse.de>
29912         PR debug/70271
29913         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29914         last.
29916 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
29918         PR target/70245
29919         * rtl.h (replace_rtx): Add ALL_REGS argument.
29920         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
29921         equality and assert mode is the same, instead of just rtx pointer
29922         equality.
29923         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29924         true as ALL_REGS argument to replace_rtx.
29926 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
29928         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29929         for boolean vector with vector mode only.
29930         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29932 2016-03-17  Nick Clifton  <nickc@redhat.com>
29934         PR target/70162
29935         * config/rx/rx.c (rx_print_integer): Print negative constants in
29936         decimal.
29938 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
29940         PR target/70261
29941         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29943 2016-03-16  Richard Henderson  <rth@redhat.com>
29944             Richard Biener  <rguenth@suse.de>
29946         PR middle-end/70240
29947         PR middle-end/68215
29948         PR tree-opt/68714
29949         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29950         first operand as is_gimple_condexpr.
29952         PR middle-end/70240
29953         PR middle-end/68215
29954         Revert r231575
29955         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
29956         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29957         Do not gimplify the result.
29958         (do_unop): Adjust call to tree_vec_extract.
29959         (do_binop): Likewise.
29960         (do_compare): Likewise.
29961         (do_plus_minus): Likewise.
29962         (do_negate): Likewise.
29963         (expand_vector_condition): Likewise.
29964         (do_cond): Likewise.
29966 2016-03-16  Richard Henderson  <rth@redhat.com>
29968         PR target/70048
29969         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29970         (aarch64_classify_address): Use it.
29971         (aarch64_legitimize_address): Force all subexpressions of PLUS
29972         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
29974 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
29975             Richard Biener  <rguenth@suse.de>
29977         PR target/70245
29978         * rtlanal.c (replace_rtx): For REG, if from is a REG,
29979         return to even if only REGNO is equal, and assert
29980         mode is the same.
29982 2016-03-11  Jeff Law  <law@redhat.com>
29984         PR rtl-optimization/70224
29985         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29987 2016-03-16  Richard Henderson  <rth@redhat.com>
29989         PR middle-end/70199
29990         * function.h (struct function): Add has_forced_label_in_static.
29991         * gimplify.c (force_labels_r): Set it.
29992         * lto-streamer-in.c (input_struct_function_base): Read it.
29993         * lto-streamer-out.c (output_struct_function_base): Write it.
29994         * tree-inline.c (has_label_address_in_static_1): Remove.
29995         (copy_forbidden): Remove fndecl parameter; test
29996         has_forced_label_in_static.
29997         (inline_forbidden_p): Update call to copy_forbidden.
29998         (tree_versionable_function_p): Likewise.
29999         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
30000         (chkp_versioning): Likewise.
30001         * tree-inline.h (copy_forbidden): Update decl.
30003 2016-03-16  Marek Polacek  <polacek@redhat.com>
30005         PR c/70093
30006         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
30007         function being thunked if the result type doesn't have fixed size.
30008         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
30009         doesn't have fixed size.
30011 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
30013         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
30014         reporting malformed loop nest.
30016 2016-03-16  Tom de Vries  <tom@codesourcery.com>
30018         PR lto/70187
30019         * ipa-devirt.c (possible_polymorphic_call_targets): Move
30020         nodes.length () == 1 test to before first nodes[0] access.
30022 2016-03-16  Tom de Vries  <tom@codesourcery.com>
30024         PR tree-optimization/68715
30025         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
30026         single_pred_p test.
30028 2016-03-16  Tom de Vries  <tom@codesourcery.com>
30030         PR tree-optimization/68809
30031         * graphite-scop-detection.c (same_close_phi_node): Test if result types
30032         are the same.
30034 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
30035             Sandra Loosemore  <sandra@codesourcery.com>
30037         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
30038         on leaf attribute. Mention ELF interposition problems.
30040 2016-03-16  Alan Modra  <amodra@gmail.com>
30042         PR rtl-optimization/69195
30043         PR rtl-optimization/47992
30044         * ira.c (indirect_jump_optimize): Ignore artificial defs.
30045         Add comments.
30047 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30049         PR bootstrap/69513
30050         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
30052 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30054         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
30056 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
30058         PR rtl-optimization/70222
30059         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
30060         optimization if mode is different from result_mode, queue up masking
30061         of the result in outer_op.  Formatting fix.
30063         PR middle-end/70239
30064         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
30065         of safe_grow.
30067 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
30069         PR rtl-optimization/69032
30070         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
30071         looping backwards over basic block insns.
30073 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
30075         PR target/66660
30076         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
30077         to non-speculative when propagating trap bits.
30079 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
30081         PR rtl-optimization/63384
30082         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
30083         DEBUG_INSN_P insns.
30085 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
30087         PR target/64411
30088         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
30089         factored out from ...
30090         (sched_analyze_insn): ... here.
30091         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
30092         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
30093         get_implicit_reg_pending_clobbers in it.
30094         (setup_id_reg_sets): Use setup_id_implicit_regs.
30095         (deps_init_id): Ditto.
30097 2016-03-15  Tom de Vries  <tom@codesourcery.com>
30099         PR ipa/70161
30100         * cgraph.c (cgraph_node::get_body): Save, reset and restore
30101         dump_file_name.
30102         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
30103         execute_function_dump.
30104         (execute_one_pass): Don't dump function if it will be dumped after ipa
30105         transform.
30107 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
30109         * genrecog.c (match_pattern_2): If pred is NULL don't call
30110         safe_predicate_mode on it.
30112 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
30114         PR middle-end/70219
30115         * lra-constraints.c (delete_move_and_clobber): Change assertion
30116         to also allow dregno == 0.
30118 2016-03-14  Richard Henderson  <rth@redhat.com>
30120         PR tree-opt/68714
30121         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
30122         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
30123         (reassociate_bb): Use optimize_vec_cond_expr; avoid
30124         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
30125         on vectors.
30127 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
30129         PR target/70083
30130         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
30131         regs.
30132         (lra_create_live_ranges_1): initialize hard register biggest_mode to
30133         VOIDmode.
30134         * lra-constraints.c (split_reg): For hard regs, try to find the
30135         biggest single-register mode used in the function.
30137 2016-03-14  Richard Biener  <rguenther@suse.de>
30139         PR tree-optimization/56365
30140         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
30141         constants to compare against.
30143 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
30145         PR target/70098
30146         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
30147         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
30148         (define_split for the GPR case): Use int_reg_operand instead of
30149         gpc_reg_operand for the output.
30151 2016-03-14  Tom de Vries  <tom@codesourcery.com>
30153         PR tree-optimization/70045
30154         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
30155         create_empty_if_region_on_edge argument.
30157 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
30159         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
30160         (STACK_CHECK_PROTECT): Likewise.
30161         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
30162         (STACK_CHECK_PROTECT): Likewise.
30163         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
30164         (STACK_CHECK_PROTECT): Likewise.
30165         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
30166         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
30167         (STACK_CHECK_PROTECT): Likewise.
30169 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
30171         PR rtl-optimization/69307
30172         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
30173         registers in modes that span more than one register.
30175 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
30177         PR target/69614
30178         * lra-constraints.c (delete_move_and_clobber): New.
30179         (remove_inheritance_pseudos): Use it.
30181 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
30183         PR ada/70017
30184         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
30185         the libcall is LCT_THROW.
30186         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
30187         for the checking routine.
30189 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
30191         PR target/70131
30192         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
30193         optimization if we have direct move.
30194         (roundu32<mode>2_fprs): Likewise.
30196 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
30198         PR target/70123
30199         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
30200         be rematerialized.
30201         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
30202         Arguments swapped.  All callers changed.  Take reg_renumber into
30203         account, and Calculate and compare register ranges for hard regs.
30205 2016-03-11  Jeff Law  <law@redhat.com>
30207         PR tree-optimization/70190
30208         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30209         Handle cases where we can not extract the taken edge, even though we
30210         found a constant value.
30212         PR tree-optimization/64058
30213         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
30214         (num_coalesce_pairs): Move up earlier in file.
30215         (find_coalesce_pair): Initialize the INDEX field for each pair
30216         discovered.
30217         (compare_pairs): No longer sort on the elements in each pair.
30218         Instead break ties with the index of the coalesce pair.
30220 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30222         PR target/70002
30223         * config/aarch64/aarch64-protos.h
30224         (aarch64_save_restore_target_globals): New prototype.
30225         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
30226         Call the above when popping pragma.
30227         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
30228         New function.
30229         (aarch64_set_current_function): Rewrite using the above.
30231 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
30233         PR tree-optimization/70177
30234         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
30235         (extract_ops_from_tree): ... this.  In the 2 argument
30236         overload remove _1 suffix.
30237         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
30238         (extract_ops_from_tree): ... this.
30239         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
30240         Adjust callers.
30241         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
30242         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
30243         extract_ops_from_tree instead of 2 operand one.
30245 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
30247         PR tree-optimization/70013
30248         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
30249         for constant-pool entries.
30251 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
30253         PR rtl-optimization/70174
30254         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
30255         followed by gen_lowpart on force_reg instead of just gen_lowpart.
30257         PR tree-optimization/70169
30258         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
30259         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
30260         for unknown codes.
30262 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
30263             Jakub Jelinek  <jakub@redhat.com>
30265         PR target/70160
30266         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
30267         of uninitialized values.
30269 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30271         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
30272         define_expand.
30273         ("*trunctddd2"): New pattern definition.
30274         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
30275         TD->DD truncation.
30277 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30279         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
30280         definitions for BFP and DFP rounding modes.
30281         ("fixuns_truncdddi2", "fixuns_trunctddi2")
30282         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
30283         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
30284         ("fix_trunctf<mode>2"): Use the new constants instead of magic
30285         numbers.
30287 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30289         * config/s390/constraints.md: Adjust comment.
30290         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
30291         s390_decompose_addrstyle_without_index.
30292         * config/s390/predicates.md (shift_count_or_setmem_operand):
30293         Rename to setmem_operand.
30294         * config/s390/s390-protos.h
30295         (s390_decompose_shift_count): Rename to
30296         s390_decompose_addrstyle_without_index.
30297         * config/s390/s390.c (s390_decompose_shift_count)
30298         (s390_mem_constraint, print_shift_count_operand)
30299         (print_operand_address, print_operand): Rename
30300         s390_decompose_shift_count to
30301         s390_decompose_addrstyle_without_index and rename
30302         print_shift_count_operand to print_addrstyle_operand troughout the
30303         file.
30304         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
30305         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
30306         Rename shift_count_or_setmem_operand to setmem_operand.
30307         * config/s390/vx-builtins.md ("vec_insert<mode>")
30308         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
30309         nonmemory_operand.
30311 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30313         PR target/70168
30314         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
30315         Handle overlapping retval and newval.
30317 2016-03-10  Nick Clifton  <nickc@redhat.com>
30319         PR target/7044
30320         * config/aarch64/aarch64.c
30321         (aarch64_override_options_after_change_1): When forcing
30322         flag_omit_frame_pointer to be true, use a special value that can
30323         be detected if this function is called again, thus preventing
30324         flag_omit_leaf_frame_pointer from being forced to be false.
30326 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30328         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
30329         Set x_flag_omit_leaf_frame_pointer when handling
30330         -momit-leaf-frame-pointer.
30332 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
30334         PR lto/69589
30335         * cgraph.c (cgraph_node::dump): Dump split_part and
30336         indirect_call_target.
30337         * cgraph.h (cgraph_node): Add indirect_call_target flag.
30338         * ipa.c (has_addr_references_p): Cleanup.
30339         (is_indirect_call_target_p): New.
30340         (walk_polymorphic_call_targets): Do not mark virtuals that may be
30341         called indirectly as local.
30342         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
30344 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
30346         PR ipa/69630
30347         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30348         on cxa_pure_virtual.
30350 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
30352         PR lto/69589
30353         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
30355 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
30357         PR lto/69589
30358         * tree.c (need_assembler_name_p): Only record main variant type names.
30360 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
30362         PR target/70113.
30363         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30364         Always define to 0 or 1.
30365         (TARGET_FIX_ERR_A53_843419): New macro.
30366         * config/aarch64/aarch64-elf-raw.h
30367         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30368         * config/aarch64/aarch64-linux.h: Likewise.
30369         * config/aarch64/aarch64.c
30370         (aarch64_override_options_after_change_1): Do not default
30371         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30372         843419 is on.
30373         (aarch64_attributes): Handle fix-cortex-a53-843419.
30374         (aarch64_can_inline_p): Likewise.
30375         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30377 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
30378             Jakub Jelinek  <jakub@redhat.com>
30380         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30381         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30382         DECL_COMMONS if flag_unconstrained_commons is set.
30383         * tree-dfa.c (get_ref_base_and_extent): Likewise.
30384         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30385         (funconstrained-commons): Document.
30387 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
30389         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30390         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30392 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
30394         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30395         has a proper number of elements.
30397 2016-03-10  Alan Modra  <amodra@gmail.com>
30399         PR rtl-optimization/69195
30400         PR rtl-optimization/47992
30401         * ira.c (recorded_label_ref): Delete.
30402         (update_equiv_regs): Return void.
30403         (indirect_jump_optimize): New function.
30404         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30405         before regstat_compute_ri.  Don't rebuild_jump_labels here.
30406         Delete update_regstat.
30408 2016-03-10  Richard Biener  <rguenther@suse.de>
30410         PR tree-optimization/70128
30411         * tree-ssa-structalias.c (set_uids_in_ptset): Set
30412         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30414 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
30416         PR tree-optimization/70152
30417         * tree-sra.c (replace_removed_params_ssa_names): Copy over
30418         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30420         PR target/70086
30421         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30422         instead of gen_sse2_loadlpd.
30423         * config/i386/sse.md (*vec_concatv2df): Rename to...
30424         (vec_concatv2df): ... this.
30426         PR tree-optimization/70127
30427         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30429 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
30431         PR c/68473
30432         PR c++/70105
30433         * diagnostic-show-locus.c (compatible_locations_p): New function.
30434         (layout::layout): Sanitize ranges using compatible_locations_p.
30436 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
30438         PR c/68473
30439         PR c++/70105
30440         * diagnostic-show-locus.c (layout_range::layout_range): Replace
30441         location_range param with three const expanded_locations * and a
30442         bool.
30443         (layout::layout): Replace call to
30444         rich_location::lazily_expand_location with get_expanded_location.
30445         Extract the range and perform location expansion here, passing
30446         the results to the layout_range ctor.
30447         * diagnostic.c (source_range::debug): Delete.
30448         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30449         of rich_location::get_expanded_location.
30450         * gcc-rich-location.c (get_range_for_expr): Delete.
30451         (gcc_rich_location::add_expr): Reimplement to avoid the
30452         rich_location::add_range overload that took a location_range,
30453         passing a location_t instead.
30455 2016-03-09  Richard Biener  <rguenther@suse.de>
30456         Jakub Jelinek  <jakub@redhat.com>
30458         PR tree-optimization/70138
30459         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30460         Also skip vect_double_reduction_def.
30462 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
30464         PR target/70049
30465         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30466         if the operand is "m".
30468 2016-03-09  Nathan Sidwell  <nathan@acm.org>
30470         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30472 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30474         * config/i386/i386.c (processor_target_table): Fix cost table
30475         intialization order for znver1.
30477 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
30479         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30480         - becuase -> because.
30481         * ipa-reference.c (ignore_module_statics): Likewise.
30482         * cgraph.c (cgraph_node::get_body): Likewise.
30483         * ipa-inline.c (early_inliner): Likewise.
30484         * ipa-devirt.c (types_same_for_odr): Likewise.
30485         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30486         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30488 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30490         * tree-ssa-math-opts.c: Fix typo in comment.
30492 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
30494         PR target/70110
30495         * config/i386/i386.c (scalar_chain::make_vector_copies,
30496         scalar_chain::convert_reg): Call end_sequence in between
30497         get_insns and emit_conversion_insns rather than after both
30498         calls.
30500 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
30502         PR target/70064
30503         * config/i386/i386.h (machine_function): Add
30504         pc_thunk_call_expanded flag.
30505         (ix86_pc_thunk_call_expanded): New define.
30506         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30507         (*set_got): Rename insn pattern from set_got.
30508         (*set_got_labelled): Rename inst pattern from set_got_labelled.
30509         * config/i386/i386.c (ix86_compute_frame_layout): Use
30510         ix86_pc_thunk_call_expanded to prevent red-zone.
30512 2016-03-07  Martin Jambor  <mjambor@suse.cz>
30514         * hsa.h (hsa_get_ctor_statements): Declare.
30515         (hsa_get_dtor_statements): Likewise.
30516         (hsa_get_kernel_dispatch_type): Likewise.
30517         * hsa.c (hsa_get_ctor_statements): New function.
30518         (hsa_get_dtor_statements): Likewise.
30519         (hsa_get_kernel_dispatch_type): Likewise.
30520         * hsa-brig.c (hsa_cdtor_statements): Removed.
30521         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30522         hsa_get_dtor_statements.
30523         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30524         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30526 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30528         * config/arm/arm-cores.def (cortex-r8): New.
30529         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30530         * config/arm/arm-tune.md: Likewise.
30531         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30533 2016-03-07  Martin Sebor  <msebor@redhat.com>
30535         PR rtl-optimization/19705
30536         * doc/invoke.texi (Options That Control Optimization): Clarify
30537         -fno-branch-count-reg.
30539 2016-02-26  Richard Biener  <rguenther@suse.de>
30540             Jeff Law  <law@redhat.com>
30542         PR tree-optimization/69740
30543         * cfghooks.c (remove_edge): Request loop fixups if we delete
30544         an edge that might turn an irreducible loop into a natural
30545         loop.
30546         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30547         Move after definition of loops_state_clear.
30549 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
30551         PR rtl-optimization/69052
30552         * rtlanal.c (commutative_operand_precedence): Set higher precedence
30553         to CONST_WIDE_INT.
30555 2016-03-07  Tom de Vries  <tom@codesourcery.com>
30557         PR tree-optimization/70116
30558         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30559         is_tm_ending stmts and ubsan/asan internal functions.
30560         (find_duplicate): Use it.  Don't test is_tm_ending here.
30562 2016-03-07  Richard Biener  <rguenther@suse.de>
30564         PR tree-optimization/70115
30565         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30566         (propagate_constants_for_unrolling): Use replace_uses_by.
30568 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
30570         PR middle-end/69916
30571         * omp-low.c (struct oacc_loop): Add ifns.
30572         (new_oacc_loop_raw): Initialize it.
30573         (finish_oacc_loop): Clear mask & flags if no ifns.
30574         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30575         (oacc_loop_xform_loop): Add ifns arg & adjust.
30576         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30578 2016-03-07  Richard Henderson  <rth@redhat.com>
30580         PR rtl-opt/70061
30581         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30582         (insert_value_copy_on_edge): Likewise.
30584 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30586         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30588 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30590         PR target/62281
30591         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30593 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
30595         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30597 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
30599         Fix sseimul type attribute.
30600         * config/i386/znver1.md
30601         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30602         znver1_sseimul_avx256_load) : Fix the type attribute.
30603         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30604         pipe usage and latency.
30606 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
30608         PR c++/70084
30609         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30610         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30611         to the right type.
30613 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
30615         PR c/69973
30616         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30618         PR rtl-optimization/69941
30619         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30620         the reg share its mode.
30622 2016-03-04  Jeff Law  <law@redhat.com>
30624         PR tree-optimization/69196
30625         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30626         If the both SSA_NAMEs are anonymous, then consider them unassociated
30627         and include the PHI in the statement count.
30629 2016-03-05  Tom de Vries  <tom@codesourcery.com>
30631         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30632         construct in oacc routine.  Check for oacc region in oacc routine.
30634 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
30636         PR target/70062
30637         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
30638         2016-02-22 changes, instead don't recurse if RECUR is already true.
30639         Don't change *dynamic_check if RECUR.  Adjust recursive caller
30640         to pass true to the new argument.
30641         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30643         PR target/70059
30644         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30645         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30646         fixes.
30647         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
30649 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
30651         PR rtl-optimization/57676
30652         * lra-assigns.c (lra_assign): Guard test for maximum iterations
30653         with flag_checking.
30655 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
30657         * tree-vect-patterns.c (search_type_for_mask): Handle
30658         comparison of booleans.
30660 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
30662         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30663         Fix @xref usage.
30665         PR debug/69947
30666         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30667         all other ops that have dw_val_class_die_ref operands,
30668         and DW_OP_GNU_entry_value.
30670 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30672         PR rtl-optimization/69904
30673         * config/arm/arm.c (arm_cannot_copy_insn_p):
30674         Return true for load-exclusive instructions.
30676 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
30678         PR target/70021
30679         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30680         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30681         the pattern no matter if it is used just by non-pattern, pattern
30682         or mix thereof.
30683         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30684         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30685         oprnd1 def_stmt is in pattern, don't look through it.
30687 2016-03-03  Marek Polacek  <polacek@redhat.com>
30689         PR middle-end/70050
30690         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30692 2016-03-03  Martin Liska  <mliska@suse.cz>
30694         PR tree-optimization/70043
30695         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30696         previous statement if we see a debug statement.
30698 2016-03-03  Richard Biener  <rguenther@suse.de>
30700         PR tree-optimization/55936
30701         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30702         parameter and guard unsafe equivalence use.
30703         (vrp_evaluate_conditional_warnv_with_ops): Always use
30704         safe equivalences but not via the quadratic compare_names
30705         helper.
30707 2016-03-03  Michael Collison  <michael.collison@linaro.org>
30709         PR target/70014
30710         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30711         for operand 1 to s_register_operand. Change predicate for operand
30712         2 to arm_not_immediate_operand.
30714 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
30716         * doc/tm.texi: Regenerated.
30718 2016-03-02  Richard Henderson  <rth@redhat.com>
30720         PR rtl-opt/67145
30721         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30722         simplification when all args are positive non-fixed registers.
30724 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
30726         * target.def (lra_p): Specify that new ports should use LRA.
30728 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
30730         PR libgomp/69555
30731         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30732         gimplify_type_sizes the type they refer to.
30733         (omp_notice_variable): Handle reference vars to VLAs.
30734         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30735         reference to VLA decls in the second pass instead of first pass.
30737 2016-03-02  Tom de Vries  <tom@codesourcery.com>
30739         PR tree-optimization/68659
30740         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30741         new_expr == NULL_TREE.
30742         (get_new_name): Handle ADDR_EXPR.
30744 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
30746         PR rtl-optimization/69052
30747         * loop-invariant.c (canonicalize_address): New function.
30748         (inv_can_prop_to_addr_use): Check validity of address expression
30749         which is canonicalized by above function.
30751 2016-03-02  Alan Modra  <amodra@gmail.com>
30753         PR ipa/69990
30754         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30755         larger alignment.
30757 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
30759         PR target/70028
30760         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30761         (*movhi_internal): Put mask moves from and to memory separately
30762         from moves from/to GPRs.
30764 2016-03-02  Richard Biener  <rguenther@suse.de>
30766         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30767         GENERIC expressions in GIMPLE.
30769 2016-03-02  Richard Biener  <rguenther@suse.de>
30771         * config/i386/i386.c (type_natural_mode): Fix typo.
30773 2016-03-02  Nick Clifton  <nickc@redhat.com>
30775         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30777 2016-03-02  Richard Biener  <rguenther@suse.de>
30778             Uros Bizjak  <ubizjak@gmail.com>
30780         PR target/67278
30781         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30783 2016-03-02  Richard Biener  <rguenther@suse.de>
30785         PR middle-end/67278
30786         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30788 2016-03-02  Marek Polacek  <polacek@redhat.com>
30790         PR c/67854
30791         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30792         "is promoted to" warning.
30794 2016-03-01  DJ Delorie  <dj@redhat.com>
30796         * config.gcc: Deprecate mep-*.
30798 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
30800         PR middle-end/70025
30801         * lra-constraints.c (regno_val_use_in): New.
30802         (match_reload): Use it instead of regno_use_in.
30804 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
30806         PR rtl-optimization/70007
30807         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30808         references present in REG_EQUAL notes attached to non-SET patterns.
30810 2016-03-01  Jeff Law  <law@redhat.com>
30812         PR tree-optimization/69196
30813         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30814         Appropriately clamp the number of statements to copy when the
30815         thread path does not traverse a loop backedge.
30817         PR tree-optimization/69196
30818         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30819         Do count some PHIs in the thread path against the insn count.  Decrease
30820         final statement count by one as the control statement in the last
30821         block will get removed.  Remove special cased code for handling PHIs
30822         in the last block.
30824 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
30826         PR target/70027
30827         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30828         asm dialect alternatives to explicit GOTPCREL calls.
30830 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
30832         PR ada/70017
30833         * ira.c (do_reload): Issue warning for generic stack checking here...
30834         * reload1.c (reload): ...instead of here and streamline it.
30836 2016-03-01  Nick Clifton  <nickc@redhat.com>
30838         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30840 2016-03-01  Richard Biener  <rguenther@suse.de>
30842         PR tree-optimization/69983
30843         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30844         types and fall back to operand_equal_p.
30846 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30848         Revert
30849         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30851         * config/s390/constraints.md ("jm8"): New constraint.
30852         * config/s390/predicates.md ("const_int_8bitset_operand"): New
30853         predicate.
30854         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30855         into ...
30856         ("*setmem_long<setmem_and>"): New pattern.
30857         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30858         into ...
30859         ("*setmem_long_31z<setmem_and>"): New pattern.
30860         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30861         New substitution rules with the required attributes.
30864 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30866         Revert
30867         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30869         * gensupport.c (process_substs_on_one_elem): Split loop to
30870         complete mark_operands_used_in_match_dup on all expressions in the
30871         vector first.
30872         (adjust_operands_numbers): Inline into process_substs_on_one_elem
30873         and remove function.
30875 2016-03-01  Richard Biener  <rguenther@suse.de>
30877         PR middle-end/70022
30878         * fold-const.c (fold_indirect_ref_1): Fix range checking for
30879         vector BIT_FIELD_REF extract.
30881 2016-03-01  Richard Biener  <rguenther@suse.de>
30883         PR tree-optimization/69994
30884         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30886 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
30888         PR tree-optimization/69956
30889         * tree-vect-stmts.c (supportable_widening_operation): Support
30890         multi-step conversion of boolean vectors.
30891         (supportable_narrowing_operation): Likewise.
30893 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30895         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30896         anymore.
30898 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30900         * config/s390/subst.md (DSI_VI): New mode iterator.
30901         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30902         * config/s390/vector.md ("vec_set<mode>"): Move expander before
30903         the insn definition.
30904         ("*vec_set<mode>"): Change predicate and add alternative to
30905         support only either register or const_int operands as element
30906         selector.
30907         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30908         operands.
30909         ("vec_extract<mode>"): New expander.
30910         ("*vec_extract<mode>"): New insn definition supporting reg and
30911         const_int element selectors.
30912         ("*vec_extract<mode>_plus"): New insn definition supporting
30913         reg+const_int element selectors.
30914         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30915         following expander+insn definition.
30916         ("<vec_shifts_name><mode>3"): New expander.
30917         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30919 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30921         * config/s390/s390.md ("*tabort_1"): Change predicate to
30922         nonmemory_operand.  Add a second alternative to cover
30923         register as well as const int operands.
30924         ("*tabort_1_plus"): New pattern definition.
30926 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30928         * config/s390/s390.md ("*ashrdi3_cc_31")
30929         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30930         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30931         Merge insn definitions into ...
30932         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30933         New pattern definition.
30934         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30935         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30936         ("*ashr<mode>3_and"): Merge insn definitions into ...
30937         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30938         New pattern definition.
30939         * config/s390/subst.md ("addr_style_op_cc_subst")
30940         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30941         substitutions patterns plus attributes.
30942         Add ashiftrt to SUBST iterator.
30944 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30946         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30947         op2 to nonmemory_operand.
30948         ("*<shift>di3_31", "*<shift>di3_31_and"):
30949         Merge into single pattern definition ...
30950         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30951         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30952         pattern definition ...
30953         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30954         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30955         iterator.
30957 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30959         * config/s390/predicates.md (const_int_6bitset_operand): New
30960         predicate.
30961         * config/s390/s390.md: Include subst.md.
30962         ("rotl<mode>3"): New expander.
30963         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30964         ...
30965         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30966         * config/s390/subst.md: New file.
30968 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30970         * config/s390/s390.md ("op_type", "atype", "length" attributes):
30971         Remove RRR type.  It doesn't really exist.
30972         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30973         attributes.
30974         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30975         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30976         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30977         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30978         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30979         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30980         `enabled' attribute.
30982 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30984         * gensupport.c (process_substs_on_one_elem): Split loop to
30985         complete mark_operands_used_in_match_dup on all expressions in the
30986         vector first.
30987         (adjust_operands_numbers): Inline into process_substs_on_one_elem
30988         and remove function.
30990 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
30992         PR target/69706
30993         * config/sparc/sparc.c (NWORDS_UP): Rename to...
30994         (CEIL_NWORDS): ...this.  Use CEIL macro.
30995         (compute_fp_layout): Adjust to above renaming.
30996         (function_arg_union_value): Likewise.
30997         (sparc_arg_partial_bytes): Likewise.
30998         (sparc_function_arg_advance): Likewise.
31000 2016-02-29  Jeff Law  <law@redhat.com>
31002         PR tree-optimization/70005
31003         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
31004         where an object with a boolean range is compared against a value
31005         outside [0..1].
31007         PR tree-optimization/69999
31008         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
31009         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
31010         loop cleanups.
31012 2016-02-29  Richard Biener  <rguenther@suse.de>
31014         PR tree-optimization/69994
31015         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
31016         (get_unary_op): Look through nop conversions.
31017         (ops_equal_values_p): New function, look for equality diregarding
31018         nop conversions.
31019         (eliminate_plus_minus_pair): Use ops_equal_values_p
31020         (repropagate_negates): Do not use get_unary_op here.
31022 2016-02-29  Martin Liska  <mliska@suse.cz>
31024         * system.h: Poison ENABLE_CHECKING macro.
31026 2016-02-29  Martin Liska  <mliska@suse.cz>
31028         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
31029         is presented in dump flags.
31030         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
31031         (hsa_regalloc): Likewise.
31033 2016-02-19  Richard Biener  <rguenther@suse.de>
31035         PR tree-optimization/69980
31036         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
31037         permutation of those we need to keep.
31039 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
31041         PR target/69706
31042         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
31043         (NWORDS_UP): ...this
31044         (init_cumulative_args): Minor tweaks.
31045         (sparc_promote_function_mode): Likewise.
31046         (scan_record_type): Delete.
31047         (traverse_record_type): New function template.
31048         (classify_data_t): New structure type.
31049         (classify_registers): New inline function.
31050         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
31051         exhausted.  Instantiate traverse_record_type on classify_registers and
31052         deal with the case of a structure passed in slot #15 with no FP field
31053         in the first word.
31054         (assign_data_t): New structure type.
31055         (compute_int_layout): New static function.
31056         (compute_fp_layout): Likewise.
31057         (count_registers): New inline function.
31058         (assign_int_registers): New static function.
31059         (assign_fp_registers): Likewise.
31060         (assign_registers): New inline function.
31061         (function_arg_record_value_1): Delete.
31062         (function_arg_record_value_2): Likewise.
31063         (function_arg_record_value_3): Likewise.
31064         (function_arg_record_value): Adjust to above changes.  Instantiate
31065         traverse_record_type on count_registers to first count the number of
31066         registers to be used and then on assign_registers to assign them.
31067         (function_arg_union_value): Adjust to above renaming.
31068         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
31069         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
31070         case of a structure passed in slot #15
31071         (sparc_function_arg_advance): Likewise.
31072         (function_arg_padding): Minor tweak.
31074 2016-02-29  Richard Biener  <rguenther@suse.de>
31076         PR tree-optimization/69720
31077         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
31078         the adjustment_def path for possibly vectorized defs.
31079         (vect_create_epilog_for_reduction): Handle vectorized initial
31080         defs properly.
31082 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
31084         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
31086 2016-02-27  Jeff Law  <law@redhat.com>
31088         Revert
31089         2016-02-26  Richard Biener  <rguenther@suse.de>
31090                     Jeff Law  <law@redhat.com>
31092         PR tree-optimization/69740
31093         * cfghooks.c (remove_edge): Request loop fixups if we delete
31094         an edge that might turn an irreducible loop into a natural
31095         loop.
31097 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
31099         PR rtl-optimization/69896
31100         * tree-vect-generic.c (get_compute_type): Avoid single element
31101         vector types.
31103 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
31105         Rename the AArch64 tuning option and related functions to enable the
31106         Newton series for the reciprocal square root to reflect its
31107         approximative characteristic.
31109         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
31110         function to "aarch64_emit_approx_rsqrt".
31111         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
31112         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
31113         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
31114         (xgene1_tunings): Likewise.
31115         (use_rsqrt_p): Likewise.
31116         (aarch64_emit_swrsqrt): Use new function name.
31117         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
31118         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
31119         text explaining this option.
31120         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
31122 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
31124         PR target/69969
31125         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31126         complain about -mallow-movmisalign without -mvsx if
31127         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
31129 2016-02-26  Joel Sherrill  <joel@rtems.org>
31131         * config.gcc: Add x86_64-*-rtems*.
31132         * config/i386/rtems-64.h: New file.
31134 2016-02-26  Joel Sherrill  <joel@rtems.org>
31136         * config.gcc: Add aarch64-*-rtems*.
31137         * config/aarch64/rtems.h: New file.
31139 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
31141         PR target/69946
31142         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
31143         shift amount using %h.  Add comment.
31145 2016-02-26  Richard Biener  <rguenther@suse.de>
31146             Jeff Law  <law@redhat.com>
31148         PR tree-optimization/69740
31149         * cfghooks.c (remove_edge): Request loop fixups if we delete
31150         an edge that might turn an irreducible loop into a natural
31151         loop.
31153 2016-02-26  Martin Jambor  <mjambor@suse.cz>
31155         PR middle-end/69920
31156         * tree-sra.c (sra_modify_assign): Do not remove loads of
31157         uninitialized aggregates to SSA_NAMEs.
31159 2016-02-26  Richard Henderson  <rth@redhat.com>
31161         PR target/69709
31162         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
31163         pseudo in case the target rtx matches the source of the left
31164         shift.
31166 2016-02-26  Martin Jambor  <mjambor@suse.cz>
31168         PR hsa/69568
31169         * hsa.h (hsa_type_packed_p): Declare.
31170         * hsa.c (hsa_type_packed_p): New function.
31171         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
31172         loads.
31173         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
31174         * hsa-brig.c (emit_basic_insn): Likewise.
31176 2016-02-26  Martin Jambor  <mjambor@suse.cz>
31178         pr hsa/69674
31179         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
31180         pointers.
31181         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
31183 2016-02-26  Martin Jambor  <mjambor@suse.cz>
31185         * hsa.h (is_a_helper): New overload for hsa_op_immed for
31186         hsa_op_with_type operands.
31187         (hsa_unsigned_type_for_type): Declare.
31188         * hsa.c (hsa_unsigned_type_for_type): New function.
31189         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
31190         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
31191         the finalizer.  Do not emit extra move.
31193 2016-02-26  Martin Jambor  <mjambor@suse.cz>
31195         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
31196         atomic operations in private segment.
31198 2016-02-26  Martin Jambor  <mjambor@suse.cz>
31200         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
31201         statements to wi->info.  Also disallow omp simd constructs.
31202         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
31203         for not gridifying.  Dump special string for omp_for.
31205 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31207         PR target/69245
31208         * config/aarch64/aarch64.c (aarch64_set_current_function):
31209         Save/restore target globals when switching to
31210         target_option_default_node.
31212 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31214         PR target/69613
31215         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
31216         Return 0 if !SHIFT_COUNT_TRUNCATED.
31218 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
31219             Eric Botcazou  <ebotcazou@adacore.com>
31221         PR rtl-optimization/69891
31222         * dse.c (scan_insn): If we can't figure out memset arguments
31223         or they are non-constant, call clear_rhs_from_active_local_stores.
31225 2016-02-26  Martin Liska  <mliska@suse.cz>
31227         * doc/extend.texi: Mention clog10, clog10f an clog10l
31228         in Builtins section.
31230 2016-02-26  Martin Liska  <mliska@suse.cz>
31232         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
31233         CHECKING_P.
31234         (resolve_args_picking_1): Likewise.
31235         * dwarf2out.h (struct GTY): Likewise.
31237 2016-02-26  Martin Liska  <mliska@suse.cz>
31239         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
31240         with flag_checking.
31241         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
31243 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
31244             Martin Liska  <mliska@suse.cz>
31246         * doc/install.texi: Mention --enable-valgrind-annotations.
31248 2016-02-26  Richard Biener  <rguenther@suse.de>
31250         PR tree-optimization/69551
31251         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
31252         looking through aliases adjust DECL_PT_UID to refer to the
31253         ultimate alias target.
31255 2016-02-25  Martin Liska  <mliska@suse.cz>
31257         PR middle-end/69919
31258         * alloc-pool.c (after_memory_report): New variable.
31259         * alloc-pool.h (base_pool_allocator ::release): Do not use
31260         the infrastructure if after_memory_report.
31261         * toplev.c (toplev::main): Mark after memory report.
31263 2016-02-25  Richard Biener  <rguenther@suse.de>
31265         PR tree-optimization/48795
31266         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
31268 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
31270         PR driver/68463
31271         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
31272         offloading is enabled and -fopenacc or -fopenmp is specified.
31273         (CRTOFFLOADEND): Likewise.
31274         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
31275         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
31276         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
31277         (offload_objects_file_name): New static var.
31278         (tool_cleanup): Remove offload_objects_file_name file.
31279         (find_offloadbeginend): Replace with ...
31280         (find_crtoffloadtable): ... this.
31281         (run_gcc): Remove offload_argc and offload_argv.
31282         Get offload_objects_file_name from -foffload-objects=... option.
31283         Read names of object files with offload from this file, pass them to
31284         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
31285         don't pass offloadbegin and offloadend to the linker.  Don't pass
31286         offload non-LTO files to the linker, because now they're not claimed.
31288 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
31290         PR ipa/69630
31291         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
31292         on builtin_unreachable.
31294 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
31296         PR rtl-optimization/69896
31297         * regcprop.c: Include cfgrtl.h.
31298         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
31299         than remembered mode, either delete it (if noop_move_p), or
31300         treat like copy_p but not noop_p instruction.
31302 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
31304         PR debug/69705
31305         * dwarf2out.c (gen_variable_die): Work around buggy LTO
31306         - allow NULL decl for Fortran DW_TAG_common_block variables.
31308 2016-02-24  Jason Merrill  <jason@redhat.com>
31310         * common.opt (flifetime-dse): Add -flifetime-dse=1.
31312 2016-02-24  Richard Biener  <rguenther@suse.de>
31313             Jakub Jelinek  <jakub@redhat.com>
31315         PR middle-end/69760
31316         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
31317         conditionally executed ops to well-defined overflow behavior.
31319 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
31321         PR middle-end/69915
31322         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
31323         elements.
31325 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31327         PR rtl-optimization/69886
31328         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
31329         argument.  Use it when checking validity of set instructions.
31330         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
31331         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
31332         callsite.
31333         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
31334         * store-motion.c (find_moveable_store): Update
31335         can_assign_to_reg_without_clobbers_p callsite.
31337 2016-02-24  Richard Biener  <rguenther@suse.de>
31339         PR middle-end/68963
31340         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
31341         bogus check.
31342         (record_nonwrapping_iv): Do not fall back to the low/high bound
31343         for non-constant IV bases if the stmt is not always executed.
31345 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31347         * config/arm/arm-cores.def (cortex-a32): New entry.
31348         * config/arm/arm-tables.opt: Regenerate.
31349         * config/arm/arm-tune.md: Regenerate.
31350         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
31351         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
31352         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
31353         for -mcpu and -mtune.
31355 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31357         PR target/69875
31358         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
31359         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
31360         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31361         (atomic_loaddi_1): Delete.
31362         (atomic_loaddi): Rewrite expander using the above changes.
31364 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
31366         PR c/69918
31367         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31368         2 to 3.
31370 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
31371             Richard Biener  <rguenth@suse.de>
31373         PR middle-end/69909
31374         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31375         set_mem_attributes if tem is SSA_NAME which got expanded
31376         as a MEM.
31378 2016-02-24  Richard Biener  <rguenther@suse.de>
31380         PR tree-optimization/69907
31381         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31382         end of permutations for BB vectorization.
31384 2016-02-24  Christian Bruel  <christian.bruel@st.com>
31386         * config/arm/arm-c.c (arm_option_override): Initialize
31387         target_option_current_node.
31388         * config/arm/arm.c (arm_pragma_target_parse): Replace
31389         build_target_option_node call by target_option_current_node.
31390         Set target_option_current_node.
31391         Fix comments.
31393 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
31395         PR target/69810
31396         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31397         define_insn_and_split to define_insn.
31398         (zero_extendqi<mode>2_dot2): Same.
31399         (extendqi<mode>2_dot): Same.
31400         (extendqi<mode>2_dot2): Same.
31402 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
31404         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31405         and add bypass for AES{D,E} and AESMC pairs.
31406         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31407         and AESMC pairs.
31409 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
31411         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31412         series for reciprocal square root in Exynos M1.
31414 2016-02-23  Martin Sebor  <msebor@redhat.com>
31416         PR c/69759
31417         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31418         __builtin_alloca_with_align.
31420 2016-02-23  Richard Henderson  <rth@redhat.com>
31422         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31423         (ix86_register_pragmas): Remove __seg_tls.
31424         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31425         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31426         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31427         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31428         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31429         * doc/extend.texi (__seg_tls): Remove item.
31431 2016-02-23  Richard Biener  <rguenther@suse.de>
31433         * alloc-pool.h (struct allocation_object): Make id member
31434         conditional on CHECKING_P again.
31435         (get_instance): Adjust.
31436         (base_pool_allocator): Likewise.
31438 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
31440         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31441         (parallelize_loops): In OpenACC kernels mode, set n_threads to
31442         zero.
31443         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31444         flag_openacc.
31445         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31447 2016-02-23  Richard Biener  <rguenther@suse.de>
31449         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31450         * bitmap.h (struct bitmap_usage): Likewise.
31451         (bitmap_move): Declare.
31452         * bitmap.c (register_overhead): Take size_t argument.
31453         (bitmap_move): New function.
31454         * df-problems.c (df_rd_transfer_function): Use bitmap_move
31455         to properly account overhead.
31456         * tree.c (free_node): Use tree_size.
31458 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
31460         PR c++/69902
31461         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31462         when inverting comparison.
31464         PR c/69900
31465         * common.opt (Wunreachable-code): Add Warning flag.
31467 2016-02-23  Mark Wielaard  <mjw@redhat.com>
31468             Jakub Jelinek  <jakub@redhat.com>
31470         PR c/69911
31471         * cgraphunit.c (check_global_declaration): Check main_input_filename
31472         and DECL_SOURCE_FILE are not NULL.
31474 2016-02-23  Martin Jambor  <mjambor@suse.cz>
31476         PR tree-optimization/69666
31477         * tree-sra.c (sra_modify_assign): Do not attempt to create
31478         default_def replacements for unscalarizable regions.
31480 2016-02-20  Mark Wielaard  <mjw@redhat.com>
31482         PR c/28901
31483         * cgraphunit.c (check_global_declaration): Check level of
31484         warn_unused_const_variable and main_input_filename.
31485         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31486         (-Wunused-variable): For C implies -Wunused-const-variable=1.
31487         (-Wunused-const-variable): Explain levels 1 and 2.
31489 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
31491         PR target/69888
31492         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31493         identical arguments.  Formatting and spelling fixes.
31495         PR target/69885
31496         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31497         be specified.
31499         PR target/69894
31500         PR target/69895
31501         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31502         and m68k-devices.def.
31503         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31504         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31506 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
31508         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31509         and HImode registers.
31511 2016-02-22  Richard Biener  <rguenther@suse.de>
31513         PR tree-optimization/69882
31514         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31515         preserve permutations present because of gaps.
31516         (vect_supported_load_permutation_p): Always continue checking
31517         permutations after vect_attempt_slp_rearrange_stmts.
31519 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
31521         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31522         min_profitable_estimate, rather than min_profitable_iters.
31524 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
31526         PR target/69885
31527         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31528         SImode for last match_operand.
31530 2016-02-22  Martin Liska  <mliska@suse.cz>
31532         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31533         return bitsize - 1 as the return value.
31535 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
31537         PR target/69806
31538         PR target/54089
31539         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31540         Handle negative shift counts.
31541         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31542         force_reg on the shift constant.
31543         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
31544         (lshrsi3_d): Handle negative shift counts.
31546 2016-02-22  Richard Biener  <rguenther@suse.de>
31547             Tom de Vries  <tom@codesourcery.com>
31549         * graph.c: Include dumpfile.h.
31550         (print_graph_cfg): Split into three overloads.
31551         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31553 2016-02-22  Tom de Vries  <tom@codesourcery.com>
31555         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31556         dump-fn.
31558 2016-02-22  Richard Biener  <rguenther@suse.de>
31560         PR ipa/37448
31561         * ipa-inline-transform.c (inline_call): When not updating
31562         overall summaries adjust self size by the growth estimate.
31563         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31564         hash-set, do not update overall summaries here.  Renamed from ...
31565         (inline_to_all_callers): ... this which is now wrapping the
31566         above and performing delayed overall summary update.
31567         (early_inline_small_functions): Delay updating of the overall
31568         summary.
31570 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
31572         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31573         variable.
31575 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
31577         PR driver/69805
31578         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31579         :%* in %:gt() argument.
31580         (greater_than_spec_func): Adjust for expecting only numbers,
31581         if there are more than two numbers, compare the last two.
31583 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
31585         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31586         -Wnarrowing with -std.
31588 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
31590         PR c++/69851
31591         * expr.c (store_field): Don't use bit-field path if exp is
31592         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31593         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31594         and the assignment can be performed by bitwise copy.  Formatting
31595         fix.
31597         PR middle-end/69838
31598         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31599         call copy_reg_eh_region_note_forward on before and/or after sequences
31600         and remove note from insn if it no longer can throw.
31602         PR target/69820
31603         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31604         if TARGET_AVX512BW.
31606 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31608         * config/s390/vector.md: Add missing commutative operand markers
31609         to the patterns which qualify for one.
31610         * config/s390/vx-builtins.md: Likewise.
31612 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31614         * config/s390/vector.md (VI, VI_QHS): Add single element vector
31615         types to mode iterators.
31616         (vec_double): ... and mode attribute.
31617         * config/s390/vx-builtins.md (non_vec_int): Likewise.
31619 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31621         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31622         Change the predicate of op2 from nonimmediate to general and let
31623         reload fix it if necessary.
31625 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31627         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31629 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31631         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31632         mode.
31634 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31636         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31637         * config/s390/s390.c (s390_expand_vec_movstr): New function.
31638         * config/s390/s390.md ("movstr<P:mode>"): Call
31639         s390_expand_vec_movstr.
31641 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31643         * config/s390/s390.md: Add missing output modifier for operand 1
31644         to print it as address properly.
31646 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31648         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31649         * config/s390/2964.md: New file.
31650         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31651         of insn grouping attributes depending on the CPU level.
31652         (s390_get_unit_mask): New function.
31653         (s390_sched_score): Remove the OOO from the scheduling macros.
31654         Add loop to calculate a score for the instruction mix.
31655         (s390_sched_reorder): Likewise plus improve debug output.
31656         (s390_sched_variable_issue): Rename macros as above.  Calculate
31657         the unit distances after actually scheduling an insn.  Improve
31658         debug output.
31659         (s390_sched_init): Clear last_scheduled_unit_distance array.
31660         * config/s390/s390.md: Include 2964.md.
31662 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
31664         PR target/69671
31665         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31666         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31667         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31668         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31669         *avx512f_<code>v8div16qi2_mask_1): New insns.
31671 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
31673         PR target/68404
31674         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31675         2016-02-09 change.
31677         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31678         earlyclobber from target.  Use wF constraint for fused memory
31679         address.
31680         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31682 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
31683             Martin Liska  <mliska@suse.cz>
31685         PR sanitizer/69863
31686         * cfgexpand.c (asan_sanitize_stack_p): New function.
31687         (partition_stack_vars): Use the function.
31688         (expand_stack_vars): Likewise.
31689         (defer_stack_allocation): Likewise.
31690         (expand_used_vars): Likewise.
31692 2016-02-18  Richard Biener  <rguenther@suse.de>
31694         PR middle-end/69553
31695         * fold-const.c (operand_equal_p): Properly compare offsets for
31696         IMAGPART_EXPR and ARRAY_REF.
31698 2016-02-18  Nick Clifton  <nickc@redhat.com>
31700         PR target/62254
31701         PR target/69610
31702         * config/arm/arm.c (arm_option_override_internal): Disable
31703         interworking if the target does not support thumb instructions.
31704         (arm_reload_in_hi): Handle the case where a register to register
31705         move needs reloading because there is no simple pattern to handle
31706         it.
31707         (arm_reload_out_hi): Likewise.
31709 2016-02-18  Richard Biener  <rguenther@suse.de>
31711         PR middle-end/69854
31712         * match.pd: Don't use fold_binary or fold_unary for folding
31713         constants.
31715 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
31717         PR c++/69850
31718         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31719         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31720         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31721         warn on gimple_no_warning_p statements.
31723 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
31725         * doc/extend.texi (C++ Attributes): Correct description of
31726         warn_unused type attribute.
31728 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31730         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31731         correct instruction.
31733 2016-02-17  Richard Biener  <rguenther@suse.de>
31735         PR rtl-optimization/69609
31736         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31737         (find_traces_1_round): When ending a trace update cached priority
31738         of successors.
31739         (bb_to_key): Use cached priority when available.
31740         (copy_bb): Initialize cached priority.
31741         (reorder_basic_blocks_software_trace_cache): Likewise.
31743 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31745         PR target/69161
31746         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31747         New predicate.
31748         (aarch64_comparison_operator): Break overly long line into two.
31749         (aarch64_comparison_operation): Likewise.
31750         * config/aarch64/aarch64.md (cstorecc4): Use
31751         aarch64_comparison_operator_mode instead of
31752         aarch64_comparison_operator.
31753         (cstore<mode>4): Likewise.
31754         (aarch64_cstore<mode>): Likewise.
31755         (*cstoresi_insn_uxtw): Likewise.
31756         (cstore<mode>_neg): Likewise.
31757         (*cstoresi_neg_uxtw): Likewise.
31759 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31761         PR target/69161
31762         * config/arm/predicates.md (arm_comparison_operator_mode):
31763         New predicate.
31764         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31765         instead of arm_comparison_operator.
31766         (*mov_negscc): Likewise.
31767         (*mov_notscc): Likewise.
31768         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31769         (*thumb2_mov_negscc): Likewise.
31770         (*thumb2_mov_negscc_strict_it): Likewise.
31771         (*thumb2_mov_notscc): Likewise.
31772         (*thumb2_mov_notscc_strict_it): Likewise.
31774 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
31776         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31777         Add missing return.
31779 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
31781         * config/visium/visium.c (machine_libfunc_index): New enum.
31782         (machine_libfuncs): New structure.
31783         (visium_libfuncs): New static variable.
31784         (TARGET_INIT_LIBFUNCS): Define to...
31785         (visium_init_libfuncs): ...this.  New function.
31786         (expand_block_move_4): Use the appropriate libfunc.
31787         (expand_block_move_2): Likewise.
31788         (expand_block_move_1): Likewise.
31789         (expand_block_set_4): Likewise.
31790         (expand_block_set_2): Likewise.
31791         (expand_block_set_1): Likewise.
31792         (visium_trampoline_init): Likewise.
31794 2016-02-17  Nick Clifton  <nickc@redhat.com>
31796         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31797         TI's devices.csv file as of March 2016.
31799 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
31801         PR Target/48344
31802         * opts-global.c (handle_common_deferred_options): Introduce and
31803         initialize two global variables to remember command-line options
31804         specifying a stack-limiting register.
31805         * opts.h: Add extern declarations of the two new global variables.
31806         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31807         variable based on the values of the two new global variables.
31809 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
31811         PR c/69835
31812         * common.opt (Wnonnull-compare): New warning.
31813         * doc/invoke.texi (-Wnonnull): Remove text about comparison
31814         of arguments against NULL.
31815         (-Wnonnull-compare): Document.
31816         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31817         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31818         * passes.def (pass_warn_nonnull_compare): Add.
31819         * gimple-ssa-nonnull-compare.c: New file.
31821 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
31823         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31824         AARCH64_EXTRA_TUNE_RECIP_SQRT.
31826 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
31828         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31829         reciprocal sqrt for -mlow-precision-recip-sqrt.
31831 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
31832             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31834         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31835         always use lane loads to construct non-constant vectors.
31837 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
31839         * config/aarch64/aarch64.md
31840         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31841         constraints for operand 3.
31842         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31844 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
31845             Richard Biener  <rguenther@suse.de>
31847         PR tree-optimization/69820
31848         * tree-vect-patterns.c (type_conversion_p): Return false if
31849         *orig_type is unsigned single precision or boolean.
31850         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31851         Formatting fix.
31853 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
31855         PR rtl-optimization/69764
31856         PR rtl-optimization/69771
31857         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31858         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31860 2016-02-16  Richard Biener  <rguenther@suse.de>
31862         PR tree-optimization/69776
31863         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31864         sets from caller.
31865         (indirect_refs_may_alias_p): Likewise.
31866         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31867         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31868         according to tbaa_p.
31869         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31870         (optimize_stmt): For redundant store discovery do not allow tbaa.
31872 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
31874         PR tree-optimization/69714
31875         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31876         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31878 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
31880         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31881         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31882         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31883         * config/arc/arc.c (arc_init): Check FPU options.
31884         (get_arc_condition_code): Handle new CC_FPU* modes.
31885         (arc_select_cc_mode): Likewise.
31886         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31887         register pair only. Allow access for ARCv2 accumulator.
31888         (gen_compare_reg): Whenever we have FPU support use FPU compare
31889         instructions.
31890         (arc_reorg): Don't generate brcc insns when FPU compare
31891         instructions are involved.
31892         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31893         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31894         floating point emulation.
31895         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31896         (REVERSE_CONDITION): Add new CC_FPU* modes.
31897         (TARGET_FP_SP_BASE): Define.
31898         (TARGET_FP_DP_BASE): Likewise.
31899         (TARGET_FP_SP_FUSED): Likewise.
31900         (TARGET_FP_DP_FUSED): Likewise.
31901         (TARGET_FP_SP_CONV): Likewise.
31902         (TARGET_FP_DP_CONV): Likewise.
31903         (TARGET_FP_SP_SQRT): Likewise.
31904         (TARGET_FP_DP_SQRT): Likewise.
31905         (TARGET_FP_DP_AX): Likewise.
31906         * config/arc/arc.md (ARCV2_ACC): New constant.
31907         (type): New fpu type attribute.
31908         (SDF): Conditional iterator.
31909         (cstore<mode>, cbranch<mode>): Change expand condition.
31910         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31911         handles FPU/FPX cases as well.
31912         * config/arc/arc.opt (mfpu): New option.
31913         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31914         Renamed.
31915         (adddf3, muldf3, subdf3): Removed.
31916         * config/arc/predicates.md (proper_comparison_operator): Recognize
31917         CC_FPU* modes.
31918         * config/arc/fpu.md: New file.
31919         * doc/invoke.texi (ARC Options): Document mfpu option.
31921 2016-02-16  Richard Biener  <rguenther@suse.de>
31923         PR rtl-optimization/69291
31924         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31925         noce_operand_ok check.
31927 2016-02-16  Tom de Vries  <tom@codesourcery.com>
31929         PR lto/67709
31930         * omp-low.c (simd_clone_create): Remove call to
31931         symtab->call_cgraph_insertion_hooks.
31933 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
31935         PR tree-optimization/69802
31936         * tree-ssa-reassoc.c (update_range_test): If op is
31937         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31938         op == 1 test of precision 1 integral op, otherwise handle
31939         that case as op itself.  Fix up formatting.
31940         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31941         up formatting.
31943 2016-02-16  Richard Biener  <rguenther@suse.de>
31945         PR tree-optimization/69586
31946         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31947         types for conversion sources.
31949 2016-02-16  Richard Biener  <rguenther@suse.de>
31951         PR middle-end/69801
31952         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31953         mask OEP_ADDRESS_OF.
31955 2016-02-16  Alan Modra  <amodra@gmail.com>
31957         PR target/68973
31958         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31959         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31960         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31961         (p8_mtvsrwz): New.
31962         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31963         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31964         (p8_fmrgow_<mode>): Likewise.
31965         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
31966         changes.
31967         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31968         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31969         to use movdi_internal64.  Remove op0_di.
31970         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31972 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
31974         Add support for the FCCMP insn types
31976         * config/aarch64/aarch64.md (fccmp): Change insn type.
31977         (fccmpe): Likewise.
31978         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31979         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31980         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31981         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31982         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31983         * config/arm/types.md (fccmps): Add new insn type.
31984         (fccmpd): Likewise.
31986 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31988         * alias.c (get_alias_set): Fix a typo in comment.
31990 2016-02-15  Richard Biener  <rguenther@suse.de>
31992         PR tree-optimization/69595
31993         * match.pd: Complete range test simplification to true.
31995 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
31997         PR rtl-optimization/69648
31998         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31999         pic_offset_table_rtx.
32001         PR rtl-optimization/69752
32002         * ira.c (update_equiv_regs): When looking for more than a single SET,
32003         also take other side effects into account.
32005 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
32007         * config/s390/s390.c (s390_function_profiler): Add a new sequence
32008         for z900+ CPUs in 31-bit mode.
32010 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
32012         * common/config/s390/s390-common.c (s390_supports_split_stack):
32013         New function.
32014         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
32015         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
32016         * config/s390/s390.c (struct machine_function): New field
32017         split_stack_varargs_pointer.
32018         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
32019         in s390_emit_prologue.
32020         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
32021         vararg pointer.
32022         (morestack_ref): New global.
32023         (SPLIT_STACK_AVAILABLE): New macro.
32024         (s390_expand_split_stack_prologue): New function.
32025         (s390_live_on_entry): New function.
32026         (s390_va_start): Use split-stack vararg pointer if appropriate.
32027         (s390_asm_file_end): Emit the split-stack note sections.
32028         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
32029         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
32030         (UNSPECV_SPLIT_STACK_CALL): New unspec.
32031         (UNSPECV_SPLIT_STACK_DATA): New unspec.
32032         (split_stack_prologue): New expand.
32033         (split_stack_space_check): New expand.
32034         (split_stack_data): New insn.
32035         (split_stack_call): New expand.
32036         (split_stack_call_*): New insn.
32037         (split_stack_cond_call): New expand.
32038         (split_stack_cond_call_*): New insn.
32040 2016-02-15  Richard Biener  <rguenther@suse.de>
32042         PR tree-optimization/69783
32043         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32044         Add trivially correct cases.
32046 2016-02-15  Tom de Vries  <tom@codesourcery.com>
32048         PR lto/69655
32049         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
32050         do_force_output.
32051         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
32053 2016-02-15  Richard Biener  <rguenther@suse.de>
32055         PR tree-optimization/69776
32056         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
32057         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
32058         indicate whether we can use TBAA to disambiguate against stores.
32059         Use alias-set zero if not.
32060         (visit_reference_op_store): Do not use TBAA when looking up
32061         redundant stores.
32062         * tree-ssa-pre.c (compute_avail): Use TBAA here.
32063         (eliminate_dom_walker::before_dom_children): But not when looking
32064         up redundant stores.
32066 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
32068         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
32070 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
32072         *  config/i386/znver1.md
32073         (znver1_pop, znver1_pop_mem,
32074         znver1_load_imov_double_store,
32075         znver1_load_imov_direct_store,
32076         znver1_load_imov_direct_load,
32077         znver1_load_imov_double_load): Add new.
32078         (znver1_insn, znver1_insn_load): Add icmov type.
32079         (znver1_sseavx_fma,
32080         znver1_sseavx_fma_load,
32081         znver1_avx256_fma,
32082         znver1_avx256_fma_load): Fix pipe usage.
32084 2016-02-14  Alan Modra  <amodra@gmail.com>
32086         PR target/68973
32087         * reload.c (find_reloads_address_1): For pre/post-inc/dec
32088         with an invalid hard reg, reload just the reg not the entire
32089         pre/post-inc/dec address expression.
32091 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
32093         PR target/67260
32094         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
32095         fixed R1_REG scratch reg.
32096         (sibcall_value_pcrel_fdpic): Likewise.
32098 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
32100         PR target/67636
32101         PR target/64345
32102         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
32104 2016-02-12  Walter Lee  <walt@tilera.com>
32106         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
32107         * config/tilegx/t-tilegx: Likewise.
32109 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
32111         PR other/69554
32112         * diagnostic-show-locus.c (struct line_span): New struct.
32113         (layout::get_first_line): Delete.
32114         (layout::get_last_line): Delete.
32115         (layout::get_num_line_spans): New member function.
32116         (layout::get_line_span): Likewise.
32117         (layout::print_heading_for_line_span_index_p): Likewise.
32118         (layout::get_expanded_location): Likewise.
32119         (layout::calculate_line_spans): Likewise.
32120         (layout::m_first_line): Delete.
32121         (layout::m_last_line): Delete.
32122         (layout::m_line_spans): New field.
32123         (layout::layout): Update comment.  Replace m_first_line and
32124         m_last_line with m_line_spans, replacing their initialization
32125         with a call to calculate_line_spans.
32126         (diagnostic_show_locus): When printing source lines and
32127         annotations, rather than looping over a single span
32128         of lines, instead loop over each line_span within
32129         the layout, with an inner loop over the lines within them.
32130         Call the context's start_span callback when changing line spans.
32131         * diagnostic.c (diagnostic_initialize): Initialize start_span.
32132         (diagnostic_build_prefix): Break out the building of the location
32133         part of the string into...
32134         (diagnostic_get_location_text): ...this new function, rewriting
32135         it from nested ternary expressions to a sequence of "if"
32136         statements.
32137         (default_diagnostic_start_span_fn): New function.
32138         * diagnostic.h (diagnostic_start_span_fn): New typedef.
32139         (diagnostic_context::start_span): New field.
32140         (default_diagnostic_start_span_fn): New prototype.
32142 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
32144         PR driver/69779
32145         * gcc.c (driver::finalize): Fix cleanup of "specs".
32147 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
32149         PR driver/69265
32150         PR driver/69453
32151         * gcc.c (driver::driver): Initialize m_option_suggestions.
32152         (driver::~driver): Clean up m_option_suggestions.
32153         (suggest_option): Convert to...
32154         (driver::suggest_option): ...this, and split out into
32155         driver::build_option_suggestions and find_closest_string.
32156         (driver::build_option_suggestions): New function, from
32157         first half of suggest_option.  Special-case
32158         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
32159         the sanitizer_opts array.  For options of enum types, add the
32160         various enum values to the candidate strings.
32161         (driver::handle_unrecognized_options): Remove "const".
32162         * gcc.h (driver::handle_unrecognized_options): Likewise.
32163         (driver::build_option_suggestions): New decl.
32164         (driver::suggest_option): New decl.
32165         (driver::m_option_suggestions): New field.
32166         * opts-common.c (add_misspelling_candidates): New function.
32167         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
32168         and make non-static.
32169         * opts.h (sanitizer_opts): New array decl.
32170         (add_misspelling_candidates): New function decl.
32171         * spellcheck.c (find_closest_string): New function.
32172         * spellcheck.h (find_closest_string): New function decl.
32174 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
32176         PR rtl-optimization/69764
32177         PR rtl-optimization/69771
32178         * optabs.c (expand_binop_directly): For shift_optab_p, force
32179         convert_modes with VOIDmode if xop1 has VOIDmode.
32181 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
32183         PR target/69729
32184         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
32185         to correctly determine instrumentation thunks.
32187 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
32189         PR ipa/69241
32190         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
32191         type by reference, force lhs on the call.
32193         PR ipa/68672
32194         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
32195         Compute retval and retbnd early in all cases if split_part_return_p
32196         and return_bb is not EXIT.  Remove all clobber stmts and reset
32197         all debug stmts that refer to SSA_NAMEs defined in split part,
32198         except if it is retval, in that case replace the old retval with the
32199         lhs of the call to the split part.
32201 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
32203         revert:
32204         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
32206         PR middle-end/66726
32207         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
32208         whose result is used in PHI.
32209         (maybe_optimize_range_tests): Likewise.
32210         (final_range_test_p): Likweise.
32212 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
32214         PR middle-end/66726
32215         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
32216         whose result is used in PHI.
32217         (maybe_optimize_range_tests): Likewise.
32218         (final_range_test_p): Likweise.
32220 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
32222         * cgraph.c: Spelling fixes - behaviour -> behavior and
32223         neighbour -> neighbor.
32224         * target.def: Likewise.
32225         * sel-sched.c: Likewise.
32226         * config/mips/mips.c: Likewise.
32227         * config/arc/arc.md: Likewise.
32228         * config/arm/cortex-a57.md: Likewise.
32229         * config/arm/arm.c: Likewise.
32230         * config/arm/neon.md: Likewise.
32231         * config/arm/arm-c.c: Likewise.
32232         * config/vms/vms-c.c: Likewise.
32233         * config/s390/s390.c: Likewise.
32234         * config/i386/znver1.md: Likewise.
32235         * config/i386/i386.c: Likewise.
32236         * config/ia64/hpux-unix2003.h: Likewise.
32237         * config/msp430/msp430.md: Likewise.
32238         * config/rx/rx.c: Likewise.
32239         * config/rx/rx.md: Likewise.
32240         * config/aarch64/aarch64-simd.md: Likewise.
32241         * config/aarch64/aarch64.c: Likewise.
32242         * config/nvptx/nvptx.c: Likewise.
32243         * config/bfin/bfin.c: Likewise.
32244         * config/cris/cris.opt: Likewise.
32245         * config/rs6000/rs6000.c: Likewise.
32246         * target.h: Likewise.
32247         * spellcheck.c: Likewise.
32248         * ira-build.c: Likewise.
32249         * tree-inline.c: Likewise.
32250         * builtins.c: Likewise.
32251         * lra-constraints.c: Likewise.
32252         * explow.c: Likewise.
32253         * hwint.h: Likewise.
32254         * targhooks.c: Likewise.
32255         * tree-vect-data-refs.c: Likewise.
32256         * expr.c: Likewise.
32257         * doc/tm.texi: Likewise.
32258         * doc/extend.texi: Likewise.
32259         * doc/install.texi: Likewise.
32260         * doc/md.texi: Likewise.
32261         * tree-ssa-tail-merge.c: Likewise.
32262         * sched-int.h: Likewise.
32263         * match.pd: Likewise.
32264         * sched-ebb.c: Likewise.
32265         * target.def (omit_struct_return_reg): Likewise.
32266         * gimple-ssa-isolate-paths.c: Likewise.
32267         (find_implicit_erroneous_behaviour): Renamed to...
32268         (find_implicit_erroneous_behavior): ... this.
32269         (find_explicit_erroneous_behaviour): Renamed to...
32270         (find_explicit_erroneous_behavior): ... this.
32271         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
32273 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
32275         PR rtl-optimization/64682
32276         PR rtl-optimization/69567
32277         PR rtl-optimization/69737
32278         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
32279         in I2 as well, just lose it.
32281 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32283         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
32284         New variable.
32285         (aarch64_last_printed_tune_string): Likewise.
32286         (aarch64_declare_function_name): Only output .arch assembler
32287         directive if it will be different from the previously output
32288         directive.  Same for .tune comment but only if -dA is set.
32289         (aarch64_start_file): New function.
32290         (TARGET_ASM_FILE_START): Define.
32292 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
32294         PR plugins/69758
32295         * Makefile.in (PLUGIN_HEADERS): Add params.list.
32297 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
32299         PR target/65313
32300         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
32301         -Wmaybe-uninitialized warning.
32303 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
32305         PR target/69713
32306         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
32308 2016-02-11  Richard Biener  <rguenther@suse.de>
32310         PR rtl-optimization/69291
32311         * ifcvt.c (noce_try_store_flag_constants): Do not allow
32312         subexpressions affected by changing the result.
32314 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
32316         PR target/69148
32317         * lra-constraints.c (curr_insn_transform): Find in/out operands
32318         for secondary memory moves.  Update dups.
32320 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
32322         PR tree-optimization/69652
32323         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
32324         to nested loop, did source re-formatting, skip debug statements,
32325         add check on statement with volatile operand, remove dead scalar
32326         statements.
32328 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
32329             Patrick Palka  <ppalka@gcc.gnu.org>
32331         PR ipa/69241
32332         PR c++/69649
32333         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
32334         calls if the return type is TREE_ADDRESSABLE.
32335         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
32336         * ipa-split.c (split_function): Fix doubled "we" in comment.
32337         Use void return type for the split part even if
32338         !split_point->split_part_set_retval.
32340 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
32342         PR tree-optimization/68021
32343         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
32344         when computing the value of biv cand by itself.
32346 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
32348         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
32349         (cortexa57_tunings): Likewise.
32350         (cortexa72_tunings): Likewise.
32351         (arch_macro_fusion_pair_p): Add support for AES fusion.
32352         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
32353         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
32354         Allow virtual registers before reload so early scheduling works.
32355         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
32356         correct latency and pipeline.
32357         (cortex_a57_crypto_complex): Likewise.
32358         (cortex_a57_crypto_xor): Likewise.
32359         (define_bypass): Add AES bypass.
32361 2016-02-10  Richard Biener  <rguenther@suse.de>
32363         PR tree-optimization/69726
32364         * passes.def: Add DCE pass before late uninit.
32365         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32366         really fixup if-conversions job.
32368 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
32370         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32371         (arm_cortex_a57_tune): Likewise.
32372         (aarch_macro_fusion_pair_p): Add support for AES fusion.
32373         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32375 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32377         * timevar.def (TV_PHASE_DBGINFO): Delete.
32378         (TV_PHASE_CHECK_DBGINFO): Likewise.
32379         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32381 2016-02-10  Richard Biener  <rguenther@suse.de>
32383         PR tree-optimization/69719
32384         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32385         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32387 2016-02-09  Andrew Pinski  <apinski@cavium.com>
32389         PR tree-opt/69282
32390         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32391         get_vcond_mask_icode returns false.
32393 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
32395         PR target/68404
32396         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32397         an ADDIS that adds a pointer to a large constant that sets the
32398         upper16 bits with a load operation.
32400 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
32402         PR target/68532
32403         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32404         order.
32405         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32406         endian.
32407         (vzipq_s16): Likewise.
32408         (vzipq_s32): Likewise.
32409         (vzipq_f32): Likewise.
32410         (vzipq_u8): Likewise.
32411         (vzipq_u16): Likewise.
32412         (vzipq_u32): Likewise.
32413         (vzipq_p8): Likewise.
32414         (vzipq_p16): Likewise.
32416 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
32418         PR target/68532
32419         * config/arm/arm.c (neon_endian_lane_map): New function.
32420         (neon_vector_pair_endian_lane_map): New function.
32421         (arm_evpc_neon_vuzp): Allow for big endian lane order.
32422         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32423         endian.
32424         (vuzpq_s16): Likewise.
32425         (vuzpq_s32): Likewise.
32426         (vuzpq_f32): Likewise.
32427         (vuzpq_u8): Likewise.
32428         (vuzpq_u16): Likewise.
32429         (vuzpq_u32): Likewise.
32430         (vuzpq_p8): Likewise.
32431         (vuzpq_p16): Likewise.
32433 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
32435         PR target/69634
32436         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32437         debug insns.
32439 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
32441         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32442         truncate const_int operand 1 to QImode.
32444 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
32446         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32447         corresponding to an abnormal edge.
32449 2016-02-09  Tom de Vries  <tom@codesourcery.com>
32451         PR tree-optimization/69599
32452         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32453         function.
32454         (find_func_aliases_for_builtin_call, find_func_clobbers)
32455         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
32456         partition.
32458 2016-02-09  Richard Biener  <rguenther@suse.de>
32460         PR tree-optimization/69715
32461         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32462         LHS on calls as non-rewritable.
32464 2016-02-09  Tom de Vries  <tom@codesourcery.com>
32466         PR lto/69707
32467         * lto-wrapper.c (append_diag_options): New function.
32468         (compile_offload_image): Call append_diag_options.
32470 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
32472         PR other/69722
32473         * doc/extend.texi (Flag Output Operands): Correct sectioning.
32474         Minor copy-edit to fix verb tenses.
32476 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
32478         PR tree-optimization/69209
32479         * ipa-split.c (split_function): If split part is not
32480         returning retval, retval has gimple type but is not
32481         gimple value, force it into a SSA_NAME first.
32483 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
32485         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32486         outdated section.
32488 2016-02-08  Jason Merrill  <jason@redhat.com>
32490         PR c++/69631
32491         * convert.c (convert_to_integer_1): Check dofold on truncation
32492         distribution.
32493         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32494         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32495         Rename from *_nofold.
32496         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32497         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32499 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
32501         PR target/60410
32502         * tree.c (build_common_tree_nodes): Remove short_double argument.
32503         All callers changed.
32504         * tree.h (build_common_tree_nodes): Adjust declaration.
32505         * doc/invoke.texi (-fshort-double): Remove documentation.
32506         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32507         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32508         * lto-wrapper.c (merge_and_complain, append_compiler_options)
32509         (append_linker_options): Don't handle OPT_fshort_double.
32511         PR rtl-optimization/68730
32512         * lra-remat.c (insn_to_cand_activation): New static variable.
32513         (lra_remat): Allocate and free it.
32514         (create_cand): New arg activation. Initialize a field in
32515         insn_to_cand_activation if it is nonnull.
32516         (create_cands): Pass the activation insn to create_cand when making
32517         a candidate involving an output reload.  Reorganize code a little.
32518         (do_remat): Keep track of active status of candidates in a separate
32519         bitmap.
32521 2016-02-08  Richard Biener  <rguenther@suse.de>
32523         PR tree-optimization/69719
32524         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32525         Properly use absolute of the difference of the two offsets to
32526         compare or adjust the segment length.
32528 2016-02-08  Richard Biener  <rguenther@suse.de>
32529             Jeff Law  <law@redhat.com>
32531         PR target/68273
32532         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32533         types for anonymous SSA names.
32535 2016-02-08   Richard Biener  <rguenther@suse.de>
32537         PR rtl-optimization/69274
32538         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32540 2016-02-08  Jeff Law  <law@redhat.com>
32542         PR tree-optimization/65917
32543         * tree-ssa-dom.c (record_temporary_equivalences): Record both
32544         equivalences from if (x == y) style conditionals.
32545         (loop_depth_of_name): Remove.
32546         (record_equality): Remove loop depth check.
32547         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32548         (const_and_copies::record_const_or_copy_raw): New member function.
32549         * tree-ssa-scopedtables.c
32550         (const_and_copies::record_const_or_copy_raw): New, factored out of
32551         (const_and_copies::record_const_or_copy): Call new member function.
32553 2016-02-05  Jeff Law  <law@redhat.com>
32555         PR tree-optimization/68541
32556         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32557         (count_stmts_in_block): New function.
32558         (poor_ifcvt_candidate_code): Likewise.
32559         (is_feasible_trace): Add some heuristics to determine when path
32560         splitting is profitable.
32561         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32562         is a diamond with a single exit.
32564 2016-02-05  Martin Sebor  <msebor@redhat.com>
32566         PR c++/69662
32567         * doc/invoke.texi: Update -Wplacement-new to take an optional
32568         argument.
32570 2016-02-06  Richard Henderson  <rth@redhat.com>
32572         PR c/69643
32573         * tree.c (tree_nop_conversion_p): Do not strip casts into or
32574         out of non-standard address spaces.
32576 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
32578         PR rtl-optimization/69691
32579         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32581 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
32583         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32584         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32585         (*ieee128_mfvsrd_64bit): Likewise.
32586         (*ieee128_mfvsrd_32bit): Likewise.
32588 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
32590         PR target/69369
32591         Revert r232560:
32592         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
32594         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32595         instrumented_version.
32597 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
32599         * doc/invoke.texi (Optimize Options): In table of --param options
32600         rename second occurrence of tracer-min-branch-ratio to
32601         tracer-min-branch-probability, rename
32602         tracer-min-branch-ratio-feedback to
32603         tracer-min-branch-probability-feedback and clarify description,
32604         rename sched-spec-state-edge-prob-cutoff to
32605         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32606         to selsched-insns-to-rename, rename lto-minpartition to
32607         lto-min-partition, delete reorder-blocks-duplicate and
32608         reorder-blocks-duplicate-feedback.
32610 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32612         * config/s390/s390.c (s390_register_info_set_ranges): Remove
32613         superfluous loops.
32615 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32617         * doc/extend.texi: S/390: Correct some typos.
32619 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32621         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32623 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32625         PR target/69625
32626         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32627         (s390_register_info_gprtofpr): Use new macros above.
32628         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32629         its name.
32630         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32631         its name.  Adjust restore and save gpr ranges.
32632         (s390_register_info_set_ranges): New function.
32633         (s390_register_info): Use new macros above.  Call
32634         s390_register_info_set_ranges.
32635         (s390_optimize_register_info): Likewise.
32636         (s390_hard_regno_rename_ok): Use new macros.
32637         (s390_hard_regno_scratch_ok): Likewise.
32638         (s390_emit_epilogue): Likewise.
32639         (s390_can_use_return_insn): Likewise.
32640         (s390_optimize_prologue): Likewise.
32641         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32643 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
32645         PR bootstrap/69677
32646         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32647         alignment fixes.
32648         (ix86_option_override_internal): Disable TARGET_STV even for
32649         -m{incoming,preferred}-stack-boundary=3.
32651 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32653         * config.gcc: Mark deprecated rtems targets as obsolete.
32655 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
32657         PR rtl-optimization/64682
32658         PR rtl-optimization/69567
32659         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32660         before I2 only if the register is both used and set in I2.
32662 2016-02-04  DJ Delorie  <dj@redhat.com>
32664         * config/msp430/msp430.c (msp430_start_function): Add function type.
32666 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
32668         PR fortran/69368
32669         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32671 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
32673         PR rtl-optimization/69577
32674         Revert:
32675         2015-10-29  Richard Henderson  <rth@redhat.com>
32677         PR target/68124
32678         PR rtl-opt/67609
32679         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32680         sse check to the exact conditions of PR 67609.
32682 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
32684         PR target/69667
32685         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32686         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32687         not allowed into the traditional Altivec registers.
32688         (movtd_64bit_nodm): Likewise.
32689         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32691 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
32693         * config/aarch64/cortex-a57-fma-steering.c
32694         (aarch64_register_fma_steering): Remove "static" from arguments
32695         to register_pass.
32697 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
32699         PR target/69619
32700         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32701         twice when complex.
32703 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
32705         * doc/invoke.texi: Delete -mno-fma4.
32707 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
32709         PR rtl-optimization/69577
32710         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32711         (find_subregs_of_mode): Update accordingly.  Iterate over partial
32712         definitions.
32714 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
32716         * config/arm/arm-protos.h (neon_reinterpret): Remove.
32717         * config/arm/arm.c (neon_reinterpret): Remove.
32718         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32719         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32720         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32721         vreinterpretti): Remove.
32722         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32723         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32724         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32725         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32726         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32727         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32728         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32729         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32730         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32731         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32732         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32733         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32734         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32735         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32736         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32737         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32738         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32739         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32740         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32741         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32742         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32743         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32744         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32745         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32746         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32747         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32748         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32749         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32750         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32751         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32752         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32753         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32754         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32755         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32756         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32757         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32758         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32759         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32760         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32761         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32762         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32763         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32764         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32765         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32766         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32767         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32768         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32769         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32770         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32771         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32772         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32773         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32774         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32775         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32776         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32777         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32778         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32779         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32780         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32781         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32782         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32783         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32784         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32785         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32786         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32787         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32788         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32789         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32790         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32791         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32792         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32793         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32794         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32795         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32796         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32797         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32798         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32799         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32800         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32801         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32802         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32803         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32804         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32805         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32806         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32807         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32808         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32809         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32810         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32811         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32812         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32813         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32814         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32815         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32816         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32817         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32818         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32819         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32820         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32821         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32822         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32823         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32824         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32826 2016-02-04  Martin Liska  <mliska@suse.cz>
32828         PR sanitizer/69276
32829         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32830         that are gimple_store_p.
32831         (maybe_instrument_call): Likewise.
32833 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
32835         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32836         register scaling out of memory reference and comment why.
32838 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32840         PR target/65932
32841         PR target/67714
32842         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32843         folding the source of a SET.
32845 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32847         PR target/65932
32848         PR target/67714
32849         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32850         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32852 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
32854         PR target/65932
32855         PR target/67714
32856         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32857         HImode.
32859 2016-02-04  Christian Bruel  <christian.bruel@st.com>
32861         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32862         * config/arm/arm.c (arm_set_current_function): Likewise.
32864 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
32865             Ilya Enkovich  <enkovich.gnu@gmail.com>
32866             H.J. Lu  <hongjiu.lu@intel.com>
32868         PR target/69454
32869         * config/i386/i386.c (convert_scalars_to_vector): Remove
32870         stack alignment fixes.
32871         (ix86_option_override_internal): Disable TARGET_STV if stack
32872         might not be aligned enough.
32873         (ix86_minimum_alignment): Assert that TARGET_STV is false.
32875 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
32877         * config/i386/x86-tune.def: Disable default prefetching
32878         for -march=znver1.
32880 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
32881             Vladimir Makarov  <vmakarov@redhat.com>
32883         PR target/69461
32884         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32885         in validating fused toc addresses.
32887 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
32889         PR c/69627
32890         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32891         range->m_caret fields if range->m_show_caret_p is false.
32893         PR target/69644
32894         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32895         Force oldval into register if it does not satisfy reg_or_short_operand
32896         predicate.  Fix up formatting.
32898 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
32899             Alexandre Oliva  <aoliva@redhat.com>
32901         PR target/69461
32902         * lra-constraints.c (simplify_operand_subreg): Check additionally
32903         address validity after potential reloading.
32904         (process_address_1): Check insns validity.  In case of failure do
32905         nothing.
32907 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
32909         PR target/69118
32910         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32911         Fix target.
32913 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
32915         * wide-int.cc (canonize_uhwi): New function.
32916         (wi::divmod_internal): Use it.
32918 2016-02-02  James Norris  <jnorris@codesourcery.com>
32920         * gimplify.c (omp_notice_variable): Add usage check.
32922 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
32924         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32925         like LE, GE, LT, GT when emitting relational operator.
32927 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
32929         * ira-costs.c (find_costs_and_classes): Add extra argument.
32930         * target.def (ira_change_pseudo_allocno_class): Add parameter.
32931         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32932         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32933         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32934         Add best_class parameter, and return it if not ALL_REGS.
32935         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32936         Add parameter.
32937         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32938         Update target hook.
32940 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
32942         * config/aarch64/aarch64.c
32943         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32944         (aarch64_ira_change_pseudo_allocno_class): New function.
32946 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
32948         PR target/67032
32949         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32951 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32953         * config/avr/avr.c (avr_option_override): Set
32954         PARAM_ALLOW_STORE_DATA_RACES to 1.
32956 2016-02-02  Richard Biener  <rguenther@suse.de>
32958         PR tree-optimization/69595
32959         * match.pd: Add range test simplifications to true/false.
32961 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
32963         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32964         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32965         instead.
32967 2016-02-02  Richard Biener  <rguenther@suse.de>
32969         PR tree-optimization/69606
32970         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32971         info on the result before moving a stmt.
32973 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
32975         PR middle-end/68542
32976         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32977         branch with vector comparison.
32978         * config/i386/sse.md (VI48_AVX): New mode iterator.
32979         (define_expand "cbranch<mode>4): Add support for conditional branch
32980         with vector comparison.
32981         * tree-vect-loop.c (optimize_mask_stores): New function.
32982         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32983         has_mask_store field of vect_info.
32984         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32985         vectorized loops having masked stores after vec_info destroy.
32986         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32987         correspondent macros.
32988         (optimize_mask_stores): Add prototype.
32990 2016-02-02  Alan Modra  <amodra@gmail.com>
32992         PR target/69548
32993         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32994         allow subregs.
32996 2016-02-02  Alan Modra  <amodra@gmail.com>
32998         PR target/68662
32999         * config/rs6000/rs6000.c (need_toc_init): New var, set it
33000         whenever toc_label_name used.
33001         (rs6000_file_start): Don't set up toc section here,
33002         (rs6000_output_function_epilogue): do so here instead,
33003         (rs6000_xcoff_file_start): and here.
33004         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
33005         (load_toc_aix_di): Likewise.
33007 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
33009         PR rtl-optimization/69592
33010         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
33011         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
33012         (num_sign_bit_copies_binary_arith_p): New inline function.
33013         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
33015 2016-02-01  Jeff Law  <law@redhat.com>
33017         PR tree-optimization/69580
33018         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
33019         * tree-ssa-threadbackward.c
33020         (fsm_find_control_statement_thread_paths): Do not try to walk
33021         through large PHI nodes.
33023 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
33025         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
33026         when count is incremented above limit, don't analyze further
33027         insns afterwards.
33029         * omp-low.c (oacc_parse_default_dims): Avoid
33030         -Wsign-compare warning, make sure value fits into int
33031         rather than just unsigned int.
33033 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
33035         PR tree-optimization/67921
33036         * fold-const.c (split_tree): New parameters.  Convert pointer
33037         type variable part to proper type before negating.
33038         (fold_binary_loc): Pass new arguments to split_tree.
33040 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
33042         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
33043         (nvptx_goacc_validate_dims): Extend to handle global defaults.
33044         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
33045         * doc/tm.texti: Rebuilt.
33046         * doc/invoke.texi (fopenacc-dim): Document.
33047         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
33048         (append_compiler_options): Likewise.
33049         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
33050         (oacc_parse_default_dims): New.
33051         (oacc_validate_dims): Add USED arg.  Select non-unity default when
33052         possible.
33053         (oacc_loop_fixed_partitions): Return mask of used partitions.
33054         (oacc_loop_auto_partitions): Emit dump info.
33055         (oacc_loop_partition): Return mask of used partitions.
33056         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
33057         loop partitioning and validation calls.
33059 2016-02-01  Richard Biener  <rguenther@suse.de>
33061         PR middle-end/69556
33062         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
33064 2016-02-01  Richard Biener  <rguenther@suse.de>
33066         PR tree-optimization/69574
33067         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
33068         of asserting return chrec_dont_know.
33070 2016-02-01  Martin Liska  <mliska@suse.cz>
33072         * mem-stats-traits.h: Add copyright header.
33073         * mem-stats.h: Likewise.
33075 2016-02-01  Richard Biener  <rguenther@suse.de>
33077         PR tree-optimization/69579
33078         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
33079         Do not propagate through abnormal PHI results.
33081 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
33083         * postreload.c (reload_cse_simplify): Remove dead code.
33085 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
33087         PR rtl-optimization/69570
33088         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
33089         if there is more than one set, not if there is a single set.
33091 2016-02-01  Richard Henderson  <rth@redhat.com>
33093         PR rtl-opt/69535
33094         * combine.c (make_compound_operation): When looking through a
33095         subreg, make sure to re-extend to the width of the outer mode.
33097 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
33099         PR tree-optimization/69546
33100         * wide-int.cc (wi::divmod_internal): For unsigned division
33101         where both operands fit into uhwi, if o1 is 1 and o0 has
33102         msb set, if divident_prec is larger than bits per hwi,
33103         clear another quotient word and return 2 instead of 1.
33104         Similarly for remainder with msb in HWI set, if dividend_prec
33105         is larger than bits per hwi.
33107 2016-01-29  Martin Jambor  <mjambor@suse.cz>
33109         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
33110         Use short lowercase names.
33111         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
33112         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
33113         acq_rel one.  Protect warning agains segfaults if
33114         get_memory_order_name returns NULL.
33115         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
33116         with release semantics.  Do not warn if get_memory_order already did.
33117         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
33118         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
33119         if get_memory_order already did.
33121 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
33123         * doc/install.texi: Document that isl-0.16 is supported.
33125 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
33127         PR target/69299
33128         * config/i386/constraints.md (Bm): Describe as special memory
33129         constraint.
33130         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
33131         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
33132         * genpreds.c (struct constraint_data): Add is_special_memory.
33133         (have_special_memory_constraints, special_memory_start): New
33134         static vars.
33135         (special_memory_end): Ditto.
33136         (add_constraint): Add new arg is_special_memory.  Add code to
33137         process its true value.  Update have_special_memory_constraints.
33138         (process_define_constraint): Pass the new arg.
33139         (process_define_register_constraint): Ditto.
33140         (choose_enum_order): Process special memory.
33141         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
33142         function insn_extra_special_memory_constraint.
33143         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
33144         * gensupport.c (process_rtx): Process
33145         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
33146         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
33147         * ira-lives.c (single_reg_class): Use
33148         insn_extra_special_memory_constraint.
33149         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
33150         * lra-constraints.c (process_alt_operands): Ditto.
33151         (curr_insn_transform): Use insn_extra_special_memory_constraint.
33152         * recog.c (asm_operand_ok, preprocess_constraints): Process
33153         CT_SPECIAL_MEMORY.
33154         * reload.c (find_reloads): Ditto.
33155         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
33156         * stmt.c (parse_input_constraint): Use
33157         insn_extra_special_memory_constraint.
33159 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
33161         PR target/69530
33162         * lra-splill.c (lra_final_code_change): Revert r229087 by
33163         removing all sub-registers.
33165 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
33167         PR target/65604
33168         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
33170 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
33172         PR target/69551
33173         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
33174         SSE1, copy target into the temporary reg first before recursing
33175         on it.
33177 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
33179         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
33180         with vm.
33182 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
33184         * ginclude/stdarg.h: Test __cplusplus instead of
33185         __GXX_EXPERIMENTAL_CXX0X__.
33187 2016-01-29  Richard Biener  <rguenther@suse.de>
33189         PR tree-optimization/69547
33190         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
33191         Do not mark clobbers necessary.
33192         (mark_all_reaching_defs_necessary_1): Likewise.
33194 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33196         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
33197         declaration name with %qs and print it in both error messages.
33198         Also fix indentation.
33200 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33202         PR other/69006
33203         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
33204         trailing blank line from error message.
33206 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
33208         PR c++/69462
33209         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
33210         for C++-11.
33212 2016-01-29  Richard Biener  <rguenther@suse.de>
33214         PR middle-end/69537
33215         * match.pd: Allow all integral types when simplifying a
33216         widening or sign-changing conversion.
33218 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
33220         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
33221         back to setting codegen_error to fail codegen.
33223 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
33225         PR target/69459
33226         * config/i386/constraints.md (C): Only accept constant zero operand.
33227         (BC): New constraint.
33228         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
33229         instead of C constraint.
33230         * doc/md.texi (Machine Constraints): Update description
33231         of C constraint.
33233 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
33235         PR target/68400
33236         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
33238 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
33240         PR middle-end/69542
33241         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
33242         non-debug insns.
33244 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
33246         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
33247         branches if using guessed profile.
33249 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
33251         * graphite-optimize-isl.c (optimize_isl): Fix dump.
33253 2016-01-28  Richard Henderson  <rth@redhat.com>
33255         PR target/69305
33256         * config/aarch64/aarch64-modes.def (CC_Cmode): New
33257         * config/aarch64/aarch64-protos.h: Update.
33258         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
33259         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
33260         (aarch64_get_condition_code_1): Handle CC_Cmode.
33261         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
33262         (*add<mode>3_compareC_cconly_imm): New.
33263         (*add<mode>3_compareC_cconly): New.
33264         (*add<mode>3_compareC_imm): New.
33265         (add<mode>3_compareC): New.
33266         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
33267         to be first.  Use aarch64_carry_operation.
33268         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
33269         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
33270         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
33271         (subti3): Use subdi3_compare1.
33272         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
33273         (sub<mode>3_compare1): New.
33274         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
33275         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
33276         (*subsi3_carryin_uxtw): Likewise.
33277         (*ngc<mode>, *ngcsi_uxtw): Likewise.
33278         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
33279         * config/aarch64/iterators.md (DWI): New.
33280         * config/aarch64/predicates.md (aarch64_carry_operation): New.
33281         (aarch64_borrow_operation): New.
33283 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
33285         * graphite-optimize-isl.c (optimize_isl): Print a different debug
33286         message when isl does not return a valid schedule.
33288 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
33290         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
33291         Remove comments from class declarations: they are already in the code
33292         close by the defs.
33294 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
33296         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
33297         codegen_error_p.
33298         (ternary_op_to_tree): Same.
33299         (unary_op_to_tree): Same.
33300         (nary_op_to_tree): Same.
33301         (gcc_expression_from_isl_expr_op): Same.
33302         (gcc_expression_from_isl_expression): Same.
33303         (graphite_create_new_loop): Same.
33304         (graphite_create_new_loop_guard): Same.
33305         (build_iv_mapping): Same.
33306         (graphite_create_new_guard): Same.
33307         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
33308         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
33310 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
33312         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
33313         instead of setting codegen_error to fail codegen.
33315 2016-01-28  Jason Merrill  <jason@redhat.com>
33317         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
33319 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
33321         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33322         Remove CONST_INT_P check in CCMP cost calculation.
33324 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
33326         * config/aarch64/aarch64.c (generic_vector_cost):
33327         Set vec_permute_cost.
33328         (cortexa57_vector_cost): Likewise.
33329         (exynosm1_vector_cost): Likewise.
33330         (xgene1_vector_cost): Likewise.
33331         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
33332         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
33333         Add vec_permute_cost entry.
33335 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
33337         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
33338         immediate as %1.
33339         (add<mode>3_compare0): Likewise.
33340         (addsi3_compare0_uxtw): Likewise.
33341         (add<mode>3nr_compare0): Likewise.
33342         (compare_neg<mode>): Likewise.
33343         (<optab><mode>3): Likewise.
33345 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
33347         * tree-vect-stmts.c (vectorizable_comparison): Add
33348         NULL check for vectype.
33350 2016-01-28  Richard Biener  <rguenther@suse.de>
33352         PR tree-optimization/69466
33353         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
33354         Account for PHIs we couldn't duplicate.
33356 2016-01-28  Martin Liska  <mliska@suse.cz>
33358         PR pch/68758
33359         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
33360         instead of ENABLE_VALGRIND_CHECKING.
33362 2016-01-27  Richard Henderson  <rth@redhat.com>
33364         PR rtl-opt/69447
33365         * lra-remat.c (subreg_regs): New.
33366         (dump_candidates_and_remat_bb_data): Dump it.
33367         (operand_to_remat): Reject if operand in subreg_regs.
33368         (set_bb_regs): Collect subreg_regs.
33369         (lra_remat): Init and free subreg_regs.  Compute
33370         calculate_local_reg_remat_bb_data before create_cands.
33372 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
33374         PR target/68986
33375         * config/i386/i386.c (ix86_update_stack_boundary): Don't
33376         change stack_alignment_needed for __tls_get_addr call.
33378 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
33380         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33382 2016-01-27  Jeff Law  <law@redhat.com>
33384         PR tree-optimization/68398
33385         PR tree-optimization/69196
33386         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33387         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33388         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33389         Only count PHIs in the last block in the path.  The others will
33390         const/copy propagate away.  Add heuristic to allow more irreducible
33391         subloops to be created when it is likely profitable to do so.
33393         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33394         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
33395         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
33397 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
33399         PR lto/69254
33400         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33401         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33402         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33403         * tree-streamer-in.c: Include asan.h.
33404         (streamer_get_builtin_tree): For builtins in sanitizer
33405         range call initialize_sanitizer_builtins and retry.
33407 2016-01-27  Ian Lance Taylor  <iant@google.com>
33409         * common.opt (fkeep-gc-roots-live): New undocumented option.
33410         * tree-ssa-loop-ivopts.c (add_candidate_1): If
33411         -fkeep-gc-roots-live, skip pointers.
33412         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33413         NULL.
33415 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
33417         PR target/69512
33418         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33419         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33421 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
33423         PR target/68380
33424         * configure.ac: NetBSD provides SSP in its C library.
33425         * configure: Updated.
33427 2016-01-27  Richard Biener  <rguenther@suse.de>
33429         PR tree-optimization/69166
33430         * tree-vect-loop.c (vect_is_simple_reduction): Always check
33431         reduction code for commutativity / associativity.
33433 2016-01-27  Martin Jambor  <mjambor@suse.cz>
33435         PR tree-optimization/69355
33436         * tree-sra.c (analyze_access_subtree): Correct hole detection when
33437         total_scalarization fails.
33439 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
33441         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33442         power9.
33444 2016-01-27  Christian Bruel  <christian.bruel@st.com>
33446         PR target/69245
33447         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33448         Move arm_reset_previous_fndecl and set_target_option_current_node in
33449         the conditional part.  Call save_restore_target_globals.
33450         * config/arm/arm.c (arm_set_current_function):
33451         Refactor to better support #pragma target and attribute mix.
33452         Call save_restore_target_globals.
33453         * config/arm/arm-protos.h (save_restore_target_globals): New function.
33455 2016-01-27  Martin Liska  <mliska@suse.cz>
33457         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33458         reference for an HSA kernel and its host function.
33460 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
33462         PR tree-optimization/69399
33463         * wide-int.h (wi::lrshift): For larger precisions, only
33464         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33466 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
33468         * config/arc/predicates.md (proper_comparison_operator): Reject
33469         constant-constant comparison.
33471 2016-01-26  Tom de Vries  <tom@codesourcery.com>
33473         PR tree-optimization/69110
33474         * tree-data-ref.c (initialize_data_dependence_relation): Handle
33475         DR_NUM_DIMENSIONS == 0.
33477 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
33478             Sebastian Pop  <s.pop@samsung.com>
33480         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33481         isl_ast_op_cond and isl_ast_op_select.
33482         (gcc_expression_from_isl_expr_op): Same.
33484 2016-01-26  Jason Merrill  <jason@redhat.com>
33486         PR c++/68782
33487         * tree.c (recompute_constructor_flags): Split out from
33488         build_constructor.
33489         (verify_constructor_flags): New.
33490         * tree.h: Declare them.
33492 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
33494         PR rtl-optimization/69217
33495         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33496         are no TYPE_FIELDS set for the record type.
33498 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
33500         PR target/68662
33501         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33502         toc_label_name unconditionally.
33503         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33504         SYMBOL_REF string.  Use toc_label_name instead of constructing
33505         LCTOC1.
33506         (rs6000_elf_declare_function_name): Use toc_label_name instead of
33507         constructing LCTOC1.
33509 2016-01-26  Martin Sebor  <msebor@redhat.com>
33511         PR other/69477
33512         * doc/extend.texi (Common Type Attributes): Move text that talks about
33513         attribute packed from attribute aligned to the section discussing
33514         the former attribute for clarity.
33516 2016-01-26  Richard Henderson  <rth@redhat.com>
33518         PR middle-end/60908
33519         * trans-mem.c (tm_region_init): Mark entry block as visited.
33521 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
33523         PR other/69006
33524         * diagnostic-show-locus.c (layout::print_source_line): Replace
33525         call to pp_newline with call to layout::print_newline.
33526         (layout::print_annotation_line): Likewise.
33527         (layout::move_to_column): Likewise.
33528         (layout::print_any_fixits): After printing any fixits, print a
33529         trailing newline, if necessary.
33530         (layout::print_newline): New method, resetting any colorization
33531         before a newline.
33532         (diagnostic_show_locus): Move the pp_newline to before the
33533         early bailout.  Remove dummy block enclosing the layout instance.
33534         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33535         of pp_newline_and_flush with pp_flush.
33536         (diagnostic_append_note): Delete use of pp_newline.
33537         (diagnostic_append_note_at_rich_loc): Delete.
33538         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33539         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33540         when newline characters are added to the buffer.
33542 2016-01-26  Michael Matz  <matz@suse.de>
33544         * configure.ac (ac_cv_std_swap_in_utility): New test.
33545         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33546         * configure: Regenerate.
33547         * config.in: Regenerate.
33549 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
33551         * config/arc/arc.md (cstoresi4): Force operand into register.
33552         (arcset<code>): Fix predicate.
33553         (arcsetltu): Likewise.
33554         (arcsetgeu): Likewise.
33555         (arcsethi): Likewise.
33556         (arcsetls): Likewise.
33558 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
33560         PR tree-optimization/69483
33561         * gimple-fold.c (canonicalize_constructor_val): Return NULL
33562         if base has error_mark_node type.
33564 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
33566         PR target/68620
33567         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33568         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33569         New helper macros.
33570         (vget_lane_f16): Handle big-endian.
33571         (vgetq_lane_f16): Likewise.
33572         (vset_lane_f16): Likewise.
33573         (vsetq_lane_f16): Likewise.
33574         * config/arm/iterators.md (VQXMOV): Add V8HF.
33575         (VDQ): Add V4HF and V8HF.
33576         (V_reg): Handle V4HF and V8HF.
33577         (Is_float_mode): Likewise.
33578         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33579         neon_vdup_nv8hf): New patterns.
33580         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33581         Use VD_LANE iterator.
33582         (neon_vld1_dup<mode>): Use VQ2 iterator.
33584 2016-01-26  Nathan Sidwell  <nathan@acm.org>
33586         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33587         (set_oacc_fn_attrib): Add IS_KERNEL arg.
33588         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33589         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33590         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33591         (oacc_validate_dims): Add LEVEL arg, don't return level.
33592         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33593         oacc_validate_dims.
33594         (execute_oacc_device_lower): Adjust, add more dump output.
33595         * tree-ssa-loop.c (gate_oacc_kernels): Use
33596         oacc_fn_attrib_kernels_p.
33597         * tree-parloops.c (create_parallel_loop): Adjust
33598         set_oacc_fn_attrib call.
33600 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
33602         PR lto/69254
33603         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33604         (append_compiler_options): Handle -fcilkplus.
33605         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33607 2016-01-26  Nick Clifton  <nickc@redhat.com>
33609         PR target/66655
33610         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33611         been marked as DECL_ONE_ONLY but we do not the means to make it
33612         so, then do not allow it to bind locally.
33614 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
33616         PR lto/69254
33617         * opts.h (parse_sanitizer_options): New prototype.
33618         * opts.c (sanitizer_opts): New array.
33619         (parse_sanitizer_options): New function.
33620         (common_handle_option): Use parse_sanitizer_options.
33622 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
33624         PR target/68986
33625         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33626         alignment adjustment to ...
33627         (ix86_update_stack_boundary): Here.  Don't over-align stack for
33628         __tls_get_addr.
33629         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33630         if __tls_get_addr is called.
33632 2016-01-26  Christian Bruel  <christian.bruel@st.com>
33634         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33636 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
33638         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33640 2016-01-26  Richard Biener  <rguenther@suse.de>
33642         PR middle-end/69467
33643         * match.pd: Guard X * CST CMP 0 pattern with single_use.
33645 2016-01-26  Richard Biener  <rguenther@suse.de>
33647         PR tree-optimization/69452
33648         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33649         (move_computations_dom_walker::before_dom_children): Rename
33650         to ...
33651         (move_computations_worker): This.
33652         (move_computations): Perform an RPO rather than a DOM walk.
33654 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
33656         PR target/69442
33657         * combine.c (combine_instructions): For REG_EQUAL note with
33658         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33659         to the underlying register.
33660         * doc/rtl.texi (REG_EQUAL): Document the behavior of
33661         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33663 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
33665         PR target/67896
33666         * config/aarch64/aarch64-builtins.c
33667         (aarch64_init_simd_builtin_types): Do not set structural
33668         equality to __Poly{8,16,64,128}_t types.
33670 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
33672         PR tree-optimization/69400
33673         * wide-int.cc (wi_pack): Take the precision as argument and
33674         perform canonicalization here rather than in the callers.
33675         Use the main loop to handle all full-width HWIs.  Add a
33676         zero HWI if in_len isn't a full result.
33677         (wi::divmod_internal): Update accordingly.
33678         (wi::mul_internal): Likewise.  Simplify.
33680 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
33681             Sebastian Pop  <s.pop@samsung.com>
33683         * graphite-poly.c (apply_poly_transforms): Simplify.
33684         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33685         (print_isl_map): Same.
33686         (print_isl_union_map): Same.
33687         (print_isl_schedule): New.
33688         (debug_isl_schedule): New.
33689         * graphite-dependences.c (scop_get_reads): Do not call
33690         isl_union_map_add_map that is undocumented isl functionality.
33691         (scop_get_must_writes): Same.
33692         (scop_get_may_writes): Same.
33693         (scop_get_original_schedule): Remove.
33694         (scop_get_dependences): Do not call isl_union_map_compute_flow that
33695         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
33696         (compute_deps): Remove.
33697         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33698         (debug_schedule_ast): New.
33699         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33700         set_separate_option.
33701         (graphite_regenerate_ast_isl): Add dump.
33702         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33703         from scop->transformed_schedule.
33704         (graphite_regenerate_ast_isl): Add more dump.
33705         * graphite-optimize-isl.c (optimize_isl): Set
33706         scop->transformed_schedule.  Check whether schedules are equal.
33707         (apply_poly_transforms): Move here.
33708         * graphite-poly.c (apply_poly_transforms): ... from here.
33709         (free_poly_bb): Static.
33710         (free_scop): Static.
33711         (pbb_number_of_iterations_at_time): Remove.
33712         (print_isl_ast): New.
33713         (debug_isl_ast): New.
33714         (debug_scop_pbb): New.
33715         * graphite-scop-detection.c (print_edge): Move.
33716         (print_sese): Move.
33717         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33718         (build_scop_scattering): Remove.
33719         (create_pw_aff_from_tree): Assert instead of bailing out.
33720         (add_condition_to_pbb): Remove unused code, do not fail.
33721         (add_conditions_to_domain): Same.
33722         (add_conditions_to_constraints): Remove.
33723         (build_scop_context): New.
33724         (add_iter_domain_dimension): New.
33725         (build_iteration_domains): Initialize pbb->iterators.
33726         Call add_conditions_to_domain.
33727         (nested_in): New.
33728         (loop_at): New.
33729         (index_outermost_in_loop): New.
33730         (index_pbb_in_loop): New.
33731         (outermost_pbb_in): New.
33732         (add_in_sequence): New.
33733         (add_outer_projection): New.
33734         (outer_projection_mupa): New.
33735         (add_loop_schedule): New.
33736         (build_schedule_pbb): New.
33737         (build_schedule_loop): New.
33738         (embed_in_surrounding_loops): New.
33739         (build_schedule_loop_nest): New.
33740         (build_original_schedule): New.
33741         (build_poly_scop): Call build_original_schedule.
33742         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33743         (free_poly_dr): Remove.
33744         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
33745         (free_poly_bb): Remove.
33746         (debug_loop_vec): Remove.
33747         (print_isl_ast): Declare.
33748         (debug_isl_ast): Declare.
33749         (scop_do_interchange): Remove.
33750         (scop_do_strip_mine): Remove.
33751         (scop_do_block): Remove.
33752         (flatten_all_loops): Remove.
33753         (optimize_isl): Remove.
33754         (pbb_number_of_iterations_at_time): Remove.
33755         (debug_scop_pbb): Declare.
33756         (print_schedule_ast): Declare.
33757         (debug_schedule_ast): Declare.
33758         (struct scop): Remove schedule.  Add original_schedule,
33759         transformed_schedule.
33760         (free_gimple_poly_bb): Remove.
33761         (print_generated_program): Remove.
33762         (debug_generated_program): Remove.
33763         (unify_scattering_dimensions): Remove.
33764         * sese.c (print_edge): ... here.
33765         (print_sese): ... here.
33766         (debug_edge): ... here.
33767         (debug_sese): ... here.
33768         * sese.h (print_edge): Declare.
33769         (print_sese): Declare.
33770         (dump_edge): Declare.
33771         (dump_sese): Declare.
33773 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
33774             Sebastian Pop  <s.pop@samsung.com>
33776         * Makefile.in: Set ISLVER in site.exp.
33778 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
33780         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33781         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
33782         through DECL_VALUE_EXPR for expansion.
33784 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33786         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33787         the frame info after reload completed.
33789 2016-01-25  Jeff Law  <law@redhat.com>
33791         PR tree-optimization/69196
33792         PR tree-optimization/68398
33793         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33794         tree-ssa-threadupdate.c.
33795         (determine_bb_domination_status): Prototype
33796         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33797         (determine_bb_domination_status): No longer static.
33798         (valid_jump_thread_path): Remove code to detect characteristics
33799         of the jump thread path not associated with correctness.
33800         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33801         Correct test for thread path length.  Count PHIs for real operands as
33802         statements that need to be copied.  Do not count ASSERT_EXPRs.
33803         Look at all the blocks in the thread path.  Compute and selectively
33804         filter thread paths based on threading through the latch, threading
33805         a multiway branch or crossing a multiway branch.
33807 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33809         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
33810         decl with __attribute__ ((unused)) annotation.
33812 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
33814         PR target/69421
33815         * tree-vect-stmts.c (vectorizable_condition): Check vectype
33816         of operands is compatible with a statement vectype.
33818 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
33820         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33821         improve wording for mixed storage order support.
33823 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
33825         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33826         (vcvt_u64_f64): Likewise.
33827         (vcvta_s64_f64): Likewise.
33828         (vcvta_u64_f64): Likewise.
33829         (vcvtm_s64_f64): Likewise.
33830         (vcvtm_u64_f64): Likewise.
33831         (vcvtn_s64_f64): Likewise.
33832         (vcvtn_u64_f64): Likewise.
33833         (vcvtp_s64_f64): Likewise.
33834         (vcvtp_u64_f64): Likewise.
33836 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
33838         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33839         (arc_init): Check validity mll64 option.
33840         (arc_save_restore): Use double load/store instruction.
33841         (arc_expand_movmem): Likewise.
33842         (arc_split_move): Don't split if we have double load/store
33843         instructions. Returns a boolean.
33844         (arc_process_double_reg_moves): Change function to return boolean
33845         instead of a sequence of instructions.
33846         (arc_dwarf_register_span): New function.
33847         * config/arc/arc-protos.h (arc_split_move): Change prototype.
33848         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33849         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33850         (*movdf_insn): Likewise.
33851         * config/arc/arc.opt (mll64): New option.
33852         * config/arc/predicates.md (even_register_operand): New predicate.
33853         * doc/invoke.texi (ARC Options): Add mll64 documentation.
33855 2016-01-25  Richard Biener  <rguenther@suse.de>
33857         PR lto/69393
33858         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33859         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33860         DECL_NAMELESS.
33861         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33863 2016-01-25  Richard Biener  <rguenther@suse.de>
33865         PR tree-optimization/69376
33866         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33867         flag.
33868         (VN_INFO_ANTI_RANGE_P): New inline.
33869         (VN_INFO_RANGE_TYPE): Likewise.
33870         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33871         SSA_NAME_ANTI_RANGE_P.
33872         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33873         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33874         Properly query VN_INFO_RANGE_TYPE.
33876 2016-01-25  Nick Clifton  <nickc@redhat.com>
33878         PR target/66655
33879         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33881 2016-01-23  Tom de Vries  <tom@codesourcery.com>
33883         PR tree-optimization/69426
33884         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33885         removed clobber.
33887 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
33889         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33890         "the the" with "the" in the comments.
33891         * ipa-devirt.c (build_type_inheritance_graph,
33892         update_type_inheritance_graph): Likewise.
33893         * tree.c (build_function_type_list_1): Likewise.
33894         * cfgloopmanip.c (scale_loop_profile): Likewise.
33895         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33896         * gimple-ssa-split-paths.c
33897         (find_block_to_duplicate_for_splitting_paths): Likewise.
33898         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33899         * expr.c (convert_move): Likewise.
33900         * var-tracking.c (vt_stack_adjustments): Likewise.
33901         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33902         * tree-vrp.c (test_for_singularity): Likewise.
33904         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33905         directly instead of building a temporary tree.
33907         PR bootstrap/69434
33908         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33909         remove <algorithm> include.
33911 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
33913         PR target/69432
33914         * config/i386/i386.c: Include dojump.h.
33915         (expand_small_movmem_or_setmem,
33916         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33917         fixes.
33918         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33919         if dynamic_check != -1.
33921 2016-01-21  Jeff Law  <law@redhat.com>
33923         PR middle-end/69347
33924         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33925         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
33926         into dominated_by_p.
33927         (cprop_into_successor_phis): Avoid unnecessary tests.
33929 2016-01-22  Richard Henderson  <rth@redhat.com>
33931         PR target/69416
33932         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33933         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33935 2016-01-22  Michael Matz  <matz@suse.de>
33937         * system.h (string, algorithm): Include only conditionally.
33938         (new): Include always under C++.
33939         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33940         * final.c (toplevel): Ditto.
33941         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33942         * genconditions.c (write_header): Make gencondmd.c define
33943         INCLUDE_STRING.
33944         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33946         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33947         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33949 2016-01-22  Christian Bruel  <christian.bruel@st.com>
33951         PR target/68674
33952         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33954 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33956         PR target/69403
33957         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33958         define_insn_and_split.  Ensure operands[1] and operands[0] do not
33959         get assigned the same register.
33961 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
33963         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33965 2016-01-22  Christian Bruel  <christian.bruel@st.com>
33967         * config/arm/arm-c.c (arm_pragma_target_parse):
33968         Remove warn_builtin_macro_redefined overwrite.
33970 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
33972         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33973         flag_non_call_exceptions compatibility.
33975 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
33977         PR debug/66668
33978         * dwarf2out.c (add_child_die_after): New function.
33979         (dwarf_qual_info_t): New type.
33980         (dwarf_qual_info): New variable.
33981         (qualified_die_p): New function.
33982         (modified_type_die): For -fdebug-types-section, ensure
33983         canonical order of qualifiers.  Put qualified DIEs adjacent
33984         to the corresponding non-qualified type DIE and search there
33985         for existing qualified DIEs.
33987 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
33989         * doc/extend.texi (scalar_storage_order type attribute): Document
33990         restriction on type punning and aliasing, and remove future tense.
33992 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
33994         PR target/69252
33995         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33996         first stage.
33998 2016-01-21  Jeff Law  <law@redhat.com>
34000         PR middle-end/69347
34001         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
34002         useless call to record_temporary_equivalences.
34003         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
34004         allocate 10 slots in the bb_path vector and let it grow as needed.
34005         (fsm_find_control_statement_thread_paths): Similarly for the next_path
34006         vector.
34008 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
34010         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
34011         Detangle.
34012         * configure: Regenerate.
34014 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
34016         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
34017         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
34019 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
34021         PR middle-end/66178
34022         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
34023         drop EXPAND_INITIALIZER.
34024         * rtl.h (contains_symbolic_reference_p): Declare.
34025         * rtlanal.c (contains_symbolic_reference_p): New function.
34026         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
34027         a subtraction into a NOT if symbolic constants are involved.
34029 2016-01-21  Anton Blanchard  <anton@samba.org>
34030             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34032         PR target/63354
34033         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
34034         #define.
34035         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
34036         function.
34038 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
34040         * config/microblaze/microblaze.c
34041         (get_branch_target): New.
34042         (insert_wic_for_ilb_runout): New.
34043         (insert_wic): New.
34044         (microblaze_machine_dependent_reorg): New.
34045         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
34046         * config/microblaze/microblaze.md
34047         (UNSPEC_IPREFETCH): Define.
34048         (iprefetch): New pattern
34049         * config/microblaze/microblaze.opt
34050         (mxl-prefetch): New flag.
34052 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
34054         * config/microblaze/microblaze.h
34055         (FIXED_REGISTERS): Update in macro.
34056         (CALL_USED_REGISTERS): Update in macro.
34058 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
34060         PR rtl-optimization/68920
34061         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
34062         moves.
34064 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34066         PR rtl-optimization/68990
34067         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
34068         pseudo instead of inheritance ones.
34070 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34071             Nick Clifton  <nickc@redhat.com>
34073         PR target/69129
34074         PR target/69012
34075         * config/mips/mips.c (mips_compute_frame_info): Initialise
34076         args_size and hard_frame_pointer_offset fields of the frame
34077         structure before calling mips_global_pointer.
34079 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
34081         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
34082         label reference.
34083         * configure: Regenerate.
34085 2016-01-21  Richard Biener  <rguenther@suse.de>
34087         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
34089 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
34091         * config/s390/s390.c (s390_asm_declare_function_size): Add code
34092         to actually emit the .size directive.
34094 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
34095              Jakub Jelinek  <jakub@redhat.com>
34097         PR target/69187
34098         PR target/65624
34099         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
34100         args array size by one to avoid buffer overflow.
34102 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
34104         * config/s390/s390.md (pool_section_start): Use switch_to_section
34105         to select proper read-only data section instead of hardcoding
34106         .rodata.
34107         (pool_section_end): Use switch_to_section to match the above.
34109 2016-01-21  Richard Biener  <rguenther@suse.de>
34111         PR tree-optimization/69378
34112         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
34113         (set_ssa_val_to): Use it for dominance checks taking into
34114         account not executable edges.
34116 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
34118         PR c++/69355
34119         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
34120         for bitsize instead of GET_MODE_PRECISION (mode).
34122 2016-01-20  Martin Sebor  <msebor@redhat.com>
34124         PR c/52291
34125         * extend.texi (__sync Builtins): Clarify the semantics of
34126         __sync_fetch_and_OP built-ins on pointers.
34127         (__atomic Builtins): Same.
34129 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34130             Sebastian Pop  <s.pop@samsung.com>
34132         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
34133         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
34134         (is_valid_rename): Same.
34135         (translate_isl_ast_to_gimple::get_rename): Same.
34136         (translate_isl_ast_to_gimple::rename_all_uses): Same.
34137         (translate_isl_ast_to_gimple::rename_uses): Same.
34138         (get_new_name): Check for close_phi nodes.
34139         (copy_loop_phi_args): Use phi_node_kind.
34140         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
34141         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
34143 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34144             Sebastian Pop  <s.pop@samsung.com>
34146         Revert commit r229783.
34147         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
34148         Remove use of parameter_rename_map.
34149         (copy_def): Remove.
34150         (copy_internal_parameters): Remove.
34151         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
34152         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
34153         (free_sese_info): Do not free parameter_rename_map.
34154         (set_rename): Do not use parameter_rename_map.
34155         (rename_uses): Update call to set_rename.
34156         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
34157         * sese.h (parameter_rename_map_t): Remove.
34158         (struct sese_info_t): Remove field parameter_rename_map.
34160 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34161             Sebastian Pop  <s.pop@samsung.com>
34163         * graphite-isl-ast-to-gimple.c: Fix comment.
34164         * graphite-scop-detection.c (defined_in_loop_p): New.
34165         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
34166         names defined in loop.
34168 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34169             Sebastian Pop  <s.pop@samsung.com>
34171         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
34172         Discard unstructured if-then-else regions.
34174 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34175             Sebastian Pop  <s.pop@samsung.com>
34177         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
34178         (cleanup_loop_iter_dom): Remove.
34179         (build_loop_iteration_domains): Remove.
34180         (build_scop_context): Remove.
34181         (build_scop_iteration_domain): Remove.
34182         (add_loop_constraints): New.
34183         (build_iteration_domains): New.
34184         (build_poly_scop): Call build_iteration_domains.
34186 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34187             Sebastian Pop  <s.pop@samsung.com>
34189         * graphite-scop-detection.c
34190         (scop_detection::harmful_loop_in_region): Free dom and loops.
34191         (scop_detection::loop_body_is_valid_scop): Free bbs.
34193 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34194             Sebastian Pop  <s.pop@samsung.com>
34196         * graphite-scop-detection.c (record_loop_in_sese): New.
34197         (gather_bbs::before_dom_children): Call record_loop_in_sese.
34198         (build_scops): Remove call to build_sese_loop_nests.
34199         * sese.c (sese_record_loop): Remove.
34200         (build_sese_loop_nests): Remove.
34201         (new_sese_info): Remove region->loops.
34202         (free_sese_info): Same.
34203         * sese.h (sese_contains_loop): Same.
34204         (build_sese_loop_nests): Remove.
34205         (sese_contains_loop): Remove.
34207 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34208             Sebastian Pop  <s.pop@samsung.com>
34210         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
34211         loop_is_valid_in_scop.
34212         (scop_detection::harmful_stmt_in_region): Renamed
34213         harmful_loop_in_region.
34214         Call loop_is_valid_in_scop.
34216 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34217             Sebastian Pop  <s.pop@samsung.com>
34219         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
34220         isl_ast_node_mark.
34222 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34223             Sebastian Pop  <s.pop@samsung.com>
34225         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
34226         * graphite.h (struct poly_bb): Remove field is_reduction.
34227         (PBB_IS_REDUCTION): Remove.
34229 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
34230             Sebastian Pop  <s.pop@samsung.com>
34232         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
34233         (add_pdr_constraints): Same.
34234         (scop_get_reads): Same.
34235         (scop_get_must_writes): Same.
34236         (scop_get_may_writes): Same.
34237         (scop_get_original_schedule): Same.
34238         (extend_schedule): Same.
34239         (apply_schedule_on_deps): Same.
34240         (carries_deps): Same.
34241         (compute_deps): Same.
34242         (scop_get_dependences): Same.
34243         * graphite-isl-ast-to-gimple.c
34244         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
34245         * graphite-optimize-isl.c (get_schedule_for_band): Same.
34246         (get_schedule_for_band_list): Same.
34247         (get_schedule_map): Same.
34248         (apply_schedule_map_to_scop): Same.
34249         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
34250         (build_loop_iteration_domains): Same.
34251         (add_condition_to_pbb): Same.
34252         (add_param_constraints): Same.
34253         (pdr_add_memory_accesses): Same.
34254         (pdr_add_data_dimensions): Same.
34256 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
34258         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
34259         requirements.
34261 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
34263         * common.opt (feliminate-dwarf2-dups): Replace references to
34264         "DWARF 2" with just "DWARF".
34265         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
34266         * doc/extend.texi: Likewise.
34267         * doc/cpp.texi: Likewise.
34268         * doc/invoke.texi: Likewise.
34269         (Option Summary): Add -gdwarf to list of Debugging Options.
34270         (Debugging Options): Document -gdwarf.
34271         * doc/contrib.texi: Spell "DWARF" like that.
34273 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
34275         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
34276         warning.  Fix up formatting.
34278         PR middle-end/67653
34279         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
34280         attempt to mark memory input operand addressable and
34281         call prepare_gimple_addressable in that case.  Don't adjust
34282         input_location for diagnostics, use error_at instead.
34284 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
34286         * config/rs6000/ppc-auxv.h: New file.
34287         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
34288         (cpu_is): Likewise.
34289         (cpu_supports): Likewise.
34290         * config/rs6000/rs6000.c: include "ppc-auxv.h".
34291         (cpu_is_info): New variable.
34292         (cpu_supports_info): Likewise.
34293         (tcb_verification_symbol): Likewise.
34294         (cpu_builtin_p): Likewise.
34295         (cpu_expand_builtin): New function.
34296         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
34297         (rs6000_init_builtins): Likewise.
34298         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
34299         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
34300         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
34301         * configure: Regenerate.
34302         * config.in: Likewise.
34303         * doc/extend.texi (PowerPC Built-in Functions): Document
34304         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
34306 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
34308         PR target/68609
34309         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
34310         domain check.
34311         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
34312         for V4SFmode.
34314 2016-01-20  Richard Henderson  <rth@redhat.com>
34316         PR bootstrap/69343
34317         PR bootstrap/69339
34318         PR tree-opt/68964
34319         Revert:
34320         * tree.c (tm_define_builtin): New.
34321         (find_tm_vector_type): New.
34322         (build_tm_vector_builtins): New.
34323         (build_common_builtin_nodes): Call it.
34325 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
34327         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
34328         (arm_fp_ok): Likewise.
34329         (arm_fp): Likewise.
34330         (arm_crypto): Likewise.
34332 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
34333             Richard Biener  <rguenther@suse.de>
34335         PR tree-optimization/69328
34336         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
34337         vectors have same number of elements.
34338         (vectorizable_condition): Fix masked version recognition.
34340 2016-01-20  Richard Biener  <rguenther@suse.de>
34342         PR tree-optimization/69345
34343         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
34344         (VN_INFO_PTR_INFO): Likewise.
34345         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
34346         info when it is equal between non-dominating SSA names.
34347         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34348         Make sure to look at original SSA infos.
34350 2016-01-20  Jeff Law  <law@redhat.com>
34352         PR target/25114
34353         * config/m68k/predicates.md (pow2_m1_operand): New predicate
34354         extracted from ...
34355         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
34356         (pc_or_label_operand): New predicate.
34357         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
34358         tests for small integers that are 2^n - 1.
34360 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
34362         * doc/invoke.texi (Options Summary): Add '.' after @xref.
34364 2016-01-19  Jeff Law  <law@redhat.com>
34366         PR middle-end/69347
34367         * tree-ssa-threadbackwards.c
34368         (fsm_find_control_statement_thread_paths): Do not try to lookup
34369         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34371 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
34373         * doc/lto.texi: Remove text that says only Gold has linker plugin
34374         support.
34376 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
34378         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34379         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34380         the DIE accordingly.
34381         (modified_type_die): Add REVERSE parameter and pass it recursively,
34382         as well as to base_type_die.  Adjust presence check accordingly.
34383         (base_type_for_mode): Adjust call to modified_type_die.
34384         (add_type_attribute): Add REVERSE parameter and pass it to
34385         modified_type_die.
34386         (generic_parameter_die): Adjust call to add_type_attribute.
34387         (add_scalar_info): Likewise.
34388         (add_subscript_info): Likewise.
34389         (gen_array_type_die): Likewise.
34390         (gen_descr_array_type_die): Likewise.
34391         (gen_entry_point_die): Likewise.
34392         (gen_enumeration_type_die): Likewise.
34393         (gen_formal_parameter_die): Likewise.
34394         (gen_subprogram_die): Likewise.
34395         (gen_variable_die ): Likewise.
34396         (gen_const_die): Likewise.
34397         (gen_field_die): Likewise.
34398         (gen_pointer_type_die): Likewise.
34399         (gen_reference_type_die): Likewise.
34400         (gen_ptr_to_mbr_type_die): Likewise.
34401         (gen_inheritance_die): Likewise.
34402         (gen_subroutine_type_die): Likewise.
34403         (gen_typedef_die): Likewise.
34404         (force_type_die): Adjust call to modified_type_die.
34406 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
34408         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34409         flow throughout the file.  Fix broken link to Objective-C 2.0
34410         documentation.
34411         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34412         errors.
34414 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
34416         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34418 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
34420         PR ipa/66223
34421         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34422         (maybe_record_node): Record cxa_pure_virtual as the only possible
34423         target if there are not ohter candidates.
34424         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34426 2016-01-19  Richard Biener  <rguenther@suse.de>
34428         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34429         (get_memory_order): Likewise.
34431 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
34433         * tree-vect-stmts.c (vectorizable_store): Check
34434         rhs vectype.
34436 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
34438         PR jit/68446
34439         * gcc.c (driver::decode_argv): Add call to
34440         init_opts_obstack before init_options_struct.
34441         * opts.c (init_opts_obstack): Remove idempotency.
34442         (init_options_struct): Replace call to init_opts_obstack
34443         with a gcc_assert to verify that it has already been called.
34444         * toplev.c (toplev::main): Add call to init_opts_obstack before
34445         calls to init_options_struct.
34446         (toplev::finalize): Move cleanup of opts_obstack next to
34447         cleanup of save_decoded_options, clearing the latter, and
34448         save_decoded_options_count.
34450 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34452         PR target/69135
34453         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34454         attribute to unconditional.  Remove %? from output template.
34456 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
34457             Jiong Wang  <jiong.wang@arm.com>
34459         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34460         generated from different expand order.
34462 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
34464         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34465         Add support for CCMP costing.
34467 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
34469         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34470         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34471         (fccmpe<mode>): Likewise.
34472         (fcmp): Rename to fcmp and globalize pattern.
34473         (fcmpe): Likewise.
34474         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34475         (aarch64_gen_ccmp_next): Add FP support.
34477 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
34479         * target.def (gen_ccmp_first): Update documentation.
34480         (gen_ccmp_next): Likewise.
34481         * doc/tm.texi (gen_ccmp_first): Update documentation.
34482         (gen_ccmp_next): Likewise.
34483         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34484         expand_ccmp_expr_1.  Improve comments.
34485         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34486         (ccmp_ior<mode>): Remove pattern.
34487         (cmp<mode>): Remove expand.
34488         (cmp): Globalize pattern.
34489         (cstorecc4): Use cc_register.
34490         (mov<mode>cc): Remove ccmp_cc_register check.
34491         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34492         Simplify after removal of CC_DNE/* modes.
34493         (aarch64_ccmp_mode_to_code): Remove.
34494         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
34495         In 'k' case use integer as condition.
34496         (aarch64_nzcv_codes): Remove inverted cases.
34497         (aarch64_code_to_ccmode): Remove.
34498         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
34499         comparison with CC register to be used in folowing CCMP/branch/CSEL.
34500         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34501         pattern.  Return the comparison with CC register.  Invert conditions
34502         when bitcode is OR.
34503         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34504         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34506 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
34508         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34509         instrumented_version.
34511 2016-01-19  Richard Biener  <rguenther@suse.de>
34513         PR tree-optimization/69336
34514         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34515         handled components with get_ref_base_and_extent.
34516         (equal_mem_array_ref_p): Adjust.
34518 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
34520         PR debug/65779
34521         * shrink-wrap.c: Include valtrack.h.
34522         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
34523         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34524         in between insn and where it will be moved to.  Call
34525         dead_debug_insert_temp.
34526         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
34527         first and dead_debug_local_finish at the end.
34528         For uses and defs bitmap, handle all regs in between REGNO and
34529         END_REGNO, not just the first one.
34531 2016-01-19  Richard Biener  <rguenther@suse.de>
34533         PR tree-optimization/69352
34534         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34535         (equal_mem_array_ref_p): Constrain size and max size properly.
34536         Compare the reverse flag.
34538 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
34540         * ira.c (ira): Update regstat data if we deleted insns.
34542 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
34544         PR rtl-optimization/68955
34545         PR rtl-optimization/64557
34546         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34547         here.  Fix up formatting.
34548         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34550 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
34552         PR lto/69133
34553         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34554         assume that the node has body.
34555         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34556         check.
34558 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
34560         * lto-streamer-out.c (lto_output): Do not stream instrumentation
34561         thunks.
34563 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
34565         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34566         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34568 2016-01-19  Martin Jambor  <mjambor@suse.cz>
34569             Martin Liska  <mliska@suse.cz>
34570             Michael Matz  <matz@suse.de>
34572         * Makefile.in (OBJS): Add new source files.
34573         (GTFILES): Add hsa.c.
34574         * common.opt (disable_hsa): New variable.
34575         (-Whsa): New warning.
34576         * config.in (ENABLE_HSA): New.
34577         * configure.ac: Treat hsa differently from other accelerators.
34578         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34579         $enable_offloading.
34580         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34581         * doc/install.texi (Configuration): Document --with-hsa-runtime,
34582         --with-hsa-runtime-include, --with-hsa-runtime-lib and
34583         --with-hsa-kmt-lib.
34584         * doc/invoke.texi (-Whsa): Document.
34585         (hsa-gen-debug-stores): Likewise.
34586         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34587         to invoke offload compiler for hsa acclerator.
34588         * opts.c (common_handle_option): Determine whether HSA offloading
34589         should be performed.
34590         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34591         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34592         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34593         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34594         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34595         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34596         GF_OMP_FOR_KIND_GRID_LOOP.
34597         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34598         (pp_gimple_stmt_1): Likewise.
34599         * gimple-walk.c (walk_gimple_stmt): Likewise.
34600         * gimple.c (gimple_build_omp_grid_body): New function.
34601         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34602         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34603         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34604         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34605         GF_OMP_TEAMS_GRID_PHONY.
34606         (gimple_statement_omp_single_layout): Updated comments.
34607         (gimple_build_omp_grid_body): New function.
34608         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34609         (gimple_omp_for_grid_phony): New function.
34610         (gimple_omp_for_set_grid_phony): Likewise.
34611         (gimple_omp_parallel_grid_phony): Likewise.
34612         (gimple_omp_parallel_set_grid_phony): Likewise.
34613         (gimple_omp_teams_grid_phony): Likewise.
34614         (gimple_omp_teams_set_grid_phony): Likewise.
34615         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34616         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34617         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34618         (BUILT_IN_GOMP_TARGET): Updated type.
34619         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34620         (adjust_for_condition): New function.
34621         (get_omp_for_step_from_incr): Likewise.
34622         (extract_omp_for_data): Moved parts to adjust_for_condition and
34623         get_omp_for_step_from_incr.
34624         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34625         (fixup_child_record_type): Bail out if receiver_decl is NULL.
34626         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34627         (scan_omp_parallel): Do not create child functions for phony
34628         constructs.
34629         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34630         (scan_omp_1_op): Checking assert we are not remapping to
34631         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
34632         (parallel_needs_hsa_kernel_p): New function.
34633         (expand_parallel_call): Register apprpriate parallel child
34634         functions as HSA kernels.
34635         (grid_launch_attributes_trees): New type.
34636         (grid_attr_trees): New variable.
34637         (grid_create_kernel_launch_attr_types): New function.
34638         (grid_insert_store_range_dim): Likewise.
34639         (grid_get_kernel_launch_attributes): Likewise.
34640         (get_target_argument_identifier_1): Likewise.
34641         (get_target_argument_identifier): Likewise.
34642         (get_target_argument_value): Likewise.
34643         (push_target_argument_according_to_value): Likewise.
34644         (get_target_arguments): Likewise.
34645         (expand_omp_target): Call get_target_arguments instead of looking
34646         up for teams and thread limit.
34647         (grid_expand_omp_for_loop): New function.
34648         (grid_arg_decl_map): New type.
34649         (grid_remap_kernel_arg_accesses): New function.
34650         (grid_expand_target_kernel_body): New function.
34651         (expand_omp): Call it.
34652         (lower_omp_for): Do not emit phony constructs.
34653         (lower_omp_taskreg): Do not emit phony constructs but create for them
34654         a temporary variable receiver_decl.
34655         (lower_omp_taskreg): Do not emit phony constructs.
34656         (lower_omp_teams): Likewise.
34657         (lower_omp_grid_body): New function.
34658         (lower_omp_1): Call it.
34659         (grid_reg_assignment_to_local_var_p): New function.
34660         (grid_seq_only_contains_local_assignments): Likewise.
34661         (grid_find_single_omp_among_assignments_1): Likewise.
34662         (grid_find_single_omp_among_assignments): Likewise.
34663         (grid_find_ungridifiable_statement): Likewise.
34664         (grid_target_follows_gridifiable_pattern): Likewise.
34665         (grid_remap_prebody_decls): Likewise.
34666         (grid_copy_leading_local_assignments): Likewise.
34667         (grid_process_kernel_body_copy): Likewise.
34668         (grid_attempt_target_gridification): Likewise.
34669         (grid_gridify_all_targets_stmt): Likewise.
34670         (grid_gridify_all_targets): Likewise.
34671         (execute_lower_omp): Call grid_gridify_all_targets.
34672         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34673         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34674         (tree_omp_clause): Added union field dimension.
34675         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34676         * tree.c (omp_clause_num_ops): Added number of arguments of
34677         OMP_CLAUSE__GRIDDIM_.
34678         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34679         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34680         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34681         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34682         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34683         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34684         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34685         * tree-pass.h (make_pass_gen_hsail): Declare.
34686         (make_pass_ipa_hsa): Likewise.
34687         * ipa-hsa.c: New file.
34688         * lto-section-in.c (lto_section_name): Add hsa section name.
34689         * lto-streamer.h (lto_section_type): Add hsa section.
34690         * timevar.def (TV_IPA_HSA): New.
34691         * hsa-brig-format.h: New file.
34692         * hsa-brig.c: New file.
34693         * hsa-dump.c: Likewise.
34694         * hsa-gen.c: Likewise.
34695         * hsa.c: Likewise.
34696         * hsa.h: Likewise.
34697         * toplev.c (compile_file): Call hsa_output_brig.
34698         * hsa-regalloc.c: New file.
34700 2016-01-18  Jeff Law  <law@redhat.com>
34702         PR tree-optimization/69320
34703         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34704         ranged object, do nothing if the RHS constant is not [0..1].
34705         (optimize_stmt): Comparing a boolean ranged object against a
34706         constant outside [0..1] results in a compile-time constant.
34708         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34709         test.
34711 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
34713         * doc/invoke.texi (Invoking GCC): Add new section to menu.
34714         (Option Summary): Update to reflect new section and moved options.
34715         (C++ Dialect Options): Move -fstats to new section.
34716         (Debugging Options): Move all dump, statistics, and other GCC
34717         developer options to new section.  Rewrite section introduction
34718         and re-order remaining options to put the more basic ones first.
34719         (Optimization Options): Move -fira-verbose and -flto-report* to
34720         new section.
34721         (Developer Options): New section incorporating moved options.
34722         * doc/cppopts.texi (-dM): Update cross-reference.
34724 2016-01-18  Richard Henderson  <rth@redhat.com>
34726         PR target/69176
34727         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34728         operands to pseudo only if CSE is expected.  Split long immediate
34729         operands only after reload, and for the stack pointer.
34730         (*add<GPI>3_pluslong): Remove.
34731         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34732         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
34733         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34734         (*add<GPI>3 peepholes): New.
34735         (*add<GPI>3 splitters): New.
34736         * config/aarch64/constraints.md (Upl): New.
34737         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34739 2016-01-18  Richard Biener  <rguenther@suse.de>
34741         PR tree-optimization/69297
34742         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34743         stmt at most once.
34744         (vect_bb_vectorization_profitable_p): Clear visited flag again.
34746 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
34748         PR middle-end/68542
34749         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34750         of mixind vector and scalar types.
34751         (fold_relational_const): Add handling of vector
34752         comparison with boolean result.
34753         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34754         comparison of vector operands with boolean result for EQ/NE only.
34755         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34756         (verify_gimple_cond): Likewise.
34757         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34758         valid type of VAL.
34760 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
34762         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34763         !TARGET_OCTEON.
34765 2016-01-18  Richard Biener  <rguenther@suse.de>
34767         PR middle-end/69308
34768         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34770 2016-01-18  Tom de Vries  <tom@codesourcery.com>
34772         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34774 2016-01-18  Tom de Vries  <tom@codesourcery.com>
34776         * omp-low.c (set_oacc_fn_attrib): Make extern.
34777         * omp-low.h (set_oacc_fn_attrib): Declare.
34778         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34779         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34780         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34781         Add and handle function parameter oacc_kernels_p.
34782         (find_reduc_addr, get_omp_data_i_param): New function.
34783         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34784         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34785         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34786         Calculate dominance info.  Skip loops that are not in a kernels region
34787         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
34788         (pass_parallelize_loops::execute): Call parallelize_loops with
34789         oacc_kernels_p argument.
34790         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34791         New member function.
34792         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34793         * passes.def: Add argument to pass_parallelize_loops instantation.
34795 2016-01-18  Tom de Vries  <tom@codesourcery.com>
34797         * tree-parloops.c (pass_parallelize_loops::execute): Allow
34798         pass_parallelize_loops to be run outside the loop pipeline.
34800 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
34802         * tree-scalar-evolution.c (follow_copies_to_constant): New.
34803         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34805 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
34807         PR target/63679
34808         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34809         using get_ref_base_and_extent.
34810         (equal_mem_array_ref_p): New.
34811         (hashable_expr_equal_p): Add call to previous.
34813 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
34815         PR target/63679
34816         * tree-sra.c (disqualified_constants, constant_decl_p): New.
34817         (sra_initialize): Allocate disqualified_constants.
34818         (sra_deinitialize): Free disqualified_constants.
34819         (disqualify_candidate): Update disqualified_constants when appropriate.
34820         (create_access): Scan for constant-pool entries as we go along.
34821         (scalarizable_type_p): Add check against type_contains_placeholder_p.
34822         (maybe_add_sra_candidate): Allow constant-pool entries.
34823         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34824         (initialize_constant_pool_replacements): New.
34825         (sra_modify_assign): Avoid mangling assignments created by previous,
34826         and don't generate writes into constant pool.
34827         (sra_modify_function_body): Call initialize_constant_pool_replacements.
34829 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
34831         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34832         andnot instruction.
34833         (scalar_chain::convert_op): Likewise.
34834         * config/i386/i386.md (*andndi3_doubleword): New.
34836 2016-01-18  Richard Biener  <rguenther@suse.de>
34838         PR tree-optimization/69170
34839         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34840         building a vector from scalar results of a pattern stmt.
34842 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
34844         * haifa-sched.c (autopref_multipass_init): Work around
34845         -Wmaybe-uninitialized warning.
34847 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34849         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34850         against the constant 0.
34852 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34854         PR tree-optimization/68799
34855         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34856         look up phi candidates in the statement-candidate map.
34857         (phi_add_costs): Likewise.
34858         (record_phi_increments): Likewise.
34859         (phi_incr_cost): Likewise.
34860         (ncd_with_phi): Likewise.
34861         (all_phi_incrs_profitable): Likewise.
34863 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
34865         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34866         -Wmaybe-uninitialized warning.
34868 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
34870         * doc/invoke.texi (Invoking GCC): Add new section to menu.
34871         (Option Summary): Update to reflect new section and moved options.
34872         (C++ Dialect Options): Move -fvtable-verify and related options.
34873         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34874         and profiling-related options.
34875         (Optimization Options): Move profile generation options and
34876         -fstack-protector and related options.
34877         (Instrumentation Options): New section incorporating moved options.
34878         (Code Generation Options): Move -finstrument-functions and
34879         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34881 2016-01-16  Tom de Vries  <tom@codesourcery.com>
34883         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34885 2016-01-16  Tom de Vries  <tom@codesourcery.com>
34887         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
34889 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
34891         * hash-table.h (hash_table::empty): Turn into an inline wrapper
34892         that checks whether the table is already empty.  Rename the
34893         original implementation to...
34894         (hash_table::empty_slot): ...this new private function.
34896 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
34898         PR diagnostic/68899
34899         * diagnostic-show-locus.c (layout::print_source_line): Move x
34900         offset of line until after call to
34901         get_line_width_without_trailing_whitespace.
34903 2016-01-15  Jeff Law  <law@redhat.com>
34905         PR tree-optimization/69270
34906         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34907         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
34908         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34909         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34910         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34911         ssa_name_has_boolean_range and constant_boolean_node.
34913 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34915         PR rtl-optimization/69030
34916         * lra-spills.c (remove_pseudos): Check nrefs and make the function
34917         returning bool.
34918         (spill_pseudos): Delete debug insn for dead pseudo.
34919         (lra_spill): Initiate spill_hard_reg and slots memory separately.
34921 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
34923         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34924         New.
34925         (TYPES_UNOPUS): Likewise.
34926         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34927         builtin type, from UNOP to UNOPUS.
34928         (lbtruncuv4sf): Likewise.
34929         (lbtruncuv2df): Likewise.
34930         (lrounduv2sf): Likewise.
34931         (lrounduv4sf): Likewise.
34932         (lrounduv2df): Likewise.
34933         (lroundusf): Likewise.
34934         (lroundusf): Likewise.
34935         (lceiluv2sf): Likewise.
34936         (lceiluv4sf): Likewise.
34937         (lceiluv2df): Likewise.
34938         (lceilusf): Likewise.
34939         (lceiludf): Likewise.
34940         (lflooruv2sf): Likewise.
34941         (lflooruv4sf): Likewise.
34942         (lflooruv2df): Likewise.
34943         (lfloorusf): Likewise.
34944         (lfloorudf): Likewise.
34945         (lfrintnuv2sf): Likewise.
34946         (lfrintnuv4sf): Likewise.
34947         (lfrintnuv2df): Likewise.
34948         (lfrintnusf): Likewise.
34949         (lfrintnudf): Likewise.
34950         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34951         conversion.
34952         (vcvtq_u32_f32): Likewise.
34953         (vcvtq_u64_f64): Likewise.
34954         (vcvta_u32_f32): Likewise.
34955         (vcvtaq_u32_f32): Likewise.
34956         (vcvtaq_u64_f64): Likewise.
34957         (vcvtm_u32_f32): Likewise.
34958         (vcvtmq_u32_f32): Likewise.
34959         (vcvtmq_u64_f64): Likewise.
34960         (vcvtn_u32_f32): Likwise.
34961         (vcvtnq_u32_f32): Likewise.
34962         (vcvtnq_u64_f64): Likewise.
34963         (vcvtp_u32_f32): Likewise.
34964         (vcvtpq_u32_f32): Likewise.
34965         (vcvtpq_u64_f64): Likewise.
34966         (vcvtmd_u64_f64): Likewise.
34967         (vcvtms_u32_f32): Likewise.
34968         (vcvtad_u64_f64): Likewise.
34969         (vcvtas_u32_f32): Likewise.
34970         (vcvtnd_u64_f64): Likewise.
34971         (vcvtns_u32_f32): Likewise.
34972         (vcvtpd_u64_f64): Likewise.
34973         (vcvtps_u32_f32): Likewise.
34975 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34977         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34978         CSEL of zero_extended registers.
34980 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34982         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34983         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34985 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34987         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34988         false when argument string is not found in the attributes table
34989         at all.
34991 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
34993         PR target/68609
34994         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34995         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34996         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34997         precision estimate.
34999 2016-01-15  Richard Biener  <rguenther@suse.de>
35001         PR tree-optimization/66856
35002         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
35003         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
35004         (vect_create_new_slp_node): Increment stmt reference count.
35005         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
35006         an SLP tree before swapping operands.
35007         (vect_build_slp_tree): Likewise.
35008         (destroy_bb_vec_info): Free stmt info after SLP instances.
35009         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
35010         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
35011         (STMT_VINFO_NUM_SLP_USES): New macro.
35013 2016-01-15  Richard Biener  <rguenther@suse.de>
35015         PR debug/69137
35016         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
35017         (add_linkage_name): ... here.
35018         (gen_typedef_die): Use add_linkage_name_raw instead of
35019         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
35020         if necessary.
35022 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
35024         * gimplify.c (oacc_default_clause): Decode reference and pointer
35025         types for both kernels and parallel regions.
35027 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
35029         PR middle-end/69246
35030         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
35032 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
35034         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
35035         (convert_scalars_to_vector): Likewise.
35037 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
35039         * doc/extend.texi (Type Traits): Fix grammar.
35041 2016-01-15  Martin Jambor  <mjambor@suse.cz>
35043         * tree-inline.c (remap_decl): Use existing dclarations if
35044         remapping a type and prevent_decl_creation_for_types.
35045         (replace_locals_stmt): Do an initial remapping of non-VLA typed
35046         decls first.  Do real remapping with
35047         prevent_decl_creation_for_types set.
35048         * tree-inline.h (copy_body_data): New field
35049         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
35050         padding.
35052 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35054         * config/s390/s390.opt (mmvcle): More verbose help text.
35056 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35058         * config/s390/s390.opt: Add period to -mzvector option text.
35060 2016-01-15  Richard Biener  <rguenther@suse.de>
35062         PR tree-optimization/68961
35063         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
35064         of invariants in stores again.
35066 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35068         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
35070 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
35072         * config/i386/i386.c (ix86_expand_branch): Don't split
35073         DI mode xor instruction to SI mode.
35075 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
35077         PR ipa/68148
35078         * ipa-icf.c (sem_function::merge): Virtual functions may become
35079         reachable even if they address is not taken and there are no
35080         idrect calls.
35082 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
35084         * lto-streamer-out.c (subtract_estimated_size): New function.
35085         (get_symbol_initial_value): Use it.
35087 2016-01-15  Christian Bruel  <christian.bruel@st.com>
35089         PR target/65837
35090         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
35091         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
35092         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
35093         use add_builtin_function_ext_scope instead of add_builtin_function.
35094         (neon_set_p, neon_crypto_set_p): Remove.
35095         (arm_init_builtins): Always call arm_init_neon_builtins and
35096         arm_init_crypto_builtins.
35097         (arm_expand_builtin): Check that builtins are allowed for the arch.
35098         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
35099         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
35100         arm_init_neon_builtins call.
35102 2016-01-15  Richard Biener  <rguenther@suse.de>
35104         PR tree-optimization/69117
35105         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
35106         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
35107         of the leader conservatively.
35108         (free_scc_vn): Restore original SSA name infos.
35110 2016-01-14  Jeff Law  <law@redhat.com>
35112         PR tree-optimization/69270
35113         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
35114         single bit of precision, verify it's also unsigned.
35115         (record_edge_info): Use constant_boolean_node rather than fold_convert
35116         to convert boolean_true/boolean_false to the right type.
35118 2016-01-14  Richard Henderson  <rth@redhat.com>
35120         PR rtl-opt/69014
35121         * loop-doloop.c (record_reg_sets): New.
35122         (doloop_optimize): Reject the transform if the sequence
35123         clobbers registers live at the end of the loop block.
35124         (doloop_optimize_loops): Enable df_live if needed.
35126 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
35128         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
35129         * config/rs6000/rs6000.c: Likewise.
35130         * config/rs6000/rs6000.h: Likewise.
35131         * config/rs6000/rs6000.md: Likewise.
35132         * doc/extend.texi: Likewsie.
35134 2016-01-14  Jeff Law  <law@redhat.com>
35136         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
35137         typo.
35139 2016-01-14  Richard Henderson  <rth@redhat.com>
35141         PR c/69272
35142         PR tree-opt/68964
35143         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
35144         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
35145         instead of builtin_decl_declared_p to test for declaration.
35147 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
35149         * doc/loop.texi (Loop Analysis and Representation): Document
35150         loop_depth function.
35152 2016-01-14  Tom de Vries  <tom@codesourcery.com>
35154         PR tree-optimization/68773
35155         * omp-low.c (expand_omp_target): Don't set force_output.
35156         * varpool.c (varpool_node::get_create): Same.
35157         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
35158         offload_funcs with force_output.
35160 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
35162         PR debug/69244
35163         * lra-eliminations.c (move_plus_up): Don't change anything if either
35164         the outer or inner subreg mode is not MODE_INT.
35165         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
35166         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
35168 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
35170         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
35171         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
35172         reduc_uplus_@var{m}): Remove.
35173         * expr.c (expand_expr_real_2): Remove expansion path for
35174         reduc_[us](min|max|plus) optabs.
35175         * optabs-tree.c (scalar_reduc_to_vector): Remove.
35176         * optabs-tree.h (scalar_reduc_to_vector): Remove.
35177         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
35178         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
35179         * tree-vect-loop.c (vectorizable_reduction): Remove test for
35180         reduc_[us](min|max|plus) optabs.
35182 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
35184         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
35185         (reduc_plus_scal_v2sf): New.
35186         (reduc_smax_v2sf): Rename to...
35187         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
35188         (reduc_smin_v2sf): Rename to...
35189         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
35191 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
35193         * alias.c (compare_base_symbol_refs): New function.
35194         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
35195         it.
35197 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
35199         PR middle-end/68146
35200         PR tree-optimization/69155
35201         * tree-complex.c: Include cfganal.h.
35202         (phis_to_revisit): New variable.
35203         (extract_component): Add phiarg_p argument.  Assert that returned
35204         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
35205         (update_phi_components): Partly rewrite to use loop over real/imag
35206         components instead of code duplication.  If extract_component returns
35207         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
35208         create_tmp_reg into the PHI node instead, and mention the phi triplet
35209         in phis_to_revisit.
35210         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
35211         in phis_to_revisit at the end.
35213 2016-01-14  Richard Biener  <rguenther@suse.de>
35215         PR tree-optimization/68060
35216         * tree-vect-loop.c (vect_is_simple_reduction): Check the
35217         outer loop reduction is only used in the inner loop before
35218         detecting a double reduction.
35220 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
35222         PR target/68269
35223         * combine.c (expand_field_assignment): Punt if compute_mode is
35224         unsupported scalar mode.
35226 2016-01-14  Richard Biener  <rguenther@suse.de>
35228         PR tree-optimization/66856
35229         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
35230         SLP node only if it built successfully.
35231         (vect_analyze_slp_instance): Adjust.
35233 2016-01-14  Jeff Law  <law@redhat.com>
35235         PR tree-optimization/69270
35236         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
35237         (record_edge_info): Use it.  Convert boolean_{true,false}_node
35238         to the type of op0.
35240 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
35242         PR ipa/66487
35243         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
35244         use block_ultimate_origin
35245         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
35247 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
35249         * doc/invoke.texi (Submodel Options): Rename section to
35250         "Machine-Dependent Options" to better reflect its content.
35251         Rewrite introductory text to remove archaic CPU names.
35252         Update references.
35254 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
35256         * doc/invoke.texi (Code Gen Options): Move section up in file,
35257         before target-specific options.  Update menu and option summary
35258         to reflect the new section ordering.
35260 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
35262         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
35263         (C++ Dialect Options): Add cross-reference to -std option.
35264         * doc/standards.texi (C++ Language): Document C++14 support.
35266 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
35268         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
35269         for pack/unpack functions for __ibm128.
35270         (PACK_IF): Likewise.
35271         (UNPACK_IF): Likewise.
35273         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
35274         support for __ibm128 pack/unpack functions.
35275         (rs6000_invalid_builtin): Likewise.
35276         (rs6000_init_builtins): Likewise.
35277         (rs6000_opt_masks): Likewise.
35279         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
35280         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
35281         functions
35282         (RS6000_BTM_COMMON): Likewise.
35284         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
35285         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
35286         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
35287         128-bit floating point.  Add support for the double values to be
35288         in Altivec registers for TF/IF packing and unpacking, but restrict
35289         TD packing sub-fields to be FPR registers.  Don't allow overlapped
35290         register support for packing.  Allow pack inputs to be memory
35291         locations.  Don't build generator functions for unpack<mode>_dm
35292         and unpack<mode>_nodm.
35293         (unpack<mode>_dm): Likewise.
35294         (unpack<mode>_nodm): Likewise.
35295         (pack<mode>): Likewise.
35297         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
35298         built-in functions to pack/unpack explicit __ibm128 values.
35299         (__builtin_unpack_ibm128): Likewise.
35301         * doc/extend.texi (PowerPC Built-in Functions): Document
35302         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
35304 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
35306         PR c/66208
35307         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
35308         Add new arg loc and pass it down as context.
35309         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
35310         to the location to use for the warning.
35311         (check_function_arguments): New arg loc.  All callers changed.  Pass
35312         it to check_function_nonnull.
35313         * c-common.h (check_function_arguments): Adjust declaration.
35315 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
35317         PR tree-optimization/69156
35318         * gimple.c (validate_type): Removed.
35319         (gimple_builtin_call_types_compatible_p): Use
35320         useless_type_conversion_p instead of validate_type.
35321         * value-prof.c (gimple_stringop_fixed_value): Fold
35322         icall_size to correct type.
35324 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
35326         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
35327         effects.
35329 2016-01-13  Richard Henderson  <rth@redhat.com>
35331         PR tree-opt/68964
35332         * target.def (builtin_tm_load, builtin_tm_store): Remove.
35333         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
35334         (ix86_builtin_tm_store): Remove.
35335         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35336         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35337         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35338         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35339         * doc/tm.texi: Rebuild.
35341         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
35342         (BUILT_IN_TM_MEMCPY_RTWN): New.
35343         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
35344         fallback from vector to integer helpers.
35345         (build_tm_load): Handle vector types directly, instead of
35346         via target hook.
35347         (build_tm_store): Likewise.
35348         (expand_assign_tm): Prepare for register types not handled by
35349         the above.  Copy them to memory and use memcpy.
35350         * tree.c (tm_define_builtin): New.
35351         (find_tm_vector_type): New.
35352         (build_tm_vector_builtins): New.
35353         (build_common_builtin_nodes): Call it.
35355 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
35357         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
35358         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
35360 2016-01-13  Tom de Vries  <tom@codesourcery.com>
35362         PR tree-optimization/69169
35363         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35364         handled_struct_type param.
35365         (create_variable_info_for, intra_create_variable_infos): Call
35366         create_variable_info_for_1 with extra arg.
35368 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
35370         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35371         and "armv8.1-a+crc" entries.
35373 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
35375         PR target/69228
35376         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35377         Change first operand predicate from register_or_constm1_operand
35378         to register_operand.
35379         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35380         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35381         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35382         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35383         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35384         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35385         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35386         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35387         comparison with constm1_rtx from vec_prefetch_gen part.
35389 2016-01-13  Richard Biener  <rguenther@suse.de>
35391         PR tree-optimization/69013
35392         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35393         Exchange assert for a test.
35395 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35397         PR target/69247
35398         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35400 2016-01-13  Richard Biener  <rguenther@suse.de>
35402         PR tree-optimization/69242
35403         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35404         assert with a check.
35406 2016-01-13  Richard Biener  <rguenther@suse.de>
35408         PR tree-optimization/69186
35409         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35410         Properly guard vect_update_misalignment_for_peel call.
35412 2016-01-12  Jeff Law  <law@redhat.com>
35414         PR tree-optimization/pr67755
35415         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35416         "need_profile_correction".
35417         (thread_block_1): Initialize new field to false by default.  If we
35418         have multiple thread paths through a common joiner to different
35419         final targets, then set new field to true.
35420         (compute_path_counts): Only do count adjustment when it's really
35421         needed.
35423 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35425         * doc/invoke.texi (Spec Files): Move section down in file, past
35426         all command-line option descriptions.
35428 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
35430         PR middle-end/54809
35431         * doc/gty.texi: Remove documentation of mark_hook.
35432         * gengtype.c (struct write_types_data): Remove code to support
35433         mark_hook attribute.
35434         (walk_type): Likewise.
35435         (write_func_for_structure): Likewise.
35437 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35439         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35440         Directory Options, and -specs= to Overall Options.
35441         (Overall Options): Adjust similarly.  Reorder to group related
35442         options together.  Make -specs= cross-reference the spec file details.
35443         (Directory Options): Adjust similarly.
35445 2016-01-12  Jeff Law  <law@redhat.com>
35447         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35449 2016-01-12  Olivier Hainque  <hainque@adacore.com>
35451         * gcc.c (spec_undefvar_allowed): New global.
35452         (process_command): Set to true when running for --version or --help,
35453         alone or together.
35454         (getenv_spec_function): When the variable is not defined, use the
35455         variable name as the variable value if we're allowed not to issue
35456         a fatal error.
35458 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
35460         PR tree-optimization/68911
35461         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35462         information computed for expression "init + nit * step".
35464 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35466         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
35467         about name of GCC executable.  Remove deleted node from menu.
35468         (Directory Options) <-B>: Remove cross-reference to deleted node.
35469         (Target Options): Delete section.
35471 2016-01-12  Christian Bruel  <christian.bruel@st.com>
35473         PR target/69180
35474         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35475         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35477 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
35479         PR target/69198
35480         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35481         aligned_mem is properly set for AVX512-VL floating point masked
35482         stores.
35484         PR target/69175
35485         * ifcvt.c (cond_exec_process_if_block): When removing the last
35486         insn from then_bb, remove also any possible barriers that follow it.
35488 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
35490         PR target/68456
35491         PR target/69226
35492         * config/i386/iamcu.h (SIZE_TYPE): New macro.
35493         (PTRDIFF_TYPE): Likewise.
35494         (WCHAR_TYPE): Likewise.
35495         (WCHAR_TYPE_SIZE): Likewise.
35496         (STDINT_LONG32): Likewise.
35498 2016-01-12  Richard Biener  <rguenther@suse.de>
35500         PR tree-optimization/69053
35501         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35502         convert initial value for cond reductions.
35504 2016-01-12  Richard Biener  <rguenther@suse.de>
35506         PR tree-optimization/69007
35507         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35508         widen_sum after dot_prod and sad.
35510 2016-01-12  Richard Biener  <rguenther@suse.de>
35512         PR tree-optimization/69168
35513         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35514         pattern stmt SLP type.
35515         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35516         end up unused so cope with that case.
35518 2016-01-12  Richard Biener  <rguenther@suse.de>
35520         PR tree-optimization/69157
35521         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35522         stmts def type only during analyze phase.
35523         (vectorizable_call): Likewise.
35524         (vectorizable_simd_clone_call): Likewise.
35525         (vectorizable_conversion): Likewise.
35526         (vectorizable_assignment): Likewise.
35527         (vectorizable_shift): Likewise.
35528         (vectorizable_operation): Likewise.
35529         (vectorizable_store): Likewise.
35530         (vectorizable_load): Likewise.
35532 2016-01-12  Richard Biener  <rguenther@suse.de>
35534         PR tree-optimization/69174
35535         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35536         space.
35537         (vectorizable_load): Properly compute the number of loads needed
35538         for permuted strided SLP loads and do not spuriously assign
35539         to SLP_TREE_VEC_STMTS.
35541 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
35543         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35544         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35545         (MD_EXEC_PREFIX): Remove.
35546         (MD_STARTFILE_PREFIX) Removee.
35547         (FILE_NAME_ABSOLUTE_P): Remove.
35548         (CPP_SPEC): Do not read macros from sys/version.h.
35549         (LINK_COMMAND_SPEC): Remove.
35550         (LOCAL_INCLUDE_DIR): Remove.
35551         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35552         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35553         (POST_LINK_SPEC): Define to invoke stubify after linker
35554         (LIBSTDCXX): Remove define
35555         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35556         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35557         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35558         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35559         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35560         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35561         (i386_djgpp_asm_named_section): Add propotype of new procedure
35563         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35564         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35565         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35566         in config/i386/djgpp.h).
35567         (STANDARD_STARTFILE_PREFIX_2): Define identical to
35568         STANDARD_STARTFILE_PREFIX_1.
35569         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35570         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35571         installation errors.
35572         (MAX_OFILE_ALIGNMENT): Define to 128.
35573         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35575         * config/i386/djgpp.c: New file. Add implementation of
35576         i386_djgpp_asm_named_section.
35578         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35580         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35581         Add rule for building djgpp.o.
35583 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35585         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35586         (rtx_is_swappable_p): Reductions are swappable.
35587         (insn_is_swappable_p): V2DF reductions are swappable.
35589 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
35591         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35592         reloads for other unsupported memory operands.
35594 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
35595             Jim Wilson  <jim.wilson@linaro.org>
35597         PR target/69194
35598         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35599         copy_to_mode_reg instead of force_reg.
35601 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
35603         PR target/69225
35604         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35605         TARGET_80387 is true.
35607 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
35609         PR target/69071
35610         * lra-eliminations.c (move_plus_up): Only move plus up
35611         if subreg of the constant can be simplified into constant
35612         and use the simplified subreg of the constant instead of
35613         the original constant.
35615         * fold-const.c (fold_convertible_p): Don't return true
35616         for conversion of VECTOR_TYPE to same sized integral type.
35617         (fold_convert_loc): Fix up formatting.  Fold conversion of
35618         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35619         instead of NOP_EXPR.
35621         PR tree-optimization/69214
35622         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35623         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35624         Formatting fix.
35626         PR tree-optimization/69207
35627         * tree-vect-slp.c (vect_get_constant_vectors): For
35628         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35629         fold_convertible_p to vector_type's element type, and always
35630         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35632 2016-01-11  Richard Biener  <rguenther@suse.de>
35634         PR tree-optimization/69173
35635         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35636         fixup the cycle if all stmts are in a pattern.
35638 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
35640         PR middle-end/68999
35641         * alias.c (base_alias_check): Move check for addresses with
35642         alignment ANDs before the call for compare_base_decls.
35643         (memrefs_conflict_p): Return -1 for different decls
35644         that went through alignment adjustments.
35646 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35648         PR rtl-optimization/68796
35649         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35650         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35651         and QImode comparisons against zero with CC_NZmode.
35652         * config/aarch64/iterators.md (short_mask): New mode_attr.
35654 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
35656         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35657         (<avx512>_store<mode>_mask): Likewise.
35659 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
35660             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35662         PR rtl-optimization/68841
35663         * ifcvt.c (struct noce_if_info): Add orig_x field.
35664         (bbs_ok_for_cmove_arith): Add to_rename parameter.
35665         Don't record conflicts on to_rename if it's present.
35666         Allow memory destinations in sets.
35667         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35668         blocks, passing orig_x to the checks.
35669         (noce_process_if_block): Set if_info->orig_x appropriately.
35671 2016-01-11  Tom de Vries  <tom@codesourcery.com>
35673         PR tree-optimization/69069
35674         * tree-parloops.c (create_parallel_loop): Add missing phi args.
35676 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
35678         PR rtl-optimization/68920
35679         * config/i386/i386.c (ix86_option_override_internal): Restrict number
35680         of conditional moves for  RTL if-conversion to 1 for
35681         TARGET_ONE_IF_CONV_INSN.
35682         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35683         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35684         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35685         parameter to restirct number of conditional moves for
35686         RTL if-conversion.
35687         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35688         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35689         conditionl moves.
35691 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
35693         PR bootstrap/69123
35694         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35695         onepart vars.  Fix typo in comment.  Fix reversed condition in
35696         unshare test.
35697         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35699         PR bootstrap/69123
35700         * var-tracking.c (dump_onepart_variable_differences): New.
35701         (dataflow_set_different): If a detailed dump is requested,
35702         delay early returns and dump differences between onepart
35703         variables present before and after, and added variables.
35705 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
35707         PR target/69010
35708         * expr.c (expand_expr_real_1): For boolean vector constants
35709         with a scalar mode use const_scalar_mask_from_tree.
35710         (const_scalar_mask_from_tree): New.
35711         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35712         assigned to a mask type to handle constants.
35714 2016-01-11  Martin Jambor  <mjambor@suse.cz>
35716         PR ipa/69044
35717         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35718         useless parameters if we cannot change function signature.
35720 2016-01-11  Martin Jambor  <mjambor@suse.cz>
35722         PR ipa/66616
35723         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35724         flag.
35726 2016-01-11  Tom de Vries  <tom@codesourcery.com>
35728         PR tree-optimization/69109
35729         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35730         latch with phi.
35732 2016-01-11  Tom de Vries  <tom@codesourcery.com>
35734         PR tree-optimization/69108
35735         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35736         res is not used in a phi.
35738 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
35740         PR 67425
35741         * common.opt (frandom-seed): Fix parameter name.
35742         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35744 2016-01-11  Tom de Vries  <tom@codesourcery.com>
35746         PR tree-optimization/69058
35747         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35748         not supported.
35750 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
35752         * config/arc/arc.opt (mdiv-rem): Add period to the end.
35753         (mcode-density): Likewise.
35755 2016-01-10  Tom de Vries  <tom@codesourcery.com>
35757         PR tree-optimization/69062
35758         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35759         (parallelize_loops): Don't paralelize loop that has phi with address
35760         arg.
35762 2016-01-10  Tom de Vries  <tom@codesourcery.com>
35764         PR tree-optimization/69039
35765         * tree-parloops.c (try_create_reduction_list): Only allow single exit
35766         phi for reduction.
35768 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
35770         PR middle-end/68743
35771         * match.pd: Require target has function_c99_misc before doing
35772         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35774 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
35776         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35777         use GMPINC.
35778         * configure: Regenerate.
35780 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
35782         PR middle-end/50865
35783         PR tree-optimization/69097
35784         * fold-const.h (expr_not_equal_to): New prototype.
35785         * fold-const.c: Include stringpool.h and tree-ssanames.h.
35786         (expr_not_equal_to): New function.
35787         * match.pd (X % -Y is the same as X % Y): Don't optimize
35788         unless X is known not to be equal to minimum or Y is known
35789         not to be equal to -1.
35790         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35791         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35792         (simplify_stmt_using_ranges): Adjust caller.
35793         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35794         substitute_and_fold.
35796 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
35798         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35799         w/o DECL_NAME.
35801 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
35803         PR tree-optimization/69167
35804         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35805         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35806         ops[0] comparison.
35807         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35809 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
35810             Richard Biener  <rguenther@suse.de>
35812         PR tree-optimization/68707
35813         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35814         instances that can be handled via vect_load_lanes.
35816 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
35818         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35819         if we can't determine address equivalence.
35820         * alias.c (compare_base_decl): Update for changed return value of
35821         symtab_node::equal_address_to.
35823 2016-01-08  Jason Merrill  <jason@redhat.com>
35825         PR c++/68983
35826         PR c++/67557
35827         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35828         * expr.c (store_field): Not here.
35829         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35830         call with TREE_ADDRESSABLE type.
35831         * tree-cfg.c (verify_gimple_call): Adjust.
35833 2016-01-08  Olivier Hainque  <hainque@adacore.com>
35835         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35836         libc_internal.
35838 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
35840         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35841         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35842         (reduc_smin_v2sf): Rename to...
35843         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35844         (reduc_splus_v2sf): Rename to...
35845         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35847 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
35849         PR tree-optimization/69162
35850         * gimplify.c (gimplify_va_arg_expr): Encode original type of
35851         valist argument in another argument.
35852         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
35853         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35854         to determine the va_list type, build a MEM_REF instead of
35855         build_fold_indirect_ref.
35857         PR tree-optimization/69172
35858         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35859         gimple_build.
35861 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35863         PR tree-optimization/67781
35864         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35865         and cmpnop in two steps: first the ones not accessed in original
35866         gimple expression in a endian independent way and then the ones not
35867         accessed in the final result in an endian-specific way.
35869 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
35871         PR tree-optimization/69083
35872         * tree-vect-slp.c (vect_get_constant_vectors): For
35873         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35874         element type.  If op is fold_convertible_p to vector_type's element
35875         type, use NOP_EXPR instead of VCE.
35877 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
35879         PR rtl-optimization/67778
35880         PR rtl-optimization/68634
35881         PR rtl-optimization/68909
35882         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
35883         block from the stack until done with it.  Remove a superfluous
35884         bitmap set.  Remove a superfluous bitmap test.
35886 2016-01-07  Martin Sebor  <msebor@redhat.com>
35888         PR c/68966
35889         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35890         constraint on the type of arguments.
35892 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
35894         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35895         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35896         unaligned_access on the gcc_options set.
35897         * config/arm/arm.c (arm_option_override_internal): Use
35898         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35900 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
35902         PR target/69140
35903         * config/i386/i386.c (ix86_frame_pointer_required): Enable
35904         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35906 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
35908         Revert
35909         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
35911         PR target/69140
35912         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35913         depending on frame_pointer_needed before remaining integer and SSE
35914         registers are saved.
35916 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
35918         PR 1078
35919         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35921 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
35923         PR target/69171
35924         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35925         Use the "xBm" constraint.
35926         (float<sseintvecmodelower><mode>2<mask_name><round_name):
35927         Likewise.
35928         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35929         (sse_cvtsi2ssq<round_name>): Likewise.
35930         (sse_cvtss2si<round_name>): Likewise.
35931         (sse_cvtss2siq<round_name>): Likewise.
35932         (sse2_cvtsi2sdq<round_name>): Likewise.
35933         (sse2_cvtsd2si<round_name>): Likewise.
35934         (sse2_cvtsd2siq<round_name>): Likewise.
35935         * config/i386/subst.md (round_nimm_scalar_predicate): New
35936         predicate.
35938 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
35940         PR middle-end/67639
35941         * varasm.c (make_decl_rtl): Mark invalid register vars as
35942         DECL_EXTERNAL.
35944         PR rtl-optimization/66206
35945         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35946         All callers changed.
35948 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
35950         PR tree-optimization/69141
35951         * tree-ssa-pre.c: Include langhooks.h.
35952         (eliminate_dom_walker::before_dom_children): Use
35953         lang_hooks.decl_printable_name instead of
35954         cgraph_node::get ()->name ().
35956         PR middle-end/68960
35957         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35958         it and DECL_ALIGN too.
35960 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
35962         * config/mips/mips-ftypes.def: Sort to lexicographical order.
35964 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
35966         PR target/69140
35967         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35968         depending on frame_pointer_needed before remaining integer and SSE
35969         registers are saved.
35971 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35973         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35974         mode iterator with VSX_M2.
35975         (*p9_vecstore_<mode>): Likewise.
35976         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35977         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35978         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35979         (define_split for VSX_LE128 stores): Likewise.
35980         (define_peephole2 for TImode LE swaps): Likewise.
35981         (define_split for VSX_LE128 post-reload stores): Likewise.
35983 2016-01-06  Marek Polacek  <polacek@redhat.com>
35985         PR sanitizer/69099
35986         * convert.c (convert_to_integer_1): Adjust call to
35987         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
35988         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
35989         EXPR instead of ARG.
35990         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35992 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
35994         PR 1078
35995         * doc/extend.texi (RL78 Variable Attributes): New section.
35997 2016-01-05  Marek Polacek  <polacek@redhat.com>
35999         PR c/69104
36000         * builtins.c (get_memmodel): Use expansion point location rather than
36001         the input location.  Call warning_at rather than warning.
36002         (expand_builtin_atomic_compare_exchange): Likewise.
36003         (expand_builtin_atomic_load): Likewise.
36004         (expand_builtin_atomic_store): Likewise.
36005         (expand_builtin_atomic_clear): Likewise.
36007 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
36009         PR target/68991
36010         * config/i386/i386.c (ix86_expand_vector_logical_operator):
36011         Replace nonimmediate_operand with vector_operand.
36012         * config/i386/predicates.md (vector_operand): New predicate.
36013         (general_vector_operand): Replace nonimmediate_operand with
36014         vector_operand.
36015         * config/i386/sse.md: Replace nonimmediate_operand with
36016         vector_operand and m constraint with Bm constraint on SSE
36017         patterns with 16-byte memory operand.
36018         * config/i386/subst.md (round_nimm_predicate): Replace
36019         nonimmediate_operand with vector_operand.
36020         (round_saeonly_nimm_predicate): Likewise.
36021         (round_saeonly_nimm_scalar_predicate): New.
36023 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
36025         PR target/68991
36026         * config/i386/constraints.md (Bm): New constraint.
36027         * config/i386/predicates.md (vector_memory_operand): New
36028         predicate.
36029         * config/i386/sse.md: Replace xm with xBm in plusminus and
36030         any_logic patterns.
36032 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
36034         PR 1078
36035         * doc/extend.texi (V850 Function Attributes): New section.
36036         (V850 Variable Attributes): New section.
36038 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
36040         PR 1078
36041         * doc/extend.texi (MicroBlaze Function Attributes): Document
36042         interrupt_handler and fast_interrupt attributes.
36044 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
36046         PR other/60465
36047         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
36048         for local symbolic operands.
36049         * config/ia64/predicates.md (local_symbolic_operand64): New
36050         predicate.
36052 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36054         PR rtl-optimization/68651
36055         * combine.c (combine_simplify_rtx): Canonicalize x + x into
36056         x << 1.
36058 2016-01-05  Nathan Sidwell  <nathan@acm.org>
36060         * alias.c (compare_base_decls): Use symtab_node::get.
36062 2016-01-05  Nick Clifton  <nickc@redhat.com>
36064         PR target/68770
36065         * ira-costs.c (copy_cost): Initialise the t_icode field of the
36066         secondary_reload_info structure.
36068         PR target/66655
36069         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
36070         decls if weak support is available.
36072 2016-01-04  Martin Sebor  <msebor@redhat.com>
36074         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
36076 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
36078         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
36079         OPTION_MASK_P9_DFORM.
36081         * config/rs6000/constraints.md (wo constraint): New constraint for
36082         ISA 3.0 (power9).
36084         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
36085         for wo constraint.
36086         (rs6000_init_hard_regno_mode_ok): Likewise.
36088         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
36089         wo constraint.
36091         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
36092         expanders not to have constraints.  Add support for ISA 3.0 xxperm
36093         instruction.  Add support for fusing xxlor with xxperm.
36094         (altivec_vperm_<mode>_internal): Likewise.
36095         (altivec_vperm_v8hiv16qi): Likewise.
36096         (altivec_vperm_<mode>v16q): Likewise.
36097         (altivec_vperm_<mode>_uns): Likewise.
36098         (vperm_v8hiv4si): Likewise.
36099         (vperm_v16qiv8hi): Likewise.
36101         * doc/md.texi (RS/6000 constraints): Document wo constraint.
36103 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
36105         Update copyright years.
36107         * gcc.c (process_command): Update copyright notice dates.
36108         * gcov-dump.c (print_version): Ditto.
36109         * gcov.c (print_version): Ditto.
36110         * gcov-tool.c (print_version): Ditto.
36111         * gengtype.c (create_file): Ditto.
36112         * doc/cpp.texi: Bump @copying's copyright year.
36113         * doc/cppinternals.texi: Ditto.
36114         * doc/gcc.texi: Ditto.
36115         * doc/gccint.texi: Ditto.
36116         * doc/gcov.texi: Ditto.
36117         * doc/install.texi: Ditto.
36118         * doc/invoke.texi: Ditto.
36120 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36122         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
36123         modes larger than TImode as TImode if NEON is not enabled.
36125 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36127         PR target/69100
36128         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
36129         mode for %f0-%f31 only if TARGET_FPU.
36131 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36133         PR target/69072
36134         * config/sparc/sparc.c (scan_record_type): Take into account subfields
36135         to compute the PACKED_P predicate.
36136         (function_arg_record_value): Minor tweaks.
36138 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36140         * doc/install.texi (--with-multilib-list): Describe the meaning of the
36141         option for arm*-*-* targets.
36143 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
36145         * doc/extend.texi (Common Function Attributes): Move docs for
36146         MSP430-specific attributes to....
36147         (MSP430 Function Attributes): ...here.  Delete the redundant
36148         entries and copy-edit the remaining text.
36149         (MSP430 Variable Attributes): Use uniform format for index
36150         entries and add a cross-reference to the corresponding function
36151         attribute docs.
36153 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
36155         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
36156         -finite-math typo.
36157         (x86 Options): Likewise.
36159 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
36161         PR 1078
36163         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
36164         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
36165         to corresponding attribute.
36167 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
36169         * doc/extend.texi (Common Function Attributes) <noplt>: Move
36170         to correct alphabetization of table.  Copy-edit and correct
36171         markup.
36172         <stack_protect>: Likewise.
36173         <target_clones>: Likewise.
36174         <simd>: Likewise.
36175         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
36176         Correct punctuation.
36177         (Code Gen Options) <-fno-plt>: Copy-edit.
36179 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36181         PR target/68917
36182         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
36183         SI values.  Explicitly convert SI to DI and vice-versa.
36185 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
36187         PR tree-optimization/69070
36188         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
36189         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
36191         PR sanitizer/69055
36192         * ubsan.c (ubsan_instrument_float_cast): Call
36193         initialize_sanitizer_builtins.
36195         PR target/69015
36196         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
36198 Copyright (C) 2016 Free Software Foundation, Inc.
36200 Copying and distribution of this file, with or without modification,
36201 are permitted in any medium without royalty provided the copyright
36202 notice and this notice are preserved.