PR tree-optimization/71831 - __builtin_object_size poor results with no
[official-gcc.git] / gcc / ChangeLog
blobbda43a58a03395a539fb7425c4e09a32ce7c1dbc
1 2016-09-01 Martin Sebor  <msebor@redhat.com>
3         PR tree-optimization/71831
4         * tree-object-size.h: Return bool instead of the size and add
5         argument for the size.
6         * tree-object-size.c (compute_object_offset): Update signature.
7         (addr_object_size): Same.
8         (compute_builtin_object_size): Return bool instead of the size
9         and add argument for the size.  Handle POINTER_PLUS_EXPR when
10         optimization is disabled.
11         (expr_object_size): Adjust.
12         (plus_stmt_object_size): Adjust.
13         (pass_object_sizes::execute): Adjust.
14         * builtins.c (fold_builtin_object_size): Adjust.
15         * doc/extend.texi (Object Size Checking): Update.
16         * ubsan.c (instrument_object_size): Adjust.
18 2016-09-01 Martin Sebor  <msebor@redhat.com>
20         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
21         it fits the output of the formatted function regardless of its
22         arguments.
23         * gcc/genmodes.c (parser::parse_expr): Same.
24         * gimplify.c (gimplify_asm_expr): Same.
25         * passes.c (pass_manager::register_one_dump_file): Same.
26         * print-tree.c (print_node): Same.
28 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
30         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
32 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
34         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
36 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
38         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
39         * config/rs6000/vector.md: Ditto.
40         * config/rs6000/vsx.md: Ditto.
42 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
44         * ipa-inline-analysis.c (param_change_prob): Get to the base object
45         first in all cases.
47 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
49         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
50         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
51         *return_and_restore_gpregs_<mode>_r11,
52         *return_and_restore_gpregs_<mode>_r12,
53         *return_and_restore_gpregs_<mode>_r1,
54         *return_and_restore_fpregs_<mode>_r11,
55         *return_and_restore_fpregs_<mode>_r12,
56         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
57         directly instead of via the "l" constraint.  Renumber operands.
58         Fix whitespace.
60 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
62         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
63         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
64         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
65         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
66         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
67         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
68         *call_value_nonlocal_darwin64, reload_macho_picbase,
69         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
70         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
71         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
72         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
73         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
74         *save_fpregs_<mode>_r1): Ditto.
75         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
76         *return_and_restore_gpregs_spe): Ditto.
78 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
80         * config/rs6000/rs6000.md
81         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
82         the use of the link register.
83         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
85 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
86             Michael Meissner <meissner@linux.vnet.ibm.com>
88         PR target/72827
89         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
90         reg+reg addressing for TImode.
91         (rs6000_legitimate_address_p): Only allow register indirect
92         addressing for TImode, even without TARGET_QUAD_MEMORY.
94 2016-09-01  Richard Biener  <rguenther@suse.de>
96         PR middle-end/77436
97         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
98         check whether the result fits the desired result type.
100 2016-09-01  Nathan Sidwell  <nathan@acm.org>
102         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
104 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
106         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
107         New function.
108         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
110 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
112         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
113         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
114         for comparisons of integer ZERO_EXTEND against zero.
116 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
118         * config/i386/i386.c (ix86_option_override_internal): Also disable the
119         STV pass if -mstackrealign is enabled.
121 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
123         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
124         AVX512IFMA.
126 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
128         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
129         (layout_range::intersects_line_p): New method.
130         (test_range_contains_point_for_single_point): Rename to...
131         (test_layout_range_for_single_point): ...this, and add testing
132         for layout_range::intersects_line_p.
133         (test_range_contains_point_for_single_line): Rename to...
134         (test_layout_range_for_single_line): ...this,  and add testing
135         for layout_range::intersects_line_p.
136         (test_range_contains_point_for_multiple_lines): Rename to...
137         (test_layout_range_for_multiple_lines): ...this,  and add testing
138         for layout_range::intersects_line_p.
139         (layout::layout): Populate m_fixit_hints.
140         (layout::get_expanded_location): Handle the case of a line-span
141         for a fix-it hint.
142         (layout::validate_fixit_hint_p): New method.
143         (get_line_span_for_fixit_hint): New function.
144         (layout::calculate_line_spans): Add spans for fixit-hints.
145         (layout::should_print_annotation_line_p): New method.
146         (layout::print_any_fixits): Drop param "richloc", instead using
147         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
148         (diagnostic_show_locus): Avoid printing blank annotation lines.
149         (selftest::test_diagnostic_context::test_diagnostic_context):
150         Initialize show_column and start_span.
151         (selftest::test_diagnostic_context::start_span_cb): New static
152         function.
153         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
154         (selftest::diagnostic_show_locus_c_tests): Update for function
155         renamings.  Call test_diagnostic_show_locus_fixit_lines.
157 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
159         PR tree-optimization/73714
160         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
162 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
164         * selftest.c: Move "namespace selftest {" to top of file,
165         removing explicit "selftest::" qualifiers throughout.
167 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
169         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
170         New types.
171         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
172         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
173         Replace builtin with vector extension.
174         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
175         New types.
176         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
177         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
178         Replace builtin with vector extension.
179         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
180         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
181         Replace builtin with vector extension.
182         * config/i386/xmmintrin.h (__m128_u): New type.
183         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
184         (_mm_load_ps, _mm_store_ps): Simplify.
186 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
188         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
190 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
192         * diagnostic-show-locus.c (colorizer::begin_state): Support more
193         than 3 ranges per diagnostic by alternating between color 1 and
194         color 2.
195         (layout::layout): Replace use of rich_location::MAX_RANGES
196         with richloc->get_num_locations ().
197         (layout::calculate_line_spans): Replace use of
198         rich_location::MAX_RANGES with m_layout_ranges.length ().
199         (layout::print_annotation_line): Handle arbitrary numbers of
200         ranges in caret-printing by defaulting to '^'.
201         (selftest::test_one_liner_many_fixits): New function.
202         (test_diagnostic_show_locus_one_liner): Call it.
203         * diagnostic.c (diagnostic_initialize): Update for renaming
204         of rich_location::MAX_RANGES to
205         rich_location::STATICALLY_ALLOCATED_RANGES.
206         * diagnostic.h (struct diagnostic_context): Likewise.
208 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
210         * selftest.c (selftest::named_temp_file::named_temp_file): New
211         ctor.
212         (selftest::temp_source_file::~temp_source_file): Move to...
213         (selftest::named_temp_file::~named_temp_file): ...here.
214         (selftest::test_named_temp_file): New function.
215         (selftest::selftest_c_tests): Call test_named_temp_file.
216         * selftest.h (class named_temp_file): New class.
217         (class temp_source_file): Convert to a subclass of named_temp_file.
219 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
221         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
222         USEs of LR_REGNO in returns and sibcalls.
223         (rs6000_output_mi_thunk): Similar.
224         (rs6000_sibcall_aix): Similar.
225         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
226         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
227         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
228         Remove the USE of LR_REGNO from the patterns as well.  Delete an
229         obsolete comment.
230         (return_internal_<mode>): Delete.
232 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
234         * gcc/config/aarch64/aarch64-simd.md
235         (aarch64_ld2<mode>_dreg_le): New.
236         (aarch64_ld2<mode>_dreg_be): New.
237         (aarch64_ld2<mode>_dreg): Removed.
238         (aarch64_ld3<mode>_dreg_le): New.
239         (aarch64_ld3<mode>_dreg_be): New.
240         (aarch64_ld3<mode>_dreg): Removed.
241         (aarch64_ld4<mode>_dreg_le): New.
242         (aarch64_ld4<mode>_dreg_be): New.
243         (aarch64_ld4<mode>_dreg): Removed.
244         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
246 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
248         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
249         redundant location param.
250         (test_one_liner_fixit_remove): Likewise.
251         (test_one_liner_fixit_replace): Likewise.
252         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
253         * gcc-rich-location.c
254         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
255         get_range_from_loc.  Drop overload taking a const char *.
256         * gcc-rich-location.h
257         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
258         a const char *.
260 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
262         * config/linux.c (linux_libc_has_function): Return true on musl.
264 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
266         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
268 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
270         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
271         used for abnormal egdes.
273 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
275         PR tree-optimization/72866
276         * tree-vect-patterns.c (search_type_for_mask): Turn into
277         a small wrapper, move all code to ...
278         (search_type_for_mask_1): ... this new function.  Add caching
279         and adjust recursive calls.
281         PR debug/77363
282         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
283         instead of lookup_type_die (type_main_variant (type)) even for array
284         types.
286         PR middle-end/77377
287         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
288         constant pool reference return x instead of c.
290 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
292         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
293         include MQ.
295 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
297         * input.c
298         (selftest::test_make_location_nonpure_range_endpoints): Fix
299         header comment.
301 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
303         * diagnostic-show-locus.c
304         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
305         function.
306         (selftest::test_diagnostic_show_locus_one_liner): Call it.
307         * input.c (get_pure_location): Move to libcpp/line-map.c.
308         * input.h (get_pure_location): Convert decl to an inline function
309         calling implementation in libcpp.
311 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
313         PR target/77403
314         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
315         template for intel asm dialect.
316         (vec_set_hi_<mode><mask_name>): Ditto.
318 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
320         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
321         (selftest::fail_formatted): Likewise.
323 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
325         * input.c (make_location): Call get_start and get_finish
326         on the endpoints to avoid storing packed ranges or ad-hoc
327         ranges in them.
328         (selftest::test_make_location_nonpure_range_endpoints): New function.
329         (selftest::input_c_tests): Call it.
330         * input.h (get_start): New inline function.
332 2016-08-29  Tom de Vries  <tom@codesourcery.com>
334         PR c/77398
335         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
336         with assert.
338 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
340         * Makefile.in (gcov-iov.h): Add dummy recipe.
342 2016-08-29  Nathan Sidwell  <nathan@acm.org>
344         * config/nvptx/nvptx.c: #include tree-vrp.h.
346 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
348         PR target/77324
349         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
350         HIGH+LO construct during reload.
352 2016-08-28  Tom de Vries  <tom@codesourcery.com>
354         PR lto/70955
355         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
356         'sysv_abi va_list' attribute.
357         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
358         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
359         attributes.
361 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
363         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
364         * emit-rtl.c (unshare_all_rtl_1): Adjust.
365         (unshare_all_rtl_again): Likewise.
366         * function.c (assign_stack_local_1): Likewise.
367         (assign_stack_temp_for_type): Likewise.
369 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
371         * cfgbuild.c (make_edges): Adjust.
372         * cfgrtl.c (can_delete_label_p): Likewise.
373         * dwarf2cfi.c (create_trace_edges): Likewise.
374         * except.c (sjlj_emit_dispatch_table): Likewise.
375         * function.h (struct expr_status): make x_forced_labels a vector.
376         * jump.c (rebuild_jump_labels_1): Adjust.
377         * reload1.c (set_initial_label_offsets): Likewise.
378         * stmt.c (force_label_rtx): Likewise.
379         (expand_label): Likewise.
381 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
383         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
385 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
387         PR tree-optimization/71077
388         PR tree-optimization/68542
389         * fold-const.c (fold_relational_const): Fix folding of
390         VECTOR_CST comparisons that have a scalar boolean result type.
391         (selftest::test_vector_folding): New static function.
392         (selftest::fold_const_c_tests): Call it.
394 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
396         * doc/extend.texi (SPU Built-in Functions): Remove stale
397         references to material formerly at IBM and Sony.
399 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
401         PR target/77349
402         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
404 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
406         * diagnostic-show-locus.c
407         (selftest::test_fixit_consolidation): New function.
408         (selftest::diagnostic_show_locus_c_tests): Call it.
409         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
410         constructor based on source_range.
412 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
414         * diagnostic-color.c (color_dict): Add "fixit-insert" and
415         "fixit-delete".
416         (parse_gcc_colors): Update description of default GCC_COLORS.
417         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
418         (colorizer::set_fixit_insert): New method.
419         (colorizer::set_fixit_delete): New method.
420         (colorizer::get_color_by_name): New method.
421         (colorizer::STATE_FIXIT_INSERT): New constant.
422         (colorizer::STATE_FIXIT_DELETE): New constant.
423         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
424         fields in favor of new field "m_stop_color".  Add fields
425         "m_fixit_insert" and "m_fixit_delete".
426         (colorizer::colorizer): Update for above changes.  Replace
427         colorize_start calls with calls to get_color_by_name.
428         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
429         STATE_FIXIT_DELETE.  Update for field renamings.
430         (colorizer::finish_state): Simplify by using m_stop_color,
431         rather than multiple identical "*_ce" fields.
432         (colorizer::get_color_by_name): New method.
433         (layout::print_any_fixits): Print insertions and replacements
434         using the "fixit-insert" color, and deletions using the
435         "fixit-delete" color.
436         * doc/invoke.texi (-fdiagnostics-color): Update description of
437         default GCC_COLORS, and of the supported capabilities.
439 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
441         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
442         current_function_static_stack_size variable with the static
443         stack frame size of the current function when
444         flag_stack_usage_info is enabled.
446 2016-08-26  Nathan Sidwell  <nathan@acm.org>
448         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
449         assignment inside if condition.
451 2016-08-26  Richard Biener  <rguenther@suse.de>
453         PR tree-optimization/69047
454         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
455         extracts similar to what FRE does.
456         (non_rewritable_mem_ref_base): Likewise.
458 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
460         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
461         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
462         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
463         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
464         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
465         Likewise.
466         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
467         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
468         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
469         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
470         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
472 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
474         PR target/70473
475         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
476         reservation duration to 15 cycles.
477         (cortex_a8_vfp_macs): Likewise.
478         (cortex_a8_vfp_macd): Likewise.
479         (cortex_a8_vfp_divs): Likewise.
480         (cortex_a8_vfp_divd): Likewise.
482 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
484         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
485         (aarch_macro_fusion_pair_p): Use above to avoid early return.
487 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
488             Martin Jambhor  <mjambor@suse.cz>
490         * common.opt: New option -fipa-bit-cp.
491         * doc/invoke.texi: Document -fipa-bit-cp.
492         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
493         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
494         * tree-ssa-ccp.h: New header file.
495         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
496         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
497         Replace all occurences of tree parameter by two new params: signop, int.
498         (bit_value_unop_1): Change to bit_value_unop and export it.
499         Replace all occurences of tree parameter by two new params: signop,
500         int.
501         (bit_value_binop): Change call from bit_value_binop_1 to
502         bit_value_binop.
503         (bit_value_assume_aligned): Likewise.
504         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
505         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
506         to ccp_finalize.
507         (ccp_finalize): Skip processing if val->mask == 0.
508         * ipa-cp.c: Include tree-ssa-ccp.h
509         (ipcp_bits_lattice): New class.
510         (ipcp_param_lattice (bits_lattice): New member.
511         (print_all_lattices): Call ipcp_bits_lattice::print.
512         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
513         (initialize_node_lattices): Likewise.
514         (propagate_bits_accross_jump_function): New function.
515         (propagate_constants_accross_call): Call
516         propagate_bits_accross_jump_function.
517         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
518         (ipcp_store_bits_results): New function.
519         (ipcp_driver): Call ipcp_store_bits_results.
520         * ipa-prop.h (ipa_bits): New struct.
521         (ipa_jump_func): Add new member bits of type ipa_bits.
522         (ipa_param_descriptor): Change decl to decl_or_type.
523         (ipa_get_param): Change decl to decl_or_type and assert on
524         PARM_DECL.
525         (ipa_get_type): New function.
526         (ipcp_transformation_summary): New member bits.
527         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
528         (ipa_populate_param_decls): Likewise.
529         (ipa_dump_param): Likewise.
530         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
531         function.
532         (ipa_set_jf_unknown): Set ipa_bits::known to false.
533         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
534         propagation.
535         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
536         (ipa_write_jump_function): Add streaming for ipa_bits.
537         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
538         (write_ipcp_transformation_info): Add streaming for ipa_bits
539         summary for ltrans.
540         (read_ipcp_transfomration_info): Add support for reading streamed
541         ipa_bits.
542         (ipcp_update_bits): New function.
543         (ipcp_transform_function): Call ipcp_update_bits.
545 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
547         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
548         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
550 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
552         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
554 2016-08-25  Richard Biener  <rguenther@suse.de>
556         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
557         Only add locations in late dwarf.
558         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
559         (dwarf2out_early_finish): But do it here.
561 2016-08-24  Michael Collison <michael.collison@linaro.org>
562             Michael Collison <michael.collison@arm.com>
564         * config/arm/arm-modes.def: Add new condition code mode CC_V
565         to represent the overflow bit.
566         * config/arm/arm.c (maybe_get_arm_condition_code):
567         Add support for CC_Vmode.
568         (arm_gen_unlikely_cbranch): New function to generate common
569         rtl conditional branches for overflow patterns.
570         * config/arm/arm-protos.h: Add prototype for
571         arm_gen_unlikely_cbranch.
572         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
573         addsi3_compareV_upper): New patterns to support signed
574         builtin overflow add operations.
575         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
576         New patterns to support unsigned builtin add overflow operations.
577         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
578         builtin overflow subtract operations,
579         (usubv<mode>4): New patterns to support unsigned builtin subtract
580         overflow operations.
581         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
582         to support builtin overflow negate operations.
584 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
586         Revert
587         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
589         * explow.c (get_dynamic_stack_size): Take known alignment of stack
590         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
591         needed.
593 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
595         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
596         MULTILIB_OPTIONS should be used.  Small wording fixes.
597         * genmultilib: Memorize set of all option combinations in
598         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
599         found in MULTILIB_OPTIONS by checking if option set is listed in
600         combination_space.  Output new and existing error message to stderr.
602 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
604         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
605         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
606         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
607         (MULTILIB_REUSE): Remove reuse rules for option set including
608         -mfpu=fp-armv8 and -mfpu=vfpv4
610 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
612         * config/arm/t-rtems: Add vfp multilib.
614 2016-08-23  Ian Lance Taylor  <iant@golang.org>
616         * config/s390/s390.c (s390_asm_file_start): Call
617         default_file_start.
619 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
621         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
622         initialization of all 0's to the 0 constant, instead of directly
623         generating XOR.  Add support for V4SImode vector initialization on
624         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
625         initialization.  Change variables used in V4SFmode vector
626         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
627         any memory addresses are in index form.  Add support for using
628         VSPLTH/VSPLTB to initialize vector short and vector char vectors
629         with all of the same element.
630         (regno_or_subregno): New helper function to return a register
631         number for either REG or SUBREG.
632         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
633         Use regno_or_subregno where possible.
634         (rs6000_split_v4si_init_di_reg): New helper function to build up a
635         DImode value from two SImode values in order to generate V4SImode
636         vector initialization on 64-bit systems with direct move.
637         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
638         initialization.
639         (rtx_is_swappable_p): V4SImode vector initialization insn is not
640         swappable.
641         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
642         declaration.
643         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
644         attributes to initialize V8HImode and V16QImode vectors with the
645         same element.
646         (VSX_SPLAT_COUNT): Likewise.
647         (VSX_SPLAT_SUFFIX): Likewise.
648         (UNSPEC_VSX_VEC_INIT): New unspec.
649         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
650         Allow SFmode values to come from Altivec registers.
651         (vsx_init_v4si): New insn/split for V4SImode vector initialization
652         on 64-bit systems with direct move.
653         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
654         vector initializations, to allow V4SImode vector initializations
655         on 64-bit systems with direct move.
656         (vsx_splat_v4si): Likewise.
657         (vsx_splat_v4si_di): Likewise.
658         (vsx_splat_v4sf): Likewise.
659         (vsx_splat_v4sf_internal): Likewise.
660         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
661         register classes.
662         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
663         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
664         initializing V8HImode and V16QImode vectors with the same
665         element.
666         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
667         optimization if -maltivec=be.
669 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
671         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
672         attribute for alternatives 3 and 4.
674 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
676         * selftest.c (selftest::assert_str_contains): New function.
677         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
678         * selftest.h (selftest::assert_str_contains): New decl.
679         (ASSERT_STR_CONTAINS): New macro.
681 2016-08-23  Richard Biener  <rguenther@suse.de>
683         PR tree-optimization/77286
684         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
685         the CFG here.
686         (vect_transform_loop): Split exit edges of loop and scalar
687         loop if required and at the appropriate time.
689 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
691         * explow.c (get_dynamic_stack_size): Take known alignment of stack
692         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
693         needed.
694         Correct a typo in a comment.
696 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
698         * config/s390/s390.md ("*andc_split"): New splitter for and with
699         complement.
701 2016-08-23  Richard Biener  <rguenther@suse.de>
703         PR tree-optimization/27336
704         * tree-vrp.c (infer_value_range): Handle stmts that can throw
705         by looking for a non-EH edge.
706         (process_assert_insertions_for): Likewise.
708 2016-08-23  Richard Biener  <rguenther@suse.de>
710         PR middle-end/77305
711         * statistics.c (statistics_counter_event): Robustify against
712         NULL current_pass.
714 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
716         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
717         for targets amdfam10 and barcelona.
719 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
721         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
722         (zero_extend<mode>di2): Ditto.
723         (*zero_extend<mode>si2): Ditto.
724         (*zero_extendqihi2): Ditto.
726 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
728         PR middle-end/77269
729         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
730         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
732 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
734         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
735         identical consecutive elements.
736         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
737         the node's def stmt, avoid printing an unwanted trailing newline by
738         replacing the call to print_gimple_stmt() with its inlined body and
739         adjusting it to not set pp_needs_newline and to call pp_flush()
740         instead of pp_newline_and_flush().
742 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
744         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
745         (float32_type_node, float64_type_node, float32x_type_node)
746         (float128x_type_node): New macros.
747         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
748         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
749         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
750         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
751         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
752         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
753         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
754         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
755         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
756         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
757         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
758         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
759         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
760         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
761         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
762         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
763         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
764         (copysign, fabs, huge_val, inf, nan, nans): Use it.
765         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
766         and copysign.
767         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
768         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
769         * doc/extend.texi (Other Builtins): Document these built-in
770         functions.
771         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
772         for nan and nans.
774 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
776         * doc/install.texi (Binaries): www.opencsw.org now uses https.
778 2016-08-22  Richard Biener  <rguenther@suse.de>
780         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
782 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
784         PR target/77270
785         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
786         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
787         non-SSE2 athlons only, otherwise prefer SSE prefetches.
789 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
791         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
792         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
793         (vrp_visit_switch_stmt): Likewise.
794         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
795         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
796         (vrp_visit_stmt): Use extract_range_from_stmt.
797         (vrp_visit_phi_node): Use extract_range_from_phi_node.
799 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
801         * Makefile.in: Add tree-vrp.h to GTFILES.
802         * gengtype.c (open_base_files): Add tree-vrp.h.
803         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
804         * builtins.c: Likewise.
805         * fold-const.c: Likewise.
806         * gimple-builder.c: Likewise.
807         * gimple-laddress.c: Likewise.
808         * hsa-gen.c: Likewise.
809         * internal-fn.c: Likewise.
810         * ssa.h: Likewise.
811         * targhooks.c: Liewise,
812         * tree-ssa-address.c: Likewise.
813         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
814         * tree-vrp.c (struct value_range): Move to tree-vrp.h
815         * tree-vrp.h: New file.
817 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
819         PR tree-optimization/61839
820         * tree-vrp.c (two_valued_val_range_p): New.
821         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
822         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
823         Also Convert VAR BINOP CST where VAR is two-valued to
824         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
826 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
828         * diagnostic-show-locus.c
829         (layout::annotation_line_showed_range_p): New method.
830         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
831         Reimplement case fixit_hint::REPLACE to cover removals, and
832         replacements where the range of the replacement isn't one
833         of the ranges in the rich_location.
834         (test_one_liner_fixit_replace): Likewise.
835         (selftest::test_one_liner_fixit_replace_non_equal_range): New
836         function.
837         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
838         New function.
839         (selftest::test_diagnostic_show_locus_one_liner): Call the new
840         functions.
841         * diagnostic.c (print_parseable_fixits): Remove case
842         fixit_hint::REMOVE.
844 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
846         PR target/77270
847         * config/i386/i386.c (ix86_option_override_internal): Remove
848         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
849         Enable SSE prefetch also for TARGET_PREFETCHWT1.
850         Do not try to enable TARGET_PRFCHW ISA flag here.
851         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
852         Rewrite expander function body.
853         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
855 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
857         PR c/32187
858         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
859         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
860         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
861         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
862         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
863         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
864         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
865         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
866         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
867         tree_index values.
868         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
869         macros.
870         (struct floatn_type_info): New structure type.
871         (floatn_nx_types): New variable declaration.
872         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
873         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
874         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
875         * tree.c (floatn_nx_types): New variable.
876         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
877         corresponding complex types.
878         * target.def (floatn_mode): New hook.
879         * targhooks.c: Include "real.h".
880         (default_floatn_mode): New function.
881         * targhooks.h (default_floatn_mode): New prototype.
882         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
883         types.
884         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
885         effective-target and dg-add-options keywords.
886         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
887         Document new effective-target keywords.
888         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
889         * doc/tm.texi: Regenerate.
890         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
891         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
892         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
893         18661-3.
894         * real.h (struct real_format): Add field ieee_bits.
895         * real.c (ieee_single_format, mips_single_format)
896         (motorola_single_format, spu_single_format, ieee_double_format)
897         (mips_double_format, motorola_double_format)
898         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
899         (ieee_extended_intel_128_format)
900         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
901         (mips_extended_format, ieee_quad_format, mips_quad_format)
902         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
903         (decimal_double_format, decimal_quad_format, ieee_half_format)
904         (arm_half_format, real_internal_format: Initialize ieee_bits
905         field.
906         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
907         float128_type_node.  Set float80_type_node to float64x_type_node
908         if appropriate and long_double_type_node not appropriate.
909         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
910         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
911         Initialize ieee_bits field.
912         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
913         (rs6000_init_builtins): Set ieee128_float_type_node to
914         float128_type_node.
915         (rs6000_floatn_mode): New function.
917 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
919         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
920         _rdseed64_step): Uglify argument names and/or local variable names
921         in inline functions.
922         * config/i386/rtmintrin.h (_xabort): Likewise.
923         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
924         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
925         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
926         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
927         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
928         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
929         _mm_maskz_ternarylogic_epi32): Likewise.
930         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
931         __lwpins32, __lwpins64): Likewise.
932         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
933         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
934         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
935         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
936         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
937         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
938         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
939         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
940         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
941         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
942         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
943         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
944         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
945         _mm256_mask_i64gather_epi32): Likewise.
946         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
947         * config/i386/ia32intrin.h (__writeeflags): Likewise.
948         * config/i386/pkuintrin.h (_wrpkru): Likewise.
949         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
950         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
951         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
952         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
953         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
954         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
955         _mm512_mask_prefetch_i64scatter_ps): Likewise.
956         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
957         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
958         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
959         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
960         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
961         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
962         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
963         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
965         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
966         returning void.
967         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
968         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
969         Likewise.
970         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
971         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
972         function name.
973         (_rdpkru_u32): Add space after function name.
975         * config/i386/t-i386 (i386-c.o): Don't depend on
976         i386-builtin-types.inc.
977         (i386.o): Depend on i386-builtin-types.inc.
979 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
981         PR target/77281
982         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
983         Use const_vec_duplicate to check for duplicated elements.
985 2016-08-19  Richard Biener  <rguenther@suse.de>
987         PR tree-optimization/77290
988         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
989         Fix flag_tree_parallelize_loops check.
991 2016-08-19  Richard Biener  <rguenther@suse.de>
993         * match.pd (x | 0 -> x): Add.
995 2016-08-19  Richard Biener  <rguenther@suse.de>
997         PR tree-optimization/77286
998         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
999         Deal with virtual PHIs being out-of-order.
1001 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1003         * doc/invoke.texi (fverbose-asm): Note that source code lines
1004         are emitted, and provide an example.
1005         * final.c (asm_show_source): New function.
1006         (final_scan_insn): Call asm_show_source.
1008 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1010         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
1011         param with diagnostic_kind.
1012         (class colorizer): Similarly replace field m_diagnostic with
1013         m_diagnostic_kind.
1014         (colorizer::colorizer): Replace diagnostic
1015         param with diagnostic_kind.
1016         (colorizer::begin_state): Update for above field change.
1017         (layout::layout): Replace diagnostic param with rich_location *
1018         and diagnostic_kind.
1019         (diagnostic_show_locus): Replace diagnostic param with richloc
1020         and diagnostic_kind.
1021         (class selftest::test_diagnostic_context): New class.
1022         (selftest::test_diagnostic_show_locus_unknown_location): New
1023         function.
1024         (selftest::test_one_liner_simple_caret): New function.
1025         (selftest::test_one_liner_caret_and_range): New function.
1026         (selftest::test_one_liner_multiple_carets_and_ranges): New
1027         function.
1028         (selftest::test_one_liner_fixit_remove): New function.
1029         (selftest::test_one_liner_fixit_replace): New function.
1030         (selftest::test_diagnostic_show_locus_one_liner): New function.
1031         (selftest::diagnostic_show_locus_c_tests): Call the new test
1032         functions.
1033         * diagnostic.c (diagnostic_initialize): Initialize
1034         colorize_source_p, show_ruler_p and parseable_fixits_p.
1035         (default_diagnostic_finalizer): Update for change to
1036         diagnostic_show_locus.
1037         (diagnostic_append_note): Likewise.
1038         * diagnostic.h (diagnostic_show_locus): Replace
1039         const diagnostic_info * param with location * and diagnostic_t.
1041 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1043         * input.c (saved_line_table): New global.
1044         (class selftest::temp_line_table): Rename to line_table_test and
1045         move declaration to selftest.h, and drop field m_old_line_table.
1046         (selftest::temp_line_table::temp_line_table): Rename ctor to...
1047         (selftest::line_table_test::line_table_test): ...this.  Add a
1048         default ctor.  Store current value of line_table within
1049         saved_line_table.
1050         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
1051         (selftest::line_table_test::~line_table_test): ...this, and
1052         restore line_table from the saved_line_table, rather than
1053         m_old_line_table.
1054         (selftest::test_accessing_ordinary_linemaps): Update for above
1055         renaming.
1056         (selftest::test_lexer): Likewise.
1057         (struct selftest::lexer_test): Likewise.
1058         (selftest::lexer_test::lexer_test): Likewise.
1059         (selftest::input_c_tests): Move the looping over test cases from
1060         here into...
1061         (selftest::for_each_line_table_case): New function.
1062         * input.h (saved_line_table): New decl.
1063         * selftest.h (struct selftest::line_table_case): New forward decl.
1064         (class selftest::line_table_test): New class, moved here from
1065         selftest::temp_line_table in input.c, and renamed.
1066         (selftest::for_each_line_table_case): New decl.
1068 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1070         PR target/72839
1071         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
1073 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
1075         PR middle-end/70895
1076         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
1077         enclosing parallel construct for reduction variables on OpenACC loop
1078         directives.
1080 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
1082         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
1083         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
1084         -gdwarf-3.
1085         (function_to_dwarf_procedure): Update comment.
1087 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1089         * input.c (diagnostics_file_cache_forcibly_evict_file): New
1090         function.
1091         * input.h (diagnostics_file_cache_forcibly_evict_file): New
1092         declaration.
1093         * selftest.c (selftest::temp_source_file::~temp_source_file):
1094         Evict m_filename from the diagnostic file cache.
1096 2016-08-18  Richard Biener  <rguenther@suse.de>
1098         * tree-pass.h (make_pass_materialize_all_clones): Declare.
1099         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
1100         make_pass_materialize_all_clones): New simple IPA pass encapsulating
1101         clone materialization.
1102         * passes.def (all_late_ipa_passes): Start with
1103         pass_materialize_all_clones.
1104         * cgraphunit.c (symbol_table::compile): Remove call to
1105         materialize_all_clones.
1106         * tree-into-ssa.c: Include statistics.h.
1107         (update_ssa): Count number of times we do incremental/rewrite
1108         SSA update.
1110 2016-08-18  Richard Biener  <rguenther@suse.de>
1112         PR tree-optimization/77282
1113         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1114         When doing auto-parallelizing also prevent use of PHIs that
1115         carry dependences across loop backedges.
1117 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
1118             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1120         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
1122 2016-08-18  Richard Biener  <rguenther@suse.de>
1124         * ssa-iterators.h (ssa_vuse_operand): New inline.
1125         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
1126         (predicate_all_scalar_phis): Use remove_phi_node to remove
1127         phi nodes predicated.  Delay removing virtual PHIs.
1128         (predicate_mem_writes): Update virtual operands.
1129         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
1130         (tree_if_conversion): Do not rewrite virtual SSA form.
1131         * tree-phinodes.c (release_phi_node): Make static.
1132         * tree-phinodes.h (release_phi_node): Remove.
1134 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
1136         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
1137         codes that appear in bdesc_* arrays, instead include i386-builtin.def
1138         twice to define those.
1139         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
1140         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
1141         bdesc_multi_arg): Define by including i386-builtin.def the third time.
1142         * config/i386/i386-builtin.def: New file.
1144 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
1146         * input.c (get_source_range_for_char): Rename to...
1147         (selftest::get_source_range_for_char): ...this, and move within
1148         the #if CHECKING_P guard.
1149         (get_num_source_ranges_for_substring): Rename to...
1150         (selftest::get_num_source_ranges_for_substring): ...this, move
1151         within the #if CHECKING_P guard, and make static.
1152         (selftest::assert_num_substring_ranges): Initialize
1153         actual_num_ranges.
1155 2016-08-18  Alan Modra  <amodra@gmail.com>
1157         PR rtl-optimization/72771
1158         * reload.c (find_reloads): Don't assume that a subreg mem is OK
1159         when find_reloads_toplev returns address_reloaded==-1.
1160         (alternative_allows_const_pool_ref): Update comment.
1162 2015-08-17  Alan Hayward <alan.hayward@arm.com>
1164         PR tree-optimization/71752
1165         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
1166         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
1168 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1170         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
1171         instead of testing ECF_NORETURN bit in gimple_call_flags.
1172         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
1173         * predict.c (tree_bb_level_predictions): Likewise.
1174         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
1176         PR middle-end/77259
1177         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1178         turning a call into __builtin_unreachable-like noreturn call, adjust
1179         gimple_call_set_fntype.
1180         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1181         gimple_call_fntype has void return type.
1183 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
1185         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
1186         maybe_lookup_decl, to handle nested acc loop directives.
1188 2016-08-17  Richard Biener  <rguenther@suse.de>
1190         PR tree-optimization/76490
1191         * tree-vrp.c (update_value_range): Preserve overflow infinities
1192         when intersecting with ranges from get_range_info.
1193         (operand_less_p): Handle overflow infinities correctly.
1194         (value_range_constant_singleton): Use vrp_operand_equal_p
1195         to handle overflow max/min correctly.
1196         (vrp_valueize): Likewise.
1197         (union_ranges): Likewise.
1198         (intersect_ranges): Likewise.
1199         (vrp_visit_phi_node): Improve iteration limitation to only
1200         apply when we'll possibly re-visit the PHI via a changed argument
1201         on the backedge.
1203 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1205         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
1206         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
1207         rather than those that should not be built.
1209 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
1211         PR target/66488
1212         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
1214 2016-08-17  Richard Biener  <rguenther@suse.de>
1216         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
1217         (verify_vssa): New function verifying virtual SSA form.
1218         (verify_ssa): Call it.
1219         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
1220         Do not apply loop-closed SSA handling to virtuals.
1221         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
1222         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
1223         when rewriting their symbol.
1224         (prepare_def_site_for): Likewise.
1225         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
1226         operands of moved stmts.
1228 2016-08-17  Richard Biener  <rguenther@suse.de>
1230         PR tree-optimization/23855
1231         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
1232         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
1233         find guards to hoist.  Do not update SSA form but rewrite virtuals
1234         into loop closed SSA.
1235         (find_loop_guard): Adjust to skip already hoisted guards.  Do
1236         not mark virtuals for renaming or update SSA form.
1238 2016-08-17  Martin Liska  <mliska@suse.cz>
1240         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
1241         a LONG_LONG_TYPE_SIZE comparison.
1242         * gcov-io.h: Remove macro definitions.
1243         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
1244         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
1245         comparison.
1247 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1249         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
1250         that builtins not mentioned in bdesc_* arrays come first, then
1251         the ones mentioned in bdesc_* arrays in the order they appear in
1252         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
1253         IX86_BUILTIN__BDESC_*_LAST enumerator.
1254         (bdesc_mpx): Fix up a comment typo.
1255         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
1256         __builtin_ia32_vpcomneu[bwdq] builtins.
1257         (BDESC_VERIFY, BDESC_VERIFYS): Define.
1258         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
1259         enum ix86_builtins ordering.
1260         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
1261         for direct bdesc_* array member access instead of searching all the
1262         arrays until an fcode match is found.
1264 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
1266         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
1267         pattern as define_insn_and_split.  Split insn before reload to
1268         ashl<mode>3_1.
1269         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
1270         <shift_insn><mode>3_1.
1271         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
1272         <rotate_insn><mode>3_1.
1274 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1276         PR c/72857
1277         * input.c (get_source_range_for_substring): Rename to...
1278         (get_source_location_for_substring): ...this, adding param
1279         "caret_idx", and converting output param from source_range * to
1280         location_t *.
1281         (get_source_range_for_char): New function.
1282         (get_num_source_ranges_for_substring): Update comment to reflect
1283         above renaming.
1284         (assert_char_at_range): Update to use get_source_range_for_char
1285         rather than get_source_range_for_substring.
1286         (test_lexer_string_locations_concatenation_2): Likewise.
1287         * substring-locations.h (get_source_range_for_substring): Rename
1288         to...
1289         (get_source_location_for_substring): ...this, and adding param
1290         "caret_idx", and converting output param from source_range * to
1291         location_t *.
1293 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1295         * input.c (class selftest::temp_source_file): Move to
1296         selftest.h.
1297         (selftest::temp_source_file::temp_source_file): Move to
1298         selftest.c.
1299         (selftest::temp_source_file::~temp_source_file): Likewise.
1300         * selftest.c (selftest::temp_source_file::temp_source_file): Move
1301         here from input.c.
1302         (selftest::temp_source_file::~temp_source_file): Likewise.
1303         * selftest.h (class selftest::temp_source_file): Move here from
1304         input.c
1306 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1308         PR target/71910
1309         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
1310         inlining, add cgraph edge for the added __builtin_unreachable call.
1312         PR middle-end/67485
1313         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
1314         only cast it to SHWI for the final comparison.
1316 2016-08-16  Martin Liska  <mliska@suse.cz>
1318         PR gcov-profile/36412
1319         * doc/gcov.texi: Document --hash-filenames(-x).
1320         * gcov.c (print_usage): Add the option.
1321         (process_args): Process the option, sort options alphabetically.
1322         (md5sum_to_hex): New function.
1323         (make_gcov_file_name): Do the md5sum and append it to a
1324         filename.
1326 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
1328         PR tree-optimization/69848
1329         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
1330         and swtich operands to avoid additional NOT instruction.
1331         (vcond<v_cmp_mixed><mode>): Ditto.
1332         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
1334 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1336         * doc/install.texi (*-*-solaris2*): Adjust latest change.
1338 2016-08-16  Richard Biener  <rguenther@suse.de>
1340         PR tree-optimization/76783
1341         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
1342         BB visited flags at start.
1344 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
1346         PR tree-optimization/72817
1347         PR tree-optimization/73450
1348         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
1349         multiple_of_p for adjusted IV.base.
1351 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
1353         PR target/72867
1354         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
1355         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
1356         for !flag_finite_math_only or flag_signed_zeros.
1357         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
1358         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
1359         depend on flag_finite_math_only.
1360         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
1361         New insn pattern.
1362         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
1363         (*ieee_smin<mode>3): Ditto.
1364         (*ieee_smax<mode>3): Ditto.
1365         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
1366         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
1367         flag_signed_zeros.
1368         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
1369         depend on flag_finite_math_only.
1370         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
1371         (*mmx_<code>v2sf3): Remove.
1372         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
1373         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
1374         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
1376 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
1378         PR rtl-optimization/73650
1379         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
1380         it is not a simple move.
1382 2016-08-15  Martin Liska  <mliska@suse.cz>
1384         PR driver/72765
1385         * gcc.c (do_spec_1): Call save_string with the right size.
1386         (save_string): Do an assert about string we copy.
1388 2016-08-15  Richard Biener  <rguenther@suse.de>
1390         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
1391         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
1392         TV_MACH_DEP.
1393         (pass_data_stv): Likewise.
1395 2016-08-15  Richard Biener  <rguenther@suse.de>
1397         PR tree-optimization/73434
1398         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
1399         TBAA info on the base when forwarding a non-invariant address.
1401 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
1403         * dwarf2out.c (struct checksum_attributes): Add
1404         at_string_length_bit_size and at_string_length_byte_size fields.
1405         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
1406         and DW_AT_string_length_byte_size.
1407         (die_checksum_ordered): Handle at_string_length_bit_size and
1408         at_string_length_byte_size.
1409         (gen_array_type_die): For dwarf_version >= 5 emit
1410         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
1411         (adjust_string_types): For dwarf_version >= 5 remove
1412         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
1413         (resolve_addr): Likewise.
1415         PR debug/71906
1416         * dwarf2out.c (string_types): New variable.
1417         (gen_array_type_die): Change early_dwarf handling of
1418         DW_AT_string_length, create DW_OP_call4 referencing the
1419         length var temporarily.  Handle parameters that are pointers
1420         to string length.
1421         (adjust_string_types): New function.
1422         (gen_subprogram_die): Temporarily set string_types to local var,
1423         call adjust_string_types if needed.
1424         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
1425         New functions.
1426         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
1428 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
1430         * doc/install.texi (*-*-solaris2*): Fix version number and document
1431         requirement on GNU make for building libjava with the Solaris linker.
1433 2016-08-15  Martin Liska  <mliska@suse.cz>
1434             Jakub Jelinek  <jakub@redhat.com>
1436         PR tree-optimization/72824
1437         * tree-loop-distribution.c (const_with_all_bytes_same)
1438         <case VECTOR_CST>: Fix a typo.
1440 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
1442         PR target/76342
1443         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
1444         Renamed from _mm512_undefined_si512.
1445         (_mm_undefined_si512): New definition.
1447 2016-08-13  Richard Biener  <rguenther@suse.de>
1449         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
1450         into PHIs and update the lattice for its def.
1452 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1454         PR c/71512
1455         * ubsan.c (instrument_si_overflow): Pass true instead of false
1456         to gsi_replace.
1457         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
1458         of bbs.  Return TODO_cleanup_cfg if any returned true.
1460 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1462         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
1463         ISA 3.0 MTVSRDD instruction.
1464         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
1465         vecperm.
1467 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1469         PR tree-optimization/71083
1470         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
1471         bitfield access when possible.
1473 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
1475         PR middle-end/71654
1476         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
1477         sign-changing cast from a shorter unsigned type to a wider
1478         signed type.
1480 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1482         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
1483         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
1484         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
1486 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1488         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1489         Correct costs for vec_construct.
1491 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
1493         PR tree-optimization/69848
1494         * tree-vectorizer.h (enum vect_def_type): New condition reduction
1495         type CONST_COND_REDUCTION.
1496         * tree-vect-loop.c (vectorizable_reduction): Support new condition
1497         reudction type CONST_COND_REDUCTION.
1499 2016-08-12  Richard Biener  <rguenther@suse.de>
1501         PR tree-optimization/57326
1502         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
1503         returning an SSA name.
1504         (phi_translate_1): When fully_constant_expression returns a NAME
1505         make sure we have a leader for it.
1507 2016-08-12  Martin Liska  <mliska@suse.cz>
1508             Adam Fineman  <afineman@afineman.com>
1510         * gcov.c (process_file): Create .gcov file when .gcda
1511         file is missing.
1513 2016-08-12  Marek Polacek  <polacek@redhat.com>
1515         PR c/7652
1516         * alias.c (find_base_value): Adjust fall through comment.
1517         * cfgexpand.c (expand_debug_expr): Likewise.
1518         * combine.c (find_split_point): Likewise.
1519         (expand_compound_operation): Likewise.  Add FALLTHRU.
1520         (make_compound_operation): Adjust fall through comment.
1521         (canon_reg_for_combine): Add FALLTHRU.
1522         (force_to_mode): Adjust fall through comment.
1523         (simplify_shift_const_1): Likewise.
1524         (simplify_comparison): Likewise.
1525         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
1526         FALLTHRU.
1527         * config/aarch64/predicates.md: Likewise.
1528         * config/i386/i386.c (function_arg_advance_32): Likewise.
1529         (ix86_gimplify_va_arg): Likewise.
1530         (print_reg): Likewise.
1531         (ix86_print_operand): Likewise.
1532         (ix86_build_const_vector): Likewise.
1533         (ix86_expand_branch): Likewise.
1534         (ix86_sched_init_global): Adjust fall through comment.
1535         (ix86_expand_args_builtin): Add FALLTHRU.
1536         (ix86_expand_builtin): Likewise.
1537         (ix86_expand_vector_init_one_var): Likewise.
1538         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
1539         (rs6000_adjust_cost): Likewise.
1540         (insn_must_be_first_in_group): Likewise.
1541         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
1542         * dbxout.c (dbxout_symbol): Adjust fall through comment.
1543         * df-scan.c (df_uses_record): Likewise.
1544         * dojump.c (do_jump): Add FALLTHRU.
1545         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
1546         comment.
1547         (resolve_args_picking_1): Adjust fall through comment.
1548         (loc_list_from_tree_1): Likewise.
1549         * expmed.c (make_tree): Likewise.
1550         * expr.c (expand_expr_real_2): Add FALLTHRU.
1551         (expand_expr_real_1): Likewise.  Adjust fall through comment.
1552         * fold-const.c (const_binop): Adjust fall through comment.
1553         (fold_truth_not_expr): Likewise.
1554         (fold_cond_expr_with_comparison): Add FALLTHRU.
1555         (fold_binary_loc): Likewise.
1556         (contains_label_1): Adjust fall through comment.
1557         (multiple_of_p): Likewise.
1558         * gcov-tool.c (process_args): Add FALLTHRU.
1559         * genattrtab.c (check_attr_test): Likewise.
1560         (write_test_expr): Likewise.
1561         * genconfig.c (walk_insn_part): Likewise.
1562         * genpreds.c (validate_exp): Adjust fall through comment.
1563         (needs_variable): Likewise.
1564         * gensupport.c (get_alternatives_number): Add FALLTHRU.
1565         (subst_dup): Likewise.
1566         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
1567         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
1568         (gimplify_scan_omp_clauses): Add FALLTHRU.
1569         (goa_stabilize_expr): Likewise.
1570         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
1571         through comment.
1572         * hsa-gen.c (get_address_from_value): Likewise.
1573         * ipa-icf.c (sem_function::hash_stmt): Likewise.
1574         * ira.c (ira_setup_alts): Add FALLTHRU.
1575         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
1576         comment.
1577         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
1578         * opts.c (common_handle_option): Likewise.
1579         * read-rtl.c (read_rtx_code): Likewise.
1580         * real.c (round_for_format): Likewise.
1581         * recog.c (asm_operand_ok): Likewise.
1582         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
1583         * reload1.c (set_label_offsets): Likewise.
1584         (eliminate_regs_1): Likewise.
1585         (reload_reg_reaches_end_p): Likewise.
1586         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
1587         (rtx_cost): Likewise.
1588         * sched-rgn.c (is_exception_free): Likewise.
1589         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
1590         * stor-layout.c (int_mode_for_mode): Likewise.
1591         * toplev.c (print_to_asm_out_file): Likewise.
1592         (print_to_stderr): Likewise.
1593         * tree-cfg.c (gimple_verify_flow_info): Likewise.
1594         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
1595         (chrec_fold_multiply): Likewise.
1596         (evolution_function_is_invariant_rec_p): Likewise.
1597         (for_each_scev_op): Likewise.
1598         * tree-data-ref.c (siv_subscript_p): Likewise.
1599         (get_references_in_stmt): Likewise.
1600         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
1601         (substitute_in_expr): Likewise.
1602         (type_cache_hasher::equal): Likewise.
1603         (walk_type_fields): Likewise.
1604         * var-tracking.c (adjust_mems): Add FALLTHRU.
1605         (set_dv_changed): Adjust fall through comment.
1606         * varasm.c (default_function_section): Add FALLTHRU.
1608 2016-08-12  Marek Polacek  <polacek@redhat.com>
1610         PR c/7652
1611         * tree-complex.c (expand_complex_division): Add missing break.
1613 2016-08-12  Richard Biener  <rguenther@suse.de>
1615         * passes.c (execute_todo): Do not push/pop TV_TODO.
1616         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
1617         (execute_one_pass): Likewise.
1618         * common.opt (ftime-report-details): New switch.
1619         * doc/invoke.texi (ftime-report-details): Document.
1620         * timevar.h (timer::print_row): Adjust signature.
1621         (timer::all_zero): New static helper.
1622         (timer::child_map_t): New typedef.
1623         (timer::time_var_def): Add children field.
1624         * timevar.c (timer::named_items::print): Adjust.
1625         (timer::~timer): Free timevar recorded children.
1626         (timer::pop_internal): When -ftime-report-details record
1627         time spent in sub-timevars.
1628         (timer::print_row): Adjust.
1629         (timer::print): Print sub-timevar stats, use all_zero.
1630         * timevar.def (TV_TODO): Remove.
1632 2016-08-12  Richard Biener  <rguenther@suse.de>
1634         PR tree-optimization/72851
1635         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
1636         worklists to use bitmaps indexed in execution order.
1637         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
1638         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
1639         (cfg_blocks): Make a bitmap.
1640         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
1641         New globals.
1642         (cfg_blocks_empty_p): Adjust.
1643         (cfg_blocks_add): Likewise.
1644         (cfg_blocks_get): Likewise.
1645         (add_ssa_edge): Likewise.
1646         (add_control_edge): Likewise.
1647         (simulate_stmt): Likewise.
1648         (process_ssa_edge_worklist): Likewise.
1649         (simulate_block): Likewise.
1650         (ssa_prop_init): Compute PRE order and stmt UIDs.
1651         (ssa_prop_fini): Adjust.
1652         (ssa_propagate): Adjust.
1654 2016-08-12  Richard Biener  <rguenther@suse.de>
1656         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
1657         the currently executable edges have fixed ranges.  Always
1658         go through update_value_range.
1660 2016-08-12  Alexandre Oliva <aoliva@redhat.com>
1662         PR debug/63240
1663         * langhooks-def.h
1664         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
1665         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
1666         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
1667         (LANG_HOOKS_DECLS): Add it.
1668         * langhooks.h (struct lang_hooks_for_decls): Add
1669         function_decl_defaulted.  Const_tree-ify
1670         function_decl_explicit_p and function_decl_deleted_p.
1671         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
1672         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
1673         also at strict DWARF v5.
1675         PR debug/55641
1676         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
1677         TYPE_QUAL_CONST in reference-typed decls.
1679         PR debug/49366
1680         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
1681         in DW_OP_pieces, just enough to handle pointers to member
1682         functions.
1683         (gen_remaining_tmpl_value_param_die_attribute): Use a location
1684         expression on DWARFv5 if a constant value doesn't work.
1686 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
1688         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
1689         * selftest.c (selftest::test_assertions): New function.
1690         (selftest::selftest_c_tests): New function.
1691         * selftest.h (selftest::selftest_c_tests): New declaration.
1693 2016-08-11  Richard Biener  <rguenther@suse.de>
1694             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1696         PR rtl-optimization/72855
1697         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
1699 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1701         PR target/72863
1702         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1703         (vsx_store_<mode>): Likewise.
1705 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
1707         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
1708         TImode CONST_WIDE_INT store.
1709         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
1711 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
1713         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
1714         mode if unaligned SSE load and store are optimal.
1716 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1718         PR tree-optimization/71083
1719         * tree-predcom.c (ref_at_iteration): Correctly align the
1720         reference type.
1722 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1724         * config/s390/s390-builtin-types.def: Add INT128 types.
1725         * config/s390/s390-builtins.def: Add INT128 variants for the add
1726         sub low-level builtins dealing with TImode.
1727         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
1728         via subreg when expanding a builtin.
1729         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
1730         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
1731         Fix comment.
1732         * config/s390/vecintrin.h: Adjust builtin names accordingly.
1733         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
1734         ("vec_addc<mode>", "vec_addc_u128"): Merge to
1735         "vacc<bhfgq>_<mode>".
1736         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
1737         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
1738         ("vec_subc<mode>", "vec_subc_u128"): Merge to
1739         "vscbi<bhfgq>_<mode>".
1740         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
1741         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
1743 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1745         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
1747 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
1749         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
1750         unused declaration.
1751         (vcond<v_cmp_mixed><mode>): Ditto.
1752         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
1754 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
1756         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
1757         variable explicitly, also assert on it before use.
1759 2016-08-11  Richard Biener  <rguenther@suse.de>
1761         PR tree-optimization/72772
1762         * cfgloopmanip.c (create_preheader): Use split_edge if there
1763         is a single loop entry, avoiding degenerate PHIs.
1765 2016-08-11  Richard Biener  <rguenther@suse.de>
1767         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
1768         unconditional TODO_cleanup_cfg.
1769         (pass_thread_jumps::execute): Initialize loops, perform a CFG
1770         cleanup only if we threaded a jump.
1772 2016-08-11  Alan Modra  <amodra@gmail.com>
1774         PR target/71680
1775         * lra-constraints.c (simplify_operand_subreg): Allow subreg
1776         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
1777         slow.  Emit two reloads for slow mem case, first loading in
1778         fast innermode, then converting to required mode.
1780 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1782         * config/rs6000/altivec.h (vec_extract_exp): New macro.
1783         (vec_extract_sig): New macro.
1784         (vec_insert_exp): New macro.
1785         (vec_test_data_class): New macro.
1786         (scalar_extract_exp): New macro.
1787         (scalar_extract_sig): New macro.
1788         (scalar_insert_exp): New macro.
1789         (scalar_test_data_class): New macro.
1790         (scalar_test_neg): New macro.
1791         (scalar_cmp_exp_gt): New macro.
1792         (scalar_cmp_exp_lt): New macro.
1793         (scalar_cmp_exp_eq): New macro.
1794         (scalar_cmp_exp_unordered): New macro.
1795         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
1796         to enforce constraint that operand is a 7-bit unsigned literal.
1797         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
1798         for power9 built-ins.
1799         (BU_P9V_VSX_2): Likewise.
1800         (BU_P9V_64BIT_VSX_2): Likewise.
1801         (VSEEDP): Add scalar extract exponent support.
1802         (VSEESP): Add scalar extract signature support.
1803         (VSTDCNDP): Add scalar test negative support.
1804         (VSTDCNSP): Likewise.
1805         (VSIEDP): Add scalar insert exponent support.
1806         (VSCEDPGT): Add scalar compare exponent greater than support.
1807         (VSCEDPLT): Add scalar compare exponent less than support.
1808         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
1809         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
1810         (VSTDCDP): Add scalar test data class support.
1811         (VSTDCSP): Likewise.
1812         (VSEEDP): Add overload support for scalar extract exponent
1813         operation.
1814         (VSESDP): Add overload support for scalar extract signature
1815         operation.
1816         (VSTDCN): Add overload support for scalar test negative
1817         operation.
1818         (VSTDCNDP): Add overload support for scalar test negative
1819         operation.
1820         (VSTDCNSP): Add overload support for scalar test negative
1821         operation.
1822         (VSIEDP): Add overload support for scalar insert exponent
1823         operation.
1824         (VSTDC): Add overload support for scalar test data class
1825         operation.
1826         (VSTDCDP): Add overload support for scalar test data class
1827         operation.
1828         (VSTDCSP): Add overload support for scalar test data class
1829         opreation.
1830         (VSCEDPGT): Add overload support for scalar compare exponent
1831         greater than operation.
1832         (VSCEDPLT): Add overload support for scalar compare exponent
1833         less than operation.
1834         (VSCEDPEQ): Add overload support for scalar compare exponent
1835         test-for-equality operation.
1836         (VSCEDPUO): Add overload support for scalar compare exponent
1837         test-for-unordered operation.
1838         (VEEDP): Add vector extract exponent support.
1839         (VEESP): Likewise.
1840         (VESDP): Add vector extract significand support.
1841         (VESSP): Likewise.
1842         (VIEDP): Add vector insert exponent support.
1843         (VIESP): Likewise.
1844         (VTDCDP): Add vector test data class support.
1845         (VTDCSP): Likewise.
1846         (VES): Add overload support for vector extract significand operation.
1847         (VESDP): Likewise.
1848         (VESSP): Likewise
1849         (VEE): Add overload support for vector extract exponent operation.
1850         (VEEDP): Likewise.
1851         (VEESP): Likewise.
1852         (VTDC): Add overload support for vector test data class operation.
1853         (VTDCDP): Likewise.
1854         (VTDCSP): Likewise.
1855         (VIE): Add overload support for vector insert exponent operation.
1856         (VIEDP): Likewise.
1857         (VIESP): Likewise.
1858         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1859         overloaded binary floating point functions.
1860         (altivec_resolve_overloaded_builtin): Improve error messages to
1861         distinguish between functions not supported in the current
1862         compiler configuration and functions that were invoked with an
1863         invalid parameter combination, and include the built-in function
1864         name in both error messages.
1865         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
1866         New prototype.
1867         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
1868         function.
1869         (rs6000_expand_binop_builtin): Add check to enforce that argument
1870         2 of the test data class operations is a 7-bit unsigned literal.
1871         (rs6000_invalid_builtin): Add code to issue an error message if a
1872         built-in function that requires the power9_vector and -m32
1873         command-line options is compiled without these options.
1874         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
1875         (UNSPEC_VSX_SXSIGDP): New value.
1876         (UNSPEC_VSX_SXSIGPDP): New value.
1877         (UNSPEC_VSX_SIEXPDP): New value.
1878         (UNSPEC_VSX_SCMPEXPDP): New value.
1879         (UNSPEC_VSX_STSTDC): New value.
1880         (UNSPEC_VSX_VXEXP): New value.
1881         (UNSPEC_VSX_VXSIG): New value.
1882         (UNSPEC_VSX_VIEXP): New value.
1883         (UNSPEC_VSX_VTSTDC): New value.
1884         (xsxexpdp): New insn for scalar extract exponent.
1885         (xsxsigdp): New insn for scalar extract significand.
1886         (xsiexpdp): New insn for scalar insert exponent.
1887         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
1888         (*xscmpexpdp): New insn for scalar compare exponents.
1889         (xststdc<Fvsx): New expansion for both single- and
1890         double-precision scalar test data class operations.
1891         (xststdcneg<Fvsx>): New expansion for both single- and
1892         double-precision scalar test for negative value operations.
1893         (*xststdc<Fvsx>): New insn for scalar test data class
1894         operation.
1895         (xvxexp<VSs>): New insn for single- and double-precision
1896         vector extract exponent operation.
1897         (xvxsig<VSs>): New insn for single- and double-precision
1898         vector extract significand operation.
1899         (xviexp<VSs>): New insn for single- and double-precision
1900         vector insert exponent operation.
1901         (xvtstdc<VSs>): New insn for single- and double-precision
1902         vector test data class operation.
1903         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1904         built-in functions to represent the Power9 binary floating-point
1905         support instructions.
1907 2016-08-10  bin cheng  <bin.cheng@arm.com>
1909         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
1911 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
1912             Renlin Li  <renlin.li@arm.com>
1913             Bin Cheng  <bin.cheng@arm.com>
1915         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
1916         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
1917         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
1918         (aarch64_vcond_internal<mode><mode>): Delete pattern.
1919         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
1920         (vcond<v_cmp_result><mode>): Ditto.
1921         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
1922         (vcondu<mode><mode>): Ditto.
1923         (vcond<v_cmp_mixed><mode>): New pattern.
1924         (vcondu<mode><v_cmp_mixed>): New pattern.
1925         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
1926         of aarch64_vcond_internal.
1928 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
1929             Renlin Li  <renlin.li@arm.com>
1930             Bin Cheng  <bin.cheng@arm.com>
1932         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
1933         (vec_cmp<mode><v_cmp_result>): New pattern.
1934         (vec_cmpu<mode><mode>): New pattern.
1935         (vcond_mask_<mode><v_cmp_result>): New pattern.
1937 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
1939         PR tree-optimization/71734
1940         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
1941         REF_LOOP, invoke ref_indep_loop_p_1.
1942         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
1943         to ref_indep_loop_p.
1944         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
1945         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
1946         is inside LOOP, do not cache dpendence value for loops with
1947         non-zero SAFELEN.
1948         (ref_indep_loop_p_2): Delete function.
1949         (can_sm_ref_p): Pass LOOP as additional argument to
1950         ref_indep_loop_p.
1952 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1954         PR target/72853
1955         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
1956         being an offsettable address.
1958 2016-08-10  Martin Liska  <mliska@suse.cz>
1960         PR gcov-profile/58306
1961         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
1962         atomic variants of profile update functions.
1964 2016-08-10  Martin Liska  <mliska@suse.cz>
1966         Cherry picked (and modified) from google-4_7 branch
1967         2012-12-26  Rong Xu  <xur@google.com>
1968         * common.opt (fprofile-update): Add new flag.
1969         * coretypes.h: Define enum profile_update.
1970         * doc/invoke.texi: Document -fprofile-update.
1971         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
1972         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
1973         * tree-profile.c (gimple_init_edge_profiler): Generate
1974         also atomic profiler update.
1975         (gimple_gen_edge_profiler): Likewise.
1977 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
1979         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
1980         stack_usage_file to NULL after fclose calls.
1982 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1984         PR target/71873
1985         * reload.c (push_reload): Compute subreg_in_class for
1986         subregs of constants and plus expressions. Remove special
1987         handling of SYMBOL_REFs.
1989 2016-08-10  Alan Modra  <amodra@gmail.com>
1991         PR target/71680
1992         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
1993         SImode for TARGET_E500_DOUBLE when given SImode.
1995 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
1997         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
1998         unused variable __O.
2000 2016-08-09  Martin Liska  <mliska@suse.cz>
2002         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
2003         _gcov_reset to __gcov_reset.
2004         * doc/gcov-tool.texi: Fix typo.
2006 2016-08-09  Martin Liska  <mliska@suse.cz>
2008         * value-prof.c (gimple_divmod_values_to_profile): Do not
2009         instrument MOD histogram if a value is not a SSA name.
2011 2016-08-09  Martin Liska  <mliska@suse.cz>
2013         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
2014         values.
2016 2016-08-09  Renlin Li  <renlin.li@arm.com>
2018         PR middle-end/64971
2019         * calls.c (prepare_call_address): Convert funexp to Pmode when
2020         necessary.
2021         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
2022         (sibcall_value): Likewise.
2024 2016-08-09  Marek Polacek  <polacek@redhat.com>
2026         PR c/7652
2027         * cselib.c (cselib_expand_value_rtx_1): Add return.
2028         * gengtype.c (dbgprint_count_type_at): Likewise.
2029         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
2030         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
2032 2016-08-09  Martin Jambor  <mjambor@suse.cz>
2034         PR ipa/71981
2035         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
2036         if instance is a MEM_REF.
2038 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
2040         PR target/72843
2041         * config/i386/i386.md (*movtf_internal): Use
2042         lra_in_progress || reload_completed instead of !can_create_pseudo_p
2043         in the insn constraint.
2044         (*movxf_internal): Ditto.
2045         (*movdf_internal): Ditto.
2046         (*movsf_internal): Ditto.
2048 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
2050         PR tree-optimization/72772
2051         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
2052         for expanded base.
2054 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
2056         PR tree-optimization/72772
2057         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
2058         parameter STOP.
2059         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
2060         parameter STOP and update calls.  Move expand_simple_operations
2061         function call from here...
2062         (simplify_using_initial_conditions): ...to here.  Delete parameter
2063         STOP.
2064         (tree_simplify_using_condition): Delete parameter STOP.
2065         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
2066         simplify_using_initial_conditions.
2068 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
2070         PR c/65345
2071         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
2072         Use create_tmp_var_raw instead of create_tmp_var.
2074 2016-08-09  Richard Biener  <rguenther@suse.de>
2076         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
2077         Treat same SSA names related.
2079 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
2081         PR tree-optimization/72824
2082         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
2083         real_zerop is not negative.
2085 2016-08-09  Richard Biener  <rguenther@suse.de>
2087         PR tree-optimization/71802
2088         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
2089         all merge opportunities with the predecessor.
2091 2016-08-09  Richard Biener  <rguenther@suse.de>
2093         PR ipa/68273
2094         * ipa-prop.c (ipa_modify_formal_parameters): Build
2095         parameter types with natural alignment also for the
2096         over-aligned case.
2098 2016-08-08  Andi Kleen  <ak@linux.intel.com>
2100         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
2102 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2104         PR c/64955
2105         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
2106         do-nothing langhook.
2107         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
2108         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
2109         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
2110         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
2112 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2114         PR bootstrap/72844
2115         * input.c: Ensure that HAVE_ICONV is defined.
2117 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
2119         PR middle-end/72781
2120         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
2121         private vars for lastprivate and for linear iterator.
2123         PR middle-end/68762
2124         * omp-simd-clone.c: Include varasm.h.
2125         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
2126         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
2127         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
2128         update function name.
2130 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2132         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
2133         (avr_diagnose_devicespecs_error): Remove.
2134         (avr_devicespecs_file): Remove composing absolute path for specfile
2135         and its verbose info. Remove conditions to check specs-file,
2137 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
2139         PR rtl-optimization/72821
2140         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
2141         just return false for them.
2143 2016-08-08  Alan Modra  <amodra@gmail.com>
2145         PR target/72771
2146         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
2147         toc refs created during reload.  Update function comment.
2149 2016-08-08  Alan Modra  <amodra@gmail.com>
2151         PR target/72802
2152         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
2153         alternatives.  Put loads first, then stores, and reg/reg moves
2154         within same class later.  Delete attr length.
2156 2016-08-08  Alan Modra  <amodra@gmail.com>
2158         PR target/72802
2159         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
2160         (mem_operand_ds_form): New predicate.
2161         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
2162         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
2163         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
2164         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
2165         (extendsfdf2_fpr): Replace o constraint with wY.
2167 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
2169         * tree-ssa-threadbackward.c: Include tree-inline.h
2170         (profitable_jump_thread_path): Use estimate_num_insns to estimate
2171         size of copied block; for cold paths reduce duplication.
2172         (find_jump_threads_backwards): Remove redundant tests.
2173         (pass_thread_jumps::gate): Enable for -Os.
2175 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
2177         PR c/72816
2178         * stor-layout.c (layout_decl): Fix up formatting.
2179         (relayout_decl): Allow DECL to be FIELD_DECL.
2181 2016-08-07  Alan Modra  <amodra@gmail.com>
2183         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
2185 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2187         * data-streamer-in.c (streamer_read_wide_int): New.
2188         (streamer_read_widest_int): Renamed function.
2189         * data-streamer-out.c (streamer_write_wide_int): New
2190         (streamer_write_widest_int): Renamed function.
2191         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
2192         data-stream-in.c.
2193         (input_cfg): Call renamed function.
2194         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
2195         data-stream-out.c.
2196         (output_cfg): Call renamed function.
2197         * data-streamer.h: Add declarations.
2199 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2201         * tree-ssa-ccp.c (extend_mask): New param sgn.
2202         Remove ORing with wi::mask.
2203         (get_default_value): Adjust call to extend_mask to pass sign.
2204         (evaluate_stmt): Likewise.
2206 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
2208         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
2209         INT64_MAX.
2211 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2213         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
2214         transform if operand's type is pointer to function or method.
2216 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
2218         PR tree-optimization/18046
2219         * tree-ssa-threadedge.c: Include cfganal.h.
2220         (simplify_control_statement_condition): If simplifying a
2221         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
2222         with the dominating ASSERT_EXPR before handing it off to VRP.
2223         Mention that a CASE_LABEL_EXPR may be returned.
2224         (thread_around_empty_blocks): Adjust to handle
2225         simplify_control_statement_condition() returning a
2226         CASE_LABEL_EXPR.
2227         (thread_through_normal_block): Likewise.
2228         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
2229         a switch statement by trying to determine which case label
2230         will be taken.
2232 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
2234         PR rtl-optimization/69847
2235         * lra-constraints.c (process_invariant_for_inheritance): Save
2236         pattern instead of src.
2237         (remove_inheritance_pseudos): Use the pattern.  Add assert.
2239 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
2241         * input.c (string_concat::string_concat): New constructor.
2242         (string_concat_db::string_concat_db): New constructor.
2243         (string_concat_db::record_string_concatenation): New method.
2244         (string_concat_db::get_string_concatenation): New method.
2245         (string_concat_db::get_key_loc): New method.
2246         (class auto_cpp_string_vec): New class.
2247         (get_substring_ranges_for_loc): New function.
2248         (get_source_range_for_substring): New function.
2249         (get_num_source_ranges_for_substring): New function.
2250         (class selftest::lexer_test_options): New class.
2251         (struct selftest::lexer_test): New struct.
2252         (class selftest::ebcdic_execution_charset): New class.
2253         (selftest::ebcdic_execution_charset::s_singleton): New variable.
2254         (selftest::lexer_test::lexer_test): New constructor.
2255         (selftest::lexer_test::~lexer_test): New destructor.
2256         (selftest::lexer_test::get_token): New method.
2257         (selftest::assert_char_at_range): New function.
2258         (ASSERT_CHAR_AT_RANGE): New macro.
2259         (selftest::assert_num_substring_ranges): New function.
2260         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
2261         (selftest::assert_has_no_substring_ranges): New function.
2262         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
2263         (selftest::test_lexer_string_locations_simple): New function.
2264         (selftest::test_lexer_string_locations_ebcdic): New function.
2265         (selftest::test_lexer_string_locations_hex): New function.
2266         (selftest::test_lexer_string_locations_oct): New function.
2267         (selftest::test_lexer_string_locations_letter_escape_1): New function.
2268         (selftest::test_lexer_string_locations_letter_escape_2): New function.
2269         (selftest::test_lexer_string_locations_ucn4): New function.
2270         (selftest::test_lexer_string_locations_ucn8): New function.
2271         (selftest::uint32_from_big_endian): New function.
2272         (selftest::test_lexer_string_locations_wide_string): New function.
2273         (selftest::uint16_from_big_endian): New function.
2274         (selftest::test_lexer_string_locations_string16): New function.
2275         (selftest::test_lexer_string_locations_string32): New function.
2276         (selftest::test_lexer_string_locations_u8): New function.
2277         (selftest::test_lexer_string_locations_utf8_source): New function.
2278         (selftest::test_lexer_string_locations_concatenation_1): New
2279         function.
2280         (selftest::test_lexer_string_locations_concatenation_2): New
2281         function.
2282         (selftest::test_lexer_string_locations_concatenation_3): New
2283         function.
2284         (selftest::test_lexer_string_locations_macro): New function.
2285         (selftest::test_lexer_string_locations_stringified_macro_argument):
2286         New function.
2287         (selftest::test_lexer_string_locations_non_string): New function.
2288         (selftest::test_lexer_string_locations_long_line): New function.
2289         (selftest::test_lexer_char_constants): New function.
2290         (selftest::input_c_tests): Call the new test functions once per
2291         case within the line_table test matrix.
2292         * input.h (struct string_concat): New struct.
2293         (struct location_hash): New struct.
2294         (class string_concat_db): New class.
2295         * substring-locations.h: New header.
2297 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
2299         PR tree-optimization/72810
2300         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
2301         the type of the case labels when truncating.
2303 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
2305         PR Target/72819
2306         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
2307         (aarch64_fp16_ptr_type_node): Likewise.
2308         * config/aarch64/aarch64-simd-builtins.c
2309         (aarch64_fp16_ptr_type_node): Define.
2310         (aarch64_init_fp16_types): New, refactored out of...
2311         (aarch64_init_builtins): ...here, update to call
2312         aarch64_init_fp16_types.
2313         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
2314         HFmode.
2315         (aapcs_vfp_sub_candidate): Likewise.
2317 2016-08-05  Martin Liska  <mliska@suse.cz>
2318             Joshua Cranmer  <Pidgeot18@gmail.com>
2320         * gcov.c (line_t::has_block): New function.
2321         (enum loop_type): New enum.
2322         (handle_cycle): New function.
2323         (unblock): Likewise.
2324         (circuit): Likewise.
2325         (get_cycles_count): Likewise.
2326         (accumulate_line_counts): Use new loop detection algorithm.
2328 2016-08-05  Martin Liska  <mliska@suse.cz>
2330         * gcov.c (output_intermediate_file): Rename
2331         function_info::line_next to next_file_fn.
2332         (process_file): Likewise.
2333         (read_graph_file): Likewise.
2334         (accumulate_line_counts): Likewise.
2335         (output_lines): Likewise.
2337 2016-08-05  Richard Biener  <rguenther@suse.de>
2339         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
2340         restriction on threading to a loop header.
2342 2016-08-05  Richard Biener  <rguenther@suse.de>
2344         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
2345         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
2346         adjust loop info accordingly.
2348 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2350         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
2351         before folding call to __builtin_constant_p with parameters to false.
2353 2016-08-05  Alan Modra  <amodra@gmail.com>
2355         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
2356         code accidentally committed 2016-05-02 providing class when given
2357         NO_REGS.
2359 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
2361         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
2362         the case label ranges that partially overlap with OP's value
2363         range.
2365 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
2367         PR target/72805
2368         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
2369         Cast builtin function result to __mmask16 instead of __mmask8.
2370         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2371         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
2372         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2374 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
2376         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
2377         (ASSERT_TRUE_AT): New macro.
2378         (ASSERT_FALSE): Reimplement in terms of...
2379         (ASSERT_FALSE_AT): New macro.
2380         (ASSERT_STREQ_AT): Fix typo in comment.
2382 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
2384         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
2385         labels are exhaustive, designate the label with the widest
2386         range to be the default label.
2388 2016-08-04  Andrew Pinski  <apinski@cavium.com>
2390         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
2391         (thunderx_tunings): Use thunderx_vector_cost instead of
2392         generic_vector_cost.
2394 2016-08-04  Martin Liska  <mliska@suse.cz>
2396         * gcov.c (main): Fix GNU coding style.
2397         (output_intermediate_file): Likewise.
2398         (process_file): Likewise.
2399         (generate_results): Likewise.
2400         (release_structures): Likewise.
2401         (create_file_names): Likewise.
2402         (find_source): Likewise.
2403         (read_graph_file): Likewise.
2404         (find_exception_blocks): Likewise.
2405         (canonicalize_name): Likewise.
2406         (make_gcov_file_name): Likewise.
2407         (mangle_name): Likewise.
2408         (accumulate_line_counts): Likewise.
2409         (output_branch_count): Likewise.
2410         (read_line): Likewise.
2412 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2414         PR rtl-optimization/71779
2415         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
2416         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
2417         or if it was truncated.
2419         PR rtl-optimization/70903
2420         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
2422 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
2424         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
2425         accessing SSA_NAME_PTR_INFO.
2427 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
2429         PR 70677
2430         * common/config/avr/avr-common.c (avr_option_optimization_table)
2431         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
2433 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
2435         PR 55181
2436         * config/avr/avr.md: New pattern to work around do_store_flag
2437         generating shift instructions for bit extractions.
2439 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
2441         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
2442         BITMAP_ALLOC.
2443         (add_equivalence): Likewise.
2444         (get_value_range): Allocate value range with vrp_value_range_pool.
2445         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
2446         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
2448 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2450         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
2451         the default for the rs6000 port.
2453 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2455         PR middle-end/71876
2456         * calls.c (special_function_p): Remove special handling of
2457         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
2458         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
2459         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
2461 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
2463         PR middle-end/72778
2464         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
2465         Don't stop on regular insns.
2467 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
2469         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
2470         size to DImode boundary.
2471         (nvptx_propagate): Likewise.
2473 2016-08-03  Alan Modra  <amodra@gmail.com>
2475         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
2476         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
2477         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
2478         from -mefficient-unaligned-vector.  Note that this affects fp too.
2480 2016-08-03  Alan Modra  <amodra@gmail.com>
2482         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
2483         cost more.
2485 2016-08-03  Alan Modra  <amodra@gmail.com>
2487         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
2488         to a reg.  Localize vars.
2490 2016-08-03  Alan Modra  <amodra@gmail.com>
2492         * config/rs6000/rs6000.opt: Remove negatives from help strings
2493         and comments.
2495 2016-08-03  Alan Modra  <amodra@gmail.com>
2497         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2498         Delete duplicated code.
2500 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
2502         PR middle-end/72778
2503         * lra-spills.c (regno_in_use_p): New.
2504         (lra_final_code_change): Use it.
2506 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
2508         PR rtl-optimization/69847
2509         * lra-int.h (struct lra-reg): Use restore_rtx instead of
2510         restore_regno.
2511         (lra_rtx_hash): New.
2512         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
2513         of restore_regno.
2514         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
2515         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
2516         * lra-spills.c (lra_final_code_change): Don't delete insn when the
2517         next insn is USE with the same reg as the current insn source.
2518         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
2519         of restore_regno.
2520         (lra_constraints_init): Call initiate_invariants.
2521         (lra_constraints_finish): Call finish_invariants.
2522         (struct invariant, invariant_t, invariant_ptr_t): New.
2523         (const_invariant_ptr_t, invariants, invariants_pool): New.
2524         (invariant_table, invariant_hash, invariant_eq_p): New.
2525         (insert_invariant, initiate_invariants, finish_invariants): New.
2526         (clear_invariants, invalid_invariant_regs): New.
2527         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
2528         instead of restore_regno.
2529         (invariant_p, process_invariant_for_inheritance): New.
2530         (inherit_in_ebb): Implement invariant inheritance.
2531         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
2532         (remove_inheritance_pseudos): Implement undoing invariant
2533         inheritance.
2534         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
2535         instead of restore_regno.
2536         * lra-assigns.c (regno_live_length): New.
2537         (reload_pseudo_compare_func): Use regno_live_length.
2538         (assign_by_spills): Use restore_rtx instead of restore_regno.
2539         (lra_assign): Ditto.  Initiate regno_live_length.
2541 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
2543         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
2544         __builtin_aarch64_fmindf.
2546 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
2548         PR tree-optimization/34114
2549         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
2550         information for more control IVs.
2552 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
2554         PR tree-optimization/34114
2555         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
2556         PLUS_EXPR case.  Handle SSA_NAME case.
2558 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
2560         * config/aarch64/aarch64-simd-builtins.def
2561         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
2562         (__builtin_aarch64_fmaxdf): Likewise.
2563         (__builtin_aarch64_smin_nandf): Likewise.
2564         (__builtin_aarch64_smax_nandf): Likewise.
2565         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
2566         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
2567         (<fmaxmin><mode>3): ...this.
2568         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
2569         (vminnm_f64): Likewise.
2570         (vmin_f64): Likewise.
2571         (vmax_f64): Likewise.
2572         * config/aarch64/iterators.md (FMAXMIN): Merge with...
2573         (FMAXMIN_UNS): ...this.
2574         (fmaxmin): Merged with
2575         (fmaxmin_op): ...this...
2576         (maxmin_uns_op): ...in to this.
2578 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2580         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2581         Add support for vec_extract on vector float, vector int, vector
2582         short, and vector char vector types.
2583         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2584         vector float, vector int, vector short, and vector char
2585         optimizations on 64-bit ISA 2.07 systems for both constant and
2586         variable element numbers.
2587         (rs6000_split_vec_extract_var): Likewise.
2588         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
2589         Altivec registers on ISA 2.07 and above.
2590         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
2591         which never was matched due to the split occuring before register
2592         allocation (and the code would not have worked on little endian
2593         systems if it did match).  Allow extracts to go to the Altivec
2594         registers if ISA 2.07 (power8).  Change from using "" around the
2595         C++ code to using {}'s.
2596         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
2597         vec_extracts when the vector is in memory.
2598         (vsx_extract_v4sf_var): New insn to optimize vector float
2599         vec_extracts when the element number is variable on 64-bit ISA
2600         2.07 systems.
2601         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
2602         for 64-bit ISA 2.07 as well as ISA 3.0.
2603         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
2604         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
2605         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
2606         optimize vector int, vector short, and vector char vec_extracts
2607         when the vector is in memory.
2608         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
2609         optimize vector int, vector short, and vector char vec_extracts
2610         when the element number is variable.
2612 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2614         PR target/71948
2615         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
2616         does not overlap with other symbol flags.
2618 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
2620         * config/aarch64/aarch64.h (aarch64_frame):
2621         Remove padding0 and hardfp_offset.  Add locals_offset,
2622         initial_adjust, callee_adjust, callee_offset and final_adjust.
2623         * config/aarch64/aarch64.c (aarch64_layout_frame):
2624         Remove unused padding0 and hardfp_offset initializations.
2625         Choose frame layout and set frame variables accordingly.
2626         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
2627         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
2628         (aarch64_pop_regs): Likewise.
2629         (aarch64_expand_prologue): Remove all decision code, just emit
2630         prolog according to frame variables.
2631         (aarch64_expand_epilogue): Remove all decision code, just emit
2632         epilog according to frame variables.
2633         (aarch64_initial_elimination_offset): Use offset to local/arg area.
2635 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2637         PR target/72748
2638         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
2639         fix_debug_reg_uses after changing source register mode to
2640         V1TImode if source register is undefined.
2642 2015-08-01  Alan Hayward <alan.hayward@arm.com>
2644         PR tree-optimization/71818
2645         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
2646         with non invariant evolutions
2648 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2650         PR target/72767
2651         * config/avr/avr.md (length) [branch]: Correct insn length
2652         attribute for forward branches.
2654 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2656         * doc/extend.texi (AVR Built-in Functions): Document
2657         __builtin_avr_nops.
2658         * config/avr/builtins.def (NOPS): New.
2659         * config/avr/avr.c (avr_expand_nops): New static function.
2660         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
2662 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2664         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
2665         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
2666         addresses.
2668 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
2670         * config/aarch64/aarch64.c (vulcan_tunings): Update
2671         vulcan L1 cache_line_size.
2673 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2675         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
2676         function that takes a vector memory address, a hard register, an
2677         element number and a temporary base register, and recreates an
2678         address that points to the appropriate element within the vector.
2679         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
2680         (rs6000_split_vec_extract_var): Add support for the target of a
2681         vec_extract with variable element number being a scalar memory
2682         location.
2683         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
2684         swappable.
2685         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
2686         vsx_extract_<mode>_load insn with a new insn that optimizes
2687         storing either element to a memory location, using scratch
2688         registers to pick apart the vector and reconstruct the address.
2689         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
2690         (vsx_extract_<mode>_store): Rework alternatives to more correctly
2691         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
2692         store instruction.
2693         (vsx_extract_<mode>_var): Add support for extracting a variable
2694         element number from memory.
2696 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
2698         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
2699         when testing for compares against constants of the form 0xabab.
2701 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
2703         PR tree-optimization/57558
2704         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
2705         function.
2706         (vect_loop_versioning): Support versioning with niter assumptions.
2707         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
2708         (vect_get_loop_niters): New parameter.  Reimplement to support
2709         assumptions in loop niter info.
2710         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
2711         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
2712         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
2713         Support loop versioning for niters.
2714         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
2715         (vect_free_loop_info_assumptions): New function.
2716         (vectorize_loops): Free loop niter info for loops with flag
2717         LOOP_F_ASSUMPTIONS set if vectorization failed.
2718         * tree-vectorizer.h (struct _loop_vec_info): New field
2719         num_iters_assumptions.
2720         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
2721         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
2722         (LOOP_REQUIRES_VERSIONING): New macro.
2723         (vect_free_loop_info_assumptions): New decl.
2725 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
2727         * cfgloop.h (struct loop): New field constraints.
2728         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
2729         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
2730         functions.
2731         * cfgloop.c (alloc_loop): Initialize new field.
2732         * cfgloopmanip.c (copy_loop_info): Copy constraints.
2733         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
2734         Adjust niter analysis wrto loop constraints.
2735         * doc/loop.texi (@node Number of iterations): Add description for loop
2736         constraints.
2738 2016-07-29  Marek Polacek  <polacek@redhat.com>
2740         PR c/7652
2741         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
2742         (ix86_expand_round_builtin): Likewise.
2744 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
2745             Georg-Johann Lay  <avr@gjlay.de>
2747         PR rtl-optimization/71976
2748         * combine.c (get_last_value): Return 0 if the argument for which
2749         the function is called has a wider mode than the recorded value.
2751 2016-07-29  Marek Polacek  <polacek@redhat.com>
2753         PR c/7652
2754         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
2755         (altivec_expand_st_builtin): Likewise.
2757 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
2759         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
2760         introduced in r238381.
2762 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
2764         PR middle-end/68217
2765         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
2766         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
2768 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2770         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
2771         New declaration.
2772         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2773         Add support for vec_extract of vector double or vector long having
2774         a variable element number on 64-bit ISA 2.07 systems or newer.
2775         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
2776         Likewise.
2777         (rs6000_split_vec_extract_var): New function to split a
2778         vec_extract built-in function with variable element number.
2779         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
2780         swappable.
2781         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
2782         (UNSPEC_VSX_EXTRACT): Likewise.
2783         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
2784         direct move instructions to be generated on 64-bit ISA 2.07
2785         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
2786         instruction.
2787         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
2788         arguments for vec_extract variable element.
2789         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
2790         vec_extract with variable element on V2DFmode and V2DImode
2791         vectors.
2792         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
2793         -mupper-regs-df requirement, since it isn't needed.
2794         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
2795         do direct moves on 64-bit systems, which allows optimization of
2796         vec_extract on 64-bit ISA 2.07 systems and newer.
2798 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
2799 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
2801          * config/aarch64/aarch64.md
2802         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
2803         statement and type.
2804         (<optab>qihi2_aarch64): Likewise, and split into two.
2805         (extendqihi2_aarch64): New.
2806         (zero_extendqihi2_aarch64): New.
2807         * config/aarch64/iterators.md (ldrxt): Remove.
2808         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
2809         uxtb/uxth.
2811 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
2813         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
2815 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
2817         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
2818         (aarch64_push_reg): New function to push 1 or 2 registers.
2819         (aarch64_pop_reg): New function to pop 1 or 2 registers.
2820         (aarch64_expand_prologue): Use aarch64_push_regs.
2821         (aarch64_expand_epilogue): Use aarch64_pop_regs.
2823 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
2825         PR tree-optimization/71734
2826         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
2827         attribute instead of REF_LOOP and use it.
2828         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
2829         set it for Loops having non-zero safelen attribute.
2830         (ref_indep_loop_p): Pass zero as initial value for safelen.
2832 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
2834         PR middle-end/72657
2835         PR target/72683
2836         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
2837         call using chkp_gimple_call_builtin_p.
2838         (chkp_copy_bounds_for_assign): Likewise.
2840 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2842         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
2843         * config/arm/arm-protos.h (struct tune_params): Likewise.
2844         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
2845         (cortex_a9_sched_adjust_cost): Likewise.
2846         (fa726te_sched_adjust_cost): Likewise.
2847         (arm_adjust_cost): Likewise.
2848         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
2849         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
2850         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
2851         * config/i386/i386.c (ix86_adjust_cost): Likewise.
2852         * config/ia64/ia64.c: Likewise.
2853         * config/m68k/m68k.c: Likewise.
2854         * config/mep/mep.c (mep_adjust_cost): Likewise.
2855         * config/microblaze/microblaze.c (microblaze_adjust_cost):
2856         * Likewise.
2857         * config/mips/mips.c (mips_adjust_cost): Likewise.
2858         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
2859         * Likewise.
2860         * config/pa/pa.c (pa_adjust_cost): Likewise.
2861         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
2862         (rs6000_debug_adjust_cost): Likewise.
2863         * config/sh/sh.c (sh_adjust_cost): Likewise.
2864         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
2865         (hypersparc_adjust_cost): Likewise.
2866         (sparc_adjust_cost): Likewise.
2867         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
2868         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
2869         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
2870         * Likewise.
2871         * config/visium/visium.c (visium_adjust_cost): Likewise.
2872         * doc/tm.texi: Regenerate.
2873         * haifa-sched.c (dep_cost_1): Adjust.
2874         * target.def: Merge adjust_cost and adjust_cost_2.
2876 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2878         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
2880 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2882         * store-motion.c (struct st_expr): Make pattern_regs a vector.
2883         (extract_mentioned_regs): Append to a vector instead of
2884         returning a rtx_expr_list.
2885         (st_expr_entry): Adjust.
2886         (free_st_expr_entry): Likewise.
2887         (store_ops_ok): Likewise.
2888         (store_killed_in_insn): Likewise.
2889         (find_moveable_store): Likewise.
2891 2016-07-28  Martin Liska  <mliska@suse.cz>
2893         PR gcov-profile/68025
2894         * tree-profile.c (tree_profiling): Respect
2895         no_profile_instrument_function attribute.
2896         * doc/extend.texi: Document no_profile_instrument_function
2897         attribute.
2899 2016-07-28  Martin Liska  <mliska@suse.cz>
2901         PR rtl-optimization/70944
2902         * combine.c (make_compound_operation):
2903         Do not allow make_compound_operation for vector mode
2905 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
2907         PR middle-end/71994
2908         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
2909          before calling get_ops.
2911 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2913         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
2914         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
2915         (BITS_PER_UNIT_LOG): Remove.
2916         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
2917         * expr.c (expand_assignment): Likewise.
2918         * stor-layout.c (initialize_sizetypes): Likewise.
2920 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
2922         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
2923         signature of rs6000_expand_vector_extract so that the element
2924         number is a RTX instead of a constant integer.
2925         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
2926         Likewise.
2927         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
2928         (altivec_expand_vec_ext_builtin): Likewise.
2929         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
2930         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
2931         MFVSRLD instruction.
2933 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
2935         * input.c (get_pure_location): Move here from tree.c.
2936         (make_location): Likewise.  Add header comment.
2937         (selftest::test_accessing_ordinary_linemaps): Verify
2938         pure_location_p, make_location, get_location_from_adhoc_loc and
2939         get_range_from_loc.
2940         * input.h (get_pure_location): Move declaration here from tree.h.
2941         (get_finish): Likewise for inline function.
2942         (make_location): Likewise for declaration.
2943         * tree.c (get_pure_location): Move to input.c.
2944         (make_location): Likewise.
2945         * tree.h (get_pure_location): Move declaration to tree.h.
2946         (get_finish): Likewise for inline function.
2947         (make_location): Likewise for declaration.
2949 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2951         PR middle-end/71078
2952         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
2954 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
2956         * system.h (STATIC_ASSERT): Use static_assert if building
2957         with C++11 onwards.
2959 2016-07-27  Richard Biener  <rguenther@suse.de>
2961         PR tree-optimization/72517
2962         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2963         Revert change to not compute read-read dependences.
2965 2016-07-27  Richard Biener  <rguenther@suse.de>
2967         * predict.c (set_even_probabilities): Make nedges unsigned.
2969 2016-07-27  Martin Liska  <mliska@suse.cz>
2971         * predict.c (set_even_probabilities): Handle unlikely edges.
2972         (combine_predictions_for_bb): Likewise.
2974 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2976         PR target/71869
2977         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
2978         __float128 support when we don't have hardware support, so that
2979         the IEEE built-in functions like isgreater, first call __unordkf3
2980         to make sure neither operand is a NaN, and if both operands are
2981         ordered, do the normal comparison.
2983 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
2985         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
2986         name.
2987         (extract_code_and_val_from_cond_with_ops): Verify that name is
2988         either cond_op0 or cond_op1.
2990 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
2992         PR tree-optimization/18046
2993         * genmodes.c (emit_mode_size_inline): Emit an assert that
2994         verifies that mode is a valid array index.
2995         (emit_mode_nuinits_inline): Likewise.
2996         (emit_mode_inner_inline): Likewise.
2997         (emit_mode_unit_size_inline): Likewise.
2998         (emit_mode_unit_precision_inline): Likewise.
2999         * tree-vrp.c: Include params.h.
3000         (find_switch_asserts): Register edge assertions for the default
3001         label which correspond to the anti-ranges of each case label.
3002         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
3003         * doc/invoke.texi: Document it.
3005 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3007         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
3008         and unnecessary call to gimple_bb.
3010 2016-07-26  Richard Biener  <rguenther@suse.de>
3012         PR rtl-optimization/71984
3013         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
3014         for VOIDmode.
3016 2016-07-26  Richard Biener  <rguenther@suse.de>
3018         PR middle-end/72517
3019         * expmed.c (extract_bit_field_1): Constrain the vector mode
3020         with element size matching the extraction mode size when
3021         choosing a better vector mode to do the extraction from.
3023 2016-07-26  Richard Biener  <rguenther@suse.de>
3024             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3026         PR middle-end/70920
3027         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
3028         pattern.
3030 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3032         * tree-ssa-structalias.c (struct scc_info): Change types of
3033         members to auto_sbitmap and auto_vec.
3034         (scc_info::scc_info): New constructor.
3035         (scc_info::~scc_info): New destructor.
3036         (init_scc_info): Remove.
3037         (free_scc_info): Remove.
3038         (find_indirect_cycles): Adjust.
3039         (perform_var_substitution): Likewise.
3040         (free_var_substitution_info): Likewise.
3042 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3044         * tree-outof-ssa.c (struct elim_graph): Change type of members
3045         to auto_vec and auto_sbitmap.
3046         (elim_graph::elim_graph): New constructor.
3047         (delete_elim_graph): Remove.
3048         (expand_phi_nodes): Adjust.
3050 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3052         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
3053         (new_elim_graph): Adjust.
3054         (clear_elim_graph): Likewise.
3055         (delete_elim_graph): Likewise.
3056         (elim_graph_size): Likewise.
3057         (elim_graph_add_node): Likewise.
3058         (elim_graph_add_edge): Likewise.
3059         (elim_graph_remove_succ_edge): Likewise.
3060         (eliminate_name): Likewise.
3061         (eliminate_build): Likewise.
3062         (elim_forward): Likewise.
3063         (elim_unvisited_predecessor): Likewise.
3064         (elim_backward): Likewise.
3065         (elim_create): Likewise.
3066         (eliminate_phi): Likewise.
3067         (expand_phi_nodes): Likewise.
3069 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3071         * bt-load.c (compute_out): Use auto_sbitmap class.
3072         (link_btr_uses): Likewise.
3073         * cfganal.c (mark_dfs_back_edges): Likewise.
3074         (post_order_compute): Likewise.
3075         (inverted_post_order_compute): Likewise.
3076         (pre_and_rev_post_order_compute_fn): Likewise.
3077         (single_pred_before_succ_order): Likewise.
3078         * cfgexpand.c (pass_expand::execute): Likewise.
3079         * cfgloop.c (verify_loop_structure): Likewise.
3080         * cfgloopmanip.c (fix_bb_placements): Likewise.
3081         (remove_path): Likewise.
3082         (update_dominators_in_loop): Likewise.
3083         * cfgrtl.c (break_superblocks): Likewise.
3084         * ddg.c (check_sccs): Likewise.
3085         (create_ddg_all_sccs): Likewise.
3086         * df-core.c (df_worklist_dataflow): Likewise.
3087         * dse.c (dse_step3): Likewise.
3088         * except.c (eh_region_outermost): Likewise.
3089         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3090         * gcse.c (prune_expressions): Likewise.
3091         (prune_insertions_deletions): Likewise.
3092         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
3093         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3094         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
3095         * lcm.c (compute_earliest): Likewise.
3096         (compute_farthest): Likewise.
3097         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
3098         (unroll_loop_runtime_iterations): Likewise.
3099         (unroll_loop_stupid): Likewise.
3100         * lower-subreg.c (decompose_multiword_subregs): Likewise.
3101         * lra-lives.c: Likewise.
3102         * lra.c (lra): Likewise.
3103         * modulo-sched.c (schedule_reg_moves): Likewise.
3104         (optimize_sc): Likewise.
3105         (get_sched_window): Likewise.
3106         (sms_schedule_by_order): Likewise.
3107         (check_nodes_order): Likewise.
3108         (order_nodes_of_sccs): Likewise.
3109         (order_nodes_in_scc): Likewise.
3110         * recog.c (split_all_insns): Likewise.
3111         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
3112         * reload1.c (reload): Likewise.
3113         * sched-rgn.c (haifa_find_rgns): Likewise.
3114         (split_edges): Likewise.
3115         (compute_trg_info): Likewise.
3116         * sel-sched.c (init_seqno): Likewise.
3117         * store-motion.c (remove_reachable_equiv_notes): Likewise.
3118         * tree-into-ssa.c (update_ssa): Likewise.
3119         * tree-ssa-live.c (live_worklist): Likewise.
3120         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
3121         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3122         * Likewise.
3123         (try_peel_loop): Likewise.
3124         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
3125         * Likewise.
3126         * tree-ssa-pre.c (compute_antic): Likewise.
3127         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3128         * tree-stdarg.c (reachable_at_most_once): Likewise.
3129         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
3130         * var-tracking.c (vt_find_locations): Likewise.
3132 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3134         * sbitmap.h (auto_sbitmap): New class.
3136 2016-07-26  Alan Modra  <amodra@gmail.com>
3138         PR target/72103
3139         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
3140         sri->t_icode.
3142 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
3144         * input.c (selftest::temp_source_file::temp_source_file): Fix
3145         missing "%s" in fprintf.
3147 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
3149         PR middle-end/71732
3150         * cselib.c (cselib_process_insn): Invalidate argument slots for
3151         const/pure calls.
3153 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3155         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
3156         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
3157         vmulxh_lane_f16, vmulxh_laneq_f16): New.
3159 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3161         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3162         * config/aarch64/aarch64.md (fma, fnma): Support HF.
3163         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
3165 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3167         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3168         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
3169         New.
3170         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
3171         (add<mode>3): Likewise.
3172         (sub<mode>3): Likewise.
3173         (mul<mode>3): Likewise.
3174         (div<mode>3): Likewise.
3175         (*div<mode>3): Likewise.
3176         (<fmaxmin><mode>3): Extend to HF.
3177         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
3178         (fabd<mode>3): Likewise.
3179         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
3180         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
3181         (aarch64_fmulx<mode>): Likewise.
3182         (aarch64_fac<optab><mode>): Likewise.
3183         (aarch64_frecps<mode>): Likewise.
3184         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
3185         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
3186         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
3187         (VSDQ_HSDI): Support HI.
3188         (fcvt_target, FCVT_TARGET): Likewise.
3189         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
3190         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
3191         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
3192         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
3193         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
3194         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
3195         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
3196         vrsqrtsh_f16): New.
3198 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3200         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
3201         * config/aarch64/aarch64-builtins.c (hi_UP): New.
3202         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3203         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
3204         mode.
3205         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
3206         (aarch64_cm<optab><mode>): Likewise.
3207         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
3208         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
3209         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3210         (sqrt<mode>2): Likewise.
3211         (*sqrt<mode>2): Likewise.
3212         (abs<mode>2): Likewise.
3213         (<optab><mode>hf2): New pattern for HF mode.
3214         (<optab>hihf2): Likewise.
3215         * config/aarch64/arm_neon.h: Include arm_fp16.h.
3216         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
3217         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
3218         Support HF mode.
3219         * config/aarch64/arm_fp16.h: New file.
3220         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
3221         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
3222         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
3223         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
3224         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
3225         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
3226         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
3227         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
3228         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
3229         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
3230         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
3231         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
3232         vsqrth_f16): New.
3234 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3236         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
3237         reduc_smin_scal_): Use VDQIF_F16.
3238         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
3239         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
3240         Use VHSDF.
3241         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
3242         * config/aarch64/iterators.md (VDQIF_F16): New.
3243         (vp): Support HF modes.
3244         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
3245         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
3247 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3249         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
3250         "*aarch64_mulx_elt_from_dup<mode>".
3251         (*aarch64_mul3_elt<mode>): Update schedule type.
3252         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
3253         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
3254         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
3255         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
3256         (f, fp): Support HF modes.
3257         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
3258         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
3259         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
3260         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
3261         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
3262         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
3264 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3266         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3267         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
3268         modes.
3269         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
3270         vfmsq_f16): New.
3272 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3274         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3275         * config/aarch64/aarch64-simd.md
3276         (aarch64_rsqrts<mode>): Extend to HF modes.
3277         (fabd<mode>3): Likewise.
3278         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
3279         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
3280         (aarch64_<maxmin_uns>p<mode>): Likewise.
3281         (<su><maxmin><mode>3): Likewise.
3282         (<maxmin_uns><mode>3): Likewise.
3283         (<fmaxmin><mode>3): Likewise.
3284         (aarch64_faddp<mode>): Likewise.
3285         (aarch64_fmulx<mode>): Likewise.
3286         (aarch64_frecps<mode>): Likewise.
3287         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
3288         (add<mode>3): Extend to HF modes.
3289         (sub<mode>3): Likewise.
3290         (mul<mode>3): Likewise.
3291         (div<mode>3): Likewise.
3292         (*div<mode>3): Likewise.
3293         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
3294         HF, V4HF and V8HF.
3295         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
3296         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
3297         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
3298         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
3299         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
3300         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
3301         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
3302         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
3303         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
3304         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
3305         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
3306         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
3307         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
3308         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
3310 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3312         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
3313         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3314         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
3315         (neg<mode>2): Likewise.
3316         (abs<mode>2): Likewise.
3317         (<frint_pattern><mode>2): Likewise.
3318         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
3319         (<optab><VDQF:mode><fcvt_target>2): Likewise.
3320         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
3321         (ftrunc<VDQF:mode>2): Likewise.
3322         (<optab><fcvt_target><VDQF:mode>2): Likewise.
3323         (sqrt<mode>2): Likewise.
3324         (*sqrt<mode>2): Likewise.
3325         (aarch64_frecpe<mode>): Likewise.
3326         (aarch64_cm<optab><mode>): Likewise.
3327         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
3328         HF, V4HF and V8HF.
3329         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
3330         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
3331         (stype): New.
3332         * config/aarch64/arm_neon.h (vdup_n_f16): New.
3333         (vdupq_n_f16): Likewise.
3334         (vld1_dup_f16): Use vdup_n_f16.
3335         (vld1q_dup_f16): Use vdupq_n_f16.
3336         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
3337         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
3338         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
3339         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
3340         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
3341         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
3342         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
3343         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
3344         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
3345         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
3346         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
3347         vsqrt_f16, vsqrtq_f16): New.
3349 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3351         * config/aarch64/aarch64-simd.md
3352         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
3353         (aarch64_ext<mode>): Likewise.
3354         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
3355         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
3356         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
3357         and V8HFmode.
3358         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
3359         float16x8_t.
3360         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
3361         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
3362         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
3363         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
3364         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
3365         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
3366         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
3367         New.
3368         (vmov_n_f16): Reimplement using vdup_n_f16.
3369         (vmovq_n_f16): Reimplement using vdupq_n_f16..
3371 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3373         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
3374         "frame_related_p".  Generate CFA annotation when it's necessary.
3375         (aarch64_expand_prologue): Use aarch64_add_constant.
3376         (aarch64_expand_epilogue): Likewise.
3377         (aarch64_output_mi_thunk): Pass "false" when calling
3378         aarch64_add_constant.
3380 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3382         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
3383         sequences.
3385 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3387         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
3388         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
3389         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
3390         (aarch64_build_constant): Delete.
3392 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
3394         Revert
3395         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
3397         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
3398         flag_toplevel_reorder.
3400 2016-07-25  Richard Biener  <rguenther@suse.de>
3402         * cgraph.c (cgraph_node::verify_node): Compare against builtin
3403         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
3404         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
3405         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
3406         (streamer_get_builtin_tree): Likewise.
3407         (streamer_write_builtin): Likewise.
3408         * lto-streamer.h (LTO_builtin_decl): Remove.
3409         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
3410         (lto_input_scc): Remove LTO_builtin_decl handling.
3411         (lto_input_tree_1): Liekwise.
3412         * lto-streamer-out.c (lto_output_tree_1): Remove special
3413         handling of builtins.
3414         (DFS::DFS): Likewise.
3415         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
3416         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
3417         assert.
3418         (streamer_write_builtin): Remove.
3420 2016-07-25  Martin Liska  <mliska@suse.cz>
3422         * lto-cgraph.c (input_symtab): Don't call get_working_sets
3423         if flag_auto_profile is set to true.
3425 2016-07-25  Martin Liska  <mliska@suse.cz>
3427         PR gcov-profile/71868
3428         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
3429         have a function with multiple latches, count them all.
3431 2016-07-25  Martin Liska  <mliska@suse.cz>
3433         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
3435 2016-07-25  Martin Liska  <mliska@suse.cz>
3437         PR tree-optimization/71987
3438         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
3439         just for SSA_NAMEs. Fix GNU coding style.
3441 2016-07-25  Martin Liska  <mliska@suse.cz>
3443         PR gcov-profile/64874
3444         * gcov-io.h: Update command about file format.
3445         * gcov-iov.c (main): Adapt the numbering scheme.
3447 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3449         PR middle-end/66726
3450         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
3451         whose result is used in PHI.
3452         (final_range_test_p): Likewise.
3453         (maybe_optimize_range_tests): Likewise.
3455 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3457         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3458         Reformat two multi-line strings.
3460 2016-07-22 Martin Sebor  <msebor@redhat.com>
3462         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
3464 2016-07-22 Martin Sebor  <msebor@redhat.com>
3466         PR c/71560
3467         * doc/extend.texi (Compound Literals): Correct and clarify.
3468         (Cast to Union): Same.
3470 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3472         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3473         comments to explain why certain error messages make mention of
3474         undocumented options.
3475         (rs6000_invalid_builtin): Change error messages to replace mention
3476         of undocumented options with mention of the -mcpu=power9 option
3477         that enables those undocumented options.
3478         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
3479         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
3480         definition of this macro to correct an existing error.
3481         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
3482         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
3483         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
3484         descriptions of built-in functions so that they depend on
3485         -mcpu=power9 instead of on the corresponding undocumented flags.
3486         * doc/invoke.texi (Option Summary):  Remove all mention of newly
3487         undocumented flags.
3488         (IBM RS/6000 and PowerPC Options): Likewise.
3489         * doc/md.texi (Constraints for Particuliar Machines): Remove all
3490         mention of newly undocumented flags.
3492 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
3494         * ipa-cp.c (determine_versionability): Do not create constprop clones,
3495         when target_clones attribute is set.
3497 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
3499         * common.opt (funsafe-loop-optimizations): Mark ignore.
3500         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
3501         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
3502         related code.
3503         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
3504         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
3506 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
3508         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
3509         Parameter.
3510         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
3511         Parameter.
3512         (number_of_iterations_exit): Warn missed loop optimization for
3513         possible infinite loops.
3515 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
3517         PR target/71216
3518         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
3519         when to emit a ".machine" pseudo-op.
3521 2016-07-22  Martin Liska  <mliska@suse.cz>
3523         PR gcov-profile/69028
3524         PR gcov-profile/62047
3525         * coverage.c (coverage_compute_lineno_checksum): Do not
3526         calculate checksum for fns w/o xloc.file.
3527         (coverage_compute_profile_id): Likewise.
3529 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
3531         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
3532         (avr_secondary_reload): ...and implementation.
3533         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
3534         * config/avr/avr.md (reload_in<mode>): Remove insns.
3535         (adjust_len) [lpm]: Remove insn attribute value.
3536         * config/avr/predicates.md (flash_operand): Remove insn predicate.
3538 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3540         PR middle-end/71876
3541         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
3542         attribute.
3543         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
3544         * calls.c (special_function_p): Remove the special handling of the
3545         "__builtin_" prefix.
3547 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3549         PR middle-end/71876
3550         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
3551         if STMT may be an alloca call.
3552         (gimple_alloca_call_p, alloca_call_p): Return only true for the
3553         builtin alloca call.
3554         * calls.h (gimple_maybe_alloca_call_p): New function.
3555         * tree-inline.c (inline_forbidden_p_stmt): Use
3556         gimple_maybe_alloca_call_p here.
3558 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
3560         * spellcheck-tree.c (best_macro_match::best_macro_match):
3561         Explictly specify the template arguments when invoking the base
3562         class constructor, to help older C++ compilers.
3564 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
3566         PR sanitizer/71953
3567         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
3568         before builtin_decl_implicit.
3570 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
3572         * optabs.c (emit_condiitonal_move): Short circuit for identical
3573         sources.
3575 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
3577         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
3578         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
3579         (noce_conversion_profitable_p): New.
3580         (noce_try_store_flag_constants): Use it.
3581         (noce_try_addcc): Likewise.
3582         (noce_try_store_flag_mask): Likewise.
3583         (noce_try_cmove): Likewise.
3584         (noce_try_cmove_arith): Likewise.
3585         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
3586         overwriting it.
3587         (noce_convert_multiple_sets): Move cost model to here, from...
3588         (bb_ok_for_noce_convert_multiple_sets) ...here.
3589         (noce_process_if_block): Update calls for above changes.
3590         (noce_find_if_block): Record new noce_if_info parameters.
3592 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
3594         * target.def (max_noce_ifcvt_seq_cost): New.
3595         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
3596         * doc/tm.texi: Regenerate.
3597         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
3598         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
3599         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
3600         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
3601         * doc/invoke.texi: Document new params.
3603 2016-07-21  Richard Biener  <rguenther@suse.de>
3605         PR tree-optimization/71947
3606         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
3607         ranges have useful limit_vr information.
3609 2016-07-21  Richard Biener  <rguenther@suse.de>
3611         * function-tests.c (build_trivial_generic_function): Set
3612         BLOCK_SUPERCONTEXT of DECL_INITIAL.
3613         * omp-low.c (create_omp_child_function): Likewise.
3614         (grid_expand_target_grid_body): Likewise.
3615         * cgraphunit.c (init_lowered_empty_function): Likewise.
3616         (cgraph_node::expand_thunk): Likewise.
3617         * tree-parloops.c (create_loop_fn): Likewise.
3618         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
3620 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3622         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
3623         in comment.
3625 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
3627         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
3628         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
3629         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
3630         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
3631         values for insn attribute.
3632         * config/avr/avr.c (avr_out_insert_notbit): New function.
3633         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
3634         ADJUST_LEN_INSV_NOTBIT_0/_7.
3635         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
3637 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
3639         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
3640         (chrec_convert_1, chrec_convert): Ditto.
3641         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
3642         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
3643         * tree-vrp.c (adjust_range_with_scev): Ditto.
3644         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
3645         (scev_var_range_cant_overflow): New function.
3646         (scev_probably_wraps_p): New parameter.  Call above function.
3647         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
3649 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
3651         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
3652         by removing computation of may_be_zero.
3654 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
3656         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
3658 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
3660         Improving concepts performance and diagnostics.
3661         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
3662         for constraint satisfaction and subsumption.
3663         * timevar.h (auto_timevar): New constructor that matches the push/pop
3664         pattern of usage in pt.c.
3666 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
3668         * hwint.h (HOST_WIDE_INT_0): New define.
3669         (HOST_WIDE_INT_0U): Ditto.
3670         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
3671         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
3672         * simplify-rtx.c: Ditto.
3673         * tree-object-size.c: Ditto.
3675 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3677         * config/s390/s390.c (s390_encode_section_info): Remove mode size
3678         check.
3680 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
3682         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
3683         * combine.c: Use HOST_WIDE_INT_M1U instead of
3684         ~(unsigned HOST_WIDE_INT) 0.
3685         * double-int.h: Ditto.
3686         * dse.c: Ditto.
3687         * dwarf2asm.c:Ditto.
3688         * expmed.c: Ditto.
3689         * genmodes.c: Ditto.
3690         * match.pd: Ditto.
3691         * read-rtl.c: Ditto.
3692         * tree-ssa-loop-ivopts.c: Ditto.
3693         * tree-ssa-loop-prefetch.c: Ditto.
3694         * tree-vect-generic.c: Ditto.
3695         * tree-vect-patterns.c: Ditto.
3696         * tree.c: Ditto.
3698 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3700         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
3701         constant addresses outside [0,0xc0] into a register.
3702         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
3703         cases where the base address register is unused after.
3704         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
3705         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
3706         (avr_out_store_psi_reg_disp_tiny): Same.
3708 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3710         Implement attribute progmem on reduced Tiny cores by adding
3711         flash offset 0x4000 to respective symbols.
3713         PR target/71948
3714         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
3715         documentation how it works on reduced Tiny cores.
3716         (AVR Named Address Spaces): No support for reduced Tiny.
3717         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
3718         (avr_address_tiny_pm_p): New static function.
3719         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
3720         if the address is in progmem.
3721         (avr_assemble_integer): Same.
3722         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
3723         for symbol_ref in progmem.
3724         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
3725         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
3726         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
3728 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
3730         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
3731         * configure: Regenerate.
3732         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
3733         (USE_THIN_ARCHIVES): New variable.
3734         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
3735         this archive as a thin archive.
3737 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
3739         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
3740         same location as last time, don't skip if we have fix-it hints.
3741         Clarify the skipping logic by converting it from one "if" clause
3742         to repeated "if" clauses.
3743         * spellcheck-tree.c: Include "cpplib.h".
3744         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
3745         (best_macro_match::best_macro_match): New constructor.
3746         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
3747         Move here from c/c-decl.c.
3748         (class best_macro_match): Move here from c/c-decl.c, converting
3749         from a typedef to a subclass, gaining a ctor.
3751 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3753         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
3754         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
3755         define...
3756         (avr_addr_space_diagnose_usage): ...and implementation.
3757         (avr_addr_space_supported_p): New function.
3758         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
3759         report bad address space usage if that space is supported.
3760         (avr_insert_attributes): Same.  No more complain about unsupported
3761         address spaces.
3762         * config/avr/avr-c.c (tm_p.h): Include it.
3763         (avr_cpu_cpp_builtins): Only define addr-space related built-in
3764         macro if avr_addr_space_supported_p.
3766 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
3768         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
3769         flag_toplevel_reorder.
3771 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
3773         * gcc-rich-location.c
3774         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
3775         a const char *.
3776         * gcc-rich-location.h
3777         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
3779 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3781         * target.def (addr_space): Add new diagnose_usage to hook vector.
3782         * targhooks.c (default_addr_space_diagnose_usage): Add default
3783         implementation and...
3784         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
3785         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
3786         is some address space, call targetm.addr_space.diagnose_usage.
3787         * doc/tm.texi.in (Named Address Spaces): Add anchor for
3788         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
3789         * doc/tm.texi: Regenerate.
3791 2016-07-20  Martin Liska  <mliska@suse.cz>
3793         PR middle-end/71898
3794         * graphite-isl-ast-to-gimple.c (later_of_the_two):
3795         Properly handly PHI stmts.
3797 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
3799         PR tree-optimization/71503
3800         PR tree-optimization/71683
3801         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
3802         and break.
3804 2016-07-20  Martin Liska  <mliska@suse.cz>
3806         * doc/invoke.texi (-fipa-ra): Document when the option is
3807         disabled. Fix a typo.
3809 2016-07-20  Martin Liska  <mliska@suse.cz>
3811         * Makefile.in: Include fibonacci_heap.c
3812         * fibonacci_heap.c: New file.
3813         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
3814         (fibonacci_heap::union_with): Fix deletion of the second heap.
3815         * selftest-run-tests.c (selftest::run_tests): Incorporate
3816         fibonacci heap tests.
3817         * selftest.h: Declare fibonacci_heap_c_tests.
3819 2016-07-20  Martin Liska  <mliska@suse.cz>
3821         * selftest-run-tests.c (selftest::run_tests): New function.
3822         * selftest.h (sreal_c_tests): Declare.
3823         * sreal.c (sreal_verify_basics): New function.
3824         (verify_aritmetics): Likewise.
3825         (sreal_verify_arithmetics): Likewise.
3826         (verify_shifting): Likewise.
3827         (sreal_verify_shifting): Likewise.
3828         (void sreal_c_tests): Likewise.
3830 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
3832         PR rtl-optimization/71916
3833         * cfgrtl.c (contains_no_active_insn_p): Return false also for
3834         bb which have a single succ fake edge.
3836 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
3838         PR debug/71855
3839         * dwarf2out.c (gen_subprogram_die): Only call
3840         gen_unspecified_parameters_die while dumping early dwarf.
3842 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
3844         PR middle-end/71874
3845         * gimple-fold.c (fold_builtin_memory_op): Use
3846         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
3848 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
3850         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
3851         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
3852         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
3853         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
3854         * combine.c: Ditto.
3855         * cse.c: Ditto.
3856         * dojump.c: Ditto.
3857         * double-int.c: Ditto.
3858         * dse.c: Ditto.
3859         * dwarf2out.c: Ditto.
3860         * expmed.c: Ditto.
3861         * expr.c: Ditto.
3862         * fold-const.c: Ditto.
3863         * function.c: Ditto.
3864         * fwprop.c: Ditto.
3865         * genmodes.c: Ditto.
3866         * hwint.c: Ditto.
3867         * hwint.h: Ditto.
3868         * ifcvt.c: Ditto.
3869         * loop-doloop.c: Ditto.
3870         * loop-invariant.c: Ditto.
3871         * loop-iv.c: Ditto.
3872         * match.pd: Ditto.
3873         * optabs.c: Ditto.
3874         * real.c: Ditto.
3875         * reload.c: Ditto.
3876         * rtlanal.c: Ditto.
3877         * simplify-rtx.c: Ditto.
3878         * stor-layout.c: Ditto.
3879         * toplev.c: Ditto.
3880         * tree-ssa-loop-ivopts.c: Ditto.
3881         * tree-vect-generic.c: Ditto.
3882         * tree-vect-patterns.c: Ditto.
3883         * tree.c: Ditto.
3884         * tree.h: Ditto.
3885         * ubsan.c: Ditto.
3886         * varasm.c: Ditto.
3887         * wide-int-print.cc: Ditto.
3888         * wide-int.cc: Ditto.
3889         * wide-int.h: Ditto.
3891 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
3893         * selftest.c (selftest::assert_streq): Handle NULL values of
3894         val_actual and val_expected.
3896 2016-07-19  Martin Jambor  <mjambor@suse.cz>
3898         PR fortran/71688
3899         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
3900         rather than cgraph_create_node to get a call graph node.
3902 2016-07-19  Richard Biener  <rguenther@suse.de>
3904         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
3905         handle all tcc_constant bases and valueize SSA names.
3906         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
3907         tcc_constant bases.
3909 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
3911         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
3912         the flags of the exit block and bb2, not just the entry block.
3914 2016-07-19  Richard Biener  <rguenther@suse.de>
3916         PR tree-optimization/71901
3917         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3918         align member, group stuff with the bitfield.
3919         (vn_ref_op_align_unit): New inline.
3920         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
3921         record element alignment and operand 3 unchanged.
3922         (ao_ref_init_from_vn_reference): Adjust.
3923         (valueize_refs_1): Likewise.
3924         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3926 2016-07-19  Richard Biener  <rguenther@suse.de>
3928         PR tree-optimization/71908
3929         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
3930         symbolic constants in a more reliable way.
3932 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3934         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
3935         comment.
3936         (vect_update_inits_of_drs): Likewise.
3937         (vect_create_cond_for_alias_checks): Likewise.
3938         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
3940 2016-07-19  Richard Biener  <rguenther@suse.de>
3942         PR lto/71907
3943         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
3944         with an abstract origin that is not an inlined function outer
3945         scope add a self-reference as abstract origin.
3946         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
3948 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3950         PR target/71493
3951         * config/rs6000/rs6000.c (rs6000_function_value): Fix
3952         unintentional System V.4 structure return breakage for structures
3953         with a single floating point element.
3955 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
3957         PR tree-optimization/71734
3958         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
3959         contains REF, use it to check safelen, assume that safelen value
3960         must be greater 1, fix style.
3961         (ref_indep_loop_p_2): Add REF_LOOP argument.
3962         (ref_indep_loop_p): Pass LOOP as additional argument to
3963         ref_indep_loop_p_2.
3965 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3967         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
3968         allocation in the prologue.
3969         * explow.c (get_dynamic_stack_base): New function to return an address
3970         expression for the dynamic stack base.
3971         (get_dynamic_stack_size): New function to do the required dynamic stack
3972         space size calculations.
3973         (allocate_dynamic_stack_space): Use new functions.
3974         (align_dynamic_address): Move some code from
3975         allocate_dynamic_stack_space to new function.
3976         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
3978 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3980         * config/s390/s390.c (s390_encode_section_info): Always set
3981         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
3982         found.
3984 2016-07-18  Richard Biener  <rguenther@suse.de>
3986         PR tree-optimization/71893
3987         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
3988         for sizetype cast added by array_ref_element_size.
3989         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3991 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
3993         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
3994         register parameters.  Remove code to initialize argument pointer
3995         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
3996         using a pc-relative branch.  Cleanup conditional code.
3997         * config/pa/pa.md (call_mcount): New expander.
3998         (call_mcount_nonpic): New insn.
3999         (call_mcount_pic): New insn and split.
4000         (call_mcount_pic_post_reload): New insn.
4001         (call_mcount_64bit): New insn and split.
4002         (call_mcount_64bit_post_reload): New insn.
4004 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
4006         * config/avr/predicates.md (const_m255_to_m1_operand): New.
4007         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
4008         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
4009         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
4010         (*usum_widenqihi3, *udiff_widenqihi3)
4011         (*addhi3_zero_extend.const): New combiner insns.
4012         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
4013         just 1 bit is affected.
4014         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
4015         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
4017 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
4019         * omp-low.c (lower_omp_target): Mark data clauses with
4020         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
4021         zero-length subarrays.
4023 2016-07-15  Richard Biener  <rguenther@suse.de>
4025         PR tree-optimization/71881
4026         * tree-loop-distribution.c (destroy_loop): Remove blocks in
4027         reverse DOM order to make debug temp generation happy.
4029 2016-07-15  Richard Biener  <rguenther@suse.de>
4031         PR tree-optimization/71887
4032         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
4033         verify it is not zero for division / modulo handling.
4034         (value_replacement): Adjust.
4036 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
4037             Julian Brown  <julian@codesourcery.com>
4039         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
4040         * config/aarch64/aarch64-cost-tables.h
4041         (vulcan_extra_costs): New variable.
4042         * config/aarch64/aarch64.c
4043         (vulcan_addrcost_table): Likewise.
4044         (vulcan_regmove_cost): Likewise.
4045         (vulcan_vector_cost): Likewise.
4046         (vulcan_branch_cost): Likewise.
4047         (vulcan_tunings): Likewise.
4049 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
4051         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
4052         (output_in_order): Loop over undefined variables too.  Output them
4053         via assemble_undefined_decl.  Skip variables that correspond to hard
4054         registers or have value-exprs.
4055         * varpool.c (symbol_table::output_variables): Handle undefined
4056         variables together with defined ones.
4058 2016-07-15  Richard Biener  <rguenther@suse.de>
4060         * tree-ssa-pre.c (get_representative_for): Make sure to return
4061         the value number of SSA names.
4062         (phi_translate_1): get_representative_for cannot return NULL.
4063         (do_pre_regular_insertion): Remove redundant call to
4064         fully_constant_expression.
4065         (do_pre_partial_partial_insertion): Likewise.
4067 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
4069         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
4070         (derive_simple_iv_with_niters): New function.
4071         (simple_iv): Rewrite using simple_iv_with_niters.
4072         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
4073         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
4074         function.
4075         (number_of_iterations_exit): Rewrite using above function.
4076         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
4077         Decl.
4079 2016-07-15  Richard Biener  <rguenther@suse.de>
4081         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
4082         vec_construct cost.
4084 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
4086         PR tree-optimization/71872
4087         * tree-data-ref.c (get_references_in_stmt): Ignore references
4088         with is_gimple_constant get_base_address.
4090 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4092         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
4093         (TARGET_HAVE_LDACQD): New macro.
4094         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
4095         than TARGET_HAVE_LDACQ.
4096         (arm_load_acquire_exclusivedi): Likewise.
4097         (arm_store_release_exclusivedi): Likewise.
4099 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4101         PR rtl-optimization/71878
4102         * lra-constraints.c (match_reload): Pass information about other
4103         output operands.  Create new unique register value if matching input
4104         operand shares same register value as output operand being considered.
4105         (curr_insn_transform): Record output operands already processed.
4107 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4109         PR target/65951
4110         PR tree-optimization/70923
4111         * tree-vect-patterns.c: Include mult-synthesis.h.
4112         (target_supports_mult_synth_alg): New function.
4113         (synth_lshift_by_additions): Likewise.
4114         (apply_binop_and_append_stmt): Likewise.
4115         (vect_synth_mult_by_constant): Likewise.
4116         (target_has_vecop_for_code): Likewise.
4117         (vect_recog_mult_pattern): Use above functions to synthesize vector
4118         multiplication by integer constants.
4120 2016-07-14  Alan Modra  <amodra@gmail.com>
4122         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
4123         gpr alternatives.  Correct '*' placement on Y,r alternative.
4124         Add '*' on operand 1 of r,r alternative.
4126 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4128         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
4129         * expmed.h: ... Here.
4131 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
4133         * gimple.h (stmt_can_terminate_bb_p): New function.
4134         * tree-cfg.c (need_fake_edge_p): Rename to ...
4135         (stmt_can_terminate_bb_p): ... this; return true if stmt can
4136         throw external; handle const and pure calls.
4137         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
4139 2016-07-14  Richard Biener  <rguenther@suse.de>
4141         PR tree-optimization/71866
4142         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
4143         (do_hoist_insertion): Avoid endless recursion when we
4144         didn't insert anything because we managed to simplify
4145         things down to a constant or SSA name.
4146         (fully_constant_expression): Re-write in terms of ...
4147         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
4148         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
4149         vn_nary_build_or_lookup_1.
4150         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
4151         (vn_nary_build_or_lookup): ... this which now wraps it.
4153 2016-07-14  Alan Modra  <amodra@gmail.com>
4155         PR target/71733
4156         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
4157         with p9_vector override before power9-dform override.
4159 2016-07-13  Andi Kleen  <ak@linux.intel.com>
4161         * value-prof.c (gimple_value_profile_transformations): Don't run
4162         when auto_profile is on.
4164 2016-07-13  Andi Kleen  <ak@linux.intel.com>
4166         * auto-profile.c (update_inlined_ind_target,
4167         afdo_indirect_call): Print information to dump file.
4169 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
4171         * genrecog.c (special_predicate_operand_p): New function.
4172         (predicate_name): Move function.
4173         (validate_pattern): Don't warn about missing mode for all
4174         define_special_predicate predicates.
4176 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
4178         * tree-vect-data-refs.c (vect_no_alias_p): New function.
4179         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
4180         resolve alias checks which are known at compilation time.
4181         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
4182         alias checks are resolved.  Move dump info for too many runtime
4183         alias checks to here...
4184         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
4186 2016-07-13  Richard Biener  <rguenther@suse.de>
4188         PR tree-optimization/24574
4189         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
4190         position and add shift, rotate, divison and modulo support
4191         for left zero.
4192         (value_replacement): Pass in argument position to absorbing_element_p.
4194 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4196         PR ipa/71633
4197         * ipa-inline-transform.c (inline_call): Support
4198         instrumented thunks.
4200 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4202         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
4203         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
4204         divide feature.
4205         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
4206         Baseline.  Make initial alternative TARGET_32BIT only.
4207         (udivsi3): Likewise.
4208         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
4209         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
4210         target.
4212 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4214         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
4215         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
4216         availability with TARGET_HAVE_MOVT.
4217         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
4218         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
4219         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
4220         UINTVAL.
4221         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
4222         extra instruction if MOVW is available.  Use a cost variable
4223         incremented by COSTS_N_INSNS (1) when the condition match rather than
4224         returning an arithmetic expression based on COSTS_N_INSNS.  Make
4225         constant with bottom half word zero cost 2 instruction if MOVW is
4226         available.
4227         * config/arm/arm.md (define_attr "arch"): Add v8mb.
4228         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
4229         target is ARMv8-M Baseline.
4230         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
4231         (arm_movtas_ze): Likewise.
4232         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
4233         alternative for constants satisfying j constraint.
4234         (thumb1_movsi_insn): Likewise.
4235         (movsi splitter for K alternative): Tighten condition to not trigger
4236         if movt is available and j constraint is satisfied.
4237         (Pe immediate splitter): Likewise.
4238         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
4239         constant fitting in an halfword to use MOVW.
4240         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
4241         effective target.
4243 2016-07-13  Richard Biener  <rguenther@suse.de>
4245         PR middle-end/71104
4246         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
4247         gimplifying the LHS.  Make sure to gimplify a returning twice
4248         call LHS without using SSA names.
4250 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4252         * tree-data-ref.c (find_data_references_in_stmt): Remove
4253         unnecessary call to vec::release.
4254         (graphite_find_data_references_in_stmt): Likewise.
4255         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
4256         * tree-vect-stmts.c (vectorizable_condition): Likewise.
4258 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4260         * cfgexpand.c (expand_used_vars): Make the type of a local
4261         variable auto_vec.
4262         * genmatch.c (lower_for): Likewise.
4263         * haifa-sched.c (haifa_sched_init): Likewise.
4264         (add_to_speculative_block): Likewise.
4265         (create_check_block_twin): Likewise.
4266         * predict.c (handle_missing_profiles): Likewise.
4267         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
4268         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
4269         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
4270         Likewise.
4271         (maybe_lower_iteration_bound): Likewise.
4272         * tree-ssa-sccvn.c (DFS): Likewise.
4273         * tree-stdarg.c (reachable_at_most_once): Likewise.
4274         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
4275         (vectorizable_store): Likewise.
4277 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4279         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
4280         (sccvn_dom_walker): make cond_stack an auto_vec.
4282 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4284         * ree.c (struct ext_state): Make type of members auto_vec.
4285         (find_and_remove_re): Adjust.
4287 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4289         * cfgexpand.c (struct stack_vars_data): Make type of fields
4290         auto_vec.
4291         (expand_used_vars): Adjust.
4293 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4295         * ipa.c (record_cdtor_fn): Adjust.
4296         (build_cdtor_fns): Likewise.
4297         (ipa_cdtor_merge): Make static_ctors and static_dtors local
4298         variables.
4300 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4302         * genextract.c (struct accum_extract): Add constructor and make
4303         members auto_vec.
4304         (gen_insn): Adjust.
4306 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4308         * tree.c (struct free_lang_data_d): Add constructor and change
4309         types of members to ones that automatically manage resources.
4310         (fld_worklist_push): Adjust.
4311         (find_decls_types): Likewise.
4312         (find_decls_types_in_eh_region): Likewise.
4313         (free_lang_data_in_cgraph): Stop manually creating and
4314         destroying members of free_lang_data_d.
4316 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
4318         PR rtl-optimization/68961
4319         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
4320         peephole variant.  Use sse_reg_operand predicates.
4322 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
4324         * config/i386/predicates.md (x86_64_immediate_operand)
4325         <case CONST_INT>: Remove unneeded truncation to DImode.
4326         <case CONST>: Ditto.
4327         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
4329 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4331         PR target/71805
4332         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
4333         The xxperm and xxpermr instructions require that the 2nd input
4334         operand overlap with the output operand, and not the 1st.
4335         (altivec_vperm_v8hiv16qi): Likewise.
4336         (altivec_vperm_<mode>_uns_internal): Likewise.
4337         (altivec_vpermr_<mode>_internal): Likewise.
4338         (vperm_v8hiv4si): Likewise.
4339         (vperm_v16qiv8hi): Likewise.
4341 2016-07-12  Nathan Sidwell  <nathan@acm.org>
4343         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
4344         when -mno-pic-data-is-text-relative is in effect, by default.
4345         * doc/invoke.texi (mpic-data-is-text-relative): Document new
4346         behavior and clarify.
4348 2016-07-12  Martin Liska  <mliska@suse.cz>
4350         * params.def: Add avg-loop niter.
4351         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
4352         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4353         * doc/invoke.texi: Document the new parameter.
4355 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4357         PR middle-end/71700
4358         * expr.c (store_constructor): Mask sign-extended bits when widening
4359         sub-word constructor element at the start of a word.
4361 2016-07-12  Martin Liska  <mliska@suse.cz>
4363         * Makefile.in: Append rule for params-options.h.
4364         * params-options.h: New file.
4366 2016-07-12  Martin Liska  <mliska@suse.cz>
4368         * ira-build.c (mark_loops_for_removal): Properly iterate
4369         loops.
4371 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
4372             Richard Biener  <rguenther@suse.de>
4374         PR tree-optimization/23286
4375         PR tree-optimization/70159
4376         * doc/invoke.texi: Document -fcode-hoisting.
4377         * common.opt (fcode-hoisting): New flag.
4378         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
4379         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
4380         (do_regular_insertion): Rename to ...
4381         (do_pre_regular_insertion): ... this and amend general comments
4382         on insertion strathegy.
4383         (do_partial_partial_insertion): Rename to ...
4384         (do_pre_partial_partial_insertion): ... this.
4385         (do_hoist_insertion): New function.
4386         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
4387         and call do_hoist_insertion properly.
4388         (insert): Adjust.
4389         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
4390         (pass_pre::execute): Register hoist_insert stats.
4392 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
4394         PR middle-end/71716
4395         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
4396         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
4397         is different from mode's bitsize.  Small cleanup.
4399 2016-07-12  Richard Biener  <rguenther@suse.de>
4401         PR rtl-optimization/68961
4402         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
4403         to simplify to a non-constant.
4405 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
4407         PR middle-end/71758
4408         * omp-low.c (expand_omp_target): Gimplify device.
4410         PR tree-optimization/71823
4411         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
4412         to get vec_oprnds2 from op2.
4414 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
4416         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
4417         Hoist common subexpressions.
4418         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
4420 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
4422         PR target/71800
4423         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
4424         prevent generation of 'stxsiwx' on pre Power8 hardware.
4426 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
4428         * input.c: Include cpplib.h.
4429         (selftest::temp_source_file): New class.
4430         (selftest::temp_source_file::temp_source_file): New ctor.
4431         (selftest::temp_source_file::~temp_source_file): New dtor.
4432         (selftest::should_have_column_data_p): New function.
4433         (selftest::test_should_have_column_data_p): New function.
4434         (selftest::temp_line_table): New class.
4435         (selftest::temp_line_table::temp_line_table): New ctor.
4436         (selftest::temp_line_table::~temp_line_table): New dtor.
4437         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
4438         it to create a temp_line_table.
4439         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
4440         locations that are known to have column data.
4441         (selftest::line_table_case): New struct.
4442         (selftest::test_reading_source_line): Move tempfile handling
4443         to class temp_source_file.
4444         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
4445         (selftest::assert_token_loc_eq): New function.
4446         (ASSERT_TOKEN_LOC_EQ): New macro.
4447         (selftest::test_lexer): New function.
4448         (selftest::boundary_locations): New array.
4449         (selftest::input_c_tests): Call test_should_have_column_data_p.
4450         Loop over a test matrix of interesting values of location and
4451         default_range_bits, calling test_lexer on each case in the matrix.
4452         Move call to test_accessing_ordinary_linemaps into the matrix.
4453         * selftest.h (ASSERT_EQ): Reimplement in terms of...
4454         (ASSERT_EQ_AT): New macro.
4456 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
4458         PR target/71801
4459         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
4460         Don't convert TImode in debug insn.
4462 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4464         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
4465         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
4466         (tree_type_common::lang_flag_7): New.
4467         (tree_type_common::spare): Reduce size.
4468         * tree.h (TYPE_ALIGN_OK): Remove.
4469         (TYPE_LANG_FLAG_7): New.
4470         (get_inner_reference): Adjust header.
4471         * print-tree.c (print_node): Adjust.
4472         * expr.c (get_inner_reference): Remove parameter keep_aligning.
4473         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
4474         calls to get_inner_reference.
4475         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
4476         handling of TYPE_ALIGN_OK.
4477         * builtins.c (get_object_alignment_2): Adjust call to
4478         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
4479         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
4480         TYPE_ALIGN_OK.
4481         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
4482         * cfgexpand.c (expand_debug_expr): Likewise.
4483         * dbxout.c (dbxout_expand_expr): Likewise.
4484         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
4485         loc_list_from_tree, fortran_common): Likewise.
4486         * fold-const.c (optimize_bit_field_compare,
4487         decode_field_reference, fold_unary_loc, fold_comparison,
4488         split_address_to_core_and_offset): Likewise.
4489         * gimple-laddress.c (execute): Likewise.
4490         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
4491         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
4492         * hsa-gen.c (gen_hsa_addr): Likewise.
4493         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
4494         * tsan.c (instrument_expr): Likewise.
4495         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
4496         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
4497         * tree-affine.c (tree_to_aff_combination,
4498         get_inner_reference_aff): Adjust calls to get_inner_reference.
4499         * tree-data-ref.c (split_constant_offset_1,
4500         dr_analyze_innermost): Likewise.
4501         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
4502         * tree-sra.c (ipa_sra_check_caller): Likewise.
4503         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
4504         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
4505         bswap_replace): Likewise.
4506         * tree-vect-data-refs.c (vect_check_gather,
4507         vect_analyze_data_refs): Likewise.
4508         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
4509         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
4510         TYPE_ALIGN_OK.
4512 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
4514         * Makefile.in (selftest-valgrind): New phony target.
4515         * function-tests.c (selftest::build_cfg): Delete pass instances
4516         created by the test.
4517         (selftest::convert_to_ssa): Likewise.
4518         (selftest::test_expansion_to_rtl): Likewise.
4519         * tree-cfg.c (selftest::test_linear_chain): Release dominator
4520         vectors.
4521         (selftest::test_diamond): Likewise.
4523 2016-07-11  Richard Biener  <rguenther@suse.de>
4525         PR tree-optimization/71816
4526         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
4527         than replacing all of its operands.
4529 2016-07-11  Alan Modra  <amodra@gmail.com>
4531         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
4532         (ctr<mode>): Add unspec.
4533         (ctr<mode>_internal*): Likewise.
4535 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
4537         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
4538         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
4540 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4542         PR rtl-optimization/71621
4543         * lra-constraints.c (process_alt_operands): Check combination of
4544         reg class and mode.
4546 2016-07-08  Jason Merrill  <jason@redhat.com>
4547             Richard Biener  <rguenther@suse.de>
4549         P0145: Refining Expression Order for C++.
4550         * gimplify.c (initial_rhs_predicate_for): New.
4551         (gimplfy_modify_expr): Gimplify RHS before LHS.
4553 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4555         PR target/71297
4556         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4557         Allow standard error handling to take over when a wrong number
4558         of arguments is presented to __builtin_vec_ld () or
4559         __builtin_vec_st ().
4561 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
4563         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
4564         variants.
4565         (smin): Likewise.
4566         (fmax): New entry.
4567         (fmin): Likewise.
4568         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
4569         __builtin_aarch64_fmaxv2sf.
4570         (vmaxnmq_f32): Likewise.
4571         (vmaxnmq_f64): Likewise.
4572         (vminnm_f32): Likewise.
4573         (vminnmq_f32): Likewise.
4574         (vminnmq_f64): Likewise.
4576 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4578         PR target/71806
4579         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
4580         enable -mfloat128-hardware by default.
4581         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
4582         that IEEE 128-bit hardware support needs.
4583         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4584         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
4585         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
4586         floating point requires.
4587         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4588         -mfloat128 and -mfloat128-hardware changes.
4590 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
4592         PR tree-optimization/71667
4593         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
4595 2016-07-08  Martin Liska  <mliska@suse.cz>
4597         PR middle-end/71606
4598         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
4599         folding produces SAVE_EXPRs, thus return false for the type.
4601 2016-07-07  Martin Liska  <mliska@suse.cz>
4603         * file-find.c (remove_prefix): New function.
4604         * file-find.h (remove_prefix): Declare the function.
4605         * gcc-ar.c (main): Skip a folder of the wrapper if
4606         a wrapped binary would point to the same file.
4608 2016-07-07  Jan Hubicka  <jh@suse.cz>
4610         * tree-scalar-evolution.c (iv_can_overflow_p): export.
4611         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
4612         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
4614 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
4616         PR ipa/71624
4617         * ipa-inline-analysis.c (compute_inline_parameters): Set
4618         local.can_change_signature to false for intrumentation
4619         thunk callees.
4621 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4623         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
4624         with TARGET_HAVE_MOVT.
4625         (TARGET_HAVE_MOVT): Define.
4626         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
4627         availability with TARGET_HAVE_MOVT.
4628         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
4629         availability.
4630         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
4631         TARGET_THUMB2.
4632         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
4633         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
4634         * config/arm/constraints.md (define_constraint "j"): Use
4635         TARGET_HAVE_MOVT to check MOVT availability.
4637 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4639         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
4641 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4643         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
4644         (armv8-m.main): Likewise.
4645         (armv8-m.main+dsp): Likewise.
4646         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
4647         (FL_FOR_ARCH8M_MAIN): Likewise.
4648         * config/arm/arm-tables.opt: Regenerate.
4649         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
4650         armv8-m.main+dsp to BE8_LINK_SPEC.
4651         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
4652         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
4653         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
4654         Baseline and Mainline.
4655         (arm_option_override_internal): Also disable arm_restrict_it when
4656         !arm_arch_notm.  Update comment for -munaligned-access to also cover
4657         ARMv8-M Baseline.
4658         (arm_file_start): Increase buffer size for printing architecture name.
4659         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
4660         and armv8-m.main+dsp.
4661         (mno-unaligned-access): Clarify that this is disabled by default for
4662         ARMv8-M Baseline architectures as well.
4664 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4666         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
4667         decide whether to prevent some libgcc routines being included for some
4668         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
4669         link between this condition and the one in
4670         libgcc/config/arm/lib1func.S.
4672 2016-07-07  Richard Biener  <rguenther@suse.de>
4674         * tree-ssa-pre.c: Include alias.h.
4675         (compute_avail): If we have multiple VN_REFERENCEs with the
4676         same hashtable entry adjust that to make it a valid replacement
4677         for all of them with respect to alignment and aliasing
4678         when doing insertion.
4679         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
4680         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
4682 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
4684         PR target/70098
4685         PR target/71763
4686         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
4687         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
4688         constraint.
4690 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4692         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
4693         (adjust_mems): Adjust.
4694         (adjust_insn): Likewise.
4695         (prepare_call_arguments): Likewise.
4697 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4699         * gcse.c (struct ls_expr): Make stores field a vector.
4700         (ldst_entry): Adjust.
4701         (free_ldst_entry): Likewise.
4702         (print_ldst_list): Likewise.
4703         (compute_ld_motion_mems): Likewise.
4704         (update_ld_motion_stores): Likewise.
4706 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4708         * gcse.c (struct ls_expr): Remove loads field.
4709         (ldst_entry): Adjust.
4710         (free_ldst_entry): Likewise.
4711         (print_ldst_list): Likewise.
4712         (compute_ld_motion_mems): Likewise.
4714 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4716         * store-motion.c (struct st_expr): Make antic_stores a vector.
4717         (st_expr_entry): Adjust.
4718         (free_st_expr_entry): Likewise.
4719         (print_store_motion_mems): Likewise.
4720         (find_moveable_store): Likewise.
4721         (compute_store_table): Likewise.
4722         (remove_reachable_equiv_notes): Likewise.
4723         (replace_store_insn): Likewise.
4724         (build_store_vectors): Likewise.
4726 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4728         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
4729         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
4731 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
4733         PR tree-optimization/71518
4734         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
4735         misalign also for outer loops with negative step.
4737 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
4739         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
4740         (cortex_a53_shift): Add mov_shift.
4741         (cortex_a53_shift_reg): Add new reservation for register shifts.
4742         (cortex_a53_alu): Remove bfm.
4743         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
4744         (cortex_a53_alu_extr): Add new reservation for EXTR.
4745         (bypasses): Improve bypass modelling.
4747 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4749         PR target/50739
4750         * config/avr/avr.c (avr_asm_select_section): Strip off
4751         SECTION_DECLARED from flags when calling get_section.
4753 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4755         * tree-vectorizer.h (vect_memory_access_type): Add
4756         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
4757         * tree-vect-stmts.c (compare_step_with_zero): New function.
4758         (perm_mask_for_reverse): Move further up file.
4759         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
4760         step is negative.
4761         (get_negative_load_store_type): New function.
4762         (get_load_store_type): Call it.  Add an ncopies argument.
4763         (vectorizable_mask_load_store): Update call accordingly and
4764         remove tests for negative steps.
4765         (vectorizable_store, vectorizable_load): Likewise.  Handle new
4766         memory_access_types.
4768 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4770         * tree-vectorizer.h (vect_memory_access_type): New enum.
4771         (_stmt_vec_info): Add a memory_access_type field.
4772         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
4773         (vect_model_store_cost): Take an access type instead of a boolean.
4774         (vect_model_load_cost): Likewise.
4775         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
4776         vect_model_store_cost and vect_model_load_cost.
4777         * tree-vect-stmts.c (vec_load_store_type): New enum.
4778         (vect_model_store_cost): Take an access type instead of a
4779         store_lanes_p boolean.  Simplify tests.
4780         (vect_model_load_cost): Likewise, but for load_lanes_p.
4781         (get_group_load_store_type, get_load_store_type): New functions.
4782         (vectorizable_store): Use get_load_store_type.  Record the access
4783         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
4784         (vectorizable_load): Likewise.
4785         (vectorizable_mask_load_store): Likewise.  Replace is_store
4786         variable with vls_type.
4788 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4790         * tree-vectorizer.h (vect_grouped_load_supported): Add a
4791         single_element_p parameter.
4792         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
4793         Check the PR65518 case here rather than in vectorizable_load.
4794         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
4795         * tree-vect-stmts.c (vectorizable_load): Likewise.
4797 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4799         * tree-vectorizer.h (gather_scatter_info): New structure.
4800         (vect_check_gather_scatter): Return a bool rather than a decl.
4801         Replace return-by-pointer arguments with a single
4802         gather_scatter_info *.
4803         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
4804         (vect_analyze_data_refs): Update call accordingly.
4805         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4806         (vectorizable_mask_load_store): Likewise.  Also record the
4807         offset dt and vectype in the gather_scatter_info.
4808         (vectorizable_store): Likewise.
4809         (vectorizable_load): Likewise.
4811 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4813         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
4814         strided groups, use the cost of N scalar accesses instead
4815         of ncopies vector accesses.
4816         (vect_model_load_cost): Likewise.
4818 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4820         * tree-vect-stmts.c (vect_cost_group_size): Delete.
4821         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
4822         variable to indicate when once-per-group costs are being used.
4823         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
4825 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4827         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
4828         peeling-for-gaps condition.
4830 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4832         * config/s390/s390.c (s390_expand_vec_init): Force initializer
4833         element to register if it doesn't match general_operand.
4835 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4836             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4838         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
4839         prototype.
4840         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
4841         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
4842         (SIGNBIT): New mode iterator.
4843         (Fsignbit): New mode attribute.
4844         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
4845         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
4846         when direct moves are available.
4847         (signbit<mode>2_dm): New define_insn_and_split).
4848         (signbit<mode>2_dm2): New define_insn.
4850 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4852         PR rtl-optimization/71594
4853         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
4854         into subregs of appropriate mode before trying to emit a conditional
4855         move.
4857 2016-07-05  Jan Hubicka  <jh@suse.cz>
4859         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
4860         (simple_iv): Use it.
4862 2016-07-05  Jan Hubicka  <jh@suse.cz>
4864         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
4866 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
4868         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
4869         "offmemok".
4871 2016-07-05  Jan Hubicka  <jh@suse.cz>
4873         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
4874         IV can overflow.
4876 2016-07-05  Richard Biener  <rguenther@suse.de>
4878         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
4879         Handle empty else block.
4880         (is_feasible_trace): Likewise.
4881         (split_paths): Likewise.
4883 2016-07-05  Richard Biener  <rguenther@suse.de>
4885         * tree-loop-distribution.c (distribute_loop): Fix issue with
4886         the cost model loop.
4888 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
4890         * config/arm/neon-testgen.ml: Delete.
4891         * config/arm/neon.ml: Delete.
4893 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
4895         PR c++/71739
4896         * tree.c (attribute_value_equal): Use get_attribute_name instead of
4897         directly using TREE_PURPOSE.
4899 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
4901         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
4902         * config/aarch64/aarch64_neon.h: Likewise.
4903         * config/aarch64/arm_neon.h: Likewise.
4904         * config/aarch64/atomics.md: Likewise.
4905         * config/aarch64/aarch64-simd-builtins.def: Likewise.
4906         * doc/invoke.texi: Likewise.
4908 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4910         * config/s390/s390.md: Add "z13" cpu_facility.
4911         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
4912         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
4913         condition" type instructions.
4915 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4916             Jeff Law  <law@redhat.com>
4918         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
4919         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
4921 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
4923         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
4924         permutation for TARGET_AVX512F.
4925         (ix86_expand_vec_one_operand_perm_avx512): New function.
4926         (expand_vec_perm_1): Invoke introduced function.
4927         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
4928         it may be not valid after vectorization.
4930 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4932         PR target/63874
4933         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
4934         typo in comment.  Only force to memory if it is a weak
4935         external reference.
4937 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
4938             Jiong Wang  <jiong.wang@arm.com>
4940         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
4941         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
4942         (AARCH64_FL_F16): New.
4943         (AARCH64_FL_FOR_ARCH8_2): New.
4944         (AARCH64_ISA_8_2): New.
4945         (AARCH64_ISA_F16): New.
4946         (TARGET_FP_F16INST): New.
4947         (TARGET_SIMD_F16INST): New.
4948         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
4949         ("fp"): Disabling "fp" also disables "fp16".
4950         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
4951         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
4952         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
4953         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
4955 2016-07-04  Jan Beulich  <jbeulich@suse.com>
4957         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
4959 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
4961         PR target/71720
4962         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
4963         the insns, use an insn form that does not adjust the offset on
4964         little endian systems.
4966 2016-07-01  Jan Beulich  <jbeulich@suse.com>
4968         * varasm.c (get_variable_section): Validate initializer in
4969         named .bss-like sections.
4971 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4973         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
4974         Exchange the order of the second and third operands in the vpermr
4975         instruction tmeplate.
4977 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
4979         PR target/71698
4980         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
4981         Disallow TDmode values.
4983 2016-07-01  Alan Modra  <amodra@gmail.com>
4985         PR rtl-optimization/71709
4986         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
4987         being set, not referenced.
4989 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
4991         PR tree-optimization/70729
4992         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
4993         of loop since it can be not valid after transformation.
4995 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4997         * config/arm/arm.c (thumb_reload_in_hi): Delete.
4998         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
5000 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5002         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
5003         for NULL decl.
5005 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5007         PR target/71677
5008         * config/rs6000/constraints.md (wY constraint): New constraint to
5009         match the requirements for the LXSD and STXSD instructions.
5010         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
5011         predicate to match the requirements for the LXSD and STXSD
5012         instructions.
5013         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
5014         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
5015         to make sure that the bottom 2 bits of offset are 0, the address
5016         form is offsettable, and no updating is done in the address mode.
5017         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
5018         (movdi_internal32): Likewise
5019         (movdi_internal64): Likewise.
5021 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
5023         PR tree-optimization/71707
5024         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
5025         strinfo even for ADDR_EXPR ptr.
5027 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5029         * config/rs6000/altivec.md (darn_32): Change the condition to
5030         TARGET_P9_MISC instead of TARGET_MODULO.
5031         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
5032         condition expression.
5033         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
5034         condition expression.
5035         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
5036         (DFP_TEST): New code iterator.
5037         (dfptstsfi_<code>_mode>): New define_expand.
5038         (*dfp_sgnfcnc_<mode>): New define_insn.
5039         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
5040         definition next to BU_P9_MISC_1 definition and change the MASK
5041         value to RS6000_BTM_P9_MISC.
5042         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
5043         (BU_P9_64BIT_MISC_0): Likewise.
5044         (BU_P9_DFP_MISC_0): New macro definition.
5045         (BU_P9_DFP_MISC_1): New macro definition.
5046         (BU_P9_DFP_MISC_2): New macro definition.
5047         (BU_P9_DFP_OVERLOAD_1): New macro definition.
5048         (BU_P9_DFP_OVERLOAD_2): New macro definition.
5049         (BU_P9_DFP_OVERLOAD_3): New macro definition.
5050         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
5051         (TSTSFI_LT_TD): Likewise.
5052         (TSTSFI_EQ_DD): Likewise.
5053         (TSTSFI_EQ_TD): Likewise.
5054         (TSTSFI_GT_DD): Likewise.
5055         (TSTSFI_GT_TD): Likewise.
5056         (TSTSFI_OV_DD): Likewise.
5057         (TSTSFI_OV_TD): Likewise.
5058         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
5059         (TSTSFI_LT_DD): Likewise.
5060         (TSTSFI_LT_TD): Likewise.
5061         (TSTSFI_EQ): Likewise.
5062         (TSTSFI_EQ_DD): Likewise.
5063         (TSTSFI_EQ_TD): Likewise.
5064         (TSTSFI_GT): Likewise.
5065         (TSTSFI_GT_DD): Likewise.
5066         (TSTSFI_GT_TD): Likewise.
5067         (TSTSFI_OV): Likewise.
5068         (TSTSFI_OV_DD): Likewise.
5069         (TSTSFI_OV_TD): Likewise.
5070         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5071         overloaded test significance functions.
5072         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5073         OPTION_MASK_P9_MISC into the representation of this mask.
5074         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
5075         of this mask.
5076         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
5077         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
5078         non-zero.
5079         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
5080         argument is a 6-bit unsigned literal value if the icode argument
5081         represents a DFP test significance built-in call.
5082         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
5083         flag used independently and in combination with the
5084         RS6000_BTM_64BIT flag.
5085         (rs6000_opt_masks): Add entry for power9-misc command-line option.
5086         (rs6000_builtin_mask_names): Add entry for power9-misc
5087         command-line option.
5088         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
5089         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
5090         RS6000_BTM_P9_MISC macros.
5091         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
5092         option and change the description of the -mpower9-vector option to
5093         enable only vector instructions, removing its erroneously claimed
5094         support for scalar instructions.
5095         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5096         the ISA 3.0 digital floating point test significance built-in
5097         functions.
5099 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
5101         * config/aarch64/aarch64.c (cortexa35_tunings):
5102         Enable AES fusion.  Use cortexa57_branch_cost.
5103         (cortexa53_tunings): Use cortexa57_branch_cost.
5104         (cortexa72_tunings): Use cortexa57_branch_cost.
5105         Use AUTOPREFETCHER_WEAK.
5106         (cortexa73_tunings): Use cortexa57_branch_cost.
5108 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5109             James Greenhalgh  <james.greenhalgh@arm.com>
5111         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
5112         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
5113         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
5114         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
5115         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
5116         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
5117         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
5118         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
5119         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
5120         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
5121         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
5122         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
5123         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
5124         New intrinsics.
5126 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
5127             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5129         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
5130         New define_insn.
5131         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
5133 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
5135         PR driver/71651
5136         * gcc.c (driver::build_option_suggestions): Pass "option" to
5137         add_misspelling_candidates.
5138         * opts-common.c (add_misspelling_candidates): Add "option" param;
5139         use it to avoid adding negated forms for options marked with
5140         RejectNegative.
5141         * opts.h (add_misspelling_candidates): Add "option" param.
5143 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
5145         PR middle-end/71693
5146         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
5147         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
5148         first when permuting bitwise operation with rotate.  Cast
5149         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
5151 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
5153         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
5154         for misspelled param names.
5155         * params.c: Include spellcheck.h.
5156         (find_param_fuzzy): New function.
5157         * params.h (find_param_fuzzy): New prototype.
5158         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
5159         * spellcheck.h (struct edit_distance_traits<const char *>):
5160         ...here.
5162 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5164         * config/rs6000/predicates.md (const_0_to_7_operand): New
5165         predicate, recognize 0..7.
5166         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5167         support for doing extracts from V16QImode, V8HImode, V4SImode
5168         under ISA 3.0.
5169         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
5170         vector extract support.
5171         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
5172         for ISA 3.0 vector extract.
5173         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
5174         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
5175         extracts of a constant element number from small integer vectors
5176         on 64-bit ISA 3.0 systems.
5177         (vsx_extract_<mode>_di): Likewise.
5178         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
5179         say when we can do ISA 3.0 vector extracts.
5180         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
5181         registers, using the stxsiwx instruction.
5183 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
5185         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
5186         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
5187         qdf24xx_regmove_cost, qdf24xx_tunings): New.
5188         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
5189         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
5190         * config/arm/arm.c (arm_qdf24xx_tune): New.
5192 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
5194         * config/aarch64/aarch64.c (cortexa53_tunings):
5195         Increase loop alignment to 8.  Set function alignment to 16.
5196         (cortexa35_tunings): Likewise.
5197         (cortexa57_tunings): Increase loop alignment to 8.
5198         (cortexa72_tunings): Likewise.
5199         (cortexa73_tunings): Likewise.
5201 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5203         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
5204         for arm_fp16_ok and arm_fp16_hw.
5205         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
5206         arm_fp16_alternative.
5208 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5210         PR tree-optimization/71655
5211         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
5212         types when swapping operands.
5214 2016-06-29  Martin Liska  <mliska@suse.cz>
5216         PR middle-end/71585
5217         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
5218         * ipa-inline-transform.c (inline_call): Remove unnecessary call
5219         of build_optimization_node.
5221 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
5223         PR tree-optimization/70729
5224         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
5225         independent in loops having positive safelen value.
5226         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
5227         it may be not valid after vectorization.
5229 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
5231         PR tree-optimization/71625
5232         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
5233         is sorted by ascending list->offset.  If PTR is non-NULL and there is
5234         previous strinfo, call get_stridx_plus_constant.
5235         (get_stridx): Pass exp as second argument to get_addr_stridx.
5236         (addr_stridxptr): Add missing list = list->next, so that there can be
5237         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
5238         the list is sorted by ascending list->offset.
5239         (get_stridx_plus_constant): Adjust so that it can be also called with
5240         ADDR_EXPR instead of SSA_NAME as PTR.
5241         (handle_char_store): Pass NULL_TREE as second argument to
5242         get_addr_stridx.
5244 2016-06-29  Richard Biener  <rguenther@suse.de>
5246         PR rtl-optimization/68961
5247         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
5249 2016-06-29  Richard Biener  <rguenther@suse.de>
5251         PR middle-end/71002
5252         * alias.c (component_uses_parent_alias_set_from): Handle
5253         type punning through union accesses by using the union alias set.
5254         * gimple.c (gimple_get_alias_set): Remove union type punning case.
5256 2016-07-29  Richard Biener  <rguenther@suse.de>
5258         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
5259         precision not matching mode precision.
5261 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
5263         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
5264         pa_output_arg_descriptor.
5265         (call_val_symref_64bit_post_reload): Likewise.
5266         (call_val_powf_64bit_post_reload): Likewise.
5267         (sibcall_internal_symref_64bit): Likewise.
5268         (sibcall_value_internal_symref_64bit): Likewise.
5270 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
5272         PR middle-end/71626
5273         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
5274         a constant, force its SUBREG_REG into memory or register instead
5275         of whole op1.
5277 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5279         PR target/58655
5280         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
5281         * doc/invoke.texi (AVR Options): Document it.
5283 2016-06-28  Walter Lee  <walt@tilera.com>
5285         * config/tilegx/linux.h: Do not include arch/icache.h
5286         (CLEAR_INSN_CACHE): Provide inlined definition directly.
5287         * config/tilepro/linux.h: Do not include arch/icache.h
5288         (CLEAR_INSN_CACHE): Provide inlined definition directly.
5290 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
5292         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
5293         for big-endian BIT_FIELD_REF.
5295 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
5297         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
5298         ('size' attribute): Add '128'.
5299         Include power9.md.
5300         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
5301         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
5302         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
5303         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
5304         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
5305         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
5306         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
5307         *trunc<mode>df2_odd): Set size attribute to '128'.
5308         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
5309         * config/rs6000/power6.md (power6-fp): Include dfp type.
5310         * config/rs6000/power7.md (power7-fp): Likewise.
5311         * config/rs6000/power8.md (power8-fp): Likewise.
5312         * config/rs6000/power9.md: New file.
5313         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
5314         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
5315         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
5316         htmsimple.
5317         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
5318         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
5319         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
5320         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
5321         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
5322         dfp_dscri_<mode>): Change type attribute to dfp.
5323         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
5324         attribute to vecsimple.
5325         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
5326         and prefetch streams.
5327         (rs6000_option_override_internal): Remove temporary code setting
5328         tuning to power8.  Don't set rs6000_sched_groups for power9.
5329         (last_scheduled_insn): Change to rtx_insn *.
5330         (divide_cnt, vec_load_pendulum): New variables.
5331         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
5332         (rs6000_issue_rate): Set issue rate for Power9.
5333         (is_power9_pairable_vec_type): New.
5334         (power9_sched_reorder2): New.
5335         (rs6000_sched_reorder2): Call new function for Power9 specific
5336         reordering.
5337         (insn_must_be_first_in_group): Remove Power9.
5338         (insn_must_be_last_in_group): Likewise.
5339         (force_new_group): Likewise.
5340         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
5341         Initialize divide_cnt/vec_load_pendulum.
5342         (_rs6000_sched_context, rs6000_init_sched_context,
5343         rs6000_set_sched_context): Handle context save/restore of new
5344         variables.
5346 2016-06-28  Richard Biener  <rguenther@suse.de>
5348         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5349         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
5350         COMPONENT_REF operand.
5351         (nonoverlapping_component_refs_p): Likewise.
5352         * stor-layout.c (start_bitfield_representative): Mark
5353         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
5355 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
5357         * Makefile.in: Don't cat ../stage_current if it does not exist.
5359         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
5360         last argument is a bit-field.
5362         PR rtl-optimization/71673
5363         * internal-fn.c (expand_arith_overflow_result_store): Use
5364         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
5365         expand_simple_binop.
5367         PR middle-end/66867
5368         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
5369         expand_ifn_atomic_compare_exchange): New functions.
5370         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
5371         * tree.h (build_call_expr_internal_loc): Rename to ...
5372         (build_call_expr_internal_loc_array): ... this.  Fix up type of
5373         last argument.
5374         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
5375         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
5376         ATOMIC_COMPARE_EXCHANGE result.
5377         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
5378         * gimple-fold.h (optimize_atomic_compare_exchange_p,
5379         fold_builtin_atomic_compare_exchange): New prototypes.
5380         * gimple-fold.c (optimize_atomic_compare_exchange_p,
5381         fold_builtin_atomic_compare_exchange): New functions..
5382         * tree-ssa.c (execute_update_addresses_taken): If
5383         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
5384         of call when finding addressable vars, and if such var becomes
5385         non-addressable, call fold_builtin_atomic_compare_exchange.
5387 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
5389         PR target/71670
5390         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
5391         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
5393 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
5395         * config/rs6000/rs6000.md ('type' attribute): Add
5396         veclogical,veccmpfx,vecexts,vecmove insn types.
5397         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
5398         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
5399         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
5400         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
5401         *nabs<mode>2_hw): Change type to vecmove.
5402         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
5403         *boolcc<mode>3_internal, *eqv<mode>3_internal,
5404         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
5405         *ieee_128bit_vsx_abs<mode>2_internal,
5406         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
5407         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
5408         *ieee128_mtvsrd_32bit): Change type to veclogical.
5409         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
5410         *movdi_internal32, *movdi_internal64): Update insn types.
5411         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
5412         vsx_extract_<mode>): Change type to veclogical.
5413         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
5414         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
5415         *vsx_sign_extend_si_v2di): Change type to vecexts.
5416         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
5417         type to veclogical.
5418         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
5419         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
5420         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
5421         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
5422         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
5423         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
5424         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
5425         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
5426         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
5427         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
5428         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
5429         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
5430         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
5431         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
5432         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
5433         (ppc7450-vecsimple): Add veclogical, vecmove.
5434         (ppc7450-veccmp): Add veccmpfx.
5435         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
5436         vecmove.
5437         (ppc8540_vector_compare): Add veccmpfx.
5438         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
5439         * config/rs6000/cell.md (cell-fp): Add fpsimple.
5440         (cell-vecsimple): Add veclogical, vecmove.
5441         (cell-veccmp): Add veccmpfx.
5442         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
5443         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
5444         veccmpfx.
5445         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
5446         * config/rs6000/power4.md (power4-fp): Add fpsimple.
5447         (power4-vecsimple): Add veclogical, vecmove.
5448         (power4-veccmp): Add veccmpfx.
5449         * config/rs6000/power5.md (power5-fp): Add fpsimple.
5450         * config/rs6000/power6.md (power6-fp): Add fpsimple.
5451         (power6-vecsimple): Add veclogical, vecmove.
5452         (power6-veccmp): Add veccmpfx.
5453         * config/rs6000/power7.md (power7-fp): Add fpsimple.
5454         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
5455         * config/rs6000/power8.md (power8-fp): Add fpsimple.
5456         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
5457         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
5458         * config/rs6000/titan.md (titan_fp): Add fpsimple.
5459         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
5460         fpsimple.
5461         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
5463 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
5465         PR target/71656
5466         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5467         OPTION_MASK_P9_DFORM_VECTOR.
5468         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
5469         disable -mpower9-dform-vector when using reload.
5470         (quad_address_p): Remove 'gpr_p' argument and all associated code.
5471         New 'strict' argument.  Update all callers.  Add strict addressing
5472         support.
5473         (rs6000_legitimate_offset_address_p): Remove call to
5474         virtual_stack_registers_memory_p.
5475         (rs6000_legitimize_reload_address): Add quad address support.
5476         (rs6000_legitimate_address_p): Move call to quad_address_p above
5477         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
5478         to account for new strict usage.
5479         (rs6000_output_move_128bit): Adjust quad_address_p args to account
5480         for new strict usage.
5481         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
5483 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
5485         PR target/70902
5486         PR target/71453
5487         PR target/71555
5488         PR target/71596
5489         PR target/71657
5490         * config/i386/i386.c (ix86_spill_class): Disable condition to
5491         always return NO_REGS.
5493 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
5495         * predict.c: Include gimple-pretty-print.h
5496         (predicted_by_loop_heuristics_p): Check also
5497         PRED_LOOP_EXIT_WITH_RECURSION
5498         (predict_loops): Find self recursive calls and use special purpose
5499         predictors for them; dump log about decisions.
5500         (pass_profile::execute): Dump info about #of iterations.
5501         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
5502         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
5504 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
5506         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
5507         output_asm_insn calls and shorten long lines.  Output .CALL
5508         argument descriptor using pa_output_arg_descriptor.  Add various
5509         inline $$dyncall and other optimizations.
5510         (pa_attr_length_indirect_call): Adjust ordering and lengths.
5512 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
5514         PR tree-optimization/71643
5515         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
5516         EH preds.
5518         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
5519         leak a bitmap if dep_bb is NULL.
5521         PR tree-optimization/71631
5522         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
5523         to rewrite_expr_tree even if negate_result, move new_lhs var
5524         declaration and initialization earlier, for powi_result set afterwards
5525         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
5526         if new_lhs != lhs, and don't shadow gsi var.
5528 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
5530         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
5531         Add in_loop parameter.
5532         (predict_loops): Add loop guard heuristics.
5533         * predict.def (PRED_LOOP_GUARD): New heuristics.
5535 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
5537         * predict.c: Include ipa-utils.h
5538         (tree_bb_level_prediction): Predict recursive calls.
5539         (tree_estimate_probability_bb): Skip inexpensive calls for call
5540         predictor.
5541         * predict.def (PRED_RECURSIVE_CALL): New.
5543 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5545         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
5546         (BU_FLOAT128_1): Likewise.
5547         (FABSQ): Likewise.
5548         (COPYSIGNQ): Likewise.
5549         (RS6000_BUILTIN_NANQ): Likewise.
5550         (RS6000_BUILTIN_NANSQ): Likewise.
5551         (RS6000_BUILTIN_INFQ): Likewise.
5552         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
5553         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
5554         (TARGET_FOLD_BUILTIN): New #define.
5555         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
5556         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
5557         (rs6000_fold_builtin): New target hook implementation, handling
5558         folding of 128-bit NaNs and infinities.
5559         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
5560         entries are filled in to avoid problems during bootstrap
5561         self-test; define builtins for 128-bit NaNs and infinities.
5562         (rs6000_opt_mask): Add entry for float128.
5563         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
5564         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
5565         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
5566         (const_str_type_node): New #define.
5567         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
5568         to a define_expand that dispatches to either copysign<mode>3_soft
5569         or copysign<mode>3_hard.
5570         (copysign<mode>3_hard): Rename from copysign<mode>3.
5571         (copysign<mode>3_soft): New define_insn.
5572         * doc/extend.texi: Document new builtins.
5574 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
5576         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
5577         PRIu64 instead of lu.
5579 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5581         PR debug/71642
5582         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
5583         copy the type name.
5585 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
5587         PR tree-optimization/71647
5588         * omp-low.c (lower_rec_input_clauses): Convert
5589         omp_clause_aligned_alignment (c) to size_type_node for the
5590         last argument of __builtin_assume_aligned.
5592 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5594         * configure.ac (calling ___tls_get_addr via GOT): New
5595         assembler/linker check.
5596         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
5597         assembler and linker supports calling ___tls_get_addr via GOT.
5598         Otherise, defined to 0.
5599         * config.in: Regenerated.
5600         * configure: Likewise.
5601         * config/i386/constraints.md (Yb): New constraint.
5602         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
5603         (REG_CLASS_NAMES): Likewise.
5604         (REG_CLASS_CONTENTS): Likewise.
5605         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
5606         the b constraint with the Yb constraint.  Call ___tls_get_addr
5607         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
5608         is 1.
5609         (*tls_local_dynamic_base_32_gnu): Likewise.
5610         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
5611         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
5612         (*tls_local_dynamic_base_64_<mode>): Likewise.
5614 2016-06-24  Martin Liska  <mliska@suse.cz>
5616         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
5617         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
5618         few functions.
5619         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
5620         argument to true if the expected number of iterations is
5621         loop-based.
5623 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
5625         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
5626         assemble for 32bit target.
5627         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
5628         and $ld_ix86_gld_32_opt to link for 32bit target.
5629         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
5630         * configure: Regenerate.
5632 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5634         * config/arm/arm.c (int_log2): Delete definition and prototype.
5635         (shift_op): Use exact_log2 instead of int_log2.
5636         (vfp3_const_double_for_fract_bits): Likewise.
5638 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
5640         * internal-fn.c (expand_arith_set_overflow): New function.
5641         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
5642         Use it.
5643         (expand_arith_overflow_result_store): Likewise.  Handle precision
5644         smaller than mode precision.
5645         * tree-vrp.c (extract_range_basic): For imag part, handle
5646         properly signed 1-bit precision result.
5647         * doc/extend.texi (__builtin_add_overflow): Document that last
5648         argument can't be pointer to enumerated or boolean type.
5649         (__builtin_add_overflow_p): Document that last argument can't
5650         have enumerated or boolean type.
5652 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5653             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5655         * config/rs6000/predicates.md (splat_input_operand): Rework.
5656         Don't allow constants, since the insns that use this predicate
5657         don't support constants.  Constants are handled by other insns
5658         that are created via combine.  During and after register
5659         allocation, only allow indexed or indirect addresses, and not
5660         general addresses.  Only allow modes supported by the hardware.
5661         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
5662         comment.  Move check for using VSPLTIS<x> to a common location,
5663         instead of doing it in two different places.
5665 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
5667         * config/i386/driver-i386.c (host_detect_local_cpu): Set
5668         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
5669         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
5670         signature_CENTAUR_ebx.
5672 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
5674         PR target/66232
5675         PR target/67400
5676         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
5677         (as_ix86_gas_32_opt): This.
5678         (ld_ix86_tls_ldm_opt): Renamed to ...
5679         (ld_ix86_gld_32_opt): This.
5680         (R_386_TLS_LDM reloc): Updated.
5681         (R_386_GOT32X reloc): New assembler/linker check.
5682         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
5683         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
5684         defined to 0.
5685         * config.in: Regenerated.
5686         * configure: Likewise.
5687         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
5688         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
5689         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
5690         if ix86_force_load_from_GOT_p returns true.
5691         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
5692         ix86_force_load_from_GOT_p returns true.
5693         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
5694         the external function address via the GOT slot.
5695         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
5696         HAVE_AS_IX86_GOT32X before returning false.
5697         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
5698         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
5700 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
5702         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
5704 2016-06-23  Andi Kleen  <ak@linux.intel.com>
5706         * Makefile.in: Regenerate.
5707         * doc/install.texi: Document autoprofiledbootstrap.
5709 2016-06-23  Andi Kleen  <ak@linux.intel.com>
5711         * config/i386/gcc-auto-profile: New file.
5713 2016-06-23  Martin Liska  <mliska@suse.cz>
5715         PR middle-end/71619
5716         * predict.c (predict_loops): Revert the hunk that was removed
5717         in r237103.
5719 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
5721         * config.gcc: Add support for arm*-*-phoenix* targets.
5722         * config/arm/t-phoenix: New.
5723         * config/phoenix.h: New.
5725 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
5726             H.J. Lu  <hongjiu.lu@intel.com>
5728         PR target/67400
5729         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
5730         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
5731         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
5732         ix86_force_load_from_GOT_p returns true.
5733         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
5734         ix86_force_load_from_GOT_p returns true.
5735         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
5736         ix86_force_load_from_GOT_p returns true.
5737         (ix86_expand_move): Load the external function address via the
5738         GOT slot if ix86_force_load_from_GOT_p returns true.
5739         * config/i386/predicates.md (x86_64_immediate_operand): Return
5740         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
5741         (x86_64_zext_immediate_operand): Ditto.
5743 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
5745         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
5747 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
5749         PR c/70339
5750         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
5751         * diagnostic.c (pedwarn_at_rich_loc): New function.
5752         * spellcheck.h (best_match::best_match): Add a
5753         "best_distance_so_far" optional parameter.
5754         (best_match::set_best_so_far): New method.
5755         (best_match::get_best_distance): New accessor.
5756         (best_match::get_best_candidate_length): New accessor.
5758 2016-06-22  Nick Clifton  <nickc@redhat.com>
5760         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
5761         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
5762         modes are accepted as well.
5763         (ucompare_loc_descriptor): Likewise.
5764         (minmax_loc_descriptor): Likewise.
5765         (clz_loc_descriptor): Likewise.
5766         (popcount_loc_descriptor): Likewise.
5767         (bswap_loc_descriptor): Likewise.
5768         (rotate_loc_descriptor): Likewise.
5769         (mem_loc_descriptor): Likewise.
5770         (loc_descriptor): Likewise.
5772 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
5774         * common.opt (fdiagnostics-parseable-fixits): New option.
5775         * diagnostic.c: Include "selftest.h".
5776         (print_escaped_string): New function.
5777         (print_parseable_fixits): New function.
5778         (diagnostic_report_diagnostic): Call print_parseable_fixits.
5779         (selftest::assert_print_escaped_string): New function.
5780         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
5781         (selftest::test_print_escaped_string): New function.
5782         (selftest::test_print_parseable_fixits_none): New function.
5783         (selftest::test_print_parseable_fixits_insert): New function.
5784         (selftest::test_print_parseable_fixits_remove): New function.
5785         (selftest::test_print_parseable_fixits_replace): New function.
5786         (selftest::diagnostic_c_tests): New function.
5787         * diagnostic.h (struct diagnostic_context): Add field
5788         "parseable_fixits_p".
5789         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5790         -fdiagnostics-parseable-fixits.
5791         (-fdiagnostics-parseable-fixits): New option.
5792         * opts.c (common_handle_option): Handle
5793         -fdiagnostics-parseable-fixits.
5794         * selftest-run-tests.c (selftest::run_tests): Call
5795         selftest::diagnostic_c_tests.
5796         * selftest.h (selftest::diagnostic_c_tests): New prototype.
5798 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
5800         PR tree-optimization/71488
5801         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
5802         comparison of boolean vectors.
5803         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
5804         of boolean vectors using bitwise operations.
5806 2016-06-22  Andreas Schwab  <schwab@suse.de>
5808         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
5809         Remove declaration.
5811 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
5813         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
5815 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5817         * config/i386/i386.c (print_reg): Emit an error message on attempt to
5818         print FLAGS_REG.
5820 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5822         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
5823         * config/arm/arm-cores.def (cortex-a73): New entry.
5824         (cortex-a73.cortex-a35): Likewise.
5825         (cortex-a73.cortex-a53): Likewise.
5826         * config/arm/arm-tables.opt: Regenerate.
5827         * config/arm/arm-tune.md: Likewise.
5828         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
5829         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
5830         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
5831         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
5832         * doc/invoke.texi (ARM Options): Document cortex-a73,
5833         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
5835 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5837         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
5838         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
5839         (cortex-a73.cortex-a35): Likewise.
5840         (cortex-a73.cortex-a53): Likewise.
5841         * config/aarch64/aarch64-tune.md: Regenerate.
5842         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
5843         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
5844         -mcpu and -mtune.
5846 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5848         * configure.ac (gcc_cv_as_compress_debug): Remove
5849         --compress-debug-sections as extra as switch.
5850         Handle gas --compress-debug-sections=type.
5851         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
5852         Handle gld --compress-debug-sections=type.
5853         * configure: Regenerate.
5855 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5857         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
5859 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
5861         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
5862         (do_rewrite): likewise.
5864 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5866         * common/config/mep/mep-common.c: Remove.
5867         * config.gcc: Remove mep-* support.
5868         * config/mep/constraints.md: Remove.
5869         * config/mep/default.h: Remove.
5870         * config/mep/intrinsics.h: Remove.
5871         * config/mep/intrinsics.md: Remove.
5872         * config/mep/ivc2-template.h: Remove.
5873         * config/mep/mep-c5.cpu: Remove.
5874         * config/mep/mep-core.cpu: Remove.
5875         * config/mep/mep-default.cpu: Remove.
5876         * config/mep/mep-ext-cop.cpu: Remove.
5877         * config/mep/mep-intrin.h: Remove.
5878         * config/mep/mep-ivc2.cpu: Remove.
5879         * config/mep/mep-pragma.c: Remove.
5880         * config/mep/mep-protos.h: Remove.
5881         * config/mep/mep.c: Remove.
5882         * config/mep/mep.cpu: Remove.
5883         * config/mep/mep.h: Remove.
5884         * config/mep/mep.md: Remove.
5885         * config/mep/mep.opt: Remove.
5886         * config/mep/predicates.md: Remove.
5887         * config/mep/t-mep: Remove.
5888         * doc/install.texi: Remove mep-* documentation.
5889         * doc/md.texi: Likewise.
5891 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5893         * config.gcc: Remove support for avr-rtems.
5894         * config/avr/gen-avr-mmcu-specs.c: Likewise.
5895         * config/avr/rtems.h: Remove.
5896         * config/avr/t-rtems: Remove.
5898 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5900         * config.gcc: Remove m32r-rtems support.
5901         * config/m32r/rtems.h: Remove.
5903 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5905         * config.gcc: Remove h8300-rtems support.
5906         * config/h8300/rtems.h: Remove.
5907         * config/h8300/t-rtems: Remove.
5909 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5911         * config.gcc: Remove support for knetbsd.
5912         * configure.ac: Likewise.
5913         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
5914         * config/knetbsd-gnu.h: Remove.
5915         * configure: Regenerate.
5917 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5919         * config.gcc: Remove support for openbsd 2 and 3.
5920         * config/openbsd-oldgas.h: Remove.
5922 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5924         * config.gcc: Remove interix support.
5925         * config/i386/i386-interix.h: Remove.
5926         * config/i386/interix.opt: Remove.
5927         * config/i386/t-interix: Remove.
5928         * configure: Regenerate.
5929         * configure.ac: Remove interix support.
5930         * doc/install.texi: Remove interix documentation.
5932 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5934         * config/rs6000/rs6000.h: Add conditional preprocessing directives
5935         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
5936         not defined.
5938 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
5940         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
5941         they are both PLACEHOLDER_EXPRs.
5943 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5945         * stor-layout.c (layout_type): Move setting complex MODE to
5946         layout_type, instead of setting it ahead of time by the caller.
5947         * tree.c (build_complex_type): Likewise.
5949 2016-06-21  Martin Liska  <mliska@suse.cz>
5951         * predict.c (force_edge_cold): Replace imposisble with
5952         impossible.
5954 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
5956         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
5957         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
5959 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
5961         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
5963 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5964             Ilya Enkovich  <ilya.enkovich@intel.com>
5966         PR target/71549
5967         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
5968         New member function to convert V1TImode register to SUBREG
5969         TImode in debug insn.
5970         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
5971         after changing register mode to V1TImode.
5973 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
5975         * config/aarch64/aarch64-cores.def (vulcan): New core.
5976         * config/aarch64/aarch64-tune.md: Regenerate.
5977         * doc/invoke.texi: Document vulcan as an available option.
5979 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
5981         * cse.c (canon_asm_operands): New function extracted from...
5982         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
5983         either standalone or member of a PARALLEL.
5985 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
5987         PR target/30417
5988         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
5989         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
5990         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
5992 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
5994         PR target/71103
5995         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
5996         constant addresses if can_create_pseudo_p.
5998 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
6000         PR tree-optimization/71588
6001         * tree-ssa-strlen.c (valid_builtin_call): New function.
6002         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
6003         it.
6005 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
6007         PR middle-end/71581
6008         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
6009         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
6010         for conversion of scalar user var to complex type and use the
6011         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
6012         punt.
6014         PR rtl-optimization/71591
6015         * toplev.c (toplev::run_self_tests): If no_backend, complain and
6016         don't run any tests.
6018 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
6020         PR target/71571
6021         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
6022         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
6023         space for PIC with non-v32 and the common non-PIC "jump".
6025 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
6027         PR target/71559
6028         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
6029         returned values and add UN*/LTGT/*ORDERED cases with values matching
6030         D operand modifier on vcmp for AVX.
6032 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6034         * config/aarch64/aarch64.opt
6035         (mpc-relative-literal-loads): Rename internal option name.
6036         * config/aarch64/aarch64.c
6037         (aarch64_nopcrelative_literal_loads): Rename to
6038         aarch64_pcrelative_literal_loads.
6039         (aarch64_expand_mov_immediate): Likewise.
6040         (aarch64_secondary_reload): Likewise.
6041         (aarch64_can_use_per_function_literal_pools_p): Likewise.
6042         (aarch64_override_options_after_change_1): Rename and simplify logic.
6043         (aarch64_classify_symbol): Merge large model checks into switch,
6044         remove pc-relative load check.
6046 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6048         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
6049         costs relative to the cost of a register move.
6051 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6053         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
6054         (vcvt_n_f64_u64): Likewise.
6055         (vcvt_n_s64_f64): Likewise.
6056         (vcvt_n_u64_f64): Likewise.
6057         (vcvt_f64_s64): Likewise.
6058         (vrecpe_f64): Likewise.
6059         (vcvt_f64_u64): Likewise.
6060         (vrecps_f64): Likewise.
6062 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6064         * config/aarch64/aarch64.md
6065         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
6066         iterators.
6067         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
6068         attributes.
6069         * config/aarch64/aarch64-builtins.c
6070         (aarch64_types_binop_uss_qualifiers): Delete.
6071         (TYPES_BINOP_USS): Likewise.
6072         (aarch64_types_binop_sus_qualifiers): Likewise.
6073         (TYPES_BINOP_SUS): Likewise.
6074         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
6075         (TYPES_FCVTIMM_SUS): Likewise.
6076         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
6077         rather than BINOP.
6078         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
6079         (fcvtzs): Use SHIFTIMM rather than BINOP.
6080         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
6082 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6084         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
6085         costs relative to the cost of a register move.
6087 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6089         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
6090         Allow scalar/single vector modes to be tieable.
6092 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6094         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
6096 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6098         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
6099         "alignement".
6100         * tree.h (TYPE_ALIGN): Likewise.
6102 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
6104         PR target/71103
6105         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
6107 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
6109         * config/avr/avr.c (avr_print_operand): Fix "format not a string
6110         literal" build warnings.
6111         (avr_print_operand_address): Dito.
6113 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
6115         PR target/71375
6116         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
6117         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
6119 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
6121         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
6123 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6125         PR bootstrap/71435
6126         * reload1.c (reload): Pass 0 to finish_spills when called because
6127         update_eliminables_and_spill returns true and remove did_spill.
6128         (finish_spills): Adjust comment and document GLOBAL parameter.
6130 2016-06-17  DJ Delorie  <dj@redhat.com>
6132         PR target/71338
6133         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
6134         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
6135         (umulqihi3_virt): Likewise.
6136         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
6137         (umulqihi3_real): Likewise.
6139 2016-06-17  Martin Liska  <mliska@suse.cz>
6141         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
6143 2016-06-17  Martin Liska  <mliska@suse.cz>
6145         * predict.def: PRED_LOOP_EXIT from 92 to 85.
6147 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
6149         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
6150         __FAST_MATH__.
6151         (vaddq_f32): Likewise.
6152         (vmul_f32): Likewise.
6153         (vmulq_f32): Likewise.
6154         (vsub_f32): Likewise.
6155         (vsubq_f32): Likewise.
6157 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
6159         PR tree-optimization/71347
6160         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
6161         cost for all uses in group.
6163 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
6165         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
6166         insert gimple seq if it's not empty.
6168 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
6170         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
6171         member OFFSET.
6172         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
6173         rather than OFFSET.
6174         (comp_dr_with_seg_len_pair): Ditto.
6175         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
6176         struct dr_with_seg_len_pair against DR_OFFSET.
6177         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
6178         DR_OFFSET directly.
6180 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6182         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
6184 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
6186         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
6187         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
6188         (pa_output_millicode_call): Likewise.
6189         (pa_output_call): Likewise.
6190         (pa_output_indirect_call): Likewise.
6191         (pa_asm_output_mi_thunk): Likewise.
6193 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6195         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
6197 2016-06-16  Martin Liska  <mliska@suse.cz>
6199         * predict.c (combine_predictions_for_insn): When we find a first
6200         match predictor, we should consider just predictors with
6201         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
6202         DS theory predictor.
6203         (combine_predictions_for_bb): Likewise.
6205 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6207         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
6208         with base of reference to struct.
6210 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
6212         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
6214 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6216         PR target/71151
6217         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
6218         progmem_swtable_section.
6219         (progmem_swtable_section): Remove.
6220         (avr_asm_function_rodata_section): Remove.
6221         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
6222         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
6224 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
6226         * config/i386/driver-i386.c (host_detect_local_cpu): Set
6227         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
6228         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
6229         signature_CENTAUR_ebx.
6230         * config/i386/i386.c (ix86_option_override_internal): Add
6231         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
6232         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
6233         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
6235 2016-06-16  Martin Liska  <mliska@suse.cz>
6237         * predict.def: Add fortran loop preheader predictor.
6238         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
6239         fold IFN_BUILTIN_EXPECT with a known constant argument.
6241 2016-06-16  Martin Liska  <mliska@suse.cz>
6243         * predict.def: Add 'Fortran' to display text of all
6244         PRED_FORTRAN_* predictors.
6246 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
6248         PR target/71242
6249         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
6250         [IA64_BUILTIN_NANSQ]: Ditto.
6251         (ia64_fold_builtin): New function.
6252         (TARGET_FOLD_BUILTIN): New define.
6253         (ia64_init_builtins) Declare const_string_type node.
6254         Add __builtin_nanq and __builtin_nansq builtin functions.
6255         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
6257 2016-06-16  Nick Clifton  <nickc@redhat.com>
6259         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
6260         MSP430_HWMULT_ prefix to enum values.
6261         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
6262         * config/msp430/msp430.c: Update use of enum values.
6263         * config/msp430/msp430.md: Likewise.
6264         * config/msp430/msp430.opt: Likewise.
6266 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
6268         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
6269         of comparsions in the last iteration.
6271 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
6272             Joern Rennecke  <joern.rennecke@embecosm.com>
6274         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
6275         addresses.
6276         (arc_needs_pcl_p): Add GOTOFFPC.
6277         (arc_legitimate_pic_addr_p): Likewise.
6278         (arc_output_pic_addr_const): Likewise.
6279         (arc_legitimize_pic_address): Generate a pc-relative address using
6280         GOTOFFPC.
6281         (arc_output_libcall): Use @pcl syntax.
6282         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
6283         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
6284         (*movsi_insn): Use @pcl syntax.
6285         (doloop_begin_i): Likewise.
6287 2016-06-16  Martin Liska  <mliska@suse.cz>
6289         * predict.def: Define a new predictor.
6291 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
6293         * config/arc/arc.opt (mtp-regno): Update text.
6295 2016-06-16  Renlin Li  <renlin.li@arm.com>
6297         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
6299 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6301         PR target/71554
6302         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
6303         (setcc + and peephole2): Likewise.
6305         PR rtl-optimization/71532
6306         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
6307         memory slots.
6309 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6311         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
6312         DImode constants with XXSPLTIB in vector registers.
6313         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
6314         vsx_extract_<mode>_internal{1,2} into a single insn that handles
6315         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
6316         extraction of the element at the top of the register as a scalar
6317         value.
6318         (vsx_extract_<mode>_internal1): Likewise.
6319         (vsx_extract_<mode>_internal2): Likewise.
6320         * config/rs6000/constraints.md (wi constraint): Remove a comment
6321         about DImode not being allowed in Altivec registers.
6322         (wB constraint): New constraint for constants that can be
6323         generated in Altivec registers with VSPLTISW/VUPKHSW.
6324         * config/rs6000/predicates.md (xxspltib_constant_split): Update
6325         comments.
6326         (xxspltib_constant_nosplit): Likewise.
6327         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
6328         support for -mupper-regs-di to enable DImode to go into Altivec
6329         registers.
6330         (POWERPC_MASKS): Likewise.
6331         (power7 cpu): Likewise.
6332         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
6333         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
6334         for DImode being allowed in Altivec registers.  Update wi/wj
6335         constraints.  Set scalar_in_vmx_p flag.
6336         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
6337         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
6338         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
6339         (rs6000_opt_masks): Add -mupper-regs-di.
6340         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
6341         direct move to use wi and not wj.
6342         (lfiwzx): Likewise.
6343         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
6344         alternative.
6345         (floatunssi<mode>2_lfiwzx_mem): Likewise.
6346         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
6347         any VSX register, instead of just Altivec registers, to allow
6348         either operand to be an Altivec register or both.
6349         (fixuns_trunc<mode>di2_fctiduz): Likewise.
6350         (movdi_internal32): Add support for -mupper-regs-di.  Add support
6351         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
6352         the alternatives and attributes to be lined up to be easier to
6353         read.
6354         (movdi_internal64): Likewise.
6355         (64-bit DImode splitters): Change predicates to only split loading
6356         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
6357         load constants in ISA 3.0 or ISA 2.07 respectively.
6358         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6359         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
6360         mention -mcpu=power9 sets these options.
6361         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
6362         wB constraint.
6364 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6366         PR target/67353
6367         * config/avr/avr.c (avr_set_current_function): Warn misspelled
6368         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
6369         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
6370         by default to warn misspelled interrupt/ signal handler.
6371         * doc/invoke.texi (AVR Options): Document it. Update description
6372         for -nodevicelib option.
6374 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6376         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
6377         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
6378         (aarch64_<sur>shll2_n<mode>): Likewise.
6380 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
6382         PR middle-end/71529
6383         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
6384         DECL_CONTEXT for copied arguments.
6386 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
6388         PR tree-optimization/71483
6389         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
6390         for slp
6392 2016-06-15  Martin Liska  <mliska@suse.cz>
6394         * predict.c (tree_predict_by_opcode): Call predict_edge_def
6395         instead of predict_edge w/o a probability.
6397 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
6399         PR tree-optimization/71439
6400         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
6401         live PHIs.
6403 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6405         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
6406         register subregs in SET_SRC.
6408 2016-06-15  Richard Biener  <rguenther@suse.de>
6410         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
6411         store restrictions.
6413 2016-06-15  Richard Biener  <rguenther@suse.de>
6415         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
6416         not consider dependences between accesses that belong to the
6417         same group.
6418         (vect_analyze_data_ref_dependences): Do not analyze read-read
6419         or self-dependences.
6421 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6423         * spellcheck-tree.c: Include spellcheck-tree.h rather than
6424         spellcheck.h.
6425         (find_closest_identifier): Reimplement in terms of
6426         best_match<tree,tree>.
6427         * spellcheck-tree.h: New file.
6428         * spellcheck.c (struct edit_distance_traits<const char *>): New
6429         struct.
6430         (find_closest_string): Reimplement in terms of
6431         best_match<const char *, const char *>.
6432         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
6433         overload to spellcheck-tree.h.
6434         (find_closest_identifier): Likewise.
6435         (struct edit_distance_traits<T>): New template.
6436         (class best_match): New class.
6438 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6440         * selftest-run-tests.c (selftest::run_tests): Call
6441         selftest::spellcheck_tree_c_tests.
6442         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
6443         * spellcheck-tree.c: Include selftest.h and stringpool.h.
6444         (selftest::test_find_closest_identifier): New function.
6445         (selftest::spellcheck_tree_c_tests): New function.
6446         * spellcheck.c (selftest::test_find_closest_string): Verify that
6447         the order of the vec does not affect the results for this case.
6448         (selftest::test_data): New array.
6449         (selftest::test_metric_conditions): New function.
6450         (selftest::spellcheck_c_tests): Add a test of case-comparison.
6451         Call selftest::test_metric_conditions.
6453 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6455         * config/rs6000/rs6000-builtin.def (commentary): Typo.
6456         (BU_P9_MISC_1): Likewise.
6457         (BU_P9_64BIT_MISC_0): Likewise.
6458         (BU_P9_MISC_0): Likewise.
6460 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6462         * gcc-rich-location.c
6463         (gcc_rich_location::add_fixit_misspelled_id): New method.
6464         * gcc-rich-location.h
6465         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
6467 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
6469         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
6470         FreeBSD 11 and above.
6472 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
6474         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
6476 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6478         * expmed.h: Close parenthesis in "at your option" in copyright
6479         boilerplate.
6480         * lower-subreg.h: Likewise.
6482 2016-06-14  Richard Biener  <rguenther@suse.de>
6484         PR middle-end/71526
6485         * genmatch.c (expr::gen_transform): Use in_type for comparisons
6486         if available.
6488 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6490         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
6491         New function.
6492         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
6493         mask+shift version.
6494         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
6495         New prototype.
6496         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
6497         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
6499 2016-06-14  Richard Biener  <rguenther@suse.de>
6501         PR tree-optimization/71522
6502         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
6503         copying into float copying.
6505 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
6507         PR tree-optimization/71520
6508         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
6509         (replace_block_by): Move user labels from bb1 to bb2.
6511 2016-06-14  Richard Biener  <rguenther@suse.de>
6513         PR middle-end/71310
6514         PR bootstrap/71510
6515         * expr.h (get_bit_range): Declare.
6516         * expr.c (get_bit_range): Export.
6517         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
6518         word_mode again to constrain the bitfield access.
6520 2016-06-14  Richard Biener  <rguenther@suse.de>
6522         PR tree-optimization/71521
6523         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
6524         division int_const_binop against zero divisor.
6526 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
6528         * config/i386/i386.md (signbittf2): New expander.
6529         * config/i386/sse.md (ptesttf2): New insn pattern.
6531 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6533         PR bootstrap/71481
6534         * input.c (selftest::test_reading_source_line): Avoid reading from
6535         __FILE__ by creating a tempfile with known content and reading
6536         from that instead.
6538 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6540         * pretty-print.c (assert_pp_format_colored): Skip the test if
6541         GCC_COLORS is set.
6542         (test_pp_format): Remove comment about GCC_COLORS.
6544 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6546         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
6547         * pretty-print.c (assert_pp_format_va): Add location param and use
6548         it with ASSERT_STREQ_AT.
6549         (assert_pp_format): Add location param and pass it to
6550         assert_pp_format_va.
6551         (assert_pp_format_colored): Likewise.
6552         (ASSERT_PP_FORMAT_1): New.
6553         (ASSERT_PP_FORMAT_2): New.
6554         (ASSERT_PP_FORMAT_3): New.
6555         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
6556         explicitly, or implicitly via the above macros.
6557         * selftest.c (selftest::pass): Use a selftest::location rather
6558         than file and line.
6559         (selftest::fail): Likewise.  Print the function name.
6560         (selftest::fail_formatted): Likewise.
6561         (selftest::assert_streq): Use a selftest::location rather than
6562         file and line.
6563         * selftest.h (selftest::location): New struct.
6564         (SELFTEST_LOCATION): New macro.
6565         (selftest::pass): Accept a const location & rather than file
6566         and line.
6567         (selftest::fail): Likewise.
6568         (selftest::fail_formatted): Likewise.
6569         (selftest::assert_streq): Likewise.
6570         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
6571         (ASSERT_FALSE): Likewise.
6572         (ASSERT_EQ): Likewise.
6573         (ASSERT_NE): Likewise.
6574         (ASSERT_STREQ): Likewise.
6575         (ASSERT_PRED1): Likewise.
6576         (ASSERT_STREQ_AT): New macro.
6578 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6580         * selftest.c (selftest::fail_formatted): New function.
6581         (selftest::assert_streq): New function.
6582         * selftest.h (selftests::fail_formatted): New decl.
6583         (selftest::assert_streq): New decl.
6584         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
6586 2016-06-13  Jeff Law  <law@redhat.com>
6588         PR tree-optimization/71403
6589         * tree-ssa-threadbackward.c
6590         (convert_and_register_jump_thread_path): No longer accept reference
6591         to path.  Do not pop items off the path anymore.
6592         (fsm_find_control_statement_thread_paths): Do not allow threading
6593         to a deeper loop nest.  Pop the last item off the path here rather
6594         than in convert_and_register_jump_thread_path.
6596 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
6597             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
6599         [AArch64] Emit division using the Newton series
6601         * config/aarch64/aarch64-protos.h
6602         (cpu_approx_modes): Add new member "division".
6603         (aarch64_emit_approx_div): Declare new function.
6604         * config/aarch64/aarch64.c
6605         (generic_approx_modes): New member "division".
6606         (exynosm1_approx_modes): Likewise.
6607         (xgene1_approx_modes): Likewise.
6608         (aarch64_emit_approx_div): Define new function.
6609         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
6610         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
6611         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
6612         * doc/invoke.texi (-mlow-precision-div): Describe new option.
6614 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
6615             Wilco Dijkstra  <wilco.dijkstra@arm.com>
6617         [AArch64] Emit square root using the Newton series
6619         * config/aarch64/aarch64-protos.h
6620         (aarch64_emit_approx_rsqrt): Replace with new function
6621         "aarch64_emit_approx_sqrt".
6622         (cpu_approx_modes): New member "sqrt".
6623         * config/aarch64/aarch64.c
6624         (generic_approx_modes): New member "sqrt".
6625         (exynosm1_approx_modes): Likewise.
6626         (xgene1_approx_modes): Likewise.
6627         (aarch64_emit_approx_rsqrt): Replace with new function
6628         "aarch64_emit_approx_sqrt".
6629         (aarch64_override_options_after_change_1): Handle new option.
6630         * config/aarch64/aarch64-simd.md
6631         (rsqrt<mode>2): Use new function instead.
6632         (sqrt<mode>2): New expansion and insn definitions.
6633         * config/aarch64/aarch64.md: Likewise.
6634         * config/aarch64/aarch64.opt
6635         (mlow-precision-sqrt): Add new option description.
6636         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
6638 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
6640         [AArch64] Add more choices for the reciprocal square root approximation
6642         Allow a target to prefer such operation depending on the operation mode.
6644         * config/aarch64/aarch64-protos.h
6645         (AARCH64_APPROX_MODE): New macro.
6646         (AARCH64_APPROX_{NONE,ALL}): Likewise.
6647         (cpu_approx_modes): New structure.
6648         (tune_params): New member "approx_modes".
6649         * config/aarch64/aarch64-tuning-flags.def
6650         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
6651         * config/aarch64/aarch64.c
6652         (generic_approx_modes): New core "cpu_approx_modes" structure.
6653         (exynosm1_approx_modes): Likewise.
6654         (xgene1_approx_modes): Likewise.
6655         (generic_tunings): New member "approx_modes".
6656         (cortexa35_tunings): Likewise.
6657         (cortexa53_tunings): Likewise.
6658         (cortexa57_tunings): Likewise.
6659         (cortexa72_tunings): Likewise.
6660         (exynosm1_tunings): Likewise.
6661         (thunderx_tunings): Likewise.
6662         (xgene1_tunings): Likewise.
6663         (use_rsqrt_p): New argument for the mode and use new member from
6664         "tune_params".
6665         (aarch64_builtin_reciprocal): Devise mode from builtin.
6666         (aarch64_optab_supported_p): New argument for the mode.
6667         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
6669 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6671         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
6672         RS6000_BTM_MODULO flag into the set of flags that are considered
6673         to be part of the common configuration.
6675 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6677         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
6678         difference unsigned.
6679         (vec_absdb): New macro for vector absolute difference unsigned
6680         byte.
6681         (vec_absdh): New macro for vector absolute difference unsigned
6682         half-word.
6683         (vec_absdw): New macro for vector absolute difference unsigned word.
6684         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
6685         (vadu<mode>3): New insn.
6686         (*p9_vadu<mode>3): New insn.
6687         * config/rs6000/rs6000-builtin.def (vadub): New built-in
6688         definition.
6689         (vaduh): New built-in definition.
6690         (vaduw): New built-in definition.
6691         (vadu): New overloaded built-in definition.
6692         (vadub): New overloaded built-in definition.
6693         (vaduh): New overloaded built-in definition.
6694         (vaduw): New overloaded built-in definition.
6695         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6696         overloaded vector absolute difference unsigned functions.
6697         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6698         the ISA 3.0 vector absolute difference unsigned built-in functions.
6700 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
6702         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
6703         update shared_lookup_references only once after changing operands.
6705 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
6707         PR middle-end/71373
6708         * tree-nested.c (convert_nonlocal_omp_clauses)
6709         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
6711         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
6712         * tree.def (CASE_LABEL_EXPR): Likewise.
6714 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6716         PR bootstrap/71481
6717         * input.c (test_builtins): Fix an assertion.
6719 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
6721         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
6722         (paritysi2): Ditto.
6723         (isinfxf2): Ditto.
6724         (isinf<mode>2): Ditto.
6726 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
6728         * ggc-tests.c (test_finalization): Only test need_finalization_p
6729         for GCC_VERSION >= 4003.
6731 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6733         * config/s390/vecintrin.h: Fix file description in comment.
6735 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6737         * config/s390/s390-builtin-types.def: Change builtin type naming
6738         scheme to match builtin-types.def.
6740 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
6742         * fold-const.c (optimize_minmax_comparison): Remove.
6743         (fold_comparison): Remove call to the above.
6744         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
6745         New transformations.
6747 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
6749         PR tree-optimization/71416
6750         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
6751         multiple entries
6753 2016-06-13  Martin Liska  <mliska@suse.cz>
6755         * predict.c (enum predictor_reason): Prefix enum with REASON_.
6756         (combine_predictions_for_insn): Likewise.
6757         (prune_predictions_for_bb): Likewise.
6758         (combine_predictions_for_bb): Likewise.
6760 2016-06-13  Richard Biener  <rguenther@suse.de>
6762         PR tree-optimization/71505
6763         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
6764         assert match comment.
6766 2016-06-13  Marek Polacek  <polacek@redhat.com>
6768         PR middle-end/71476
6769         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
6770         gimplify_switch_expr.
6771         (warn_switch_unreachable_r): New function.
6773 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6775         PR target/71379
6776         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
6777         one.
6779 2016-06-13  Richard Biener  <rguenther@suse.de>
6781         PR middle-end/64516
6782         * fold-const.c (fold_unary_loc): Preserve alignment when
6783         folding a VIEW_CONVERT_EXPR into a MEM_REF.
6785 2016-06-13  Martin Liska  <mliska@suse.cz>
6787         PR sanitizer/71458
6788         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
6789         w/ -fsanitize=bounds.
6791 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
6793         * config/i386/i386.c (ix86_init_builtins): Calculate
6794         FLOAT128_FTYPE_CONST_STRING function type only once.
6795         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
6796         built-in functions are available for x86-32 and x86-64 targets.
6798 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
6800         PR target/71241
6801         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
6802         New primitive type.
6803         (FLOAT128_FTYPE_CONST_STRING): New function type.
6804         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
6805         [IX86_BUILTIN_NANSQ]: Ditto.
6806         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
6807         (ix86_init_builtin_types): Declare const_string_type_node.
6808         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
6809         builtin functions.
6810         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
6811         * doc/extend.texi (x86 Built-in Functions): Document
6812         __builtin_nanq and __builtin_nansq.
6814 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
6816         PR target/71061
6817         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
6818         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
6819         length for pop patterns.
6820         (arm_attr_length_push_multi): Update comments.
6821         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
6822         attribute.
6823         (*pop_multiple_with_writeback_and_return): Likewise.
6824         (*pop_multiple_with_return): Likewise.
6826 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
6828         PR middle-end/71310
6829         * fold-const.c (optimize_bit_field_compare): Don't try to use
6830         word_mode unconditionally for reading the bit field, look at
6831         DECL_BIT_FIELD_REPRESENTATIVE instead.
6833 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
6835         PR middle-end/71478
6836         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
6837         vector integer type.
6839 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
6841         PR middle-end/71494
6842         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
6843         without LABEL_DECL, set *handled_ops_p to false instead of true.
6845 2016-06-10  Martin Sebor  <msebor@redhat.com>
6847         PR c/71392
6848         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
6849         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
6850         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
6851         them.
6852         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
6853         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
6854         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
6855         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
6856         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
6857         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
6858         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
6859         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
6861 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6863         * config/arm/arm.h (pool_vector_label,
6864         return_used_this_function): Remove.
6866 2016-06-10  Jeff Law  <law@redhat.com>
6868         PR tree-optimization/71335
6869         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
6870         zero length paths here.
6871         (convert_and_register_jump_thread_path): Remove hacks related to
6872         duplicated blocks in the jump thread path.
6873         (fsm_find_control_statement_thread_paths): Avoid putting the same
6874         block on the thread path twice, but ensure the thread path is
6875         unchanged from the caller's point of view.
6877 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
6879         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
6880         * predict.def (PRED_LOOP_BRANCH): Remove.
6882 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
6884         * Makefile.in (OBJS): Add ggc-tests.o.
6885         (GTFILES): Add ggc-tests.c.
6886         * ggc-tests.c: New file.
6887         * selftest-run-tests.c (selftest::run_tests): Call
6888         selftest::ggc_tests_c_tests.
6889         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
6891 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
6893         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
6895 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
6897         PR sanitizer/71480
6898         * varasm.c (place_block_symbol): Adjust alignment for asan protected
6899         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
6901 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
6903         * profile.c: Include cfgloop.h.
6904         (branch_prob): Compute estimated number of iterations.
6905         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
6906         recompute estimate number of iterations from profile.
6908 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6910         PR inline-asm/68843
6911         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
6912         must be grouped on top of stack.  Don't force early clobber
6913         on ordinary reg outputs.
6915 2016-06-10  Richard Biener  <rguenther@suse.de>
6917         * targhooks.c (default_builtin_vectorization_cost): Adjust
6918         vec_construct cost.
6920 2016-06-10  Richard Biener  <rguenther@suse.de>
6922         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
6923         to fold the RHS to a constant if possible.
6925 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6927         PR middle-end/71373
6928         * tree-nested.c (convert_nonlocal_omp_clauses)
6929         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
6930         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
6931         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
6933         * gimplify.c (gimplify_adjust_omp_clauses): Discard
6934         OMP_CLAUSE_TILE.
6935         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
6937         * omp-low.c (scan_sharing_clauses): Don't expect
6938         OMP_CLAUSE__CACHE_.
6940 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
6942         PR tree-optimization/71407
6943         PR tree-optimization/71416
6944         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
6945         BIT_FIELD_REF type.
6947 2016-06-10  Richard Biener  <rguenther@suse.de>
6949         PR middle-end/71477
6950         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
6952 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
6954         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
6956 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
6957             Jiong Wang  <jiong.wang@arm.com>
6959         PR rtl-optimization/70751
6960         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
6961         spilled into memory.
6963 2016-06-09  Jonathan Yong  <10walls@gmail.com>
6965         Revert:
6966         2015-09-21  Jonathan Yong  <10walls@gmail.com>
6968         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6969         sysroot/usr/lib/32api for additional win32 libraries,
6970         fixes failing Cygwin bootstrapping.
6972 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
6974         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
6975         Delete.
6977 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
6979         PR bootstrap/71471
6980         * pretty-print.c (pp_indent): Specify that %p is printed in a
6981         host-dependent manner.
6982         (test_pp_format): Remove the test for %p.
6984 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
6986         * config/mips/mips.c (mips_output_jump): Fix formatting.
6988 2016-06-09  Richard Biener  <rguenther@suse.de>
6990         PR tree-optimization/71462
6991         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
6992         removed blocks.
6994 2016-06-09  Martin Liska  <mliska@suse.cz>
6996         * predict.c (dump_prediction): Add new argument.
6997         (enum predictor_reason): New enum.
6998         (struct predictor_hash): New struct.
6999         (predictor_hash::hash): New function.
7000         (predictor_hash::equal): Likewise.
7001         (not_removed_prediction_p): New function.
7002         (prune_predictions_for_bb): Likewise.
7003         (combine_predictions_for_bb): Prune predictions.
7005 2016-06-09  Martin Liska  <mliska@suse.cz>
7007         * predict.c (filter_predictions): New function.
7008         (remove_predictions_associated_with_edge): Use the filter
7009         function.
7010         (equal_edge_p): New function.
7012 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
7014         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
7015         Correct usage of @samp vs @option, add @samp where appropriate.
7016         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
7017         Add armv6s-m and document it, as it is no official ARM name.
7019 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7021         * ifcvt.c (struct noce_if_info): Add transform_name field.
7022         (noce_try_move): Set if_info->transform_name to the function name.
7023         (noce_try_ifelse_collapse): Likewise.
7024         (noce_try_store_flag): Likewise.
7025         (noce_try_inverse_constants): Likewise.
7026         (noce_try_store_flag_constants): Likewise.
7027         (noce_try_addcc): Likewise.
7028         (noce_try_store_flag_mask): Likewise.
7029         (noce_try_cmove): Likewise.
7030         (noce_try_cmove_arith): Likewise.
7031         (noce_try_minmax): Likewise.
7032         (noce_try_abs): Likewise.
7033         (noce_try_sign_mask): Likewise.
7034         (noce_try_bitop): Likewise.
7035         (noce_convert_multiple_sets): Likewise.
7036         (noce_process_if_block): Print if_info->transform_name to
7037         dump_file if transformation succeeded.
7039 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7041         * config/arm/cortex-a57.md (cortex_a57_alu):
7042         Handle csel type.
7044 2016-06-08  Martin Sebor  <msebor@redhat.com>
7045             Jakub Jelinek  <jakub@redhat.com>
7047         PR c++/70507
7048         PR c/68120
7049         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
7050         BUILT_IN_MUL_OVERFLOW_P): New builtins.
7051         * builtins.c: Include gimple-fold.h.
7052         (fold_builtin_arith_overflow): Handle
7053         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
7054         (fold_builtin_3): Likewise.
7055         * doc/extend.texi (Integer Overflow Builtins): Document
7056         __builtin_{add,sub,mul}_overflow_p.
7058 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
7060         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
7061         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
7063 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
7065         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
7066         Rewrite, looking one level down for records and arrays.
7068 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
7070         * pretty-print.c: Include "selftest.h".
7071         (pp_format): Fix comment.
7072         (identifier_to_locale): Likewise.
7073         (selftest::test_basic_printing): New function.
7074         (selftest::assert_pp_format): New function.
7075         (selftest::test_pp_format): New function.
7076         (selftest::pretty_print_c_tests): New function.
7077         * selftest-run-tests.c (selftest::run_tests): Call
7078         selftest::pretty_print_c_tests.
7079         * selftest.h (pretty_print_c_tests): New declaration.
7081 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7083         * invoke.texi (max-loop-headers-insns): Document.
7084         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
7085         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
7086         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
7088 2016-06-08  Richard Biener  <rguenther@suse.de>
7090         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
7091         on strided SLP loads and fall back to scalar loads in case
7092         we can't chunk them.
7094 2016-06-08  Richard Biener  <rguenther@suse.de>
7096         PR tree-optimization/71452
7097         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
7098         type used for the SSA rewrite has enough precision to cover
7099         the dynamic type of the location.
7101 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
7102             Richard Biener  <rguenther@suse.de>
7104         PR c++/71448
7105         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
7106         the same as DECL_P (base0) for indirect_base0.  Use equality_code
7107         in one further place.
7109 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
7111         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
7112         to one word if the field is known to overlap other words.
7113         (extract_bit_field_1): Likewise.
7114         (store_split_bit_field): Remove compensating code.
7115         (extract_split_bit_field): Likewise.
7117 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
7119         PR debug/71432
7120         PR ada/71413
7121         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
7123 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7125         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
7126         VDQF.
7127         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
7128         (arch64_addpv4sf): Delete.
7129         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
7130         "gen_aarch64_addpv4sf".
7131         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
7132         builtin.
7133         (vpadds_f32): Likewise.
7134         (vpaddq_f32): Likewise.
7135         (vpaddq_f64): Likewise.
7137 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7139         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
7140         VALLF.
7141         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
7142         to VALLF.  Rename to "fabd<mode>3".
7143         "*fabd_scalar<mode>3): Delete.
7144         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
7145         Use builtin.
7146         (vabdd_f64): Likewise.
7147         (vabd_f32): Likewise.
7148         (vabd_f64): Likewise.
7149         (vabdq_f32): Likewise.
7150         (vabdq_f64): Likewise.
7152 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7154         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
7155         VALLF.
7156         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
7157         "aarch64_rsqrts<mode>".
7158         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
7159         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
7160         builtin.
7161         (vrsqrtsd_f64): Likewise.
7162         (vrsqrts_f32): Likewise.
7163         (vrsqrts_f64): Likewise.
7164         (vrsqrtsq_f32): Likewise.
7165         (vrsqrtsq_f64): Likewise.
7167 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7169         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
7170         VALLF.
7171         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
7172         "aarch64_rsqrte<mode>".
7173         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
7174         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
7175         builtin.
7176         (vrsqrted_f64): Likewise.
7177         (vrsqrte_f32): Likewise.
7178         (vrsqrte_f64): Likewise.
7179         (vrsqrteq_f32): Likewise.
7180         (vrsqrteq_f64): Likewise.
7182 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7184         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
7185         (ucvtf): Likewise.
7186         (fcvtzs): Likewise.
7187         (fcvtzu): Likewise.
7188         * config/aarch64/aarch64-simd.md
7189         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
7190         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
7191         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
7192         Use builtin.
7193         (vcvt_n_f32_u32): Likewise.
7194         (vcvt_n_s32_f32): Likewise.
7195         (vcvt_n_u32_f32): Likewise.
7196         (vcvtq_n_f32_s32): Likewise.
7197         (vcvtq_n_f32_u32): Likewise.
7198         (vcvtq_n_f64_s64): Likewise.
7199         (vcvtq_n_f64_u64): Likewise.
7200         (vcvtq_n_s32_f32): Likewise.
7201         (vcvtq_n_s64_f64): Likewise.
7202         (vcvtq_n_u32_f32): Likewise.
7203         (vcvtq_n_u64_f64): Likewise.
7204         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
7205         (VSDQ_SDI): Likewise.
7206         (fcvt_target): Support V4DI, V4SI and V2SI.
7207         (FCVT_TARGET): Likewise.
7209 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7211         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
7212         (TYPES_BINOP_SUS): Likewise.
7213         (aarch64_simd_builtin_data): Update include file name.
7214         (aarch64_builtins): Likewise.
7215         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
7216         for conversion between scalar float-point and fixed-point.
7217         (ucvtf): Likewise.
7218         (fcvtzs): Likewise.
7219         (fcvtzu): Likewise.
7220         * config/aarch64/aarch64.md
7221         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
7222         pattern for conversion between scalar float to fixed-pointer.
7223         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
7224         (UNSPEC_FCVTZS): New UNSPEC enumeration.
7225         (UNSPEC_FCVTZU): Likewise.
7226         (UNSPEC_SCVTF): Likewise.
7227         (UNSPEC_UCVTF): Likewise.
7228         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
7229         Use builtin.
7230         (vcvtd_n_f64_u64): Likewise.
7231         (vcvtd_n_s64_f64): Likewise.
7232         (vcvtd_n_u64_f64): Likewise.
7233         (vcvtd_n_f32_s32): Likewise.
7234         (vcvts_n_f32_u32): Likewise.
7235         (vcvtd_n_s32_f32): Likewise.
7236         (vcvts_n_u32_f32): Likewise.
7237         * config/aarch64/iterators.md (fcvt_target): Support integer to float
7238         mapping.
7239         (FCVT_TARGET): Likewise.
7240         (FCVT_FIXED2F): New iterator.
7241         (FCVT_F2FIXED): Likewise.
7242         (fcvt_fixed_insn): New define_int_attr.
7244 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7246         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
7247         some statements was removed.
7249 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
7251         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
7252         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
7253         (vect_can_advance_ivs_p): likewise.
7254         (vect_update_ivs_after_vectorizer): likewise.
7255         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
7256         (vect_analyze_scalar_cycles_1): likewise.
7257         (vect_analyze_loop_operations): likewise.
7258         (report_vect_op): likewise.
7259         (vect_is_slp_reduction): likewise.
7260         (vect_is_simple_reduction): likewise.
7261         (get_initial_def_for_induction): likewise.
7262         (vect_transform_loop): likewise.
7263         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
7264         (vect_recog_sad_pattern): likewise.
7265         (vect_recog_widen_sum_pattern): likewise.
7266         (vect_recog_widening_pattern): likewise.
7267         (vect_recog_divmod_pattern): likewise.
7268         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
7269         (vect_analyze_slp_instance): likewise.
7270         (vect_transform_slp_perm_load): likewise.
7271         (vect_schedule_slp_instance): likewise.
7273 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7275         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
7276         (return_prediction): PRED_CONST_RETURN predict return as not taken.
7277         * predict.def (PRED_CONTINUE): Change hitrate 50->67
7278         (PRED_LOOP_BRANCH): Document predictor as broken.
7279         (PRED_LOOP_EXIT): Change hitrate 91->92.
7280         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
7281         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
7282         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
7283         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
7284         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
7285         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
7286         (PRED_CALL): Chane hitrate 71->67.
7287         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
7288         (PRED_GOTO): Document as unused right now.
7289         (PRED_CONST_RETURN): Change hitrate 67->69
7290         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
7291         (PRED_NULL_RETURN): Change hitrate 91->90.
7292         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
7293         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
7294         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
7296 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
7298         * config/rs6000/altivec.h: Add __builtin_vec_mul.
7299         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
7300         special case Altivec builtin.
7301         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7302         VSX_BUILTIN_VEC_MUL (replaced with special case code).
7303         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7304         code for ALTIVEC_BUILTIN_VEC_MUL.
7305         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7306         for __builtin_vec_mul.
7308 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
7310         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
7311         -mno-htm.
7313 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
7315         * spellcheck.c (selftest::test_find_closest_string): New function.
7316         (spellcheck_c_tests): Call the above.
7318 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7320         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
7322 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
7324         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
7325         Yv=Yv,C alternatives.
7327 2016-06-07  Richard Biener  <rguenther@suse.de>
7329         PR c/61564
7330         * common.opt (ffast-math): Make Optimization.
7332 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
7333             Prachi Godbole  <prachi.godbole@imgtec.com>
7335         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
7336         `fabs' and `fneg' type attributes.
7337         (p5600_fpu_fabs): Add `fmove' to the comment.
7339 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7341         * gimple.c: Include builtins.h
7342         (gimple_inexpensive_call_p): New function.
7343         * gimple.h (gimple_inexpensive_call_p): Declare.
7344         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
7345         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
7346         fix formatting.
7348 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
7350         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
7351         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
7352         warning_at_rich_loc, warning_n, pedwarn, permerror,
7353         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
7354         sorry, fatal_error, internal_error, internal_error_no_backtrace):
7355         Use the above.
7357 2016-06-07  Richard Biener  <rguenther@suse.de>
7359         PR tree-optimization/71428
7360         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
7361         BIT_FIELD_REF op vs. load.
7363 2016-06-07  Richard Biener  <rguenther@suse.de>
7365         PR middle-end/71423
7366         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
7367         for signed ops.
7369 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
7371         * config/pa/pa.md (call): Generate indirect long calls to non-local
7372         functions on TARGET_64BIT.
7373         (call_value): Likewise.
7375 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
7377         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
7378         pattern and subsequent splitters.
7379         (call_val_reg_64bit_post_reload): Likewise.
7381 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7383         PR middle-end/71408
7384         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
7385         propagate_op_to_single_use.
7387 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7389         PR middle-end/71281
7390         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
7392 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
7394         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
7395         (enum x86_dirflag_state): New enum.
7396         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
7397         (machine_function): Remove needs_cld.
7398         (ix86_current_function_needs_cld): Remove.
7399         * config/i386/i386.c (ix86_set_func_type): Set
7400         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
7401         (ix86_expand_prologue): Do not emit CLD here.
7402         (ix86_dirflag_mode_needed): New function.
7403         (ix86_dirflag_mode_entry): Ditto.
7404         (ix86_mode_needed): Handle X86_DIRFLAG entity.
7405         (ix86_mode_after): Ditto.
7406         (ix86_mode_entry): Ditto.
7407         (ix86_mode_exit): Ditto.
7408         (ix86_emit_mode_set): Ditto.
7409         * config/i386/i386.md (strmov_singleop): Set
7410         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
7411         Do not set ix86_current_function_needs_cld.
7412         (rep_mov): Ditto.
7413         (strset_singleop): Ditto.
7414         (rep_stos): Ditto.
7415         (cmpstrnqi_nz_1): Ditto.
7416         (cmpstrnqi_1): Ditto.
7417         (strlenqi_1): Ditto.
7419 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
7421         PR tree-optimization/71259
7422         * tree-vect-slp.c (vect_get_constant_vectors): For
7423         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
7424         one for constant op, and use COND_EXPR for non-constant.
7426 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
7428         * Makefile.in (OBJS): Add function-tests.o,
7429         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
7430         selftest-run-tests.o.
7431         (OBJS-libcommon): Add selftest.o.
7432         (OBJS-libcommon-target): Add selftest.o.
7433         (all.internal): Add "selftest".
7434         (all.cross): Likewise.
7435         (selftest): New phony target.
7436         (s-selftest): New target.
7437         (selftest-gdb): New phony target.
7438         (COLLECT2_OBJS): Add selftest.o.
7439         * bitmap.c: Include "selftest.h".
7440         (selftest::test_gc_alloc): New function.
7441         (selftest::test_set_range): New function.
7442         (selftest::test_clear_bit_in_middle): New function.
7443         (selftest::test_copying): New function.
7444         (selftest::test_bitmap_single_bit_set_p): New function.
7445         (selftest::bitmap_c_tests): New function.
7446         * common.opt (fself-test): New.
7447         * diagnostic-show-locus.c: Include "selftest.h".
7448         (make_range): New function.
7449         (test_range_contains_point_for_single_point): New function.
7450         (test_range_contains_point_for_single_line): New function.
7451         (test_range_contains_point_for_multiple_lines): New function.
7452         (assert_eq): New function.
7453         (test_get_line_width_without_trailing_whitespace): New function.
7454         (selftest::diagnostic_show_locus_c_tests): New function.
7455         * et-forest.c: Include "selftest.h".
7456         (selftest::test_single_node): New function.
7457         (selftest::test_simple_tree): New function.
7458         (selftest::test_disconnected_nodes): New function.
7459         (selftest::et_forest_c_tests): New function.
7460         * fold-const.c: Include "selftest.h".
7461         (selftest::assert_binop_folds_to_const): New function.
7462         (selftest::assert_binop_folds_to_nonlvalue): New function.
7463         (selftest::test_arithmetic_folding): New function.
7464         (selftest::fold_const_c_tests): New function.
7465         * function-tests.c: New file.
7466         * gimple.c: Include "selftest.h".
7467         Include "gimple-pretty-print.h".
7468         (selftest::verify_gimple_pp): New function.
7469         (selftest::test_assign_single): New function.
7470         (selftest::test_assign_binop): New function.
7471         (selftest::test_nop_stmt): New function.
7472         (selftest::test_return_stmt): New function.
7473         (selftest::test_return_without_value): New function.
7474         (selftest::gimple_c_tests): New function.
7475         * hash-map-tests.c: New file.
7476         * hash-set-tests.c: New file.
7477         * input.c: Include "selftest.h".
7478         (selftest::assert_loceq): New function.
7479         (selftest::test_accessing_ordinary_linemaps): New function.
7480         (selftest::test_unknown_location): New function.
7481         (selftest::test_builtins): New function.
7482         (selftest::test_reading_source_line): New function.
7483         (selftest::input_c_tests): New function.
7484         * rtl-tests.c: New file.
7485         * selftest-run-tests.c: New file.
7486         * selftest.c: New file.
7487         * selftest.h: New file.
7488         * spellcheck.c: Include "selftest.h".
7489         (selftest::levenshtein_distance_unit_test_oneway): New function,
7490         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
7491         (selftest::levenshtein_distance_unit_test): Likewise.
7492         (selftest::spellcheck_c_tests): Likewise.
7493         * toplev.c: Include selftest.h.
7494         (toplev::run_self_tests): New.
7495         (toplev::main): Handle -fself-test.
7496         * toplev.h (toplev::run_self_tests): New.
7497         * tree.c: Include "selftest.h".
7498         (selftest::test_integer_constants): New function.
7499         (selftest::test_identifiers): New function.
7500         (selftest::test_labels): New function.
7501         (selftest::tree_c_tests): New function.
7502         * tree-cfg.c: Include "selftest.h".
7503         (selftest::push_fndecl): New function.
7504         (selftest::test_linear_chain): New function.
7505         (selftest::test_diamond): New function.
7506         (selftest::test_fully_connected): New function.
7507         (selftest::tree_cfg_c_tests): New function.
7508         * vec.c: Include "selftest.h".
7509         (selftest::safe_push_range): New function.
7510         (selftest::test_quick_push): New function.
7511         (selftest::test_safe_push): New function.
7512         (selftest::test_truncate): New function.
7513         (selftest::test_safe_grow_cleared): New function.
7514         (selftest::test_pop): New function.
7515         (selftest::test_safe_insert): New function.
7516         (selftest::test_ordered_remove): New function.
7517         (selftest::test_unordered_remove): New function.
7518         (selftest::test_block_remove): New function.
7519         (selftest::reverse_cmp): New function.
7520         (selftest::test_qsort): New function.
7521         (selftest::vec_c_tests): New function.c.
7522         * wide-int.cc: Include selftest.h and wide-int-print.h.
7523         (selftest::from_int <wide_int>): New function.
7524         (selftest::from_int <offset_int>): New function.
7525         (selftest::from_int <widest_int>): New function.
7526         (selftest::assert_deceq): New function.
7527         (selftest::assert_hexeq): New function.
7528         (selftest::test_printing <VALUE_TYPE>): New function template.
7529         (selftest::test_ops <VALUE_TYPE>): New function template.
7530         (selftest::test_comparisons <VALUE_TYPE>): New function template.
7531         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
7532         template.
7533         (selftest::wide_int_cc_tests): New function.
7535 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7537         PR middle-end/37780
7538         * ifcvt.c (noce_try_ifelse_collapse): New function.
7539         Declare prototype.
7540         (noce_process_if_block): Call noce_try_ifelse_collapse.
7541         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
7542         (simplify_ternary_operation): Use the above to simplify
7543         conditional CLZ/CTZ expressions.
7545 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7547         PR middle-end/37780
7548         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
7549         define_insn_and_split.
7551 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7553         PR middle-end/37780
7554         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
7556 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7558         PR c/24414
7559         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
7560         Implicitly clobber memory for basic asm with non-empty assembler
7561         string.  Use targetm.md_asm_adjust also here.
7562         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
7563         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
7564         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
7565         non-empty assembler string.
7566         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
7567         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
7568         (decode_asm_operands): Handle basic asm in PARALLEL block.
7569         (extract_insn): Handle basic asm in PARALLEL block.
7570         * doc/extend.texi: Mention new behavior of basic asm.
7571         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
7572         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
7573         branch_needs_nop_p): Use asm_noperands.
7575 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
7577         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
7578         Include the M7 SPARC DFA scheduler.
7579         New attribute v3pipe.
7580         Annotate insns with v3pipe where appropriate.
7581         Define cpu_feature vis4.
7582         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
7583         Add (V8QI "8") to vbits.
7584         Add insns {add,sub}v8qi3
7585         Add insns ss{add,sub}v8qi3
7586         Add insns us{add,sub}{v8qi,v4hi}3
7587         Add insns {min,max}{v8qi,v4hi,v2si}3
7588         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
7589         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
7590         * config/sparc/niagara4.md: Add a comment explaining the
7591         discrepancy between the documented latenty numbers and the
7592         implemented ones.
7593         * config/sparc/niagara7.md: New file.
7594         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
7595         supports SPARC5 and VIS 4.0 instructions.
7596         * configure: Regenerate.
7597         * config.in: Likewise.
7598         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
7599         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
7600         TARGET_CPU_niagara7.
7601         (ASM_CPU64_DEFAULT_SPEC): Likewise.
7602         (CPP_CPU_SPEC): Handle niagara7.
7603         (ASM_CPU_SPEC): Likewise.
7604         * config/sparc/sparc-opts.h (processor_type): Add
7605         PROCESSOR_NIAGARA7.
7606         (mvis4): New option.
7607         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
7608         (AS_NIAGARA7_FLAG): Define.
7609         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
7610         (CPP_CPU64_DEFAULT_SPEC): Likewise.
7611         (CPP_CPU_SPEC): Handle niagara7.
7612         (ASM_CPU_SPEC): Likewise.
7613         * config/sparc/sparc.c (niagara7_costs): Define.
7614         (sparc_option_override): Handle niagara7 and adjust cache-related
7615         parameters with better values for niagara cpus.  Also support VIS4.
7616         (sparc32_initialize_trampoline): Likewise.
7617         (sparc_use_sched_lookahead): Likewise.
7618         (sparc_issue_rate): Likewise.
7619         (sparc_register_move_cost): Likewise.
7620         (dump_target_flag_bits): Support VIS4.
7621         (sparc_vis_init_builtins): Likewise.
7622         (sparc_builtins): Likewise.
7623         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
7624         VIS4 4.0.
7625         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
7626         UltraSparc M7.
7627         * config/sparc/sparc.opt (sparc_processor_type): New value
7628         niagara7.
7629         * config/sparc/visintrin.h (__attribute__): Prototypes for the
7630         VIS4 builtins.
7631         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
7632         -mvis4.
7633         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
7634         VIS4 builtins.
7636 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
7638         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
7640 2016-06-06  Richard Biener  <rguenther@suse.de>
7642         PR tree-optimization/71398
7643         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
7644         remove edges.
7646 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
7648         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
7649         ft32_expand_prolog, ft32_expand_epilogue):
7650         Handle pretend_args.
7651         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
7652         * config/ft32/ft32.md: Add pretend_returner.
7654 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
7656         PR target/71389
7657         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7658         Copy op1 RTX to avoid invalid sharing.
7659         (ix86_expand_vector_move_misalign): Ditto.
7661 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
7663         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
7664         ATTRIBUTE_UNUSED.
7666 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
7668         * predict.c (predicted_by_loop_heuristics_p): New function.
7669         (predict_iv_comparison): Use it.
7670         (predict_loops): Walk from innermost loops; do not predict edges
7671         leaving multiple loops multiple times; implement
7672         PRED_LOOP_ITERATIONS_MAX heuristics.
7673         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
7675 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
7677         * cfg.c (check_bb_profile): Do not report mismatched profiles when
7678         only edges out of BB are EH edges.
7680 2016-06-04  Martin Sebor  <msebor@redhat.com>
7681             Marcin Baczyński  <marbacz@gmail.com>
7683         PR c/48116
7684         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
7685         a void expression in a void function.
7687 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
7689         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
7690         aux; dump reasons of decisions.
7691         (should_duplicate_loop_header_p): Likewise.
7692         (do_while_loop_p): Likewise.
7693         (ch_base::copy_headers): Dump asi num insns duplicated.
7695 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
7697         PR tree-optimization/71405
7698         * tree-ssa.c (execute_update_addresses_taken): For clobber with
7699         incompatible type, build a new clobber with the right type instead
7700         of building a VIEW_CONVERT_EXPR around it.
7702 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
7704         PR tree-optimization/52171
7705         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
7706         by_pieces_ninsns instead of move_by_pieces_ninsns.
7708 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
7710         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
7711         for reg+reg addressing mode.
7713 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7715         * rs6000-c.c (c/c-tree.h): Add #include.
7716         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
7717         in C++ when found in the base position of vec_ld or vec_st.
7719 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
7721         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
7722         use of profile unless profile status is PROFILE_READ.
7723         * profile.c (compute_branch_probabilities): Set profile status
7724         only after reporting predictor hitrates.
7726 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7728         PR target/71276
7729         PR target/71277
7730         * common.opt (ffp-int-builtin-inexact): New option.
7731         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
7732         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
7733         (ceil@var{m}2): Document dependence on this option.
7734         * ipa-inline-transform.c (inline_call): Handle
7735         flag_fp_int_builtin_inexact.
7736         * ipa-inline.c (can_inline_edge_p): Likewise.
7737         * config/i386/i386.md (rintxf2): Do not test
7738         flag_unsafe_math_optimizations.
7739         (rint<mode>2_frndint): New define_insn.
7740         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
7741         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
7742         for 387 instead of extending and truncating.
7743         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
7744         !flag_trapping_math instead of flag_unsafe_math_optimizations.
7745         Change to frndint<mode>2_<rounding>.
7746         (frndintxf2_<rounding>_i387): Likewise.  Change to
7747         frndint<mode>2_<rounding>_i387.
7748         (<rounding_insn>xf2): Likewise.
7749         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
7750         !flag_trapping_math instead of flag_unsafe_math_optimizations for
7751         x87.  Test TARGET_ROUND || !flag_trapping_math ||
7752         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
7753         SSE.  Use ROUND_NO_EXC in constant operand of
7754         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
7755         for 387 instead of extending and truncating.
7757 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7758             Julia Koval  <julia.koval@intel.com>
7760         PR target/66960
7761         PR target/67630
7762         PR target/67634
7763         PR target/67841
7764         PR target/68037
7765         PR target/68618
7766         PR target/68661
7767         PR target/69575
7768         PR target/69596
7769         PR target/69734
7770         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
7771         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
7772         all registers, except for function return registers if there are
7773         no caller-saved registers.
7774         (ix86_set_func_type): New function.
7775         (ix86_set_current_function): Call ix86_set_func_type to set
7776         no_caller_saved_registers and func_type.  Call reinit_regs if
7777         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
7778         nor x87 instructions in interrupt handler nor function with
7779         no_caller_saved_registers attribute.
7780         (ix86_function_ok_for_sibcall): Return false if there are no
7781         caller-saved registers.
7782         (type_natural_mode): Don't warn ABI change for MMX in interrupt
7783         handler.
7784         (ix86_function_arg_advance): Skip for callee in interrupt handler.
7785         (ix86_function_arg): Return special arguments in interrupt handler.
7786         (ix86_promote_function_mode): Promote pointer to word_mode only
7787         for normal functions.
7788         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
7789         interrupt handler.
7790         (ix86_epilogue_uses): New function.
7791         (ix86_hard_regno_scratch_ok): Likewise.
7792         (ix86_save_reg): Preserve all registers in interrupt handler
7793         after reload.  Preserve all registers, except for function return
7794         registers, if there are no caller-saved registers after reload.
7795         (find_drap_reg): Always use callee-saved register if there are
7796         no caller-saved registers.
7797         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
7798         for interrupt handler.
7799         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
7800         Emit cld instruction if stringops are used in interrupt handler
7801         or interrupt handler isn't a leaf function.
7802         (ix86_expand_epilogue): Generate interrupt return for interrupt
7803         handler and pop the 'ERROR_CODE' off the stack before interrupt
7804         return in exception handler.
7805         (ix86_expand_call): Disallow calling interrupt handler directly.
7806         If there are no caller-saved registers, mark all registers that
7807         are clobbered by the call which returns as clobbered.
7808         (ix86_handle_no_caller_saved_registers_attribute): New function.
7809         (ix86_handle_interrupt_attribute): Likewise.
7810         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
7811         attributes.
7812         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
7813         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
7814         accumulation in interrupt function if stack may be realigned to
7815         avoid DRAP.
7816         (EPILOGUE_USES): New.
7817         (function_type): New enum.
7818         (machine_function): Add func_type and no_caller_saved_registers.
7819         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
7820         (interrupt_return): New pattern.
7821         * doc/extend.texi: Document x86 interrupt and
7822         no_caller_saved_registers attributes.
7824 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
7826         PR tree-optimization/52171
7827         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
7828         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
7829         Look for constant strings.  Move some code to emit_block_cmp_hints
7830         and use it.
7831         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
7832         * defaults.h (COMPARE_MAX_PIECES): New macro.
7833         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
7834         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
7835         (clear_by_pieces_1): Don't declare.  Move definition before use.
7836         (can_do_by_pieces): New static function.
7837         (can_move_by_pieces): Use it.  Return bool.
7838         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
7839         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
7840         (class pieces_addr); New.
7841         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
7842         pieces_addr::adjust, pieces_addr::increment_address,
7843         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
7844         functions for it.
7845         (class op_by_pieces_d): New.
7846         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
7847         functions for it.
7848         (class move_by_pieces_d, class compare_by_pieces_d,
7849         class store_by_pieces_d): New subclasses of op_by_pieces_d.
7850         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
7851         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
7852         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
7853         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
7854         compare_by_pieces_d::finish_mode): New member functions.
7855         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
7856         functions.
7857         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
7858         (emit_block_cmp_hints): New function.
7859         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
7860         use the newly defined classes.
7861         * expr.h (by_pieces_constfn): New typedef.
7862         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
7863         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
7864         (move_by_pieces_ninsns): Don't declare.
7865         (can_move_by_pieces): Change return value to bool.
7866         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
7867         (compare_by_pieces_branch_ratio): New hook.
7868         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
7869         (by_pieces_ninsns): Declare.
7870         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
7871         COMPARE_BY_PIECES.
7872         (default_compare_by_pieces_branch_ratio): New function.
7873         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
7874         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
7875         * doc/tm.texi: Regenerate.
7876         * tree-ssa-strlen.c: Include "builtins.h".
7877         (handle_builtin_memcmp): New static function.
7878         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
7879         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
7881 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7883         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
7884         relevant stmts which are simple and invariant.
7885         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
7886         instead of simple and invariant
7888 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7890         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
7891         (vectorizable_reduction): Check for new relevant state.
7892         (vectorizable_live_operation): vectorize live stmts using
7893         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
7894         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
7895         (vect_stmt_relevant_p): Check for stmts which are only used live.
7896         (process_use): Use of a stmt does not inherit it's live value.
7897         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
7898         (vect_analyze_stmt): Check for new relevant state.
7899         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
7900         outside the loop, but not inside it.
7902 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7904         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
7905         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
7906         (vect_get_vec_def_for_operand): Split out code.
7908 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
7910         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
7912 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7914         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
7916 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7918         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
7920 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
7922         PR middle-end/71387
7923         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
7924         to noreturn e->callee->decl that has void return type and void
7925         arguments, adjust gimple_call_fntype and remove lhs even if it had
7926         previously addressable type.
7928 2016-06-02  Jeff Law  <law@redhat.com>
7930         PR tree-optimization/71328
7931         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
7932         error when checking for a jump back onto the copied path.
7934 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
7936         * config/microblaze/microblaze.c (get_branch_target): Add return
7937         NULL_RTX for the non-CALL_P case.
7938         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
7939         (insert_wic): Remove unused local "j".
7941 2016-06-02  Martin Liska  <mliska@suse.cz>
7943         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
7945 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
7946             Julia Koval  <julia.koval@intel.com>
7948         * function.c (assign_parm_setup_stack): Force source into a
7949         register if needed.
7950         * target.def (function_incoming_arg): Update documentation to
7951         allow arbitrary address computation based on hard register.
7952         * doc/tm.texi: Regenerated.
7954 2016-06-02  Martin Liska  <mliska@suse.cz>
7956         * predict.c (combine_predictions_for_bb): Fix first match in
7957         cases where a first predictor contains more than one occurence
7958         in list of predictors.  Take the best value in such case.
7960 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7962         PR rtl-optimization/71295
7963         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
7964         offset would go over the size of the inner mode reject it.
7966 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
7968         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
7969         x=x,x and v=v,m instead of x=x,m.
7971         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
7972         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
7973         alternative to v=rm,C.
7975         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
7976         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
7977         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
7978         instead of vex for the last two above mentioned alternatives.
7980 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7982         PR target/70830
7983         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
7985 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
7987         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
7989 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
7991         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
7992         from int to unsigned.
7994 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
7996         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
7997         alternatives, eliminating preferred register class.  Add support
7998         for the MTVSRDD instruction in ISA 3.0.
7999         (vsx_splat_v4si_internal): Use splat_input_operand instead of
8000         reg_or_indexed_operand.
8001         (vsx_splat_v4sf_internal): Likewise.
8003 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
8005         PR target/71186
8006         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
8007         for loading up all 0's or all 1's.
8009 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8011         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
8013 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
8015         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
8016         extension.
8017         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
8018         * gcc.c (set_source_date_epoch_envvar): New function, sets
8019         the SOURCE_DATE_EPOCH environment variable to the current time.
8021 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8023         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
8024         the factor for live Phi nodes.
8026 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
8028         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
8029         * tree-parloops.c (parallelize_loops): likewise.
8030         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
8031         tree_unswitch_outer_loop): likewise.
8033 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
8035         PR middle-end/71371
8036         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
8037         around creation of the temporary.
8039 2016-06-01  Richard Biener  <rguenther@suse.de>
8041         PR tree-optimization/71366
8042         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
8043         (unloop_loops): Move removing edges here ...
8044         (try_unroll_loop_completely): ... from here.
8045         (try_peel_loop): ... and here.
8046         (tree_unroll_loops_completely_1): Track parent loops via
8047         bitmap of header BBs.
8048         (tree_unroll_loops_completely): Adjust for that.
8050 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8052         * config/rs6000/altivec.h (vec_slv): New macro.
8053         (vec_srv): New macro.
8054         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
8055         (UNSPEC_VSRV): New value.
8056         (vslv): New insn.
8057         (vsrv): New insn.
8058         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
8059         (vsrv): New builtin definition.
8060         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
8061         define argument types for new builtin.
8062         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
8063         new builtin.
8064         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
8065         functions.
8067 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
8068             Jocelyn Mayer  <l_indien@magic.fr>
8070         PR target/67310
8071         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
8072         detect processor family for signature_CENTAUR_ebx.
8073         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
8074         signature_CENTAUR_ebx.
8075         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
8076         <default>: Pass x86-64 for has_longmode.
8078 2016-06-01  Nathan Sidwell  <nathan@acm.org>
8080         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
8081         undefined weak.
8083 2016-06-01  Richard Biener  <rguenther@suse.de>
8085         PR tree-optimization/71261
8086         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
8087         of stmts successfully put in the bool pattern.  Remove
8088         single-use restriction.
8089         (adjust_bool_pattern_cast): Add cast at the use site via the
8090         pattern def sequence.
8091         (adjust_bool_pattern): Remove recursion, maintain a hash-map
8092         of patterned defs.  Use the pattern def seqence instead of
8093         multiple independent patterns.
8094         (sort_after_uid): New qsort compare function.
8095         (adjust_bool_stmts): New function to process stmts in the bool
8096         pattern in IL order.
8097         (vect_recog_bool_pattern): Adjust.
8098         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
8099         (ifcvt_walk_pattern_tree): Likewise.
8100         (stmt_is_root_of_bool_pattern): Likewise.
8101         (ifcvt_repair_bool_pattern): Likewise.
8102         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
8104 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
8106         * loop-unroll.c (decide_unroll_constant_iterations,
8107         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
8108         likely upper bounds.
8109         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
8111 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
8113         * tree-core.h (enum omp_clause_code): Remove
8114         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
8116 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8118         * config/arm/sync.md (arm_store_exclusive<mode>):
8119         Use 'H' output modifier on operands[2] rather than creating a new
8120         entry in out-of-bounds memory of the operands array.
8121         (arm_store_release_exclusivedi): Likewise.
8123 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8125         * config/arm/arm.c (arm_fusion_enabled_p): New function.
8126         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
8127         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
8128         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
8130 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8132         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
8133         into account live statements for mask producers.
8135 2016-06-01  Richard Biener  <rguenther@suse.de>
8137         PR tree-optimization/71311
8138         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
8139         restrict to non-INTEGER_CST @0.
8141 2016-06-01  Richard Biener  <rguenther@suse.de>
8143         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
8144         (relational patterns): Use :c to avoid pattern duplications.
8146 2016-06-01  Richard Biener  <rguenther@suse.de>
8148         * genmatch.c (comparison_code_p): New predicate.
8149         (swap_tree_comparison): New function.
8150         (commutate): Add for_vec parameter to append new for entries.
8151         Support commutating relational operators by swapping it alongside
8152         operands.
8153         (lower_commutative): Adjust.
8154         (dt_simplify::gen): Do not pass artificial operators to gen
8155         functions.
8156         (decision_tree::gen): Do not add artificial operators as parameters.
8157         (parser::parse_expr): Verify operator commutativity when :c is
8158         applied.  Allow :C to override this.
8159         * match.pd: Adjust patterns to use :C instead of :c where required.
8161 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
8163         PR tree-optimization/71077
8164         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
8165         the combining step, use boolean_false_node and boolean_true_node
8166         as the designated false/true return values.
8168 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8170         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
8171         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
8172         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
8173         PRED_LOOP_EXIT.
8175 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8177         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
8178         of flags impliying the register renaming.
8179         * toplev.c (process_options): Do not imply flag_rename_registers with
8180         loop peeling.
8182 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8184         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
8185         default implementation.
8187 2016-05-31  Nathan Sidwell  <nathan@acm.org>
8189         * dwarf2out.c (cur_line_info_table): Add GTY marker.
8191 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8193         * config/sh/constraints.md (b): Remove constraint.
8194         * config/sh/predicates.md (arith_reg_operand): Remove
8195         TARGET_REGISTER_P.
8196         * config/sh/sh-modes.def (PDI): Remove.
8197         * config/sh/sh.c (sh_target_reg_class,
8198         sh_optimize_target_register_callee_saved): Remove functions.
8199         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
8200         (sh_expand_epilogue): Update comment.
8201         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
8202         sh_secondary_reload): Remove TARGET_REGS related code.
8203         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
8204         TARGET_REGISTER_P): Remove macros.
8205         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
8206         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
8207         TR1_REG, TR2_REG): Remove constants.
8208         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
8210 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8212         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
8213         define_expand patterns.
8214         (adddi3_compact): Rename to adddi3.
8215         (subdi3_compact): Rename to subdi3.
8216         (*negdi2): Rename to negdi2.
8217         (*abs<mode>2): Rename to abs<mode>2.
8219 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8221         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
8222         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
8223         (atomic_sub_fetchsi): ... this new pattern.
8224         (mvtc): Add CC_REG clobber.
8226 2016-05-31  Marek Polacek  <polacek@redhat.com>
8228         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
8230 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8232         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
8233         aarch64_fusion_enabled_p to check for fusion capabilities.
8235 2016-05-31  Richard Biener  <rguenther@suse.de>
8237         PR tree-optimization/71352
8238         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
8239         minus one and a negate.
8241 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8243         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
8244         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
8245         Delete prototype.
8246         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
8247         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
8248         Remove use of aarch64_simd_attr_length_move, set length attribute
8249         directly.
8250         (*aarch64_be_movoi): Likewise.
8251         (*aarch64_be_movci): Likewise.
8252         (*aarch64_be_movxi): Likewise.
8254 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8256         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
8257         It no longer does that.
8258         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
8260 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
8262         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
8263         attribute __unused__.
8265 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8267         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
8268         * config/arm/arm.c (arm_arch_thumb1): Define.
8269         (arm_option_override): Initialize arm_arch_thumb1.
8270         * config/arm/arm.h (arm_arch_thumb1): Declare.
8271         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
8272         support Thumb-1 ISA.
8274 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
8276         PR target/71346
8277         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
8278         `Yv' for scalar operand.
8280 2016-05-31  Tom de Vries  <tom@codesourcery.com>
8282         PR tree-optimization/69068
8283         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
8284         phis with more than two args.
8286 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
8288         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
8289         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
8290         target.
8292 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
8294         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
8295         tune_64.
8296         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
8297         support on SPARC.
8298         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
8299         cpu_32, cpu_64, tune_32 and tune_64.
8300         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
8302 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
8304         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
8306 2016-05-30  Andi Kleen  <ak@linux.intel.com>
8308         * auto-profile.c (read_profile): Replace asserts with errors
8309         when file does not exist.
8310         * gcov-io.c (gcov_read_words): Dito.
8312 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8314         * tree-cfg.c (print_loop): Print likely upper bounds.
8316 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8318         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
8319         * opts.c (default_options): Enable peel loops at -O3.
8320         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
8321         (try_peel_loop): Do not re-peel already peeled loops;
8322         use likely upper bounds; fix profile updating.
8323         (pass_complete_unroll::execute): Initialize peeled_loops.
8325 2016-05-30  Martin Liska  <mliska@suse.cz>
8327         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
8328         computed costs by frequency of BB they belong to.
8329         (get_scaled_computation_cost_at): New function.
8331 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
8332             Marc Glisse  <marc.glisse@inria.fr>
8334         PR tree-optimization/71289
8335         * match.pd (-1 / B < A, A > -1 / B): New transformations.
8337 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8339         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
8341 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8343         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
8344         for peeled copies; avoid underflow when updating estimates; correctly
8345         scale loop profile.
8347 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8349         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
8350         r236875. Corrected oe3 to oe2 as obvious.
8352 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8354         PR middle-end/71269
8355         PR middle-end/71252
8356         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
8357         that inserted stmt will not dominate stmts that defines its operand.
8358         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
8359         (rewrite_expr_tree_parallel): Likewise.
8361 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8363         PR middle-end/71252
8364         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
8365         all fields including stmt_to_insert are swapped.
8367 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8369         * predict.h (force_edge_cold): Declare.
8370         * predict.c (force_edge_cold): New function.
8371         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
8372         updating.
8373         (canonicalize_loop_induction_variables): Fix formating.
8375 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8377         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
8378         (visium_expand_copysign): Use gen_int_mode directly.
8379         (visium_compute_frame_size): Minor tweaks.
8381 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8383         * tree-vect-loop.c (vect_analyze_loop_2): Use
8384         likely_max_stmt_executions_int.
8386 2016-05-30  Tom de Vries  <tom@codesourcery.com>
8388         PR tree-optimization/69067
8389         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
8391 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
8393         PR target/71245
8394         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
8395         New peepholes to remove unneeded fild/fistp pairs.
8396         (define_peephole2 atomic_loaddi_fpu): Ditto.
8398 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8400         * predict.c (maybe_hot_frequency_p): Avoid division.
8402 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
8404         * doc/install.texi: Use https for shop.fsf.org.
8406 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8408         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
8409         likely_max_stmt_executions_int.
8411 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8413         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
8414         likely_max_stmt_executions_int.
8416 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8418         * profile.c (compute_branch_probabilities): Do not report hitrates
8419         here.
8420         (branch_prob): Report hitrates here.
8421         * predict.c (gimple_predict_edge): Do not assert profile status;
8422         fix formatting issues.
8424 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8426         * predict.c (edge_predicted_by_p): New function.
8427         (predict_paths_for_bb): Do not put multiple predictions of the same type
8428         on one edge.
8430 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8432         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
8433         commit.
8435 2016-05-28  Alan Modra  <amodra@gmail.com>
8437         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
8439 2016-05-28  Alan Modra  <amodra@gmail.com>
8441         PR rtl-optimization/71275
8442         * ira.c (ira): Free dominance info.
8444 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
8446         * doc/sourcebuild.texi: New address for upstream Go repository.
8448 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8450         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
8451         (TARGET_ARM_V7M): Likewise.
8453 2016-05-26  Jeff Law  <law@redhat.com>
8455         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
8456         (thread_across_edge): Remove calls to find_jump_threads_backwards.
8457         * passes.def: Add jump threading passes before DOM/VRP.
8458         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
8459         argument to a basic block from an edge.  Remove tests which are
8460         handled elsewhere.
8461         (pass_data_thread_jumps, class pass_thread_jumps): New.
8462         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
8463         (make_pass_thread_jumps): Likewise.
8464         * tree-pass.h (make_pass_thread_jumps): Declare.
8466 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8468         * config/visium/visium-protos.h (split_double_move): Rename into...
8469         (visium_split_double_move): ...this.
8470         (visium_split_double_add): Declare.
8471         * config/visium/visium.c (split_double_move): Rename into...
8472         (visium_split_double_move): ...this.
8473         (visium_split_double_add): New function.
8474         (visium_expand_copysign): Renumber operands for consistency.
8475         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
8476         (DFmode move splitter): Likewise.
8477         (*addi3_insn): Split by means of visium_split_double_add.
8478         (*adddi3_insn_flags): Delete.
8479         (*plus_plus_sltu<subst_arith>): New insn.
8480         (*subdi3_insn): Split by means of visium_split_double_add.
8481         (subdi3_insn_flags): Delete.
8482         (*minus_minus_sltu<subst_arith>): New insn.
8483         (*negdi2_insn): Split by means of visium_split_double_add.
8484         (*negdi2_insn_flags): Delete.
8486 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
8488         * configure.ac: Treat a --with-headers option without argument
8489         the same as the default (i.e. consult sys-include directory).
8490         * configure: Regenerate.
8492 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8494         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
8495         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
8496         prototype.
8497         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
8498         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
8500 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
8502         PR target/63596
8503         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
8504         tree-stdarg analysis results.
8505         (aarch64_setup_incoming_varargs): Likewise.
8507 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
8509         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
8510         va_list_gpr_counter_field and va_list_fpr_counter_field.
8512 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
8514         PR67609
8515         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
8516         * config/aarch64/aarch64.c
8517         (aarch64_cannot_change_mode_class): Remove function.
8518         * config/aarch64/aarch64-protos.h
8519         (aarch64_cannot_change_mode_class): Remove.
8521 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8523         * cfgloop.c (record_niter_bound): Record likely upper bounds.
8524         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
8525         get_likely_max_loop_iterations_int): New.
8526         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
8527         any_likely_upper_bound.
8528         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
8529         Declare.
8530         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
8531         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
8532         upper bound.
8533         (unroll_loop_constant_iterations): Likewise.
8534         (unroll_loop_runtime_iterations): Likewise.
8535         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
8536         * lto-streamer-out.c (output_cfg): Likewise.
8537         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
8538         bounds.
8539         (canonicalize_loop_induction_variables): Dump likely upper bounds.
8540         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
8541         (likely_max_loop_iterations): New.
8542         (likely_max_loop_iterations_int): New.
8543         (likely_max_stmt_executions): New.
8544         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
8545         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
8546         likely_max_stmt_executions): Declare.
8548 2016-05-27  Marek Polacek  <polacek@redhat.com>
8550         PR middle-end/71308
8551         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
8553 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8555         * config/s390/s390.md (2x risbg splitters): Use
8556         reg_overlap_mentioned_p instead of rtx_equal_p.
8558 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8560         * combine.c (make_compound_operation): Take known zero bits into
8561         account when checking for possible zero_extend.
8563 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8565         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
8566         Use const_int_operand for operand 2 predicate.  Simplify expand code
8567         as a result.
8569 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
8571         PR middle-end/71279
8572         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
8573         into comparison.
8575 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8577         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
8578         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
8579         that returns CC_SESWPmode and CC_ZESWPmode.
8580         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
8581         and CC_SESWPmode.
8582         (aarch64_rtx_costs): Likewise.
8584 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8586         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
8587         for ISA 3.0 min/max support.
8588         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
8589         conditional move support.
8590         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
8591         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
8592         available.
8593         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
8594         conditional moves where the comparison type is different from move
8595         type.
8596         (fp_minmax): New code iterator for smin/smax.
8597         (minmax): New code attributes for min/max.
8598         (SMINMAX): Likewise.
8599         (smax<mode>3): Combine min, max insns into one insn using the
8600         fp_minmax code iterator.  Add support for ISA 3.0 min/max
8601         instructions that don't need -ffast-math.
8602         (s<minmax><mode>3): Likewise.
8603         (smax<mode>3_vsx): Likewise.
8604         (smin<mode>3): Likewise.
8605         (s<minmax><mode>3_vsx): Likewise.
8606         (smin<mode>3_vsx): Likewise.
8607         (pre-VSX min/max splitters): Likewise.
8608         (s<minmax><mode>3_fpr): Likewise.
8609         (movsfcc): Rewrite floating point conditional moves to combine
8610         SFmode/DFmode into a single insn.
8611         (mov<mode>cc): Likewise.
8612         (movdfcc): Likewise.
8613         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
8614         SFDF2 iterators to handle all combinations.
8615         (fseldfsf4): Likewise.
8616         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
8617         (fseldfdf4): Likewise.
8618         (fselsfdf4): Likewise.
8619         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
8620         comparison instructions that set a 0/-1 mask, and use it for
8621         floating point conditional move via XXSEL.
8622         (fpmask<mode>): Likewise.
8623         (xxsel<mode>): Likewise.
8624         * config/rs6000/predicates.md (min_max_operator): Delete, no
8625         longer used.
8626         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
8627         instructions that generate a 0/-1 mask for use with XXSEL.
8628         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
8629         say whether floating point min/max is available, either through
8630         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
8631         (TARGET_MINMAX_DF): Likewise.
8633 2016-05-27  Alan Modra  <amodra@gmail.com>
8635         PR rtl-optimization/71275
8636         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
8637         for update_equiv_regs and combine_and_move_insns.
8639 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
8641         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
8642         if_then_else or cond RTXes to calculate attribute value.
8643         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
8644         <attr "length_immediate>: Ditto.
8645         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
8646         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
8647         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
8648         <attr "type">: Ditto.
8649         <attr "prefix_data16">: Ditto.
8650         <attr "prefix_extra">: Ditto.
8651         <attr "length_immediate">: Ditto.
8652         <attr "prefix">: Ditto.
8653         (vec_set<mode>_0) <attr "isa">: Ditto.
8654         <attr "prefix_extra">: Ditto.
8655         <attr "length_immediate">: Ditto.
8656         <attr "prefix">: Ditto.
8657         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
8658         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
8659         (sse2_storelpd) <attr "prefix_data16">: Ditto.
8660         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
8661         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
8662         <attr "length_immediate">: Ditto.
8663         <attr "prefix">: Ditto.
8664         (sse2_movsd) <attr "length_immediate">: Ditto.
8665         <attr "prefix">: Ditto.
8666         (vec_concatv2df)  <attr "isa">: Ditto.
8667         <attr "prefix">: Ditto.
8668         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
8669         (*vec_extractv2di_1) <attr "isa">: Ditto.
8670         <attr "type">: Ditto.
8671         <attr "length_immediate">: Ditto.
8672         <attr "prefix_rex">: Ditto.
8673         <attr "prefix_extra">: Ditto.
8674         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
8675         <attr "prefix_extra">: Ditto.
8676         <attr "length_immediate">: Ditto.
8677         (vec_concatv2di) <attr "isa">: Ditto.
8678         <attr "prefix_extra">: Ditto.
8679         <attr "length_immediate">: Ditto.
8680         <attr "prefix">: Ditto.
8682 2016-05-26  Martin Liska  <mliska@suse.cz>
8684         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
8685         function.
8686         (operator+): Likewise.
8687         (operator-): Likewise.
8688         (comp_cost::operator+=): Likewise.
8689         (comp_cost::operator-=): Likewise.
8690         (comp_cost::operator/=): Likewise.
8691         (comp_cost::operator*=): Likewise.
8692         (operator<): Likewise.
8693         (operator==): Likewise.
8694         (operator<=): Likewise.
8695         (new_cost): Remove.
8696         (infinite_cost_p): Likewise.
8697         (add_costs): Likewise.
8698         (sub_costs): Likewise.
8699         (compare_costs): Likewise.
8700         (set_group_iv_cost): Use the newly introduced functions.
8701         (get_address_cost): Likewise.
8702         (get_shiftadd_cost): Likewise.
8703         (force_expr_to_var_cost): Likewise.
8704         (split_address_cost): Likewise.
8705         (ptr_difference_cost): Likewise.
8706         (difference_cost): Likewise.
8707         (get_computation_cost_at): Likewise.
8708         (determine_group_iv_cost_generic): Likewise.
8709         (determine_group_iv_cost_address): Likewise.
8710         (determine_group_iv_cost_cond): Likewise.
8711         (autoinc_possible_for_pair): Likewise.
8712         (determine_group_iv_costs): Likewise.
8713         (cheaper_cost_pair): Likewise.
8714         (iv_ca_recount_cost): Likewise.
8715         (iv_ca_set_no_cp): Likewise.
8716         (iv_ca_set_cp): Likewise.
8717         (iv_ca_cost): Likewise.
8718         (iv_ca_new): Likewise.
8719         (iv_ca_dump): Likewise.
8720         (iv_ca_narrow): Likewise.
8721         (iv_ca_prune): Likewise.
8722         (iv_ca_replace): Likewise.
8723         (try_add_cand_for): Likewise.
8724         (try_improve_iv_set): Likewise.
8725         (find_optimal_iv_set): Likewise.
8727 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
8729         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
8730         that internal functions will clobber all caller-saved registers.
8732 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
8734         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
8735         Return a better case_values_threshold when optimizing.
8737 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
8739         * config/aarch64/aarch64-simd.md (aarch64_combinez):
8740         Add ? to integer variant.
8741         (aarch64_combinez_be): Likewise.
8743 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8745         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
8746         instead of x constraint.
8747         (vcvtps2ph256<mask_name>): Likewise.
8749         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
8750         alternative.  Formatting fix.
8752         * config/i386/sse.md
8753         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
8754         to ...
8755         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
8756         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
8757         maybe_evex prefix instead of vex.
8758         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
8759         EXT_REX_SSE_REG_P (op0) case in the splitter.
8761 2016-05-25  Jeff Law  <law@redhat.com>
8763         PR tree-optimization/71272
8764         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
8765         Update comments.  Add test for empty path.
8767 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
8769         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
8770         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
8771         special case builtin.
8772         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8773         code for ALTIVEC_BUILTIN_VEC_CMPNE.
8774         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8775         for __builtin_vec_cmpne.
8777 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8779         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
8780         redundant test and bail out if the type of the new operand is not
8781         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
8783 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
8785         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
8786         (x_ix86_target_flags_explicit): Remove.
8787         * config/i386/i386.c (ix86_function_specific_save): Do not copy
8788         x_ix86_target_flags_explicit.
8789         (ix86_function_specific_restore): Ditto.
8791 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
8792             H.J. Lu  <hongjiu.lu@intel.com>
8794         PR target/70738
8795         * common/config/i386/i386-common.c
8796         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
8797         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
8798         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
8799         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
8800         (-mgeneral-regs-only): Add new option.
8801         * config/i386/i386.c (ix86_option_override_internal): Don't enable
8802         x87 instructions if only general registers are allowed.
8803         (ix86_target_string): Add ix86_flags argument. Handle additional
8804         flags options through ix86_flags argument.  Update all callers.
8805         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
8807 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8809         PR rtl-optimization/66940
8810         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
8811         decrementing desired_val will not overflow before performing these
8812         operations.
8814 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
8816         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
8817         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
8818         * config/i386/i386.c (enum ix86_builtins): Add
8819         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
8820         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
8821         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
8822         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
8823         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
8824         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
8825         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
8826         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
8827         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
8828         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
8829         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
8830         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
8831         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
8832         __builtin_ia32_cvtps2dq512_mask.
8833         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
8834         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
8835         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
8836         * config/i386/sse.md
8837         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
8838         Rename to ...
8839         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
8840         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
8841         to ...
8842         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
8843         (avx512f_vec_pack_sfix_v8df): New define_expand.
8844         (avx512f_roundpd512): Rename to ...
8845         (avx512f_round<castmode>512): ... this.  Change iterator.
8846         (avx512f_roundps512_sfix): New define_expand.
8847         (round<mode>2_sfix): Change iterator.
8849 2016-05-25  Nick Clifton  <nickc@redhat.com>
8851         * config/msp430/msp430.c (msp430_attr): Produce an error if a
8852         static interrupt handler is detected.
8853         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
8854         default linker script.
8855         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
8856         the low part of a symbolic pointer.
8858 2016-05-25  Richard Biener  <rguenther@suse.de>
8860         PR tree-optimization/71261
8861         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
8862         interesting stmt instead of immediate uses when looking
8863         for the use operand to replace.
8865 2016-05-25  Martin Liska  <mliska@suse.cz>
8867         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
8869 2016-05-25  Richard Biener  <rguenther@suse.de>
8871         PR tree-optimization/71264
8872         * tree-vect-stmts.c (vect_init_vector): Properly deal with
8873         vector type val.
8875 2016-05-25  Martin Liska  <mliska@suse.cz>
8877         PR tree-optimization/71239
8878         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
8879         if DECL_SIZE is NULL.
8881 2016-05-25  Richard Biener  <rguenther@suse.de>
8883         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
8884         * tree-if-conv.c (pass_data_if_conversion): Use it.
8886 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8888         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
8889         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
8890         * varpool.c (varpool_node::get_availability): Likewise.
8892 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8894         * config/rs6000/altivec.md (VNEG iterator): New iterator for
8895         VNEGW/VNEGD instructions.
8896         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
8897         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
8898         support for ISA 3.0 VNEGW/VNEGD instructions.
8900 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8902         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
8903         pointers inside OACC_DATA regions.
8904         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
8905         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
8906         (gimplify_adjust_omp_clauses): Fix typo in comment.
8908 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8910         * config/rs6000/altivec.md (VParity): New mode iterator for vector
8911         parity built-in functions.
8912         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
8913         zeros.
8914         (p9v_parity<mode>2): Likewise.
8915         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
8916         parity.
8917         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
8918         (parity<mode>2): ISA 3.0 expander for vector parity.
8919         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
8920         power9 built-ins.
8921         (BU_P9_64BIT_MISC_0): Likewise.
8922         (BU_P9_MISC_0): Likewise.
8923         (BU_P9V_AV_1): Likewise.
8924         (BU_P9V_AV_2): Likewise.
8925         (BU_P9V_AV_3): Likewise.
8926         (BU_P9V_AV_P): Likewise.
8927         (BU_P9V_VSX_1): Likewise.
8928         (BU_P9V_OVERLOAD_1): Likewise.
8929         (BU_P9V_OVERLOAD_2): Likewise.
8930         (BU_P9V_OVERLOAD_3): Likewise.
8931         (VCTZB): Add vector count trailing zeros support.
8932         (VCTZH): Likewise.
8933         (VCTZW): Likewise.
8934         (VCTZD): Likewise.
8935         (VPRTYBD): Add vector parity support.
8936         (VPRTYBQ): Likewise.
8937         (VPRTYBW): Likewise.
8938         (VCTZ): Add overloaded vector count trailing zeros support.
8939         (VPRTYB): Add overloaded vector parity support.
8940         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8941         overloaded vector count trailing zeros and parity instructions.
8942         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
8943         vector parity support.
8944         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
8945         trailing zeros support.
8946         (vec_cntlz): Likewise.
8947         (vec_vctzb): Likewise.
8948         (vec_vctzd): Likewise.
8949         (vec_vctzh): Likewise.
8950         (vec_vctzw): Likewise.
8951         (vec_vprtyb): Add ISA 3.0 vector parity support.
8952         (vec_vprtybd): Likewise.
8953         (vec_vprtybw): Likewise.
8954         (vec_vprtybq): Likewise.
8955         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8956         the ISA 3.0 vector count trailing zeros and vector parity built-in
8957         functions.
8959 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
8961         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
8962         when there is stmt_to_insert.
8964 2016-05-24  Martin Sebor  <msebor@redhat.com>
8966         PR c++/71147
8967         * tree.h (complete_or_array_type_p): New inline function.
8969 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
8971         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
8972         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
8973         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
8975         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
8976         Limit 1st alternative to noavx isa, split 2nd alternative into one
8977         noavx and one avx alternative, use *x and Bm in the former and
8978         x and m in the latter.
8980         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
8981         of sse4 for the first alternative, drop %v from the template
8982         and d operand modifier.  Split second alternative into one sse4_noavx
8983         and one avx alternative, use *x instead of *v in the former and v
8984         instead of *v in the latter.
8985         (*sse4_1_extractps): Use noavx isa instead of * for the first
8986         alternative, drop %v from the template.  Split second alternative into
8987         one noavx and one avx alternative, use *x instead of *v in the
8988         former and v instead of *v in the latter.
8989         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
8990         with noavx and the last one with avx.
8991         (sse4_1_phminposuw): Guard first alternative with noavx isa,
8992         split the second one into one noavx and one avx alternative,
8993         use *x and Bm in the former and x and m in the latter one.
8994         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
8995         alternatives.
8997         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
8998         first two alternatives to noavx, use *x instead of *v in the second
8999         one, add avx alternative without *.
9000         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
9001         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
9002         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
9004 2016-05-24  Jeff Law  <law@redhat.com>
9006         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
9007         New function, extracted from...
9008         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
9009         Allow simple copies and constant initializations in the SSA chain.
9011 2016-05-24  Marek Polacek  <polacek@redhat.com>
9013         PR c/71249
9014         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
9015         scope.
9017 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
9019         PR c++/71257
9020         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9021         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9022         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
9023         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
9024         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
9026 2016-05-24  Richard Biener  <rguenther@suse.de>
9028         PR tree-optimization/71240
9029         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
9030         has integral type.
9032 2016-05-24  Richard Biener  <rguenther@suse.de>
9034         PR tree-optimization/71230
9035         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
9037 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9039         * tree-vectorizer.h (vectorizable_comparison): Delete.
9040         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
9041         PURE_SLP_STMT check.
9042         * tree-vect-stmts.c (vectorizable_call): Likewise.
9043         (vectorizable_simd_clone_call): Likewise.
9044         (vectorizable_conversion): Likewise.
9045         (vectorizable_assignment): Likewise.
9046         (vectorizable_shift): Likewise.
9047         (vectorizable_operation): Likewise.
9048         (vectorizable_load): Likewise.
9049         (vectorizable_condition): Likewise.
9050         (vectorizable_store): Likewise.  Assert that we don't have
9051         hybrid SLP.
9052         (vectorizable_comparison): Make static.  Remove redundant
9053         PURE_SLP_STMT check.
9054         (vect_transform_stmt): Assert that we always have an slp_node
9055         if PURE_SLP_STMT.
9057 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9059         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
9060         operands[2] against 1 with comparison against CONST1_RTX.
9061         (<shift>di3_neon): Likewise.
9062         * config/arm/predicates.md (const0_operand): Replace with comparison
9063         against CONST0_RTX.
9065 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9067         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
9068         operands[2] against 1 with comparison against CONST1_RTX.
9069         (ashrdi3): Likewise.
9070         (lshrdi3): Likewise.
9071         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
9072         UINTVAL.
9073         (ashrsi3): Likewise.
9074         (lshrsi3): Likewise.
9075         (rotrsi3): Likewise.
9076         (define_split above *compareqi_eq0): Likewise.
9077         (define_split above "prologue"): Likewise.
9078         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
9079         * config/arm/predicates.md (shift_operator): Likewise.
9080         (shift_nomul_operator): Likewise.
9081         (sat_shift_operator): Likewise.
9082         (thumb1_cmp_operand): Likewise.
9083         (const_neon_scalar_shift_amount_operand): Replace manual range
9084         check with IN_RANGE.
9085         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
9086         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
9088 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9090         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
9091         with HOST_WIDE_INT_1.
9092         (insv): Likewise.
9093         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
9094         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
9095         (arm_canonicalize_comparison): Likewise.
9096         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
9097         HOST_WIDE_INT_1.
9098         (thumb1_size_rtx_costs): Likewise.
9099         (vfp_const_double_index): Replace cast of 1 to unsigned
9100         HOST_WIDE_INT with HOST_WIDE_INT_1U.
9101         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
9102         HOST_WIDE_INT_1.
9103         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
9104         HOST_WIDE_INT with HOST_WIDE_INT_1U.
9105         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
9106         HOST_WIDE_INT with HOST_WIDE_INT_1.
9108 2016-05-24  Marek Polacek  <polacek@redhat.com>
9110         * tree-cfg.h (should_remove_lhs_p): New predicate.
9111         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
9112         * gimplify.c (gimplify_modify_expr): Likewise.
9113         * tree-cfg.c (verify_gimple_call): Likewise.
9114         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
9115         * gimple-fold.c: Include "tree-cfg.h".
9116         (gimple_fold_call): Use should_remove_lhs_p.
9118 2016-05-24  Richard Biener  <rguenther@suse.de>
9120         PR tree-optimization/71253
9121         * cfganal.h (control_dependences): Make robust against edge
9122         and BB removal.
9123         (control_dependences::control_dependences): Remove edge_list argument.
9124         (control_dependences::get_edge): Remove.
9125         (control_dependences::get_edge_src): Add.
9126         (control_dependences::get_edge_dest): Likewise.
9127         (control_dependences::m_el): Make a vector of edge src/dest index.
9128         * cfganal.c (control_dependences::find_control_dependence): Adjust.
9129         (control_dependences::control_dependences): Likewise.
9130         (control_dependences::~control_dependence): Likewise.
9131         (control_dependences::get_edge): Remove.
9132         (control_dependences::get_edge_src): Add.
9133         (control_dependences::get_edge_dest): Likewise.
9134         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
9135         get_edge_src.
9136         (perform_tree_ssa_dce): Adjust.
9137         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
9138         get_edge_src.
9139         (pass_loop_distribution::execute): Adjust.  Do loop destroying
9140         conditional on changed.
9142 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9144         PR target/69857
9145         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
9146         return.  Reindent transformation comment and mention the ARM state
9147         behavior.
9149 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9151         PR middle-end/71252
9152         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
9153         after build_and_add_sum creates new use stmt.
9155 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9157         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
9158         load_lanes/grouped_load classification comes first.  Don't check
9159         whether the vectorization factor is a multiple of the group size
9160         for load_lanes.
9162 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9164         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
9165         GROUP_GAP for single-element interleaving.
9166         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
9167         variable.
9169 2016-05-24  Richard Biener  <rguenther@suse.de>
9171         PR middle-end/70434
9172         PR c/69504
9173         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
9174         bases which are accessed with non-invariant indices.
9175         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
9176         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
9178 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9180         PR middle-end/71170
9181         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
9182         (add_to_ops_vec): Add stmt_to_insert.
9183         (add_repeat_to_ops_vec): Init stmt_to_insert.
9184         (insert_stmt_before_use): New.
9185         (transform_add_to_multiply): Remove mult_stmt insertion and add it
9186         to ops vector.
9187         (get_ops): Init stmt_to_insert.
9188         (maybe_optimize_range_tests): Likewise.
9189         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
9190         (rewrite_expr_tree_parallel): Likewise.
9191         (reassociate_bb): Likewise.
9193 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9195         PR target/71201
9196         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
9197         ISA 3.0 xxperm fusion alternative.
9198         (altivec_vperm_v8hiv16qi): Likewise.
9199         (altivec_vperm_<mode>_uns_internal): Likewise.
9200         (vperm_v8hiv4si): Likewise.
9201         (vperm_v16qiv8hi): Likewise.
9203 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9204             Kelvin Nilsen  <kelvin@gcc.gnu.org>
9206         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
9207         vpermr/xxpermr on ISA 3.0.
9208         (altivec_expand_vec_perm_le): Likewise.
9209         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
9210         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
9211         ISA 3.0.
9213 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
9215         * config/i386/i386.h (IS_STACK_MODE): Enable for
9216         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
9217         SSE_FLOAT_MODE_P macros.
9218         * config/i386/i386.c (ix86_preferred_reload_class): Use
9219         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
9220         Cleanup regclass processing for CONST_DOUBLE_P.
9221         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
9222         (ix86_rtx_costs): Remove redundant TARGET_80387 check
9223         with IS_STACK_MODE macro.
9224         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
9225         with TARGET_SSE2.
9226         (*movdf_internal): Use IS_STACK_MODE macro.
9227         (*movsf_internal): Ditto.
9229 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
9231         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
9232         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
9234 2016-05-23  Jeff Law  <law@redhat.com>
9236         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
9237         extracted from ...
9238         (fsm_find_control_statement_thread_paths): Call it.
9240 2016-05-23  Martin Jambor  <mjambor@suse.cz>
9242         PR ipa/71234
9243         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
9244         from_global_constant if t is not NULL.
9246 2016-05-23  Marek Polacek  <polacek@redhat.com>
9248         PR c/49859
9249         * common.opt (Wswitch-unreachable): New option.
9250         * doc/invoke.texi: Document -Wswitch-unreachable.
9251         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
9252         warning.
9254 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
9256         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
9257         TMR_INDEX is non-NULL.
9259 2016-05-23  Richard Biener  <rguenther@suse.de>
9261         PR tree-optimization/71230
9262         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
9263         (try_special_add_to_ops): ... here.  Always test for single-use.
9265 2016-05-23  Martin Jambor  <mjambor@suse.cz>
9267         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
9268         default block if a PHI node in the original one would be resized.
9270 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9272         PR tree-optimization/58135
9273         * tree-vect-slp.c: When group size is not multiple
9274         of vector size, allow splitting of store group at
9275         vector boundary.
9277 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
9279         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
9281 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
9283         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
9284         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
9285         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
9286         of 64x2.
9288         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
9289         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
9290         v constraint instead of x and vinserti32x4 insn.
9292         * config/i386/sse.md (i128vldq): New mode iterator.
9293         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
9294         avx512dq and avx512vl alternatives.
9296         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
9297         constraint, use maybe_evex prefix instead of vex.
9298         (vec_dupv4sf): Use v constraint instead of x for output
9299         operand except for noavx alternative, use Yv constraint
9300         instead of x for input.  Use maybe_evex prefix instead of vex.
9301         (*vec_dupv4si): Likewise.
9302         (*vec_dupv2di): Likewise.
9304 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9306         PR middle-end/40921
9307         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
9308         (linearize_expr_tree): Call try_special_add_to_ops.
9309         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
9311 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9313         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
9314         to computed stack_usage.
9316 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9318         PR target/71103
9319         * config/avr/avr.md (define_expand "mov<mode>"): If the source
9320         operand is subreg (symbol_ref) then move the symbol ref to register.
9322 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
9324         * tree.c (array_at_struct_end_p): Look through MEM_REF.
9326 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9328         PR middle-end/71179
9329         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
9330         VECTOR type.
9332 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9334         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
9335         ranges by calling get_single_symbol and tidy up.  Look more closely
9336         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
9338 2016-05-20  Jeff Law  <law@redhat.com>
9340         * bitmap.c (bitmap_find_bit): Remove useless test.
9342 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
9344         * function.c (thread_prologue_and_epilogue_insns): Commit the
9345         insertion of the epilogue.
9347 2016-05-20  Martin Jambor  <mjambor@suse.cz>
9349         PR tree-optimization/70884
9350         * tree-sra.c (initialize_constant_pool_replacements): Do not check
9351         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
9352         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
9353         of constant pool data as a reason for scalarization.
9355 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9357         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
9358         for naked functions.
9359         (thumb1_expand_prologue): Likewise.
9361 2016-05-20  Nathan Sidwell  <nathan@acm.org>
9363         * config/nvptx/nptx.c (nvptx_option_override): Only set
9364         flag_toplevel_reorder, if not explicitly specified.  Set
9365         flag_no_common, unless explicitly specified.
9367 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9369         * calls.c (can_implement_as_sibling_call_p): Mark param
9370         reg_parm_stack_space with ATTRIBUTE_UNUSED.
9372 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
9374         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
9375         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
9376         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
9377         constants.
9378         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
9379         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
9380         and CASE_CONST_ANY.
9382 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
9384         * config/nvptx/nvptx.md (sincossf3): New pattern.
9386 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9388         * calls.c (maybe_complain_about_tail_call): New function.
9389         (initialize_argument_information): Call
9390         maybe_complain_about_tail_call when clearing *may_tailcall.
9391         (can_implement_as_sibling_call_p): Call
9392         maybe_complain_about_tail_call when returning false.
9393         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
9394         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
9395         if tail-call optimization fails.
9396         * cfgexpand.c (expand_call_stmt): Initialize
9397         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
9398         * gimple-pretty-print.c (dump_gimple_call): Dump
9399         gimple_call_must_tail_p.
9400         * gimple.c (gimple_build_call_from_tree): Call
9401         gimple_call_set_must_tail with the value of
9402         CALL_EXPR_MUST_TAIL_CALL.
9403         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
9404         (gimple_call_set_must_tail): New function.
9405         (gimple_call_must_tail_p): New function.
9406         * print-tree.c (print_node): Update printing of TREE_STATIC
9407         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
9408         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
9409         trailing comment listing applicable flags.
9410         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
9412 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9414         * calls.c (expand_call): Move "Rest of purposes for tail call
9415         optimizations to fail" to...
9416         (can_implement_as_sibling_call_p): ...this new function, and
9417         split into multiple "if" statements.
9419 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9421         * cfgloop.h (expected_loop_iterations_unbounded,
9422         expected_loop_iterations): Unconstify.
9423         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
9424         profile with known upper bound; return 3 when profile is absent.
9425         (expected_loop_iterations): Update.
9427 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9429         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
9430         and get_max_loop_iterations_int.
9432 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9434         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
9435         realistic upper bounds here.
9437 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
9439         PR c++/71210
9440         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
9441         calls if the LHS is variable length or has addressable type.
9442         If targets[0]->decl is a noreturn call with void return type and
9443         zero arguments, adjust fntype and remove lhs in that case.
9445 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
9447         PR tree-optimization/71079
9448         PR tree-optimization/71206
9449         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
9451 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9453         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
9454         (get_vec_alignment_for_array_decl): Likewise.
9455         (get_vec_alignment_for_record_decl): Likewise.
9456         (increase_alignment::execute): Move code to find alignment to
9457         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
9458         (type_align_map): New hash_map.
9460 2016-05-20  Richard Guenther  <rguenther@suse.de>
9462         PR tree-optimization/29756
9463         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
9464         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
9465         * fold-const.c (operand_equal_p): Likewise.
9466         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
9467         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
9468         * tree-inline.c (estimate_operator_cost): Likewise.
9469         * tree-pretty-print.c (dump_generic_node): Likewise.
9470         * tree-ssa-operands.c (get_expr_operands): Likewise.
9471         * cfgexpand.c (expand_debug_expr): Likewise.
9472         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9473         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
9474         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
9475         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
9476         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
9477         (execute_update_addresses_taken): Do it.
9479 2016-05-20  Richard Biener  <rguenther@suse.de>
9481         PR tree-optimization/71185
9482         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
9483         register operations.
9485 2016-05-20  Richard Biener  <rguenther@suse.de>
9487         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
9488         gimple_seq_add_seq_without_update.
9489         (release_bb_predicate): Assert we have no operands to free.
9490         (if_convertible_loop_p_1): Calculate post dominators later.
9491         Do not free BB predicates here.
9492         (combine_blocks): Do not recompute BB predicates.
9493         (version_loop_for_if_conversion): Save BB predicates around
9494         loop versioning.
9496 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
9498         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
9499         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
9500         code.  Ignore sibcalls on EDGE_IGNORE edges.
9501         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
9502         on edges for sibcalls that run without prologue.  The rest of the
9503         function is combined from...
9504         (fix_fake_fallthrough_edge): ... this, and ...
9505         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
9506         function argument, make it a local variable.
9508 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
9510         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
9511         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
9512         for 32-bit mode and SEH for 64-bit.
9513         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
9514         TARGET_64BIT_DEFAULT.
9516 2016-05-19  Ryan Burn  <contact@rnburn.com>
9518         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
9519         * gengtype.c (open_base_files): Add cilk.h to ifiles.
9521 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
9523         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
9524         force pending loads from memory.
9526 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9528         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
9529         (UNSPEC_DARN_32): New unspec constant.
9530         (UNSPEC_DARN_RAW): New unspec constant.
9531         (darn_32): New instruction.
9532         (darn_raw): New instruction.
9533         (darn): New instruction.
9534         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
9535         support and documentation for this macro.
9536         (BU_P9_MISC_1): New macro definition.
9537         (BU_P9_64BIT_MISC_0): New macro definition.
9538         (BU_P9_MISC_0): New macro definition.
9539         (darn_32): New builtin definition.
9540         (darn_raw): New builtin definition.
9541         (darn): New builtin definition.
9542         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
9543         RS6000_BUILTIN_0 directives to surround each occurrence of
9544         #include "rs6000-builtin.def".
9545         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
9546         RS6000_BTM_64BIT flags to the returned mask, depending on
9547         configuration.
9548         (def_builtin): Correct an error in the assignments made to the
9549         debugging variable attr_string.
9550         (rs6000_expand_builtin): Add support for no-operand built-in
9551         functions.
9552         (builtin_function_type): Remove fatal_error assertion that is no
9553         longer valid.
9554         (rs6000_common_init_builtins): Add support for no-operand built-in
9555         functions.
9556         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
9557         definition.
9558         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
9559         definition.
9560         (RS6000_BTM_64BIT): New macro definition.
9561         * doc/extend.texi: Document __builtin_darn (void),
9562         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
9563         functions.
9565 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
9567         * tree-vect-loop.c (vect_analyze_loop_2): Use also
9568         max_loop_iterations_int.
9570 2016-05-19  Marek Polacek  <polacek@redhat.com>
9572         PR tree-optimization/71031
9573         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
9574         condition and adjust the code a bit.
9576 2016-05-19  Martin Liska  <mliska@suse.cz>
9578         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
9579         auto_vec instead of vec.
9581 2016-05-19  Martin Liska  <mliska@suse.cz>
9583         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
9585 2016-05-19  Martin Liska  <mliska@suse.cz>
9587         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
9589 2016-05-19  Martin Liska  <mliska@suse.cz>
9591         * ipa-pure-const.c (set_function_state): Remove an existing
9592         funct_state.
9593         (remove_node_data): Do not free it as it's released
9594         in set_function_state.
9596 2016-05-19  Martin Liska  <mliska@suse.cz>
9598         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
9599         bitmap.
9601 2016-05-19  Martin Liska  <mliska@suse.cz>
9603         * omp-simd-clone.c (simd_clone_adjust): Release vector.
9605 2016-05-19  Martin Liska  <mliska@suse.cz>
9607         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
9608         an auto_vec instead of re-creating it.
9610 2016-05-19  Martin Liska  <mliska@suse.cz>
9612         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
9613         auto_vec instead of vec.
9615 2016-05-19  Martin Liska  <mliska@suse.cz>
9617         * lto-section-in.c (lto_get_section_data): Call
9618         lto_check_version with additional argument.
9619         * lto-streamer.c (lto_check_version): Add new argument.
9620         * lto-streamer.h (lto_check_version): Likewise.
9622 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9624         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
9625         Don't add cost of inner memory when handling sign-extended loads.
9627 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
9629         PR rtl-optimization/71148
9630         * cse.c (cse_main): Free dominance info.
9631         (rest_of_handle_cse): Don't free dominance info.
9632         (rest_of_handle_cse2): Likewise.
9633         (rest_of_handle_cse_after_global_opts): Likewise.
9635 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9637         PR target/71056
9638         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
9639         NULL_TREE early if NEON is not available.  Remove now redundant check
9640         in ARM_CHECK_BUILTIN_MODE.
9642 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
9644         PR sanitizer/64354
9645         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
9646         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
9647         * doc/cpp.texi: Document new macros.
9649 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
9651         PR tree-optimization/69848
9652         * tree-vect-loop.c (vectorizable_reduction): Don't factor
9653         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
9655 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
9657         * function.c (thread_prologue_and_epilogue_insn): Move the
9658         "goto epilogue_done" one block later.
9660 2016-05-19  Richard Biener  <rguenther@suse.de>
9662         PR tree-optimization/70729
9663         * passes.def: Move LIM pass before PRE.  Remove no longer
9664         required copyprop and move first DCE out of the loop pipeline.
9666 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
9668         PR driver/69265
9669         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
9670         (OBJS-libcommon-target): ...here.
9671         * opts-common.c: Include spellcheck.h.
9672         (cmdline_handle_error): Build a vec of valid options and use it
9673         to suggest provide hints for misspelled arguments.
9675 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
9677         PR c++/71100
9678         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
9679         lhs if it has TREE_ADDRESSABLE type.
9681 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
9683         PR target/71145
9684         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
9685         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
9687 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9689         PR ipa/69708
9690         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
9691         input for NOP_EXPR pass-through functions.
9692         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
9693         aggregate global constant VAR_DECLs in constant jump functions.
9695 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9697         PR ipa/69708
9698         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
9699         from TREE_READONLY parameters.
9701 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9703         PR ipa/69708
9704         * cgraph.h (cgraph_indirect_call_info): New field
9705         guaranteed_unmodified.
9706         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
9707         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
9708         appropriate.
9709         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
9710         pass the parameter value to ipa_find_agg_cst_for_param.
9711         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
9712         guaranteed_unmodified, store AA results there instead of bailing out
9713         if present.
9714         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
9715         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
9716         (find_constructor_constant_at_offset): New function.
9717         (ipa_find_agg_cst_from_init): Likewise.
9718         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
9719         static initializers of contants, report back through a new paameter
9720         from_global_constant if that was the case.
9721         (try_make_edge_direct_simple_call): Also pass parameter value to
9722         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
9723         appropriate.
9724         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
9725         (ipa_read_indirect_edge_info): Likewise.
9726         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
9727         (ipa_load_from_parm_agg): Likewise.
9729 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
9731         PR rtl-optimization/71150
9732         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
9733         check.
9735 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9737         PR target/70915
9738         * config/rs6000/constraints.md (wE constraint): New constraint
9739         for a vector constant that can be loaded with XXSPLTIB.
9740         (wM constraint): New constraint for a vector constant of a 1's.
9741         (wS constraint): New constraint for a vector constant that can be
9742         loaded with XXSPLTIB and a vector sign extend instruction.
9743         * config/rs6000/predicates.md (xxspltib_constant_split): New
9744         predicates for wE/wS constraints.
9745         (xxspltib_constant_nosplit): Likewise.
9746         (easy_vector_constant): Add support for constants that can be
9747         loaded via XXSPLTIB.
9748         (all_ones_constant): New predicate for vector constant with all
9749         1's set.
9750         (splat_input_operand): Add support for ISA 3.0 word splat operations.
9751         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
9752         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
9753         instruction and possibly with a sign extension.
9754         (output_vec_const_move): Add support for XXSPLTIB. If we are
9755         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
9756         instead of XXLXOR/XXLORC.
9757         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
9758         operations.
9759         (rs6000_legitimize_reload_address): Likewise.
9760         (rs6000_output_move_128bit): Use output_vec_const_move to emit
9761         constants.
9762         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
9763         combine VSX_M and VSX_M2 into one iterator.
9764         (VSX_M2): Likewise.
9765         (VSINT_84): New iterators for loading constants with XXSPLTIB.
9766         (VSINT_842): Likewise.
9767         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
9768         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
9769         XXSPLTIB instruction.
9770         (xxspltib_<mode>_nosplit): Likewise.
9771         (xxspltib_<mode>_split): New insn to load up constants with
9772         XXSPLTIB and a sign extend instruction.
9773         (vsx_mov<mode>): Replace single move that handled all vector types
9774         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
9775         moves (when -mvsx-timode is in effect) into the main vector
9776         moves.  Eliminate separate moves for <VSr> <VSa>, where the
9777         preferred register class (<VSr>) is listed first, and the
9778         secondary register class (<VSa>) is listed second with a '?' to
9779         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
9780         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
9781         that if the register was involved in a slow operation, the
9782         clear/set operation does not wait for the slow operation to
9783         finish.  Adjust the length attributes for 32-bit mode.  Use
9784         rs6000_output_move_128bit and drop the use of the string
9785         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
9786         spacing so that the alternatives and attributes don't generate
9787         long lines, and put things in columns, so that it is easier to
9788         match up the operands and attributes with the insn alternatives.
9789         (vsx_mov<mode>_64bit): Likewise.
9790         (vsx_mov<mode>_32bit): Likewise.
9791         (vsx_movti_64bit): Fold movti into normal vector moves.
9792         (vsx_movti_32bit): Likewise.
9793         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
9794         splat instructions.
9795         (vsx_splat_v4si_internal): Likewise.
9796         (vsx_splat_v4sf_internal): Likewise.
9797         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
9798         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
9799         extend vector elements.
9800         (vsx_sign_extend_hi_<mode>): Likewise.
9801         (vsx_sign_extend_si_v2di): Likewise.
9802         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
9803         declaration.
9804         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
9805         constraints.  Add trailing period to wL documentation.
9807 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
9809         PR middle-end/71020
9810         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
9811         * tree-dfa.c (replace_abnormal_ssa_names): New function.
9812         * tree-call-cdce.c: Include tree-dfa.h.
9813         (can_guard_call_p): New function, extracted from...
9814         (can_use_internal_fn): ...here.
9815         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
9816         and return void.
9817         (shrink_wrap_one_built_in_call): Likewise.
9818         (use_internal_fn): Likewise.
9819         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
9820         and return void.  Call replace_abnormal_ssa_names.
9821         (pass_call_cdce::execute): Check can_guard_call_p during the
9822         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
9823         will always change something.
9825 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9827         PR ipa/70646
9828         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
9829         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
9831 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9833         PR ipa/70646
9834         * ipa-inline.h (condition): New field size.
9835         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
9836         for comaprison and store it into the new condition.
9837         (evaluate_conditions_for_known_args): Use condition size to check
9838         access sizes for all but CHANGED conditions.
9839         (unmodified_parm_1): New parameter size_p, store access size into it.
9840         (unmodified_parm): Likewise.
9841         (unmodified_parm_or_parm_agg_item): Likewise.
9842         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
9843         (set_cond_stmt_execution_predicate): Extract access sizes and store
9844         them to conditions.
9845         (set_switch_stmt_execution_predicate): Likewise.
9846         (will_be_nonconstant_expr_predicate): Likewise.
9847         (will_be_nonconstant_predicate): Likewise.
9848         (inline_read_section): Stream condition size.
9849         (inline_write_summary): Likewise.
9851 2016-05-18  Richard Biener  <rguenther@suse.de>
9853         * tree-ssa-loop-im.c (determine_max_movement): Properly add
9854         condition cost to PHI cost instead of total_cost.
9856 2016-05-18  Martin Liska  <mliska@suse.cz>
9858         PR fortran/70856
9859         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
9860         merged variables.
9862 2016-05-18  Richard Biener  <rguenther@suse.de>
9864         * lto-streamer.h (LTO_major_version): Bump to 6.
9866 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
9868         * function.c (make_split_prologue_seq, make_prologue_seq,
9869         make_epilogue_seq): New functions, factored out from...
9870         (thread_prologue_and_epilogue_insns): Here.
9872 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
9874         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9875         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
9876         of before.  Add a comment.
9878 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
9880         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
9881         expression pointer, not pointer to the pointer.
9883 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
9885         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
9886         (avx2_pbroadcast<mode>): Add another alternative with v instead
9887         of x constraints in it, using <pbroadcast_evex_isa> isa.
9888         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
9890         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
9891         constraint x instead of v in second alternative, add avx512bw
9892         alternative.
9894         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
9895         constraint x instead of v in second alternative, add avx512bw
9896         alternative.
9898         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
9899         constraint x instead of v in second alternative, add avx512bw
9900         alternative.
9902         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
9903         avx512bw alternative.
9905 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9907         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
9908         array to 128 chars.
9909         (define_insn "*andnottf3"): Ditto.
9910         (define_insn "*<code><mode>3"/any_logic): Ditto.
9911         (define_insn "*<code>tf3"/any_logic): Ditto.
9912         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
9913         operand to block AVX-512VL insn variant emit when it is not enabled.
9915 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9917         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
9918         constraint fot SF mode.
9920 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
9921             Kirill Yukhin  <kirill.yukhin@intel.com>
9923         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
9924         modifiers.
9925         (define_insn "rsqrt14<mode>"): Ditto.
9926         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9927         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
9928         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
9929         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9930         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
9931         Ditto.
9932         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
9933         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
9934         * config/i386/i386.c (ix86_print_operand): Expand check for size
9935         override codes for Intel syntax.
9937 2016-05-18  Richard Biener  <rguenther@suse.de>
9939         PR tree-optimization/71168
9940         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
9941         initialization earlier.
9943 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
9945         * config/aarch64/aarch64-simd.md
9946         (aarch64_reduc_plus_internal<mode>): Rename to...
9947         (reduc_plus_scal): ...This, and remove previous implementation.
9949 2016-05-18  Richard Biener  <rguenther@suse.de>
9951         * passes.def: Put late dse and cd_dce in canonical order.
9953 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
9955         * ipa-inline-transform.c (preserve_function_body_p): Look for
9956         first non-thunk clone.
9957         (save_function_body): Save into first non-thunk.
9958         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
9959         up call stmt id.
9960         (lto_output_node): Inline thunks don't need body in every
9961         partition.
9962         * lto-streamer-in.c: Do not fixup thunk clones.
9963         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
9964         thunks.
9965         * tree-inline.c (copy_bb): Be prepared for target node to be new after
9966         folding suceeds.
9968 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
9970         PR middle-end/63586
9971         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
9972         (reassociate_bb): Call transform_add_to_multiply.
9974 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
9976         * config/aarch64/aarch64.c (all_extensions): Removed unused
9977         static variable.
9979 2016-05-17  Nathan Sidwell  <nathan@acm.org>
9981         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
9982         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
9984 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
9986         PR tree-optimization/54579
9987         PR middle-end/55299
9988         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
9990 2016-05-17  Marek Polacek  <polacek@redhat.com>
9992         PR ipa/71146
9993         * tree-inline.c (expand_call_inline): Call
9994         maybe_remove_unused_call_args.
9996 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
9998         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
9999         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
10000         * doc/md.texi (fmin@var{m}3): Likewise.
10002 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
10004         * match.pd (X & C): New transformation.
10006 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
10008         * match.pd (~X & Y): New transformation.
10010 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
10012         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
10013         information for new SSA_NAME.
10014         (simplify_conversion_using_ranges): Get range through get_range_info
10015         instead of get_value_range.
10017 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10019         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
10020         Remove inline assembly.
10021         (vmvn_s16): Likewise.
10022         (vmvn_s32): Likewise.
10023         (vmvn_u8): Likewise.
10024         (vmvn_u16): Likewise.
10025         (vmvn_u32): Likewise.
10026         (vmvnq_s8): Likewise.
10027         (vmvnq_s16): Likewise.
10028         (vmvnq_s32): Likewise.
10029         (vmvnq_u8): Likewise.
10030         (vmvnq_u16): Likewise.
10031         (vmvnq_u32): Likewise.
10032         (vmvn_p8): Likewise.
10033         (vmvnq_p16): Likewise.
10035 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10037         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
10038         Use builtin.
10039         (vmul_n_s16): Likewise.
10040         (vmul_n_s32): Likewise.
10041         (vmul_n_u16): Likewise.
10042         (vmul_n_u32): Likewise.
10043         (vmulq_n_f32): Likewise.
10044         (vmulq_n_f64): Likewise.
10045         (vmulq_n_s16): Likewise.
10046         (vmulq_n_s32): Likewise.
10047         (vmulq_n_u16): Likewise.
10048         (vmulq_n_u32): Likewise.
10050 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10052         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
10053         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
10055 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10057         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
10058         to *aarch64_fma4_elt_from_dup<mode>.
10059         (*aarch64_fnma4_elt_to_128df): Rename to
10060         *aarch64_fnma4_elt_from_dup<mode>.
10061         * config/aarch64/arm_neon.h (vfma_n_f64): New.
10062         (vfms_n_f32): Likewise.
10063         (vfms_n_f64): Likewise.
10064         (vfmsq_n_f32): Likewise.
10065         (vfmsq_n_f64): Likewise.
10067 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
10069         * wide-int.h: Change fixed_wide_int_storage from class to struct.
10071 2016-05-17  Richard Biener  <rguenther@suse.de>
10073         PR tree-optimization/71132
10074         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
10075         Only add control dependences for blocks in the loop.
10076         (build_rdg): Adjust.
10077         (generate_code_for_partition): Return whether loop should
10078         be destroyed and delay that.
10079         (distribute_loop): Likewise.
10080         (pass_loop_distribution::execute): Record loops to be destroyed
10081         and perform delayed destroying of loops.
10083 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10085         PR target/70809
10086         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
10088 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
10090         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
10092 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
10094         PR target/71114
10095         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
10096         insertion point for instructions generated by validize_mem.
10098 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
10100         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
10101         in brackets.
10103 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
10105         * config/aarch64/aarch64.c
10106         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
10107         rather than a macro.
10109 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10111         * doc/invoke.texi (AArch64 Options): Various updates.
10113 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10115         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
10116         into instrumentation thunks.
10117         * cif-code.def (CIF_CHKP): New.
10119 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
10121         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
10123 2016-05-16  Martin Jambor  <mjambor@suse.cz>
10125         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
10126         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
10128 2016-05-16  Marek Polacek  <polacek@redhat.com>
10130         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
10131         commentary.
10133 2016-05-16  Martin Jambor  <mjambor@suse.cz>
10135         PR hsa/70857
10136         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
10137         the outlined kernel function.
10139 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
10141         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
10142         (ISA_HAS_DLSA): Ditto.
10144 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
10146         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
10148 2016-05-16  Nathan Sidwell  <nathan@acm.org>
10150         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
10151         (nvptx_name_replacement): Restore.  Add comment.
10152         (write_fn_proto, write_fn_proto_from_insn,
10153         nvptx_output_call_insn): Restore
10154         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
10156 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10158         * config/aarch64/aarch64.md
10159         (add<mode>3_compareC_cconly_imm): Remove use of %w.
10160         (add<mode>3_compareC_imm): Likewise.
10161         (<optab>si3_uxtw): Split into register and immediate variants.
10162         (andsi3_compare0_uxtw): Likewise.
10163         (and<mode>3_compare0): Likewise.
10164         (and<mode>3nr_compare0): Likewise.
10165         (stack_protect_test_<mode>): Don't use %x for memory operands.
10167 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
10169         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
10171 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10173         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10174         Split integer shifts into shift_reg and bfm.
10175         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
10176         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10177         (ror<mode>3_insn): Likewise.
10178         (<optab>si3_insn_uxtw): Likewise.
10179         (<optab><mode>3_insn): Change to rotate_imm.
10180         (extr<mode>5_insn_alt): Likewise.
10181         (extrsi5_insn_uxtw): Likewise.
10182         (extrsi5_insn_uxtw_alt): Likewise.
10184 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10186         * doc/tm.texi: Regenerate.
10187         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
10188         (TARGET_INVALID_RETURN_TYPE): Remove.
10189         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
10190         TARGET_INVALID_RETURN_TYPE.
10191         * target.def (invalid_parameter_type): Remove.
10192         (invalid_return_type): Remove.
10194 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10196         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
10197         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
10198         calls from thunk.
10199         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
10200         gimple body.
10201         (preserve_function_body_p): No need to preserve function body
10202         * cif-codes.def (CIF_THUNK): Remove.
10203         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
10205 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10207         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
10209 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10211         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
10212         for thunks.
10214 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10216         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
10217         (inline_small_functions): Do not look for function symbol when
10218         resetting caches.
10220 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10222         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
10223         of inline thunks
10225 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10226             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10227             Jiong Wang  <jiong.wang@arm.com>
10229         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
10230         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
10231         Define __ARM_FP16_ARGS when appropriate.
10232         * config/arm/arm.c (arm_invalid_parameter_type): Remove
10233         declaration.
10234         (arm_invalid_return_type): Likewise.
10235         (TARGET_INVALID_PARAMETER_TYPE): Remove.
10236         (TARGET_INVALID_RETURN_TYPE): Remove.
10237         (aapcs_vfp_sub_candidate): Allow HFmode.
10238         (aapcs_vfp_allocate): Add comment.  Support HFmode.
10239         (aapcs_vfp_allocate_return_reg): Likewise.
10240         (struct aapcs_cp_arg_layout): Slightly reword comments for
10241         is_return_candidate and allocate_return_reg.
10242         (output_mov_vfp): Update assert.
10243         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
10244         condition.
10245         (arm_invalid_parameter_type): Remove.
10246         (amr_invalid_return_type): Remove.
10247         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
10248         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
10249         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
10251 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10253         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10254         * config/aarch64/arch64-protos.h
10255         (aarch64_legitimize_reload_address): Remove.
10256         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
10257         Remove.
10259 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10261         * configure.ac: Add ACX_NONCANONICAL_HOST.
10262         * configure: Regenerate.
10263         * Makefile.in: Set host_noncanonical.
10265 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
10267         PR target/71097
10268         * config/i386/i386.md (*movtf_internal): Before register allocation,
10269         do not allow FP constants for CM_MEDIUM memory model, allow only
10270         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
10271         (*movxf_internal): Ditto.
10272         (*movdf_internal): Ditto.
10273         (*movsf_internal): Ditto.
10275 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
10277         PR rtl-optimization/67483
10278         * combine.c (make_compound_operation): Don't call extract_left_shift
10279         with negative shift amounts.
10281 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
10283         PR bootstrap/71071
10284         * fold-const.c (fold_checksum_tree): Allow modification
10285         of TYPE_ALIAS_SET during folding.
10287         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
10288         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
10289         (ix86_split_to_parts): Likewise.  Fix up formatting.
10291 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
10293         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
10294         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
10295         printf format.
10297 2016-05-13  Nathan Sidwell  <nathan@acm.org>
10299         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
10300         (nvptx_name_replacement): Delete.
10301         (write_fn_proto, write_fn_proto_from_insn,
10302         nvptx_output_call_insn): Remove nvptx_name_replacement call.
10303         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
10304         * langhooks.c (add_builtin_funcction_common): Call
10305         targetm.mangle_decl_assembler_name.
10307         * config/nvptx/nvptx.c (write_fn_proto): Handle
10308         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
10310 2016-05-13  Martin Liska  <mliska@suse.cz>
10312         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
10313         and PRIu64 in printf format.
10315 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10317         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
10318         comment.
10320 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10322         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10323         Change --param max-completely-peeled-times to
10324         --param max-completely-peel-times in dump file printing.
10326 2016-05-13  Richard Biener  <rguenther@suse.de>
10328         PR tree-optimization/42587
10329         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
10330         (find_bswap_or_nop_1): Likewise.
10331         (bswap_replace): Likewise.
10333 2016-05-13  Martin Liska  <mliska@suse.cz>
10335         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
10336         Initialize a variable with default value.
10338 2016-05-13  Martin Liska  <mliska@suse.cz>
10340         * doc/invoke.texi: Enhance explanation of error recovery
10341         of sanitizers.
10343 2016-05-13  Martin Liska  <mliska@suse.cz>
10345         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
10346         (struct cost_pair): Change inv_expr_id (int) to inv_expr
10347         (iv_inv_expr_ent *).
10348         (struct iv_inv_expr_ent): Comment struct fields.
10349         (sort_iv_inv_expr_ent): New function.
10350         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
10351         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
10352         a hash_map between iv_inv_expr_ent and number of usages.
10353         (niter_for_exit): Fix coding style.
10354         (tree_ssa_iv_optimize_init): Use renamed variable.
10355         (determine_base_object): Fix coding style.
10356         (alloc_iv): Likewise.
10357         (find_interesting_uses_outside): Likewise.
10358         (add_candidate_1): Likewise.
10359         (add_standard_iv_candidates): Likewise.
10360         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
10361         (prepare_decl_rtl): Fix coding style.
10362         (get_address_cost): Likewise.
10363         (get_shiftadd_cost): Likewise.
10364         (force_expr_to_var_cost): Likewise.
10365         (compare_aff_trees): Likewise.
10366         (get_expr_id): Restructure the function.
10367         (get_loop_invariant_expr_id): Renamed to
10368         get_loop_invariant_expr.
10369         (get_computation_cost_at): Replace usage of inv_expr_id with
10370         inv_expr.
10371         (get_computation_cost): Likewise.
10372         (determine_group_iv_cost_generic): Likewise.
10373         (determine_group_iv_cost_address): Likewise.
10374         (iv_period): Fix coding style.
10375         (iv_elimination_compare_lt): Likewise.
10376         (may_eliminate_iv): Likewise.
10377         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
10378         inv_expr.
10379         (determine_group_iv_costs): Dump invariant expressions.
10380         (iv_ca_recount_cost): Use the newly added hash_map.
10381         (iv_ca_set_remove_invariants): Fix coding style.
10382         (iv_ca_set_add_invariants): Fix coding style.
10383         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
10384         invariants.
10385         (iv_ca_set_cp): Likewise.
10386         (iv_ca_new): Initialize the newly added hash_map and remove
10387         initialization of fields.
10388         (iv_ca_free): Delete the hash_map.
10389         (iv_ca_dump): Dump invariant expressions.
10390         (iv_ca_extend): Fix coding style.
10391         (try_add_cand_for): Likewise.
10392         (create_new_ivs): Dump information about # of avg iterations and
10393         # of used invariant expressions.
10394         (rewrite_use_compare): Fix coding style.
10395         (free_loop_data): Set default value for max_inv_expr_id.
10397 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10399         * cse.c (rest_of_handle_cse): Use cleanup_cfg
10400         returned value cse_cfg_altered computation.
10401         (rest_of_handle_cse2): Likewise.
10402         (rest_of_handle_cse_after_global_opts): Likewise.
10404 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10406         PR target/53440
10407         * config/arm/arm.c (arm32_output_mi_thunk): New.
10408         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
10409         to split Thumb1 vs TARGET_32BIT functionality.
10410         (arm_thumb1_mi_thunk): New.
10412 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10414         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
10415         to true.
10417 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10419         PR target/71080
10420         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
10422 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10424         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
10425         (expand_builtin_trap): Emit a regular call.
10426         (set_builtin_user_assembler_name): Remove obsolete cases.
10427         * dse.c (scan_insn): Adjust.
10428         * except.c: Include calls.h.
10429         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
10430         emit a regular call to setjmp.
10431         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
10432         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
10433         (emit_block_move_via_libcall): Delete.
10434         (block_move_fn): Delete.
10435         (init_block_move_fn): Likewise.
10436         (emit_block_move_libcall_fn): Likewise.
10437         (emit_block_op_via_libcall): New function.
10438         (set_storage_via_libcall): Tidy up and use memset builtin.
10439         (block_clear_fn): Delete.
10440         (init_block_clear_fn): Likewise.
10441         (clear_storage_libcall_fn): Likewise.
10442         (expand_assignment): Call emit_block_move_via_libcall.
10443         Do not include gt-expr.h.
10444         * expr.h (emit_block_op_via_libcall): Declare.
10445         (emit_block_copy_via_libcall): New inline function.
10446         (emit_block_move_via_libcall): Likewise.
10447         (emit_block_comp_via_libcall): Likewise.
10448         (block_clear_fn): Delete.
10449         (init_block_move_fn): Likewise.
10450         (init_block_clear_fn): Likewise.
10451         (emit_block_move_via_libcall): Likewise.
10452         (set_storage_via_libcall): Add default parameter value.
10453         * libfuncs.h (enum libfunc_index): Remove obsolete values.
10454         (abort_libfunc): Delete.
10455         (memcpy_libfunc): Likewise.
10456         (memmove_libfunc): Likewise.
10457         (memcmp_libfunc): Likewise.
10458         (memset_libfunc): Likewise.
10459         (setbits_libfunc): Likewise.
10460         (setjmp_libfunc): Likewise.
10461         (longjmp_libfunc): Likewise.
10462         (profile_function_entry_libfunc): Likewise.
10463         (profile_function_exit_libfunc): Likewise.
10464         (gcov_flush_libfunc): Likewise.
10465         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
10466         and DECL_VISIBILITY on the declaration.
10467         (init_optabs): Do not initialize obsolete libfuncs.
10468         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
10469         * tree-core.h (ECF_RET1): Define.
10470         (ECF_TM_PURE): Adjust.
10471         (ECF_TM_BUILTIN): Likewise.
10472         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
10473         (build_common_builtin_nodes): Initialize abort builtin.
10474         Add ECF_RET1 on memcpy, memmove and memset builtins.
10475         Pass final flags for alloca and alloca_with_align builtins.
10476         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
10477         obsolete builtins.
10478         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
10479         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
10480         set_storage_via_libcall and call emit_block_copy_via_libcall.
10482 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
10484         * config/i386/i386.md (*call_got_x32): Change operand 0 to
10485         DImode before it is passed to ix86_output_call_operand.
10486         (*call_value_got_x32): Ditto for operand 1.
10488 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
10490         PR rtl-optimization/70904
10491         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
10492         reload for wide mode.
10494 2016-05-12  Marek Polacek  <polacek@redhat.com>
10496         PR c/70756
10497         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
10498         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
10499         * langhooks.h (incomplete_type_error): Likewise.
10500         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
10501         parameter, pass it down to incomplete_type_error.
10502         * tree.h (size_in_bytes): New inline overload.
10503         (size_in_bytes_loc): Renamed from size_in_bytes.
10505 2016-05-12  Richard Biener  <rguenther@suse.de>
10507         PR tree-optimization/71059
10508         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
10509         nary before looking up or entering the expression into the VN
10510         hashes.
10511         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
10512         Make sure to re-use NARYs without result as inserted by
10513         phi-translation.
10515 2016-05-12  Richard Biener  <rguenther@suse.de>
10517         PR tree-optimization/71062
10518         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
10519         field.
10520         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10521         vars_contains_restrict if the var is a restrict tag.
10522         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
10523         do not disambiguate pointers against it.
10524         (dump_points_to_solution): Re-structure and adjust for new
10525         vars_contains_restrict flag.
10526         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
10528 2016-05-12  Martin Liska  <mliska@suse.cz>
10530         * doc/invoke.texi: Explain connection between
10531         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
10533 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
10535         PR tree-optimization/71006
10536         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10537         consider COND_EXPR as a mask producer.
10539 2016-05-12  Marek Polacek  <polacek@redhat.com>
10541         PR driver/71063
10542         * opts.c (common_handle_option): Detect missing argument for --help^.
10544 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10546         PR target/70830
10547         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
10548         when popping the PC and within an interrupt handler routine.
10549         Add missing tab to output of "ldmfd".
10550         (output_return_instruction): Output LDMFD with SP update rather
10551         than POP when returning from interrupt handler.
10553 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
10555         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
10556         TARGET_64BIT && TARGET_AVX512DQ.
10557         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
10558         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
10559         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
10560         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
10561         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
10562         (*vec_extractv4si_zext): Add avx512dq alternative.
10563         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
10564         use v instead of x constraint in other alternatives where possible.
10566         * config/i386/sse.md (sse2_loadld): Use v instead of x
10567         constraint in alternatives 0,1,4.
10569         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
10570         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
10571         v constraints instead of x and <pinsr_evex_isa> isa attribute.
10573         PR target/71019
10574         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
10575         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
10576         is not emitted unless TARGET_AVX512BW.
10577         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
10578         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
10579         for the result operand.
10581         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
10582         constraint instead of x in avx alternatives.  Use maybe_evex instead
10583         of vex prefix.
10585         * config/i386/constraints.md (Yv): New constraint.
10586         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
10587         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
10588         * config/i386/i386.md (avx512fvecmode): New mode attr.
10589         (*pushtf): Use v constraint instead of x.
10590         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
10591         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
10592         (*absneg<mode>2): Use Yv constraint instead of x constraint.
10593         (*absnegtf2_sse): Likewise.
10594         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
10595         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
10596         avx512f alternatives.
10597         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
10599 2016-05-12  Richard Biener  <rguenther@suse.de>
10601         PR tree-optimization/71060
10602         * tree-data-ref.c (initialize_data_dependence_relation): Do not
10603         require exact match of DR_BASE_OBJECT but only matching address and
10604         type.
10606 2016-05-12  Richard Biener  <rguenther@suse.de>
10608         PR tree-optimization/70986
10609         * cfganal.c: Include cfgloop.h.
10610         (dfs_find_deadend): Prefer to take edges exiting loops.
10612 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10614         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
10615         compile and run time.
10617 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
10619         PR c/43651
10620         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
10622 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
10624         * config/i386/i386.c (legitimize_pic_address): Use
10625         copy_to_suggested_reg instead of gen_movsi.
10627 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10629         * config/rs6000/predicates.md (quad_memory_operand): Move most of
10630         the code into quad_address_p and call it to share code with
10631         vsx_quad_dform_memory_operand.
10632         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
10633         d-form support.
10634         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
10635         bit instead of being a separate word.  Split -mpower9-dform into
10636         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
10637         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
10638         for the register class supporting 128-bit quad word memory offsets.
10639         (mode_supports_vsx_dform_quad): Helper function to return if the
10640         register class uses quad word memory offsets.
10641         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
10642         (rs6000_debug_reg_global): Always print if we are using LRA or not.
10643         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
10644         instructions are enabled, set up the appropriate addr_masks for
10645         128-bit types.
10646         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
10647         -mpower9-dform-scalar, instead of -mpower9-dform.
10648         (rs6000_option_override_internal): Split -mpower9-dform into two
10649         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
10650         -mpower9-dform switch sets or clears both.  If we are not using
10651         the LRA register allocator, do not enable -mpower9-dform-vector by
10652         default.  If we are using LRA, enable -mpower9-dform-vector and
10653         -mvsx-timode if it is appropriate.  Issue a warning if either
10654         -mpower9-dform-vector or -mvsx-timode are explicitly used without
10655         enabling LRA.
10656         (quad_address_offset_p): New helper function to return if the
10657         offset is legal for quad word memory instructions.
10658         (quad_address_p): New function to determin if GPR or vector
10659         register quad word memory addresses are legal.
10660         (mem_operand_gpr): Validate quad word address offsets.
10661         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
10662         d-form (register + offset) instructions.
10663         (offsettable_ok_by_alignment): Likewise.
10664         (rs6000_legitimate_offset_address_p): Likewise.
10665         (legitimate_lo_sum_address_p): Likewise.
10666         (rs6000_legitimize_address): Likewise.
10667         (rs6000_legitimize_reload_address): Add more debug statements for
10668         -mdebug=addr.
10669         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
10670         d-form instructions.
10671         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
10672         d-form instructions.  Distinguish different cases in debug
10673         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
10674         d-form instructions.
10675         (rs6000_preferred_reload_class): Likewise.
10676         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
10677         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
10678         of the ISA 2.06 indexed memory instructions.
10679         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
10680         use them to save/restore the saved vector registers instead of
10681         using Altivec instructions.
10682         (rs6000_emit_epilogue): Likewise.
10683         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
10684         (rs6000_opt_masks): Split -mpower9-dform into
10685         -mpower9-dform-scalar and -mpower9-dform-vector.
10686         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
10687         was not selected.
10688         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
10689         ISA 3.0 vector indexed memory instructions, and fold the code into
10690         the normal mov<mode> patterns.
10691         (p9_vecstore_<mode>): Likewise.
10692         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
10693         instructions.
10694         (vsx_movti_64bit): Likewise.
10695         (vsx_movti_32bit): Likewise.
10696         * config/rs6000/constraints.md (wO constraint): New constraint for
10697         ISA 3.0 vector d-form support.
10698         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
10699         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
10700         include -mpower9-dform-vector until we switch over to LRA.
10701         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
10702         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
10703         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
10704         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
10705         for -mpower9-dform and -mlra.
10706         * doc/md.texi (wO constraint): Document wO constraint.
10708 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
10710         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
10711         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
10712         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
10713         Move handling of non-insn arguments inline into the sole user:
10714         (output_trans_func): ...here.
10715         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
10716         in emitted function prototype.
10717         (output_internal_insn_latency_func): Ditto.  Simplify.
10718         (output_internal_maximal_insn_latency_func): Ditto.  Delete
10719         always-unused argument.
10720         (output_insn_latency_func): Ditto.
10721         (output_maximal_insn_latency_func): Ditto.
10723 2016-05-11  Richard Biener  <rguenther@suse.de>
10725         PR tree-optimization/71055
10726         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
10727         sth with precision not equal to access size verify we don't chop
10728         off bits.
10730 2016-05-11  Richard Biener  <rguenther@suse.de>
10732         PR debug/71057
10733         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
10734         (dwarf2out_finish): Move retry_incomplete_types call ...
10735         (dwarf2out_early_finish): ... here.
10737 2016-05-11  Richard Biener  <rguenther@suse.de>
10739         PR middle-end/71002
10740         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
10741         if the langhook insists on it.
10742         * fold-const.c (make_bit_field_ref): Add arg for the original
10743         reference and preserve its alias-set.
10744         (decode_field_reference): Take exp by reference and adjust it
10745         to the original memory reference.
10746         (optimize_bit_field_compare): Adjust callers.
10747         (fold_truth_andor_1): Likewise.
10748         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
10750 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
10752         PR middle-end/70807
10753         * cfgrtl.h (delete_insn_and_edges): Now return bool.
10754         * cfgrtl.c (delete_insn_and_edges): Likewise.
10755         * config/i386/i386.c (convert_scalars_to_vector): Remove
10756         redundant code.
10757         * cse.c (cse_insn): Compute cse_cfg_altered.
10758         (delete_trivially_dead_insns): Likewise.
10759         (cse_cc_succs): Likewise.
10760         (rest_of_handle_cse): Free dominance info if required.
10761         (rest_of_handle_cse2): Likewise.
10762         (rest_of_handle_cse_after_global_opts): Likewise.
10764 2016-05-11  Alan Modra  <amodra@gmail.com>
10766         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
10767         abi_v4_pass_in_fpr): New functions.
10768         (rs6000_function_arg_boundary): Exclude complex IBM long double
10769         from 64-bit alignment when ABI_V4.
10770         (rs6000_function_arg, rs6000_function_arg_advance_1,
10771         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
10773 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
10775         PR rtl-optimization/71028
10776         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
10777         jump with just a return in the fallthrough block if the branch
10778         block contains just a return as well.
10780 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
10782         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
10783         * match.pd ((X & Y) ^ Y): ... this.
10784         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
10785         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
10787 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
10789         * read-md.c (require_char_ws): New function.
10790         (read_string): Simplify using require_char_ws.
10791         (handle_constants): Likewise.
10792         (handle_enum): Likewise.
10793         (handle_file): Likewise.
10794         * read-md.h (require_char_ws): New declaration.
10795         * read-rtl.c (read_conditions): Simplify using require_char_ws.
10796         (read_mapping): Likewise.
10797         (read_rtx_code): Likewise.
10798         (read_nested_rtx): Likewise.
10800 2016-05-10  James Norris  <jnorris@codesourcery.com>
10802         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
10803         if offloading is enabled and -fopenacc or -fopenmp is specified.
10804         (CRTOFFLOADEND): Likewise.
10805         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
10806         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
10808 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
10810         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
10811         gotoff_operand code paths.  Use copy_to_suggested_regs and
10812         expand_simple_binop where appropriate.  Cleanup.
10814 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10816         PR target/70799
10817         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
10818         integer constants.
10819         (dimode_scalar_chain::vector_const_cost): New.
10820         (dimode_scalar_chain::compute_convert_gain): Handle constants.
10821         (dimode_scalar_chain::convert_op): Likewise.
10822         (dimode_scalar_chain::convert_insn): Likewise.
10824 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
10826         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
10827         unary operation, not a binary one.
10829 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10831         PR middle-end/70877
10832         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
10833         calls with type casted fndecl.
10835 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10837         PR tree-optimization/70786
10838         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
10839         * calls.c (initialize_argument_information): Bind bounds
10840         with corresponding args passed by reference.
10842 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
10844         PR target/70927
10845         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
10846         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
10847         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
10848         accordingly.
10850 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10852         PR target/70963
10853         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
10854         code for a zero scale factor.
10855         (vsx_xvcvdpuxds_scale): Likewise.
10857 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
10859         * diagnostic-show-locus.c (layout::layout): Call show_ruler
10860         if show_ruler_p was set on the context.
10861         (layout::show_ruler): New method.
10862         * diagnostic.h (struct diagnostic_context): Add field
10863         "show_ruler_p".
10865 2016-05-10  Richard Biener  <rguenther@suse.de>
10867         PR tree-optimization/71039
10868         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
10869         (chk_uses): New function.
10870         (propagate_with_phi): Verify we can safely replicate the lhs of an
10871         aggregate assignment on all incoming edges.
10873 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
10875         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
10876         Forward declare.
10877         (rx_atomic_sequence): New class.
10878         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
10879         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
10880         non-inline.
10881         (rx_atomic_sequence::rx_atomic_sequence,
10882         rx_atomic_sequence::~rx_atomic_sequence): New functions.
10883         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
10884         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
10885         CTRLREG_INTB): New constants.
10886         (FETCHOP): New code iterator.
10887         (fethcop_name, fetchop_name2): New iterator code attributes.
10888         (QIHI): New mode iterator.
10889         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
10890         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
10891         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
10893 2016-05-10  Martin Liska  <mliska@suse.cz>
10895         * tree-inline.c (remap_dependence_clique): Do not remap
10896         debugging statements.
10898 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10900         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
10901         ("*fixuns_truncdfdi2_z13")
10902         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
10903         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
10904         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
10906 2016-05-10  Richard Biener  <rguenther@suse.de>
10908         PR tree-optimization/70497
10909         PR tree-optimization/28367
10910         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
10911         split out from ...
10912         (visit_reference_op_load): ... here.
10913         (vn_reference_lookup_3): Use it to handle subreg-like accesses
10914         with simplified BIT_FIELD_REFs.
10915         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
10916         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
10917         correctly.
10919 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
10921         * dwarf2out.c (add_abstract_origin_attribute): Adjust
10922         documentation comment.  For BLOCK nodes, add a
10923         DW_AT_abstract_origin attribute that points to the DIE generated
10924         for the origin BLOCK.
10925         (gen_lexical_block_die): Call add_abstract_origin_attribute for
10926         blocks from inlined functions.
10928 2016-05-10  Alan Modra  <amodra@gmail.com>
10930         PR target/70947
10931         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
10932         regrename modifying insns saving lr before __morestack call.
10933         * config/rs6000/rs6000.md (split_stack_return): Similarly for
10934         insns restoring lr after __morestack call.
10936 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
10938         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
10939         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
10940         expanders.
10941         * config/i386/sse.md (vec_interleave_high<mode>,
10942         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
10943         <avx512>_vpermt2var<mode>3_maskz): Likewise.
10945 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10947         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
10948         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
10949         parallel reassociation for power8 and forward.
10951 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
10953         * config/i386/i386.md (absneg splitters with general regs): Use
10954         general_reg_operand predicate.
10955         (btsq peephole2): Use x86_64_immediate_operand to check if new
10956         value is suitable for immediate operand.  Generate emitted insn
10957         using RTL expressions.
10958         (btcq peephole2): Ditto.
10959         (btrq peephole2): Ditto.  Generate correct immediate operand
10960         for AND masking.
10962 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
10964         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
10965         bitpos.
10967 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
10969         * tree-affine.c (wide_int_constant_multiple_p): Add missing
10970         pointer dereference.
10972 2016-05-09  Richard Biener  <rguenther@suse.de>
10974         PR tree-optimization/70985
10975         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
10976         op0 isn't a gimple register.
10978 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
10980         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
10981         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
10982         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
10983         (i6400_fpu_mult): New cpu units.
10984         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
10985         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
10986         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
10987         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
10988         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
10989         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
10990         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
10991         (i6400_msa_long_float4, i6400_msa_long_float5)
10992         (i6400_msa_long_float8, i6400_msa_fdiv_df)
10993         (i6400_msa_fdiv_sf): New reservations.
10994         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
10995         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
10996         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
10997         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
10998         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
10999         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
11000         (msa_short_cmp, msa_short_float2, msa_short_logic3)
11001         (msa_short_store4, msa_long_load, msa_short_store)
11002         (msa_long_logic, msa_long_float2, msa_long_float4)
11003         (msa_long_float5, msa_long_float8, msa_long_mult)
11004         (msa_long_fdiv, msa_long_div): New reservations.
11006 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
11007             Sameera Deshpande  <sameera.deshpande@imgtec.com>
11008             Matthew Fortune  <matthew.fortune@imgtec.com>
11009             Graham Stott  <graham.stott@imgtec.com>
11010             Chao-ying Fu  <chao-ying.fu@imgtec.com>
11012         * config.gcc: Add MSA header file for mips*-*-* target.
11013         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
11014         (Ubv8i, Urv8):  New constraints.
11015         * config/mips/mips-ftypes.def: Add function types for MSA
11016         builtins.
11017         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
11018         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
11019         * config/mips/mips-msa.md: New file.
11020         * config/mips/mips-protos.h
11021         (mips_split_128bit_const_insns): New prototype.
11022         (mips_msa_idiv_insns): Likewise.
11023         (mips_split_128bit_move): Likewise.
11024         (mips_split_128bit_move_p): Likewise.
11025         (mips_split_msa_copy_d): Likewise.
11026         (mips_split_msa_insert_d): Likewise.
11027         (mips_split_msa_fill_d): Likewise.
11028         (mips_expand_msa_branch): Likewise.
11029         (mips_const_vector_same_val_p): Likewise.
11030         (mips_const_vector_same_bytes_p): Likewise.
11031         (mips_const_vector_same_int_p): Likewise.
11032         (mips_const_vector_shuffle_set_p): Likewise.
11033         (mips_const_vector_bitimm_set_p): Likewise.
11034         (mips_const_vector_bitimm_clr_p): Likewise.
11035         (mips_msa_vec_parallel_const_half): Likewise.
11036         (mips_msa_output_division): Likewise.
11037         (mips_ldst_scaled_shift): Likewise.
11038         (mips_expand_vec_cond_expr): Likewise.
11039         * config/mips/mips.c (enum mips_builtin_type): Add
11040         MIPS_BUILTIN_MSA_TEST_BRANCH.
11041         (mips_gen_const_int_vector_shuffle): New prototype.
11042         (mips_const_vector_bitimm_set_p): New function.
11043         (mips_const_vector_bitimm_clr_p): Likewise.
11044         (mips_const_vector_same_val_p): Likewise.
11045         (mips_const_vector_same_bytes_p): Likewise.
11046         (mips_const_vector_same_int_p): Likewise.
11047         (mips_const_vector_shuffle_set_p): Likewise.
11048         (mips_symbol_insns): Forbid loading symbols via immediate for
11049         MSA.
11050         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
11051         stores.
11052         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
11053         MSA.
11054         (mips_lx_address_p): Add support load indexed address for MSA.
11055         (mips_address_insns): Add calculation of instructions needed for
11056         stores and loads for MSA.
11057         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
11058         CONST_VECTOR for MSA and let it fall through.
11059         (mips_ldst_scaled_shift): New function.
11060         (mips_subword_at_byte): Likewise.
11061         (mips_msa_idiv_insns): Likewise.
11062         (mips_legitimize_move): Validate MSA moves.
11063         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
11064         calculation of costs for MSA division.
11065         (mips_split_move_p): Check if MSA moves need splitting.
11066         (mips_split_move): Split MSA moves if necessary.
11067         (mips_split_128bit_move_p): New function.
11068         (mips_split_128bit_move): Likewise.
11069         (mips_split_msa_copy_d): Likewise.
11070         (mips_split_msa_insert_d): Likewise.
11071         (mips_split_msa_fill_d): Likewise.
11072         (mips_output_move): Handle MSA moves.
11073         (mips_expand_msa_branch): New function.
11074         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
11075         Reinstate 'y' modifier.
11076         (mips_file_start): Add MSA .gnu_attribute.
11077         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
11078         FPRs.
11079         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
11080         (mips_class_max_nregs): Add register size for MSA supported mode.
11081         (mips_cannot_change_mode_class): Allow conversion between MSA
11082         vector modes and TImode.
11083         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
11084         instruction.
11085         (mips_secondary_reload_class): Force MSA loads/stores via memory.
11086         (mips_preferred_simd_mode): Add preffered modes for MSA.
11087         (mips_vector_mode_supported_p): Add MSA supported modes.
11088         (mips_autovectorize_vector_sizes): New function.
11089         (mips_msa_output_division): Likewise.
11090         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
11091         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
11092         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
11093         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
11094         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
11095         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
11096         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
11097         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
11098         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
11099         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
11100         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
11101         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
11102         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
11103         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
11104         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
11105         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
11106         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
11107         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
11108         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
11109         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
11110         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
11111         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
11112         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
11113         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
11114         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
11115         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
11116         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
11117         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
11118         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
11119         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
11120         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
11121         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
11122         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
11123         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
11124         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
11125         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
11126         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
11127         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
11128         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
11129         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
11130         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
11131         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
11132         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
11133         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
11134         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
11135         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
11136         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
11137         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
11138         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
11139         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
11140         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
11141         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
11142         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
11143         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
11144         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
11145         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
11146         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
11147         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
11148         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
11149         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
11150         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
11151         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
11152         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
11153         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
11154         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
11155         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
11156         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
11157         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
11158         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
11159         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
11160         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
11161         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
11162         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
11163         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
11164         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
11165         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
11166         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
11167         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
11168         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
11169         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
11170         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
11171         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
11172         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
11173         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
11174         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
11175         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
11176         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
11177         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
11178         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
11179         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
11180         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
11181         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
11182         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
11183         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
11184         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
11185         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
11186         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
11187         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
11188         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
11189         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
11190         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
11191         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
11192         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
11193         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
11194         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
11195         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
11196         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
11197         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
11198         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
11199         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
11200         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
11201         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
11202         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
11203         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
11204         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
11205         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
11206         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
11207         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
11208         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
11209         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
11210         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
11211         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
11212         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
11213         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
11214         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
11215         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
11216         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
11217         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
11218         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
11219         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
11220         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
11221         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
11222         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
11223         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
11224         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
11225         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
11226         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
11227         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
11228         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
11229         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
11230         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
11231         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
11232         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
11233         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
11234         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
11235         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
11236         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
11237         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
11238         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
11239         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
11240         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
11241         move_v builtins.
11242         (mips_get_builtin_decl_index): New array.
11243         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
11244         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
11245         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
11246         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
11247         (mips_init_builtins): Initialize mips_get_builtin_decl_index
11248         array.
11249         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11250         hook.
11251         (mips_expand_builtin_insn): Prepare operands for
11252         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
11253         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
11254         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
11255         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
11256         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
11257         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
11258         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
11259         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
11260         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
11261         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
11262         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
11263         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
11264         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
11265         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
11266         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
11267         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
11268         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
11269         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
11270         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
11271         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
11272         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
11273         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
11274         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
11275         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
11276         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
11277         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
11278         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
11279         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
11280         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
11281         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
11282         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
11283         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
11284         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
11285         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
11286         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
11287         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
11288         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
11289         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
11290         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
11291         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
11292         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
11293         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
11294         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
11295         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
11296         These are set implicitly and an error is reported if overridden.
11297         (mips_expand_builtin_msa_test_branch): New function.
11298         (mips_expand_msa_shuffle): Likewise.
11299         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
11300         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
11301         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
11302         (mips_expand_vec_unpack): Add support for MSA.
11303         (mips_expand_vector_init): Likewise.
11304         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
11305         instead of const0_rtx.
11306         (mips_msa_vec_parallel_const_half): New function.
11307         (mips_gen_const_int_vector): Likewise.
11308         (mips_gen_const_int_vector_shuffle): Likewise.
11309         (mips_expand_msa_cmp): Likewise.
11310         (mips_expand_vec_cond_expr): Likewise.
11311         * config/mips/mips.h
11312         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
11313         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
11314         specified.
11315         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
11316         (ISA_HAS_MSA): New macro.
11317         (UNITS_PER_MSA_REG): Likewise.
11318         (BITS_PER_MSA_REG): Likewise.
11319         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
11320         (MSA_REG_FIRST): New macro.
11321         (MSA_REG_LAST): Likewise.
11322         (MSA_REG_NUM): Likewise.
11323         (MSA_REG_P): Likewise.
11324         (MSA_REG_RTX_P): Likewise.
11325         (MSA_SUPPORTED_MODE_P): Likewise.
11326         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
11327         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
11328         * config/mips/mips.md: Include mips-msa.md.
11329         (alu_type): Add simd_add.
11330         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
11331         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
11332         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
11333         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
11334         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
11335         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
11336         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
11337         simd_move, simd_load, simd_store.  Choose "multi" for moves
11338         for "qword_mode".
11339         (qword_mode): New attribute.
11340         (insn_count): Add instruction count for quad moves.
11341         Increase the count for MIPS SIMD division.
11342         (UNITMODE): Add UNITMODEs for vector types.
11343         (addsub): New code iterator.
11344         * config/mips/mips.opt (mmsa): New option.
11345         * config/mips/msa.h: New file.
11346         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
11347         specified.
11348         * config/mips/mti-linux.h: Likewise.
11349         * config/mips/predicates.md
11350         (const_msa_branch_operand): New constraint.
11351         (const_uimm3_operand): Likewise.
11352         (const_uimm4_operand): Likewise.
11353         (const_uimm5_operand): Likewise.
11354         (const_uimm8_operand): Likewise.
11355         (const_imm5_operand): Likewise.
11356         (aq10b_operand): Likewise.
11357         (aq10h_operand): Likewise.
11358         (aq10w_operand): Likewise.
11359         (aq10d_operand): Likewise.
11360         (const_m1_operand): Likewise.
11361         (reg_or_m1_operand): Likewise.
11362         (const_exp_2_operand): Likewise.
11363         (const_exp_4_operand): Likewise.
11364         (const_exp_8_operand): Likewise.
11365         (const_exp_16_operand): Likewise.
11366         (const_vector_same_val_operand): Likewise.
11367         (const_vector_same_simm5_operand): Likewise.
11368         (const_vector_same_uimm5_operand): Likewise.
11369         (const_vector_same_uimm6_operand): Likewise.
11370         (const_vector_same_uimm8_operand): Likewise.
11371         (par_const_vector_shf_set_operand): Likewise.
11372         (reg_or_vector_same_val_operand): Likewise.
11373         (reg_or_vector_same_simm5_operand): Likewise.
11374         (reg_or_vector_same_uimm6_operand): Likewise.
11375         * doc/extend.texi (MIPS SIMD Architecture Functions): New
11376         section.
11377         * doc/invoke.texi (-mmsa): Document new option.
11379 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11381         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
11382         * configure: Regenerate.
11383         * config.in: Regenerate.
11384         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
11385         on -fvtable-verify.
11386         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
11387         (ENDFILE_VTV_SPEC): Define.
11389 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
11391         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
11392         registers in all interrupt handlers if necessary.
11393         (rl78_option_override): Add warning.
11394         (MUST_SAVE_MDUC_REGISTERS): New macro.
11395         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
11396         * config/rl78/rl78.c (check_mduc_usage): New function.
11397         (mduc_regs): New structure to hold MDUC register data.
11398         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
11399         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
11400         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
11401         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
11402         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
11403         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
11405 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
11407         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
11408         (tree-ssa-loop-niter.h): Ditto.
11409         (idx_within_array_bound, ref_within_array_bound): New functions.
11410         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
11411         Factor out check on writable base object to ...
11412         (base_object_writable): ... here.
11414 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11416         * config/arm/arm.md (probe_stack): Add modes to set source
11417         and destination.
11419 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
11421         * regrename.c (base_reg_class_for_rename): New static function.
11422         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
11424 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
11426         * cgraph.c (thunk_adjust): Export.
11427         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
11428         * cgraphunit.c (thunk_adjust): Export.
11429         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
11430         thunks.
11431         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
11432         inlinable.
11433         * tree-inline.c (expand_call_inline): Expand thunks inline.
11435 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
11437         PR target/70998
11438         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
11439         (*sse2_vd_cvtss2sd): Ditto.
11440         * config/i386/i386.md
11441         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
11442         Generate *sse2_vd_cvtsd2ss pattern.
11443         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
11444         Generate *sse2_vd_cvtss2sd pattern.
11446 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
11448         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
11449         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
11450         users.
11452 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
11454         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
11455         * config/sh/sh.c: Define and declare variables on first use throughout
11456         the file.
11457         (current_function_interrupt): Change to bool type.
11458         (frame_insn): Rename to emit_frame_insn and update users.
11459         (push_regs): Use bool for 'interrupt_handler' argument.
11460         (save_schedule_s): Remove.
11461         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
11462         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
11463         targetm.asm_out.unaligned_op.di.
11464         (gen_far_branch): Remove redundant forward declaration.
11465         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
11466         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
11467         (sh_set_return_address, sh_function_ok_for_sibcall,
11468         scavenge_reg): Update comments.
11469         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
11470         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
11471         (sh_attr_renesas_p): Remove unnecessary parentheses.
11472         (branch_dest): Simplify.
11473         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
11474         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
11475         (CUMULATIVE_ARGS): Change macro to typedef.
11476         (current_function_interrupt): Change to bool type.
11477         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
11478         Surround with __cplusplus ifdef.
11479         (sh_compare_op0, sh_compare_op1): Remove.
11480         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
11482 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
11484         * config/arm/arm.md: (arch): Add neon.
11485         (arch_enabled): Return yes for arch neon when TARGET_NEON.
11486         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
11487         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
11488         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
11489         attributes for alt renumbering.  Mark alt 3 as non-predicable.
11490         (thumb2_movdf_vfp): Likewise.
11492 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
11494         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
11495         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
11496         (*andqi_1): Add preferred_for_speed attribute to disparage
11497         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
11498         (*<code>qi_1): Ditto.
11499         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
11500         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
11501         (*ashlqi3_1): Ditto.
11502         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
11503         Add preferred_for_size attribute to disparage alternative 0 and
11504         preferred_for_speed attribute to disparage alternative 1 for
11505         TARGET_PARTIAL_REG_STALL targets.
11507 2016-05-07  Tom de Vries  <tom@codesourcery.com>
11509         PR tree-optimization/70956
11510         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
11511         def.
11513 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
11515         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
11516         * config/sh/sh.c (sh_cbranch_distance): Implement it.
11517         * config/sh/sh.md (branch_zero): Remove define_attr.
11518         (define_delay): Disable delay slot if branch distance is one insn.
11520 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
11522         * config/i386/i386.md (LEAMODE): New mode attribute.
11523         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
11524         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
11525         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
11526         operand 2 predicate.
11527         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
11528         (*lea<mode>_general_3): Ditto.
11529         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
11531 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
11533         * genmddump.c (main): Convert argv from char ** to const char **.
11535 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
11537         * coretypes.h (OVERRIDE): New macro.
11538         (FINAL): New macro.
11540 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
11542         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
11543         allow coalescing if the types are compatible.
11545 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
11547         * pass_manager.h (pass_manager::register_pass_name): New method.
11548         (pass_manager::get_pass_by_name): New method.
11549         (pass_manager::create_pass_tab): New method.
11550         (pass_manager::m_name_to_pass_map): New field.
11551         * passes.c (name_to_pass_map): Delete global in favor of field
11552         "m_name_to_pass_map" of pass_manager.
11553         (register_pass_name): Rename from a function to...
11554         (pass_manager::register_pass_name): ...this method, updating
11555         for renaming of global "name_to_pass_map" to field
11556         "m_name_to_pass_map".
11557         (create_pass_tab): Rename from a function to...
11558         (pass_manager::create_pass_tab): ...this method, updating
11559         for renaming of global "name_to_pass_map" to field.
11560         (get_pass_by_name): Rename from a function to...
11561         (pass_manager::get_pass_by_name): ...this method.
11562         (enable_disable_pass): Convert use of get_pass_by_name to
11563         a method call, locating the pass_manager singleton.
11565 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
11567         * genattr-common.c (main): Convert argv from char ** to const char **.
11568         * genattr.c (main): Likewise.
11569         * genattrtab.c (main): Likewise.
11570         * genautomata.c (initiate_automaton_gen): Likewise.
11571         (main): Likewise.
11572         * gencodes.c (main): Likewise.
11573         * genconditions.c (main): Likewise.
11574         * genconfig.c (main): Likewise.
11575         * genconstants.c (main): Likewise.
11576         * genemit.c (main): Likewise.
11577         * genenums.c (main): Likewise.
11578         * genextract.c (main): Likewise.
11579         * genflags.c (main): Likewise.
11580         * genmddeps.c (main): Likewise.
11581         * genopinit.c (main): Likewise.
11582         * genoutput.c (main): Likewise.
11583         * genpeep.c (main): Likewise.
11584         * genpreds.c (main): Likewise.
11585         * genrecog.c (main): Likewise.
11586         * gensupport.c (init_rtx_reader_args_cb): Likewise.
11587         (init_rtx_reader_args): Likewise.
11588         * gensupport.h (init_rtx_reader_args_cb): Likewise.
11589         (init_rtx_reader_args): Likewise.
11590         * gentarget-def.c (main): Likewise.
11591         * read-md.c (read_md_files): Likewise.
11592         * read-md.h (read_md_files): Likewise.
11594 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
11596         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
11597         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
11598         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
11599         Remove unused predicate.
11600         (register_and_not_fp_reg_operand): Ditto.
11602 2016-05-06  Martin Liska  <mliska@suse.cz>
11604         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
11605         instead of vec as the vector is local to the function.
11607 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
11609         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
11610         avx512bw alternative.
11612         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
11613         before the ashr<mode>3 pattern.
11615         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
11616         v instead of x in vex or maybe_vex alternatives, use
11617         maybe_evex instead of vex in prefix.
11619         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
11620         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
11621         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
11622         in vex or maybe_vex alternatives, use maybe_evex instead of vex
11623         in prefix.
11625         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
11626         v instead of x in vex or maybe_vex alternatives, use
11627         maybe_evex instead of vex in prefix.
11629         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
11630         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
11631         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
11632         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
11633         alternatives, use maybe_evex instead of vex in prefix.
11635         * config/i386/sse.md (vec_interleave_lowv4sf,
11636         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
11637         v instead of x in vex or maybe_vex alternatives, use
11638         maybe_evex instead of vex in prefix.
11640         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
11641         v instead of x in vex or maybe_vex alternatives, use
11642         maybe_evex instead of vex in prefix.
11644         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
11645         v constraint instead of x.
11647 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
11649         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
11650         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
11651         equality first.
11653 2016-05-06  Richard Biener  <rguenther@suse.de>
11655         PR tree-optimization/70948
11656         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11657         Properly clobber all fields of va_list for __builtin_va_start.
11659 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
11661         PR debug/70935
11662         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
11663         loop latch destination.
11665 2016-05-06  Martin Liska  <mliska@suse.cz>
11667         * tree-ssa-uninit.c: Apply manual changes
11668         to the GNU coding style.
11669         (prune_uninit_phi_opnds): Rename from
11670         prune_uninit_phi_opnds_in_unrealizable_paths.
11672 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11674         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
11675         mspace): Remove deprecated options.
11676         * doc/invoke.texi (SH options): Remove -mspace.
11678 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11680         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
11682 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11684         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
11685         corresponding combine split pattern.
11687 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11689         PR target/58219
11690         * config/sh/predicates.md (long_displacement_mem_operand): New.
11691         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
11692         Add movi20, movi20s alternatives.  Adjust length attribute for
11693         alternatives.
11694         (movsi_ie): Allow for any FPU.  Adjust length attribute for
11695         alternatives.
11696         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
11697         attribute for alternatives.
11698         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
11699         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
11700         length attribute for alternatives.
11702 2016-05-06  Richard Biener  <rguenther@suse.de>
11704         PR tree-optimization/70960
11705         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
11707 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11709         PR target/52933
11710         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
11711         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
11713 2016-05-06  Marek Polacek  <polacek@redhat.com>
11715         PR sanitizer/70875
11716         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
11718 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11720         PR target/54089
11721         * config/sh/sh.md (*rotcr): Add another variant.
11723 2016-05-06  Richard Biener  <rguenther@suse.de>
11725         PR middle-end/70931
11726         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
11728 2016-05-06  Richard Biener  <rguenther@suse.de>
11730         PR middle-end/70941
11731         * fold-const.c (split_tree): Always convert to the original type
11732         before negating.
11734 2016-05-06  Richard Biener  <rguenther@suse.de>
11736         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
11737         (fwprop_addr): Likewise.
11739 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
11741         PR target/70873
11742         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
11743         New prototype.
11744         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
11745         * config/i386/i386.md (push mem splitter): Use find_constant_src in
11746         the splitter condition.
11747         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
11748         the splitter condition.
11749         (FP float_extend load splitter): Ditto.
11751 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
11753         * config/i386/i386.md (peehole2 patterns): Change true_regnum
11754         to REGNO in all peephole2 patterns.
11755         (post-reload splitters): Change true_regnum to REGNO in
11756         post-reload splitters.
11757         (zero_extend splitters): Use general_reg_operand and
11758         nonimmediate_gr_operand predicates.
11760 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
11762         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
11763         v constraint instead of x.
11765 2016-05-05  Alan Modra  <amodra@gmail.com>
11767         PR target/68662
11768         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
11769         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
11770         TARGET_NO_FP_IN_TOC for -mrelocatable.
11771         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
11772         TARGET_RELOCATABLE test.
11773         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11774         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11775         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11776         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11777         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11778         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11779         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11780         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11781         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
11782         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11783         Likewise.
11784         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
11785         (rs6000_stack_info): Likewise.
11786         (rs6000_elf_asm_out_constructor): Likewise.
11787         (rs6000_elf_asm_out_destructor): Likewise.
11788         (rs6000_elf_declare_function_name): Likewise.
11789         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
11790         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
11791         Don't define.
11793 2016-05-05  Alan Modra  <amodra@gmail.com>
11795         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
11797 2016-05-05  Alan Modra  <amodra@gmail.com>
11799         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
11800         out-of-line gpr restore for one or two regs if that would add
11801         a save of lr.
11803 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
11805         PR target/70873
11806         * config/i386/i386.md
11807         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
11808         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
11809         as operand 0 predicate.
11810         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
11811         Ditto.
11812         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
11813         Ditto.  Emit the pattern using RTX.
11815         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
11816         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
11817         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
11818         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
11819         Ditto.
11820         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
11821         sse_reg_operand as operand 0 predicate.
11823         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
11824         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
11825         instead of gen_rtx_REG.
11826         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
11827         Ditto.
11829 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11831         * function.c (emit_use_return_register_into_block): Delete.
11832         (gen_return_pattern): Delete.
11833         (emit_return_into_block): Delete.
11834         (active_insn_between): Delete.
11835         (convert_jumps_to_returns): Delete.
11836         (emit_return_for_exit): Delete.
11837         (thread_prologue_and_epilogue_insns): Delete all code dealing with
11838         simple_return for shrink-wrapped blocks.
11839         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
11840         end of blocks that need one.
11841         (get_unconverted_simple_return): Delete.
11842         (convert_to_simple_return): Delete.
11843         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
11844         (convert_to_simple_return): Ditto.
11846 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11848         * cfgcleanup.c (bb_is_just_return): New function.
11849         (try_optimize_cfg): Simplify jumps to return, branches to return,
11850         and branches around return.
11852 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11854         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
11855         branch to a return.
11857 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
11859         PR c++/70906
11860         PR c++/70933
11861         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
11862         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
11863         assert flags & OEP_HASH_CHECK, instead of asserting it
11864         never happens.  Handle TARGET_EXPR.
11865         * fold-const.c (operand_equal_p): For hash verification,
11866         or in OEP_HASH_CHECK into flags.
11868 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11870         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
11871         comment.
11872         (compute_samebase_partition_bases): Fix typo.
11874 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
11876         * config/i386/sse.md (vec_interleave_highv8sf,
11877         vec_interleave_lowv8sf, vec_interleave_highv4df,
11878         vec_interleave_lowv4df): Remove constraints from expanders.
11880         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
11882 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
11884         * tree-inline.c (expand_call_inline): Fix path dealing with
11885         making lhs of call statement undefined.
11887 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
11889         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11890         Check availability on NODE, too.
11891         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
11892         (cgraph_node::call_for_symbol_and_aliases): Likewise.
11893         (varpool_node::call_for_symbol_and_aliase): Likewise.
11894         * ipa-pure-const.c (add_new_function): Analyze all bodies.
11895         (propagate_pure_const): Propagate across interposable functions, too.
11896         (skip_function_for_local_pure_const): Do not skip interposable bodies
11897         with aliases.
11898         (pass_local_pure_const::execute): Update.
11900 2016-05-04  Marek Polacek  <polacek@redhat.com>
11902         * doc/invoke.texi: Document -Wdangling-else.
11904 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11906         * config.gcc: Error out when conflicting multilib is detected.  Do not
11907         loop over multilibs since no combination is legal.
11909 2016-05-04  Alan Modra  <amodra@gmail.com>
11911         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
11912         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
11913         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11914         Align .toc.
11916 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
11918         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
11919         Clean up p5600 comments.
11921 2016-05-04  Richard Biener  <rguenther@suse.de>
11923         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
11924         constructor simplifications.
11925         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
11927 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
11929         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
11930         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
11931         result.set_rtx is null instead of aborting.
11932         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
11933         Always enable.
11934         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
11935         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
11936         *mov<mode>_store_postinc): New patterns.
11938 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
11940         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
11941         as commutative.  Check both conversions are NOP.
11942         ((A & B) OP (C & B)): Remove.
11944 2016-05-04  Alan Modra  <amodra@gmail.com>
11946         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
11948 2016-05-04  Alan Modra  <amodra@gmail.com>
11950         PR target/70866
11951         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
11952         when cr2,3,4 are all fixed regs.
11954 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
11956         PR rtl-optimization/57193
11957         * opts.c (default_options_table): Revert OPT_frename_registers change.
11958         * doc/invoke.texi (-frename-registers, -O2): Likewise.
11960 2016-05-03  Martin Sebor  <msebor@redhat.com>
11962         PR c++/66561
11963         * builtins.c (fold_builtin_FILE): New function.
11964         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
11965         (fold_builtin_0): Call them.
11966         * gimplify.c (gimplify_call_expr): Remove the handling of
11967         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
11969         PR c++/66561
11970         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
11971         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
11972         constants.
11974         PR c++/66639
11975         * doc/extend.texi (Function Names as Strings): Update __func__,
11976         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
11977         constants.
11979 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
11980             Richard Biener  <rguenther@suse.de>
11982         PR tree-optimization/70916
11983         * tree-if-conv.c: Include cfganal.h.
11984         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
11985         and remove_fake_exit_edges around the optimization pass.
11987 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
11989         * cgraph.c (symbol_table::create_edge): Set inline_failed.
11990         (cgraph_edge::make_direct): Likewise.
11991         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
11992         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
11993         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
11994         (CIF_THUNK): New code.
11995         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
11996         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
11997         (compute_inline_parameters): Set inline_failed for thunks.
11998         (inline_analyze_function): Cleanup.
11999         * ipa-inline.c (can_inline_edge_p): Do not deal with
12000         call_stmt_cannot_inline_p.
12001         (can_early_inline_edge_p): Likewise.
12002         (early_inliner): Initialize inline_failed.
12003         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
12005 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
12007         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
12008         from nonimm_ssenomem_operand.
12009         (nonimm_ssenomem_operand): New predicate.
12010         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
12011         as operand 0 predicate.
12012         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
12013         Disable unsupported alternatives using "enabled" attribute.
12014         Use register_ssemem_operand as operand 0 predicate.
12015         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
12017 2016-05-03  Marek Polacek  <polacek@redhat.com>
12019         PR c/70859
12020         * input.c (expansion_point_location): New function.
12021         * input.h (expansion_point_location): Declare.
12023 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
12025         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
12026         occurence with frame_offset_ ones.
12028 2016-05-03  Alan Modra  <amodra@gmail.com>
12030         PR rtl-optimization/70890
12031         * ira.c (combine_and_move_insns): When moving def_insn, remove
12032         equivs on use_insn.
12034 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12036         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
12037         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
12038         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
12039         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
12041 2016-05-03  Alan Modra  <amodra@gmail.com>
12043         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
12044         for SAVE_MULTIPLE/STORE_MULTIPLE.
12046 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12048         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
12049         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
12051 2016-05-03  Richard Biener  <rguenther@suse.de>
12053         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
12054         default true.
12055         (gimplify_arg): Likewise.
12056         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
12057         re-writing the result to a decl if required.
12058         (internal_get_tmp_var): Add allow_ssa parameter
12059         and override into_ssa with it.
12060         (get_formal_tmp_var): Adjust.
12061         (get_initialized_tmp_var): Add allow_ssa parameter.
12062         (gimplify_arg): Add allow_ssa parameter and avoid generating
12063         SSA names for the result false.
12064         (gimplify_call_expr): If the call may return twice do not
12065         gimplify parameters into SSA.
12066         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
12067         (gimplify_modify_expr): Adjust assert.  For noreturn calls
12068         with a SSA name LHS adjust its def.
12069         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
12070         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
12071         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
12072         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
12073         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
12074         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
12075         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
12076         (optimize_target_teams): Do not allow SSA names for clause operands.
12077         (gimplify_expr): Likewise for where we mark the result addressable.
12078         * passes.def (pass_init_datastructures): Remove.
12079         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
12080         (rewrite_stmt): Likewise.
12081         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
12082         (replace_locals_op): Replace SSA names.
12083         (copy_gimple_seq_and_replace_locals): Init src_cfun.
12084         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
12085         * cgraph.c (release_function_body): Free CFG annotations only
12086         when we have a CFG.  Simplify.
12087         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
12088         force_gimple_operand instead of get_initialized_tmp_var.
12089         * tree-pass.h (make_pass_init_datastructures): Remove.
12090         * tree-ssa.c (execute_init_datastructures): Remove.
12091         (pass_data_init_datastructures): Likewise.
12092         (class pass_init_datastructures): Likewise.
12093         (make_pass_init_datastructures): Likewise.
12094         * omp-low.c (create_omp_child_function): Init SSA data structures.
12095         (grid_expand_target_grid_body): Likewise.
12096         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
12097         name before adding it to names_to_release.
12098         (remove_bb): Always release SSA defs.
12099         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
12100         before dereferencing it.
12101         * cgraphunit.c (init_lowered_empty_function): Always
12102         int SSA data structures.
12103         * tree-ssanames.c (release_defs): Remove assert that we are in
12104         SSA form.
12105         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
12107 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12108             Uros Bizjak  <ubizjak@gmail.com>
12110         PR rtl-optimization/70467
12111         * config/i386/predicates.md (x86_64_hilo_int_operand,
12112         x86_64_hilo_general_operand): New predicates.
12113         * config/i386/constraints.md (Wd): New constraint.
12114         * config/i386/i386.md (mode attr di): Use Wd instead of e.
12115         (general_hilo_operand): New mode attr.
12116         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
12117         instead of <general_operand>.
12118         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
12119         x86_64_hilo_general_operand instead of <general_operand>.
12121 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12123         PR tree-optimization/70916
12124         * tree-if-conv.c (constant_or_ssa_name): Removed.
12125         (fold_build_cond_expr): Use is_gimple_val instead of
12126         constant_or_ssa_name.
12128         PR tree-optimization/70916
12129         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
12130         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
12132         PR target/49244
12133         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
12134         (optimize_atomic_bit_test_and): New function.
12135         (pass_fold_builtins::execute): Use it.
12136         * optabs.def (atomic_bit_test_and_set_optab,
12137         atomic_bit_test_and_complement_optab,
12138         atomic_bit_test_and_reset_optab): New optabs.
12139         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
12140         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
12141         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
12142         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
12143         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
12144         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
12145         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
12146         * doc/md.texi (atomic_bit_test_and_set@var{mode},
12147         atomic_bit_test_and_complement@var{mode},
12148         atomic_bit_test_and_reset@var{mode}): Document.
12149         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
12150         atomic_bit_test_and_complement<mode>,
12151         atomic_bit_test_and_reset<mode>): New expanders.
12152         (atomic_bit_test_and_set<mode>_1,
12153         atomic_bit_test_and_complement<mode>_1,
12154         atomic_bit_test_and_reset<mode>_1): New insns.
12156 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
12158         PR rtl-optimization/70687
12159         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
12160         instead of unsigned HOST_WIDE_INT.
12162 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
12164         PR rtl-optimization/44281
12165         * hard-reg-set.h (struct target_hard_regs): New field
12166         x_fixed_nonglobal_reg_set.
12167         (fixed_nonglobal_reg_set): New macro.
12168         * reginfo.c (init_reg_sets_1): Initialize it.
12169         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
12170         of fixed_reg_set.
12171         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
12173 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12175         PR tree-optimization/56541
12176         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
12177         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
12178         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
12179         (any_complicated_phi): new static variable.
12180         (aggressive_if_conv): delete.
12181         (if_convertible_phi_p): support phis with more than two arguments.
12182         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
12183         critical pred edges.
12184         (ifcvt_split_critical_edges): support phis with more than two
12185         arguments by checking new parameter.  only split critical edges
12186         if needed.
12187         (tree_if_conversion): handle simd pragma marked loop using new
12188         local variable aggressive_if_conv.  check any_complicated_phi.
12190 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12192         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
12193         before using it.
12195 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12197         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
12198         cbase.
12200 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
12202         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
12203         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
12204         define_insn_and_split.
12205         (mulsi3_i): New define_insn_and_split.
12206         (mulsi3_call): Convert to define_insn.
12207         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
12208         Remove constraints.
12210 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12212         * machmode.h (mode_complex): Add support to give the complex mode
12213         for a given mode.
12214         (GET_MODE_COMPLEX_MODE): Likewise.
12215         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
12216         stored by build_complex_type and gfc_build_complex_type instead of
12217         trying to figure out the appropriate mode based on the size. Raise
12218         an assertion error, if the type was not set.
12219         * genmodes.c (struct mode_data): Add field for the complex type of
12220         the given type.
12221         (blank_mode): Likewise.
12222         (make_complex_modes): Remember the complex mode created in the
12223         base type.
12224         (emit_mode_complex): Write out the mode_complex array to map a
12225         type mode to the complex version.
12226         (emit_insn_modes_c): Likewise.
12227         * tree.c (build_complex_type): Set the complex type to use before
12228         calling layout_type.
12229         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
12230         support for __float128 complex datatypes.
12231         (rs6000_hard_regno_mode_ok): Likewise.
12232         (rs6000_setup_reg_addr_masks): Likewise.
12233         (rs6000_complex_function_value): Likewise.
12234         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
12235         __float128 and __ibm128 complex.
12236         (FLOAT128_IBM_P): Likewise.
12237         (ALTIVEC_ARG_MAX_RETURN): Likewise.
12238         * doc/extend.texi (Additional Floating Types): Document that
12239         -mfloat128 must be used to enable __float128.  Document complex
12240         __float128 and __ibm128 support.
12242 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
12244         PR target/49244
12245         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
12246         char/short arguments promoted to int because of promote_prototypes.
12248 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
12250         * config/i386/predicates.md (register_ssemem_operand): New predicate.
12251         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
12252         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
12253         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
12254         alternatives using "enabled" attribute.  Use register_ssemem_operand
12255         as operand 1 predicate.
12256         (*cmpi<unord>xf_i387): Split XFmode pattern from
12257         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
12258         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
12259         *absneg<mode>2_i387.  Disable unsupported alternatives using
12260         "enabled" attribute.
12261         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
12263 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12265         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
12266         marker.
12267         (oacc_loop_process): Check mask for loop termination.
12269 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
12271         * cif-code.def (CIF_THUNK): Add.
12272         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
12273         accidental change.
12275 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
12277         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
12278         (dump_inline_summary): Dump it.
12279         (fp_expression_p): New predicate.
12280         (estimate_function_body_sizes): Use it.
12281         (inline_merge_summary): Merge fp_expressions.
12282         (inline_read_section): Read fp_expressions.
12283         (inline_write_summary): Write fp_expressions.
12284         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
12285         codegen boundary if either caller or callee is !fp_expressions.
12286         * ipa-inline.h (inline_summary): Add fp_expressions.
12287         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
12288         to fp_expressions be sure the fp generation flags are updated.
12290 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
12292         PR rtl-optimization/70467
12293         * cse.c (cse_insn): Handle no-op MEM moves after folding.
12295         PR rtl-optimization/70467
12296         * ipa-pure-const.c (check_call): Handle internal calls even in
12297         ipa mode like in local mode.
12299 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12301         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
12303 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
12305         * match.pd (X u< X, X u> X): New transformations.
12307 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
12309         * flag-types.h (enum warn_strict_overflow_code): Move ...
12310         * coretypes.h: ... here.
12311         * fold-const.h (fold_overflow_warning): Declare.
12312         * fold-const.c (fold_overflow_warning): Make non-static.
12313         (fold_comparison): Move the transformation of X +- C1 CMP C2
12314         into X CMP C2 -+ C1 ...
12315         * match.pd: ... here.
12316         * gimple-fold.c (fold_stmt_1): Protect with
12317         fold_defer_overflow_warnings.
12319 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12321         * omp-low.c (struct oacc_loop): Add 'inner' field.
12322         (new_oacc_loop_raw): Initialize it to zero.
12323         (oacc_loop_fixed_partitions): Initialize it.
12324         (oacc_loop_auto_partitions): Partition outermost loop to outermost
12325         available partitioning.
12327 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12329         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
12330         register_operand.
12331         (umulsidi3): Likewise.
12332         (indirect_jump): Fix jump instruction assembly patterns.
12334 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
12336         PR target/70860
12337         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
12338         (nvptx_function_value): Assert non-NULL cfun.
12340 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
12342         PR rtl-optimization/70886
12343         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
12345         * cselib.h (rtx_equal_for_cselib_1): Declare.
12346         (rtx_equal_for_cselib_p: New inline function.
12347         * cselib.c (rtx_equal_for_cselib_p): Delete.
12348         (rtx_equal_for_cselib_1): Make public.
12350 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
12352         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
12353         (register_mixssei387nonimm_operand): Remove predicate.
12354         * config/i386/i386.md (*fop_<mode>_comm): Merge from
12355         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
12356         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
12357         for TARGET_MIX_SSE_I387 alternatives.
12358         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
12359         Disable unsupported alternatives using "enabled" attribute.  Use
12360         nonimm_ssenomem_operand as operand 1 predicate.  Also check
12361         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
12363 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12365         * tree.c (cst_and_fits_in_hwi): Simplify.
12367 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12369         * tree.h (wi::to_wide): New function.
12370         * expr.c (expand_expr_real_1): Use wi::to_wide.
12371         * fold-const.c (int_const_binop_1): Likewise.
12372         (extract_muldiv_1): Likewise.
12374 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12376         * wide-int.h: Update offset_int and widest_int documentation.
12377         (WI_SIGNED_SHIFT_RESULT): New macro.
12378         (wi::binary_shift): Define signed_shift_result_type for
12379         shifts on offset_int- and widest_int-like types.
12380         (generic_wide_int): Support <<= and >>= if << and >> are supported.
12381         * tree.h (int_bit_position): Use shift operators instead of wi::
12382          shifts.
12383         * alias.c (adjust_offset_for_component_ref): Likewise.
12384         * expr.c (get_inner_reference): Likewise.
12385         * fold-const.c (fold_comparison): Likewise.
12386         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
12387         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
12388         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12389         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12390         (stmt_kills_ref_p): Likewise.
12391         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
12392         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
12393         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12394         (ao_ref_init_from_vn_reference): Likewise.
12396 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12398         * wide-int.h: Update offset_int and widest_int documentation.
12399         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
12400         (wi::binary_traits): Allow ordered comparisons between offset_int and
12401         offset_int, between widest_int and widest_int, and between either
12402         of these types and basic C types.
12403         (operator <, <=, >, >=): Define for the same combinations.
12404         * tree.h (tree_int_cst_lt): Use comparison operators instead
12405         of wi:: comparisons.
12406         (tree_int_cst_le): Likewise.
12407         * gimple-fold.c (fold_array_ctor_reference): Likewise.
12408         (fold_nonarray_ctor_reference): Likewise.
12409         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
12410         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
12411         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
12412         * tree-sra.c (completely_scalarize): Likewise.
12413         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
12414         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
12415         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
12416         (check_for_binary_op_overflow): Likewise.
12417         (search_for_addr_array): Likewise.
12418         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
12420 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12422         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
12423         (arc_save_restore): Likewise.
12424         (arc_dwarf_register_span): Likewise.
12425         (arc_output_pic_addr_const): Initialize suffix variable.
12427 2016-05-02  Martin Liska  <mliska@suse.cz>
12429         * symbol-summary.h (function_summary::function_summary):
12430         Remove checking assert for all cgraph nodes.
12431         (function_summary::get): Check summary_uid.
12432         (symtab_insertion): Check summary_uid.
12434 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12436         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
12437         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
12438         bmaskn instruction.
12439         (arc_dwarf_register_span): Remove enum keyword.
12440         (compact_memory_operand_p): New function.
12441         * config/arc/arc.h (reg_class): Add code density register classes.
12442         (REG_CLASS_NAMES): Likewise.
12443         (REG_CLASS_CONTENTS): Likewise.
12444         * config/arc/arc.md (*movqi_insn): Add code density instructions.
12445         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
12446         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
12447         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
12448         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
12449         constraints.
12450         (h, Rcd, Rsd, Rzd): New register constraints.
12451         (T): Use compact_memory_operand_p function.
12452         * config/arc/predicates.md (compact_load_memory_operand): Remove.
12454 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
12456         * config/sh/sh.md (*negnegt, *movtt): Remove.
12458 2016-05-02  Marek Polacek  <polacek@redhat.com>
12459             Tom de Vries  <tom@codesourcery.com>
12461         PR tree-optimization/70700
12462         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
12463         bigger than FIRST_REF_NODE.
12465 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
12467         PR target/52898
12468         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
12469         TARGET_CMPEQDI_T.
12470         (prepare_cbranch_operands): Don't use scratch register.  Assume that
12471         function is used when pseudos can be created.
12472         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
12473         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
12474         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
12475         define_expand.  Allow it only when pseudos can be created.
12476         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
12478 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
12480         * config/i386/constraints.md (BC): Only allow -1 operands.
12481         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
12482         Add "enabled" attribute.  Update XI mode attribute calculation.
12483         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
12484         (*movoi_internal_avx): Update XI mode attribute calculation.
12485         (*movti_internal): Ditto.
12487 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12489         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
12490         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
12492 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
12494         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
12495         statement on instruction code.  Remove trailing spaces.
12496         (altivec_expand_stv_builtin): Likewise.
12498 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12500         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
12501         (TARGET_FPU_DOUBLE): Simplify.
12502         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
12503         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
12504         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
12505         with 'TARGET_FPU_DOUBLE'.
12506         * config/sh/sh.md: Likewise.
12508 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
12510         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
12511         SH_DIV_STR_FOR_SIZE): Remove.
12512         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
12513         SH_DIV_STR_FOR_SIZE): Remove.
12515 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12517         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
12518         logical_reg_operand): Delete.
12519         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
12520         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
12521         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
12522         match_operand and match_test.
12523         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
12524         variables on their first use.  Return bool values.
12525         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
12526         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
12527         arith_reg_operand for input operand.  Remove empty constraints.
12528         (xorsi3): Delete.
12529         (*xorsi3_compact): Rename to xorsi3.
12530         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
12531         (*zero_extend<mode>si2_disp_mem): Update comment.
12532         (mov_nop): Delete.
12534 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
12536         * config/sh/t-sh: Remove SH5 support.
12537         * config.gcc: Likewise.
12538         * configure: Likewise.
12540 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12542         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
12544 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
12546         * config/sh/sh.c (register_sh_passes, sh_option_override,
12547         sh_print_operand, prepare_move_operands,
12548         sh_can_follow_jump): Remove TARGET_SH1 checks.
12549         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
12550         PROMOTE_MODE): Likewise.
12551         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
12552         movdi): Likewise.
12554 2016-04-30  Alan Modra  <amodra@gmail.com>
12556         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
12557         restoring when fixed_reg_p, but allow out-of-line or stmw save.
12558         Check for user regs later to avoid unnecessary looping over regs.
12559         Merge user reg check with non-saved reg check.  Don't force
12560         inline VR restore when static chain used.
12561         (rs6000_frame_related): Omit eh_frame info for user regs when
12562         saving.
12563         (fixed_regs_p): Delete.
12565 2016-04-30  Alan Modra  <amodra@gmail.com>
12567         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
12568         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
12569         Update all uses.
12571 2016-04-30  Alan Modra  <amodra@gmail.com>
12573         PR target/69645
12574         * config/rs6000/rs6000.c (fixed_reg_p): New function.
12575         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
12576         Update all uses.
12578 2016-04-30  Alan Modra  <amodra@gmail.com>
12580         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12581         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
12582         flag_pic test for Darwin.
12584 2016-04-30  Alan Modra  <amodra@gmail.com>
12586         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
12587         throw_calls_crossed.
12588         (REG_FREQ_CALLS_CROSSED): Delete.
12589         (REG_N_THROWING_CALLS_CROSSED): Delete.
12590         * regstat.c (regstat_bb_compute_ri): Don't calculate
12591         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
12592         (dump_reg_info): Don't print call cross frequency.
12593         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
12594         and REG_N_THROWING_CALLS_CROSSED.
12596 2016-04-30  Alan Modra  <amodra@gmail.com>
12598         * regs.h (struct reg_info_t): Delete live_length.
12599         (REG_LIVE_LENGTH): Delete macro.
12600         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
12601         local_live, local_processed and local_live_last_luid params.
12602         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
12603         Formatting fixes.
12604         (regstat_compute_ri): Adjust for above.  Don't set
12605         REG_LIVE_LENGTH.
12606         (dump_reg_info): Don't print live length.
12607         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
12608         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
12609         Localize loop_depth var.
12611 2016-04-30  Alan Modra  <amodra@gmail.com>
12613         * ira.c (enum valid_equiv): New.
12614         (validate_equiv_mem): Return enum.
12615         (update_equiv_mem): Create replacement in more cases.
12616         (add_store_equivs): Update validate_equiv_mem call.
12618 2016-04-30  Alan Modra  <amodra@gmail.com>
12620         * ira.c (combine_and_move_insns): Rather than scanning insns,
12621         use DF infrastucture to find use and def insns.
12623 2016-04-30  Alan Modra  <amodra@gmail.com>
12625         ira.c (combine_and_move_insns): Move invariant conditions..
12626         (ira.c): ..to here.  Call combine_and_move_insns before
12627         add_store_equivs.  Call grow_reg_equivs later.  Allocate
12628         req_equiv later using max_reg_num() rather than global max_regno.
12629         (contains_replace_regs): Delete.
12630         (add_store_equivs): Remove contains_replace_regs test.
12632 2016-04-30  Alan Modra  <amodra@gmail.com>
12634         * ira.c (struct equiv_mem_data): New.
12635         (equiv_mem, equiv_mem_modified): Delete static vars.
12636         (validate_equiv_mem_from_store): Use "data" param to communicate..
12637         (validate_equiv_mem): ..from here.
12639 2016-04-30  Alan Modra  <amodra@gmail.com>
12641         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
12642         split out from..
12643         (update_reg_equivs): ..here.  Move allocation and freeing of
12644         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
12645         end_alias_analysis to..
12646         (ira): ..here.
12648 2016-04-30  Alan Modra  <amodra@gmail.com>
12650         * ira.c (pdx_subregs): Delete.
12651         (struct equivalence): Add pdx_subregs field.
12652         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
12653         pdx_subregs access.
12654         (update_equiv_regs): Don't create or free pdx_subregs.  Update
12655         pdx_subregs access.
12657 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12659         * config/rs6000/altivec.h: Change definitions of vec_xl and
12660         vec_xst.
12661         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
12662         (LD_ELEMREV_V2DI): New.
12663         (LD_ELEMREV_V4SF): New.
12664         (LD_ELEMREV_V4SI): New.
12665         (LD_ELEMREV_V8HI): New.
12666         (LD_ELEMREV_V16QI): New.
12667         (ST_ELEMREV_V2DF): New.
12668         (ST_ELEMREV_V2DI): New.
12669         (ST_ELEMREV_V4SF): New.
12670         (ST_ELEMREV_V4SI): New.
12671         (ST_ELEMREV_V8HI): New.
12672         (ST_ELEMREV_V16QI): New.
12673         (XL): New.
12674         (XST): New.
12675         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12676         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
12677         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
12678         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
12679         (altivec_expand_builtin): Add handling for
12680         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
12681         (rs6000_invalid_builtin): Add error-checking for
12682         RS6000_BTM_P9_VECTOR.
12683         (altivec_init_builtins): Define builtins used to implement vec_xl
12684         and vec_xst.
12685         (rs6000_builtin_mask_names): Define power9-vector.
12686         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
12687         (RS6000_BTM_P9_VECTOR): Define.
12688         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
12689         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
12690         (vsx_ld_elemrev_v2df): Likewise.
12691         (vsx_ld_elemrev_v4sf): Likewise.
12692         (vsx_ld_elemrev_v4si): Likewise.
12693         (vsx_ld_elemrev_v8hi): Likewise.
12694         (vsx_ld_elemrev_v16qi): Likewise.
12695         (vsx_st_elemrev_v2df): Likewise.
12696         (vsx_st_elemrev_v2di): Likewise.
12697         (vsx_st_elemrev_v4sf): Likewise.
12698         (vsx_st_elemrev_v4si): Likewise.
12699         (vsx_st_elemrev_v8hi): Likewise.
12700         (vsx_st_elemrev_v16qi): Likewise.
12701         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
12702         grammar.
12704 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
12706         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
12707         out into ...
12708         (simplify_control_stmt_condition_1): ... here.  Recurse into
12709         BIT_AND_EXPRs and BIT_IOR_EXPRs.
12711 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
12713         PR target/69810
12714         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
12715         (zero_extendqi<mode>2_dot): Revert earlier conversion from
12716         define_insn_and_split to define_insn.
12717         (zero_extendqi<mode>2_dot2): Same.
12718         (extendqi<mode>2_dot): Same.
12719         (extendqi<mode>2_dot2): Same.
12721 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12723         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
12724         (probe_stack): New expander.
12725         (probe_stack_<mode>): New insn pattern.
12727 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12729         * config/i386/i386.md
12730         (operations with memory inputs setting flags peephole2):
12731         Remove uneeded REG_P checks.  Cleanup pattern generation.
12733 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12735         * tree-vect-loop.c (vect_transform_loop): Fix
12736         nb_iterations_upper_bound computation for vectorized loop.
12738 2016-04-29  Marek Polacek  <polacek@redhat.com>
12739             Jakub Jelinek  <jakub@redhat.com>
12741         PR sanitizer/70342
12742         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
12743         TARGET_EXPR_SLOT as a base.
12745 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
12747         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
12748         with 'rCm2' constraints to limit possible immediate size.
12749         (*load_zeroextendqisi_update): Likewise.
12750         (*load_signextendqisi_update): Likewise.
12751         (*loadhi_update): Likewise.
12752         (*load_zeroextendhisi_update): Likewise.
12753         (*load_signextendhisi_update): Likewise.
12754         (*loadsi_update): Likewise.
12755         (*loadsf_update): Likewise.
12757 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12759         * config/i386/predicates.md (constm1_operand): Fix comparison.
12761 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
12763         * testsuite/gcc.target/arc/ieee_eq.c: New test.
12765 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
12767         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
12768         remaining SH5 related settings.
12769         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
12770         shmedia_prepare_call_address): Delete.
12771         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
12772         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
12773         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
12774         UNSUPPORTED_SH2A): Remove m5 checks.
12775         (sh_divide_strategy_e): Remove SH5 division strategies.
12776         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
12777         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
12779 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12781         * config/s390/s390.c (s390_rtx_costs): Update documentation.
12783 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12785         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
12786         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
12787         Change lder to ldr.
12788         * config/s390/vector.md ("mov<mode>"): Likewise.
12790 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
12792         * config/s390/constraints.md ("U", "W"): Invoke
12793         s390_mem_constraint with "ZR" and "ZT".
12794         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
12795         addresses when using LRA.  Accept also short displacements for S
12796         and T constraints.  Do not check for long displacement target for
12797         S and T constraints.
12798         (s390_mem_constraint): Remove handling of U and W constraints.
12799         * config/s390/s390.md (various patterns): Remove the short
12800         displacement constraints (Q and R) if a long displacement
12801         constraint is present.  Add longdisp as required CPU capability.
12802         * config/s390/vector.md: Likewise.
12803         * config/s390/vx-builtins.md: Likewise.
12805 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12807         PR target/60040
12808         * reload1.c (reload): Call finish_spills before
12809         restarting reload loop. Skip select_reload_regs
12810         if update_eliminables_and_spill returns true.
12812 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
12814         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
12815         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
12816         (umulhisi3_imm): Update predicates and constraint letters.
12817         (umulhisi3_reg): Declare instruction as commutative.
12818         * config/arc/constraints.md (J12, J16): New constraints.
12819         * config/arc/predicates.md (short_unsigned_const_operand): New
12820         predicate.
12821         (arc_short_operand): Likewise.
12822         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
12824 2016-04-29  Richard Biener  <rguenther@suse.de>
12826         PR tree-optimization/13962
12827         PR tree-optimization/65686
12828         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
12829         * tree-ssa-alias.c (ptrs_compare_unequal): New function
12830         using PTA to compare pointers.
12831         * match.pd: Add pattern for pointer equality compare simplification
12832         using ptrs_compare_unequal.
12834 2016-04-29  Richard Biener  <rguenther@suse.de>
12836         * stor-layout.c (layout_type): Do not build a pointer-to-element
12837         type for arrays.
12839 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12841         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
12842         Use SWI mode iterator.  Use general_reg_operand predicate.
12843         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
12844         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
12845         predicates.
12847 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
12849         PR middle-end/70843
12850         * fold-const.c (operand_equal_p): Don't verify hash value equality
12851         if arg0 == arg1.
12852         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
12853         and OMP_CLAUSE.
12855 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
12857         PR target/70858
12858         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
12859         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
12860         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
12861         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
12862         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
12864 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12866         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
12867         to info.  Don't initialize separate fields to 0.  Clean up
12868         formatting a bit.
12870 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
12872         * config/i386/i386.md (peephole2s for operations with memory inputs):
12873         Use SWI mode iterator.
12874         (peephole2s for operations with memory outputs): Ditto.
12875         Do not check for stack checking probe.
12877         (probe_stack): Remove expander.
12879 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12880             Andrew Burgess  <andrew.burgess@embecosm.com>
12882         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
12883         operands as 32-bits.
12885 2016-04-28  Jason Merrill  <jason@redhat.com>
12887         * gdbinit.in: Skip line-map.h.
12889 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12890             Andrew Burgess  <andrew.burgess@embecosm.com>
12892         * config/arc/arc.c (arc_conditional_register_usage): Take
12893         TARGET_RRQ_CLASS into account.
12894         (arc_print_operand): Support printing 'p' and 's' operands.
12895         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
12896         as 0.
12897         (TARGET_RRQ_CLASS): Define.
12898         (IS_POWEROF2_OR_0_P): Define.
12899         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
12900         alternatives.
12901         (*tst_movb): New define_insn.
12902         (*tst): Avoid recognition if it could prevent '*tst_movb'
12903         combination; replace c/CnL with c/Chs alternative.
12904         (*tst_bitfield_tst): New define_insn.
12905         (*tst_bitfield_asr): New define_insn.
12906         (*tst_bitfield): New define_insn.
12907         (andsi3_i): Add Rrq variant.
12908         (extzv): New define_expand.
12909         (insv): New define_expand.
12910         (*insv_i): New define_insn.
12911         (*movb): New define_insn.
12912         (*movb_signed): New define_insn.
12913         (*movb_high): New define_insn.
12914         (*movb_high_signed): New define_insn.
12915         (*movb_high_signed + 1): New define_split pattern.
12916         (*mrgb): New define_insn.
12917         (*mrgb + 1): New define_peephole2 pattern.
12918         (*mrgb + 2): New define_peephole2 pattern.
12919         * config/arc/arc.opt (mbitops): New option for nps400, uses
12920         TARGET_NPS_BITOPS_DEFAULT.
12921         * config/arc/constraints.md (q): Make register class conditional.
12922         (Rrq): New register constraint.
12923         (Chs): New constraint.
12924         (Clo): New constraint.
12925         (Chi): New constraint.
12926         (Cbf): New constraint.
12927         (Cbn): New constraint.
12928         (C18): New constraint.
12929         (Cbi): New constraint.
12931 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12933         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
12934         dst->popcount.
12935         (bitmap_intersection_of_preds): Ditto.
12936         (bitmap_union_of_succs): Ditto.
12937         (bitmap_union_of_preds): Ditto.
12938         * sbitmap.c (do_popcount): Delete.
12939         (BITMAP_DEBUGGING): Delete.
12940         (sbitmap_verify_popcount): Delete.
12941         (sbitmap_alloc): Don't initialize the popcount field.
12942         (sbitmap_alloc_with_popcount): Delete.
12943         (sbitmap_resize): Don't resize the popcount array.
12944         (sbitmap_vector_alloc): Don't initialize the popcount field.
12945         (bitmap_copy): Don't copy the popcount array.
12946         (bitmap_clear): Don't clear the popcount array.
12947         (bitmap_clear): Delete the popcount array handling.
12948         (bitmap_ior_and_compl): Delete the popcount assert.
12949         (bitmap_not): Ditto.
12950         (bitmap_and_compl): Ditto.
12951         (bitmap_and): Delete the popcount array handling.
12952         (bitmap_xor): Ditto.
12953         (bitmap_ior): Ditto.
12954         (bitmap_or_and): Delete the popcount assert.
12955         (bitmap_and_or): Ditto.
12956         (popcount_table): Delete.
12957         (sbitmap_elt_popcount): Delete.
12958         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
12959         (bitmap_set_bit): Delete the popcount assert.
12960         (bitmap_clear_bit): Ditto.
12961         (sbitmap_free): Don't free the popcount array.
12962         (sbitmap_alloc_with_popcount): Delete declaration.
12963         (sbitmap_popcount): Ditto.
12965 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12966             Andrew Burgess  <andrew.burgess@embecosm.com>
12968         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
12969         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
12970         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
12971         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
12972         * config/arc/arc.opt (mcmem): New option.
12973         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
12974         supply length for r/m alternative.
12975         (*extendqisi2_ac): Likewise.
12976         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
12977         r/Uex alternative.
12978         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
12979         (movhi_insn): Likewise.
12980         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
12981         (*zero_extendqihi2_i): Add r/Ucm alternative.
12982         (*zero_extendqisi2_ac): Likewise.
12983         (*zero_extendhisi2_i): Likewise.
12984         * config/arc/constraints.md (Uex): New memory constraint.
12985         (Ucm): New define_constraint.
12986         * config/arc/predicates.md (long_immediate_loadstore_operand):
12987         Return 0 for MEM with cmem_address address.
12988         (cmem_address_0): New predicates.
12989         (cmem_address_1): Likewise.
12990         (cmem_address_2): Likewise.
12991         (cmem_address): Likewise.
12993 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12995         * config/rs6000/rs6000.c (machine_function): Rename
12996         insn_chain_scanned_p to spe_insn_chain_scanned_p.
12997         (rs6000_stack_info): Adjust.
12999 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
13000             Andrew Burgess  <andrew.burgess@embecosm.com>
13002         * config/arc/constraints.md (Usd): Convert to define_constraint.
13003         (Us<): Likewise.
13004         (Us>): Likewise.
13006 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
13008         PR target/70821
13009         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
13010         Add new peephole2 where the first insn is *mov<mode>_or instead of
13011         *mov<mode>_internal.
13013 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
13015         * tracer.c (bb_seen): Make static.
13017 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
13019         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
13020         support, setup defaults.
13021         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
13022         * config/arc/arc.c (arc_init): Add NPS400 support.
13023         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
13024         (TARGET_ARC700): NPS400 is also an ARC700.
13025         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
13027 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
13029         PR target/70668
13030         * config/nds32/nds32.md (casesi): Don't access the operands array
13031         out of bounds.
13033 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13035         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
13036         (or $-1,reg peephole2): Ditto.
13037         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
13039 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
13041         * doc/extend.texi (Common Function Attributes) [optimize]:
13042         Discourage use of the optimize attribute.
13044 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
13046         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
13047         special case builtin.
13048         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
13049         ALTIVEC_BUILTIN_VEC_ADDE.
13050         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13051         support for ALTIVEC_BUILTIN_VEC_ADDE.
13052         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13053         for __builtin_vec_adde.
13055 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
13057         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
13058         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
13060 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13062         PR testsuite/70595
13063         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13064         attributes): Document cilkplus_runtime.
13066 2016-04-28  Martin Jambor  <mjambor@suse.cz>
13068         * tree-cfg.c (verify_expr): Verify that local declarations belong to
13069         this function.  Call verify_expr on MEM_REFs and bases of other
13070         handled_components.
13072 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13074         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
13075         for WORD_REGISTER_OPERATIONS to runtime check.
13077 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13079         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
13081 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13083         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
13084         big-endian compilation.
13085         * config/arc/arc.md (addf3): Likewise.
13086         (subdf3): Likewise.
13087         (muldf3): Likewise.
13089 2016-04-28  Richard Biener  <rguenther@suse.de>
13091         PR tree-optimization/70840
13092         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
13093         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
13094         Mark x * pow(x,c) -> pow(x,c+1) commutative.
13095         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
13097 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13099         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
13100         and explain why in a comment.
13102 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13104         * config/arc/arc.md (cpu_facility): Add fpx variant.
13105         (subdf3): Prohibit use reverse sub when assist operations option
13106         is enabled.
13107         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
13108         instructions only when FPX is enabled.
13109         * testsuite/gcc.target/arc/trsub.c: New test.
13111 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13113         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
13114         mult_operator when calculating "type" attribute.
13115         (*fop_<mode>_1_i387): Ditto.
13116         (*fop_xf_1_i387): Ditto.
13117         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
13118         Use std::swap to swap operands.  Use RTL expressions to generate
13119         converted pattern.
13121 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13122             Joern Rennecke  <joern.rennecke@embecosm.com>
13124         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
13125         declaration.
13126         (emit_pic_move): Remove.
13127         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
13128         * config/arc/arc.c (emit_pic_move): Removed.
13129         (TARGET_HAVE_TLS): Define.
13130         (arc_conditional_register_usage): Test for arc_tp_regno.
13131         (arc_print_operand, arc_print_operand_address): Handle TLS
13132         unspecs.
13133         (arc_needs_pcl_p): New function.
13134         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
13135         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
13136         (arc_raw_symbolic_reference_mentioned_p): Likewise.
13137         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
13138         (arc_legitimize_tls_address): Likewise.
13139         (DTPOFF_ZERO_SYM): Define.
13140         (arc_legitimize_pic_address): Make it static, handle TLS cases.
13141         (arc_output_pic_addr_const): Print TLS unspecs.
13142         (prepare_pic_move): New function, replaces emit_pic_move.
13143         (arc_legitimate_constant_p): Handle TLS unspecs.
13144         (arc_legitimate_address_p): Likewise.
13145         (arc_rewrite_small_data_p): Use assert for TLS constants.
13146         (prepare_move_operands): Use prepare_pic_move.
13147         (arc_legitimize_address): Legitimize tls addresses.
13148         (arc_epilogue_uses): Check for arc_tp_regno.
13149         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
13150         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
13151         Define.
13152         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
13153         Likewise.
13154         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
13155         %(arc_tls_extra_start_spec).
13156         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
13157         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
13158         (EH_USES): Define.
13159         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
13160         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
13161         (UNSPEC_TLS_OFF): Add.
13162         (R10_REG): Define.
13163         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
13164         (get_thread_pointersi): New patterns.
13165         * config/arc/arc.opt (mtp-regno): New option.
13166         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
13167         (move_dest_operand): Likewise.
13168         * configure: Regenerate.
13169         * configure.ac: Add arc*-*-* case to test for tls.
13170         * doc/invoke.texi (ARC options): Document mtp-regno.
13172 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13174         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
13175         the new ARC HS SIMD instructions.
13176         (arc_preferred_simd_mode): New function.
13177         (arc_autovectorize_vector_sizes): Likewise.
13178         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
13179         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13180         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
13181         (arc_init_builtins): Add new SIMD builtin types.
13182         (arc_split_move): Handle 64 bit vector moves.
13183         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
13184         (TARGET_PLUS_QMACW): Define.
13185         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
13186         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
13187         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
13188         (VSUBADD4H): New builtins.
13189         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
13190         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
13192 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
13193             Matthias Klose  <doko@debian.org>
13195         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
13197 2016-04-28  Richard Biener  <rguenther@suse.de>
13199         PR middle-end/70777
13200         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
13201         canonicalization.
13203 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
13205         * common/config/sh/sh-common.c: Remove SH5 support.
13206         * config/sh/constraints.md: Likewise.
13207         * config/sh/config/sh/elf.h: Likewise.
13208         * config/sh/linux.h: Likewise.
13209         * config/sh/netbsd-elf.h: Likewise.
13210         * config/sh/predicates.md: Likewise.
13211         * config/sh/sh-c.c: Likewise.
13212         * config/sh/sh-protos.h: Likewise.
13213         * config/sh/sh.c: Likewise.
13214         * config/sh/sh.h: Likewise.
13215         * config/sh/sh.md: Likewise.
13216         * config/sh/sh.opt: Likewise.
13217         * config/sh/sync.md: Likewise.
13218         * config/sh/sh64.h: Delete.
13219         * config/sh/shmedia.h: Likewise.
13220         * config/sh/shmedia.md: Likewise.
13221         * config/sh/sshmedia.h: Likewise.
13222         * config/sh/t-netbsd-sh5-64: Likewise.
13223         * config/sh/t-sh64: Likewise.
13224         * config/sh/ushmedia.h: Likewise.
13226 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13228         * config/i386/i386.md (sign_extend to memory peephole2s): Use
13229         general_reg_operand instead of register_operand predicate.
13231 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13233         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
13235 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
13237         * match.pd (A - B > A, A + B < A): New transformations.
13239 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
13241         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
13242         which defaults to true.  Emit an outer pair of parentheses only if
13243         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
13244         don't emit parentheses for the right-hand operand.
13246 2016-04-27  Jeff Law  <law@redhat.com>
13248         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
13250 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13252         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
13253         (altivec_lvx_<mode>_internal): Document.
13254         (altivec_lvx_<mode>_2op): New define_insn.
13255         (altivec_lvx_<mode>_1op): Likewise.
13256         (altivec_lvx_<mode>_2op_si): Likewise.
13257         (altivec_lvx_<mode>_1op_si): Likewise.
13258         (altivec_stvx_<mode>): Remove.
13259         (altivec_stvx_<mode>_internal): Document.
13260         (altivec_stvx_<mode>_2op): New define_insn.
13261         (altivec_stvx_<mode>_1op): Likewise.
13262         (altivec_stvx_<mode>_2op_si): Likewise.
13263         (altivec_stvx_<mode>_1op_si): Likewise.
13264         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13265         Expand vec_ld and vec_st during parsing.
13266         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
13267         changes.
13268         (altivec_expand_stvx_be): Likewise.
13269         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
13270         address-masking behavior in RTL.
13271         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
13272         address-masking behavior in RTL.
13273         (altivec_expand_builtin): Change builtin code arguments for calls
13274         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
13275         (insn_is_swappable_p): Avoid incorrect swap optimization in the
13276         presence of lvx/stvx patterns.
13277         (alignment_with_canonical_addr): New function.
13278         (alignment_mask): Likewise.
13279         (find_alignment_op): Likewise.
13280         (recombine_lvx_pattern): Likewise.
13281         (recombine_stvx_pattern): Likewise.
13282         (recombine_lvx_stvx_patterns): Likewise.
13283         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
13284         stvx patterns from expand.
13285         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
13286         expansions.
13287         (vector_altivec_store_<mode>): Likewise.
13289 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
13291         * config/aarch64/aarch64.md
13292         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
13293         remove the "fp" attributes.
13294         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
13295         add the "simd" attributes.
13296         (*movdf_aarch64): Likewise.
13297         (*movtf_aarch64): Remove the "fp" attributes.
13298         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
13299         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
13301 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13303         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
13304         rtx to rtx_code_label *.
13305         * rtl.h (maybe_set_first_label_num): Likewise.
13307 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13309         * df-core.c (df_add_problem): Make the problem param be const.
13310         (df_remove_problem): Make local "problem" be const.
13311         * df-problems.c (problem_RD): Make const.
13312         (problem_LR): Likewise.
13313         (problem_LIVE): Likewise.
13314         (problem_MIR): Likewise.
13315         (problem_CHAIN): Likewise.
13316         (problem_WORD_LR): Likewise.
13317         (problem_NOTE): Likewise.
13318         (problem_MD): Likewise.
13319         * df-scan.c (problem_SCAN): Likewise.
13320         * df.h (struct df_problem): Make field "dependent_problem" be
13321         const.
13322         (struct dataflow): Likewise for field "problem".
13323         (df_add_problem): Make param const.
13325 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
13327         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
13328         inter-unit moves to/from vector registers are enabled.  Do not disable
13329         for TARGET_MMX.
13331 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13333         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
13334         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
13335         #define to...
13336         (enum df_problem_id): ...this new enum.
13337         (struct df_problem): Convert field "id" from "int" to
13338         enum df_problem_id.
13340 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13342         * rtl.def: Update comment for "things in the instruction chain" to
13343         reflect the removal of the leading "i" field for INSN_UID in
13344         r210360.  Fix bogus apostrophe.
13346 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
13348         * config/i386/i386.md
13349         (lea arith with mem operand + setcc peephole2): Set operator mode.
13351 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
13353         PR target/70155
13354         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
13355         (dimode_scalar_to_vector_candidate_p): This.
13356         (timode_scalar_to_vector_candidate_p): New function.
13357         (scalar_to_vector_candidate_p): Likewise.
13358         (timode_check_non_convertible_regs): Likewise.
13359         (timode_remove_non_convertible_regs): Likewise.
13360         (remove_non_convertible_regs): Likewise.
13361         (remove_non_convertible_regs): Renamed to ...
13362         (dimode_remove_non_convertible_regs): This.
13363         (scalar_chain::~scalar_chain): Make it virtual.
13364         (scalar_chain::compute_convert_gain): Make it pure virtual.
13365         (scalar_chain::mark_dual_mode_def): Likewise.
13366         (scalar_chain::convert_insn): Likewise.
13367         (scalar_chain::convert_registers): Likewise.
13368         (scalar_chain::add_to_queue): Make it protected.
13369         (scalar_chain::emit_conversion_insns): Likewise.
13370         (scalar_chain::replace_with_subreg): Likewise.
13371         (scalar_chain::replace_with_subreg_in_insn): Likewise.
13372         (scalar_chain::convert_op): Likewise.
13373         (scalar_chain::convert_reg): Likewise.
13374         (scalar_chain::make_vector_copies): Likewise.
13375         (scalar_chain::convert_registers): New pure virtual function.
13376         (class dimode_scalar_chain): New class.
13377         (class timode_scalar_chain): Likewise.
13378         (scalar_chain::mark_dual_mode_def): Renamed to ...
13379         (dimode_scalar_chain::mark_dual_mode_def): This.
13380         (timode_scalar_chain::mark_dual_mode_def): New function.
13381         (timode_scalar_chain::convert_insn): Likewise.
13382         (dimode_scalar_chain::convert_registers): Likewise.
13383         (scalar_chain::compute_convert_gain): Renamed to ...
13384         (dimode_scalar_chain::compute_convert_gain): This.
13385         (scalar_chain::replace_with_subreg): Renamed to ...
13386         (dimode_scalar_chain::replace_with_subreg): This.
13387         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
13388         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
13389         (scalar_chain::make_vector_copies): Renamed to ...
13390         (dimode_scalar_chain::make_vector_copies): This.
13391         (scalar_chain::convert_reg): Renamed to ...
13392         (dimode_scalar_chain::convert_reg ): This.
13393         (scalar_chain::convert_op): Renamed to ...
13394         (dimode_scalar_chain::convert_op): This.
13395         (scalar_chain::convert_insn): Renamed to ...
13396         (dimode_scalar_chain::convert_insn): This.
13397         (scalar_chain::convert): Call convert_registers.
13398         (convert_scalars_to_vector): Change to scalar_chain pointer to
13399         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
13400         in 32-bit mode.  Delete scalar_chain pointer.  Call
13401         free_dominance_info in 64-bit mode.
13402         (pass_stv::gate): Remove TARGET_64BIT check.
13403         (ix86_option_override): Put the 64-bit STV pass before the CSE
13404         pass.
13406 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
13408         * dwarf2out.h (struct dw_loc_descr_node): Remove the
13409         dw_loc_frame_offset field.
13410         * dwarf2out.c (new_loc_descr): Likewise.
13411         (resolve_args_picking_1): Turn the VISITED hash set into a
13412         FRAME_OFFSET hash map. Use it to associate a frame offset to
13413         visited nodes. Remove uses of the CHECKING_P macro.
13414         (resolve_args_picking): Update call to resolve_args_picking_1.
13416 2016-04-27  Martin Liska  <mliska@suse.cz>
13418         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
13419         (free_loop_data): Release vuses of groups.
13421 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
13423         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
13424         instead of redundant use_id and boolean have_use_for.
13425         (struct iv_use): Change sub_id into group_id.  Remove field next.
13426         Move fields: related_cands, n_map_members, cost_map and selected
13427         to ...
13428         (struct iv_group): ... here.  New structure.
13429         (struct iv_common_cand): Use structure declaration directly.
13430         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
13431         (MAX_CONSIDERED_USES): Rename macro to ...
13432         (MAX_CONSIDERED_GROUPS): ... here.
13433         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
13434         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
13435         (dump_uses): Rename to ...
13436         (dump_groups): ... here.  Update all uses.
13437         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
13438         (find_induction_variables): Refactor format of dump information.
13439         (record_sub_use): Delete.
13440         (record_use): Update all uses.
13441         (record_group): New function.
13442         (record_group_use, find_interesting_uses_op): Call above functions.
13443         Update all uses.
13444         (find_interesting_uses_cond): Ditto.
13445         (group_compare_offset): New function.
13446         (split_all_small_groups): Rename to ...
13447         (split_small_address_groups_p): ... here.  Update all uses.
13448         (split_address_groups):  Update all uses.
13449         (find_interesting_uses): Refactor format of dump information.
13450         (add_candidate_1): Update all uses.  Remove redundant check on iv,
13451         base and step.
13452         (add_candidate, record_common_cand): Remove redundant assert.
13453         (add_iv_candidate_for_biv): Update use.
13454         (add_iv_candidate_derived_from_uses): Update all uses.
13455         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
13456         (alloc_use_cost_map): Ditto.
13457         (set_use_iv_cost, get_use_iv_cost): Rename to ...
13458         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
13459         (determine_use_iv_cost_generic): Ditto.
13460         (determine_group_iv_cost_generic): Ditto.
13461         (determine_use_iv_cost_address): Ditto.
13462         (determine_group_iv_cost_address): Ditto.
13463         (determine_use_iv_cost_condition): Ditto.
13464         (determine_group_iv_cost_cond): Ditto.
13465         (determine_use_iv_cost): Ditto.
13466         (determine_group_iv_cost): Ditto.
13467         (set_autoinc_for_original_candidates): Update all uses.
13468         (find_iv_candidates): Update all uses.  Refactor dump information.
13469         (determine_use_iv_costs): Ditto.
13470         (determine_iv_costs): Ditto.
13471         (iv_ca_cand_for_use): Rename to ...
13472         (iv_ca_cand_for_group): ... here.  Update all uses.
13473         (iv_ca_add_use, iv_ca_add_group): Ditto.
13474         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
13475         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
13476         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
13477         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
13478         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
13479         (create_new_iv, adjust_iv_update_pos): Ditto.
13480         (rewrite_use_address): Delete.
13481         (rewrite_use_address_1): Rename to ...
13482         (rewrite_use_address): ... here.
13483         (rewrite_use_compare): Update all uses.
13484         (rewrite_use): Delete.
13485         (rewrite_uses): Rename to ...
13486         (rewrite_groups): ... here.  Update all uses.
13487         (remove_unused_ivs, free_loop_data): Update all uses.
13488         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
13490 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13492         * rtlanal.c (nonzero_bits1): Convert preprocessor check
13493         for WORD_REGISTER_OPERATIONS to runtime check.
13495 2016-04-27  Richard Biener  <rguenther@suse.de>
13497         PR ipa/70760
13498         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
13499         aggregate_value_p to determine if a function result is
13500         returned by reference.
13501         (ipa_pta_execute): Functions having their address taken are
13502         not automatically nonlocal.
13504 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
13506         PR sanitizer/70683
13507         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
13508         * fold-const.c (operand_equal_p): If flag_checking and
13509         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
13510         and if it returns non-zero, assert iterative_hash_expr on both
13511         args is the same.
13513 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
13515         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
13517 2016-04-27  Nick Clifton  <nickc@redhat.com>
13519         PR middle-end/49889
13520         * varasm.c (merge_weak): Generate an error if an attempt is made
13521         to convert a non-weak static function into a weak, public function.
13523 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13525         * params.def (MAX_PARTITION_SIZE): New param.
13526         * doc/invoke.texi: Document lto-max-partition.
13528 2016-04-27  Richard Biener  <rguenther@suse.de>
13530         PR ipa/70785
13531         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
13532         function cummulating used_from_other_partition, externally_visible
13533         and force_output from aliases.
13534         (refered_from_nonlocal_var): Likewise.
13535         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
13536         node flags properly.
13538 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
13540         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
13541         (-Wmemset-elt-size): New item.
13543 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13545         PR ada/70759
13546         * stor-layout.h (internal_reference_types): Delete.
13547         * stor-layout.c (reference_types_internal): Likewise.
13548         (internal_reference_types): Likewise.
13549         (layout_type) <REFERENCE_TYPE>: Adjust.
13551 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
13553         PR sanitizer/70683
13554         * tree.h (inchash::add_expr): Add FLAGS argument.
13555         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
13556         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
13557         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
13558         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
13559         if swap_tree_comparison (code) is smaller than code, hash that
13560         and arguments in the other order.  Hash CONVERT_EXPR the same
13561         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
13562         of ADDR_EXPR of decl as the decl itself.  Add or remove
13563         OEP_ADDRESS_OF from recursive flags as needed.  For
13564         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
13565         operands commutatively and only the third one normally.
13566         For internal CALL_EXPR hash in CALL_EXPR_IFN.
13568 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13570         * config/rtems.h (LIB_SPEC): Add -latomic.
13572 2016-04-27  Joel Sherrill  <joel@rtems.org>
13574         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
13575         xilink.ld and flags not relevant to RTEMS.
13577 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13579         * toplev.c (backend_init_target): Avoid calling init_reload when using
13580         LRA.
13582 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
13584         * reorg.c (try_merge_delay_insns): Declare i and j inside the
13585         for loops rather than one for the whole function.
13587 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
13589         * match.pd (X + CST CMP X): New transformation.
13591 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
13593         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
13594         * fold-const.c (fold_binary_loc): Remove 2 transformations
13595         superseded by match.pd.
13596         * match.pd (x+x -> x*2): Generalize to integers.
13598 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
13600         * config/i386/i386.md (operation on memory peephole): Duplicate an
13601         existing peephole and adapt it to match lea rather than an operation
13602         that clobbers CC.
13604         PR rtl-optimization/57193
13605         * opts.c (default_options_table): Add OPT_frename_registers at -O2
13606         and above.
13607         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
13609 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
13611         * tree-if-conv.c (any_pred_load_store): New static variable.
13612         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
13613         any_pred_load_store instead of and_mask_load_store.
13614         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
13615         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
13616         (combine_blocks, tree_if_conversion): Ditto.
13618 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
13620         PR tree-optimization/70771
13621         PR tree-optimization/70775
13622         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
13623         virtual PHI nodes.  Delete parameter.
13624         (if_convertible_loop_p_1): Delete argument to above function.
13625         (predicate_all_scalar_phis): Delete code handling single-argument
13626         PHIs.
13627         (tree_if_conversion): Mark and update virtual SSA.
13629 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13631         PR target/61821
13632         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
13633         (x86_elf_aligned_common): Rename to ...
13634         (x86_elf_aligned_decl_common): ... this.
13635         Add decl arg.  Switch to .lbss for largecomm object.  Use
13636         LARGECOMM_SECTION_ASM_OP.
13637         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
13638         renaming.
13639         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
13640         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
13641         Pass new decl arg.
13642         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13643         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
13645 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13647         PR target/59407
13648         * config/i386/i386.c (SECTION_LARGE): Define.
13649         (x86_64_elf_select_section): Set it for large data/bss sections.
13650         Only clear SECTION_WRITE for .lrodata.
13651         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
13652         data/bss sections.
13653         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
13654         * varasm.c (default_elf_asm_named_section): Grow flagchars.
13655         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
13656         SECTION_MACH_DEP.
13657         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
13658         * doc/tm.texi: Regenerate.
13660 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
13662         PR bootstrap/70704
13663         * configure.ac (--enable-checking): Document extra flag, for
13664         non-release builds default to --enable-checking=yes,extra.
13665         If misc checking and extra checking, define CHECKING_P to 2 instead
13666         of 1.
13667         * common.opt (fchecking=): Add.
13668         * doc/invoke.texi (-fchecking=): Document.
13669         * doc/install.texi: Document --enable-checking changes.
13670         * configure: Regenerated.
13671         * config.in: Regenerated.
13673 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13675         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
13676         attribute instead of which_alternative.
13677         * config/i386/sse.md (*mov<mode>_internal): Ditto.
13678         Use EXT_REX_SSE_REG_P where appropriate.
13680 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13682         * config/i386/predicates.md (const0_operand): Do not match
13683         const_wide_int code.
13684         (const1_operand): Ditto.
13686 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13688         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
13689         for SSE constm1 operands and TARGET_AVX512VL.
13690         (*movti_internal): Ditto.
13691         (*mov<mode>_or): Use constm1_operand predicate.
13692         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
13693         for SSE vector_all_ones operands and TARGET_AVX512VL.
13694         * config/i386/predicates.md (constm1_operand): New predicate.
13695         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
13696         emission of constant -1 load.
13698 2016-04-25  Jason Merrill  <jason@redhat.com>
13700         * gdbinit.in: Skip is-a.h.
13702         * attribs.c (register_scoped_attributes): Fix logic.
13703         * attribs.h: Declare register_scoped_attributes.
13705 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13707         * config/rs6000/rs6000-builtin.def: Correct pasto error for
13708         stxvd2x and stxvw4x built-in functions.
13710 2016-04-25  DJ Delorie  <dj@redhat.com>
13712         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
13713         (ashrhi3): Likewise.
13714         (lshrhi3): Likewise.
13716 2016-04-25  Richard Biener  <rguenther@suse.de>
13718         PR tree-optimization/70780
13719         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
13720         wasn't visited yet.
13721         (compute_antic): Mark blocks with abnormal preds as visited as
13722         they have a final empty antic-in solution already.
13724 2016-04-25  Michael Collison  <michael.collison@linaro.org>
13726         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
13728 2016-04-25  Michael Collison  <michael.collison@linaro.org>
13730         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
13731         mode is VQI to improve mixed mode vectorization.
13732         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
13733         define_insn to match low half of signed vaddw.
13734         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
13735         define_insn to match high half of signed vaddw.
13736         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
13737         define_insn to match low half of unsigned vaddw.
13738         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
13739         define_insn to match high half of unsigned vaddw.
13740         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
13741         (arm_simd_check_vect_par_cnst_half_p): Likewise.
13742         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
13743         for new function.
13744         (arm_simd_check_vect_par_cnst_half_p): Likewise.
13745         * config/arm/predicates.md (vect_par_constant_high): Support
13746         big endian and simplify by calling
13747         arm_simd_check_vect_par_cnst_half
13748         (vect_par_constant_low): Likewise.
13750 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13752         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
13753         predicate for operand 2.
13755 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
13756             H.J. Lu  <hongjiu.lu@intel.com>
13758         * config/i386/i386-protos.h (standard_sse_constant_p): Add
13759         machine_mode argument.
13760         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
13761         constm1_rtx operands.  For VOIDmode constants, get mode from
13762         pred_mode.  Check mode size if the mode is supported by ABI.
13763         (standard_sse_constant_opcode): Do not use standard_constant_p.
13764         Strictly check ABI support for all-ones operands.
13765         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
13766         immediates. Update calls to standard_sse_constant_p.
13767         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
13768         (ix86_rtx_costs): Ditto.
13769         * config/i386/i386.md (*movxi_internal_avx512f): Use
13770         nonimmediate_or_sse_const_operand instead of vector_move_operand.
13771         Use (v,BC) alternative instead of (v,C). Use register_operand
13772         checks instead of MEM_P.
13773         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
13774         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
13775         isa attribute.  Use register_operand checks instead of MEM_P.
13776         (*movti_internal): Use nonimmediate_or_sse_const_operand for
13777         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
13778         alternative and corresponding sse2 isa attribute.
13779         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
13780         to standard_sse_constant_p.
13781         (FP constant splitters): Ditto.
13782         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
13783         (C): Ditto.
13784         * config/i386/predicates.md (constm1_operand): Remove.
13785         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
13786         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
13787         vector_all_ones_operand instead of constm1_operand.
13789 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13791         * print-rtl.c (print_rtx_insn_vec): New function.
13792         * print-rtl.h: New prototype.
13793         * store-motion.c (struct st_expr): Make avail_stores a vector.
13794         (st_expr_entry): Adjust.
13795         (free_st_expr_entry): Likewise.
13796         (print_store_motion_mems): Likewise.
13797         (find_moveable_store): Likewise.
13798         (compute_store_table): Likewise.
13799         (delete_store): Likewise.
13800         (build_store_vectors): Likewise.
13802 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13804         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
13806 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13808         * vec.h (vec_safe_contains): New function.
13809         (vec::contains): Likewise.
13810         (vec::begin): Likewise.
13811         (vec::end): Likewise.
13813 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
13815         PR sanitizer/70712
13816         * cfgexpand.c (expand_stack_vars): Fix typo.
13818 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13820         * system.h (list, map, set, vector): Include conditionally.
13821         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
13822         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
13823         * ipa-icf.c (INCLUDE_LIST): Define.
13824         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
13825         * config/sh/sh.c (INCLUDE_VECTOR): Define.
13826         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
13827         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
13828         * cp/logic.cc (INCLUDE_LIST): Define.
13829         * fortran/trans-common.c (INCLUDE_MAP): Define.
13831 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13833         * auto-profile.c: Remove <string.h> include.
13834         * ipa-icf-gimple.c: Remove <list> include.
13835         * diagnostic.c: Remove <new> include.
13836         * genmatch.c: Likewise.
13837         * pretty-print.c: Likewise.
13838         * toplev.c: Likewise
13839         * c/c-objc-common.c: Likewise.
13840         * cp/error.c: Likewise.
13841         * fortran/error.c: Likewise.
13843 2016-04-22  Richard Biener  <rguenther@suse.de>
13845         * lto-streamer-in.c (input_ssa_names): Do not allocate
13846         GIMPLE_NOP for all SSA names.
13847         * lto-streamer-out.c (output_ssa_names): Do not output
13848         SSA names that should have been released.
13850 2016-04-22  Richard Biener  <rguenther@suse.de>
13852         PR tree-optimization/70740
13853         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
13854         VDEF.
13856 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
13858         PR target/70750
13859         * config/i386/predicates.md (call_insn_operand): Replace
13860         sibcall_memory_operand with memory_operand.
13862 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
13864         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
13865         has_single_use() tests.
13866         (register_edge_assert_for_1): Likewise.
13867         (find_assert_locations_1): Check the liveness bitmap instead of
13868         checking has_single_use().
13870 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
13872         PR target/70728
13873         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
13874         Extract AVX-512BW constraint from AVX.
13876 2016-04-21  Richard Biener  <rguenther@suse.de>
13878         PR tree-optimization/70725
13879         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
13880         for phi_convertible_by_degenerating_args.
13881         (predicate_all_scalar_phis): Handle single-argument PHIs.
13883 2016-04-21  Richard Biener  <rguenther@suse.de>
13885         PR middle-end/70747
13886         * fold-const.c (fold_comparison): Return properly typed
13887         constant boolean.
13889 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
13891         PR tree-optimization/70715
13892         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
13893         after expanding BASE using expand_simple_operations.
13895 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
13897         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
13898         New transformations.
13900 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
13902         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
13904 2016-04-20  Jan Hubicka  <jh@suse.cz>
13906         * ipa-inline.c (can_inline_edge_p): Pass caller info to
13907         ultiimate_alias_target.
13908         (update_callee_keys): Likewise.
13909         (lookup_recursive_calls): Likewise.
13910         (speculation_useful_p): Likewise.
13912 2016-04-20  Jan Hubicka  <jh@suse.cz>
13914         PR ipa/70018
13915         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
13916         (set_nothrow_flag_1): ... this; handle interposition correctly;
13917         recurse on aliases and thunks.
13918         (cgraph_node::set_nothrow_flag): New.
13919         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
13920         functions compiled with non-call exceptions that binds to current
13921         def.
13922         (propagate_nothrow): Be safe WRT interposition.
13923         * cgraph.h (set_nothrow_flag): Update prototype.
13925 2016-04-18  Jan Hubicka  <jh@suse.cz>
13927         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13928         max_loop_iterations_int.
13929         (tree_unswitch_outer_loop): Likewise.
13931 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
13933         PR tree-optimization/69489
13934         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
13935         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
13936         Revise dump message.
13937         (if_convertible_bb_p): Remove check on edge count of basic block's
13938         predecessors.
13940 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
13942         PR tree-optimization/56625
13943         PR tree-optimization/69489
13944         * tree-data-ref.h (DR_INNERMOST): New macro.
13945         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
13946         hashing struct innermost_loop_behavior.
13947         (ref_DR_map): Remove.
13948         (innermost_DR_map): New map.
13949         (baseref_DR_map): Revise comment.
13950         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
13951         to innermost_DR_map accroding to its innermost loop behavior.
13952         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
13953         to its innermost loop behavior.
13954         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
13955         Add initialization for innermost_DR_map.  Record memory reference
13956         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
13957         have innermost loop behavior.
13958         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
13959         innermost_DR_map.
13961 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
13963         * config/i386/i386.md (*lea<mode>_general_1): Rename from
13964         *lea_general_1.  Use explicit SWI12 mode interator.
13965         (*lea<mode>_general_2): Rename from *lea_general_2.
13966         Use explicit SWI12 mode interator.
13967         (*lea<mode>_general_3): Rename from *lea_general_3.
13968         Use explicit SWI12 mode interator.
13969         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
13970         Use explicit SWI12 mode interator.
13971         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
13972         Use explicit SWI48 mode interator.
13974 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13976         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13977         Short-cut unaligned load and store cases.  Handle all integer
13978         vector modes.
13979         (ix86_expand_vector_move_misalign): Short-cut unaligned load
13980         and store cases.  Call ix86_avx256_split_vector_move_misalign
13981         directly without checking mode class.
13983 2016-04-20  Andrew Pinski  <apinski@cavium.com>
13984             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13986         PR target/64971
13987         * config/aarch64/aarch64.md (sibcall): Force call
13988         address to be DImode for ILP32.
13989         (sibcall_value): Likewise.
13991 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13993         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
13995 2016-04-20  Richard Biener  <rguenther@suse.de>
13997         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
13998         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
13999         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
14000         (maybe_push_res_to_seq): Adjust.
14001         * gimple-fold.c (maybe_build_generic_op): Likewise.
14003 2016-04-20  Marek Polacek  <polacek@redhat.com>
14005         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
14006         rather than true.
14008 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
14010         * config/i386/sse.md (vec_unpacks_lo_hi): Always
14011         use kmovw to support AVX512F target.
14013 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
14015         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
14017 2016-04-20  Marek Polacek  <polacek@redhat.com>
14019         PR tree-optimization/70725
14020         * tree-if-conv.c (is_false_predicate): New function.
14021         (predicate_mem_writes): Use it.
14023 2016-04-20  Richard Biener  <rguenther@suse.de>
14025         PR tree-optimization/70726
14026         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
14027         shift amounts from a pattern stmt operand.
14029 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14031         PR target/70674
14032         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
14033         stack_restore_from_fpr pattern when restoring r15.
14034         (s390_optimize_prologue): Strip away the memory barrier in the
14035         parallel when trying to get rid of restore insns.
14036         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
14037         definition for loading the stack pointer from an FPR.  Compared to
14038         the normal move insn this pattern includes a full memory barrier.
14040 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
14042         PR middle-end/70680
14043         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
14044         implicitly linear or lastprivate iterator on the outer context.
14046 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
14048         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
14049         alignment check.
14050         * config/i386/i386.md (ssememalign): Removed.
14051         * config/i386/sse.md: Remove ssememalign attribute from patterns.
14053 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
14055         PR target/69201
14056         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
14057         const short * to __builtin_ia32_loaddquhi512_mask.
14058         (_mm512_maskz_loadu_epi16): Likewise.
14059         (_mm512_mask_storeu_epi16): Pass short * to
14060         __builtin_ia32_storedquhi512_mask.
14061         (_mm512_mask_loadu_epi8): Pass const char * to
14062         __builtin_ia32_loaddquqi512_mask.
14063         (_mm512_maskz_loadu_epi8): Likewise.
14064         (_mm512_mask_storeu_epi8): Pass char * to
14065         __builtin_ia32_storedquqi512_mask.
14066         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
14067         const double * to __builtin_ia32_loadupd512_mask.
14068         (_mm512_mask_loadu_pd): Likewise.
14069         (_mm512_maskz_loadu_pd): Likewise.
14070         (_mm512_storeu_pd): Pass double * to
14071         __builtin_ia32_storeupd512_mask.
14072         (_mm512_mask_storeu_pd): Likewise.
14073         (_mm512_loadu_ps): Pass const float * to
14074         __builtin_ia32_loadups512_mask.
14075         (_mm512_mask_loadu_ps): Likewise.
14076         (_mm512_maskz_loadu_ps): Likewise.
14077         (_mm512_storeu_ps): Pass float * to
14078         __builtin_ia32_storeups512_mask.
14079         (_mm512_mask_storeu_ps): Likewise.
14080         (_mm512_mask_loadu_epi64): Pass const long long * to
14081         __builtin_ia32_loaddqudi512_mask.
14082         (_mm512_maskz_loadu_epi64): Likewise.
14083         (_mm512_mask_storeu_epi64): Pass long long *
14084         to __builtin_ia32_storedqudi512_mask.
14085         (_mm512_loadu_si512): Pass const int * to
14086         __builtin_ia32_loaddqusi512_mask.
14087         (_mm512_mask_loadu_epi32): Likewise.
14088         (_mm512_maskz_loadu_epi32): Likewise.
14089         (_mm512_storeu_si512): Pass int * to
14090         __builtin_ia32_storedqusi512_mask.
14091         (_mm512_mask_storeu_epi32): Likewise.
14092         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
14093         char * to __builtin_ia32_storedquqi256_mask.
14094         (_mm_mask_storeu_epi8): Likewise.
14095         (_mm256_mask_loadu_epi16): Pass const short * to
14096         __builtin_ia32_loaddquhi256_mask.
14097         (_mm256_maskz_loadu_epi16): Likewise.
14098         (_mm_mask_loadu_epi16): Pass const short * to
14099         __builtin_ia32_loaddquhi128_mask.
14100         (_mm_maskz_loadu_epi16): Likewise.
14101         (_mm256_mask_loadu_epi8): Pass const char * to
14102         __builtin_ia32_loaddquqi256_mask.
14103         (_mm256_maskz_loadu_epi8): Likewise.
14104         (_mm_mask_loadu_epi8): Pass const char * to
14105         __builtin_ia32_loaddquqi128_mask.
14106         (_mm_maskz_loadu_epi8): Likewise.
14107         (_mm256_mask_storeu_epi16): Pass short * to.
14108         __builtin_ia32_storedquhi256_mask.
14109         (_mm_mask_storeu_epi16): Pass short * to.
14110         __builtin_ia32_storedquhi128_mask.
14111         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
14112         const double * to __builtin_ia32_loadupd256_mask.
14113         (_mm256_maskz_loadu_pd): Likewise.
14114         (_mm_mask_loadu_pd): Pass onst double * to
14115         __builtin_ia32_loadupd128_mask.
14116         (_mm_maskz_loadu_pd): Likewise.
14117         (_mm256_mask_storeu_pd): Pass double * to
14118         __builtin_ia32_storeupd256_mask.
14119         (_mm_mask_storeu_pd): Pass double * to
14120         __builtin_ia32_storeupd128_mask.
14121         (_mm256_mask_loadu_ps): Pass const float * to
14122         __builtin_ia32_loadups256_mask.
14123         (_mm256_maskz_loadu_ps): Likewise.
14124         (_mm_mask_loadu_ps): Pass const float * to
14125         __builtin_ia32_loadups128_mask.
14126         (_mm_maskz_loadu_ps): Likewise.
14127         (_mm256_mask_storeu_ps): Pass float * to
14128         __builtin_ia32_storeups256_mask.
14129         (_mm_mask_storeu_ps): ass float * to
14130         __builtin_ia32_storeups128_mask.
14131         (_mm256_mask_loadu_epi64): Pass const long long * to
14132         __builtin_ia32_loaddqudi256_mask.
14133         (_mm256_maskz_loadu_epi64): Likewise.
14134         (_mm_mask_loadu_epi64): Pass const long long * to
14135         __builtin_ia32_loaddqudi128_mask.
14136         (_mm_maskz_loadu_epi64): Likewise.
14137         (_mm256_mask_storeu_epi64): Pass long long * to
14138         __builtin_ia32_storedqudi256_mask.
14139         (_mm_mask_storeu_epi64): Pass long long * to
14140         __builtin_ia32_storedqudi128_mask.
14141         (_mm256_mask_loadu_epi32): Pass const int * to
14142         __builtin_ia32_loaddqusi256_mask.
14143         (_mm256_maskz_loadu_epi32): Likewise.
14144         (_mm_mask_loadu_epi32): Pass const int * to
14145         __builtin_ia32_loaddqusi128_mask.
14146         (_mm_maskz_loadu_epi32): Likewise.
14147         (_mm256_mask_storeu_epi32): Pass int * to
14148         __builtin_ia32_storedqusi256_mask.
14149         (_mm_mask_storeu_epi32): Pass int * to
14150         __builtin_ia32_storedqusi128_mask.
14151         * config/i386/i386-builtin-types.def (PCSHORT): New.
14152         (PINT64): Likewise.
14153         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
14154         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
14155         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
14156         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
14157         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
14158         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
14159         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
14160         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
14161         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
14162         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
14163         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
14164         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
14165         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
14166         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
14167         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
14168         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
14169         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
14170         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
14171         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
14172         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
14173         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
14174         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
14175         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
14176         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
14177         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
14178         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
14179         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
14180         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
14181         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
14182         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
14183         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
14184         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
14185         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
14186         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
14187         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
14188         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
14189         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
14190         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
14191         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
14192         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
14193         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
14194         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
14195         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
14196         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
14197         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
14198         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
14199         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
14200         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
14201         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
14202         use UNSPEC_STOREU.
14203         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
14204         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
14205         load nor store.
14206         (ix86_expand_vector_move_misalign): Likewise.
14207         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
14208         to scalar function prototype for unaligned load/store builtins.
14209         (ix86_expand_special_args_builtin): Updated.
14210         * config/i386/sse.md (UNSPEC_LOADU): Removed.
14211         (UNSPEC_STOREU): Likewise.
14212         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
14213         (VI_ULOADSTORE_F_AVX512VL): Likewise.
14214         (ssescalarsize): Handle V4TI, V2TI and V1TI.
14215         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
14216         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
14217         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
14218         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
14219         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
14220         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
14221         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
14222         (<avx512>_storedqu<mode>_mask): Likewise.
14223         (*sse4_2_pcmpestr_unaligned): Likewise.
14224         (*sse4_2_pcmpistr_unaligned): Likewise.
14225         (*mov<mode>_internal): Renamed to ...
14226         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
14227         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
14228         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
14229         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
14231 2016-04-19  Richard Biener  <rguenther@suse.de>
14233         PR tree-optimization/70171
14234         * tree-ssa-phiprop.c: Include stor-layout.h.
14235         (phiprop_insert_phi): Handle the aggregate copy case.
14236         (propagate_with_phi): Likewise.
14238 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
14240         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
14241         instead of simplify_gen_subreg (... , 0).
14242         (ix86_delegitimize_address): Ditto.
14243         (ix86_split_divmod): Ditto.
14244         (ix86_split_copysign_const): Ditto.
14245         (ix86_split_copysign_var): Ditto.
14246         (ix86_expand_args_builtin): Ditto.
14247         (ix86_expand_round_builtin): Ditto.
14248         (ix86_expand_special_args_builtin): Ditto.
14249         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
14250         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
14251         (udivmodqi4): Ditto.
14252         (absneg splitters): Ditto.
14253         (*jcc_bt<mode>_1): Ditto.
14255 2016-04-19  Richard Biener  <rguenther@suse.de>
14257         PR tree-optimization/70724
14258         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
14259         restoring out from ...
14260         (free_scc_vn): ... here.
14261         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
14262         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
14263         tail merging.
14264         (pass_fre::execute): Restore SSA info.
14266 2016-04-19  Richard Biener  <rguenther@suse.de>
14268         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
14269         * gimple-walk.c (walk_gimple_op): Initialize it.
14270         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
14271         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
14272         remapping SSA names of defs.
14273         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
14274         adjustment.
14276 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
14278         PR middle-end/70689
14279         * lra-constraints.c (equiv_substition_p): New.
14280         (process_alt_operands): Use it.
14281         (swap_operands): Swap it.
14282         (curr_insn_transform): Update it.
14284 2016-04-18  Michael Matz  <matz@suse.de>
14286         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
14287         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
14288         * tree-core.h (tree_type_common.align): Use bit-field.
14289         (tree_type_common.spare): New.
14290         (tree_decl_common.off_align): Make smaller.
14291         (tree_decl_common.align): Use bit-field.
14293         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
14294         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
14295         (scan_sharing_clauses): Ditto.
14296         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14297         (omp_finish_file): Ditto.
14298         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
14299         (layout_decl): Ditto.
14300         (relayout_decl): Ditto.
14301         (finalize_record_size): Use SET_TYPE_ALIGN.
14302         (finalize_type_size): Ditto.
14303         (finish_builtin_struct): Ditto.
14304         (layout_type): Ditto.
14305         (initialize_sizetypes): Ditto.
14306         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
14307         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
14308         (lookup_field_for_decl): Use SET_DECL_ALIGN.
14309         (get_chain_field): Ditto.
14310         (get_trampoline_type): Ditto.
14311         (get_nl_goto_field): Ditto.
14312         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
14313         SET_DECL_ALIGN.
14314         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
14315         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
14316         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14317         (build_qualified_type): Use SET_TYPE_ALIGN.
14318         (build_aligned_type, build_range_type_1): Ditto.
14319         (build_atomic_base): Ditto.
14320         (build_common_tree_nodes): Ditto.
14321         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
14322         (expand_one_stack_var_at): Ditto.
14323         * coverage.c (build_var): Use SET_DECL_ALIGN.
14324         * except.c (init_eh): Ditto.
14325         * function.c (assign_parm_setup_block): Ditto.
14326         * symtab.c (increase_alignment_1): Ditto.
14327         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
14328         * tree-vect-stmts.c (ensure_base_align): Ditto.
14329         * varasm.c (align_variable): Ditto.
14330         (assemble_variable): Ditto.
14331         (build_constant_desc): Ditto.
14332         (output_constant_def_contents): Ditto.
14334         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
14335         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
14336         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
14337         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
14338         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
14340 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
14342         PR target/70708
14343         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
14344         replace %vmovsd with "%vmovq".
14345         (vec_concatv2df): Likewise.
14347 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
14349         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
14350         (*vec_extractv2si_0): Ditto.
14351         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
14352         (zero_extended_scalar_load_operand splitters): Ditto.
14353         (vec_extract splitters): Ditto.
14354         (*vec_extractv4si_0_zext): Ditto.
14355         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
14356         and lowpart_subreg.
14357         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
14358         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
14359         (*sse4_1_extractps): Use lowpart_subreg.
14360         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
14362 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14364         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
14365         gld requirements.
14366         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
14367         Mention Solaris 11 packaging changes.
14368         Update gas and gld requirements.
14369         Remove reference to pre-Solaris 10 bug.
14370         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
14371         systems and bugs.
14372         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
14373         with cc.
14375 2016-04-17  Jan Hubicka  <jh@suse.cz>
14377         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
14378         max_loop_iterations_int.
14380 2016-04-18  Richard Biener  <rguenther@suse.de>
14382         PR tree-optimization/43434
14383         * tree-ssa-structalias.c (struct vls_data): New.
14384         (visit_loadstore): Handle all pointer-based accesses.
14385         (compute_dependence_clique): Compute a bitmap of restrict tags
14386         assigned bases and pass it to visit_loadstore.
14388 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
14390         PR target/70711
14391         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
14392         armv8.1-a and armv8.1-a+crc.
14394 2016-04-18  Richard Biener  <rguenther@suse.de>
14396         PR tree-optimization/70701
14397         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
14398         references after translating through a memcpy.
14400 2016-04-18  Richard Biener  <rguenther@suse.de>
14402         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
14403         (compute_antic): ... here.  For partial antic use regular
14404         postorder and scrap iteration.
14405         (compute_partial_antic_aux): Remove unused return value.
14406         (init_pre): Do not allocate postorder.
14407         (fini_pre): Do not free postorder.
14409 2016-04-18  Richard Biener  <rguenther@suse.de>
14411         PR middle-end/37870
14412         * expmed.c (extract_bit_field_1): Remove broken case
14413         using a wider MODE_INT mode.
14415 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
14417         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
14418         unless compiling with at least GCC-4.8.
14420 2016-04-17  Jan Hubicka  <jh@suse.cz>
14422         PR bootstrap/70706
14423         * graphite.c (graphite_finalize): Update call to
14424         tree_estimate_probability.
14425         * predict.h (tree_estimate_probability): Update prototype.
14427 2016-04-17  Jan Hubicka  <jh@suse.cz>
14429         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
14430         (tree_estimate_probability): Likewise.
14431         (pass_profile::execute): Update.
14432         (report_predictor_hitrates): New function.
14433         * profile.c (compute_branch_probabilities): Use it.
14434         * predict.h (report_predictor_hitrates): Declare.
14436 2016-04-17  Jan Hubicka  <jh@suse.cz>
14438         PR ipa/70018
14439         * cgraph.h (cgraph_node::set_const_flag,
14440         cgraph_node::set_pure_flag): Update prototype to return bool;
14441         update comment.
14442         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
14443         of interposable symbol are interposable, too.
14444         (cgraph_set_const_flag_1): Rename to ...
14445         (set_const_flag_1): ... this one; change to self recursive function
14446         instead of call_for_symbol_thunks_and_aliases. Handle correctly
14447         clearnig the flag in all variants and also virtual thunks of const
14448         functions are pure; track if any change was done.
14449         (cgraph_node::set_const_flag): Update.
14450         (struct set_pure_flag_info): New struct.
14451         (cgraph_set_pure_flag_1): Rename to ...
14452         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
14453         rather than pointer encoded flags; track if any changes was done;
14454         handle correctly clearning flag and setting flag of aliases already
14455         declared const.
14456         (cgraph_node::set_pure_flag): Update.
14457         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
14459 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14461         PR other/70433
14462         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
14463         backslash in label.
14465 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14467         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
14468         '{}<> ' as escape-for-record.
14470 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14472         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
14473         structure.
14475 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14477         PR other/70185
14478         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
14479         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
14480         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
14481         * passes.c (finish_optimization_passes): Only call
14482         finish_graph_dump_file if dfi->graph_dump_initialized.
14483         (execute_function_dump, pass_init_dump_file): Use
14484         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
14486 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14488         PR tree-optimization/70256
14489         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
14490         (debug_varmap): New function.
14492 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14494         PR other/70183
14495         * passes.c (pass_manager::register_pass): Propagate pflags.
14497 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14499         PR other/68875
14500         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
14501         * passes.c (pass_manager::pass_manager): Declare and init p_start in
14502         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
14503         check if it's equal to p_start.
14504         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
14506 2016-04-15  Jan Hubicka  <jh@suse.cz>
14508         PR ipa/70018
14509         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
14510         function does not bind to current def.
14511         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
14512         handle conservatively calls to functions that does not need to bind
14513         to current def.
14514         (check_call): Update call of worse_state.
14515         (ignore_edge_for_nothrow): Update.
14516         (ignore_edge_for_pure_const): Likewise.
14517         (propagate_pure_const): Update calls to worse_state.
14518         (skip_function_for_local_pure_const): Reformat comments.
14520 2016-04-15  Jan Hubicka  <jh@suse.cz>
14522         PR ipa/70018
14523         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
14524         (cgraph_node::function_symbol): Likewise.
14525         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
14526         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
14527         (symtab_node::ultimate_alias_target): Add REF parameter.
14528         (symtab_node::binds_to_current_def_p): Declare.
14529         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
14530         (cgraph_node::function_symbol): Likewise.
14531         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
14532         (cgraph_node::get_availability): Likewise.
14533         (cgraph_edge::binds_to_current_def_p): New inline function.
14534         (varpool_node::get_availability): Add REF parameter.
14535         (varpool_node::ultimate_alias_target): Likewise.
14536         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
14537         (symtab_node::binds_to_current_def_p): Likewise.
14538         * varpool.c (varpool_node::get_availability): Likewise.
14540 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
14542         PR target/70662
14543         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
14544         Fix mode size check.
14546 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
14548         * BASE-VER: Set to 7.0.0.
14550 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
14552         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
14554 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14556         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
14557         architecture revisions.
14559 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
14561         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
14562         * config/i386/i386.c (ix86_using_red_zone): No longer static.
14563         * config/i386/i386.md (stack decrement to push peepholes): Guard
14564         with !x86_using_red_zone ().
14566 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
14568         PR c++/70675
14569         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
14570         to dump_generic_node.
14571         (NIY): Pass also flags to do_niy.
14573 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
14575         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
14576         (simd_clone_vector_of_formal_parm_types)
14577         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
14578         (simd_clone_mangle, simd_clone_create)
14579         (simd_clone_adjust_return_type, create_tmp_simd_array)
14580         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
14581         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
14582         (ipa_simd_modify_function_body, simd_clone_linear_addend)
14583         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
14584         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
14585         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
14586         * omp-simd-clone.c: ... this new file.
14587         (simd_clone_vector_of_formal_parm_types): Make it static.
14588         * Makefile.in (OBJS): Add omp-simd-clone.o.
14590 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
14592         PR target/70662
14593         * config/i386/sse.md: Use proper memory operand modifiers.
14596 2016-04-15  Richard Biener  <rguenther@suse.de>
14597         Alan Modra  <amodra@gmail.com>
14599         PR tree-optimization/70130
14600         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
14601         when alignment stays not the same and no not use the realign
14602         scheme then.
14604 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14606         PR target/70669
14607         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
14608         direct move handlers for KFmode. Change TFmode handlers test from
14609         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
14611 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
14613         PR c++/70594
14614         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
14615         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
14616         (inlined_polymorphic_ctor_dtor_block_p): Use it.
14617         * tree-ssa-live.c (remove_unused_scope_block_p): When
14618         in_ctor_dtor_block, avoid discarding not just BLOCKs with
14619         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
14620         block_ultimate_origin is FUNCTION_DECL.
14621         (remove_unused_locals): If current_function_decl is
14622         polymorphic_ctor_dtor_p, pass initial true to
14623         remove_unused_scope_block_p' is_ctor_dtor_block.
14625 2016-04-14  Martin Sebor  <msebor@redhat.com>
14627         PR c++/69517
14628         PR c++/70019
14629         PR c++/70588
14630         * doc/extend.texi (Variable Length): Revert.
14632 2016-04-14  Marek Polacek  <polacek@redhat.com>
14633             Jan Hubicka  <hubicka@ucw.cz>
14635         PR c++/70029
14636         * tree.c (verify_type): Disable the canonical type of main variant
14637         check.
14639 2016-04-14  Jason Merrill  <jason@redhat.com>
14641         * cfgexpand.c, expr.c: Revert previous change.
14643 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
14645         PR middle-end/70643
14646         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
14647         when building a mem ref for the incoming reduction variable.
14649 2016-04-14  Richard Biener  <rguenther@suse.de>
14651         PR tree-optimization/70614
14652         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
14653         loop if the evolution dropped to chrec_dont_know.
14654         (interpret_condition_phi): Likewise.
14656 2016-04-14  Richard Biener  <rguenther@suse.de>
14658         PR tree-optimization/70623
14659         * tree-ssa-pre.c (changed_blocks): Make global ...
14660         (compute_antic): ... local here.  Move and fix worklist
14661         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
14662         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
14663         worklist handling, dump when ANTIC_IN changed.
14664         (compute_partial_antic_aux): Remove worklist handling.
14665         (init_pre): Do not compute post dominators.  Add a comment about
14666         the CFG order chosen.
14667         (fini_pre): Do not free post dominators.
14669 2016-04-13  Martin Sebor  <msebor@redhat.com>
14671         PR c++/69517
14672         PR c++/70019
14673         PR c++/70588
14674         * doc/extend.texi (Variable Length): Document C++ specifics.
14676 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
14678         PR c++/70641
14679         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
14680         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
14681         eh edges have been purged.
14683         PR c++/70594
14684         * tree-sra.c (create_access_replacement,
14685         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
14686         gets fancy name.
14687         * tree-pretty-print.c (dump_fancy_name): New function.
14688         (dump_decl_name, dump_generic_node): Use it.
14690 2016-04-13  Jason Merrill  <jason@redhat.com>
14692         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
14693         * expr.c (expand_expr_real_1): Likewise.
14695 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14697         * config/i386/i386.md (kunpckhi): Swap operands.
14698         (kunpcksi): Likewise.
14699         (kunpckdi): Likewise.
14700         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
14701         (vec_pack_trunc_<mode>): Likewise.
14703 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
14705         PR debug/70628
14706         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
14708         PR middle-end/70633
14709         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
14710         gimplification turns some element into non-constant.
14712         PR debug/70628
14713         * rtl.h (convert_memory_address_addr_space_1): New prototype.
14714         * explow.c (convert_memory_address_addr_space_1): No longer static,
14715         add NO_EMIT argument and don't call convert_modes if true, pass
14716         it down recursively, remove break after return.
14717         (convert_memory_address_addr_space): Adjust caller.
14718         * simplify-rtx.c (simplify_unary_operation_1): Call
14719         convert_memory_address_addr_space_1 instead of convert_memory_address,
14720         if it returns NULL, don't simplify.
14722 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
14724         PR target/70630
14725         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
14727 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14729         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14730         Bump the upper SIMDLEN limits, so that if the return type or
14731         characteristic type if the return type is void can be passed in
14732         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
14733         allowed.
14735 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14737         PR target/70640
14738         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
14739         Do not use "=" constraint on an input constraint.
14740         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14741         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14742         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
14743         generates (neg (abs ...)) instead of (abs ...).
14745 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14747         PR rtl-optimization/70596
14748         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
14749         just invalidate LRA data and reset them.  Adjust dump wording.
14751 2016-04-12  Martin Liska  <mliska@suse.cz>
14753         Revert
14754         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
14756         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
14757         estimates here.
14758         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
14759         max_loop_iterations_int.
14760         (tree_unswitch_outer_loop): Likewise.
14761         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
14762         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
14764 2016-04-12  Tom de Vries  <tom@codesourcery.com>
14766         PR tree-optimization/68756
14767         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
14768         instead of new_name.
14770 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14772         PR tree-optimization/70602
14773         * tree-sra.c (generate_subtree_copies): Don't write anything into
14774         constant pool decls.
14776         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
14777         regardless whether there are depend clauses or not.
14779 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14781         PR target/70381
14782         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
14783         target attribute and pragma from changing the -mfloat128
14784         and -mfloat128-hardware options.
14786         * doc/extend.texi (Additional Floating Types): Document PowerPC
14787         __float128 restrictions.
14789 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
14791         PR target/70133
14792         * config/aarch64/driver-aarch64.c
14793         (aarch64_get_extension_string_for_isa_flags): New.
14794         (arch_extension): Rename to...
14795         (aarch64_arch_extension): ...This.
14796         (ext_to_feat_string): Rename to...
14797         (aarch64_extensions): ...This.
14798         (aarch64_core_data): Keep track of architecture extension flags.
14799         (cpu_data): Rename to...
14800         (aarch64_cpu_data): ...This.
14801         (aarch64_arch_driver_info): Keep track of architecture extension
14802         flags.
14803         (get_arch_name_from_id): Rename to...
14804         (get_arch_from_id): ...This, change return type.
14805         (host_detect_local_cpu): Update and reformat for renames, handle
14806         extensions through common infrastructure.
14808 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
14810         PR target/70133
14811         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
14812         track of a canonical flag name.
14813         (all_extensions): Likewise.
14814         (arch_to_arch_name): Also track extension flags enabled by the arch.
14815         (all_architectures): Likewise.
14816         (aarch64_parse_extension): Move to here.
14817         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
14818         rework.
14819         (aarch64_rewrite_selected_cpu): Update for above change.
14820         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
14821         are handled, such that the single explicit value enabled by an
14822         extension is kept seperate from the implicit values it also enables.
14823         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
14824         to here.
14825         (aarch64_parse_extension): New.
14826         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
14827         here to config/aarch64/aarch64-protos.h.
14828         (aarch64_parse_extension): Move from here to
14829         common/config/aarch64/aarch64-common.c.
14830         (aarch64_option_print): Update.
14831         (aarch64_declare_function_name): Likewise.
14832         (aarch64_start_file): Likewise.
14833         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
14834         the canonical flag for extensions.
14835         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
14836         flags.
14838 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
14840         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
14841         AARCH64_FL_CRC.
14843 2016-04-09  Tom de Vries  <tom@codesourcery.com>
14845         PR tree-optimization/68953
14846         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
14847         first to last subscript.
14849 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
14851         PR tree-optimization/70586
14852         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
14853         for any calls.
14855 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
14857         PR lto/70289
14858         PR ipa/70348
14859         PR tree-optimization/70373
14860         PR middle-end/70533
14861         PR middle-end/70534
14862         PR middle-end/70535
14863         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
14864         clauses for acc parallel reductions as necessary.  Error on those
14865         that are private.
14866         * omp-low.c (scan_sharing_clauses): Don't install variables which
14867         are used in acc parallel reductions.
14868         (lower_rec_input_clauses): Remove dead code.
14869         (lower_oacc_reductions): Add support for reference reductions.
14870         (lower_reduction_clauses): Remove dead code.
14871         (lower_omp_target): Don't remap variables appearing in acc parallel
14872         reductions.
14873         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
14875 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
14877         PR middle-end/70593
14878         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
14879         with multiple SSA_NAME defs, force the outputs other than first
14880         to be live before calling live_track_process_def on each output.
14882         PR rtl-optimization/70574
14883         * fwprop.c (forward_propagate_and_simplify): Don't add
14884         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
14885         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
14886         paradoxical subregs within *loc.
14888 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
14890         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
14891         -ftree-parallelize-loops={0,1}.
14892         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
14893         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
14894         * config/ia64/hpux.h (LIB_SPEC): Likewise.
14895         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14896         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
14898 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
14900         PR sanitizer/70541
14901         * asan.c (instrument_derefs): If we get unknown location, extract it
14902         with EXPR_LOCATION.
14903         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
14905 2016-04-08  Tom de Vries  <tom@codesourcery.com>
14907         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
14908         implicit firstprivate clause.
14910 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14912         PR target/70566
14913         * config/arm/thumb2.md (tst + branch-> lsls + branch
14914         peephole below *orsi_not_shiftsi_si): Require that condition
14915         register is dead after the peephole.
14916         (second peephole after the above): Likewise.
14918 2016-04-08  Alan Modra  <amodra@gmail.com>
14920         PR target/70117
14921         * builtins.c (fold_builtin_classify): For IBM extended precision,
14922         look at just the high-order double to test for NaN.
14923         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
14924         test just the high double for Inf but both doubles for subnormal
14925         limit.
14927 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
14929         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
14930         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
14931         node->simdclone->mask_mode != VOIDmode masks.
14932         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
14933         earlier, use it instead of node->simdclone.
14934         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14935         Set clonei->mask_mode.
14937 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
14939         PR c/70436
14940         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
14941         Pass it through to cp_parser_already_scoped_statement.
14942         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
14943         it through to cp_parser_statement.
14944         (cp_parser_statement): Pass IF_P through to
14945         cp_parser_iteration_statement.
14946         (cp_parser_pragma): Adjust call to
14947         cp_parser_iteration_statement.
14949 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
14951         PR c/70436
14952         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
14953         resolve a future -Wparentheses warning.
14954         * omp-low.c (scan_sharing_clauses): Likewise.
14955         * tree-parloops.c (eliminate_local_variables): Likewise.
14957 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
14959         PR rtl-optimization/70398
14960         * lra-constraints.c (process_address_1): Check zero scale and code
14961         for reloading with zero scale.
14963 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
14965         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
14966         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
14968 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
14970         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14971         Add support for AVX512F clones, include them by default for
14972         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
14973         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
14974         up to 128.
14976         PR middle-end/70550
14977         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
14978         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
14979         firstprivate clauses.
14980         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
14981         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
14982         (lower_omp_target): Set TREE_NO_WARNING for
14983         non-addressable possibly uninitialized vars which are copied into
14984         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
14986 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
14988         * config/pa/predicates.md (integer_store_memory_operand): Accept
14989         REG+D operands with a large offset when reload_in_progress is true.
14990         (floating_point_store_memory_operand): Likewise.
14992 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
14994         PR c++/70336
14995         * match.pd (nested int casts): Limit to GIMPLE.
14997 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
14999         PR ipa/66223
15000         * ipa-devirt.c (maybe_record_node): Fix comment; use
15001         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
15003 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
15005         PR rtl-optimization/70542
15006         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
15007         if there are any uses other than insn or debug insns.
15009 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
15010             Jakub Jelinek  <jakub@redhat.com>
15012         PR tree-optimization/70509
15013         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
15014         Shift HOST_WIDE_INT_1U instead of 1.
15016 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
15018         PR tree-optimization/70509
15019         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
15020         of the vector base type for index.
15022 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
15024         PR target/70510
15025         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
15027 2016-04-05  Richard Biener  <rguenther@suse.de>
15029         PR tree-optimization/70526
15030         * tree-sra.c (build_ref_for_offset): Use prev_base to
15031         extract the alias pointer type.
15033 2016-04-05  Richard Biener  <rguenther@suse.de>
15035         * dse.c (struct store_info): Remove alias_set member.
15036         (struct read_info_type): Likewise.
15037         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
15038         spill_deleted, clear_alias_set_lookup): Remove.
15039         (get_group_info): Remove dead base == NULL_RTX case.
15040         (dse_step0): Remove initialization of removed variables.
15041         (delete_dead_store_insn): Reomve alias set dumping.
15042         (free_read_records): Remove alias_set handling.
15043         (canon_address): Remove alias_set_out parameter.
15044         (record_store): Remove spill_alias_set, it's always zero.
15045         (check_mem_read_rtx): Likewise.
15046         (dse_step2): Rename from ...
15047         (dse_step2_nospill): ... this.  Adjust.
15048         (scan_stores): Rename from ...
15049         (scan_stores_nospill): ... this.
15050         (scan_reads): Rename from ...
15051         (scan_reads_nospill): ... this.
15052         (scan_stores_spill, scan_reads_spill): Remove.
15053         (dse_step3_scan): Remove for_spills argument which is always false.
15054         (dse_step3): Likewise.
15055         (dse_step5): Rename from ...
15056         (dse_step5_nospill): ... this.  Remove alias_set handling.
15057         (rest_of_handle_dse): Adjust.
15059 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
15061         PR target/70525
15062         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
15063         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
15064         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
15065         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
15067 2016-04-05  Richard Biener  <rguenther@suse.de>
15069         PR middle-end/70499
15070         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
15071         non-register type temporaries into SSA.
15073 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
15075         PR ipa/66223
15076         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
15077         calls when sanitizing.
15078         (possible_polymorphic_call_target_p): Fix formatting.
15080 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15081             Jakub Jelinek <jakub@redhat.com>
15083         PR middle-end/70457
15084         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
15085         to ensure a call statement is compatible with a built-in's
15086         prototype.
15087         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
15088         Likewise.
15090 2016-04-04  Richard Biener  <rguenther@suse.de>
15092         PR rtl-optimization/70484
15093         * rtl.h (canon_output_dependence): Declare.
15094         * alias.c (canon_output_dependence): New function.
15095         * dse.c (record_store): Use canon_output_dependence rather
15096         than canon_true_dependence.
15098 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
15100         PR ipa/68881
15101         * cgraph.h (symtab_node::copy_visibility_from): New function.
15102         * symtab.c (symtab_node::copy_visibility_from): New function.
15103         * ipa-visibility.c (optimize_weakref): New function.
15104         (function_and_variable_visibility): Use it.
15106 2016-04-04  Martin Liska  <mliska@suse.cz>
15108         PR hsa/70402
15109         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
15110         value that is really in range handled by SBR instruction.
15111         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
15112         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
15113         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
15115 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
15117         PR target/70416
15118         PR target/67391
15119         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
15120         set, but not for SP_REG operands.
15122 2016-04-02  Martin Sebor  <msebor@redhat.com>
15124         PR c++/67376
15125         * fold-const.c (maybe_nonzero_address): New function.
15126         (fold_comparison): Call it.  Fold equality and relational
15127         expressions involving null pointers.
15128         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
15130 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
15132         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
15133         the "Y" constraint (scalar FP 0.0 immediate).
15135         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
15136         Add the "const_double" to the list of operand constraints.
15138 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
15140         PR rtl-optimization/70467
15141         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
15142         If low word of the last operand is 0, just emit addition/subtraction
15143         for the high word.
15145 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15147         PR target/70404
15148         * config/s390/s390.c (s390_expand_insv): Check for everything
15149         constant instead of just VOIDmode stuff.
15151 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15153         PR target/70496
15154         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
15156 2016-04-01  Nathan Sidwell  <nathan@acm.org>
15158         * tree.def (TRY_CATCH_EXPR): Correct documentation.
15160 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
15162         PR rtl-optimization/70461
15163         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
15164         is necessary.
15166 2016-03-31  Martin Liska  <mliska@suse.cz>
15168         PR hsa/70399
15169         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
15170         a tree value or an immediate integer value to a buffer
15171         that is eventually copied to a BRIG section.
15172         (emit_immediate_operand): Call the function here.
15173         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
15174         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
15175         of class' fields that are removed.
15176         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
15177         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
15178         m_brig_repr_size fields.
15180 2016-03-31  Martin Liska  <mliska@suse.cz>
15182         PR hsa/70391
15183         * hsa-gen.c (hsa_function_representation::update_dominance): New
15184         function.
15185         (convert_addr_to_flat_segment): Likewise.
15186         (gen_hsa_memory_set): New alignment argument.
15187         (gen_hsa_ctor_assignment): Likewise.
15188         (gen_hsa_insns_for_single_assignment): Provide alignment
15189         to gen_hsa_ctor_assignment.
15190         (gen_hsa_insns_for_direct_call): Add new argument.
15191         (expand_lhs_of_string_op): New function.
15192         (expand_string_operation_builtin): Likewise.
15193         (expand_memory_copy): New function.
15194         (expand_memory_set): New function.
15195         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
15196         (convert_switch_statements): Change signature.
15197         (generate_hsa): Use a return value of the function.
15198         (pass_gen_hsail::execute): Do not call
15199         convert_switch_statements here.
15200         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
15201         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
15202         (hsa_function_representation::update_dominance): New function.
15204 2016-03-31  Martin Liska  <mliska@suse.cz>
15206         PR hsa/70391
15207         * hsa-brig.c (emit_directive_variable): Emit alignment
15208         according to hsa_symbol::m_align.
15209         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
15210         (dump_hsa_symbol): Dump alignment of HSA symbols.
15211         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
15212         (gen_hsa_addr_with_align): New function.
15213         (hsa_bitmemref_alignment): Use newly added function.
15214         (gen_hsa_insns_for_load): Likewise.
15215         (gen_hsa_insns_for_store): Likewise.
15216         (gen_hsa_memory_copy): New argument added.
15217         (gen_hsa_insns_for_single_assignment): Respect
15218         alignment for assignments processed via gen_hsa_memory_copy.
15219         (gen_hsa_insns_for_direct_call): Likewise.
15220         (gen_hsa_insns_for_return): Likewise.
15221         (gen_function_def_parameters): Set default alignment.
15222         * hsa.c (hsa_object_alignment): New function.
15223         (hsa_byte_alignment): Pasted function.
15224         * hsa.h (hsa_symbol::m_align): New field.
15226 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
15228         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
15229         scratch field for goto case.
15231 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
15233         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
15235 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
15237         PR target/70442
15238         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
15239         (scalar_chain::convert_insn): Call convert_op for reg
15240         moves to handle undefined registers.
15242 2016-03-31  Nathan Sidwell  <nathan@acm.org>
15244         PR c++/70393
15245         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
15246         Assert we don't want to move backwards.
15248 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
15250         PR target/70453
15251         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
15253 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
15255         PR rtl-optimization/70460
15256         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
15257         with operand from REG_LABEL_OPERAND, instead substitute
15258         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
15259         Don't do anything for REG_NON_LOCAL_GOTO jumps.
15261 2016-03-31  Martin Liska  <mliska@suse.cz>
15263         * passes.c (execute_one_pass): Do not call
15264         todo_after for a discarded function.
15266 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
15268         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
15269         (no_cost, infinite_cost): Initialize the new field.
15270         (get_computation_cost_at): Record setup cost.
15271         (determine_use_iv_cost_address): Skip cost computation for sub
15272         uses if we can estimate it without losing accuracy.
15274 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
15276         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
15277         estimates here.
15278         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
15279         max_loop_iterations_int.
15280         (tree_unswitch_outer_loop): Likewise.
15281         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
15282         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
15284 2016-03-30  Richard Biener  <rguenther@suse.de>
15286         PR middle-end/70450
15287         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
15289 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
15291         PR target/70421
15292         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
15293         in gen_blendm expander.
15295 2016-03-30  Nick Clifton  <nickc@redhat.com>
15297         PR target/62254
15298         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
15299         case where we are already provided with an SImode SUBREG.
15301 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15303         PR target/70439
15304         * config/i386/i386.c (ix86_expand_epilogue): Properly check
15305         conflict between DRAP register and __builtin_eh_return.
15307 2016-03-30  Michael Matz  <matz@suse.de>
15308             Richard Biener  <rguenther@suse.de>
15310         PR ipa/12392
15311         * ipa-polymorphic-call.c (struct type_change_info): Change
15312         speculative to an unsigned allowing to limit the work we do.
15313         (csftc_abort_walking_p): New inline function..
15314         (check_stmt_for_type_change): Limit the number of may-defs
15315         skipped for speculative devirtualization to
15316         max-speculative-devirt-maydefs.
15317         * params.def (max-speculative-devirt-maydefs): New param.
15318         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
15320 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
15322         PR target/63890
15323         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
15324         and TARGET_MACHO.
15326 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
15328         PR tree-optimization/59124
15329         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
15330         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
15332 2016-03-29  Jeff Law  <law@redhat.com>
15334         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
15336 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
15338         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
15339         to HOST_WIDE_INT.
15341 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
15343         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
15344         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
15345         gcrt0.o if linking dynamically.
15347 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
15349         PR ipa/70283
15350         * ipa-devirt.c (methods_equal_p): New function.
15351         (compare_virtual_tables): Use it.
15352         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
15353         * cgraphclones.c (clone_function_name_1): Use
15354         symbol_table::symbol_suffix_separator.
15355         * coverage.c (build_var): Likewise.
15356         * symtab.c (symbol_table::symbol_suffix_separator): New.
15358 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
15360         PR rtl-optimization/70429
15361         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
15362         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
15363         mode != result_mode.
15365         PR c++/70353
15366         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
15368         PR tree-optimization/70405
15369         * ssa-iterators.h (num_imm_uses): Add missing braces.
15371 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15373         PR rtl-optimization/68695
15374         * ira-color.c (allocno_copy_cost_saving): New.
15375         (improve_allocation): Use it.
15377 2016-03-29  Richard Henderson  <rth@redhat.com>
15379         PR middle-end/70355
15380         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
15382 2016-03-29  Richard Biener  <rguenther@suse.de>
15384         PR middle-end/70424
15385         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
15386         use alignment returned by get_pointer_alignment_1 if it is
15387         bigger than BITS_PER_UNIT.
15388         * builtins.c (get_pointer_alignment_1): Do not return true
15389         for alignment extracted from SSA info.
15391 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
15393         * config/ft32/ft32.opt (mnodiv): New.
15394         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
15395         * doc/invoke.texi (FT32 Options -mnodiv): New.
15397 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
15399         PR target/70406
15400         * config/i386/i386.md (define_split, andn): Fix modes.
15402 2016-03-26  Richard Biener  <rguenther@suse.de>
15403             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15405         PR ipa/70366
15406         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
15407         instead of
15408         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
15409         as 2nd argument to cl_optimization_restore().
15411 2016-03-25  Richard Henderson  <rth@redhat.com>
15413         PR target/70120
15414         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
15415         * config/aarch64/aarch64-protos.h: Declare it.
15416         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
15418 2016-03-25  Alan Modra  <amodra@gmail.com>
15420         PR target/70052
15421         * config/rs6000/constraints.md (j): Simplify.
15422         * config/rs6000/predicates.md (easy_fp_constant): Exclude
15423         decimal float 0.D.
15424         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
15425         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
15426          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
15427         in all constraint alternatives.
15428         (movtd_64bit_nodm): Delete "j" constraint alternative.
15430 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
15432         * tree-ssa-propagate.c: Enhance docs for
15433         SSA_PROP_NOT_INTERESTING.
15435 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
15437         * doc/extend.texi: Fix typo in documentation to pure attribute.
15439 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
15441         PR target/70319
15442         * config/pa/pa.md (bswapdi2): Use a scratch register.
15444 2016-03-24  Richard Henderson  <rth@redhat.com>
15446         PR middle-end/69845
15447         * fold-const.c (extract_muldiv_1): Correct test for multiplication
15448         overflow.
15450 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
15452         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
15453         using ix86_expand_binary_operator instead of gen_andsi3.
15455 2016-03-24  Richard Biener  <rguenther@suse.de>
15457         PR tree-optimization/70396
15458         * tree-vect-stmts.c (vectorizable_comparison): Use
15459         get_vectype_for_scalar_type.
15461 2016-03-24  Richard Biener  <rguenther@suse.de>
15463         PR middle-end/70370
15464         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
15465         with register bases.
15467 2016-03-24  Richard Biener  <rguenther@suse.de>
15469         PR tree-optimization/70372
15470         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
15471         build_all_ones_cst to also handle vector types correctly.
15473 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15475         PR target/70381
15476         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
15477         -mfloat128 here.
15479 2016-03-23  Marek Polacek  <polacek@redhat.com>
15481         PR c++/69884
15482         * doc/invoke.texi: Document -Wignored-attributes.
15484 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
15486         PR tree-optimization/69042
15487         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
15488         parameter from 30 to 40.
15490 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
15492         PR tree-optimization/69042
15493         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
15494         for use with constant offset stripped in base.
15496 2016-03-23  Richard Biener  <rguenther@suse.de>
15498         PR middle-end/70251
15499         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
15500         mode compatibility check.
15501         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15503 2016-03-23  Jeff Law  <law@redhat.com>
15505         PR tree-optimization/64058
15506         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
15507         CONFLICT_COUNT.
15508         (struct ssa_conflicts): Move up earlier in the file.
15509         (conflicts_, var_map_): New static variables.
15510         (initialize_conflict_count): New function to initialize the
15511         CONFLICT_COUNT field for each conflict pair.
15512         (compare_pairs): Lazily initialize the conflict count and use it
15513         as the first tie-breaker.
15514         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
15515         and wipe conflicts_ and map_ around the call to qsort.  Remove
15516         special case for 2 coalesce pairs.
15517         * bitmap.c (bitmap_count_unique_bits): New function.
15518         (bitmap_count_bits_in_word): New function, extracted from
15519         bitmap_count_bits.
15520         (bitmap_count_bits): Use bitmap_count_bits_in_word.
15521         * bitmap.h (bitmap_count_unique_bits): Declare it.
15523 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
15525         PR target/69917
15526         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
15527         transparent alias chain for decl assembler name.
15528         * config/sol2.c (solaris_assemble_visibility): Likewise.
15530 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15532         * config/arm/arm1020e.md (1020call_op): Reduce reservation
15533         duration.
15534         (v10_fdivs): Likewise.
15535         (v10_fdivd): Likewise.
15537 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15539         PR driver/70132
15540         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
15541         to not call fclose twice on file.
15543 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
15545         PR tree-optimization/70354
15546         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
15547         oprnd0 is wider than oprnd1 and there is a cast from the wider
15548         type to oprnd1, mask it with the mask of the narrower type.
15550         PR target/70321
15551         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
15552         Optimize TARGET_STV splitters, if high or low word of last argument
15553         is 0 or -1.
15555 2016-03-22  Jeff Law  <law@redhat.com>
15557         PR target/70232
15558         tree-ssa-threadbackward.c
15559         (fsm_find_control_statement_thread_paths): Correctly distinguish
15560         between old style jump threads vs FSM jump threads.
15562 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
15564         PR target/70302
15565         * config/i386/i386.c (scalar_chain::convert_op): Support
15566         uninitialized register usage case.
15568 2016-03-22  Richard Biener  <rguenther@suse.de>
15570         PR middle-end/70251
15571         * genmatch.c (gen_transform): Adjust last parameter to a three-state
15572         int...
15573         (capture::gen_transform): ... to change behavior when substituting
15574         a condition into cond or not-cond expr context.
15575         (dt_simplify::gen_1): Adjust.
15576         * gimple-match-head.c: Include gimplify.h for unshare_expr.
15577         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
15578         last change and instead change to
15579         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
15580         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15582 2016-03-22  Anthony Green  <green@moxielogic.com>
15584         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
15585         issue for moxiebox targets.
15586         (CC1PLUS_SPEC): Ditto.
15588 2016-03-22  Richard Biener  <rguenther@suse.de>
15590         PR middle-end/70333
15591         * fold-const.c (extract_muldiv_1): Properly perform multiplication
15592         in the wide type.
15594 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
15596         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
15598 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
15600         PR target/70325
15601         * config/i386/i386.c (def_builtin): Handle
15602         OPTION_MASK_ISA_AVX512VL to be and-ed with other
15603         bits.
15604         (const struct builtin_description bdesc_special_args[]):
15605         Remove duplicate ISA bits.
15607 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
15609         PR target/70329
15610         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
15611         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
15612         in a way that works also for AVX512BW.
15614         PR target/70300
15615         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
15616         instead of source if operands[1] is xmm16 and above and
15617         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
15618         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
15620         PR c++/70295
15621         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
15622         on assign if (*from_p) is a comparison, set it to
15623         TREE_NO_WARNING (*from_p).
15625 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
15627         PR middle-end/70326
15628         * lra.c (restore_scratches): Ignore deleted insns.
15630 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
15631             Jakub Jelinek  <jakub@redhat.com>
15633         PR tree-optimization/70317
15634         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
15635         to HONOR_NANS.
15637 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
15639         PR target/70327
15640         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
15641         of ix86_expand_move.
15642         (movoi): Ditto.
15643         (movti): Use general_operand for operand 1 predicate.
15645 2016-03-21  Martin Liska  <mliska@suse.cz>
15647         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
15648         insns.
15649         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
15651 2016-03-21  Martin Liska  <mliska@suse.cz>
15653         PR ipa/70306
15654         * ipa-icf.c (sem_function::parse): Skip static
15655         constructors and destructors.
15657 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
15659         PR target/70296
15660         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
15661         function-like macro, peek following token(s) if it is followed
15662         by CPP_OPEN_PAREN token with optional padding in between, and
15663         if not, don't treat it like a macro.
15665 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15666             Alexander Monakov  <amonakov@ispras.ru>
15668         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
15669         for the stabs debug format.
15671 2016-03-21  Richard Biener  <rguenther@suse.de>
15673         PR tree-optimization/70310
15674         * tree-vect-generic.c (expand_vector_condition): Fold the built
15675         condition.
15677 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
15679         PR target/70293
15680         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
15681         Block third alternative for AVX-512VL target,
15683 2016-03-21  Martin Liska  <mliska@suse.cz>
15685         PR hsa/70234
15686         * hsa-brig.c (emit_function_directives): Mark unemitted
15687         global variables for emission.
15688         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
15689         (get_symbol_for_decl): Likewise.
15690         * hsa.h (struct hsa_symbol): New flag.
15692 2016-03-21  Richard Biener  <rguenther@suse.de>
15694         PR tree-optimization/70288
15695         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
15696         we do not estimate unsimplified all-constant conditionals or
15697         switches as optimized away.
15699 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
15701         PR rtl-optimization/69102
15702         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
15703         when we have a readonly dependency context.
15705 2016-03-18  Jeff Law  <law@redhat.com>
15707         PR rtl-optimization/70263
15708         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
15709         (update_equiv_regs): When trying to move a store to after the insn
15710         that sets the source of the store, make sure the store occurs after
15711         the insn that sets the source of the store.  When successful note
15712         the REG_EQUIV note created in the dump file.
15714 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
15715             Bernd Schmidt  <bschmidt@redhat.com>
15717         * doc/extend.texi: Document more potential problems with basic asms.
15719 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
15721         PR rtl-optimization/70278
15722         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
15723         VOIDmode.
15725 2016-03-18  Jason Merrill  <jason@redhat.com>
15727         * calls.c (load_register_parameters): Fix zero size sibcall logic.
15729 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
15731         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
15732         values to 128b regs.
15734 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15736         PR tree-optimization/70252
15737         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
15738         boolean vector has a proper number of elements.
15739         (supportable_narrowing_operation): Likewise.
15741 2016-03-18  Tom de Vries  <tom@codesourcery.com>
15743         PR ipa/70269
15744         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
15746 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
15748         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
15749         instead of replace_rtx for DEBUG_INSNs.
15751 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15753         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
15754         load type reservations.
15756 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
15758         PR target/70188
15759         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
15760         define_constraint for "Q" and "T" constraints.
15762 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
15764         Tweak the pipeline model for Exynos M1
15766         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
15767         model.
15769 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
15771         PR c/70264
15772         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
15773         where one or both locations aren't within a line_map.
15775 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15777         PR driver/70192
15778         * opts.c (finish_options): Don't set flag_pie to the default if
15779         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
15780         if it is -1.
15782 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
15784         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
15785         true as ALL_REGS argument to replace_rtx.
15787 2016-03-17  Richard Biener  <rguenther@suse.de>
15789         PR debug/70271
15790         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
15791         last.
15793 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
15795         PR target/70245
15796         * rtl.h (replace_rtx): Add ALL_REGS argument.
15797         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
15798         equality and assert mode is the same, instead of just rtx pointer
15799         equality.
15800         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
15801         true as ALL_REGS argument to replace_rtx.
15803 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
15805         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
15806         for boolean vector with vector mode only.
15807         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15809 2016-03-17  Nick Clifton  <nickc@redhat.com>
15811         PR target/70162
15812         * config/rx/rx.c (rx_print_integer): Print negative constants in
15813         decimal.
15815 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
15817         PR target/70261
15818         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
15820 2016-03-16  Richard Henderson  <rth@redhat.com>
15821             Richard Biener  <rguenth@suse.de>
15823         PR middle-end/70240
15824         PR middle-end/68215
15825         PR tree-opt/68714
15826         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
15827         first operand as is_gimple_condexpr.
15829         PR middle-end/70240
15830         PR middle-end/68215
15831         Revert r231575
15832         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
15833         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
15834         Do not gimplify the result.
15835         (do_unop): Adjust call to tree_vec_extract.
15836         (do_binop): Likewise.
15837         (do_compare): Likewise.
15838         (do_plus_minus): Likewise.
15839         (do_negate): Likewise.
15840         (expand_vector_condition): Likewise.
15841         (do_cond): Likewise.
15843 2016-03-16  Richard Henderson  <rth@redhat.com>
15845         PR target/70048
15846         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
15847         (aarch64_classify_address): Use it.
15848         (aarch64_legitimize_address): Force all subexpressions of PLUS
15849         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
15851 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
15852             Richard Biener  <rguenth@suse.de>
15854         PR target/70245
15855         * rtlanal.c (replace_rtx): For REG, if from is a REG,
15856         return to even if only REGNO is equal, and assert
15857         mode is the same.
15859 2016-03-11  Jeff Law  <law@redhat.com>
15861         PR rtl-optimization/70224
15862         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
15864 2016-03-16  Richard Henderson  <rth@redhat.com>
15866         PR middle-end/70199
15867         * function.h (struct function): Add has_forced_label_in_static.
15868         * gimplify.c (force_labels_r): Set it.
15869         * lto-streamer-in.c (input_struct_function_base): Read it.
15870         * lto-streamer-out.c (output_struct_function_base): Write it.
15871         * tree-inline.c (has_label_address_in_static_1): Remove.
15872         (copy_forbidden): Remove fndecl parameter; test
15873         has_forced_label_in_static.
15874         (inline_forbidden_p): Update call to copy_forbidden.
15875         (tree_versionable_function_p): Likewise.
15876         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
15877         (chkp_versioning): Likewise.
15878         * tree-inline.h (copy_forbidden): Update decl.
15880 2016-03-16  Marek Polacek  <polacek@redhat.com>
15882         PR c/70093
15883         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
15884         function being thunked if the result type doesn't have fixed size.
15885         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
15886         doesn't have fixed size.
15888 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
15890         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
15891         reporting malformed loop nest.
15893 2016-03-16  Tom de Vries  <tom@codesourcery.com>
15895         PR lto/70187
15896         * ipa-devirt.c (possible_polymorphic_call_targets): Move
15897         nodes.length () == 1 test to before first nodes[0] access.
15899 2016-03-16  Tom de Vries  <tom@codesourcery.com>
15901         PR tree-optimization/68715
15902         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
15903         single_pred_p test.
15905 2016-03-16  Tom de Vries  <tom@codesourcery.com>
15907         PR tree-optimization/68809
15908         * graphite-scop-detection.c (same_close_phi_node): Test if result types
15909         are the same.
15911 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
15912             Sandra Loosemore  <sandra@codesourcery.com>
15914         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
15915         on leaf attribute. Mention ELF interposition problems.
15917 2016-03-16  Alan Modra  <amodra@gmail.com>
15919         PR rtl-optimization/69195
15920         PR rtl-optimization/47992
15921         * ira.c (indirect_jump_optimize): Ignore artificial defs.
15922         Add comments.
15924 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
15926         PR bootstrap/69513
15927         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
15929 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15931         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
15933 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
15935         PR rtl-optimization/70222
15936         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
15937         optimization if mode is different from result_mode, queue up masking
15938         of the result in outer_op.  Formatting fix.
15940         PR middle-end/70239
15941         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
15942         of safe_grow.
15944 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15946         PR rtl-optimization/69032
15947         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
15948         looping backwards over basic block insns.
15950 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15952         PR target/66660
15953         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
15954         to non-speculative when propagating trap bits.
15956 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15958         PR rtl-optimization/63384
15959         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
15960         DEBUG_INSN_P insns.
15962 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15964         PR target/64411
15965         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
15966         factored out from ...
15967         (sched_analyze_insn): ... here.
15968         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
15969         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
15970         get_implicit_reg_pending_clobbers in it.
15971         (setup_id_reg_sets): Use setup_id_implicit_regs.
15972         (deps_init_id): Ditto.
15974 2016-03-15  Tom de Vries  <tom@codesourcery.com>
15976         PR ipa/70161
15977         * cgraph.c (cgraph_node::get_body): Save, reset and restore
15978         dump_file_name.
15979         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
15980         execute_function_dump.
15981         (execute_one_pass): Don't dump function if it will be dumped after ipa
15982         transform.
15984 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
15986         * genrecog.c (match_pattern_2): If pred is NULL don't call
15987         safe_predicate_mode on it.
15989 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
15991         PR middle-end/70219
15992         * lra-constraints.c (delete_move_and_clobber): Change assertion
15993         to also allow dregno == 0.
15995 2016-03-14  Richard Henderson  <rth@redhat.com>
15997         PR tree-opt/68714
15998         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
15999         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
16000         (reassociate_bb): Use optimize_vec_cond_expr; avoid
16001         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
16002         on vectors.
16004 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
16006         PR target/70083
16007         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
16008         regs.
16009         (lra_create_live_ranges_1): initialize hard register biggest_mode to
16010         VOIDmode.
16011         * lra-constraints.c (split_reg): For hard regs, try to find the
16012         biggest single-register mode used in the function.
16014 2016-03-14  Richard Biener  <rguenther@suse.de>
16016         PR tree-optimization/56365
16017         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
16018         constants to compare against.
16020 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
16022         PR target/70098
16023         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
16024         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
16025         (define_split for the GPR case): Use int_reg_operand instead of
16026         gpc_reg_operand for the output.
16028 2016-03-14  Tom de Vries  <tom@codesourcery.com>
16030         PR tree-optimization/70045
16031         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
16032         create_empty_if_region_on_edge argument.
16034 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
16036         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
16037         (STACK_CHECK_PROTECT): Likewise.
16038         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
16039         (STACK_CHECK_PROTECT): Likewise.
16040         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
16041         (STACK_CHECK_PROTECT): Likewise.
16042         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
16043         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16044         (STACK_CHECK_PROTECT): Likewise.
16046 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
16048         PR rtl-optimization/69307
16049         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
16050         registers in modes that span more than one register.
16052 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
16054         PR target/69614
16055         * lra-constraints.c (delete_move_and_clobber): New.
16056         (remove_inheritance_pseudos): Use it.
16058 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
16060         PR ada/70017
16061         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
16062         the libcall is LCT_THROW.
16063         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
16064         for the checking routine.
16066 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16068         PR target/70131
16069         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
16070         optimization if we have direct move.
16071         (roundu32<mode>2_fprs): Likewise.
16073 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
16075         PR target/70123
16076         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
16077         be rematerialized.
16078         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
16079         Arguments swapped.  All callers changed.  Take reg_renumber into
16080         account, and Calculate and compare register ranges for hard regs.
16082 2016-03-11  Jeff Law  <law@redhat.com>
16084         PR tree-optimization/70190
16085         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16086         Handle cases where we can not extract the taken edge, even though we
16087         found a constant value.
16089         PR tree-optimization/64058
16090         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
16091         (num_coalesce_pairs): Move up earlier in file.
16092         (find_coalesce_pair): Initialize the INDEX field for each pair
16093         discovered.
16094         (compare_pairs): No longer sort on the elements in each pair.
16095         Instead break ties with the index of the coalesce pair.
16097 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16099         PR target/70002
16100         * config/aarch64/aarch64-protos.h
16101         (aarch64_save_restore_target_globals): New prototype.
16102         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
16103         Call the above when popping pragma.
16104         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
16105         New function.
16106         (aarch64_set_current_function): Rewrite using the above.
16108 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
16110         PR tree-optimization/70177
16111         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
16112         (extract_ops_from_tree): ... this.  In the 2 argument
16113         overload remove _1 suffix.
16114         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
16115         (extract_ops_from_tree): ... this.
16116         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
16117         Adjust callers.
16118         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
16119         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
16120         extract_ops_from_tree instead of 2 operand one.
16122 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
16124         PR tree-optimization/70013
16125         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
16126         for constant-pool entries.
16128 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
16130         PR rtl-optimization/70174
16131         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
16132         followed by gen_lowpart on force_reg instead of just gen_lowpart.
16134         PR tree-optimization/70169
16135         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
16136         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
16137         for unknown codes.
16139 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
16140             Jakub Jelinek  <jakub@redhat.com>
16142         PR target/70160
16143         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
16144         of uninitialized values.
16146 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16148         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
16149         define_expand.
16150         ("*trunctddd2"): New pattern definition.
16151         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
16152         TD->DD truncation.
16154 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16156         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
16157         definitions for BFP and DFP rounding modes.
16158         ("fixuns_truncdddi2", "fixuns_trunctddi2")
16159         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
16160         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
16161         ("fix_trunctf<mode>2"): Use the new constants instead of magic
16162         numbers.
16164 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16166         * config/s390/constraints.md: Adjust comment.
16167         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
16168         s390_decompose_addrstyle_without_index.
16169         * config/s390/predicates.md (shift_count_or_setmem_operand):
16170         Rename to setmem_operand.
16171         * config/s390/s390-protos.h
16172         (s390_decompose_shift_count): Rename to
16173         s390_decompose_addrstyle_without_index.
16174         * config/s390/s390.c (s390_decompose_shift_count)
16175         (s390_mem_constraint, print_shift_count_operand)
16176         (print_operand_address, print_operand): Rename
16177         s390_decompose_shift_count to
16178         s390_decompose_addrstyle_without_index and rename
16179         print_shift_count_operand to print_addrstyle_operand troughout the
16180         file.
16181         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
16182         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
16183         Rename shift_count_or_setmem_operand to setmem_operand.
16184         * config/s390/vx-builtins.md ("vec_insert<mode>")
16185         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
16186         nonmemory_operand.
16188 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16190         PR target/70168
16191         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16192         Handle overlapping retval and newval.
16194 2016-03-10  Nick Clifton  <nickc@redhat.com>
16196         PR target/7044
16197         * config/aarch64/aarch64.c
16198         (aarch64_override_options_after_change_1): When forcing
16199         flag_omit_frame_pointer to be true, use a special value that can
16200         be detected if this function is called again, thus preventing
16201         flag_omit_leaf_frame_pointer from being forced to be false.
16203 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16205         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16206         Set x_flag_omit_leaf_frame_pointer when handling
16207         -momit-leaf-frame-pointer.
16209 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16211         PR lto/69589
16212         * cgraph.c (cgraph_node::dump): Dump split_part and
16213         indirect_call_target.
16214         * cgraph.h (cgraph_node): Add indirect_call_target flag.
16215         * ipa.c (has_addr_references_p): Cleanup.
16216         (is_indirect_call_target_p): New.
16217         (walk_polymorphic_call_targets): Do not mark virtuals that may be
16218         called indirectly as local.
16219         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
16221 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16223         PR ipa/69630
16224         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
16225         on cxa_pure_virtual.
16227 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16229         PR lto/69589
16230         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
16232 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16234         PR lto/69589
16235         * tree.c (need_assembler_name_p): Only record main variant type names.
16237 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
16239         PR target/70113.
16240         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
16241         Always define to 0 or 1.
16242         (TARGET_FIX_ERR_A53_843419): New macro.
16243         * config/aarch64/aarch64-elf-raw.h
16244         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
16245         * config/aarch64/aarch64-linux.h: Likewise.
16246         * config/aarch64/aarch64.c
16247         (aarch64_override_options_after_change_1): Do not default
16248         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
16249         843419 is on.
16250         (aarch64_attributes): Handle fix-cortex-a53-843419.
16251         (aarch64_can_inline_p): Likewise.
16252         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
16254 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
16255         Jakub Jelinek <jakub@redhat.com>
16257         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
16258         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
16259         DECL_COMMONS if flag_unconstrained_commons is set.
16260         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16261         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
16262         (funconstrained-commons): Document.
16264 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
16266         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
16267         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
16269 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
16271         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
16272         has a proper number of elements.
16274 2016-03-10  Alan Modra  <amodra@gmail.com>
16276         PR rtl-optimization/69195
16277         PR rtl-optimization/47992
16278         * ira.c (recorded_label_ref): Delete.
16279         (update_equiv_regs): Return void.
16280         (indirect_jump_optimize): New function.
16281         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
16282         before regstat_compute_ri.  Don't rebuild_jump_labels here.
16283         Delete update_regstat.
16285 2016-03-10  Richard Biener  <rguenther@suse.de>
16287         PR tree-optimization/70128
16288         * tree-ssa-structalias.c (set_uids_in_ptset): Set
16289         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
16291 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
16293         PR tree-optimization/70152
16294         * tree-sra.c (replace_removed_params_ssa_names): Copy over
16295         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
16297         PR target/70086
16298         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
16299         instead of gen_sse2_loadlpd.
16300         * config/i386/sse.md (*vec_concatv2df): Rename to...
16301         (vec_concatv2df): ... this.
16303         PR tree-optimization/70127
16304         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
16306 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
16308         PR c/68473
16309         PR c++/70105
16310         * diagnostic-show-locus.c (compatible_locations_p): New function.
16311         (layout::layout): Sanitize ranges using compatible_locations_p.
16313 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
16315         PR c/68473
16316         PR c++/70105
16317         * diagnostic-show-locus.c (layout_range::layout_range): Replace
16318         location_range param with three const expanded_locations * and a
16319         bool.
16320         (layout::layout): Replace call to
16321         rich_location::lazily_expand_location with get_expanded_location.
16322         Extract the range and perform location expansion here, passing
16323         the results to the layout_range ctor.
16324         * diagnostic.c (source_range::debug): Delete.
16325         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
16326         of rich_location::get_expanded_location.
16327         * gcc-rich-location.c (get_range_for_expr): Delete.
16328         (gcc_rich_location::add_expr): Reimplement to avoid the
16329         rich_location::add_range overload that took a location_range,
16330         passing a location_t instead.
16332 2016-03-09  Richard Biener  <rguenther@suse.de>
16333         Jakub Jelinek  <jakub@redhat.com>
16335         PR tree-optimization/70138
16336         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
16337         Also skip vect_double_reduction_def.
16339 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
16341         PR target/70049
16342         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
16343         if the operand is "m".
16345 2016-03-09  Nathan Sidwell  <nathan@acm.org>
16347         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
16349 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16351         * config/i386/i386.c (processor_target_table): Fix cost table
16352         intialization order for znver1.
16354 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
16356         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
16357         - becuase -> because.
16358         * ipa-reference.c (ignore_module_statics): Likewise.
16359         * cgraph.c (cgraph_node::get_body): Likewise.
16360         * ipa-inline.c (early_inliner): Likewise.
16361         * ipa-devirt.c (types_same_for_odr): Likewise.
16362         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
16363         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
16365 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16367         * tree-ssa-math-opts.c: Fix typo in comment.
16369 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
16371         PR target/70110
16372         * config/i386/i386.c (scalar_chain::make_vector_copies,
16373         scalar_chain::convert_reg): Call end_sequence in between
16374         get_insns and emit_conversion_insns rather than after both
16375         calls.
16377 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
16379         PR target/70064
16380         * config/i386/i386.h (machine_function): Add
16381         pc_thunk_call_expanded flag.
16382         (ix86_pc_thunk_call_expanded): New define.
16383         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
16384         (*set_got): Rename insn pattern from set_got.
16385         (*set_got_labelled): Rename inst pattern from set_got_labelled.
16386         * config/i386/i386.c (ix86_compute_frame_layout): Use
16387         ix86_pc_thunk_call_expanded to prevent red-zone.
16389 2016-03-07  Martin Jambor  <mjambor@suse.cz>
16391         * hsa.h (hsa_get_ctor_statements): Declare.
16392         (hsa_get_dtor_statements): Likewise.
16393         (hsa_get_kernel_dispatch_type): Likewise.
16394         * hsa.c (hsa_get_ctor_statements): New function.
16395         (hsa_get_dtor_statements): Likewise.
16396         (hsa_get_kernel_dispatch_type): Likewise.
16397         * hsa-brig.c (hsa_cdtor_statements): Removed.
16398         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
16399         hsa_get_dtor_statements.
16400         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
16401         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
16403 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16405         * config/arm/arm-cores.def (cortex-r8): New.
16406         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
16407         * config/arm/arm-tune.md: Likewise.
16408         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
16410 2016-03-07  Martin Sebor  <msebor@redhat.com>
16412         PR rtl-optimization/19705
16413         * doc/invoke.texi (Options That Control Optimization): Clarify
16414         -fno-branch-count-reg.
16416 2016-02-26  Richard Biener  <rguenther@suse.de>
16417             Jeff Law  <law@redhat.com>
16419         PR tree-optimization/69740
16420         * cfghooks.c (remove_edge): Request loop fixups if we delete
16421         an edge that might turn an irreducible loop into a natural
16422         loop.
16423         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
16424         Move after definition of loops_state_clear.
16426 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
16428         PR rtl-optimization/69052
16429         * rtlanal.c (commutative_operand_precedence): Set higher precedence
16430         to CONST_WIDE_INT.
16432 2016-03-07  Tom de Vries  <tom@codesourcery.com>
16434         PR tree-optimization/70116
16435         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
16436         is_tm_ending stmts and ubsan/asan internal functions.
16437         (find_duplicate): Use it.  Don't test is_tm_ending here.
16439 2016-03-07  Richard Biener  <rguenther@suse.de>
16441         PR tree-optimization/70115
16442         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
16443         (propagate_constants_for_unrolling): Use replace_uses_by.
16445 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
16447         PR middle-end/69916
16448         * omp-low.c (struct oacc_loop): Add ifns.
16449         (new_oacc_loop_raw): Initialize it.
16450         (finish_oacc_loop): Clear mask & flags if no ifns.
16451         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
16452         (oacc_loop_xform_loop): Add ifns arg & adjust.
16453         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
16455 2016-03-07  Richard Henderson  <rth@redhat.com>
16457         PR rtl-opt/70061
16458         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
16459         (insert_value_copy_on_edge): Likewise.
16461 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16463         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
16465 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16467         PR target/62281
16468         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
16470 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16472         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
16474 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16476         Fix sseimul type attribute.
16477         * config/i386/znver1.md
16478         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
16479         znver1_sseimul_avx256_load) : Fix the type attribute.
16480         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
16481         pipe usage and latency.
16483 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
16485         PR c++/70084
16486         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
16487         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
16488         to the right type.
16490 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
16492         PR c/69973
16493         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
16495         PR rtl-optimization/69941
16496         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
16497         the reg share its mode.
16499 2016-03-04  Jeff Law  <law@redhat.com>
16501         PR tree-optimization/69196
16502         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16503         If the both SSA_NAMEs are anonymous, then consider them unassociated
16504         and include the PHI in the statement count.
16506 2016-03-05  Tom de Vries  <tom@codesourcery.com>
16508         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
16509         construct in oacc routine.  Check for oacc region in oacc routine.
16511 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
16513         PR target/70062
16514         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
16515         2016-02-22 changes, instead don't recurse if RECUR is already true.
16516         Don't change *dynamic_check if RECUR.  Adjust recursive caller
16517         to pass true to the new argument.
16518         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
16520         PR target/70059
16521         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
16522         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
16523         fixes.
16524         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
16526 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
16528         PR rtl-optimization/57676
16529         * lra-assigns.c (lra_assign): Guard test for maximum iterations
16530         with flag_checking.
16532 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
16534         * tree-vect-patterns.c (search_type_for_mask): Handle
16535         comparison of booleans.
16537 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
16539         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
16540         Fix @xref usage.
16542         PR debug/69947
16543         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
16544         all other ops that have dw_val_class_die_ref operands,
16545         and DW_OP_GNU_entry_value.
16547 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16549         PR rtl-optimization/69904
16550         * config/arm/arm.c (arm_cannot_copy_insn_p):
16551         Return true for load-exclusive instructions.
16553 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
16555         PR target/70021
16556         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
16557         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
16558         the pattern no matter if it is used just by non-pattern, pattern
16559         or mix thereof.
16560         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
16561         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
16562         oprnd1 def_stmt is in pattern, don't look through it.
16564 2016-03-03  Marek Polacek  <polacek@redhat.com>
16566         PR middle-end/70050
16567         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
16569 2016-03-03  Martin Liska  <mliska@suse.cz>
16571         PR tree-optimization/70043
16572         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
16573         previous statement if we see a debug statement.
16575 2016-03-03  Richard Biener  <rguenther@suse.de>
16577         PR tree-optimization/55936
16578         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
16579         parameter and guard unsafe equivalence use.
16580         (vrp_evaluate_conditional_warnv_with_ops): Always use
16581         safe equivalences but not via the quadratic compare_names
16582         helper.
16584 2016-03-03  Michael Collison  <michael.collison@linaro.org>
16586         PR target/70014
16587         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
16588         for operand 1 to s_register_operand. Change predicate for operand
16589         2 to arm_not_immediate_operand.
16591 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
16593         * doc/tm.texi: Regenerated.
16595 2016-03-02  Richard Henderson  <rth@redhat.com>
16597         PR rtl-opt/67145
16598         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
16599         simplification when all args are positive non-fixed registers.
16601 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16603         * target.def (lra_p): Specify that new ports should use LRA.
16605 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
16607         PR libgomp/69555
16608         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
16609         gimplify_type_sizes the type they refer to.
16610         (omp_notice_variable): Handle reference vars to VLAs.
16611         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
16612         reference to VLA decls in the second pass instead of first pass.
16614 2016-03-02  Tom de Vries  <tom@codesourcery.com>
16616         PR tree-optimization/68659
16617         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
16618         new_expr == NULL_TREE.
16619         (get_new_name): Handle ADDR_EXPR.
16621 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
16623         PR rtl-optimization/69052
16624         * loop-invariant.c (canonicalize_address): New function.
16625         (inv_can_prop_to_addr_use): Check validity of address expression
16626         which is canonicalized by above function.
16628 2016-03-02  Alan Modra  <amodra@gmail.com>
16630         PR ipa/69990
16631         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
16632         larger alignment.
16634 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
16636         PR target/70028
16637         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
16638         (*movhi_internal): Put mask moves from and to memory separately
16639         from moves from/to GPRs.
16641 2016-03-02  Richard Biener  <rguenther@suse.de>
16643         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
16644         GENERIC expressions in GIMPLE.
16646 2016-03-02  Richard Biener  <rguenther@suse.de>
16648         * config/i386/i386.c (type_natural_mode): Fix typo.
16650 2016-03-02  Nick Clifton  <nickc@redhat.com>
16652         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
16654 2016-03-02  Richard Biener  <rguenther@suse.de>
16655             Uros Bizjak  <ubizjak@gmail.com>
16657         PR target/67278
16658         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
16660 2016-03-02  Richard Biener  <rguenther@suse.de>
16662         PR middle-end/67278
16663         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
16665 2016-03-02  Marek Polacek  <polacek@redhat.com>
16667         PR c/67854
16668         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
16669         "is promoted to" warning.
16671 2016-03-01  DJ Delorie  <dj@redhat.com>
16673         * config.gcc: Deprecate mep-*.
16675 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
16677         PR middle-end/70025
16678         * lra-constraints.c (regno_val_use_in): New.
16679         (match_reload): Use it instead of regno_use_in.
16681 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
16683         PR rtl-optimization/70007
16684         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
16685         references present in REG_EQUAL notes attached to non-SET patterns.
16687 2016-03-01  Jeff Law  <law@redhat.com>
16689         PR tree-optimization/69196
16690         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16691         Appropriately clamp the number of statements to copy when the
16692         thread path does not traverse a loop backedge.
16694         PR tree-optimization/69196
16695         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16696         Do count some PHIs in the thread path against the insn count.  Decrease
16697         final statement count by one as the control statement in the last
16698         block will get removed.  Remove special cased code for handling PHIs
16699         in the last block.
16701 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
16703         PR target/70027
16704         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
16705         asm dialect alternatives to explicit GOTPCREL calls.
16707 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
16709         PR ada/70017
16710         * ira.c (do_reload): Issue warning for generic stack checking here...
16711         * reload1.c (reload): ...instead of here and streamline it.
16713 2016-03-01  Nick Clifton  <nickc@redhat.com>
16715         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
16717 2016-03-01  Richard Biener  <rguenther@suse.de>
16719         PR tree-optimization/69983
16720         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
16721         types and fall back to operand_equal_p.
16723 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16725         Revert
16726         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16728         * config/s390/constraints.md ("jm8"): New constraint.
16729         * config/s390/predicates.md ("const_int_8bitset_operand"): New
16730         predicate.
16731         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
16732         into ...
16733         ("*setmem_long<setmem_and>"): New pattern.
16734         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
16735         into ...
16736         ("*setmem_long_31z<setmem_and>"): New pattern.
16737         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
16738         New substitution rules with the required attributes.
16741 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16743         Revert
16744         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16746         * gensupport.c (process_substs_on_one_elem): Split loop to
16747         complete mark_operands_used_in_match_dup on all expressions in the
16748         vector first.
16749         (adjust_operands_numbers): Inline into process_substs_on_one_elem
16750         and remove function.
16752 2016-03-01  Richard Biener  <rguenther@suse.de>
16754         PR middle-end/70022
16755         * fold-const.c (fold_indirect_ref_1): Fix range checking for
16756         vector BIT_FIELD_REF extract.
16758 2016-03-01  Richard Biener  <rguenther@suse.de>
16760         PR tree-optimization/69994
16761         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
16763 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
16765         PR tree-optimization/69956
16766         * tree-vect-stmts.c (supportable_widening_operation): Support
16767         multi-step conversion of boolean vectors.
16768         (supportable_narrowing_operation): Likewise.
16770 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16772         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
16773         anymore.
16775 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16777         * config/s390/subst.md (DSI_VI): New mode iterator.
16778         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
16779         * config/s390/vector.md ("vec_set<mode>"): Move expander before
16780         the insn definition.
16781         ("*vec_set<mode>"): Change predicate and add alternative to
16782         support only either register or const_int operands as element
16783         selector.
16784         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
16785         operands.
16786         ("vec_extract<mode>"): New expander.
16787         ("*vec_extract<mode>"): New insn definition supporting reg and
16788         const_int element selectors.
16789         ("*vec_extract<mode>_plus"): New insn definition supporting
16790         reg+const_int element selectors.
16791         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
16792         following expander+insn definition.
16793         ("<vec_shifts_name><mode>3"): New expander.
16794         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
16796 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16798         * config/s390/s390.md ("*tabort_1"): Change predicate to
16799         nonmemory_operand.  Add a second alternative to cover
16800         register as well as const int operands.
16801         ("*tabort_1_plus"): New pattern definition.
16803 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16805         * config/s390/s390.md ("*ashrdi3_cc_31")
16806         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
16807         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
16808         Merge insn definitions into ...
16809         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
16810         New pattern definition.
16811         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
16812         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
16813         ("*ashr<mode>3_and"): Merge insn definitions into ...
16814         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
16815         New pattern definition.
16816         * config/s390/subst.md ("addr_style_op_cc_subst")
16817         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
16818         substitutions patterns plus attributes.
16819         Add ashiftrt to SUBST iterator.
16821 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16823         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
16824         op2 to nonmemory_operand.
16825         ("*<shift>di3_31", "*<shift>di3_31_and"):
16826         Merge into single pattern definition ...
16827         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
16828         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
16829         pattern definition ...
16830         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
16831         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
16832         iterator.
16834 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16836         * config/s390/predicates.md (const_int_6bitset_operand): New
16837         predicate.
16838         * config/s390/s390.md: Include subst.md.
16839         ("rotl<mode>3"): New expander.
16840         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
16841         ...
16842         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
16843         * config/s390/subst.md: New file.
16845 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16847         * config/s390/s390.md ("op_type", "atype", "length" attributes):
16848         Remove RRR type.  It doesn't really exist.
16849         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
16850         attributes.
16851         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
16852         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
16853         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
16854         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
16855         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
16856         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
16857         `enabled' attribute.
16859 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16861         * gensupport.c (process_substs_on_one_elem): Split loop to
16862         complete mark_operands_used_in_match_dup on all expressions in the
16863         vector first.
16864         (adjust_operands_numbers): Inline into process_substs_on_one_elem
16865         and remove function.
16867 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16869         PR target/69706
16870         * config/sparc/sparc.c (NWORDS_UP): Rename to...
16871         (CEIL_NWORDS): ...this.  Use CEIL macro.
16872         (compute_fp_layout): Adjust to above renaming.
16873         (function_arg_union_value): Likewise.
16874         (sparc_arg_partial_bytes): Likewise.
16875         (sparc_function_arg_advance): Likewise.
16877 2016-02-29  Jeff Law  <law@redhat.com>
16879         PR tree-optimization/70005
16880         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
16881         where an object with a boolean range is compared against a value
16882         outside [0..1].
16884         PR tree-optimization/69999
16885         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
16886         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
16887         loop cleanups.
16889 2016-02-29  Richard Biener  <rguenther@suse.de>
16891         PR tree-optimization/69994
16892         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
16893         (get_unary_op): Look through nop conversions.
16894         (ops_equal_values_p): New function, look for equality diregarding
16895         nop conversions.
16896         (eliminate_plus_minus_pair): Use ops_equal_values_p
16897         (repropagate_negates): Do not use get_unary_op here.
16899 2016-02-29  Martin Liska  <mliska@suse.cz>
16901         * system.h: Poison ENABLE_CHECKING macro.
16903 2016-02-29  Martin Liska  <mliska@suse.cz>
16905         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
16906         is presented in dump flags.
16907         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
16908         (hsa_regalloc): Likewise.
16910 2016-02-19  Richard Biener  <rguenther@suse.de>
16912         PR tree-optimization/69980
16913         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
16914         permutation of those we need to keep.
16916 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16918         PR target/69706
16919         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
16920         (NWORDS_UP): ...this
16921         (init_cumulative_args): Minor tweaks.
16922         (sparc_promote_function_mode): Likewise.
16923         (scan_record_type): Delete.
16924         (traverse_record_type): New function template.
16925         (classify_data_t): New structure type.
16926         (classify_registers): New inline function.
16927         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
16928         exhausted.  Instantiate traverse_record_type on classify_registers and
16929         deal with the case of a structure passed in slot #15 with no FP field
16930         in the first word.
16931         (assign_data_t): New structure type.
16932         (compute_int_layout): New static function.
16933         (compute_fp_layout): Likewise.
16934         (count_registers): New inline function.
16935         (assign_int_registers): New static function.
16936         (assign_fp_registers): Likewise.
16937         (assign_registers): New inline function.
16938         (function_arg_record_value_1): Delete.
16939         (function_arg_record_value_2): Likewise.
16940         (function_arg_record_value_3): Likewise.
16941         (function_arg_record_value): Adjust to above changes.  Instantiate
16942         traverse_record_type on count_registers to first count the number of
16943         registers to be used and then on assign_registers to assign them.
16944         (function_arg_union_value): Adjust to above renaming.
16945         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
16946         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
16947         case of a structure passed in slot #15
16948         (sparc_function_arg_advance): Likewise.
16949         (function_arg_padding): Minor tweak.
16951 2016-02-29  Richard Biener  <rguenther@suse.de>
16953         PR tree-optimization/69720
16954         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
16955         the adjustment_def path for possibly vectorized defs.
16956         (vect_create_epilog_for_reduction): Handle vectorized initial
16957         defs properly.
16959 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
16961         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
16963 2016-02-27  Jeff Law  <law@redhat.com>
16965         Revert
16966         2016-02-26  Richard Biener  <rguenther@suse.de>
16967                     Jeff Law  <law@redhat.com>
16969         PR tree-optimization/69740
16970         * cfghooks.c (remove_edge): Request loop fixups if we delete
16971         an edge that might turn an irreducible loop into a natural
16972         loop.
16974 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
16976         PR rtl-optimization/69896
16977         * tree-vect-generic.c (get_compute_type): Avoid single element
16978         vector types.
16980 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
16982         Rename the AArch64 tuning option and related functions to enable the
16983         Newton series for the reciprocal square root to reflect its
16984         approximative characteristic.
16986         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
16987         function to "aarch64_emit_approx_rsqrt".
16988         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
16989         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
16990         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
16991         (xgene1_tunings): Likewise.
16992         (use_rsqrt_p): Likewise.
16993         (aarch64_emit_swrsqrt): Use new function name.
16994         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
16995         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
16996         text explaining this option.
16997         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
16999 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
17001         PR target/69969
17002         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17003         complain about -mallow-movmisalign without -mvsx if
17004         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
17006 2016-02-26  Joel Sherrill  <joel@rtems.org>
17008         * config.gcc: Add x86_64-*-rtems*.
17009         * config/i386/rtems-64.h: New file.
17011 2016-02-26  Joel Sherrill  <joel@rtems.org>
17013         * config.gcc: Add aarch64-*-rtems*.
17014         * config/aarch64/rtems.h: New file.
17016 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
17018         PR target/69946
17019         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
17020         shift amount using %h.  Add comment.
17022 2016-02-26  Richard Biener  <rguenther@suse.de>
17023             Jeff Law  <law@redhat.com>
17025         PR tree-optimization/69740
17026         * cfghooks.c (remove_edge): Request loop fixups if we delete
17027         an edge that might turn an irreducible loop into a natural
17028         loop.
17030 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17032         PR middle-end/69920
17033         * tree-sra.c (sra_modify_assign): Do not remove loads of
17034         uninitialized aggregates to SSA_NAMEs.
17036 2016-02-26  Richard Henderson  <rth@redhat.com>
17038         PR target/69709
17039         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
17040         pseudo in case the target rtx matches the source of the left
17041         shift.
17043 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17045         PR hsa/69568
17046         * hsa.h (hsa_type_packed_p): Declare.
17047         * hsa.c (hsa_type_packed_p): New function.
17048         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
17049         loads.
17050         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
17051         * hsa-brig.c (emit_basic_insn): Likewise.
17053 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17055         pr hsa/69674
17056         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
17057         pointers.
17058         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
17060 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17062         * hsa.h (is_a_helper): New overload for hsa_op_immed for
17063         hsa_op_with_type operands.
17064         (hsa_unsigned_type_for_type): Declare.
17065         * hsa.c (hsa_unsigned_type_for_type): New function.
17066         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
17067         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
17068         the finalizer.  Do not emit extra move.
17070 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17072         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
17073         atomic operations in private segment.
17075 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17077         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
17078         statements to wi->info.  Also disallow omp simd constructs.
17079         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
17080         for not gridifying.  Dump special string for omp_for.
17082 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17084         PR target/69245
17085         * config/aarch64/aarch64.c (aarch64_set_current_function):
17086         Save/restore target globals when switching to
17087         target_option_default_node.
17089 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17091         PR target/69613
17092         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
17093         Return 0 if !SHIFT_COUNT_TRUNCATED.
17095 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
17096             Eric Botcazou  <ebotcazou@adacore.com>
17098         PR rtl-optimization/69891
17099         * dse.c (scan_insn): If we can't figure out memset arguments
17100         or they are non-constant, call clear_rhs_from_active_local_stores.
17102 2016-02-26  Martin Liska  <mliska@suse.cz>
17104         * doc/extend.texi: Mention clog10, clog10f an clog10l
17105         in Builtins section.
17107 2016-02-26  Martin Liska  <mliska@suse.cz>
17109         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
17110         CHECKING_P.
17111         (resolve_args_picking_1): Likewise.
17112         * dwarf2out.h (struct GTY): Likewise.
17114 2016-02-26  Martin Liska  <mliska@suse.cz>
17116         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
17117         with flag_checking.
17118         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
17120 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
17121             Martin Liska  <mliska@suse.cz>
17123         * doc/install.texi: Mention --enable-valgrind-annotations.
17125 2016-02-26  Richard Biener  <rguenther@suse.de>
17127         PR tree-optimization/69551
17128         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
17129         looking through aliases adjust DECL_PT_UID to refer to the
17130         ultimate alias target.
17132 2016-02-25  Martin Liska  <mliska@suse.cz>
17134         PR middle-end/69919
17135         * alloc-pool.c (after_memory_report): New variable.
17136         * alloc-pool.h (base_pool_allocator ::release): Do not use
17137         the infrastructure if after_memory_report.
17138         * toplev.c (toplev::main): Mark after memory report.
17140 2016-02-25  Richard Biener  <rguenther@suse.de>
17142         PR tree-optimization/48795
17143         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
17145 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
17147         PR driver/68463
17148         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
17149         offloading is enabled and -fopenacc or -fopenmp is specified.
17150         (CRTOFFLOADEND): Likewise.
17151         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
17152         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
17153         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
17154         (offload_objects_file_name): New static var.
17155         (tool_cleanup): Remove offload_objects_file_name file.
17156         (find_offloadbeginend): Replace with ...
17157         (find_crtoffloadtable): ... this.
17158         (run_gcc): Remove offload_argc and offload_argv.
17159         Get offload_objects_file_name from -foffload-objects=... option.
17160         Read names of object files with offload from this file, pass them to
17161         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
17162         don't pass offloadbegin and offloadend to the linker.  Don't pass
17163         offload non-LTO files to the linker, because now they're not claimed.
17165 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
17167         PR ipa/69630
17168         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
17169         on builtin_unreachable.
17171 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
17173         PR rtl-optimization/69896
17174         * regcprop.c: Include cfgrtl.h.
17175         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
17176         than remembered mode, either delete it (if noop_move_p), or
17177         treat like copy_p but not noop_p instruction.
17179 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17181         PR debug/69705
17182         * dwarf2out.c (gen_variable_die): Work around buggy LTO
17183         - allow NULL decl for Fortran DW_TAG_common_block variables.
17185 2016-02-24  Jason Merrill  <jason@redhat.com>
17187         * common.opt (flifetime-dse): Add -flifetime-dse=1.
17189 2016-02-24  Richard Biener  <rguenther@suse.de>
17190             Jakub Jelinek  <jakub@redhat.com>
17192         PR middle-end/69760
17193         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
17194         conditionally executed ops to well-defined overflow behavior.
17196 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17198         PR middle-end/69915
17199         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
17200         elements.
17202 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17204         PR rtl-optimization/69886
17205         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
17206         argument.  Use it when checking validity of set instructions.
17207         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
17208         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
17209         callsite.
17210         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
17211         * store-motion.c (find_moveable_store): Update
17212         can_assign_to_reg_without_clobbers_p callsite.
17214 2016-02-24  Richard Biener  <rguenther@suse.de>
17216         PR middle-end/68963
17217         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
17218         bogus check.
17219         (record_nonwrapping_iv): Do not fall back to the low/high bound
17220         for non-constant IV bases if the stmt is not always executed.
17222 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17224         * config/arm/arm-cores.def (cortex-a32): New entry.
17225         * config/arm/arm-tables.opt: Regenerate.
17226         * config/arm/arm-tune.md: Regenerate.
17227         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
17228         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
17229         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
17230         for -mcpu and -mtune.
17232 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17234         PR target/69875
17235         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
17236         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
17237         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
17238         (atomic_loaddi_1): Delete.
17239         (atomic_loaddi): Rewrite expander using the above changes.
17241 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17243         PR c/69918
17244         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
17245         2 to 3.
17247 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17248             Richard Biener  <rguenth@suse.de>
17250         PR middle-end/69909
17251         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
17252         set_mem_attributes if tem is SSA_NAME which got expanded
17253         as a MEM.
17255 2016-02-24  Richard Biener  <rguenther@suse.de>
17257         PR tree-optimization/69907
17258         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
17259         end of permutations for BB vectorization.
17261 2016-02-24  Christian Bruel  <christian.bruel@st.com>
17263         * config/arm/arm-c.c (arm_option_override): Initialize
17264         target_option_current_node.
17265         * config/arm/arm.c (arm_pragma_target_parse): Replace
17266         build_target_option_node call by target_option_current_node.
17267         Set target_option_current_node.
17268         Fix comments.
17270 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
17272         PR target/69810
17273         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
17274         define_insn_and_split to define_insn.
17275         (zero_extendqi<mode>2_dot2): Same.
17276         (extendqi<mode>2_dot): Same.
17277         (extendqi<mode>2_dot2): Same.
17279 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
17281         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
17282         and add bypass for AES{D,E} and AESMC pairs.
17283         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
17284         and AESMC pairs.
17286 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
17288         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
17289         series for reciprocal square root in Exynos M1.
17291 2016-02-23  Martin Sebor  <msebor@redhat.com>
17293         PR c/69759
17294         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
17295         __builtin_alloca_with_align.
17297 2016-02-23  Richard Henderson  <rth@redhat.com>
17299         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
17300         (ix86_register_pragmas): Remove __seg_tls.
17301         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
17302         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
17303         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
17304         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
17305         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
17306         * doc/extend.texi (__seg_tls): Remove item.
17308 2016-02-23  Richard Biener  <rguenther@suse.de>
17310         * alloc-pool.h (struct allocation_object): Make id member
17311         conditional on CHECKING_P again.
17312         (get_instance): Adjust.
17313         (base_pool_allocator): Likewise.
17315 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
17317         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
17318         (parallelize_loops): In OpenACC kernels mode, set n_threads to
17319         zero.
17320         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
17321         flag_openacc.
17322         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
17324 2016-02-23  Richard Biener  <rguenther@suse.de>
17326         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
17327         * bitmap.h (struct bitmap_usage): Likewise.
17328         (bitmap_move): Declare.
17329         * bitmap.c (register_overhead): Take size_t argument.
17330         (bitmap_move): New function.
17331         * df-problems.c (df_rd_transfer_function): Use bitmap_move
17332         to properly account overhead.
17333         * tree.c (free_node): Use tree_size.
17335 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
17337         PR c++/69902
17338         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
17339         when inverting comparison.
17341         PR c/69900
17342         * common.opt (Wunreachable-code): Add Warning flag.
17344 2016-02-23  Mark Wielaard  <mjw@redhat.com>
17345             Jakub Jelinek  <jakub@redhat.com>
17347         PR c/69911
17348         * cgraphunit.c (check_global_declaration): Check main_input_filename
17349         and DECL_SOURCE_FILE are not NULL.
17351 2016-02-23  Martin Jambor  <mjambor@suse.cz>
17353         PR tree-optimization/69666
17354         * tree-sra.c (sra_modify_assign): Do not attempt to create
17355         default_def replacements for unscalarizable regions.
17357 2016-02-20  Mark Wielaard  <mjw@redhat.com>
17359         PR c/28901
17360         * cgraphunit.c (check_global_declaration): Check level of
17361         warn_unused_const_variable and main_input_filename.
17362         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
17363         (-Wunused-variable): For C implies -Wunused-const-variable=1.
17364         (-Wunused-const-variable): Explain levels 1 and 2.
17366 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
17368         PR target/69888
17369         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
17370         identical arguments.  Formatting and spelling fixes.
17372         PR target/69885
17373         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
17374         be specified.
17376         PR target/69894
17377         PR target/69895
17378         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
17379         and m68k-devices.def.
17380         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
17381         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
17383 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
17385         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
17386         and HImode registers.
17388 2016-02-22  Richard Biener  <rguenther@suse.de>
17390         PR tree-optimization/69882
17391         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
17392         preserve permutations present because of gaps.
17393         (vect_supported_load_permutation_p): Always continue checking
17394         permutations after vect_attempt_slp_rearrange_stmts.
17396 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
17398         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
17399         min_profitable_estimate, rather than min_profitable_iters.
17401 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
17403         PR target/69885
17404         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
17405         SImode for last match_operand.
17407 2016-02-22  Martin Liska  <mliska@suse.cz>
17409         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
17410         return bitsize - 1 as the return value.
17412 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
17414         PR target/69806
17415         PR target/54089
17416         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
17417         Handle negative shift counts.
17418         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
17419         force_reg on the shift constant.
17420         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
17421         (lshrsi3_d): Handle negative shift counts.
17423 2016-02-22  Richard Biener  <rguenther@suse.de>
17424             Tom de Vries  <tom@codesourcery.com>
17426         * graph.c: Include dumpfile.h.
17427         (print_graph_cfg): Split into three overloads.
17428         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
17430 2016-02-22  Tom de Vries  <tom@codesourcery.com>
17432         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
17433         dump-fn.
17435 2016-02-22  Richard Biener  <rguenther@suse.de>
17437         PR ipa/37448
17438         * ipa-inline-transform.c (inline_call): When not updating
17439         overall summaries adjust self size by the growth estimate.
17440         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
17441         hash-set, do not update overall summaries here.  Renamed from ...
17442         (inline_to_all_callers): ... this which is now wrapping the
17443         above and performing delayed overall summary update.
17444         (early_inline_small_functions): Delay updating of the overall
17445         summary.
17447 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17449         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
17450         variable.
17452 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
17454         PR driver/69805
17455         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
17456         :%* in %:gt() argument.
17457         (greater_than_spec_func): Adjust for expecting only numbers,
17458         if there are more than two numbers, compare the last two.
17460 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
17462         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
17463         -Wnarrowing with -std.
17465 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
17467         PR c++/69851
17468         * expr.c (store_field): Don't use bit-field path if exp is
17469         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
17470         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
17471         and the assignment can be performed by bitwise copy.  Formatting
17472         fix.
17474         PR middle-end/69838
17475         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
17476         call copy_reg_eh_region_note_forward on before and/or after sequences
17477         and remove note from insn if it no longer can throw.
17479         PR target/69820
17480         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
17481         if TARGET_AVX512BW.
17483 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17485         * config/s390/vector.md: Add missing commutative operand markers
17486         to the patterns which qualify for one.
17487         * config/s390/vx-builtins.md: Likewise.
17489 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17491         * config/s390/vector.md (VI, VI_QHS): Add single element vector
17492         types to mode iterators.
17493         (vec_double): ... and mode attribute.
17494         * config/s390/vx-builtins.md (non_vec_int): Likewise.
17496 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17498         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
17499         Change the predicate of op2 from nonimmediate to general and let
17500         reload fix it if necessary.
17502 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17504         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
17506 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17508         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
17509         mode.
17511 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17513         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
17514         * config/s390/s390.c (s390_expand_vec_movstr): New function.
17515         * config/s390/s390.md ("movstr<P:mode>"): Call
17516         s390_expand_vec_movstr.
17518 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17520         * config/s390/s390.md: Add missing output modifier for operand 1
17521         to print it as address properly.
17523 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17525         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
17526         * config/s390/2964.md: New file.
17527         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
17528         of insn grouping attributes depending on the CPU level.
17529         (s390_get_unit_mask): New function.
17530         (s390_sched_score): Remove the OOO from the scheduling macros.
17531         Add loop to calculate a score for the instruction mix.
17532         (s390_sched_reorder): Likewise plus improve debug output.
17533         (s390_sched_variable_issue): Rename macros as above.  Calculate
17534         the unit distances after actually scheduling an insn.  Improve
17535         debug output.
17536         (s390_sched_init): Clear last_scheduled_unit_distance array.
17537         * config/s390/s390.md: Include 2964.md.
17539 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
17541         PR target/69671
17542         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
17543         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
17544         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
17545         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
17546         *avx512f_<code>v8div16qi2_mask_1): New insns.
17548 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
17550         PR target/68404
17551         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
17552         2016-02-09 change.
17554         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
17555         earlyclobber from target.  Use wF constraint for fused memory
17556         address.
17557         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
17559 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
17560             Martin Liska  <mliska@suse.cz>
17562         PR sanitizer/69863
17563         * cfgexpand.c (asan_sanitize_stack_p): New function.
17564         (partition_stack_vars): Use the function.
17565         (expand_stack_vars): Likewise.
17566         (defer_stack_allocation): Likewise.
17567         (expand_used_vars): Likewise.
17569 2016-02-18  Richard Biener  <rguenther@suse.de>
17571         PR middle-end/69553
17572         * fold-const.c (operand_equal_p): Properly compare offsets for
17573         IMAGPART_EXPR and ARRAY_REF.
17575 2016-02-18  Nick Clifton  <nickc@redhat.com>
17577         PR target/62254
17578         PR target/69610
17579         * config/arm/arm.c (arm_option_override_internal): Disable
17580         interworking if the target does not support thumb instructions.
17581         (arm_reload_in_hi): Handle the case where a register to register
17582         move needs reloading because there is no simple pattern to handle
17583         it.
17584         (arm_reload_out_hi): Likewise.
17586 2016-02-18  Richard Biener  <rguenther@suse.de>
17588         PR middle-end/69854
17589         * match.pd: Don't use fold_binary or fold_unary for folding
17590         constants.
17592 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
17594         PR c++/69850
17595         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
17596         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
17597         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
17598         warn on gimple_no_warning_p statements.
17600 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
17602         * doc/extend.texi (C++ Attributes): Correct description of
17603         warn_unused type attribute.
17605 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17607         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
17608         correct instruction.
17610 2016-02-17  Richard Biener  <rguenther@suse.de>
17612         PR rtl-optimization/69609
17613         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
17614         (find_traces_1_round): When ending a trace update cached priority
17615         of successors.
17616         (bb_to_key): Use cached priority when available.
17617         (copy_bb): Initialize cached priority.
17618         (reorder_basic_blocks_software_trace_cache): Likewise.
17620 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17622         PR target/69161
17623         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
17624         New predicate.
17625         (aarch64_comparison_operator): Break overly long line into two.
17626         (aarch64_comparison_operation): Likewise.
17627         * config/aarch64/aarch64.md (cstorecc4): Use
17628         aarch64_comparison_operator_mode instead of
17629         aarch64_comparison_operator.
17630         (cstore<mode>4): Likewise.
17631         (aarch64_cstore<mode>): Likewise.
17632         (*cstoresi_insn_uxtw): Likewise.
17633         (cstore<mode>_neg): Likewise.
17634         (*cstoresi_neg_uxtw): Likewise.
17636 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17638         PR target/69161
17639         * config/arm/predicates.md (arm_comparison_operator_mode):
17640         New predicate.
17641         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
17642         instead of arm_comparison_operator.
17643         (*mov_negscc): Likewise.
17644         (*mov_notscc): Likewise.
17645         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
17646         (*thumb2_mov_negscc): Likewise.
17647         (*thumb2_mov_negscc_strict_it): Likewise.
17648         (*thumb2_mov_notscc): Likewise.
17649         (*thumb2_mov_notscc_strict_it): Likewise.
17651 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
17653         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
17654         Add missing return.
17656 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
17658         * config/visium/visium.c (machine_libfunc_index): New enum.
17659         (machine_libfuncs): New structure.
17660         (visium_libfuncs): New static variable.
17661         (TARGET_INIT_LIBFUNCS): Define to...
17662         (visium_init_libfuncs): ...this.  New function.
17663         (expand_block_move_4): Use the appropriate libfunc.
17664         (expand_block_move_2): Likewise.
17665         (expand_block_move_1): Likewise.
17666         (expand_block_set_4): Likewise.
17667         (expand_block_set_2): Likewise.
17668         (expand_block_set_1): Likewise.
17669         (visium_trampoline_init): Likewise.
17671 2016-02-17  Nick Clifton  <nickc@redhat.com>
17673         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
17674         TI's devices.csv file as of March 2016.
17676 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17678         PR Target/48344
17679         * opts-global.c (handle_common_deferred_options): Introduce and
17680         initialize two global variables to remember command-line options
17681         specifying a stack-limiting register.
17682         * opts.h: Add extern declarations of the two new global variables.
17683         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
17684         variable based on the values of the two new global variables.
17686 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17688         PR c/69835
17689         * common.opt (Wnonnull-compare): New warning.
17690         * doc/invoke.texi (-Wnonnull): Remove text about comparison
17691         of arguments against NULL.
17692         (-Wnonnull-compare): Document.
17693         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
17694         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
17695         * passes.def (pass_warn_nonnull_compare): Add.
17696         * gimple-ssa-nonnull-compare.c: New file.
17698 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17700         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
17701         AARCH64_EXTRA_TUNE_RECIP_SQRT.
17703 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17705         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
17706         reciprocal sqrt for -mlow-precision-recip-sqrt.
17708 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17709             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17711         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
17712         always use lane loads to construct non-constant vectors.
17714 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17716         * config/aarch64/aarch64.md
17717         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
17718         constraints for operand 3.
17719         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
17721 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17722             Richard Biener  <rguenther@suse.de>
17724         PR tree-optimization/69820
17725         * tree-vect-patterns.c (type_conversion_p): Return false if
17726         *orig_type is unsigned single precision or boolean.
17727         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
17728         Formatting fix.
17730 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17732         PR rtl-optimization/69764
17733         PR rtl-optimization/69771
17734         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
17735         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
17737 2016-02-16  Richard Biener  <rguenther@suse.de>
17739         PR tree-optimization/69776
17740         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
17741         sets from caller.
17742         (indirect_refs_may_alias_p): Likewise.
17743         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
17744         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
17745         according to tbaa_p.
17746         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
17747         (optimize_stmt): For redundant store discovery do not allow tbaa.
17749 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
17751         PR tree-optimization/69714
17752         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
17753         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
17755 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
17757         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
17758         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
17759         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
17760         * config/arc/arc.c (arc_init): Check FPU options.
17761         (get_arc_condition_code): Handle new CC_FPU* modes.
17762         (arc_select_cc_mode): Likewise.
17763         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
17764         register pair only. Allow access for ARCv2 accumulator.
17765         (gen_compare_reg): Whenever we have FPU support use FPU compare
17766         instructions.
17767         (arc_reorg): Don't generate brcc insns when FPU compare
17768         instructions are involved.
17769         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
17770         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
17771         floating point emulation.
17772         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
17773         (REVERSE_CONDITION): Add new CC_FPU* modes.
17774         (TARGET_FP_SP_BASE): Define.
17775         (TARGET_FP_DP_BASE): Likewise.
17776         (TARGET_FP_SP_FUSED): Likewise.
17777         (TARGET_FP_DP_FUSED): Likewise.
17778         (TARGET_FP_SP_CONV): Likewise.
17779         (TARGET_FP_DP_CONV): Likewise.
17780         (TARGET_FP_SP_SQRT): Likewise.
17781         (TARGET_FP_DP_SQRT): Likewise.
17782         (TARGET_FP_DP_AX): Likewise.
17783         * config/arc/arc.md (ARCV2_ACC): New constant.
17784         (type): New fpu type attribute.
17785         (SDF): Conditional iterator.
17786         (cstore<mode>, cbranch<mode>): Change expand condition.
17787         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
17788         handles FPU/FPX cases as well.
17789         * config/arc/arc.opt (mfpu): New option.
17790         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
17791         Renamed.
17792         (adddf3, muldf3, subdf3): Removed.
17793         * config/arc/predicates.md (proper_comparison_operator): Recognize
17794         CC_FPU* modes.
17795         * config/arc/fpu.md: New file.
17796         * doc/invoke.texi (ARC Options): Document mfpu option.
17798 2016-02-16  Richard Biener  <rguenther@suse.de>
17800         PR rtl-optimization/69291
17801         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
17802         noce_operand_ok check.
17804 2016-02-16  Tom de Vries  <tom@codesourcery.com>
17806         PR lto/67709
17807         * omp-low.c (simd_clone_create): Remove call to
17808         symtab->call_cgraph_insertion_hooks.
17810 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17812         PR tree-optimization/69802
17813         * tree-ssa-reassoc.c (update_range_test): If op is
17814         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
17815         op == 1 test of precision 1 integral op, otherwise handle
17816         that case as op itself.  Fix up formatting.
17817         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
17818         up formatting.
17820 2016-02-16  Richard Biener  <rguenther@suse.de>
17822         PR tree-optimization/69586
17823         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
17824         types for conversion sources.
17826 2016-02-16  Richard Biener  <rguenther@suse.de>
17828         PR middle-end/69801
17829         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
17830         mask OEP_ADDRESS_OF.
17832 2016-02-16  Alan Modra  <amodra@gmail.com>
17834         PR target/68973
17835         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
17836         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
17837         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
17838         (p8_mtvsrwz): New.
17839         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
17840         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
17841         (p8_fmrgow_<mode>): Likewise.
17842         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
17843         changes.
17844         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
17845         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
17846         to use movdi_internal64.  Remove op0_di.
17847         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
17849 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
17851         Add support for the FCCMP insn types
17853         * config/aarch64/aarch64.md (fccmp): Change insn type.
17854         (fccmpe): Likewise.
17855         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
17856         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
17857         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
17858         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
17859         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
17860         * config/arm/types.md (fccmps): Add new insn type.
17861         (fccmpd): Likewise.
17863 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17865         * alias.c (get_alias_set): Fix a typo in comment.
17867 2016-02-15  Richard Biener  <rguenther@suse.de>
17869         PR tree-optimization/69595
17870         * match.pd: Complete range test simplification to true.
17872 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
17874         PR rtl-optimization/69648
17875         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
17876         pic_offset_table_rtx.
17878         PR rtl-optimization/69752
17879         * ira.c (update_equiv_regs): When looking for more than a single SET,
17880         also take other side effects into account.
17882 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
17884         * config/s390/s390.c (s390_function_profiler): Add a new sequence
17885         for z900+ CPUs in 31-bit mode.
17887 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
17889         * common/config/s390/s390-common.c (s390_supports_split_stack):
17890         New function.
17891         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
17892         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
17893         * config/s390/s390.c (struct machine_function): New field
17894         split_stack_varargs_pointer.
17895         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
17896         in s390_emit_prologue.
17897         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
17898         vararg pointer.
17899         (morestack_ref): New global.
17900         (SPLIT_STACK_AVAILABLE): New macro.
17901         (s390_expand_split_stack_prologue): New function.
17902         (s390_live_on_entry): New function.
17903         (s390_va_start): Use split-stack vararg pointer if appropriate.
17904         (s390_asm_file_end): Emit the split-stack note sections.
17905         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
17906         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
17907         (UNSPECV_SPLIT_STACK_CALL): New unspec.
17908         (UNSPECV_SPLIT_STACK_DATA): New unspec.
17909         (split_stack_prologue): New expand.
17910         (split_stack_space_check): New expand.
17911         (split_stack_data): New insn.
17912         (split_stack_call): New expand.
17913         (split_stack_call_*): New insn.
17914         (split_stack_cond_call): New expand.
17915         (split_stack_cond_call_*): New insn.
17917 2016-02-15  Richard Biener  <rguenther@suse.de>
17919         PR tree-optimization/69783
17920         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17921         Add trivially correct cases.
17923 2016-02-15  Tom de Vries  <tom@codesourcery.com>
17925         PR lto/69655
17926         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
17927         do_force_output.
17928         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
17930 2016-02-15  Richard Biener  <rguenther@suse.de>
17932         PR tree-optimization/69776
17933         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17934         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
17935         indicate whether we can use TBAA to disambiguate against stores.
17936         Use alias-set zero if not.
17937         (visit_reference_op_store): Do not use TBAA when looking up
17938         redundant stores.
17939         * tree-ssa-pre.c (compute_avail): Use TBAA here.
17940         (eliminate_dom_walker::before_dom_children): But not when looking
17941         up redundant stores.
17943 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
17945         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
17947 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17949         *  config/i386/znver1.md
17950         (znver1_pop, znver1_pop_mem,
17951         znver1_load_imov_double_store,
17952         znver1_load_imov_direct_store,
17953         znver1_load_imov_direct_load,
17954         znver1_load_imov_double_load): Add new.
17955         (znver1_insn, znver1_insn_load): Add icmov type.
17956         (znver1_sseavx_fma,
17957         znver1_sseavx_fma_load,
17958         znver1_avx256_fma,
17959         znver1_avx256_fma_load): Fix pipe usage.
17961 2016-02-14  Alan Modra  <amodra@gmail.com>
17963         PR target/68973
17964         * reload.c (find_reloads_address_1): For pre/post-inc/dec
17965         with an invalid hard reg, reload just the reg not the entire
17966         pre/post-inc/dec address expression.
17968 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
17970         PR target/67260
17971         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
17972         fixed R1_REG scratch reg.
17973         (sibcall_value_pcrel_fdpic): Likewise.
17975 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
17977         PR target/67636
17978         PR target/64345
17979         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
17981 2016-02-12  Walter Lee  <walt@tilera.com>
17983         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
17984         * config/tilegx/t-tilegx: Likewise.
17986 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
17988         PR other/69554
17989         * diagnostic-show-locus.c (struct line_span): New struct.
17990         (layout::get_first_line): Delete.
17991         (layout::get_last_line): Delete.
17992         (layout::get_num_line_spans): New member function.
17993         (layout::get_line_span): Likewise.
17994         (layout::print_heading_for_line_span_index_p): Likewise.
17995         (layout::get_expanded_location): Likewise.
17996         (layout::calculate_line_spans): Likewise.
17997         (layout::m_first_line): Delete.
17998         (layout::m_last_line): Delete.
17999         (layout::m_line_spans): New field.
18000         (layout::layout): Update comment.  Replace m_first_line and
18001         m_last_line with m_line_spans, replacing their initialization
18002         with a call to calculate_line_spans.
18003         (diagnostic_show_locus): When printing source lines and
18004         annotations, rather than looping over a single span
18005         of lines, instead loop over each line_span within
18006         the layout, with an inner loop over the lines within them.
18007         Call the context's start_span callback when changing line spans.
18008         * diagnostic.c (diagnostic_initialize): Initialize start_span.
18009         (diagnostic_build_prefix): Break out the building of the location
18010         part of the string into...
18011         (diagnostic_get_location_text): ...this new function, rewriting
18012         it from nested ternary expressions to a sequence of "if"
18013         statements.
18014         (default_diagnostic_start_span_fn): New function.
18015         * diagnostic.h (diagnostic_start_span_fn): New typedef.
18016         (diagnostic_context::start_span): New field.
18017         (default_diagnostic_start_span_fn): New prototype.
18019 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
18021         PR driver/69779
18022         * gcc.c (driver::finalize): Fix cleanup of "specs".
18024 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
18026         PR driver/69265
18027         PR driver/69453
18028         * gcc.c (driver::driver): Initialize m_option_suggestions.
18029         (driver::~driver): Clean up m_option_suggestions.
18030         (suggest_option): Convert to...
18031         (driver::suggest_option): ...this, and split out into
18032         driver::build_option_suggestions and find_closest_string.
18033         (driver::build_option_suggestions): New function, from
18034         first half of suggest_option.  Special-case
18035         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
18036         the sanitizer_opts array.  For options of enum types, add the
18037         various enum values to the candidate strings.
18038         (driver::handle_unrecognized_options): Remove "const".
18039         * gcc.h (driver::handle_unrecognized_options): Likewise.
18040         (driver::build_option_suggestions): New decl.
18041         (driver::suggest_option): New decl.
18042         (driver::m_option_suggestions): New field.
18043         * opts-common.c (add_misspelling_candidates): New function.
18044         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
18045         and make non-static.
18046         * opts.h (sanitizer_opts): New array decl.
18047         (add_misspelling_candidates): New function decl.
18048         * spellcheck.c (find_closest_string): New function.
18049         * spellcheck.h (find_closest_string): New function decl.
18051 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
18053         PR rtl-optimization/69764
18054         PR rtl-optimization/69771
18055         * optabs.c (expand_binop_directly): For shift_optab_p, force
18056         convert_modes with VOIDmode if xop1 has VOIDmode.
18058 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
18060         PR target/69729
18061         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
18062         to correctly determine instrumentation thunks.
18064 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
18066         PR ipa/69241
18067         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
18068         type by reference, force lhs on the call.
18070         PR ipa/68672
18071         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
18072         Compute retval and retbnd early in all cases if split_part_return_p
18073         and return_bb is not EXIT.  Remove all clobber stmts and reset
18074         all debug stmts that refer to SSA_NAMEs defined in split part,
18075         except if it is retval, in that case replace the old retval with the
18076         lhs of the call to the split part.
18078 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18080         revert:
18081         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18083         PR middle-end/66726
18084         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
18085         whose result is used in PHI.
18086         (maybe_optimize_range_tests): Likewise.
18087         (final_range_test_p): Likweise.
18089 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18091         PR middle-end/66726
18092         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
18093         whose result is used in PHI.
18094         (maybe_optimize_range_tests): Likewise.
18095         (final_range_test_p): Likweise.
18097 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
18099         * cgraph.c: Spelling fixes - behaviour -> behavior and
18100         neighbour -> neighbor.
18101         * target.def: Likewise.
18102         * sel-sched.c: Likewise.
18103         * config/mips/mips.c: Likewise.
18104         * config/arc/arc.md: Likewise.
18105         * config/arm/cortex-a57.md: Likewise.
18106         * config/arm/arm.c: Likewise.
18107         * config/arm/neon.md: Likewise.
18108         * config/arm/arm-c.c: Likewise.
18109         * config/vms/vms-c.c: Likewise.
18110         * config/s390/s390.c: Likewise.
18111         * config/i386/znver1.md: Likewise.
18112         * config/i386/i386.c: Likewise.
18113         * config/ia64/hpux-unix2003.h: Likewise.
18114         * config/msp430/msp430.md: Likewise.
18115         * config/rx/rx.c: Likewise.
18116         * config/rx/rx.md: Likewise.
18117         * config/aarch64/aarch64-simd.md: Likewise.
18118         * config/aarch64/aarch64.c: Likewise.
18119         * config/nvptx/nvptx.c: Likewise.
18120         * config/bfin/bfin.c: Likewise.
18121         * config/cris/cris.opt: Likewise.
18122         * config/rs6000/rs6000.c: Likewise.
18123         * target.h: Likewise.
18124         * spellcheck.c: Likewise.
18125         * ira-build.c: Likewise.
18126         * tree-inline.c: Likewise.
18127         * builtins.c: Likewise.
18128         * lra-constraints.c: Likewise.
18129         * explow.c: Likewise.
18130         * hwint.h: Likewise.
18131         * targhooks.c: Likewise.
18132         * tree-vect-data-refs.c: Likewise.
18133         * expr.c: Likewise.
18134         * doc/tm.texi: Likewise.
18135         * doc/extend.texi: Likewise.
18136         * doc/install.texi: Likewise.
18137         * doc/md.texi: Likewise.
18138         * tree-ssa-tail-merge.c: Likewise.
18139         * sched-int.h: Likewise.
18140         * match.pd: Likewise.
18141         * sched-ebb.c: Likewise.
18142         * target.def (omit_struct_return_reg): Likewise.
18143         * gimple-ssa-isolate-paths.c: Likewise.
18144         (find_implicit_erroneous_behaviour): Renamed to...
18145         (find_implicit_erroneous_behavior): ... this.
18146         (find_explicit_erroneous_behaviour): Renamed to...
18147         (find_explicit_erroneous_behavior): ... this.
18148         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
18150 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
18152         PR rtl-optimization/64682
18153         PR rtl-optimization/69567
18154         PR rtl-optimization/69737
18155         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
18156         in I2 as well, just lose it.
18158 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18160         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
18161         New variable.
18162         (aarch64_last_printed_tune_string): Likewise.
18163         (aarch64_declare_function_name): Only output .arch assembler
18164         directive if it will be different from the previously output
18165         directive.  Same for .tune comment but only if -dA is set.
18166         (aarch64_start_file): New function.
18167         (TARGET_ASM_FILE_START): Define.
18169 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
18171         PR plugins/69758
18172         * Makefile.in (PLUGIN_HEADERS): Add params.list.
18174 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
18176         PR target/65313
18177         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
18178         -Wmaybe-uninitialized warning.
18180 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
18182         PR target/69713
18183         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
18185 2016-02-11  Richard Biener  <rguenther@suse.de>
18187         PR rtl-optimization/69291
18188         * ifcvt.c (noce_try_store_flag_constants): Do not allow
18189         subexpressions affected by changing the result.
18191 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
18193         PR target/69148
18194         * lra-constraints.c (curr_insn_transform): Find in/out operands
18195         for secondary memory moves.  Update dups.
18197 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
18199         PR tree-optimization/69652
18200         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
18201         to nested loop, did source re-formatting, skip debug statements,
18202         add check on statement with volatile operand, remove dead scalar
18203         statements.
18205 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
18206             Patrick Palka  <ppalka@gcc.gnu.org>
18208         PR ipa/69241
18209         PR c++/69649
18210         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
18211         calls if the return type is TREE_ADDRESSABLE.
18212         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
18213         * ipa-split.c (split_function): Fix doubled "we" in comment.
18214         Use void return type for the split part even if
18215         !split_point->split_part_set_retval.
18217 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
18219         PR tree-optimization/68021
18220         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
18221         when computing the value of biv cand by itself.
18223 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18225         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
18226         (cortexa57_tunings): Likewise.
18227         (cortexa72_tunings): Likewise.
18228         (arch_macro_fusion_pair_p): Add support for AES fusion.
18229         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
18230         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18231         Allow virtual registers before reload so early scheduling works.
18232         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
18233         correct latency and pipeline.
18234         (cortex_a57_crypto_complex): Likewise.
18235         (cortex_a57_crypto_xor): Likewise.
18236         (define_bypass): Add AES bypass.
18238 2016-02-10  Richard Biener  <rguenther@suse.de>
18240         PR tree-optimization/69726
18241         * passes.def: Add DCE pass before late uninit.
18242         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
18243         really fixup if-conversions job.
18245 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18247         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
18248         (arm_cortex_a57_tune): Likewise.
18249         (aarch_macro_fusion_pair_p): Add support for AES fusion.
18250         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
18252 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18254         * timevar.def (TV_PHASE_DBGINFO): Delete.
18255         (TV_PHASE_CHECK_DBGINFO): Likewise.
18256         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
18258 2016-02-10  Richard Biener  <rguenther@suse.de>
18260         PR tree-optimization/69719
18261         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18262         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
18264 2016-02-09  Andrew Pinski  <apinski@cavium.com>
18266         PR tree-opt/69282
18267         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
18268         get_vcond_mask_icode returns false.
18270 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
18272         PR target/68404
18273         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
18274         an ADDIS that adds a pointer to a large constant that sets the
18275         upper16 bits with a load operation.
18277 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
18279         PR target/68532
18280         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
18281         order.
18282         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
18283         endian.
18284         (vzipq_s16): Likewise.
18285         (vzipq_s32): Likewise.
18286         (vzipq_f32): Likewise.
18287         (vzipq_u8): Likewise.
18288         (vzipq_u16): Likewise.
18289         (vzipq_u32): Likewise.
18290         (vzipq_p8): Likewise.
18291         (vzipq_p16): Likewise.
18293 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
18295         PR target/68532
18296         * config/arm/arm.c (neon_endian_lane_map): New function.
18297         (neon_vector_pair_endian_lane_map): New function.
18298         (arm_evpc_neon_vuzp): Allow for big endian lane order.
18299         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
18300         endian.
18301         (vuzpq_s16): Likewise.
18302         (vuzpq_s32): Likewise.
18303         (vuzpq_f32): Likewise.
18304         (vuzpq_u8): Likewise.
18305         (vuzpq_u16): Likewise.
18306         (vuzpq_u32): Likewise.
18307         (vuzpq_p8): Likewise.
18308         (vuzpq_p16): Likewise.
18310 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
18312         PR target/69634
18313         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
18314         debug insns.
18316 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
18318         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
18319         truncate const_int operand 1 to QImode.
18321 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18323         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
18324         corresponding to an abnormal edge.
18326 2016-02-09  Tom de Vries  <tom@codesourcery.com>
18328         PR tree-optimization/69599
18329         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
18330         function.
18331         (find_func_aliases_for_builtin_call, find_func_clobbers)
18332         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
18333         partition.
18335 2016-02-09  Richard Biener  <rguenther@suse.de>
18337         PR tree-optimization/69715
18338         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
18339         LHS on calls as non-rewritable.
18341 2016-02-09  Tom de Vries  <tom@codesourcery.com>
18343         PR lto/69707
18344         * lto-wrapper.c (append_diag_options): New function.
18345         (compile_offload_image): Call append_diag_options.
18347 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
18349         PR other/69722
18350         * doc/extend.texi (Flag Output Operands): Correct sectioning.
18351         Minor copy-edit to fix verb tenses.
18353 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
18355         PR tree-optimization/69209
18356         * ipa-split.c (split_function): If split part is not
18357         returning retval, retval has gimple type but is not
18358         gimple value, force it into a SSA_NAME first.
18360 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
18362         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
18363         outdated section.
18365 2016-02-08  Jason Merrill  <jason@redhat.com>
18367         PR c++/69631
18368         * convert.c (convert_to_integer_1): Check dofold on truncation
18369         distribution.
18370         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
18371         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
18372         Rename from *_nofold.
18373         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
18374         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
18376 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
18378         PR target/60410
18379         * tree.c (build_common_tree_nodes): Remove short_double argument.
18380         All callers changed.
18381         * tree.h (build_common_tree_nodes): Adjust declaration.
18382         * doc/invoke.texi (-fshort-double): Remove documentation.
18383         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18384         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
18385         * lto-wrapper.c (merge_and_complain, append_compiler_options)
18386         (append_linker_options): Don't handle OPT_fshort_double.
18388         PR rtl-optimization/68730
18389         * lra-remat.c (insn_to_cand_activation): New static variable.
18390         (lra_remat): Allocate and free it.
18391         (create_cand): New arg activation. Initialize a field in
18392         insn_to_cand_activation if it is nonnull.
18393         (create_cands): Pass the activation insn to create_cand when making
18394         a candidate involving an output reload.  Reorganize code a little.
18395         (do_remat): Keep track of active status of candidates in a separate
18396         bitmap.
18398 2016-02-08  Richard Biener  <rguenther@suse.de>
18400         PR tree-optimization/69719
18401         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18402         Properly use absolute of the difference of the two offsets to
18403         compare or adjust the segment length.
18405 2016-02-08  Richard Biener  <rguenther@suse.de>
18406             Jeff Law  <law@redhat.com>
18408         PR target/68273
18409         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
18410         types for anonymous SSA names.
18412 2016-02-08   Richard Biener  <rguenther@suse.de>
18414         PR rtl-optimization/69274
18415         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
18417 2016-02-08  Jeff Law  <law@redhat.com>
18419         PR tree-optimization/65917
18420         * tree-ssa-dom.c (record_temporary_equivalences): Record both
18421         equivalences from if (x == y) style conditionals.
18422         (loop_depth_of_name): Remove.
18423         (record_equality): Remove loop depth check.
18424         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
18425         (const_and_copies::record_const_or_copy_raw): New member function.
18426         * tree-ssa-scopedtables.c
18427         (const_and_copies::record_const_or_copy_raw): New, factored out of
18428         (const_and_copies::record_const_or_copy): Call new member function.
18430 2016-02-05  Jeff Law  <law@redhat.com>
18432         PR tree-optimization/68541
18433         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
18434         (count_stmts_in_block): New function.
18435         (poor_ifcvt_candidate_code): Likewise.
18436         (is_feasible_trace): Add some heuristics to determine when path
18437         splitting is profitable.
18438         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
18439         is a diamond with a single exit.
18441 2016-02-05  Martin Sebor  <msebor@redhat.com>
18443         PR c++/69662
18444         * doc/invoke.texi: Update -Wplacement-new to take an optional
18445         argument.
18447 2016-02-06  Richard Henderson  <rth@redhat.com>
18449         PR c/69643
18450         * tree.c (tree_nop_conversion_p): Do not strip casts into or
18451         out of non-standard address spaces.
18453 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
18455         PR rtl-optimization/69691
18456         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
18458 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
18460         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
18461         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
18462         (*ieee128_mfvsrd_64bit): Likewise.
18463         (*ieee128_mfvsrd_32bit): Likewise.
18465 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
18467         PR target/69369
18468         Revert r232560:
18469         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18471         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
18472         instrumented_version.
18474 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
18476         * doc/invoke.texi (Optimize Options): In table of --param options
18477         rename second occurrence of tracer-min-branch-ratio to
18478         tracer-min-branch-probability, rename
18479         tracer-min-branch-ratio-feedback to
18480         tracer-min-branch-probability-feedback and clarify description,
18481         rename sched-spec-state-edge-prob-cutoff to
18482         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
18483         to selsched-insns-to-rename, rename lto-minpartition to
18484         lto-min-partition, delete reorder-blocks-duplicate and
18485         reorder-blocks-duplicate-feedback.
18487 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18489         * config/s390/s390.c (s390_register_info_set_ranges): Remove
18490         superfluous loops.
18492 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18494         * doc/extend.texi: S/390: Correct some typos.
18496 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18498         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
18500 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18502         PR target/69625
18503         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
18504         (s390_register_info_gprtofpr): Use new macros above.
18505         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
18506         its name.
18507         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
18508         its name.  Adjust restore and save gpr ranges.
18509         (s390_register_info_set_ranges): New function.
18510         (s390_register_info): Use new macros above.  Call
18511         s390_register_info_set_ranges.
18512         (s390_optimize_register_info): Likewise.
18513         (s390_hard_regno_rename_ok): Use new macros.
18514         (s390_hard_regno_scratch_ok): Likewise.
18515         (s390_emit_epilogue): Likewise.
18516         (s390_can_use_return_insn): Likewise.
18517         (s390_optimize_prologue): Likewise.
18518         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
18520 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
18522         PR bootstrap/69677
18523         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
18524         alignment fixes.
18525         (ix86_option_override_internal): Disable TARGET_STV even for
18526         -m{incoming,preferred}-stack-boundary=3.
18528 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18530         * config.gcc: Mark deprecated rtems targets as obsolete.
18532 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
18534         PR rtl-optimization/64682
18535         PR rtl-optimization/69567
18536         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
18537         before I2 only if the register is both used and set in I2.
18539 2016-02-04  DJ Delorie  <dj@redhat.com>
18541         * config/msp430/msp430.c (msp430_start_function): Add function type.
18543 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
18545         PR fortran/69368
18546         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
18548 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
18550         PR rtl-optimization/69577
18551         Revert:
18552         2015-10-29  Richard Henderson  <rth@redhat.com>
18554         PR target/68124
18555         PR rtl-opt/67609
18556         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
18557         sse check to the exact conditions of PR 67609.
18559 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
18561         PR target/69667
18562         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
18563         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
18564         not allowed into the traditional Altivec registers.
18565         (movtd_64bit_nodm): Likewise.
18566         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
18568 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
18570         * config/aarch64/cortex-a57-fma-steering.c
18571         (aarch64_register_fma_steering): Remove "static" from arguments
18572         to register_pass.
18574 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
18576         PR target/69619
18577         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
18578         twice when complex.
18580 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
18582         * doc/invoke.texi: Delete -mno-fma4.
18584 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
18586         PR rtl-optimization/69577
18587         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
18588         (find_subregs_of_mode): Update accordingly.  Iterate over partial
18589         definitions.
18591 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
18593         * config/arm/arm-protos.h (neon_reinterpret): Remove.
18594         * config/arm/arm.c (neon_reinterpret): Remove.
18595         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
18596         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
18597         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
18598         vreinterpretti): Remove.
18599         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
18600         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
18601         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
18602         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
18603         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
18604         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
18605         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
18606         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
18607         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
18608         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
18609         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
18610         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
18611         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
18612         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
18613         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
18614         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
18615         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
18616         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
18617         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
18618         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
18619         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
18620         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
18621         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
18622         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
18623         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
18624         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
18625         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
18626         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
18627         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
18628         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
18629         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
18630         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
18631         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
18632         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
18633         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
18634         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
18635         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
18636         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
18637         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
18638         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
18639         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
18640         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
18641         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
18642         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
18643         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
18644         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
18645         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
18646         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
18647         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
18648         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
18649         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
18650         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
18651         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
18652         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
18653         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
18654         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
18655         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
18656         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
18657         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
18658         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
18659         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
18660         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
18661         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
18662         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
18663         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
18664         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
18665         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
18666         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
18667         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
18668         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
18669         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
18670         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
18671         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
18672         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
18673         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
18674         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
18675         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
18676         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
18677         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
18678         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
18679         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
18680         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
18681         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
18682         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
18683         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
18684         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
18685         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
18686         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
18687         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
18688         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
18689         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
18690         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
18691         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
18692         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
18693         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
18694         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
18695         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
18696         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
18697         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
18698         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
18699         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
18700         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
18701         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
18703 2016-02-04  Martin Liska  <mliska@suse.cz>
18705         PR sanitizer/69276
18706         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
18707         that are gimple_store_p.
18708         (maybe_instrument_call): Likewise.
18710 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
18712         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
18713         register scaling out of memory reference and comment why.
18715 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18717         PR target/65932
18718         PR target/67714
18719         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
18720         folding the source of a SET.
18722 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18724         PR target/65932
18725         PR target/67714
18726         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
18727         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
18729 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
18731         PR target/65932
18732         PR target/67714
18733         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
18734         HImode.
18736 2016-02-04  Christian Bruel  <christian.bruel@st.com>
18738         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
18739         * config/arm/arm.c (arm_set_current_function): Likewise.
18741 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
18742             Ilya Enkovich  <enkovich.gnu@gmail.com>
18743             H.J. Lu  <hongjiu.lu@intel.com>
18745         PR target/69454
18746         * config/i386/i386.c (convert_scalars_to_vector): Remove
18747         stack alignment fixes.
18748         (ix86_option_override_internal): Disable TARGET_STV if stack
18749         might not be aligned enough.
18750         (ix86_minimum_alignment): Assert that TARGET_STV is false.
18752 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
18754         * config/i386/x86-tune.def: Disable default prefetching
18755         for -march=znver1.
18757 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18758             Vladimir Makarov  <vmakarov@redhat.com>
18760         PR target/69461
18761         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
18762         in validating fused toc addresses.
18764 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
18766         PR c/69627
18767         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
18768         range->m_caret fields if range->m_show_caret_p is false.
18770         PR target/69644
18771         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18772         Force oldval into register if it does not satisfy reg_or_short_operand
18773         predicate.  Fix up formatting.
18775 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
18776             Alexandre Oliva  <aoliva@redhat.com>
18778         PR target/69461
18779         * lra-constraints.c (simplify_operand_subreg): Check additionally
18780         address validity after potential reloading.
18781         (process_address_1): Check insns validity.  In case of failure do
18782         nothing.
18784 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
18786         PR target/69118
18787         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
18788         Fix target.
18790 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
18792         * wide-int.cc (canonize_uhwi): New function.
18793         (wi::divmod_internal): Use it.
18795 2016-02-02  James Norris  <jnorris@codesourcery.com
18797         * gimplify.c (omp_notice_variable): Add usage check.
18799 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
18801         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
18802         like LE, GE, LT, GT when emitting relational operator.
18804 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
18806         * ira-costs.c (find_costs_and_classes): Add extra argument.
18807         * target.def (ira_change_pseudo_allocno_class): Add parameter.
18808         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
18809         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
18810         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
18811         Add best_class parameter, and return it if not ALL_REGS.
18812         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
18813         Add parameter.
18814         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
18815         Update target hook.
18817 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
18819         * config/aarch64/aarch64.c
18820         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
18821         (aarch64_ira_change_pseudo_allocno_class): New function.
18823 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
18825         PR target/67032
18826         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
18828 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18830         * config/avr/avr.c (avr_option_override): Set
18831         PARAM_ALLOW_STORE_DATA_RACES to 1.
18833 2016-02-02  Richard Biener  <rguenther@suse.de>
18835         PR tree-optimization/69595
18836         * match.pd: Add range test simplifications to true/false.
18838 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
18840         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
18841         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
18842         instead.
18844 2016-02-02  Richard Biener  <rguenther@suse.de>
18846         PR tree-optimization/69606
18847         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
18848         info on the result before moving a stmt.
18850 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
18852         PR middle-end/68542
18853         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
18854         branch with vector comparison.
18855         * config/i386/sse.md (VI48_AVX): New mode iterator.
18856         (define_expand "cbranch<mode>4): Add support for conditional branch
18857         with vector comparison.
18858         * tree-vect-loop.c (optimize_mask_stores): New function.
18859         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
18860         has_mask_store field of vect_info.
18861         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
18862         vectorized loops having masked stores after vec_info destroy.
18863         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
18864         correspondent macros.
18865         (optimize_mask_stores): Add prototype.
18867 2016-02-02  Alan Modra  <amodra@gmail.com>
18869         PR target/69548
18870         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
18871         allow subregs.
18873 2016-02-02  Alan Modra  <amodra@gmail.com>
18875         PR target/68662
18876         * config/rs6000/rs6000.c (need_toc_init): New var, set it
18877         whenever toc_label_name used.
18878         (rs6000_file_start): Don't set up toc section here,
18879         (rs6000_output_function_epilogue): do so here instead,
18880         (rs6000_xcoff_file_start): and here.
18881         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
18882         (load_toc_aix_di): Likewise.
18884 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
18886         PR rtl-optimization/69592
18887         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
18888         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
18889         (num_sign_bit_copies_binary_arith_p): New inline function.
18890         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
18892 2016-02-01  Jeff Law  <law@redhat.com>
18894         PR tree-optimization/69580
18895         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
18896         * tree-ssa-threadbackward.c
18897         (fsm_find_control_statement_thread_paths): Do not try to walk
18898         through large PHI nodes.
18900 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
18902         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
18903         when count is incremented above limit, don't analyze further
18904         insns afterwards.
18906         * omp-low.c (oacc_parse_default_dims): Avoid
18907         -Wsign-compare warning, make sure value fits into int
18908         rather than just unsigned int.
18910 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
18912         PR tree-optimization/67921
18913         * fold-const.c (split_tree): New parameters.  Convert pointer
18914         type variable part to proper type before negating.
18915         (fold_binary_loc): Pass new arguments to split_tree.
18917 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
18919         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
18920         (nvptx_goacc_validate_dims): Extend to handle global defaults.
18921         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
18922         * doc/tm.texti: Rebuilt.
18923         * doc/invoke.texi (fopenacc-dim): Document.
18924         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
18925         (append_compiler_options): Likewise.
18926         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
18927         (oacc_parse_default_dims): New.
18928         (oacc_validate_dims): Add USED arg.  Select non-unity default when
18929         possible.
18930         (oacc_loop_fixed_partitions): Return mask of used partitions.
18931         (oacc_loop_auto_partitions): Emit dump info.
18932         (oacc_loop_partition): Return mask of used partitions.
18933         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
18934         loop partitioning and validation calls.
18936 2016-02-01  Richard Biener  <rguenther@suse.de>
18938         PR middle-end/69556
18939         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
18941 2016-02-01  Richard Biener  <rguenther@suse.de>
18943         PR tree-optimization/69574
18944         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
18945         of asserting return chrec_dont_know.
18947 2016-02-01  Martin Liska  <mliska@suse.cz>
18949         * mem-stats-traits.h: Add copyright header.
18950         * mem-stats.h: Likewise.
18952 2016-02-01  Richard Biener  <rguenther@suse.de>
18954         PR tree-optimization/69579
18955         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
18956         Do not propagate through abnormal PHI results.
18958 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
18960         * postreload.c (reload_cse_simplify): Remove dead code.
18962 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
18964         PR rtl-optimization/69570
18965         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
18966         if there is more than one set, not if there is a single set.
18968 2016-02-01  Richard Henderson  <rth@redhat.com>
18970         PR rtl-opt/69535
18971         * combine.c (make_compound_operation): When looking through a
18972         subreg, make sure to re-extend to the width of the outer mode.
18974 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
18976         PR tree-optimization/69546
18977         * wide-int.cc (wi::divmod_internal): For unsigned division
18978         where both operands fit into uhwi, if o1 is 1 and o0 has
18979         msb set, if divident_prec is larger than bits per hwi,
18980         clear another quotient word and return 2 instead of 1.
18981         Similarly for remainder with msb in HWI set, if dividend_prec
18982         is larger than bits per hwi.
18984 2016-01-29  Martin Jambor  <mjambor@suse.cz>
18986         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
18987         Use short lowercase names.
18988         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
18989         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
18990         acq_rel one.  Protect warning agains segfaults if
18991         get_memory_order_name returns NULL.
18992         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
18993         with release semantics.  Do not warn if get_memory_order already did.
18994         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
18995         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
18996         if get_memory_order already did.
18998 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
19000         * doc/install.texi: Document that isl-0.16 is supported.
19002 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
19004         PR target/69299
19005         * config/i386/constraints.md (Bm): Describe as special memory
19006         constraint.
19007         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
19008         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
19009         * genpreds.c (struct constraint_data): Add is_special_memory.
19010         (have_special_memory_constraints, special_memory_start): New
19011         static vars.
19012         (special_memory_end): Ditto.
19013         (add_constraint): Add new arg is_special_memory.  Add code to
19014         process its true value.  Update have_special_memory_constraints.
19015         (process_define_constraint): Pass the new arg.
19016         (process_define_register_constraint): Ditto.
19017         (choose_enum_order): Process special memory.
19018         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
19019         function insn_extra_special_memory_constraint.
19020         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
19021         * gensupport.c (process_rtx): Process
19022         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
19023         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
19024         * ira-lives.c (single_reg_class): Use
19025         insn_extra_special_memory_constraint.
19026         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
19027         * lra-constraints.c (process_alt_operands): Ditto.
19028         (curr_insn_transform): Use insn_extra_special_memory_constraint.
19029         * recog.c (asm_operand_ok, preprocess_constraints): Process
19030         CT_SPECIAL_MEMORY.
19031         * reload.c (find_reloads): Ditto.
19032         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
19033         * stmt.c (parse_input_constraint): Use
19034         insn_extra_special_memory_constraint.
19036 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
19038         PR target/69530
19039         * lra-splill.c (lra_final_code_change): Revert r229087 by
19040         removing all sub-registers.
19042 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
19044         PR target/65604
19045         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
19047 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
19049         PR target/69551
19050         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
19051         SSE1, copy target into the temporary reg first before recursing
19052         on it.
19054 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
19056         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
19057         with vm.
19059 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
19061         * ginclude/stdarg.h: Test __cplusplus instead of
19062         __GXX_EXPERIMENTAL_CXX0X__.
19064 2016-01-29  Richard Biener  <rguenther@suse.de>
19066         PR tree-optimization/69547
19067         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
19068         Do not mark clobbers necessary.
19069         (mark_all_reaching_defs_necessary_1): Likewise.
19071 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19073         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
19074         declaration name with %qs and print it in both error messages.
19075         Also fix indentation.
19077 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19079         PR other/69006
19080         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
19081         trailing blank line from error message.
19083 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
19085         PR c++/69462
19086         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
19087         for C++-11.
19089 2016-01-29  Richard Biener  <rguenther@suse.de>
19091         PR middle-end/69537
19092         * match.pd: Allow all integral types when simplifying a
19093         widening or sign-changing conversion.
19095 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19097         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
19098         back to setting codegen_error to fail codegen.
19100 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
19102         PR target/69459
19103         * config/i386/constraints.md (C): Only accept constant zero operand.
19104         (BC): New constraint.
19105         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
19106         instead of C constraint.
19107         * doc/md.texi (Machine Constraints): Update description
19108         of C constraint.
19110 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
19112         PR target/68400
19113         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
19115 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
19117         PR middle-end/69542
19118         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
19119         non-debug insns.
19121 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
19123         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
19124         branches if using guessed profile.
19126 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
19128         * graphite-optimize-isl.c (optimize_isl): Fix dump.
19130 2016-01-28  Richard Henderson  <rth@redhat.com>
19132         PR target/69305
19133         * config/aarch64/aarch64-modes.def (CC_Cmode): New
19134         * config/aarch64/aarch64-protos.h: Update.
19135         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
19136         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
19137         (aarch64_get_condition_code_1): Handle CC_Cmode.
19138         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
19139         (*add<mode>3_compareC_cconly_imm): New.
19140         (*add<mode>3_compareC_cconly): New.
19141         (*add<mode>3_compareC_imm): New.
19142         (add<mode>3_compareC): New.
19143         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
19144         to be first.  Use aarch64_carry_operation.
19145         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
19146         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
19147         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
19148         (subti3): Use subdi3_compare1.
19149         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
19150         (sub<mode>3_compare1): New.
19151         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
19152         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
19153         (*subsi3_carryin_uxtw): Likewise.
19154         (*ngc<mode>, *ngcsi_uxtw): Likewise.
19155         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
19156         * config/aarch64/iterators.md (DWI): New.
19157         * config/aarch64/predicates.md (aarch64_carry_operation): New.
19158         (aarch64_borrow_operation): New.
19160 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
19162         * graphite-optimize-isl.c (optimize_isl): Print a different debug
19163         message when isl does not return a valid schedule.
19165 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19167         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
19168         Remove comments from class declarations: they are already in the code
19169         close by the defs.
19171 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19173         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
19174         codegen_error_p.
19175         (ternary_op_to_tree): Same.
19176         (unary_op_to_tree): Same.
19177         (nary_op_to_tree): Same.
19178         (gcc_expression_from_isl_expr_op): Same.
19179         (gcc_expression_from_isl_expression): Same.
19180         (graphite_create_new_loop): Same.
19181         (graphite_create_new_loop_guard): Same.
19182         (build_iv_mapping): Same.
19183         (graphite_create_new_guard): Same.
19184         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
19185         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
19187 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19189         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
19190         instead of setting codegen_error to fail codegen.
19192 2016-01-28  Jason Merrill  <jason@redhat.com>
19194         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
19196 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19198         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
19199         Remove CONST_INT_P check in CCMP cost calculation.
19201 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19203         * config/aarch64/aarch64.c (generic_vector_cost):
19204         Set vec_permute_cost.
19205         (cortexa57_vector_cost): Likewise.
19206         (exynosm1_vector_cost): Likewise.
19207         (xgene1_vector_cost): Likewise.
19208         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
19209         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
19210         Add vec_permute_cost entry.
19212 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19214         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
19215         immediate as %1.
19216         (add<mode>3_compare0): Likewise.
19217         (addsi3_compare0_uxtw): Likewise.
19218         (add<mode>3nr_compare0): Likewise.
19219         (compare_neg<mode>): Likewise.
19220         (<optab><mode>3): Likewise.
19222 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
19224         * tree-vect-stmts.c (vectorizable_comparison): Add
19225         NULL check for vectype.
19227 2016-01-28  Richard Biener  <rguenther@suse.de>
19229         PR tree-optimization/69466
19230         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
19231         Account for PHIs we couldn't duplicate.
19233 2016-01-28  Martin Liska  <mliska@suse.cz>
19235         PR pch/68758
19236         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
19237         instead of ENABLE_VALGRIND_CHECKING.
19239 2016-01-27  Richard Henderson  <rth@redhat.com>
19241         PR rtl-opt/69447
19242         * lra-remat.c (subreg_regs): New.
19243         (dump_candidates_and_remat_bb_data): Dump it.
19244         (operand_to_remat): Reject if operand in subreg_regs.
19245         (set_bb_regs): Collect subreg_regs.
19246         (lra_remat): Init and free subreg_regs.  Compute
19247         calculate_local_reg_remat_bb_data before create_cands.
19249 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
19251         PR target/68986
19252         * config/i386/i386.c (ix86_update_stack_boundary): Don't
19253         change stack_alignment_needed for __tls_get_addr call.
19255 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
19257         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
19259 2016-01-27  Jeff Law  <law@redhat.com>
19261         PR tree-optimization/68398
19262         PR tree-optimization/69196
19263         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
19264         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
19265         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19266         Only count PHIs in the last block in the path.  The others will
19267         const/copy propagate away.  Add heuristic to allow more irreducible
19268         subloops to be created when it is likely profitable to do so.
19270         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19271         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
19272         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
19274 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
19276         PR lto/69254
19277         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
19278         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
19279         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
19280         * tree-streamer-in.c: Include asan.h.
19281         (streamer_get_builtin_tree): For builtins in sanitizer
19282         range call initialize_sanitizer_builtins and retry.
19284 2016-01-27  Ian Lance Taylor  <iant@google.com>
19286         * common.opt (fkeep-gc-roots-live): New undocumented option.
19287         * tree-ssa-loop-ivopts.c (add_candidate_1): If
19288         -fkeep-gc-roots-live, skip pointers.
19289         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
19290         NULL.
19292 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
19294         PR target/69512
19295         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
19296         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
19298 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
19300         PR target/68380
19301         * configure.ac: NetBSD provides SSP in its C library.
19302         * configure: Updated.
19304 2016-01-27  Richard Biener  <rguenther@suse.de>
19306         PR tree-optimization/69166
19307         * tree-vect-loop.c (vect_is_simple_reduction): Always check
19308         reduction code for commutativity / associativity.
19310 2016-01-27  Martin Jambor  <mjambor@suse.cz>
19312         PR tree-optimization/69355
19313         * tree-sra.c (analyze_access_subtree): Correct hole detection when
19314         total_scalarization fails.
19316 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
19318         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
19319         power9.
19321 2016-01-27  Christian Bruel  <christian.bruel@st.com>
19323         PR target/69245
19324         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
19325         Move arm_reset_previous_fndecl and set_target_option_current_node in
19326         the conditional part.  Call save_restore_target_globals.
19327         * config/arm/arm.c (arm_set_current_function):
19328         Refactor to better support #pragma target and attribute mix.
19329         Call save_restore_target_globals.
19330         * config/arm/arm-protos.h (save_restore_target_globals): New function.
19332 2016-01-27  Martin Liska  <mliska@suse.cz>
19334         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
19335         reference for an HSA kernel and its host function.
19337 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
19339         PR tree-optimization/69399
19340         * wide-int.h (wi::lrshift): For larger precisions, only
19341         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
19343 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
19345         * config/arc/predicates.md (proper_comparison_operator): Reject
19346         constant-constant comparison.
19348 2016-01-26  Tom de Vries  <tom@codesourcery.com>
19350         PR tree-optimization/69110
19351         * tree-data-ref.c (initialize_data_dependence_relation): Handle
19352         DR_NUM_DIMENSIONS == 0.
19354 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
19355             Sebastian Pop  <s.pop@samsung.com>
19357         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
19358         isl_ast_op_cond and isl_ast_op_select.
19359         (gcc_expression_from_isl_expr_op): Same.
19361 2016-01-26  Jason Merrill  <jason@redhat.com>
19363         PR c++/68782
19364         * tree.c (recompute_constructor_flags): Split out from
19365         build_constructor.
19366         (verify_constructor_flags): New.
19367         * tree.h: Declare them.
19369 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19371         PR rtl-optimization/69217
19372         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
19373         are no TYPE_FIELDS set for the record type.
19375 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19377         PR target/68662
19378         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
19379         toc_label_name unconditionally.
19380         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
19381         SYMBOL_REF string.  Use toc_label_name instead of constructing
19382         LCTOC1.
19383         (rs6000_elf_declare_function_name): Use toc_label_name instead of
19384         constructing LCTOC1.
19386 2016-01-26  Martin Sebor  <msebor@redhat.com>
19388         PR other/69477
19389         * doc/extend.texi (Common Type Attributes): Move text that talks about
19390         attribute packed from attribute aligned to the section discussing
19391         the former attribute for clarity.
19393 2016-01-26  Richard Henderson  <rth@redhat.com>
19395         PR middle-end/60908
19396         * trans-mem.c (tm_region_init): Mark entry block as visited.
19398 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
19400         PR other/69006
19401         * diagnostic-show-locus.c (layout::print_source_line): Replace
19402         call to pp_newline with call to layout::print_newline.
19403         (layout::print_annotation_line): Likewise.
19404         (layout::move_to_column): Likewise.
19405         (layout::print_any_fixits): After printing any fixits, print a
19406         trailing newline, if necessary.
19407         (layout::print_newline): New method, resetting any colorization
19408         before a newline.
19409         (diagnostic_show_locus): Move the pp_newline to before the
19410         early bailout.  Remove dummy block enclosing the layout instance.
19411         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
19412         of pp_newline_and_flush with pp_flush.
19413         (diagnostic_append_note): Delete use of pp_newline.
19414         (diagnostic_append_note_at_rich_loc): Delete.
19415         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
19416         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
19417         when newline characters are added to the buffer.
19419 2016-01-26  Michael Matz  <matz@suse.de>
19421         * configure.ac (ac_cv_std_swap_in_utility): New test.
19422         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
19423         * configure: Regenerate.
19424         * config.in: Regenerate.
19426 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
19428         * config/arc/arc.md (cstoresi4): Force operand into register.
19429         (arcset<code>): Fix predicate.
19430         (arcsetltu): Likewise.
19431         (arcsetgeu): Likewise.
19432         (arcsethi): Likewise.
19433         (arcsetls): Likewise.
19435 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19437         PR tree-optimization/69483
19438         * gimple-fold.c (canonicalize_constructor_val): Return NULL
19439         if base has error_mark_node type.
19441 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
19443         PR target/68620
19444         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
19445         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
19446         New helper macros.
19447         (vget_lane_f16): Handle big-endian.
19448         (vgetq_lane_f16): Likewise.
19449         (vset_lane_f16): Likewise.
19450         (vsetq_lane_f16): Likewise.
19451         * config/arm/iterators.md (VQXMOV): Add V8HF.
19452         (VDQ): Add V4HF and V8HF.
19453         (V_reg): Handle V4HF and V8HF.
19454         (Is_float_mode): Likewise.
19455         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
19456         neon_vdup_nv8hf): New patterns.
19457         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
19458         Use VD_LANE iterator.
19459         (neon_vld1_dup<mode>): Use VQ2 iterator.
19461 2016-01-26  Nathan Sidwell  <nathan@acm.org>
19463         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
19464         (set_oacc_fn_attrib): Add IS_KERNEL arg.
19465         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
19466         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
19467         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
19468         (oacc_validate_dims): Add LEVEL arg, don't return level.
19469         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
19470         oacc_validate_dims.
19471         (execute_oacc_device_lower): Adjust, add more dump output.
19472         * tree-ssa-loop.c (gate_oacc_kernels): Use
19473         oacc_fn_attrib_kernels_p.
19474         * tree-parloops.c (create_parallel_loop): Adjust
19475         set_oacc_fn_attrib call.
19477 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19479         PR lto/69254
19480         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
19481         (append_compiler_options): Handle -fcilkplus.
19482         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
19484 2016-01-26  Nick Clifton  <nickc@redhat.com>
19486         PR target/66655
19487         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
19488         been marked as DECL_ONE_ONLY but we do not the means to make it
19489         so, then do not allow it to bind locally.
19491 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19493         PR lto/69254
19494         * opts.h (parse_sanitizer_options): New prototype.
19495         * opts.c (sanitizer_opts): New array.
19496         (parse_sanitizer_options): New function.
19497         (common_handle_option): Use parse_sanitizer_options.
19499 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19501         PR target/68986
19502         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
19503         alignment adjustment to ...
19504         (ix86_update_stack_boundary): Here.  Don't over-align stack for
19505         __tls_get_addr.
19506         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
19507         if __tls_get_addr is called.
19509 2016-01-26  Christian Bruel  <christian.bruel@st.com>
19511         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
19513 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
19515         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
19517 2016-01-26  Richard Biener  <rguenther@suse.de>
19519         PR middle-end/69467
19520         * match.pd: Guard X * CST CMP 0 pattern with single_use.
19522 2016-01-26  Richard Biener  <rguenther@suse.de>
19524         PR tree-optimization/69452
19525         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
19526         (move_computations_dom_walker::before_dom_children): Rename
19527         to ...
19528         (move_computations_worker): This.
19529         (move_computations): Perform an RPO rather than a DOM walk.
19531 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19533         PR target/69442
19534         * combine.c (combine_instructions): For REG_EQUAL note with
19535         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
19536         to the underlying register.
19537         * doc/rtl.texi (REG_EQUAL): Document the behavior of
19538         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
19540 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
19542         PR target/67896
19543         * config/aarch64/aarch64-builtins.c
19544         (aarch64_init_simd_builtin_types): Do not set structural
19545         equality to __Poly{8,16,64,128}_t types.
19547 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
19549         PR tree-optimization/69400
19550         * wide-int.cc (wi_pack): Take the precision as argument and
19551         perform canonicalization here rather than in the callers.
19552         Use the main loop to handle all full-width HWIs.  Add a
19553         zero HWI if in_len isn't a full result.
19554         (wi::divmod_internal): Update accordingly.
19555         (wi::mul_internal): Likewise.  Simplify.
19557 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
19558             Sebastian Pop  <s.pop@samsung.com>
19560         * graphite-poly.c (apply_poly_transforms): Simplify.
19561         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
19562         (print_isl_map): Same.
19563         (print_isl_union_map): Same.
19564         (print_isl_schedule): New.
19565         (debug_isl_schedule): New.
19566         * graphite-dependences.c (scop_get_reads): Do not call
19567         isl_union_map_add_map that is undocumented isl functionality.
19568         (scop_get_must_writes): Same.
19569         (scop_get_may_writes): Same.
19570         (scop_get_original_schedule): Remove.
19571         (scop_get_dependences): Do not call isl_union_map_compute_flow that
19572         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
19573         (compute_deps): Remove.
19574         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
19575         (debug_schedule_ast): New.
19576         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
19577         set_separate_option.
19578         (graphite_regenerate_ast_isl): Add dump.
19579         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
19580         from scop->transformed_schedule.
19581         (graphite_regenerate_ast_isl): Add more dump.
19582         * graphite-optimize-isl.c (optimize_isl): Set
19583         scop->transformed_schedule.  Check whether schedules are equal.
19584         (apply_poly_transforms): Move here.
19585         * graphite-poly.c (apply_poly_transforms): ... from here.
19586         (free_poly_bb): Static.
19587         (free_scop): Static.
19588         (pbb_number_of_iterations_at_time): Remove.
19589         (print_isl_ast): New.
19590         (debug_isl_ast): New.
19591         (debug_scop_pbb): New.
19592         * graphite-scop-detection.c (print_edge): Move.
19593         (print_sese): Move.
19594         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
19595         (build_scop_scattering): Remove.
19596         (create_pw_aff_from_tree): Assert instead of bailing out.
19597         (add_condition_to_pbb): Remove unused code, do not fail.
19598         (add_conditions_to_domain): Same.
19599         (add_conditions_to_constraints): Remove.
19600         (build_scop_context): New.
19601         (add_iter_domain_dimension): New.
19602         (build_iteration_domains): Initialize pbb->iterators.
19603         Call add_conditions_to_domain.
19604         (nested_in): New.
19605         (loop_at): New.
19606         (index_outermost_in_loop): New.
19607         (index_pbb_in_loop): New.
19608         (outermost_pbb_in): New.
19609         (add_in_sequence): New.
19610         (add_outer_projection): New.
19611         (outer_projection_mupa): New.
19612         (add_loop_schedule): New.
19613         (build_schedule_pbb): New.
19614         (build_schedule_loop): New.
19615         (embed_in_surrounding_loops): New.
19616         (build_schedule_loop_nest): New.
19617         (build_original_schedule): New.
19618         (build_poly_scop): Call build_original_schedule.
19619         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
19620         (free_poly_dr): Remove.
19621         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
19622         (free_poly_bb): Remove.
19623         (debug_loop_vec): Remove.
19624         (print_isl_ast): Declare.
19625         (debug_isl_ast): Declare.
19626         (scop_do_interchange): Remove.
19627         (scop_do_strip_mine): Remove.
19628         (scop_do_block): Remove.
19629         (flatten_all_loops): Remove.
19630         (optimize_isl): Remove.
19631         (pbb_number_of_iterations_at_time): Remove.
19632         (debug_scop_pbb): Declare.
19633         (print_schedule_ast): Declare.
19634         (debug_schedule_ast): Declare.
19635         (struct scop): Remove schedule.  Add original_schedule,
19636         transformed_schedule.
19637         (free_gimple_poly_bb): Remove.
19638         (print_generated_program): Remove.
19639         (debug_generated_program): Remove.
19640         (unify_scattering_dimensions): Remove.
19641         * sese.c (print_edge): ... here.
19642         (print_sese): ... here.
19643         (debug_edge): ... here.
19644         (debug_sese): ... here.
19645         * sese.h (print_edge): Declare.
19646         (print_sese): Declare.
19647         (dump_edge): Declare.
19648         (dump_sese): Declare.
19650 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
19651             Sebastian Pop  <s.pop@samsung.com>
19653         * Makefile.in: Set ISLVER in site.exp.
19655 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
19657         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
19658         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
19659         through DECL_VALUE_EXPR for expansion.
19661 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19663         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
19664         the frame info after reload completed.
19666 2016-01-25  Jeff Law  <law@redhat.com>
19668         PR tree-optimization/69196
19669         PR tree-optimization/68398
19670         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
19671         tree-ssa-threadupdate.c.
19672         (determine_bb_domination_status): Prototype
19673         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
19674         (determine_bb_domination_status): No longer static.
19675         (valid_jump_thread_path): Remove code to detect characteristics
19676         of the jump thread path not associated with correctness.
19677         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
19678         Correct test for thread path length.  Count PHIs for real operands as
19679         statements that need to be copied.  Do not count ASSERT_EXPRs.
19680         Look at all the blocks in the thread path.  Compute and selectively
19681         filter thread paths based on threading through the latch, threading
19682         a multiway branch or crossing a multiway branch.
19684 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19686         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
19687         decl with __attribute__ ((unused)) annotation.
19689 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
19691         PR target/69421
19692         * tree-vect-stmts.c (vectorizable_condition): Check vectype
19693         of operands is compatible with a statement vectype.
19695 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
19697         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
19698         improve wording for mixed storage order support.
19700 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
19702         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
19703         (vcvt_u64_f64): Likewise.
19704         (vcvta_s64_f64): Likewise.
19705         (vcvta_u64_f64): Likewise.
19706         (vcvtm_s64_f64): Likewise.
19707         (vcvtm_u64_f64): Likewise.
19708         (vcvtn_s64_f64): Likewise.
19709         (vcvtn_u64_f64): Likewise.
19710         (vcvtp_s64_f64): Likewise.
19711         (vcvtp_u64_f64): Likewise.
19713 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
19715         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
19716         (arc_init): Check validity mll64 option.
19717         (arc_save_restore): Use double load/store instruction.
19718         (arc_expand_movmem): Likewise.
19719         (arc_split_move): Don't split if we have double load/store
19720         instructions. Returns a boolean.
19721         (arc_process_double_reg_moves): Change function to return boolean
19722         instead of a sequence of instructions.
19723         (arc_dwarf_register_span): New function.
19724         * config/arc/arc-protos.h (arc_split_move): Change prototype.
19725         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
19726         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
19727         (*movdf_insn): Likewise.
19728         * config/arc/arc.opt (mll64): New option.
19729         * config/arc/predicates.md (even_register_operand): New predicate.
19730         * doc/invoke.texi (ARC Options): Add mll64 documentation.
19732 2016-01-25  Richard Biener  <rguenther@suse.de>
19734         PR lto/69393
19735         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
19736         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
19737         DECL_NAMELESS.
19738         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
19740 2016-01-25  Richard Biener  <rguenther@suse.de>
19742         PR tree-optimization/69376
19743         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
19744         flag.
19745         (VN_INFO_ANTI_RANGE_P): New inline.
19746         (VN_INFO_RANGE_TYPE): Likewise.
19747         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
19748         SSA_NAME_ANTI_RANGE_P.
19749         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
19750         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19751         Properly query VN_INFO_RANGE_TYPE.
19753 2016-01-25  Nick Clifton  <nickc@redhat.com>
19755         PR target/66655
19756         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
19758 2016-01-23  Tom de Vries  <tom@codesourcery.com>
19760         PR tree-optimization/69426
19761         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
19762         removed clobber.
19764 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
19766         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
19767         "the the" with "the" in the comments.
19768         * ipa-devirt.c (build_type_inheritance_graph,
19769         update_type_inheritance_graph): Likewise.
19770         * tree.c (build_function_type_list_1): Likewise.
19771         * cfgloopmanip.c (scale_loop_profile): Likewise.
19772         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
19773         * gimple-ssa-split-paths.c
19774         (find_block_to_duplicate_for_splitting_paths): Likewise.
19775         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
19776         * expr.c (convert_move): Likewise.
19777         * var-tracking.c (vt_stack_adjustments): Likewise.
19778         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19779         * tree-vrp.c (test_for_singularity): Likewise.
19781         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
19782         directly instead of building a temporary tree.
19784         PR bootstrap/69434
19785         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
19786         remove <algorithm> include.
19788 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
19790         PR target/69432
19791         * config/i386/i386.c: Include dojump.h.
19792         (expand_small_movmem_or_setmem,
19793         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
19794         fixes.
19795         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
19796         if dynamic_check != -1.
19798 2016-01-21  Jeff Law  <law@redhat.com>
19800         PR middle-end/69347
19801         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
19802         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
19803         into dominated_by_p.
19804         (cprop_into_successor_phis): Avoid unnecessary tests.
19806 2016-01-22  Richard Henderson  <rth@redhat.com>
19808         PR target/69416
19809         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
19810         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
19812 2016-01-22  Michael Matz  <matz@suse.de>
19814         * system.h (string, algorithm): Include only conditionally.
19815         (new): Include always under C++.
19816         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
19817         * final.c (toplevel): Ditto.
19818         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
19819         * genconditions.c (write_header): Make gencondmd.c define
19820         INCLUDE_STRING.
19821         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
19823         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
19824         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
19826 2016-01-22  Christian Bruel  <christian.bruel@st.com>
19828         PR target/68674
19829         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
19831 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19833         PR target/69403
19834         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
19835         define_insn_and_split.  Ensure operands[1] and operands[0] do not
19836         get assigned the same register.
19838 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19840         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
19842 2016-01-22  Christian Bruel  <christian.bruel@st.com>
19844         * config/arm/arm-c.c (arm_pragma_target_parse):
19845         Remove warn_builtin_macro_redefined overwrite.
19847 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
19849         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
19850         flag_non_call_exceptions compatibility.
19852 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
19854         PR debug/66668
19855         * dwarf2out.c (add_child_die_after): New function.
19856         (dwarf_qual_info_t): New type.
19857         (dwarf_qual_info): New variable.
19858         (qualified_die_p): New function.
19859         (modified_type_die): For -fdebug-types-section, ensure
19860         canonical order of qualifiers.  Put qualified DIEs adjacent
19861         to the corresponding non-qualified type DIE and search there
19862         for existing qualified DIEs.
19864 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
19866         * doc/extend.texi (scalar_storage_order type attribute): Document
19867         restriction on type punning and aliasing, and remove future tense.
19869 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
19871         PR target/69252
19872         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
19873         first stage.
19875 2016-01-21  Jeff Law  <law@redhat.com>
19877         PR middle-end/69347
19878         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
19879         useless call to record_temporary_equivalences.
19880         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
19881         allocate 10 slots in the bb_path vector and let it grow as needed.
19882         (fsm_find_control_statement_thread_paths): Similarly for the next_path
19883         vector.
19885 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
19887         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
19888         Detangle.
19889         * configure: Regenerate.
19891 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
19893         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
19894         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
19896 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
19898         PR middle-end/66178
19899         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
19900         drop EXPAND_INITIALIZER.
19901         * rtl.h (contains_symbolic_reference_p): Declare.
19902         * rtlanal.c (contains_symbolic_reference_p): New function.
19903         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
19904         a subtraction into a NOT if symbolic constants are involved.
19906 2016-01-21  Anton Blanchard  <anton@samba.org>
19907             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19909         PR target/63354
19910         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
19911         #define.
19912         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
19913         function.
19915 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
19917         * config/microblaze/microblaze.c
19918         (get_branch_target): New.
19919         (insert_wic_for_ilb_runout): New.
19920         (insert_wic): New.
19921         (microblaze_machine_dependent_reorg): New.
19922         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
19923         * config/microblaze/microblaze.md
19924         (UNSPEC_IPREFETCH): Define.
19925         (iprefetch): New pattern
19926         * config/microblaze/microblaze.opt
19927         (mxl-prefetch): New flag.
19929 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
19931         * config/microblaze/microblaze.h
19932         (FIXED_REGISTERS): Update in macro.
19933         (CALL_USED_REGISTERS): Update in macro.
19935 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
19937         PR rtl-optimization/68920
19938         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
19939         moves.
19941 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19943         PR rtl-optimization/68990
19944         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
19945         pseudo instead of inheritance ones.
19947 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19948             Nick Clifton  <nickc@redhat.com>
19950         PR target/69129
19951         PR target/69012
19952         * config/mips/mips.c (mips_compute_frame_info): Initialise
19953         args_size and hard_frame_pointer_offset fields of the frame
19954         structure before calling mips_global_pointer.
19956 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
19958         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
19959         label reference.
19960         * configure: Regenerate.
19962 2016-01-21  Richard Biener  <rguenther@suse.de>
19964         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
19966 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
19968         * config/s390/s390.c (s390_asm_declare_function_size): Add code
19969         to actually emit the .size directive.
19971 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
19972              Jakub Jelinek  <jakub@redhat.com>
19974         PR target/69187
19975         PR target/65624
19976         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
19977         args array size by one to avoid buffer overflow.
19979 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
19981         * config/s390/s390.md (pool_section_start): Use switch_to_section
19982         to select proper read-only data section instead of hardcoding
19983         .rodata.
19984         (pool_section_end): Use switch_to_section to match the above.
19986 2016-01-21  Richard Biener  <rguenther@suse.de>
19988         PR tree-optimization/69378
19989         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
19990         (set_ssa_val_to): Use it for dominance checks taking into
19991         account not executable edges.
19993 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
19995         PR c++/69355
19996         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
19997         for bitsize instead of GET_MODE_PRECISION (mode).
19999 2016-01-20  Martin Sebor  <msebor@redhat.com>
20001         PR c/52291
20002         * extend.texi (__sync Builtins): Clarify the semantics of
20003         __sync_fetch_and_OP built-ins on pointers.
20004         (__atomic Builtins): Same.
20006 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20007             Sebastian Pop  <s.pop@samsung.com>
20009         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
20010         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
20011         (is_valid_rename): Same.
20012         (translate_isl_ast_to_gimple::get_rename): Same.
20013         (translate_isl_ast_to_gimple::rename_all_uses): Same.
20014         (translate_isl_ast_to_gimple::rename_uses): Same.
20015         (get_new_name): Check for close_phi nodes.
20016         (copy_loop_phi_args): Use phi_node_kind.
20017         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
20018         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
20020 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20021             Sebastian Pop  <s.pop@samsung.com>
20023         Revert commit r229783.
20024         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
20025         Remove use of parameter_rename_map.
20026         (copy_def): Remove.
20027         (copy_internal_parameters): Remove.
20028         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
20029         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
20030         (free_sese_info): Do not free parameter_rename_map.
20031         (set_rename): Do not use parameter_rename_map.
20032         (rename_uses): Update call to set_rename.
20033         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
20034         * sese.h (parameter_rename_map_t): Remove.
20035         (struct sese_info_t): Remove field parameter_rename_map.
20037 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20038             Sebastian Pop  <s.pop@samsung.com>
20040         * graphite-isl-ast-to-gimple.c: Fix comment.
20041         * graphite-scop-detection.c (defined_in_loop_p): New.
20042         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
20043         names defined in loop.
20045 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20046             Sebastian Pop  <s.pop@samsung.com>
20048         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
20049         Discard unstructured if-then-else regions.
20051 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20052             Sebastian Pop  <s.pop@samsung.com>
20054         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
20055         (cleanup_loop_iter_dom): Remove.
20056         (build_loop_iteration_domains): Remove.
20057         (build_scop_context): Remove.
20058         (build_scop_iteration_domain): Remove.
20059         (add_loop_constraints): New.
20060         (build_iteration_domains): New.
20061         (build_poly_scop): Call build_iteration_domains.
20063 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20064             Sebastian Pop  <s.pop@samsung.com>
20066         * graphite-scop-detection.c
20067         (scop_detection::harmful_loop_in_region): Free dom and loops.
20068         (scop_detection::loop_body_is_valid_scop): Free bbs.
20070 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20071             Sebastian Pop  <s.pop@samsung.com>
20073         * graphite-scop-detection.c (record_loop_in_sese): New.
20074         (gather_bbs::before_dom_children): Call record_loop_in_sese.
20075         (build_scops): Remove call to build_sese_loop_nests.
20076         * sese.c (sese_record_loop): Remove.
20077         (build_sese_loop_nests): Remove.
20078         (new_sese_info): Remove region->loops.
20079         (free_sese_info): Same.
20080         * sese.h (sese_contains_loop): Same.
20081         (build_sese_loop_nests): Remove.
20082         (sese_contains_loop): Remove.
20084 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20085             Sebastian Pop  <s.pop@samsung.com>
20087         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
20088         loop_is_valid_in_scop.
20089         (scop_detection::harmful_stmt_in_region): Renamed
20090         harmful_loop_in_region.
20091         Call loop_is_valid_in_scop.
20093 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20094             Sebastian Pop  <s.pop@samsung.com>
20096         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
20097         isl_ast_node_mark.
20099 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20100             Sebastian Pop  <s.pop@samsung.com>
20102         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
20103         * graphite.h (struct poly_bb): Remove field is_reduction.
20104         (PBB_IS_REDUCTION): Remove.
20106 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20107             Sebastian Pop  <s.pop@samsung.com>
20109         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
20110         (add_pdr_constraints): Same.
20111         (scop_get_reads): Same.
20112         (scop_get_must_writes): Same.
20113         (scop_get_may_writes): Same.
20114         (scop_get_original_schedule): Same.
20115         (extend_schedule): Same.
20116         (apply_schedule_on_deps): Same.
20117         (carries_deps): Same.
20118         (compute_deps): Same.
20119         (scop_get_dependences): Same.
20120         * graphite-isl-ast-to-gimple.c
20121         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
20122         * graphite-optimize-isl.c (get_schedule_for_band): Same.
20123         (get_schedule_for_band_list): Same.
20124         (get_schedule_map): Same.
20125         (apply_schedule_map_to_scop): Same.
20126         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20127         (build_loop_iteration_domains): Same.
20128         (add_condition_to_pbb): Same.
20129         (add_param_constraints): Same.
20130         (pdr_add_memory_accesses): Same.
20131         (pdr_add_data_dimensions): Same.
20133 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
20135         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
20136         requirements.
20138 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
20140         * common.opt (feliminate-dwarf2-dups): Replace references to
20141         "DWARF 2" with just "DWARF".
20142         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
20143         * doc/extend.texi: Likewise.
20144         * doc/cpp.texi: Likewise.
20145         * doc/invoke.texi: Likewise.
20146         (Option Summary): Add -gdwarf to list of Debugging Options.
20147         (Debugging Options): Document -gdwarf.
20148         * doc/contrib.texi: Spell "DWARF" like that.
20150 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
20152         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
20153         warning.  Fix up formatting.
20155         PR middle-end/67653
20156         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
20157         attempt to mark memory input operand addressable and
20158         call prepare_gimple_addressable in that case.  Don't adjust
20159         input_location for diagnostics, use error_at instead.
20161 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
20163         * config/rs6000/ppc-auxv.h: New file.
20164         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
20165         (cpu_is): Likewise.
20166         (cpu_supports): Likewise.
20167         * config/rs6000/rs6000.c: include "ppc-auxv.h".
20168         (cpu_is_info): New variable.
20169         (cpu_supports_info): Likewise.
20170         (tcb_verification_symbol): Likewise.
20171         (cpu_builtin_p): Likewise.
20172         (cpu_expand_builtin): New function.
20173         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
20174         (rs6000_init_builtins): Likewise.
20175         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
20176         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
20177         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
20178         * configure: Regenerate.
20179         * config.in: Likewise.
20180         * doc/extend.texi (PowerPC Built-in Functions): Document
20181         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
20183 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
20185         PR target/68609
20186         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
20187         domain check.
20188         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
20189         for V4SFmode.
20191 2016-01-20  Richard Henderson  <rth@redhat.com>
20193         PR bootstrap/69343
20194         PR bootstrap/69339
20195         PR tree-opt/68964
20196         Revert:
20197         * tree.c (tm_define_builtin): New.
20198         (find_tm_vector_type): New.
20199         (build_tm_vector_builtins): New.
20200         (build_common_builtin_nodes): Call it.
20202 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
20204         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
20205         (arm_fp_ok): Likewise.
20206         (arm_fp): Likewise.
20207         (arm_crypto): Likewise.
20209 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20210             Richard Biener  <rguenther@suse.de>
20212         PR tree-optimization/69328
20213         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
20214         vectors have same number of elements.
20215         (vectorizable_condition): Fix masked version recognition.
20217 2016-01-20  Richard Biener  <rguenther@suse.de>
20219         PR tree-optimization/69345
20220         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
20221         (VN_INFO_PTR_INFO): Likewise.
20222         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
20223         info when it is equal between non-dominating SSA names.
20224         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20225         Make sure to look at original SSA infos.
20227 2016-01-20  Jeff Law  <law@redhat.com>
20229         PR target/25114
20230         * config/m68k/predicates.md (pow2_m1_operand): New predicate
20231         extracted from ...
20232         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
20233         (pc_or_label_operand): New predicate.
20234         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
20235         tests for small integers that are 2^n - 1.
20237 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
20239         * doc/invoke.texi (Options Summary): Add '.' after @xref.
20241 2016-01-19  Jeff Law  <law@redhat.com>
20243         PR middle-end/69347
20244         * tree-ssa-threadbackwards.c
20245         (fsm_find_control_statement_thread_paths): Do not try to lookup
20246         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
20248 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20250         * doc/lto.texi: Remove text that says only Gold has linker plugin
20251         support.
20253 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
20255         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
20256         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
20257         the DIE accordingly.
20258         (modified_type_die): Add REVERSE parameter and pass it recursively,
20259         as well as to base_type_die.  Adjust presence check accordingly.
20260         (base_type_for_mode): Adjust call to modified_type_die.
20261         (add_type_attribute): Add REVERSE parameter and pass it to
20262         modified_type_die.
20263         (generic_parameter_die): Adjust call to add_type_attribute.
20264         (add_scalar_info): Likewise.
20265         (add_subscript_info): Likewise.
20266         (gen_array_type_die): Likewise.
20267         (gen_descr_array_type_die): Likewise.
20268         (gen_entry_point_die): Likewise.
20269         (gen_enumeration_type_die): Likewise.
20270         (gen_formal_parameter_die): Likewise.
20271         (gen_subprogram_die): Likewise.
20272         (gen_variable_die ): Likewise.
20273         (gen_const_die): Likewise.
20274         (gen_field_die): Likewise.
20275         (gen_pointer_type_die): Likewise.
20276         (gen_reference_type_die): Likewise.
20277         (gen_ptr_to_mbr_type_die): Likewise.
20278         (gen_inheritance_die): Likewise.
20279         (gen_subroutine_type_die): Likewise.
20280         (gen_typedef_die): Likewise.
20281         (force_type_die): Adjust call to modified_type_die.
20283 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
20285         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
20286         flow throughout the file.  Fix broken link to Objective-C 2.0
20287         documentation.
20288         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
20289         errors.
20291 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20293         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
20295 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20297         PR ipa/66223
20298         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
20299         (maybe_record_node): Record cxa_pure_virtual as the only possible
20300         target if there are not ohter candidates.
20301         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
20303 2016-01-19  Richard Biener  <rguenther@suse.de>
20305         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
20306         (get_memory_order): Likewise.
20308 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
20310         * tree-vect-stmts.c (vectorizable_store): Check
20311         rhs vectype.
20313 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
20315         PR jit/68446
20316         * gcc.c (driver::decode_argv): Add call to
20317         init_opts_obstack before init_options_struct.
20318         * opts.c (init_opts_obstack): Remove idempotency.
20319         (init_options_struct): Replace call to init_opts_obstack
20320         with a gcc_assert to verify that it has already been called.
20321         * toplev.c (toplev::main): Add call to init_opts_obstack before
20322         calls to init_options_struct.
20323         (toplev::finalize): Move cleanup of opts_obstack next to
20324         cleanup of save_decoded_options, clearing the latter, and
20325         save_decoded_options_count.
20327 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20329         PR target/69135
20330         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
20331         attribute to unconditional.  Remove %? from output template.
20333 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20334             Jiong Wang  <jiong.wang@arm.com>
20336         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
20337         generated from different expand order.
20339 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20341         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
20342         Add support for CCMP costing.
20344 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20346         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
20347         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
20348         (fccmpe<mode>): Likewise.
20349         (fcmp): Rename to fcmp and globalize pattern.
20350         (fcmpe): Likewise.
20351         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
20352         (aarch64_gen_ccmp_next): Add FP support.
20354 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20356         * target.def (gen_ccmp_first): Update documentation.
20357         (gen_ccmp_next): Likewise.
20358         * doc/tm.texi (gen_ccmp_first): Update documentation.
20359         (gen_ccmp_next): Likewise.
20360         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
20361         expand_ccmp_expr_1.  Improve comments.
20362         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
20363         (ccmp_ior<mode>): Remove pattern.
20364         (cmp<mode>): Remove expand.
20365         (cmp): Globalize pattern.
20366         (cstorecc4): Use cc_register.
20367         (mov<mode>cc): Remove ccmp_cc_register check.
20368         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
20369         Simplify after removal of CC_DNE/* modes.
20370         (aarch64_ccmp_mode_to_code): Remove.
20371         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
20372         In 'k' case use integer as condition.
20373         (aarch64_nzcv_codes): Remove inverted cases.
20374         (aarch64_code_to_ccmode): Remove.
20375         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
20376         comparison with CC register to be used in folowing CCMP/branch/CSEL.
20377         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
20378         pattern.  Return the comparison with CC register.  Invert conditions
20379         when bitcode is OR.
20380         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
20381         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
20383 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20385         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
20386         instrumented_version.
20388 2016-01-19  Richard Biener  <rguenther@suse.de>
20390         PR tree-optimization/69336
20391         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
20392         handled components with get_ref_base_and_extent.
20393         (equal_mem_array_ref_p): Adjust.
20395 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
20397         PR debug/65779
20398         * shrink-wrap.c: Include valtrack.h.
20399         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
20400         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
20401         in between insn and where it will be moved to.  Call
20402         dead_debug_insert_temp.
20403         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
20404         first and dead_debug_local_finish at the end.
20405         For uses and defs bitmap, handle all regs in between REGNO and
20406         END_REGNO, not just the first one.
20408 2016-01-19  Richard Biener  <rguenther@suse.de>
20410         PR tree-optimization/69352
20411         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
20412         (equal_mem_array_ref_p): Constrain size and max size properly.
20413         Compare the reverse flag.
20415 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
20417         * ira.c (ira): Update regstat data if we deleted insns.
20419 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
20421         PR rtl-optimization/68955
20422         PR rtl-optimization/64557
20423         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
20424         here.  Fix up formatting.
20425         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
20427 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20429         PR lto/69133
20430         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
20431         assume that the node has body.
20432         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
20433         check.
20435 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20437         * lto-streamer-out.c (lto_output): Do not stream instrumentation
20438         thunks.
20440 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20442         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
20443         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
20445 2016-01-19  Martin Jambor  <mjambor@suse.cz>
20446             Martin Liska  <mliska@suse.cz>
20447             Michael Matz  <matz@suse.de>
20449         * Makefile.in (OBJS): Add new source files.
20450         (GTFILES): Add hsa.c.
20451         * common.opt (disable_hsa): New variable.
20452         (-Whsa): New warning.
20453         * config.in (ENABLE_HSA): New.
20454         * configure.ac: Treat hsa differently from other accelerators.
20455         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
20456         $enable_offloading.
20457         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
20458         * doc/install.texi (Configuration): Document --with-hsa-runtime,
20459         --with-hsa-runtime-include, --with-hsa-runtime-lib and
20460         --with-hsa-kmt-lib.
20461         * doc/invoke.texi (-Whsa): Document.
20462         (hsa-gen-debug-stores): Likewise.
20463         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
20464         to invoke offload compiler for hsa acclerator.
20465         * opts.c (common_handle_option): Determine whether HSA offloading
20466         should be performed.
20467         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
20468         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
20469         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
20470         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
20471         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
20472         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
20473         GF_OMP_FOR_KIND_GRID_LOOP.
20474         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
20475         (pp_gimple_stmt_1): Likewise.
20476         * gimple-walk.c (walk_gimple_stmt): Likewise.
20477         * gimple.c (gimple_build_omp_grid_body): New function.
20478         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
20479         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
20480         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
20481         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
20482         GF_OMP_TEAMS_GRID_PHONY.
20483         (gimple_statement_omp_single_layout): Updated comments.
20484         (gimple_build_omp_grid_body): New function.
20485         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
20486         (gimple_omp_for_grid_phony): New function.
20487         (gimple_omp_for_set_grid_phony): Likewise.
20488         (gimple_omp_parallel_grid_phony): Likewise.
20489         (gimple_omp_parallel_set_grid_phony): Likewise.
20490         (gimple_omp_teams_grid_phony): Likewise.
20491         (gimple_omp_teams_set_grid_phony): Likewise.
20492         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
20493         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
20494         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
20495         (BUILT_IN_GOMP_TARGET): Updated type.
20496         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
20497         (adjust_for_condition): New function.
20498         (get_omp_for_step_from_incr): Likewise.
20499         (extract_omp_for_data): Moved parts to adjust_for_condition and
20500         get_omp_for_step_from_incr.
20501         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
20502         (fixup_child_record_type): Bail out if receiver_decl is NULL.
20503         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
20504         (scan_omp_parallel): Do not create child functions for phony
20505         constructs.
20506         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
20507         (scan_omp_1_op): Checking assert we are not remapping to
20508         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
20509         (parallel_needs_hsa_kernel_p): New function.
20510         (expand_parallel_call): Register apprpriate parallel child
20511         functions as HSA kernels.
20512         (grid_launch_attributes_trees): New type.
20513         (grid_attr_trees): New variable.
20514         (grid_create_kernel_launch_attr_types): New function.
20515         (grid_insert_store_range_dim): Likewise.
20516         (grid_get_kernel_launch_attributes): Likewise.
20517         (get_target_argument_identifier_1): Likewise.
20518         (get_target_argument_identifier): Likewise.
20519         (get_target_argument_value): Likewise.
20520         (push_target_argument_according_to_value): Likewise.
20521         (get_target_arguments): Likewise.
20522         (expand_omp_target): Call get_target_arguments instead of looking
20523         up for teams and thread limit.
20524         (grid_expand_omp_for_loop): New function.
20525         (grid_arg_decl_map): New type.
20526         (grid_remap_kernel_arg_accesses): New function.
20527         (grid_expand_target_kernel_body): New function.
20528         (expand_omp): Call it.
20529         (lower_omp_for): Do not emit phony constructs.
20530         (lower_omp_taskreg): Do not emit phony constructs but create for them
20531         a temporary variable receiver_decl.
20532         (lower_omp_taskreg): Do not emit phony constructs.
20533         (lower_omp_teams): Likewise.
20534         (lower_omp_grid_body): New function.
20535         (lower_omp_1): Call it.
20536         (grid_reg_assignment_to_local_var_p): New function.
20537         (grid_seq_only_contains_local_assignments): Likewise.
20538         (grid_find_single_omp_among_assignments_1): Likewise.
20539         (grid_find_single_omp_among_assignments): Likewise.
20540         (grid_find_ungridifiable_statement): Likewise.
20541         (grid_target_follows_gridifiable_pattern): Likewise.
20542         (grid_remap_prebody_decls): Likewise.
20543         (grid_copy_leading_local_assignments): Likewise.
20544         (grid_process_kernel_body_copy): Likewise.
20545         (grid_attempt_target_gridification): Likewise.
20546         (grid_gridify_all_targets_stmt): Likewise.
20547         (grid_gridify_all_targets): Likewise.
20548         (execute_lower_omp): Call grid_gridify_all_targets.
20549         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
20550         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
20551         (tree_omp_clause): Added union field dimension.
20552         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
20553         * tree.c (omp_clause_num_ops): Added number of arguments of
20554         OMP_CLAUSE__GRIDDIM_.
20555         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
20556         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
20557         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
20558         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
20559         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
20560         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
20561         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
20562         * tree-pass.h (make_pass_gen_hsail): Declare.
20563         (make_pass_ipa_hsa): Likewise.
20564         * ipa-hsa.c: New file.
20565         * lto-section-in.c (lto_section_name): Add hsa section name.
20566         * lto-streamer.h (lto_section_type): Add hsa section.
20567         * timevar.def (TV_IPA_HSA): New.
20568         * hsa-brig-format.h: New file.
20569         * hsa-brig.c: New file.
20570         * hsa-dump.c: Likewise.
20571         * hsa-gen.c: Likewise.
20572         * hsa.c: Likewise.
20573         * hsa.h: Likewise.
20574         * toplev.c (compile_file): Call hsa_output_brig.
20575         * hsa-regalloc.c: New file.
20577 2016-01-18  Jeff Law  <law@redhat.com>
20579         PR tree-optimization/69320
20580         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
20581         ranged object, do nothing if the RHS constant is not [0..1].
20582         (optimize_stmt): Comparing a boolean ranged object against a
20583         constant outside [0..1] results in a compile-time constant.
20585         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
20586         test.
20588 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
20590         * doc/invoke.texi (Invoking GCC): Add new section to menu.
20591         (Option Summary): Update to reflect new section and moved options.
20592         (C++ Dialect Options): Move -fstats to new section.
20593         (Debugging Options): Move all dump, statistics, and other GCC
20594         developer options to new section.  Rewrite section introduction
20595         and re-order remaining options to put the more basic ones first.
20596         (Optimization Options): Move -fira-verbose and -flto-report* to
20597         new section.
20598         (Developer Options): New section incorporating moved options.
20599         * doc/cppopts.texi (-dM): Update cross-reference.
20601 2016-01-18  Richard Henderson  <rth@redhat.com>
20603         PR target/69176
20604         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
20605         operands to pseudo only if CSE is expected.  Split long immediate
20606         operands only after reload, and for the stack pointer.
20607         (*add<GPI>3_pluslong): Remove.
20608         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
20609         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
20610         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
20611         (*add<GPI>3 peepholes): New.
20612         (*add<GPI>3 splitters): New.
20613         * config/aarch64/constraints.md (Upl): New.
20614         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
20616 2016-01-18  Richard Biener  <rguenther@suse.de>
20618         PR tree-optimization/69297
20619         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
20620         stmt at most once.
20621         (vect_bb_vectorization_profitable_p): Clear visited flag again.
20623 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
20625         PR middle-end/68542
20626         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
20627         of mixind vector and scalar types.
20628         (fold_relational_const): Add handling of vector
20629         comparison with boolean result.
20630         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
20631         comparison of vector operands with boolean result for EQ/NE only.
20632         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
20633         (verify_gimple_cond): Likewise.
20634         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
20635         valid type of VAL.
20637 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
20639         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
20640         !TARGET_OCTEON.
20642 2016-01-18  Richard Biener  <rguenther@suse.de>
20644         PR middle-end/69308
20645         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
20647 2016-01-18  Tom de Vries  <tom@codesourcery.com>
20649         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
20651 2016-01-18  Tom de Vries  <tom@codesourcery.com>
20653         * omp-low.c (set_oacc_fn_attrib): Make extern.
20654         * omp-low.h (set_oacc_fn_attrib): Declare.
20655         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
20656         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
20657         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
20658         Add and handle function parameter oacc_kernels_p.
20659         (find_reduc_addr, get_omp_data_i_param): New function.
20660         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
20661         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
20662         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
20663         Calculate dominance info.  Skip loops that are not in a kernels region
20664         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
20665         (pass_parallelize_loops::execute): Call parallelize_loops with
20666         oacc_kernels_p argument.
20667         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
20668         New member function.
20669         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
20670         * passes.def: Add argument to pass_parallelize_loops instantation.
20672 2016-01-18  Tom de Vries  <tom@codesourcery.com>
20674         * tree-parloops.c (pass_parallelize_loops::execute): Allow
20675         pass_parallelize_loops to be run outside the loop pipeline.
20677 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
20679         * tree-scalar-evolution.c (follow_copies_to_constant): New.
20680         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
20682 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
20684         PR target/63679
20685         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
20686         using get_ref_base_and_extent.
20687         (equal_mem_array_ref_p): New.
20688         (hashable_expr_equal_p): Add call to previous.
20690 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
20692         PR target/63679
20693         * tree-sra.c (disqualified_constants, constant_decl_p): New.
20694         (sra_initialize): Allocate disqualified_constants.
20695         (sra_deinitialize): Free disqualified_constants.
20696         (disqualify_candidate): Update disqualified_constants when appropriate.
20697         (create_access): Scan for constant-pool entries as we go along.
20698         (scalarizable_type_p): Add check against type_contains_placeholder_p.
20699         (maybe_add_sra_candidate): Allow constant-pool entries.
20700         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
20701         (initialize_constant_pool_replacements): New.
20702         (sra_modify_assign): Avoid mangling assignments created by previous,
20703         and don't generate writes into constant pool.
20704         (sra_modify_function_body): Call initialize_constant_pool_replacements.
20706 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20708         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
20709         andnot instruction.
20710         (scalar_chain::convert_op): Likewise.
20711         * config/i386/i386.md (*andndi3_doubleword): New.
20713 2016-01-18  Richard Biener  <rguenther@suse.de>
20715         PR tree-optimization/69170
20716         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
20717         building a vector from scalar results of a pattern stmt.
20719 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
20721         * haifa-sched.c (autopref_multipass_init): Work around
20722         -Wmaybe-uninitialized warning.
20724 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20726         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
20727         against the constant 0.
20729 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20731         PR tree-optimization/68799
20732         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
20733         look up phi candidates in the statement-candidate map.
20734         (phi_add_costs): Likewise.
20735         (record_phi_increments): Likewise.
20736         (phi_incr_cost): Likewise.
20737         (ncd_with_phi): Likewise.
20738         (all_phi_incrs_profitable): Likewise.
20740 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
20742         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
20743         -Wmaybe-uninitialized warning.
20745 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
20747         * doc/invoke.texi (Invoking GCC): Add new section to menu.
20748         (Option Summary): Update to reflect new section and moved options.
20749         (C++ Dialect Options): Move -fvtable-verify and related options.
20750         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
20751         and profiling-related options.
20752         (Optimization Options): Move profile generation options and
20753         -fstack-protector and related options.
20754         (Instrumentation Options): New section incorporating moved options.
20755         (Code Generation Options): Move -finstrument-functions and
20756         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
20758 2016-01-16  Tom de Vries  <tom@codesourcery.com>
20760         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
20762 2016-01-16  Tom de Vries  <tom@codesourcery.com>
20764         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
20766 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
20768         * hash-table.h (hash_table::empty): Turn into an inline wrapper
20769         that checks whether the table is already empty.  Rename the
20770         original implementation to...
20771         (hash_table::empty_slot): ...this new private function.
20773 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
20775         PR diagnostic/68899
20776         * diagnostic-show-locus.c (layout::print_source_line): Move x
20777         offset of line until after call to
20778         get_line_width_without_trailing_whitespace.
20780 2016-01-15  Jeff Law  <law@redhat.com>
20782         PR tree-optimization/69270
20783         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
20784         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
20785         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
20786         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
20787         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
20788         ssa_name_has_boolean_range and constant_boolean_node.
20790 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
20792         PR rtl-optimization/69030
20793         * lra-spills.c (remove_pseudos): Check nrefs and make the function
20794         returning bool.
20795         (spill_pseudos): Delete debug insn for dead pseudo.
20796         (lra_spill): Initiate spill_hard_reg and slots memory separately.
20798 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
20800         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
20801         New.
20802         (TYPES_UNOPUS): Likewise.
20803         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
20804         builtin type, from UNOP to UNOPUS.
20805         (lbtruncuv4sf): Likewise.
20806         (lbtruncuv2df): Likewise.
20807         (lrounduv2sf): Likewise.
20808         (lrounduv4sf): Likewise.
20809         (lrounduv2df): Likewise.
20810         (lroundusf): Likewise.
20811         (lroundusf): Likewise.
20812         (lceiluv2sf): Likewise.
20813         (lceiluv4sf): Likewise.
20814         (lceiluv2df): Likewise.
20815         (lceilusf): Likewise.
20816         (lceiludf): Likewise.
20817         (lflooruv2sf): Likewise.
20818         (lflooruv4sf): Likewise.
20819         (lflooruv2df): Likewise.
20820         (lfloorusf): Likewise.
20821         (lfloorudf): Likewise.
20822         (lfrintnuv2sf): Likewise.
20823         (lfrintnuv4sf): Likewise.
20824         (lfrintnuv2df): Likewise.
20825         (lfrintnusf): Likewise.
20826         (lfrintnudf): Likewise.
20827         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
20828         conversion.
20829         (vcvtq_u32_f32): Likewise.
20830         (vcvtq_u64_f64): Likewise.
20831         (vcvta_u32_f32): Likewise.
20832         (vcvtaq_u32_f32): Likewise.
20833         (vcvtaq_u64_f64): Likewise.
20834         (vcvtm_u32_f32): Likewise.
20835         (vcvtmq_u32_f32): Likewise.
20836         (vcvtmq_u64_f64): Likewise.
20837         (vcvtn_u32_f32): Likwise.
20838         (vcvtnq_u32_f32): Likewise.
20839         (vcvtnq_u64_f64): Likewise.
20840         (vcvtp_u32_f32): Likewise.
20841         (vcvtpq_u32_f32): Likewise.
20842         (vcvtpq_u64_f64): Likewise.
20843         (vcvtmd_u64_f64): Likewise.
20844         (vcvtms_u32_f32): Likewise.
20845         (vcvtad_u64_f64): Likewise.
20846         (vcvtas_u32_f32): Likewise.
20847         (vcvtnd_u64_f64): Likewise.
20848         (vcvtns_u32_f32): Likewise.
20849         (vcvtpd_u64_f64): Likewise.
20850         (vcvtps_u32_f32): Likewise.
20852 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20854         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
20855         CSEL of zero_extended registers.
20857 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20859         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20860         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
20862 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20864         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
20865         false when argument string is not found in the attributes table
20866         at all.
20868 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
20870         PR target/68609
20871         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
20872         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
20873         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
20874         precision estimate.
20876 2016-01-15  Richard Biener  <rguenther@suse.de>
20878         PR tree-optimization/66856
20879         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
20880         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
20881         (vect_create_new_slp_node): Increment stmt reference count.
20882         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
20883         an SLP tree before swapping operands.
20884         (vect_build_slp_tree): Likewise.
20885         (destroy_bb_vec_info): Free stmt info after SLP instances.
20886         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
20887         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
20888         (STMT_VINFO_NUM_SLP_USES): New macro.
20890 2016-01-15  Richard Biener  <rguenther@suse.de>
20892         PR debug/69137
20893         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
20894         (add_linkage_name): ... here.
20895         (gen_typedef_die): Use add_linkage_name_raw instead of
20896         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
20897         if necessary.
20899 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
20901         * gimplify.c (oacc_default_clause): Decode reference and pointer
20902         types for both kernels and parallel regions.
20904 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
20906         PR middle-end/69246
20907         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
20909 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
20911         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
20912         (convert_scalars_to_vector): Likewise.
20914 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
20916         * doc/extend.texi (Type Traits): Fix grammar.
20918 2016-01-15  Martin Jambor  <mjambor@suse.cz>
20920         * tree-inline.c (remap_decl): Use existing dclarations if
20921         remapping a type and prevent_decl_creation_for_types.
20922         (replace_locals_stmt): Do an initial remapping of non-VLA typed
20923         decls first.  Do real remapping with
20924         prevent_decl_creation_for_types set.
20925         * tree-inline.h (copy_body_data): New field
20926         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
20927         padding.
20929 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20931         * config/s390/s390.opt (mmvcle): More verbose help text.
20933 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20935         * config/s390/s390.opt: Add period to -mzvector option text.
20937 2016-01-15  Richard Biener  <rguenther@suse.de>
20939         PR tree-optimization/68961
20940         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
20941         of invariants in stores again.
20943 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20945         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
20947 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
20949         * config/i386/i386.c (ix86_expand_branch): Don't split
20950         DI mode xor instruction to SI mode.
20952 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
20954         PR ipa/68148
20955         * ipa-icf.c (sem_function::merge): Virtual functions may become
20956         reachable even if they address is not taken and there are no
20957         idrect calls.
20959 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
20961         * lto-streamer-out.c (subtract_estimated_size): New function.
20962         (get_symbol_initial_value): Use it.
20964 2016-01-15  Christian Bruel  <christian.bruel@st.com>
20966         PR target/65837
20967         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
20968         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
20969         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
20970         use add_builtin_function_ext_scope instead of add_builtin_function.
20971         (neon_set_p, neon_crypto_set_p): Remove.
20972         (arm_init_builtins): Always call arm_init_neon_builtins and
20973         arm_init_crypto_builtins.
20974         (arm_expand_builtin): Check that builtins are allowed for the arch.
20975         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
20976         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
20977         arm_init_neon_builtins call.
20979 2016-01-15  Richard Biener  <rguenther@suse.de>
20981         PR tree-optimization/69117
20982         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
20983         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
20984         of the leader conservatively.
20985         (free_scc_vn): Restore original SSA name infos.
20987 2016-01-14  Jeff Law  <law@redhat.com>
20989         PR tree-optimization/69270
20990         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
20991         single bit of precision, verify it's also unsigned.
20992         (record_edge_info): Use constant_boolean_node rather than fold_convert
20993         to convert boolean_true/boolean_false to the right type.
20995 2016-01-14  Richard Henderson  <rth@redhat.com>
20997         PR rtl-opt/69014
20998         * loop-doloop.c (record_reg_sets): New.
20999         (doloop_optimize): Reject the transform if the sequence
21000         clobbers registers live at the end of the loop block.
21001         (doloop_optimize_loops): Enable df_live if needed.
21003 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21005         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
21006         * config/rs6000/rs6000.c: Likewise.
21007         * config/rs6000/rs6000.h: Likewise.
21008         * config/rs6000/rs6000.md: Likewise.
21009         * doc/extend.texi: Likewsie.
21011 2016-01-14  Jeff Law  <law@redhat.com>
21013         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
21014         typo.
21016 2016-01-14  Richard Henderson  <rth@redhat.com>
21018         PR c/69272
21019         PR tree-opt/68964
21020         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
21021         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
21022         instead of builtin_decl_declared_p to test for declaration.
21024 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
21026         * doc/loop.texi (Loop Analysis and Representation): Document
21027         loop_depth function.
21029 2016-01-14  Tom de Vries  <tom@codesourcery.com>
21031         PR tree-optimization/68773
21032         * omp-low.c (expand_omp_target): Don't set force_output.
21033         * varpool.c (varpool_node::get_create): Same.
21034         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
21035         offload_funcs with force_output.
21037 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
21039         PR debug/69244
21040         * lra-eliminations.c (move_plus_up): Don't change anything if either
21041         the outer or inner subreg mode is not MODE_INT.
21042         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
21043         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
21045 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
21047         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
21048         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
21049         reduc_uplus_@var{m}): Remove.
21050         * expr.c (expand_expr_real_2): Remove expansion path for
21051         reduc_[us](min|max|plus) optabs.
21052         * optabs-tree.c (scalar_reduc_to_vector): Remove.
21053         * optabs-tree.h (scalar_reduc_to_vector): Remove.
21054         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
21055         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
21056         * tree-vect-loop.c (vectorizable_reduction): Remove test for
21057         reduc_[us](min|max|plus) optabs.
21059 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
21061         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
21062         (reduc_plus_scal_v2sf): New.
21063         (reduc_smax_v2sf): Rename to...
21064         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
21065         (reduc_smin_v2sf): Rename to...
21066         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
21068 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
21070         * alias.c (compare_base_symbol_refs): New function.
21071         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
21072         it.
21074 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
21076         PR middle-end/68146
21077         PR tree-optimization/69155
21078         * tree-complex.c: Include cfganal.h.
21079         (phis_to_revisit): New variable.
21080         (extract_component): Add phiarg_p argument.  Assert that returned
21081         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
21082         (update_phi_components): Partly rewrite to use loop over real/imag
21083         components instead of code duplication.  If extract_component returns
21084         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
21085         create_tmp_reg into the PHI node instead, and mention the phi triplet
21086         in phis_to_revisit.
21087         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
21088         in phis_to_revisit at the end.
21090 2016-01-14  Richard Biener  <rguenther@suse.de>
21092         PR tree-optimization/68060
21093         * tree-vect-loop.c (vect_is_simple_reduction): Check the
21094         outer loop reduction is only used in the inner loop before
21095         detecting a double reduction.
21097 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
21099         PR target/68269
21100         * combine.c (expand_field_assignment): Punt if compute_mode is
21101         unsupported scalar mode.
21103 2016-01-14  Richard Biener  <rguenther@suse.de>
21105         PR tree-optimization/66856
21106         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
21107         SLP node only if it built successfully.
21108         (vect_analyze_slp_instance): Adjust.
21110 2016-01-14  Jeff Law  <law@redhat.com>
21112         PR tree-optimization/69270
21113         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
21114         (record_edge_info): Use it.  Convert boolean_{true,false}_node
21115         to the type of op0.
21117 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
21119         PR ipa/66487
21120         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
21121         use block_ultimate_origin
21122         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
21124 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
21126         * doc/invoke.texi (Submodel Options): Rename section to
21127         "Machine-Dependent Options" to better reflect its content.
21128         Rewrite introductory text to remove archaic CPU names.
21129         Update references.
21131 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
21133         * doc/invoke.texi (Code Gen Options): Move section up in file,
21134         before target-specific options.  Update menu and option summary
21135         to reflect the new section ordering.
21137 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
21139         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
21140         (C++ Dialect Options): Add cross-reference to -std option.
21141         * doc/standards.texi (C++ Language): Document C++14 support.
21143 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
21145         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
21146         for pack/unpack functions for __ibm128.
21147         (PACK_IF): Likewise.
21148         (UNPACK_IF): Likewise.
21150         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21151         support for __ibm128 pack/unpack functions.
21152         (rs6000_invalid_builtin): Likewise.
21153         (rs6000_init_builtins): Likewise.
21154         (rs6000_opt_masks): Likewise.
21156         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
21157         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
21158         functions
21159         (RS6000_BTM_COMMON): Likewise.
21161         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
21162         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
21163         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
21164         128-bit floating point.  Add support for the double values to be
21165         in Altivec registers for TF/IF packing and unpacking, but restrict
21166         TD packing sub-fields to be FPR registers.  Don't allow overlapped
21167         register support for packing.  Allow pack inputs to be memory
21168         locations.  Don't build generator functions for unpack<mode>_dm
21169         and unpack<mode>_nodm.
21170         (unpack<mode>_dm): Likewise.
21171         (unpack<mode>_nodm): Likewise.
21172         (pack<mode>): Likewise.
21174         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
21175         built-in functions to pack/unpack explicit __ibm128 values.
21176         (__builtin_unpack_ibm128): Likewise.
21178         * doc/extend.texi (PowerPC Built-in Functions): Document
21179         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
21181 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
21183         PR c/66208
21184         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
21185         Add new arg loc and pass it down as context.
21186         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
21187         to the location to use for the warning.
21188         (check_function_arguments): New arg loc.  All callers changed.  Pass
21189         it to check_function_nonnull.
21190         * c-common.h (check_function_arguments): Adjust declaration.
21192 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
21194         PR tree-optimization/69156
21195         * gimple.c (validate_type): Removed.
21196         (gimple_builtin_call_types_compatible_p): Use
21197         useless_type_conversion_p instead of validate_type.
21198         * value-prof.c (gimple_stringop_fixed_value): Fold
21199         icall_size to correct type.
21201 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
21203         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
21204         effects.
21206 2016-01-13  Richard Henderson  <rth@redhat.com>
21208         PR tree-opt/68964
21209         * target.def (builtin_tm_load, builtin_tm_store): Remove.
21210         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
21211         (ix86_builtin_tm_store): Remove.
21212         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
21213         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
21214         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
21215         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
21216         * doc/tm.texi: Rebuild.
21218         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
21219         (BUILT_IN_TM_MEMCPY_RTWN): New.
21220         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
21221         fallback from vector to integer helpers.
21222         (build_tm_load): Handle vector types directly, instead of
21223         via target hook.
21224         (build_tm_store): Likewise.
21225         (expand_assign_tm): Prepare for register types not handled by
21226         the above.  Copy them to memory and use memcpy.
21227         * tree.c (tm_define_builtin): New.
21228         (find_tm_vector_type): New.
21229         (build_tm_vector_builtins): New.
21230         (build_common_builtin_nodes): Call it.
21232 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
21234         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
21235         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
21237 2016-01-13  Tom de Vries  <tom@codesourcery.com>
21239         PR tree-optimization/69169
21240         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
21241         handled_struct_type param.
21242         (create_variable_info_for, intra_create_variable_infos): Call
21243         create_variable_info_for_1 with extra arg.
21245 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
21247         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
21248         and "armv8.1-a+crc" entries.
21250 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
21252         PR target/69228
21253         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
21254         Change first operand predicate from register_or_constm1_operand
21255         to register_operand.
21256         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
21257         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
21258         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
21259         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
21260         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
21261         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
21262         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
21263         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
21264         comparison with constm1_rtx from vec_prefetch_gen part.
21266 2016-01-13  Richard Biener  <rguenther@suse.de>
21268         PR tree-optimization/69013
21269         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
21270         Exchange assert for a test.
21272 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21274         PR target/69247
21275         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
21277 2016-01-13  Richard Biener  <rguenther@suse.de>
21279         PR tree-optimization/69242
21280         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
21281         assert with a check.
21283 2016-01-13  Richard Biener  <rguenther@suse.de>
21285         PR tree-optimization/69186
21286         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21287         Properly guard vect_update_misalignment_for_peel call.
21289 2016-01-12  Jeff Law  <law@redhat.com>
21291         PR tree-optimization/pr67755
21292         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
21293         "need_profile_correction".
21294         (thread_block_1): Initialize new field to false by default.  If we
21295         have multiple thread paths through a common joiner to different
21296         final targets, then set new field to true.
21297         (compute_path_counts): Only do count adjustment when it's really
21298         needed.
21300 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21302         * doc/invoke.texi (Spec Files): Move section down in file, past
21303         all command-line option descriptions.
21305 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21307         PR middle-end/54809
21308         * doc/gty.texi: Remove documentation of mark_hook.
21309         * gengtype.c (struct write_types_data): Remove code to support
21310         mark_hook attribute.
21311         (walk_type): Likewise.
21312         (write_func_for_structure): Likewise.
21314 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21316         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
21317         Directory Options, and -specs= to Overall Options.
21318         (Overall Options): Adjust similarly.  Reorder to group related
21319         options together.  Make -specs= cross-reference the spec file details.
21320         (Directory Options): Adjust similarly.
21322 2016-01-12  Jeff Law  <law@redhat.com>
21324         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
21326 2016-01-12  Olivier Hainque  <hainque@adacore.com>
21328         * gcc.c (spec_undefvar_allowed): New global.
21329         (process_command): Set to true when running for --version or --help,
21330         alone or together.
21331         (getenv_spec_function): When the variable is not defined, use the
21332         variable name as the variable value if we're allowed not to issue
21333         a fatal error.
21335 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
21337         PR tree-optimization/68911
21338         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
21339         information computed for expression "init + nit * step".
21341 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21343         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
21344         about name of GCC executable.  Remove deleted node from menu.
21345         (Directory Options) <-B>: Remove cross-reference to deleted node.
21346         (Target Options): Delete section.
21348 2016-01-12  Christian Bruel  <christian.bruel@st.com>
21350         PR target/69180
21351         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
21352         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
21354 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
21356         PR target/69198
21357         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
21358         aligned_mem is properly set for AVX512-VL floating point masked
21359         stores.
21361         PR target/69175
21362         * ifcvt.c (cond_exec_process_if_block): When removing the last
21363         insn from then_bb, remove also any possible barriers that follow it.
21365 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
21367         PR target/68456
21368         PR target/69226
21369         * config/i386/iamcu.h (SIZE_TYPE): New macro.
21370         (PTRDIFF_TYPE): Likewise.
21371         (WCHAR_TYPE): Likewise.
21372         (WCHAR_TYPE_SIZE): Likewise.
21373         (STDINT_LONG32): Likewise.
21375 2016-01-12  Richard Biener  <rguenther@suse.de>
21377         PR tree-optimization/69053
21378         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
21379         convert initial value for cond reductions.
21381 2016-01-12  Richard Biener  <rguenther@suse.de>
21383         PR tree-optimization/69007
21384         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
21385         widen_sum after dot_prod and sad.
21387 2016-01-12  Richard Biener  <rguenther@suse.de>
21389         PR tree-optimization/69168
21390         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
21391         pattern stmt SLP type.
21392         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
21393         end up unused so cope with that case.
21395 2016-01-12  Richard Biener  <rguenther@suse.de>
21397         PR tree-optimization/69157
21398         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
21399         stmts def type only during analyze phase.
21400         (vectorizable_call): Likewise.
21401         (vectorizable_simd_clone_call): Likewise.
21402         (vectorizable_conversion): Likewise.
21403         (vectorizable_assignment): Likewise.
21404         (vectorizable_shift): Likewise.
21405         (vectorizable_operation): Likewise.
21406         (vectorizable_store): Likewise.
21407         (vectorizable_load): Likewise.
21409 2016-01-12  Richard Biener  <rguenther@suse.de>
21411         PR tree-optimization/69174
21412         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
21413         space.
21414         (vectorizable_load): Properly compute the number of loads needed
21415         for permuted strided SLP loads and do not spuriously assign
21416         to SLP_TREE_VEC_STMTS.
21418 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
21420         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
21421         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
21422         (MD_EXEC_PREFIX): Remove.
21423         (MD_STARTFILE_PREFIX) Removee.
21424         (FILE_NAME_ABSOLUTE_P): Remove.
21425         (CPP_SPEC): Do not read macros from sys/version.h.
21426         (LINK_COMMAND_SPEC): Remove.
21427         (LOCAL_INCLUDE_DIR): Remove.
21428         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
21429         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
21430         (POST_LINK_SPEC): Define to invoke stubify after linker
21431         (LIBSTDCXX): Remove define
21432         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
21433         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
21434         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
21435         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
21436         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
21437         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
21438         (i386_djgpp_asm_named_section): Add propotype of new procedure
21440         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
21441         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
21442         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
21443         in config/i386/djgpp.h).
21444         (STANDARD_STARTFILE_PREFIX_2): Define identical to
21445         STANDARD_STARTFILE_PREFIX_1.
21446         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
21447         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
21448         installation errors.
21449         (MAX_OFILE_ALIGNMENT): Define to 128.
21450         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
21452         * config/i386/djgpp.c: New file. Add implementation of
21453         i386_djgpp_asm_named_section.
21455         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
21457         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
21458         Add rule for building djgpp.o.
21460 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21462         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
21463         (rtx_is_swappable_p): Reductions are swappable.
21464         (insn_is_swappable_p): V2DF reductions are swappable.
21466 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
21468         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
21469         reloads for other unsupported memory operands.
21471 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21472             Jim Wilson  <jim.wilson@linaro.org>
21474         PR target/69194
21475         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
21476         copy_to_mode_reg instead of force_reg.
21478 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
21480         PR target/69225
21481         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
21482         TARGET_80387 is true.
21484 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
21486         PR target/69071
21487         * lra-eliminations.c (move_plus_up): Only move plus up
21488         if subreg of the constant can be simplified into constant
21489         and use the simplified subreg of the constant instead of
21490         the original constant.
21492         * fold-const.c (fold_convertible_p): Don't return true
21493         for conversion of VECTOR_TYPE to same sized integral type.
21494         (fold_convert_loc): Fix up formatting.  Fold conversion of
21495         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
21496         instead of NOP_EXPR.
21498         PR tree-optimization/69214
21499         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
21500         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
21501         Formatting fix.
21503         PR tree-optimization/69207
21504         * tree-vect-slp.c (vect_get_constant_vectors): For
21505         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
21506         fold_convertible_p to vector_type's element type, and always
21507         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
21509 2016-01-11  Richard Biener  <rguenther@suse.de>
21511         PR tree-optimization/69173
21512         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
21513         fixup the cycle if all stmts are in a pattern.
21515 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
21517         PR middle-end/68999
21518         * alias.c (base_alias_check): Move check for addresses with
21519         alignment ANDs before the call for compare_base_decls.
21520         (memrefs_conflict_p): Return -1 for different decls
21521         that went through alignment adjustments.
21523 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21525         PR rtl-optimization/68796
21526         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
21527         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
21528         and QImode comparisons against zero with CC_NZmode.
21529         * config/aarch64/iterators.md (short_mask): New mode_attr.
21531 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
21533         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
21534         (<avx512>_store<mode>_mask): Likewise.
21536 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
21537             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21539         PR rtl-optimization/68841
21540         * ifcvt.c (struct noce_if_info): Add orig_x field.
21541         (bbs_ok_for_cmove_arith): Add to_rename parameter.
21542         Don't record conflicts on to_rename if it's present.
21543         Allow memory destinations in sets.
21544         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
21545         blocks, passing orig_x to the checks.
21546         (noce_process_if_block): Set if_info->orig_x appropriately.
21548 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21550         PR tree-optimization/69069
21551         * tree-parloops.c (create_parallel_loop): Add missing phi args.
21553 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
21555         PR rtl-optimization/68920
21556         * config/i386/i386.c (ix86_option_override_internal): Restrict number
21557         of conditional moves for  RTL if-conversion to 1 for
21558         TARGET_ONE_IF_CONV_INSN.
21559         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
21560         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
21561         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
21562         parameter to restirct number of conditional moves for
21563         RTL if-conversion.
21564         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
21565         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
21566         conditionl moves.
21568 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
21570         PR bootstrap/69123
21571         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
21572         onepart vars.  Fix typo in comment.  Fix reversed condition in
21573         unshare test.
21574         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
21576         PR bootstrap/69123
21577         * var-tracking.c (dump_onepart_variable_differences): New.
21578         (dataflow_set_different): If a detailed dump is requested,
21579         delay early returns and dump differences between onepart
21580         variables present before and after, and added variables.
21582 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
21584         PR target/69010
21585         * expr.c (expand_expr_real_1): For boolean vector constants
21586         with a scalar mode use const_scalar_mask_from_tree.
21587         (const_scalar_mask_from_tree): New.
21588         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
21589         assigned to a mask type to handle constants.
21591 2016-01-11  Martin Jambor  <mjambor@suse.cz>
21593         PR ipa/69044
21594         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
21595         useless parameters if we cannot change function signature.
21597 2016-01-11  Martin Jambor  <mjambor@suse.cz>
21599         PR ipa/66616
21600         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
21601         flag.
21603 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21605         PR tree-optimization/69109
21606         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
21607         latch with phi.
21609 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21611         PR tree-optimization/69108
21612         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
21613         res is not used in a phi.
21615 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
21617         PR 67425
21618         * common.opt (frandom-seed): Fix parameter name.
21619         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
21621 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21623         PR tree-optimization/69058
21624         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
21625         not supported.
21627 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
21629         * config/arc/arc.opt (mdiv-rem): Add period to the end.
21630         (mcode-density): Likewise.
21632 2016-01-10  Tom de Vries  <tom@codesourcery.com>
21634         PR tree-optimization/69062
21635         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
21636         (parallelize_loops): Don't paralelize loop that has phi with address
21637         arg.
21639 2016-01-10  Tom de Vries  <tom@codesourcery.com>
21641         PR tree-optimization/69039
21642         * tree-parloops.c (try_create_reduction_list): Only allow single exit
21643         phi for reduction.
21645 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
21647         PR middle-end/68743
21648         * match.pd: Require target has function_c99_misc before doing
21649         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
21651 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
21653         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
21654         use GMPINC.
21655         * configure: Regenerate.
21657 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
21659         PR middle-end/50865
21660         PR tree-optimization/69097
21661         * fold-const.h (expr_not_equal_to): New prototype.
21662         * fold-const.c: Include stringpool.h and tree-ssanames.h.
21663         (expr_not_equal_to): New function.
21664         * match.pd (X % -Y is the same as X % Y): Don't optimize
21665         unless X is known not to be equal to minimum or Y is known
21666         not to be equal to -1.
21667         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
21668         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
21669         (simplify_stmt_using_ranges): Adjust caller.
21670         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
21671         substitute_and_fold.
21673 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
21675         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
21676         w/o DECL_NAME.
21678 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
21680         PR tree-optimization/69167
21681         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
21682         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
21683         ops[0] comparison.
21684         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
21686 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
21687             Richard Biener  <rguenther@suse.de>
21689         PR tree-optimization/68707
21690         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
21691         instances that can be handled via vect_load_lanes.
21693 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
21695         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
21696         if we can't determine address equivalence.
21697         * alias.c (compare_base_decl): Update for changed return value of
21698         symtab_node::equal_address_to.
21700 2016-01-08  Jason Merrill  <jason@redhat.com>
21702         PR c++/68983
21703         PR c++/67557
21704         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
21705         * expr.c (store_field): Not here.
21706         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
21707         call with TREE_ADDRESSABLE type.
21708         * tree-cfg.c (verify_gimple_call): Adjust.
21710 2016-01-08  Olivier Hainque  <hainque@adacore.com>
21712         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
21713         libc_internal.
21715 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
21717         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
21718         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
21719         (reduc_smin_v2sf): Rename to...
21720         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
21721         (reduc_splus_v2sf): Rename to...
21722         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
21724 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
21726         PR tree-optimization/69162
21727         * gimplify.c (gimplify_va_arg_expr): Encode original type of
21728         valist argument in another argument.
21729         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
21730         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
21731         to determine the va_list type, build a MEM_REF instead of
21732         build_fold_indirect_ref.
21734         PR tree-optimization/69172
21735         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
21736         gimple_build.
21738 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21740         PR tree-optimization/67781
21741         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
21742         and cmpnop in two steps: first the ones not accessed in original
21743         gimple expression in a endian independent way and then the ones not
21744         accessed in the final result in an endian-specific way.
21746 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
21748         PR tree-optimization/69083
21749         * tree-vect-slp.c (vect_get_constant_vectors): For
21750         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
21751         element type.  If op is fold_convertible_p to vector_type's element
21752         type, use NOP_EXPR instead of VCE.
21754 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
21756         PR rtl-optimization/67778
21757         PR rtl-optimization/68634
21758         PR rtl-optimization/68909
21759         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
21760         block from the stack until done with it.  Remove a superfluous
21761         bitmap set.  Remove a superfluous bitmap test.
21763 2016-01-07  Martin Sebor  <msebor@redhat.com>
21765         PR c/68966
21766         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
21767         constraint on the type of arguments.
21769 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
21771         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
21772         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
21773         unaligned_access on the gcc_options set.
21774         * config/arm/arm.c (arm_option_override_internal): Use
21775         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
21777 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
21779         PR target/69140
21780         * config/i386/i386.c (ix86_frame_pointer_required): Enable
21781         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
21783 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
21785         Revert
21786         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
21788         PR target/69140
21789         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
21790         depending on frame_pointer_needed before remaining integer and SSE
21791         registers are saved.
21793 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
21795         PR 1078
21796         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
21798 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
21800         PR target/69171
21801         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
21802         Use the "xBm" constraint.
21803         (float<sseintvecmodelower><mode>2<mask_name><round_name):
21804         Likewise.
21805         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
21806         (sse_cvtsi2ssq<round_name>): Likewise.
21807         (sse_cvtss2si<round_name>): Likewise.
21808         (sse_cvtss2siq<round_name>): Likewise.
21809         (sse2_cvtsi2sdq<round_name>): Likewise.
21810         (sse2_cvtsd2si<round_name>): Likewise.
21811         (sse2_cvtsd2siq<round_name>): Likewise.
21812         * config/i386/subst.md (round_nimm_scalar_predicate): New
21813         predicate.
21815 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
21817         PR middle-end/67639
21818         * varasm.c (make_decl_rtl): Mark invalid register vars as
21819         DECL_EXTERNAL.
21821         PR rtl-optimization/66206
21822         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
21823         All callers changed.
21825 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
21827         PR tree-optimization/69141
21828         * tree-ssa-pre.c: Include langhooks.h.
21829         (eliminate_dom_walker::before_dom_children): Use
21830         lang_hooks.decl_printable_name instead of
21831         cgraph_node::get ()->name ().
21833         PR middle-end/68960
21834         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
21835         it and DECL_ALIGN too.
21837 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
21839         * config/mips/mips-ftypes.def: Sort to lexicographical order.
21841 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
21843         PR target/69140
21844         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
21845         depending on frame_pointer_needed before remaining integer and SSE
21846         registers are saved.
21848 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21850         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
21851         mode iterator with VSX_M2.
21852         (*p9_vecstore_<mode>): Likewise.
21853         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
21854         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
21855         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
21856         (define_split for VSX_LE128 stores): Likewise.
21857         (define_peephole2 for TImode LE swaps): Likewise.
21858         (define_split for VSX_LE128 post-reload stores): Likewise.
21860 2016-01-06  Marek Polacek  <polacek@redhat.com>
21862         PR sanitizer/69099
21863         * convert.c (convert_to_integer_1): Adjust call to
21864         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
21865         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
21866         EXPR instead of ARG.
21867         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
21869 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21871         PR 1078
21872         * doc/extend.texi (RL78 Variable Attributes): New section.
21874 2016-01-05  Marek Polacek  <polacek@redhat.com>
21876         PR c/69104
21877         * builtins.c (get_memmodel): Use expansion point location rather than
21878         the input location.  Call warning_at rather than warning.
21879         (expand_builtin_atomic_compare_exchange): Likewise.
21880         (expand_builtin_atomic_load): Likewise.
21881         (expand_builtin_atomic_store): Likewise.
21882         (expand_builtin_atomic_clear): Likewise.
21884 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21886         PR target/68991
21887         * config/i386/i386.c (ix86_expand_vector_logical_operator):
21888         Replace nonimmediate_operand with vector_operand.
21889         * config/i386/predicates.md (vector_operand): New predicate.
21890         (general_vector_operand): Replace nonimmediate_operand with
21891         vector_operand.
21892         * config/i386/sse.md: Replace nonimmediate_operand with
21893         vector_operand and m constraint with Bm constraint on SSE
21894         patterns with 16-byte memory operand.
21895         * config/i386/subst.md (round_nimm_predicate): Replace
21896         nonimmediate_operand with vector_operand.
21897         (round_saeonly_nimm_predicate): Likewise.
21898         (round_saeonly_nimm_scalar_predicate): New.
21900 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21902         PR target/68991
21903         * config/i386/constraints.md (Bm): New constraint.
21904         * config/i386/predicates.md (vector_memory_operand): New
21905         predicate.
21906         * config/i386/sse.md: Replace xm with xBm in plusminus and
21907         any_logic patterns.
21909 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21911         PR 1078
21912         * doc/extend.texi (V850 Function Attributes): New section.
21913         (V850 Variable Attributes): New section.
21915 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21917         PR 1078
21918         * doc/extend.texi (MicroBlaze Function Attributes): Document
21919         interrupt_handler and fast_interrupt attributes.
21921 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
21923         PR other/60465
21924         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
21925         for local symbolic operands.
21926         * config/ia64/predicates.md (local_symbolic_operand64): New
21927         predicate.
21929 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21931         PR rtl-optimization/68651
21932         * combine.c (combine_simplify_rtx): Canonicalize x + x into
21933         x << 1.
21935 2016-01-05  Nathan Sidwell  <nathan@acm.org>
21937         * alias.c (compare_base_decls): Use symtab_node::get.
21939 2016-01-05  Nick Clifton  <nickc@redhat.com>
21941         PR target/68770
21942         * ira-costs.c (copy_cost): Initialise the t_icode field of the
21943         secondary_reload_info structure.
21945         PR target/66655
21946         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
21947         decls if weak support is available.
21949 2016-01-04  Martin Sebor  <msebor@redhat.com>
21951         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
21953 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21955         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
21956         OPTION_MASK_P9_DFORM.
21958         * config/rs6000/constraints.md (wo constraint): New constraint for
21959         ISA 3.0 (power9).
21961         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
21962         for wo constraint.
21963         (rs6000_init_hard_regno_mode_ok): Likewise.
21965         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
21966         wo constraint.
21968         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
21969         expanders not to have constraints.  Add support for ISA 3.0 xxperm
21970         instruction.  Add support for fusing xxlor with xxperm.
21971         (altivec_vperm_<mode>_internal): Likewise.
21972         (altivec_vperm_v8hiv16qi): Likewise.
21973         (altivec_vperm_<mode>v16q): Likewise.
21974         (altivec_vperm_<mode>_uns): Likewise.
21975         (vperm_v8hiv4si): Likewise.
21976         (vperm_v16qiv8hi): Likewise.
21978         * doc/md.texi (RS/6000 constraints): Document wo constraint.
21980 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
21982         Update copyright years.
21984         * gcc.c (process_command): Update copyright notice dates.
21985         * gcov-dump.c (print_version): Ditto.
21986         * gcov.c (print_version): Ditto.
21987         * gcov-tool.c (print_version): Ditto.
21988         * gengtype.c (create_file): Ditto.
21989         * doc/cpp.texi: Bump @copying's copyright year.
21990         * doc/cppinternals.texi: Ditto.
21991         * doc/gcc.texi: Ditto.
21992         * doc/gccint.texi: Ditto.
21993         * doc/gcov.texi: Ditto.
21994         * doc/install.texi: Ditto.
21995         * doc/invoke.texi: Ditto.
21997 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
21999         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
22000         modes larger than TImode as TImode if NEON is not enabled.
22002 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22004         PR target/69100
22005         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
22006         mode for %f0-%f31 only if TARGET_FPU.
22008 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22010         PR target/69072
22011         * config/sparc/sparc.c (scan_record_type): Take into account subfields
22012         to compute the PACKED_P predicate.
22013         (function_arg_record_value): Minor tweaks.
22015 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22017         * doc/install.texi (--with-multilib-list): Describe the meaning of the
22018         option for arm*-*-* targets.
22020 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22022         * doc/extend.texi (Common Function Attributes): Move docs for
22023         MSP430-specific attributes to....
22024         (MSP430 Function Attributes): ...here.  Delete the redundant
22025         entries and copy-edit the remaining text.
22026         (MSP430 Variable Attributes): Use uniform format for index
22027         entries and add a cross-reference to the corresponding function
22028         attribute docs.
22030 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
22032         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
22033         -finite-math typo.
22034         (x86 Options): Likewise.
22036 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
22038         PR 1078
22040         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
22041         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
22042         to corresponding attribute.
22044 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
22046         * doc/extend.texi (Common Function Attributes) <noplt>: Move
22047         to correct alphabetization of table.  Copy-edit and correct
22048         markup.
22049         <stack_protect>: Likewise.
22050         <target_clones>: Likewise.
22051         <simd>: Likewise.
22052         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
22053         Correct punctuation.
22054         (Code Gen Options) <-fno-plt>: Copy-edit.
22056 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22058         PR target/68917
22059         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
22060         SI values.  Explicitly convert SI to DI and vice-versa.
22062 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
22064         PR tree-optimization/69070
22065         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
22066         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
22068         PR sanitizer/69055
22069         * ubsan.c (ubsan_instrument_float_cast): Call
22070         initialize_sanitizer_builtins.
22072         PR target/69015
22073         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
22075 Copyright (C) 2016 Free Software Foundation, Inc.
22077 Copying and distribution of this file, with or without modification,
22078 are permitted in any medium without royalty provided the copyright
22079 notice and this notice are preserved.