selftest.c: avoid explicit "selftest::" qualifiers
[official-gcc.git] / gcc / ChangeLog
blob4f1132174234c7198aec3bf1f9f8b64fc0054b01
1 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3         * selftest.c: Move "namespace selftest {" to top of file,
4         removing explicit "selftest::" qualifiers throughout.
6 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
8         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
9         New types.
10         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
11         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
12         Replace builtin with vector extension.
13         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
14         New types.
15         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
16         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
17         Replace builtin with vector extension.
18         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
19         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
20         Replace builtin with vector extension.
21         * config/i386/xmmintrin.h (__m128_u): New type.
22         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
23         (_mm_load_ps, _mm_store_ps): Simplify.
25 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
27         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
29 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
31         * diagnostic-show-locus.c (colorizer::begin_state): Support more
32         than 3 ranges per diagnostic by alternating between color 1 and
33         color 2.
34         (layout::layout): Replace use of rich_location::MAX_RANGES
35         with richloc->get_num_locations ().
36         (layout::calculate_line_spans): Replace use of
37         rich_location::MAX_RANGES with m_layout_ranges.length ().
38         (layout::print_annotation_line): Handle arbitrary numbers of
39         ranges in caret-printing by defaulting to '^'.
40         (selftest::test_one_liner_many_fixits): New function.
41         (test_diagnostic_show_locus_one_liner): Call it.
42         * diagnostic.c (diagnostic_initialize): Update for renaming
43         of rich_location::MAX_RANGES to
44         rich_location::STATICALLY_ALLOCATED_RANGES.
45         * diagnostic.h (struct diagnostic_context): Likewise.
47 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
49         * selftest.c (selftest::named_temp_file::named_temp_file): New
50         ctor.
51         (selftest::temp_source_file::~temp_source_file): Move to...
52         (selftest::named_temp_file::~named_temp_file): ...here.
53         (selftest::test_named_temp_file): New function.
54         (selftest::selftest_c_tests): Call test_named_temp_file.
55         * selftest.h (class named_temp_file): New class.
56         (class temp_source_file): Convert to a subclass of named_temp_file.
58 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
60         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
61         USEs of LR_REGNO in returns and sibcalls.
62         (rs6000_output_mi_thunk): Similar.
63         (rs6000_sibcall_aix): Similar.
64         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
65         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
66         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
67         Remove the USE of LR_REGNO from the patterns as well.  Delete an
68         obsolete comment.
69         (return_internal_<mode>): Delete.
71 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
73         * gcc/config/aarch64/aarch64-simd.md
74         (aarch64_ld2<mode>_dreg_le): New.
75         (aarch64_ld2<mode>_dreg_be): New.
76         (aarch64_ld2<mode>_dreg): Removed.
77         (aarch64_ld3<mode>_dreg_le): New.
78         (aarch64_ld3<mode>_dreg_be): New.
79         (aarch64_ld3<mode>_dreg): Removed.
80         (aarch64_ld4<mode>_dreg_le): New.
81         (aarch64_ld4<mode>_dreg_be): New.
82         (aarch64_ld4<mode>_dreg): Removed.
83         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
85 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
87         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
88         redundant location param.
89         (test_one_liner_fixit_remove): Likewise.
90         (test_one_liner_fixit_replace): Likewise.
91         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
92         * gcc-rich-location.c
93         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
94         get_range_from_loc.  Drop overload taking a const char *.
95         * gcc-rich-location.h
96         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
97         a const char *.
99 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
101         * config/linux.c (linux_libc_has_function): Return true on musl.
103 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
105         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
107 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
109         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
110         used for abnormal egdes.
112 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
114         PR tree-optimization/72866
115         * tree-vect-patterns.c (search_type_for_mask): Turn into
116         a small wrapper, move all code to ...
117         (search_type_for_mask_1): ... this new function.  Add caching
118         and adjust recursive calls.
120         PR debug/77363
121         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
122         instead of lookup_type_die (type_main_variant (type)) even for array
123         types.
125         PR middle-end/77377
126         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
127         constant pool reference return x instead of c.
129 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
131         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
132         include MQ.
134 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
136         * input.c
137         (selftest::test_make_location_nonpure_range_endpoints): Fix
138         header comment.
140 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
142         * diagnostic-show-locus.c
143         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
144         function.
145         (selftest::test_diagnostic_show_locus_one_liner): Call it.
146         * input.c (get_pure_location): Move to libcpp/line-map.c.
147         * input.h (get_pure_location): Convert decl to an inline function
148         calling implementation in libcpp.
150 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
152         PR target/77403
153         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
154         template for intel asm dialect.
155         (vec_set_hi_<mode><mask_name>): Ditto.
157 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
159         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
160         (selftest::fail_formatted): Likewise.
162 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
164         * input.c (make_location): Call get_start and get_finish
165         on the endpoints to avoid storing packed ranges or ad-hoc
166         ranges in them.
167         (selftest::test_make_location_nonpure_range_endpoints): New function.
168         (selftest::input_c_tests): Call it.
169         * input.h (get_start): New inline function.
171 2016-08-29  Tom de Vries  <tom@codesourcery.com>
173         PR c/77398
174         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
175         with assert.
177 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
179         * Makefile.in (gcov-iov.h): Add dummy recipe.
181 2016-08-29  Nathan Sidwell  <nathan@acm.org>
183         * config/nvptx/nvptx.c: #include tree-vrp.h.
185 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
187         PR target/77324
188         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
189         HIGH+LO construct during reload.
191 2016-08-28  Tom de Vries  <tom@codesourcery.com>
193         PR lto/70955
194         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
195         'sysv_abi va_list' attribute.
196         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
197         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
198         attributes.
200 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
202         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
203         * emit-rtl.c (unshare_all_rtl_1): Adjust.
204         (unshare_all_rtl_again): Likewise.
205         * function.c (assign_stack_local_1): Likewise.
206         (assign_stack_temp_for_type): Likewise.
208 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
210         * cfgbuild.c (make_edges): Adjust.
211         * cfgrtl.c (can_delete_label_p): Likewise.
212         * dwarf2cfi.c (create_trace_edges): Likewise.
213         * except.c (sjlj_emit_dispatch_table): Likewise.
214         * function.h (struct expr_status): make x_forced_labels a vector.
215         * jump.c (rebuild_jump_labels_1): Adjust.
216         * reload1.c (set_initial_label_offsets): Likewise.
217         * stmt.c (force_label_rtx): Likewise.
218         (expand_label): Likewise.
220 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
222         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
224 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
226         PR tree-optimization/71077
227         PR tree-optimization/68542
228         * fold-const.c (fold_relational_const): Fix folding of
229         VECTOR_CST comparisons that have a scalar boolean result type.
230         (selftest::test_vector_folding): New static function.
231         (selftest::fold_const_c_tests): Call it.
233 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
235         * doc/extend.texi (SPU Built-in Functions): Remove stale
236         references to material formerly at IBM and Sony.
238 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
240         PR target/77349
241         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
243 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
245         * diagnostic-show-locus.c
246         (selftest::test_fixit_consolidation): New function.
247         (selftest::diagnostic_show_locus_c_tests): Call it.
248         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
249         constructor based on source_range.
251 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
253         * diagnostic-color.c (color_dict): Add "fixit-insert" and
254         "fixit-delete".
255         (parse_gcc_colors): Update description of default GCC_COLORS.
256         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
257         (colorizer::set_fixit_insert): New method.
258         (colorizer::set_fixit_delete): New method.
259         (colorizer::get_color_by_name): New method.
260         (colorizer::STATE_FIXIT_INSERT): New constant.
261         (colorizer::STATE_FIXIT_DELETE): New constant.
262         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
263         fields in favor of new field "m_stop_color".  Add fields
264         "m_fixit_insert" and "m_fixit_delete".
265         (colorizer::colorizer): Update for above changes.  Replace
266         colorize_start calls with calls to get_color_by_name.
267         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
268         STATE_FIXIT_DELETE.  Update for field renamings.
269         (colorizer::finish_state): Simplify by using m_stop_color,
270         rather than multiple identical "*_ce" fields.
271         (colorizer::get_color_by_name): New method.
272         (layout::print_any_fixits): Print insertions and replacements
273         using the "fixit-insert" color, and deletions using the
274         "fixit-delete" color.
275         * doc/invoke.texi (-fdiagnostics-color): Update description of
276         default GCC_COLORS, and of the supported capabilities.
278 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
280         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
281         current_function_static_stack_size variable with the static
282         stack frame size of the current function when
283         flag_stack_usage_info is enabled.
285 2016-08-26  Nathan Sidwell  <nathan@acm.org>
287         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
288         assignment inside if condition.
290 2016-08-26  Richard Biener  <rguenther@suse.de>
292         PR tree-optimization/69047
293         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
294         extracts similar to what FRE does.
295         (non_rewritable_mem_ref_base): Likewise.
297 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
299         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
300         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
301         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
302         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
303         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
304         Likewise.
305         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
306         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
307         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
308         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
309         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
311 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
313         PR target/70473
314         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
315         reservation duration to 15 cycles.
316         (cortex_a8_vfp_macs): Likewise.
317         (cortex_a8_vfp_macd): Likewise.
318         (cortex_a8_vfp_divs): Likewise.
319         (cortex_a8_vfp_divd): Likewise.
321 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
323         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
324         (aarch_macro_fusion_pair_p): Use above to avoid early return.
326 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
327             Martin Jambhor  <mjambor@suse.cz>
329         * common.opt: New option -fipa-bit-cp.
330         * doc/invoke.texi: Document -fipa-bit-cp.
331         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
332         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
333         * tree-ssa-ccp.h: New header file.
334         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
335         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
336         Replace all occurences of tree parameter by two new params: signop, int.
337         (bit_value_unop_1): Change to bit_value_unop and export it.
338         Replace all occurences of tree parameter by two new params: signop,
339         int.
340         (bit_value_binop): Change call from bit_value_binop_1 to
341         bit_value_binop.
342         (bit_value_assume_aligned): Likewise.
343         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
344         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
345         to ccp_finalize.
346         (ccp_finalize): Skip processing if val->mask == 0.
347         * ipa-cp.c: Include tree-ssa-ccp.h
348         (ipcp_bits_lattice): New class.
349         (ipcp_param_lattice (bits_lattice): New member.
350         (print_all_lattices): Call ipcp_bits_lattice::print.
351         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
352         (initialize_node_lattices): Likewise.
353         (propagate_bits_accross_jump_function): New function.
354         (propagate_constants_accross_call): Call
355         propagate_bits_accross_jump_function.
356         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
357         (ipcp_store_bits_results): New function.
358         (ipcp_driver): Call ipcp_store_bits_results.
359         * ipa-prop.h (ipa_bits): New struct.
360         (ipa_jump_func): Add new member bits of type ipa_bits.
361         (ipa_param_descriptor): Change decl to decl_or_type.
362         (ipa_get_param): Change decl to decl_or_type and assert on
363         PARM_DECL.
364         (ipa_get_type): New function.
365         (ipcp_transformation_summary): New member bits.
366         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
367         (ipa_populate_param_decls): Likewise.
368         (ipa_dump_param): Likewise.
369         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
370         function.
371         (ipa_set_jf_unknown): Set ipa_bits::known to false.
372         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
373         propagation.
374         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
375         (ipa_write_jump_function): Add streaming for ipa_bits.
376         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
377         (write_ipcp_transformation_info): Add streaming for ipa_bits
378         summary for ltrans.
379         (read_ipcp_transfomration_info): Add support for reading streamed
380         ipa_bits.
381         (ipcp_update_bits): New function.
382         (ipcp_transform_function): Call ipcp_update_bits.
384 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
386         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
387         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
389 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
391         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
393 2016-08-25  Richard Biener  <rguenther@suse.de>
395         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
396         Only add locations in late dwarf.
397         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
398         (dwarf2out_early_finish): But do it here.
400 2016-08-24  Michael Collison <michael.collison@linaro.org>
401             Michael Collison <michael.collison@arm.com>
403         * config/arm/arm-modes.def: Add new condition code mode CC_V
404         to represent the overflow bit.
405         * config/arm/arm.c (maybe_get_arm_condition_code):
406         Add support for CC_Vmode.
407         (arm_gen_unlikely_cbranch): New function to generate common
408         rtl conditional branches for overflow patterns.
409         * config/arm/arm-protos.h: Add prototype for
410         arm_gen_unlikely_cbranch.
411         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
412         addsi3_compareV_upper): New patterns to support signed
413         builtin overflow add operations.
414         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
415         New patterns to support unsigned builtin add overflow operations.
416         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
417         builtin overflow subtract operations,
418         (usubv<mode>4): New patterns to support unsigned builtin subtract
419         overflow operations.
420         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
421         to support builtin overflow negate operations.
423 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
425         Revert
426         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
428         * explow.c (get_dynamic_stack_size): Take known alignment of stack
429         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
430         needed.
432 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
434         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
435         MULTILIB_OPTIONS should be used.  Small wording fixes.
436         * genmultilib: Memorize set of all option combinations in
437         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
438         found in MULTILIB_OPTIONS by checking if option set is listed in
439         combination_space.  Output new and existing error message to stderr.
441 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
443         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
444         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
445         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
446         (MULTILIB_REUSE): Remove reuse rules for option set including
447         -mfpu=fp-armv8 and -mfpu=vfpv4
449 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
451         * config/arm/t-rtems: Add vfp multilib.
453 2016-08-23  Ian Lance Taylor  <iant@golang.org>
455         * config/s390/s390.c (s390_asm_file_start): Call
456         default_file_start.
458 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
460         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
461         initialization of all 0's to the 0 constant, instead of directly
462         generating XOR.  Add support for V4SImode vector initialization on
463         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
464         initialization.  Change variables used in V4SFmode vector
465         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
466         any memory addresses are in index form.  Add support for using
467         VSPLTH/VSPLTB to initialize vector short and vector char vectors
468         with all of the same element.
469         (regno_or_subregno): New helper function to return a register
470         number for either REG or SUBREG.
471         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
472         Use regno_or_subregno where possible.
473         (rs6000_split_v4si_init_di_reg): New helper function to build up a
474         DImode value from two SImode values in order to generate V4SImode
475         vector initialization on 64-bit systems with direct move.
476         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
477         initialization.
478         (rtx_is_swappable_p): V4SImode vector initialization insn is not
479         swappable.
480         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
481         declaration.
482         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
483         attributes to initialize V8HImode and V16QImode vectors with the
484         same element.
485         (VSX_SPLAT_COUNT): Likewise.
486         (VSX_SPLAT_SUFFIX): Likewise.
487         (UNSPEC_VSX_VEC_INIT): New unspec.
488         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
489         Allow SFmode values to come from Altivec registers.
490         (vsx_init_v4si): New insn/split for V4SImode vector initialization
491         on 64-bit systems with direct move.
492         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
493         vector initializations, to allow V4SImode vector initializations
494         on 64-bit systems with direct move.
495         (vsx_splat_v4si): Likewise.
496         (vsx_splat_v4si_di): Likewise.
497         (vsx_splat_v4sf): Likewise.
498         (vsx_splat_v4sf_internal): Likewise.
499         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
500         register classes.
501         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
502         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
503         initializing V8HImode and V16QImode vectors with the same
504         element.
505         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
506         optimization if -maltivec=be.
508 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
510         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
511         attribute for alternatives 3 and 4.
513 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
515         * selftest.c (selftest::assert_str_contains): New function.
516         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
517         * selftest.h (selftest::assert_str_contains): New decl.
518         (ASSERT_STR_CONTAINS): New macro.
520 2016-08-23  Richard Biener  <rguenther@suse.de>
522         PR tree-optimization/77286
523         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
524         the CFG here.
525         (vect_transform_loop): Split exit edges of loop and scalar
526         loop if required and at the appropriate time.
528 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
530         * explow.c (get_dynamic_stack_size): Take known alignment of stack
531         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
532         needed.
533         Correct a typo in a comment.
535 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
537         * config/s390/s390.md ("*andc_split"): New splitter for and with
538         complement.
540 2016-08-23  Richard Biener  <rguenther@suse.de>
542         PR tree-optimization/27336
543         * tree-vrp.c (infer_value_range): Handle stmts that can throw
544         by looking for a non-EH edge.
545         (process_assert_insertions_for): Likewise.
547 2016-08-23  Richard Biener  <rguenther@suse.de>
549         PR middle-end/77305
550         * statistics.c (statistics_counter_event): Robustify against
551         NULL current_pass.
553 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
555         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
556         for targets amdfam10 and barcelona.
558 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
560         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
561         (zero_extend<mode>di2): Ditto.
562         (*zero_extend<mode>si2): Ditto.
563         (*zero_extendqihi2): Ditto.
565 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
567         PR middle-end/77269
568         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
569         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
571 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
573         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
574         identical consecutive elements.
575         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
576         the node's def stmt, avoid printing an unwanted trailing newline by
577         replacing the call to print_gimple_stmt() with its inlined body and
578         adjusting it to not set pp_needs_newline and to call pp_flush()
579         instead of pp_newline_and_flush().
581 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
583         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
584         (float32_type_node, float64_type_node, float32x_type_node)
585         (float128x_type_node): New macros.
586         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
587         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
588         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
589         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
590         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
591         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
592         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
593         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
594         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
595         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
596         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
597         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
598         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
599         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
600         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
601         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
602         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
603         (copysign, fabs, huge_val, inf, nan, nans): Use it.
604         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
605         and copysign.
606         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
607         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
608         * doc/extend.texi (Other Builtins): Document these built-in
609         functions.
610         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
611         for nan and nans.
613 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
615         * doc/install.texi (Binaries): www.opencsw.org now uses https.
617 2016-08-22  Richard Biener  <rguenther@suse.de>
619         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
621 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
623         PR target/77270
624         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
625         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
626         non-SSE2 athlons only, otherwise prefer SSE prefetches.
628 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
630         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
631         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
632         (vrp_visit_switch_stmt): Likewise.
633         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
634         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
635         (vrp_visit_stmt): Use extract_range_from_stmt.
636         (vrp_visit_phi_node): Use extract_range_from_phi_node.
638 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
640         * Makefile.in: Add tree-vrp.h to GTFILES.
641         * gengtype.c (open_base_files): Add tree-vrp.h.
642         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
643         * builtins.c: Likewise.
644         * fold-const.c: Likewise.
645         * gimple-builder.c: Likewise.
646         * gimple-laddress.c: Likewise.
647         * hsa-gen.c: Likewise.
648         * internal-fn.c: Likewise.
649         * ssa.h: Likewise.
650         * targhooks.c: Liewise,
651         * tree-ssa-address.c: Likewise.
652         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
653         * tree-vrp.c (struct value_range): Move to tree-vrp.h
654         * tree-vrp.h: New file.
656 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
658         PR tree-optimization/61839
659         * tree-vrp.c (two_valued_val_range_p): New.
660         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
661         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
662         Also Convert VAR BINOP CST where VAR is two-valued to
663         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
665 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
667         * diagnostic-show-locus.c
668         (layout::annotation_line_showed_range_p): New method.
669         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
670         Reimplement case fixit_hint::REPLACE to cover removals, and
671         replacements where the range of the replacement isn't one
672         of the ranges in the rich_location.
673         (test_one_liner_fixit_replace): Likewise.
674         (selftest::test_one_liner_fixit_replace_non_equal_range): New
675         function.
676         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
677         New function.
678         (selftest::test_diagnostic_show_locus_one_liner): Call the new
679         functions.
680         * diagnostic.c (print_parseable_fixits): Remove case
681         fixit_hint::REMOVE.
683 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
685         PR target/77270
686         * config/i386/i386.c (ix86_option_override_internal): Remove
687         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
688         Enable SSE prefetch also for TARGET_PREFETCHWT1.
689         Do not try to enable TARGET_PRFCHW ISA flag here.
690         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
691         Rewrite expander function body.
692         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
694 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
696         PR c/32187
697         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
698         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
699         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
700         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
701         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
702         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
703         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
704         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
705         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
706         tree_index values.
707         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
708         macros.
709         (struct floatn_type_info): New structure type.
710         (floatn_nx_types): New variable declaration.
711         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
712         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
713         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
714         * tree.c (floatn_nx_types): New variable.
715         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
716         corresponding complex types.
717         * target.def (floatn_mode): New hook.
718         * targhooks.c: Include "real.h".
719         (default_floatn_mode): New function.
720         * targhooks.h (default_floatn_mode): New prototype.
721         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
722         types.
723         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
724         effective-target and dg-add-options keywords.
725         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
726         Document new effective-target keywords.
727         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
728         * doc/tm.texi: Regenerate.
729         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
730         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
731         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
732         18661-3.
733         * real.h (struct real_format): Add field ieee_bits.
734         * real.c (ieee_single_format, mips_single_format)
735         (motorola_single_format, spu_single_format, ieee_double_format)
736         (mips_double_format, motorola_double_format)
737         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
738         (ieee_extended_intel_128_format)
739         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
740         (mips_extended_format, ieee_quad_format, mips_quad_format)
741         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
742         (decimal_double_format, decimal_quad_format, ieee_half_format)
743         (arm_half_format, real_internal_format: Initialize ieee_bits
744         field.
745         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
746         float128_type_node.  Set float80_type_node to float64x_type_node
747         if appropriate and long_double_type_node not appropriate.
748         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
749         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
750         Initialize ieee_bits field.
751         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
752         (rs6000_init_builtins): Set ieee128_float_type_node to
753         float128_type_node.
754         (rs6000_floatn_mode): New function.
756 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
758         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
759         _rdseed64_step): Uglify argument names and/or local variable names
760         in inline functions.
761         * config/i386/rtmintrin.h (_xabort): Likewise.
762         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
763         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
764         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
765         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
766         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
767         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
768         _mm_maskz_ternarylogic_epi32): Likewise.
769         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
770         __lwpins32, __lwpins64): Likewise.
771         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
772         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
773         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
774         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
775         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
776         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
777         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
778         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
779         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
780         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
781         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
782         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
783         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
784         _mm256_mask_i64gather_epi32): Likewise.
785         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
786         * config/i386/ia32intrin.h (__writeeflags): Likewise.
787         * config/i386/pkuintrin.h (_wrpkru): Likewise.
788         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
789         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
790         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
791         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
792         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
793         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
794         _mm512_mask_prefetch_i64scatter_ps): Likewise.
795         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
796         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
797         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
798         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
799         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
800         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
801         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
802         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
804         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
805         returning void.
806         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
807         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
808         Likewise.
809         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
810         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
811         function name.
812         (_rdpkru_u32): Add space after function name.
814         * config/i386/t-i386 (i386-c.o): Don't depend on
815         i386-builtin-types.inc.
816         (i386.o): Depend on i386-builtin-types.inc.
818 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
820         PR target/77281
821         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
822         Use const_vec_duplicate to check for duplicated elements.
824 2016-08-19  Richard Biener  <rguenther@suse.de>
826         PR tree-optimization/77290
827         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
828         Fix flag_tree_parallelize_loops check.
830 2016-08-19  Richard Biener  <rguenther@suse.de>
832         * match.pd (x | 0 -> x): Add.
834 2016-08-19  Richard Biener  <rguenther@suse.de>
836         PR tree-optimization/77286
837         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
838         Deal with virtual PHIs being out-of-order.
840 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
842         * doc/invoke.texi (fverbose-asm): Note that source code lines
843         are emitted, and provide an example.
844         * final.c (asm_show_source): New function.
845         (final_scan_insn): Call asm_show_source.
847 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
849         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
850         param with diagnostic_kind.
851         (class colorizer): Similarly replace field m_diagnostic with
852         m_diagnostic_kind.
853         (colorizer::colorizer): Replace diagnostic
854         param with diagnostic_kind.
855         (colorizer::begin_state): Update for above field change.
856         (layout::layout): Replace diagnostic param with rich_location *
857         and diagnostic_kind.
858         (diagnostic_show_locus): Replace diagnostic param with richloc
859         and diagnostic_kind.
860         (class selftest::test_diagnostic_context): New class.
861         (selftest::test_diagnostic_show_locus_unknown_location): New
862         function.
863         (selftest::test_one_liner_simple_caret): New function.
864         (selftest::test_one_liner_caret_and_range): New function.
865         (selftest::test_one_liner_multiple_carets_and_ranges): New
866         function.
867         (selftest::test_one_liner_fixit_remove): New function.
868         (selftest::test_one_liner_fixit_replace): New function.
869         (selftest::test_diagnostic_show_locus_one_liner): New function.
870         (selftest::diagnostic_show_locus_c_tests): Call the new test
871         functions.
872         * diagnostic.c (diagnostic_initialize): Initialize
873         colorize_source_p, show_ruler_p and parseable_fixits_p.
874         (default_diagnostic_finalizer): Update for change to
875         diagnostic_show_locus.
876         (diagnostic_append_note): Likewise.
877         * diagnostic.h (diagnostic_show_locus): Replace
878         const diagnostic_info * param with location * and diagnostic_t.
880 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
882         * input.c (saved_line_table): New global.
883         (class selftest::temp_line_table): Rename to line_table_test and
884         move declaration to selftest.h, and drop field m_old_line_table.
885         (selftest::temp_line_table::temp_line_table): Rename ctor to...
886         (selftest::line_table_test::line_table_test): ...this.  Add a
887         default ctor.  Store current value of line_table within
888         saved_line_table.
889         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
890         (selftest::line_table_test::~line_table_test): ...this, and
891         restore line_table from the saved_line_table, rather than
892         m_old_line_table.
893         (selftest::test_accessing_ordinary_linemaps): Update for above
894         renaming.
895         (selftest::test_lexer): Likewise.
896         (struct selftest::lexer_test): Likewise.
897         (selftest::lexer_test::lexer_test): Likewise.
898         (selftest::input_c_tests): Move the looping over test cases from
899         here into...
900         (selftest::for_each_line_table_case): New function.
901         * input.h (saved_line_table): New decl.
902         * selftest.h (struct selftest::line_table_case): New forward decl.
903         (class selftest::line_table_test): New class, moved here from
904         selftest::temp_line_table in input.c, and renamed.
905         (selftest::for_each_line_table_case): New decl.
907 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
909         PR target/72839
910         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
912 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
914         PR middle-end/70895
915         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
916         enclosing parallel construct for reduction variables on OpenACC loop
917         directives.
919 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
921         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
922         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
923         -gdwarf-3.
924         (function_to_dwarf_procedure): Update comment.
926 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
928         * input.c (diagnostics_file_cache_forcibly_evict_file): New
929         function.
930         * input.h (diagnostics_file_cache_forcibly_evict_file): New
931         declaration.
932         * selftest.c (selftest::temp_source_file::~temp_source_file):
933         Evict m_filename from the diagnostic file cache.
935 2016-08-18  Richard Biener  <rguenther@suse.de>
937         * tree-pass.h (make_pass_materialize_all_clones): Declare.
938         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
939         make_pass_materialize_all_clones): New simple IPA pass encapsulating
940         clone materialization.
941         * passes.def (all_late_ipa_passes): Start with
942         pass_materialize_all_clones.
943         * cgraphunit.c (symbol_table::compile): Remove call to
944         materialize_all_clones.
945         * tree-into-ssa.c: Include statistics.h.
946         (update_ssa): Count number of times we do incremental/rewrite
947         SSA update.
949 2016-08-18  Richard Biener  <rguenther@suse.de>
951         PR tree-optimization/77282
952         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
953         When doing auto-parallelizing also prevent use of PHIs that
954         carry dependences across loop backedges.
956 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
957             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
959         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
961 2016-08-18  Richard Biener  <rguenther@suse.de>
963         * ssa-iterators.h (ssa_vuse_operand): New inline.
964         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
965         (predicate_all_scalar_phis): Use remove_phi_node to remove
966         phi nodes predicated.  Delay removing virtual PHIs.
967         (predicate_mem_writes): Update virtual operands.
968         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
969         (tree_if_conversion): Do not rewrite virtual SSA form.
970         * tree-phinodes.c (release_phi_node): Make static.
971         * tree-phinodes.h (release_phi_node): Remove.
973 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
975         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
976         codes that appear in bdesc_* arrays, instead include i386-builtin.def
977         twice to define those.
978         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
979         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
980         bdesc_multi_arg): Define by including i386-builtin.def the third time.
981         * config/i386/i386-builtin.def: New file.
983 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
985         * input.c (get_source_range_for_char): Rename to...
986         (selftest::get_source_range_for_char): ...this, and move within
987         the #if CHECKING_P guard.
988         (get_num_source_ranges_for_substring): Rename to...
989         (selftest::get_num_source_ranges_for_substring): ...this, move
990         within the #if CHECKING_P guard, and make static.
991         (selftest::assert_num_substring_ranges): Initialize
992         actual_num_ranges.
994 2016-08-18  Alan Modra  <amodra@gmail.com>
996         PR rtl-optimization/72771
997         * reload.c (find_reloads): Don't assume that a subreg mem is OK
998         when find_reloads_toplev returns address_reloaded==-1.
999         (alternative_allows_const_pool_ref): Update comment.
1001 2015-08-17  Alan Hayward <alan.hayward@arm.com>
1003         PR tree-optimization/71752
1004         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
1005         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
1007 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1009         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
1010         instead of testing ECF_NORETURN bit in gimple_call_flags.
1011         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
1012         * predict.c (tree_bb_level_predictions): Likewise.
1013         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
1015         PR middle-end/77259
1016         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1017         turning a call into __builtin_unreachable-like noreturn call, adjust
1018         gimple_call_set_fntype.
1019         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1020         gimple_call_fntype has void return type.
1022 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
1024         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
1025         maybe_lookup_decl, to handle nested acc loop directives.
1027 2016-08-17  Richard Biener  <rguenther@suse.de>
1029         PR tree-optimization/76490
1030         * tree-vrp.c (update_value_range): Preserve overflow infinities
1031         when intersecting with ranges from get_range_info.
1032         (operand_less_p): Handle overflow infinities correctly.
1033         (value_range_constant_singleton): Use vrp_operand_equal_p
1034         to handle overflow max/min correctly.
1035         (vrp_valueize): Likewise.
1036         (union_ranges): Likewise.
1037         (intersect_ranges): Likewise.
1038         (vrp_visit_phi_node): Improve iteration limitation to only
1039         apply when we'll possibly re-visit the PHI via a changed argument
1040         on the backedge.
1042 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1044         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
1045         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
1046         rather than those that should not be built.
1048 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
1050         PR target/66488
1051         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
1053 2016-08-17  Richard Biener  <rguenther@suse.de>
1055         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
1056         (verify_vssa): New function verifying virtual SSA form.
1057         (verify_ssa): Call it.
1058         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
1059         Do not apply loop-closed SSA handling to virtuals.
1060         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
1061         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
1062         when rewriting their symbol.
1063         (prepare_def_site_for): Likewise.
1064         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
1065         operands of moved stmts.
1067 2016-08-17  Richard Biener  <rguenther@suse.de>
1069         PR tree-optimization/23855
1070         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
1071         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
1072         find guards to hoist.  Do not update SSA form but rewrite virtuals
1073         into loop closed SSA.
1074         (find_loop_guard): Adjust to skip already hoisted guards.  Do
1075         not mark virtuals for renaming or update SSA form.
1077 2016-08-17  Martin Liska  <mliska@suse.cz>
1079         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
1080         a LONG_LONG_TYPE_SIZE comparison.
1081         * gcov-io.h: Remove macro definitions.
1082         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
1083         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
1084         comparison.
1086 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1088         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
1089         that builtins not mentioned in bdesc_* arrays come first, then
1090         the ones mentioned in bdesc_* arrays in the order they appear in
1091         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
1092         IX86_BUILTIN__BDESC_*_LAST enumerator.
1093         (bdesc_mpx): Fix up a comment typo.
1094         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
1095         __builtin_ia32_vpcomneu[bwdq] builtins.
1096         (BDESC_VERIFY, BDESC_VERIFYS): Define.
1097         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
1098         enum ix86_builtins ordering.
1099         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
1100         for direct bdesc_* array member access instead of searching all the
1101         arrays until an fcode match is found.
1103 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
1105         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
1106         pattern as define_insn_and_split.  Split insn before reload to
1107         ashl<mode>3_1.
1108         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
1109         <shift_insn><mode>3_1.
1110         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
1111         <rotate_insn><mode>3_1.
1113 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1115         PR c/72857
1116         * input.c (get_source_range_for_substring): Rename to...
1117         (get_source_location_for_substring): ...this, adding param
1118         "caret_idx", and converting output param from source_range * to
1119         location_t *.
1120         (get_source_range_for_char): New function.
1121         (get_num_source_ranges_for_substring): Update comment to reflect
1122         above renaming.
1123         (assert_char_at_range): Update to use get_source_range_for_char
1124         rather than get_source_range_for_substring.
1125         (test_lexer_string_locations_concatenation_2): Likewise.
1126         * substring-locations.h (get_source_range_for_substring): Rename
1127         to...
1128         (get_source_location_for_substring): ...this, and adding param
1129         "caret_idx", and converting output param from source_range * to
1130         location_t *.
1132 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1134         * input.c (class selftest::temp_source_file): Move to
1135         selftest.h.
1136         (selftest::temp_source_file::temp_source_file): Move to
1137         selftest.c.
1138         (selftest::temp_source_file::~temp_source_file): Likewise.
1139         * selftest.c (selftest::temp_source_file::temp_source_file): Move
1140         here from input.c.
1141         (selftest::temp_source_file::~temp_source_file): Likewise.
1142         * selftest.h (class selftest::temp_source_file): Move here from
1143         input.c
1145 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1147         PR target/71910
1148         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
1149         inlining, add cgraph edge for the added __builtin_unreachable call.
1151         PR middle-end/67485
1152         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
1153         only cast it to SHWI for the final comparison.
1155 2016-08-16  Martin Liska  <mliska@suse.cz>
1157         PR gcov-profile/36412
1158         * doc/gcov.texi: Document --hash-filenames(-x).
1159         * gcov.c (print_usage): Add the option.
1160         (process_args): Process the option, sort options alphabetically.
1161         (md5sum_to_hex): New function.
1162         (make_gcov_file_name): Do the md5sum and append it to a
1163         filename.
1165 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
1167         PR tree-optimization/69848
1168         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
1169         and swtich operands to avoid additional NOT instruction.
1170         (vcond<v_cmp_mixed><mode>): Ditto.
1171         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
1173 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1175         * doc/install.texi (*-*-solaris2*): Adjust latest change.
1177 2016-08-16  Richard Biener  <rguenther@suse.de>
1179         PR tree-optimization/76783
1180         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
1181         BB visited flags at start.
1183 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
1185         PR tree-optimization/72817
1186         PR tree-optimization/73450
1187         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
1188         multiple_of_p for adjusted IV.base.
1190 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
1192         PR target/72867
1193         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
1194         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
1195         for !flag_finite_math_only or flag_signed_zeros.
1196         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
1197         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
1198         depend on flag_finite_math_only.
1199         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
1200         New insn pattern.
1201         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
1202         (*ieee_smin<mode>3): Ditto.
1203         (*ieee_smax<mode>3): Ditto.
1204         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
1205         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
1206         flag_signed_zeros.
1207         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
1208         depend on flag_finite_math_only.
1209         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
1210         (*mmx_<code>v2sf3): Remove.
1211         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
1212         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
1213         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
1215 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
1217         PR rtl-optimization/73650
1218         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
1219         it is not a simple move.
1221 2016-08-15  Martin Liska  <mliska@suse.cz>
1223         PR driver/72765
1224         * gcc.c (do_spec_1): Call save_string with the right size.
1225         (save_string): Do an assert about string we copy.
1227 2016-08-15  Richard Biener  <rguenther@suse.de>
1229         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
1230         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
1231         TV_MACH_DEP.
1232         (pass_data_stv): Likewise.
1234 2016-08-15  Richard Biener  <rguenther@suse.de>
1236         PR tree-optimization/73434
1237         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
1238         TBAA info on the base when forwarding a non-invariant address.
1240 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
1242         * dwarf2out.c (struct checksum_attributes): Add
1243         at_string_length_bit_size and at_string_length_byte_size fields.
1244         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
1245         and DW_AT_string_length_byte_size.
1246         (die_checksum_ordered): Handle at_string_length_bit_size and
1247         at_string_length_byte_size.
1248         (gen_array_type_die): For dwarf_version >= 5 emit
1249         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
1250         (adjust_string_types): For dwarf_version >= 5 remove
1251         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
1252         (resolve_addr): Likewise.
1254         PR debug/71906
1255         * dwarf2out.c (string_types): New variable.
1256         (gen_array_type_die): Change early_dwarf handling of
1257         DW_AT_string_length, create DW_OP_call4 referencing the
1258         length var temporarily.  Handle parameters that are pointers
1259         to string length.
1260         (adjust_string_types): New function.
1261         (gen_subprogram_die): Temporarily set string_types to local var,
1262         call adjust_string_types if needed.
1263         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
1264         New functions.
1265         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
1267 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
1269         * doc/install.texi (*-*-solaris2*): Fix version number and document
1270         requirement on GNU make for building libjava with the Solaris linker.
1272 2016-08-15  Martin Liska  <mliska@suse.cz>
1273             Jakub Jelinek  <jakub@redhat.com>
1275         PR tree-optimization/72824
1276         * tree-loop-distribution.c (const_with_all_bytes_same)
1277         <case VECTOR_CST>: Fix a typo.
1279 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
1281         PR target/76342
1282         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
1283         Renamed from _mm512_undefined_si512.
1284         (_mm_undefined_si512): New definition.
1286 2016-08-13  Richard Biener  <rguenther@suse.de>
1288         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
1289         into PHIs and update the lattice for its def.
1291 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1293         PR c/71512
1294         * ubsan.c (instrument_si_overflow): Pass true instead of false
1295         to gsi_replace.
1296         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
1297         of bbs.  Return TODO_cleanup_cfg if any returned true.
1299 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1301         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
1302         ISA 3.0 MTVSRDD instruction.
1303         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
1304         vecperm.
1306 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1308         PR tree-optimization/71083
1309         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
1310         bitfield access when possible.
1312 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
1314         PR middle-end/71654
1315         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
1316         sign-changing cast from a shorter unsigned type to a wider
1317         signed type.
1319 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1321         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
1322         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
1323         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
1325 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1327         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1328         Correct costs for vec_construct.
1330 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
1332         PR tree-optimization/69848
1333         * tree-vectorizer.h (enum vect_def_type): New condition reduction
1334         type CONST_COND_REDUCTION.
1335         * tree-vect-loop.c (vectorizable_reduction): Support new condition
1336         reudction type CONST_COND_REDUCTION.
1338 2016-08-12  Richard Biener  <rguenther@suse.de>
1340         PR tree-optimization/57326
1341         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
1342         returning an SSA name.
1343         (phi_translate_1): When fully_constant_expression returns a NAME
1344         make sure we have a leader for it.
1346 2016-08-12  Martin Liska  <mliska@suse.cz>
1347             Adam Fineman  <afineman@afineman.com>
1349         * gcov.c (process_file): Create .gcov file when .gcda
1350         file is missing.
1352 2016-08-12  Marek Polacek  <polacek@redhat.com>
1354         PR c/7652
1355         * alias.c (find_base_value): Adjust fall through comment.
1356         * cfgexpand.c (expand_debug_expr): Likewise.
1357         * combine.c (find_split_point): Likewise.
1358         (expand_compound_operation): Likewise.  Add FALLTHRU.
1359         (make_compound_operation): Adjust fall through comment.
1360         (canon_reg_for_combine): Add FALLTHRU.
1361         (force_to_mode): Adjust fall through comment.
1362         (simplify_shift_const_1): Likewise.
1363         (simplify_comparison): Likewise.
1364         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
1365         FALLTHRU.
1366         * config/aarch64/predicates.md: Likewise.
1367         * config/i386/i386.c (function_arg_advance_32): Likewise.
1368         (ix86_gimplify_va_arg): Likewise.
1369         (print_reg): Likewise.
1370         (ix86_print_operand): Likewise.
1371         (ix86_build_const_vector): Likewise.
1372         (ix86_expand_branch): Likewise.
1373         (ix86_sched_init_global): Adjust fall through comment.
1374         (ix86_expand_args_builtin): Add FALLTHRU.
1375         (ix86_expand_builtin): Likewise.
1376         (ix86_expand_vector_init_one_var): Likewise.
1377         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
1378         (rs6000_adjust_cost): Likewise.
1379         (insn_must_be_first_in_group): Likewise.
1380         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
1381         * dbxout.c (dbxout_symbol): Adjust fall through comment.
1382         * df-scan.c (df_uses_record): Likewise.
1383         * dojump.c (do_jump): Add FALLTHRU.
1384         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
1385         comment.
1386         (resolve_args_picking_1): Adjust fall through comment.
1387         (loc_list_from_tree_1): Likewise.
1388         * expmed.c (make_tree): Likewise.
1389         * expr.c (expand_expr_real_2): Add FALLTHRU.
1390         (expand_expr_real_1): Likewise.  Adjust fall through comment.
1391         * fold-const.c (const_binop): Adjust fall through comment.
1392         (fold_truth_not_expr): Likewise.
1393         (fold_cond_expr_with_comparison): Add FALLTHRU.
1394         (fold_binary_loc): Likewise.
1395         (contains_label_1): Adjust fall through comment.
1396         (multiple_of_p): Likewise.
1397         * gcov-tool.c (process_args): Add FALLTHRU.
1398         * genattrtab.c (check_attr_test): Likewise.
1399         (write_test_expr): Likewise.
1400         * genconfig.c (walk_insn_part): Likewise.
1401         * genpreds.c (validate_exp): Adjust fall through comment.
1402         (needs_variable): Likewise.
1403         * gensupport.c (get_alternatives_number): Add FALLTHRU.
1404         (subst_dup): Likewise.
1405         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
1406         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
1407         (gimplify_scan_omp_clauses): Add FALLTHRU.
1408         (goa_stabilize_expr): Likewise.
1409         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
1410         through comment.
1411         * hsa-gen.c (get_address_from_value): Likewise.
1412         * ipa-icf.c (sem_function::hash_stmt): Likewise.
1413         * ira.c (ira_setup_alts): Add FALLTHRU.
1414         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
1415         comment.
1416         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
1417         * opts.c (common_handle_option): Likewise.
1418         * read-rtl.c (read_rtx_code): Likewise.
1419         * real.c (round_for_format): Likewise.
1420         * recog.c (asm_operand_ok): Likewise.
1421         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
1422         * reload1.c (set_label_offsets): Likewise.
1423         (eliminate_regs_1): Likewise.
1424         (reload_reg_reaches_end_p): Likewise.
1425         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
1426         (rtx_cost): Likewise.
1427         * sched-rgn.c (is_exception_free): Likewise.
1428         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
1429         * stor-layout.c (int_mode_for_mode): Likewise.
1430         * toplev.c (print_to_asm_out_file): Likewise.
1431         (print_to_stderr): Likewise.
1432         * tree-cfg.c (gimple_verify_flow_info): Likewise.
1433         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
1434         (chrec_fold_multiply): Likewise.
1435         (evolution_function_is_invariant_rec_p): Likewise.
1436         (for_each_scev_op): Likewise.
1437         * tree-data-ref.c (siv_subscript_p): Likewise.
1438         (get_references_in_stmt): Likewise.
1439         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
1440         (substitute_in_expr): Likewise.
1441         (type_cache_hasher::equal): Likewise.
1442         (walk_type_fields): Likewise.
1443         * var-tracking.c (adjust_mems): Add FALLTHRU.
1444         (set_dv_changed): Adjust fall through comment.
1445         * varasm.c (default_function_section): Add FALLTHRU.
1447 2016-08-12  Marek Polacek  <polacek@redhat.com>
1449         PR c/7652
1450         * tree-complex.c (expand_complex_division): Add missing break.
1452 2016-08-12  Richard Biener  <rguenther@suse.de>
1454         * passes.c (execute_todo): Do not push/pop TV_TODO.
1455         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
1456         (execute_one_pass): Likewise.
1457         * common.opt (ftime-report-details): New switch.
1458         * doc/invoke.texi (ftime-report-details): Document.
1459         * timevar.h (timer::print_row): Adjust signature.
1460         (timer::all_zero): New static helper.
1461         (timer::child_map_t): New typedef.
1462         (timer::time_var_def): Add children field.
1463         * timevar.c (timer::named_items::print): Adjust.
1464         (timer::~timer): Free timevar recorded children.
1465         (timer::pop_internal): When -ftime-report-details record
1466         time spent in sub-timevars.
1467         (timer::print_row): Adjust.
1468         (timer::print): Print sub-timevar stats, use all_zero.
1469         * timevar.def (TV_TODO): Remove.
1471 2016-08-12  Richard Biener  <rguenther@suse.de>
1473         PR tree-optimization/72851
1474         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
1475         worklists to use bitmaps indexed in execution order.
1476         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
1477         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
1478         (cfg_blocks): Make a bitmap.
1479         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
1480         New globals.
1481         (cfg_blocks_empty_p): Adjust.
1482         (cfg_blocks_add): Likewise.
1483         (cfg_blocks_get): Likewise.
1484         (add_ssa_edge): Likewise.
1485         (add_control_edge): Likewise.
1486         (simulate_stmt): Likewise.
1487         (process_ssa_edge_worklist): Likewise.
1488         (simulate_block): Likewise.
1489         (ssa_prop_init): Compute PRE order and stmt UIDs.
1490         (ssa_prop_fini): Adjust.
1491         (ssa_propagate): Adjust.
1493 2016-08-12  Richard Biener  <rguenther@suse.de>
1495         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
1496         the currently executable edges have fixed ranges.  Always
1497         go through update_value_range.
1499 2016-08-12  Alexandre Oliva <aoliva@redhat.com>
1501         PR debug/63240
1502         * langhooks-def.h
1503         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
1504         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
1505         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
1506         (LANG_HOOKS_DECLS): Add it.
1507         * langhooks.h (struct lang_hooks_for_decls): Add
1508         function_decl_defaulted.  Const_tree-ify
1509         function_decl_explicit_p and function_decl_deleted_p.
1510         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
1511         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
1512         also at strict DWARF v5.
1514         PR debug/55641
1515         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
1516         TYPE_QUAL_CONST in reference-typed decls.
1518         PR debug/49366
1519         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
1520         in DW_OP_pieces, just enough to handle pointers to member
1521         functions.
1522         (gen_remaining_tmpl_value_param_die_attribute): Use a location
1523         expression on DWARFv5 if a constant value doesn't work.
1525 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
1527         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
1528         * selftest.c (selftest::test_assertions): New function.
1529         (selftest::selftest_c_tests): New function.
1530         * selftest.h (selftest::selftest_c_tests): New declaration.
1532 2016-08-11  Richard Biener  <rguenther@suse.de>
1533             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1535         PR rtl-optimization/72855
1536         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
1538 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1540         PR target/72863
1541         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1542         (vsx_store_<mode>): Likewise.
1544 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
1546         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
1547         TImode CONST_WIDE_INT store.
1548         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
1550 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
1552         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
1553         mode if unaligned SSE load and store are optimal.
1555 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1557         PR tree-optimization/71083
1558         * tree-predcom.c (ref_at_iteration): Correctly align the
1559         reference type.
1561 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1563         * config/s390/s390-builtin-types.def: Add INT128 types.
1564         * config/s390/s390-builtins.def: Add INT128 variants for the add
1565         sub low-level builtins dealing with TImode.
1566         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
1567         via subreg when expanding a builtin.
1568         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
1569         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
1570         Fix comment.
1571         * config/s390/vecintrin.h: Adjust builtin names accordingly.
1572         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
1573         ("vec_addc<mode>", "vec_addc_u128"): Merge to
1574         "vacc<bhfgq>_<mode>".
1575         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
1576         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
1577         ("vec_subc<mode>", "vec_subc_u128"): Merge to
1578         "vscbi<bhfgq>_<mode>".
1579         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
1580         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
1582 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1584         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
1586 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
1588         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
1589         unused declaration.
1590         (vcond<v_cmp_mixed><mode>): Ditto.
1591         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
1593 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
1595         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
1596         variable explicitly, also assert on it before use.
1598 2016-08-11  Richard Biener  <rguenther@suse.de>
1600         PR tree-optimization/72772
1601         * cfgloopmanip.c (create_preheader): Use split_edge if there
1602         is a single loop entry, avoiding degenerate PHIs.
1604 2016-08-11  Richard Biener  <rguenther@suse.de>
1606         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
1607         unconditional TODO_cleanup_cfg.
1608         (pass_thread_jumps::execute): Initialize loops, perform a CFG
1609         cleanup only if we threaded a jump.
1611 2016-08-11  Alan Modra  <amodra@gmail.com>
1613         PR target/71680
1614         * lra-constraints.c (simplify_operand_subreg): Allow subreg
1615         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
1616         slow.  Emit two reloads for slow mem case, first loading in
1617         fast innermode, then converting to required mode.
1619 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1621         * config/rs6000/altivec.h (vec_extract_exp): New macro.
1622         (vec_extract_sig): New macro.
1623         (vec_insert_exp): New macro.
1624         (vec_test_data_class): New macro.
1625         (scalar_extract_exp): New macro.
1626         (scalar_extract_sig): New macro.
1627         (scalar_insert_exp): New macro.
1628         (scalar_test_data_class): New macro.
1629         (scalar_test_neg): New macro.
1630         (scalar_cmp_exp_gt): New macro.
1631         (scalar_cmp_exp_lt): New macro.
1632         (scalar_cmp_exp_eq): New macro.
1633         (scalar_cmp_exp_unordered): New macro.
1634         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
1635         to enforce constraint that operand is a 7-bit unsigned literal.
1636         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
1637         for power9 built-ins.
1638         (BU_P9V_VSX_2): Likewise.
1639         (BU_P9V_64BIT_VSX_2): Likewise.
1640         (VSEEDP): Add scalar extract exponent support.
1641         (VSEESP): Add scalar extract signature support.
1642         (VSTDCNDP): Add scalar test negative support.
1643         (VSTDCNSP): Likewise.
1644         (VSIEDP): Add scalar insert exponent support.
1645         (VSCEDPGT): Add scalar compare exponent greater than support.
1646         (VSCEDPLT): Add scalar compare exponent less than support.
1647         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
1648         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
1649         (VSTDCDP): Add scalar test data class support.
1650         (VSTDCSP): Likewise.
1651         (VSEEDP): Add overload support for scalar extract exponent
1652         operation.
1653         (VSESDP): Add overload support for scalar extract signature
1654         operation.
1655         (VSTDCN): Add overload support for scalar test negative
1656         operation.
1657         (VSTDCNDP): Add overload support for scalar test negative
1658         operation.
1659         (VSTDCNSP): Add overload support for scalar test negative
1660         operation.
1661         (VSIEDP): Add overload support for scalar insert exponent
1662         operation.
1663         (VSTDC): Add overload support for scalar test data class
1664         operation.
1665         (VSTDCDP): Add overload support for scalar test data class
1666         operation.
1667         (VSTDCSP): Add overload support for scalar test data class
1668         opreation.
1669         (VSCEDPGT): Add overload support for scalar compare exponent
1670         greater than operation.
1671         (VSCEDPLT): Add overload support for scalar compare exponent
1672         less than operation.
1673         (VSCEDPEQ): Add overload support for scalar compare exponent
1674         test-for-equality operation.
1675         (VSCEDPUO): Add overload support for scalar compare exponent
1676         test-for-unordered operation.
1677         (VEEDP): Add vector extract exponent support.
1678         (VEESP): Likewise.
1679         (VESDP): Add vector extract significand support.
1680         (VESSP): Likewise.
1681         (VIEDP): Add vector insert exponent support.
1682         (VIESP): Likewise.
1683         (VTDCDP): Add vector test data class support.
1684         (VTDCSP): Likewise.
1685         (VES): Add overload support for vector extract significand operation.
1686         (VESDP): Likewise.
1687         (VESSP): Likewise
1688         (VEE): Add overload support for vector extract exponent operation.
1689         (VEEDP): Likewise.
1690         (VEESP): Likewise.
1691         (VTDC): Add overload support for vector test data class operation.
1692         (VTDCDP): Likewise.
1693         (VTDCSP): Likewise.
1694         (VIE): Add overload support for vector insert exponent operation.
1695         (VIEDP): Likewise.
1696         (VIESP): Likewise.
1697         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1698         overloaded binary floating point functions.
1699         (altivec_resolve_overloaded_builtin): Improve error messages to
1700         distinguish between functions not supported in the current
1701         compiler configuration and functions that were invoked with an
1702         invalid parameter combination, and include the built-in function
1703         name in both error messages.
1704         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
1705         New prototype.
1706         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
1707         function.
1708         (rs6000_expand_binop_builtin): Add check to enforce that argument
1709         2 of the test data class operations is a 7-bit unsigned literal.
1710         (rs6000_invalid_builtin): Add code to issue an error message if a
1711         built-in function that requires the power9_vector and -m32
1712         command-line options is compiled without these options.
1713         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
1714         (UNSPEC_VSX_SXSIGDP): New value.
1715         (UNSPEC_VSX_SXSIGPDP): New value.
1716         (UNSPEC_VSX_SIEXPDP): New value.
1717         (UNSPEC_VSX_SCMPEXPDP): New value.
1718         (UNSPEC_VSX_STSTDC): New value.
1719         (UNSPEC_VSX_VXEXP): New value.
1720         (UNSPEC_VSX_VXSIG): New value.
1721         (UNSPEC_VSX_VIEXP): New value.
1722         (UNSPEC_VSX_VTSTDC): New value.
1723         (xsxexpdp): New insn for scalar extract exponent.
1724         (xsxsigdp): New insn for scalar extract significand.
1725         (xsiexpdp): New insn for scalar insert exponent.
1726         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
1727         (*xscmpexpdp): New insn for scalar compare exponents.
1728         (xststdc<Fvsx): New expansion for both single- and
1729         double-precision scalar test data class operations.
1730         (xststdcneg<Fvsx>): New expansion for both single- and
1731         double-precision scalar test for negative value operations.
1732         (*xststdc<Fvsx>): New insn for scalar test data class
1733         operation.
1734         (xvxexp<VSs>): New insn for single- and double-precision
1735         vector extract exponent operation.
1736         (xvxsig<VSs>): New insn for single- and double-precision
1737         vector extract significand operation.
1738         (xviexp<VSs>): New insn for single- and double-precision
1739         vector insert exponent operation.
1740         (xvtstdc<VSs>): New insn for single- and double-precision
1741         vector test data class operation.
1742         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1743         built-in functions to represent the Power9 binary floating-point
1744         support instructions.
1746 2016-08-10  bin cheng  <bin.cheng@arm.com>
1748         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
1750 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
1751             Renlin Li  <renlin.li@arm.com>
1752             Bin Cheng  <bin.cheng@arm.com>
1754         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
1755         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
1756         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
1757         (aarch64_vcond_internal<mode><mode>): Delete pattern.
1758         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
1759         (vcond<v_cmp_result><mode>): Ditto.
1760         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
1761         (vcondu<mode><mode>): Ditto.
1762         (vcond<v_cmp_mixed><mode>): New pattern.
1763         (vcondu<mode><v_cmp_mixed>): New pattern.
1764         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
1765         of aarch64_vcond_internal.
1767 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
1768             Renlin Li  <renlin.li@arm.com>
1769             Bin Cheng  <bin.cheng@arm.com>
1771         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
1772         (vec_cmp<mode><v_cmp_result>): New pattern.
1773         (vec_cmpu<mode><mode>): New pattern.
1774         (vcond_mask_<mode><v_cmp_result>): New pattern.
1776 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
1778         PR tree-optimization/71734
1779         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
1780         REF_LOOP, invoke ref_indep_loop_p_1.
1781         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
1782         to ref_indep_loop_p.
1783         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
1784         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
1785         is inside LOOP, do not cache dpendence value for loops with
1786         non-zero SAFELEN.
1787         (ref_indep_loop_p_2): Delete function.
1788         (can_sm_ref_p): Pass LOOP as additional argument to
1789         ref_indep_loop_p.
1791 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1793         PR target/72853
1794         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
1795         being an offsettable address.
1797 2016-08-10  Martin Liska  <mliska@suse.cz>
1799         PR gcov-profile/58306
1800         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
1801         atomic variants of profile update functions.
1803 2016-08-10  Martin Liska  <mliska@suse.cz>
1805         Cherry picked (and modified) from google-4_7 branch
1806         2012-12-26  Rong Xu  <xur@google.com>
1807         * common.opt (fprofile-update): Add new flag.
1808         * coretypes.h: Define enum profile_update.
1809         * doc/invoke.texi: Document -fprofile-update.
1810         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
1811         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
1812         * tree-profile.c (gimple_init_edge_profiler): Generate
1813         also atomic profiler update.
1814         (gimple_gen_edge_profiler): Likewise.
1816 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
1818         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
1819         stack_usage_file to NULL after fclose calls.
1821 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1823         PR target/71873
1824         * reload.c (push_reload): Compute subreg_in_class for
1825         subregs of constants and plus expressions. Remove special
1826         handling of SYMBOL_REFs.
1828 2016-08-10  Alan Modra  <amodra@gmail.com>
1830         PR target/71680
1831         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
1832         SImode for TARGET_E500_DOUBLE when given SImode.
1834 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
1836         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
1837         unused variable __O.
1839 2016-08-09  Martin Liska  <mliska@suse.cz>
1841         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
1842         _gcov_reset to __gcov_reset.
1843         * doc/gcov-tool.texi: Fix typo.
1845 2016-08-09  Martin Liska  <mliska@suse.cz>
1847         * value-prof.c (gimple_divmod_values_to_profile): Do not
1848         instrument MOD histogram if a value is not a SSA name.
1850 2016-08-09  Martin Liska  <mliska@suse.cz>
1852         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
1853         values.
1855 2016-08-09  Renlin Li  <renlin.li@arm.com>
1857         PR middle-end/64971
1858         * calls.c (prepare_call_address): Convert funexp to Pmode when
1859         necessary.
1860         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
1861         (sibcall_value): Likewise.
1863 2016-08-09  Marek Polacek  <polacek@redhat.com>
1865         PR c/7652
1866         * cselib.c (cselib_expand_value_rtx_1): Add return.
1867         * gengtype.c (dbgprint_count_type_at): Likewise.
1868         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
1869         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
1871 2016-08-09  Martin Jambor  <mjambor@suse.cz>
1873         PR ipa/71981
1874         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
1875         if instance is a MEM_REF.
1877 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
1879         PR target/72843
1880         * config/i386/i386.md (*movtf_internal): Use
1881         lra_in_progress || reload_completed instead of !can_create_pseudo_p
1882         in the insn constraint.
1883         (*movxf_internal): Ditto.
1884         (*movdf_internal): Ditto.
1885         (*movsf_internal): Ditto.
1887 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
1889         PR tree-optimization/72772
1890         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1891         for expanded base.
1893 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
1895         PR tree-optimization/72772
1896         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
1897         parameter STOP.
1898         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
1899         parameter STOP and update calls.  Move expand_simple_operations
1900         function call from here...
1901         (simplify_using_initial_conditions): ...to here.  Delete parameter
1902         STOP.
1903         (tree_simplify_using_condition): Delete parameter STOP.
1904         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
1905         simplify_using_initial_conditions.
1907 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
1909         PR c/65345
1910         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
1911         Use create_tmp_var_raw instead of create_tmp_var.
1913 2016-08-09  Richard Biener  <rguenther@suse.de>
1915         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
1916         Treat same SSA names related.
1918 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
1920         PR tree-optimization/72824
1921         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
1922         real_zerop is not negative.
1924 2016-08-09  Richard Biener  <rguenther@suse.de>
1926         PR tree-optimization/71802
1927         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
1928         all merge opportunities with the predecessor.
1930 2016-08-09  Richard Biener  <rguenther@suse.de>
1932         PR ipa/68273
1933         * ipa-prop.c (ipa_modify_formal_parameters): Build
1934         parameter types with natural alignment also for the
1935         over-aligned case.
1937 2016-08-08  Andi Kleen  <ak@linux.intel.com>
1939         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
1941 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1943         PR c/64955
1944         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
1945         do-nothing langhook.
1946         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
1947         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
1948         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
1949         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
1951 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
1953         PR bootstrap/72844
1954         * input.c: Ensure that HAVE_ICONV is defined.
1956 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
1958         PR middle-end/72781
1959         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
1960         private vars for lastprivate and for linear iterator.
1962         PR middle-end/68762
1963         * omp-simd-clone.c: Include varasm.h.
1964         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
1965         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
1966         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
1967         update function name.
1969 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1971         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
1972         (avr_diagnose_devicespecs_error): Remove.
1973         (avr_devicespecs_file): Remove composing absolute path for specfile
1974         and its verbose info. Remove conditions to check specs-file,
1976 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
1978         PR rtl-optimization/72821
1979         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
1980         just return false for them.
1982 2016-08-08  Alan Modra  <amodra@gmail.com>
1984         PR target/72771
1985         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
1986         toc refs created during reload.  Update function comment.
1988 2016-08-08  Alan Modra  <amodra@gmail.com>
1990         PR target/72802
1991         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
1992         alternatives.  Put loads first, then stores, and reg/reg moves
1993         within same class later.  Delete attr length.
1995 2016-08-08  Alan Modra  <amodra@gmail.com>
1997         PR target/72802
1998         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
1999         (mem_operand_ds_form): New predicate.
2000         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
2001         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
2002         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
2003         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
2004         (extendsfdf2_fpr): Replace o constraint with wY.
2006 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
2008         * tree-ssa-threadbackward.c: Include tree-inline.h
2009         (profitable_jump_thread_path): Use estimate_num_insns to estimate
2010         size of copied block; for cold paths reduce duplication.
2011         (find_jump_threads_backwards): Remove redundant tests.
2012         (pass_thread_jumps::gate): Enable for -Os.
2014 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
2016         PR c/72816
2017         * stor-layout.c (layout_decl): Fix up formatting.
2018         (relayout_decl): Allow DECL to be FIELD_DECL.
2020 2016-08-07  Alan Modra  <amodra@gmail.com>
2022         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
2024 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2026         * data-streamer-in.c (streamer_read_wide_int): New.
2027         (streamer_read_widest_int): Renamed function.
2028         * data-streamer-out.c (streamer_write_wide_int): New
2029         (streamer_write_widest_int): Renamed function.
2030         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
2031         data-stream-in.c.
2032         (input_cfg): Call renamed function.
2033         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
2034         data-stream-out.c.
2035         (output_cfg): Call renamed function.
2036         * data-streamer.h: Add declarations.
2038 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2040         * tree-ssa-ccp.c (extend_mask): New param sgn.
2041         Remove ORing with wi::mask.
2042         (get_default_value): Adjust call to extend_mask to pass sign.
2043         (evaluate_stmt): Likewise.
2045 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
2047         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
2048         INT64_MAX.
2050 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2052         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
2053         transform if operand's type is pointer to function or method.
2055 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
2057         PR tree-optimization/18046
2058         * tree-ssa-threadedge.c: Include cfganal.h.
2059         (simplify_control_statement_condition): If simplifying a
2060         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
2061         with the dominating ASSERT_EXPR before handing it off to VRP.
2062         Mention that a CASE_LABEL_EXPR may be returned.
2063         (thread_around_empty_blocks): Adjust to handle
2064         simplify_control_statement_condition() returning a
2065         CASE_LABEL_EXPR.
2066         (thread_through_normal_block): Likewise.
2067         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
2068         a switch statement by trying to determine which case label
2069         will be taken.
2071 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
2073         PR rtl-optimization/69847
2074         * lra-constraints.c (process_invariant_for_inheritance): Save
2075         pattern instead of src.
2076         (remove_inheritance_pseudos): Use the pattern.  Add assert.
2078 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
2080         * input.c (string_concat::string_concat): New constructor.
2081         (string_concat_db::string_concat_db): New constructor.
2082         (string_concat_db::record_string_concatenation): New method.
2083         (string_concat_db::get_string_concatenation): New method.
2084         (string_concat_db::get_key_loc): New method.
2085         (class auto_cpp_string_vec): New class.
2086         (get_substring_ranges_for_loc): New function.
2087         (get_source_range_for_substring): New function.
2088         (get_num_source_ranges_for_substring): New function.
2089         (class selftest::lexer_test_options): New class.
2090         (struct selftest::lexer_test): New struct.
2091         (class selftest::ebcdic_execution_charset): New class.
2092         (selftest::ebcdic_execution_charset::s_singleton): New variable.
2093         (selftest::lexer_test::lexer_test): New constructor.
2094         (selftest::lexer_test::~lexer_test): New destructor.
2095         (selftest::lexer_test::get_token): New method.
2096         (selftest::assert_char_at_range): New function.
2097         (ASSERT_CHAR_AT_RANGE): New macro.
2098         (selftest::assert_num_substring_ranges): New function.
2099         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
2100         (selftest::assert_has_no_substring_ranges): New function.
2101         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
2102         (selftest::test_lexer_string_locations_simple): New function.
2103         (selftest::test_lexer_string_locations_ebcdic): New function.
2104         (selftest::test_lexer_string_locations_hex): New function.
2105         (selftest::test_lexer_string_locations_oct): New function.
2106         (selftest::test_lexer_string_locations_letter_escape_1): New function.
2107         (selftest::test_lexer_string_locations_letter_escape_2): New function.
2108         (selftest::test_lexer_string_locations_ucn4): New function.
2109         (selftest::test_lexer_string_locations_ucn8): New function.
2110         (selftest::uint32_from_big_endian): New function.
2111         (selftest::test_lexer_string_locations_wide_string): New function.
2112         (selftest::uint16_from_big_endian): New function.
2113         (selftest::test_lexer_string_locations_string16): New function.
2114         (selftest::test_lexer_string_locations_string32): New function.
2115         (selftest::test_lexer_string_locations_u8): New function.
2116         (selftest::test_lexer_string_locations_utf8_source): New function.
2117         (selftest::test_lexer_string_locations_concatenation_1): New
2118         function.
2119         (selftest::test_lexer_string_locations_concatenation_2): New
2120         function.
2121         (selftest::test_lexer_string_locations_concatenation_3): New
2122         function.
2123         (selftest::test_lexer_string_locations_macro): New function.
2124         (selftest::test_lexer_string_locations_stringified_macro_argument):
2125         New function.
2126         (selftest::test_lexer_string_locations_non_string): New function.
2127         (selftest::test_lexer_string_locations_long_line): New function.
2128         (selftest::test_lexer_char_constants): New function.
2129         (selftest::input_c_tests): Call the new test functions once per
2130         case within the line_table test matrix.
2131         * input.h (struct string_concat): New struct.
2132         (struct location_hash): New struct.
2133         (class string_concat_db): New class.
2134         * substring-locations.h: New header.
2136 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
2138         PR tree-optimization/72810
2139         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
2140         the type of the case labels when truncating.
2142 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
2144         PR Target/72819
2145         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
2146         (aarch64_fp16_ptr_type_node): Likewise.
2147         * config/aarch64/aarch64-simd-builtins.c
2148         (aarch64_fp16_ptr_type_node): Define.
2149         (aarch64_init_fp16_types): New, refactored out of...
2150         (aarch64_init_builtins): ...here, update to call
2151         aarch64_init_fp16_types.
2152         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
2153         HFmode.
2154         (aapcs_vfp_sub_candidate): Likewise.
2156 2016-08-05  Martin Liska  <mliska@suse.cz>
2157             Joshua Cranmer  <Pidgeot18@gmail.com>
2159         * gcov.c (line_t::has_block): New function.
2160         (enum loop_type): New enum.
2161         (handle_cycle): New function.
2162         (unblock): Likewise.
2163         (circuit): Likewise.
2164         (get_cycles_count): Likewise.
2165         (accumulate_line_counts): Use new loop detection algorithm.
2167 2016-08-05  Martin Liska  <mliska@suse.cz>
2169         * gcov.c (output_intermediate_file): Rename
2170         function_info::line_next to next_file_fn.
2171         (process_file): Likewise.
2172         (read_graph_file): Likewise.
2173         (accumulate_line_counts): Likewise.
2174         (output_lines): Likewise.
2176 2016-08-05  Richard Biener  <rguenther@suse.de>
2178         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
2179         restriction on threading to a loop header.
2181 2016-08-05  Richard Biener  <rguenther@suse.de>
2183         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
2184         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
2185         adjust loop info accordingly.
2187 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2189         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
2190         before folding call to __builtin_constant_p with parameters to false.
2192 2016-08-05  Alan Modra  <amodra@gmail.com>
2194         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
2195         code accidentally committed 2016-05-02 providing class when given
2196         NO_REGS.
2198 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
2200         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
2201         the case label ranges that partially overlap with OP's value
2202         range.
2204 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
2206         PR target/72805
2207         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
2208         Cast builtin function result to __mmask16 instead of __mmask8.
2209         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2210         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
2211         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2213 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
2215         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
2216         (ASSERT_TRUE_AT): New macro.
2217         (ASSERT_FALSE): Reimplement in terms of...
2218         (ASSERT_FALSE_AT): New macro.
2219         (ASSERT_STREQ_AT): Fix typo in comment.
2221 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
2223         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
2224         labels are exhaustive, designate the label with the widest
2225         range to be the default label.
2227 2016-08-04  Andrew Pinski  <apinski@cavium.com>
2229         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
2230         (thunderx_tunings): Use thunderx_vector_cost instead of
2231         generic_vector_cost.
2233 2016-08-04  Martin Liska  <mliska@suse.cz>
2235         * gcov.c (main): Fix GNU coding style.
2236         (output_intermediate_file): Likewise.
2237         (process_file): Likewise.
2238         (generate_results): Likewise.
2239         (release_structures): Likewise.
2240         (create_file_names): Likewise.
2241         (find_source): Likewise.
2242         (read_graph_file): Likewise.
2243         (find_exception_blocks): Likewise.
2244         (canonicalize_name): Likewise.
2245         (make_gcov_file_name): Likewise.
2246         (mangle_name): Likewise.
2247         (accumulate_line_counts): Likewise.
2248         (output_branch_count): Likewise.
2249         (read_line): Likewise.
2251 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2253         PR rtl-optimization/71779
2254         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
2255         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
2256         or if it was truncated.
2258         PR rtl-optimization/70903
2259         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
2261 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
2263         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
2264         accessing SSA_NAME_PTR_INFO.
2266 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
2268         PR 70677
2269         * common/config/avr/avr-common.c (avr_option_optimization_table)
2270         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
2272 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
2274         PR 55181
2275         * config/avr/avr.md: New pattern to work around do_store_flag
2276         generating shift instructions for bit extractions.
2278 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
2280         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
2281         BITMAP_ALLOC.
2282         (add_equivalence): Likewise.
2283         (get_value_range): Allocate value range with vrp_value_range_pool.
2284         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
2285         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
2287 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2289         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
2290         the default for the rs6000 port.
2292 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2294         PR middle-end/71876
2295         * calls.c (special_function_p): Remove special handling of
2296         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
2297         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
2298         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
2300 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
2302         PR middle-end/72778
2303         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
2304         Don't stop on regular insns.
2306 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
2308         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
2309         size to DImode boundary.
2310         (nvptx_propagate): Likewise.
2312 2016-08-03  Alan Modra  <amodra@gmail.com>
2314         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
2315         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
2316         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
2317         from -mefficient-unaligned-vector.  Note that this affects fp too.
2319 2016-08-03  Alan Modra  <amodra@gmail.com>
2321         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
2322         cost more.
2324 2016-08-03  Alan Modra  <amodra@gmail.com>
2326         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
2327         to a reg.  Localize vars.
2329 2016-08-03  Alan Modra  <amodra@gmail.com>
2331         * config/rs6000/rs6000.opt: Remove negatives from help strings
2332         and comments.
2334 2016-08-03  Alan Modra  <amodra@gmail.com>
2336         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2337         Delete duplicated code.
2339 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
2341         PR middle-end/72778
2342         * lra-spills.c (regno_in_use_p): New.
2343         (lra_final_code_change): Use it.
2345 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
2347         PR rtl-optimization/69847
2348         * lra-int.h (struct lra-reg): Use restore_rtx instead of
2349         restore_regno.
2350         (lra_rtx_hash): New.
2351         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
2352         of restore_regno.
2353         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
2354         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
2355         * lra-spills.c (lra_final_code_change): Don't delete insn when the
2356         next insn is USE with the same reg as the current insn source.
2357         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
2358         of restore_regno.
2359         (lra_constraints_init): Call initiate_invariants.
2360         (lra_constraints_finish): Call finish_invariants.
2361         (struct invariant, invariant_t, invariant_ptr_t): New.
2362         (const_invariant_ptr_t, invariants, invariants_pool): New.
2363         (invariant_table, invariant_hash, invariant_eq_p): New.
2364         (insert_invariant, initiate_invariants, finish_invariants): New.
2365         (clear_invariants, invalid_invariant_regs): New.
2366         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
2367         instead of restore_regno.
2368         (invariant_p, process_invariant_for_inheritance): New.
2369         (inherit_in_ebb): Implement invariant inheritance.
2370         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
2371         (remove_inheritance_pseudos): Implement undoing invariant
2372         inheritance.
2373         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
2374         instead of restore_regno.
2375         * lra-assigns.c (regno_live_length): New.
2376         (reload_pseudo_compare_func): Use regno_live_length.
2377         (assign_by_spills): Use restore_rtx instead of restore_regno.
2378         (lra_assign): Ditto.  Initiate regno_live_length.
2380 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
2382         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
2383         __builtin_aarch64_fmindf.
2385 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
2387         PR tree-optimization/34114
2388         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
2389         information for more control IVs.
2391 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
2393         PR tree-optimization/34114
2394         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
2395         PLUS_EXPR case.  Handle SSA_NAME case.
2397 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
2399         * config/aarch64/aarch64-simd-builtins.def
2400         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
2401         (__builtin_aarch64_fmaxdf): Likewise.
2402         (__builtin_aarch64_smin_nandf): Likewise.
2403         (__builtin_aarch64_smax_nandf): Likewise.
2404         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
2405         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
2406         (<fmaxmin><mode>3): ...this.
2407         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
2408         (vminnm_f64): Likewise.
2409         (vmin_f64): Likewise.
2410         (vmax_f64): Likewise.
2411         * config/aarch64/iterators.md (FMAXMIN): Merge with...
2412         (FMAXMIN_UNS): ...this.
2413         (fmaxmin): Merged with
2414         (fmaxmin_op): ...this...
2415         (maxmin_uns_op): ...in to this.
2417 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2419         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2420         Add support for vec_extract on vector float, vector int, vector
2421         short, and vector char vector types.
2422         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2423         vector float, vector int, vector short, and vector char
2424         optimizations on 64-bit ISA 2.07 systems for both constant and
2425         variable element numbers.
2426         (rs6000_split_vec_extract_var): Likewise.
2427         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
2428         Altivec registers on ISA 2.07 and above.
2429         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
2430         which never was matched due to the split occuring before register
2431         allocation (and the code would not have worked on little endian
2432         systems if it did match).  Allow extracts to go to the Altivec
2433         registers if ISA 2.07 (power8).  Change from using "" around the
2434         C++ code to using {}'s.
2435         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
2436         vec_extracts when the vector is in memory.
2437         (vsx_extract_v4sf_var): New insn to optimize vector float
2438         vec_extracts when the element number is variable on 64-bit ISA
2439         2.07 systems.
2440         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
2441         for 64-bit ISA 2.07 as well as ISA 3.0.
2442         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
2443         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
2444         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
2445         optimize vector int, vector short, and vector char vec_extracts
2446         when the vector is in memory.
2447         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
2448         optimize vector int, vector short, and vector char vec_extracts
2449         when the element number is variable.
2451 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2453         PR target/71948
2454         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
2455         does not overlap with other symbol flags.
2457 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
2459         * config/aarch64/aarch64.h (aarch64_frame):
2460         Remove padding0 and hardfp_offset.  Add locals_offset,
2461         initial_adjust, callee_adjust, callee_offset and final_adjust.
2462         * config/aarch64/aarch64.c (aarch64_layout_frame):
2463         Remove unused padding0 and hardfp_offset initializations.
2464         Choose frame layout and set frame variables accordingly.
2465         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
2466         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
2467         (aarch64_pop_regs): Likewise.
2468         (aarch64_expand_prologue): Remove all decision code, just emit
2469         prolog according to frame variables.
2470         (aarch64_expand_epilogue): Remove all decision code, just emit
2471         epilog according to frame variables.
2472         (aarch64_initial_elimination_offset): Use offset to local/arg area.
2474 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2476         PR target/72748
2477         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
2478         fix_debug_reg_uses after changing source register mode to
2479         V1TImode if source register is undefined.
2481 2015-08-01  Alan Hayward <alan.hayward@arm.com>
2483         PR tree-optimization/71818
2484         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
2485         with non invariant evolutions
2487 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2489         PR target/72767
2490         * config/avr/avr.md (length) [branch]: Correct insn length
2491         attribute for forward branches.
2493 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2495         * doc/extend.texi (AVR Built-in Functions): Document
2496         __builtin_avr_nops.
2497         * config/avr/builtins.def (NOPS): New.
2498         * config/avr/avr.c (avr_expand_nops): New static function.
2499         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
2501 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2503         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
2504         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
2505         addresses.
2507 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
2509         * config/aarch64/aarch64.c (vulcan_tunings): Update
2510         vulcan L1 cache_line_size.
2512 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2514         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
2515         function that takes a vector memory address, a hard register, an
2516         element number and a temporary base register, and recreates an
2517         address that points to the appropriate element within the vector.
2518         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
2519         (rs6000_split_vec_extract_var): Add support for the target of a
2520         vec_extract with variable element number being a scalar memory
2521         location.
2522         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
2523         swappable.
2524         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
2525         vsx_extract_<mode>_load insn with a new insn that optimizes
2526         storing either element to a memory location, using scratch
2527         registers to pick apart the vector and reconstruct the address.
2528         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
2529         (vsx_extract_<mode>_store): Rework alternatives to more correctly
2530         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
2531         store instruction.
2532         (vsx_extract_<mode>_var): Add support for extracting a variable
2533         element number from memory.
2535 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
2537         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
2538         when testing for compares against constants of the form 0xabab.
2540 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
2542         PR tree-optimization/57558
2543         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
2544         function.
2545         (vect_loop_versioning): Support versioning with niter assumptions.
2546         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
2547         (vect_get_loop_niters): New parameter.  Reimplement to support
2548         assumptions in loop niter info.
2549         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
2550         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
2551         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
2552         Support loop versioning for niters.
2553         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
2554         (vect_free_loop_info_assumptions): New function.
2555         (vectorize_loops): Free loop niter info for loops with flag
2556         LOOP_F_ASSUMPTIONS set if vectorization failed.
2557         * tree-vectorizer.h (struct _loop_vec_info): New field
2558         num_iters_assumptions.
2559         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
2560         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
2561         (LOOP_REQUIRES_VERSIONING): New macro.
2562         (vect_free_loop_info_assumptions): New decl.
2564 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
2566         * cfgloop.h (struct loop): New field constraints.
2567         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
2568         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
2569         functions.
2570         * cfgloop.c (alloc_loop): Initialize new field.
2571         * cfgloopmanip.c (copy_loop_info): Copy constraints.
2572         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
2573         Adjust niter analysis wrto loop constraints.
2574         * doc/loop.texi (@node Number of iterations): Add description for loop
2575         constraints.
2577 2016-07-29  Marek Polacek  <polacek@redhat.com>
2579         PR c/7652
2580         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
2581         (ix86_expand_round_builtin): Likewise.
2583 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
2584             Georg-Johann Lay  <avr@gjlay.de>
2586         PR rtl-optimization/71976
2587         * combine.c (get_last_value): Return 0 if the argument for which
2588         the function is called has a wider mode than the recorded value.
2590 2016-07-29  Marek Polacek  <polacek@redhat.com>
2592         PR c/7652
2593         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
2594         (altivec_expand_st_builtin): Likewise.
2596 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
2598         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
2599         introduced in r238381.
2601 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
2603         PR middle-end/68217
2604         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
2605         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
2607 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2609         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
2610         New declaration.
2611         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2612         Add support for vec_extract of vector double or vector long having
2613         a variable element number on 64-bit ISA 2.07 systems or newer.
2614         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
2615         Likewise.
2616         (rs6000_split_vec_extract_var): New function to split a
2617         vec_extract built-in function with variable element number.
2618         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
2619         swappable.
2620         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
2621         (UNSPEC_VSX_EXTRACT): Likewise.
2622         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
2623         direct move instructions to be generated on 64-bit ISA 2.07
2624         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
2625         instruction.
2626         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
2627         arguments for vec_extract variable element.
2628         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
2629         vec_extract with variable element on V2DFmode and V2DImode
2630         vectors.
2631         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
2632         -mupper-regs-df requirement, since it isn't needed.
2633         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
2634         do direct moves on 64-bit systems, which allows optimization of
2635         vec_extract on 64-bit ISA 2.07 systems and newer.
2637 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
2638 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
2640          * config/aarch64/aarch64.md
2641         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
2642         statement and type.
2643         (<optab>qihi2_aarch64): Likewise, and split into two.
2644         (extendqihi2_aarch64): New.
2645         (zero_extendqihi2_aarch64): New.
2646         * config/aarch64/iterators.md (ldrxt): Remove.
2647         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
2648         uxtb/uxth.
2650 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
2652         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
2654 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
2656         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
2657         (aarch64_push_reg): New function to push 1 or 2 registers.
2658         (aarch64_pop_reg): New function to pop 1 or 2 registers.
2659         (aarch64_expand_prologue): Use aarch64_push_regs.
2660         (aarch64_expand_epilogue): Use aarch64_pop_regs.
2662 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
2664         PR tree-optimization/71734
2665         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
2666         attribute instead of REF_LOOP and use it.
2667         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
2668         set it for Loops having non-zero safelen attribute.
2669         (ref_indep_loop_p): Pass zero as initial value for safelen.
2671 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
2673         PR middle-end/72657
2674         PR target/72683
2675         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
2676         call using chkp_gimple_call_builtin_p.
2677         (chkp_copy_bounds_for_assign): Likewise.
2679 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2681         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
2682         * config/arm/arm-protos.h (struct tune_params): Likewise.
2683         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
2684         (cortex_a9_sched_adjust_cost): Likewise.
2685         (fa726te_sched_adjust_cost): Likewise.
2686         (arm_adjust_cost): Likewise.
2687         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
2688         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
2689         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
2690         * config/i386/i386.c (ix86_adjust_cost): Likewise.
2691         * config/ia64/ia64.c: Likewise.
2692         * config/m68k/m68k.c: Likewise.
2693         * config/mep/mep.c (mep_adjust_cost): Likewise.
2694         * config/microblaze/microblaze.c (microblaze_adjust_cost):
2695         * Likewise.
2696         * config/mips/mips.c (mips_adjust_cost): Likewise.
2697         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
2698         * Likewise.
2699         * config/pa/pa.c (pa_adjust_cost): Likewise.
2700         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
2701         (rs6000_debug_adjust_cost): Likewise.
2702         * config/sh/sh.c (sh_adjust_cost): Likewise.
2703         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
2704         (hypersparc_adjust_cost): Likewise.
2705         (sparc_adjust_cost): Likewise.
2706         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
2707         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
2708         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
2709         * Likewise.
2710         * config/visium/visium.c (visium_adjust_cost): Likewise.
2711         * doc/tm.texi: Regenerate.
2712         * haifa-sched.c (dep_cost_1): Adjust.
2713         * target.def: Merge adjust_cost and adjust_cost_2.
2715 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2717         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
2719 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2721         * store-motion.c (struct st_expr): Make pattern_regs a vector.
2722         (extract_mentioned_regs): Append to a vector instead of
2723         returning a rtx_expr_list.
2724         (st_expr_entry): Adjust.
2725         (free_st_expr_entry): Likewise.
2726         (store_ops_ok): Likewise.
2727         (store_killed_in_insn): Likewise.
2728         (find_moveable_store): Likewise.
2730 2016-07-28  Martin Liska  <mliska@suse.cz>
2732         PR gcov-profile/68025
2733         * tree-profile.c (tree_profiling): Respect
2734         no_profile_instrument_function attribute.
2735         * doc/extend.texi: Document no_profile_instrument_function
2736         attribute.
2738 2016-07-28  Martin Liska  <mliska@suse.cz>
2740         PR rtl-optimization/70944
2741         * combine.c (make_compound_operation):
2742         Do not allow make_compound_operation for vector mode
2744 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
2746         PR middle-end/71994
2747         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
2748          before calling get_ops.
2750 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2752         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
2753         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
2754         (BITS_PER_UNIT_LOG): Remove.
2755         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
2756         * expr.c (expand_assignment): Likewise.
2757         * stor-layout.c (initialize_sizetypes): Likewise.
2759 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
2761         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
2762         signature of rs6000_expand_vector_extract so that the element
2763         number is a RTX instead of a constant integer.
2764         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
2765         Likewise.
2766         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
2767         (altivec_expand_vec_ext_builtin): Likewise.
2768         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
2769         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
2770         MFVSRLD instruction.
2772 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
2774         * input.c (get_pure_location): Move here from tree.c.
2775         (make_location): Likewise.  Add header comment.
2776         (selftest::test_accessing_ordinary_linemaps): Verify
2777         pure_location_p, make_location, get_location_from_adhoc_loc and
2778         get_range_from_loc.
2779         * input.h (get_pure_location): Move declaration here from tree.h.
2780         (get_finish): Likewise for inline function.
2781         (make_location): Likewise for declaration.
2782         * tree.c (get_pure_location): Move to input.c.
2783         (make_location): Likewise.
2784         * tree.h (get_pure_location): Move declaration to tree.h.
2785         (get_finish): Likewise for inline function.
2786         (make_location): Likewise for declaration.
2788 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2790         PR middle-end/71078
2791         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
2793 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
2795         * system.h (STATIC_ASSERT): Use static_assert if building
2796         with C++11 onwards.
2798 2016-07-27  Richard Biener  <rguenther@suse.de>
2800         PR tree-optimization/72517
2801         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2802         Revert change to not compute read-read dependences.
2804 2016-07-27  Richard Biener  <rguenther@suse.de>
2806         * predict.c (set_even_probabilities): Make nedges unsigned.
2808 2016-07-27  Martin Liska  <mliska@suse.cz>
2810         * predict.c (set_even_probabilities): Handle unlikely edges.
2811         (combine_predictions_for_bb): Likewise.
2813 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2815         PR target/71869
2816         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
2817         __float128 support when we don't have hardware support, so that
2818         the IEEE built-in functions like isgreater, first call __unordkf3
2819         to make sure neither operand is a NaN, and if both operands are
2820         ordered, do the normal comparison.
2822 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
2824         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
2825         name.
2826         (extract_code_and_val_from_cond_with_ops): Verify that name is
2827         either cond_op0 or cond_op1.
2829 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
2831         PR tree-optimization/18046
2832         * genmodes.c (emit_mode_size_inline): Emit an assert that
2833         verifies that mode is a valid array index.
2834         (emit_mode_nuinits_inline): Likewise.
2835         (emit_mode_inner_inline): Likewise.
2836         (emit_mode_unit_size_inline): Likewise.
2837         (emit_mode_unit_precision_inline): Likewise.
2838         * tree-vrp.c: Include params.h.
2839         (find_switch_asserts): Register edge assertions for the default
2840         label which correspond to the anti-ranges of each case label.
2841         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
2842         * doc/invoke.texi: Document it.
2844 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2846         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
2847         and unnecessary call to gimple_bb.
2849 2016-07-26  Richard Biener  <rguenther@suse.de>
2851         PR rtl-optimization/71984
2852         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
2853         for VOIDmode.
2855 2016-07-26  Richard Biener  <rguenther@suse.de>
2857         PR middle-end/72517
2858         * expmed.c (extract_bit_field_1): Constrain the vector mode
2859         with element size matching the extraction mode size when
2860         choosing a better vector mode to do the extraction from.
2862 2016-07-26  Richard Biener  <rguenther@suse.de>
2863             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2865         PR middle-end/70920
2866         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
2867         pattern.
2869 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2871         * tree-ssa-structalias.c (struct scc_info): Change types of
2872         members to auto_sbitmap and auto_vec.
2873         (scc_info::scc_info): New constructor.
2874         (scc_info::~scc_info): New destructor.
2875         (init_scc_info): Remove.
2876         (free_scc_info): Remove.
2877         (find_indirect_cycles): Adjust.
2878         (perform_var_substitution): Likewise.
2879         (free_var_substitution_info): Likewise.
2881 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2883         * tree-outof-ssa.c (struct elim_graph): Change type of members
2884         to auto_vec and auto_sbitmap.
2885         (elim_graph::elim_graph): New constructor.
2886         (delete_elim_graph): Remove.
2887         (expand_phi_nodes): Adjust.
2889 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2891         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
2892         (new_elim_graph): Adjust.
2893         (clear_elim_graph): Likewise.
2894         (delete_elim_graph): Likewise.
2895         (elim_graph_size): Likewise.
2896         (elim_graph_add_node): Likewise.
2897         (elim_graph_add_edge): Likewise.
2898         (elim_graph_remove_succ_edge): Likewise.
2899         (eliminate_name): Likewise.
2900         (eliminate_build): Likewise.
2901         (elim_forward): Likewise.
2902         (elim_unvisited_predecessor): Likewise.
2903         (elim_backward): Likewise.
2904         (elim_create): Likewise.
2905         (eliminate_phi): Likewise.
2906         (expand_phi_nodes): Likewise.
2908 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2910         * bt-load.c (compute_out): Use auto_sbitmap class.
2911         (link_btr_uses): Likewise.
2912         * cfganal.c (mark_dfs_back_edges): Likewise.
2913         (post_order_compute): Likewise.
2914         (inverted_post_order_compute): Likewise.
2915         (pre_and_rev_post_order_compute_fn): Likewise.
2916         (single_pred_before_succ_order): Likewise.
2917         * cfgexpand.c (pass_expand::execute): Likewise.
2918         * cfgloop.c (verify_loop_structure): Likewise.
2919         * cfgloopmanip.c (fix_bb_placements): Likewise.
2920         (remove_path): Likewise.
2921         (update_dominators_in_loop): Likewise.
2922         * cfgrtl.c (break_superblocks): Likewise.
2923         * ddg.c (check_sccs): Likewise.
2924         (create_ddg_all_sccs): Likewise.
2925         * df-core.c (df_worklist_dataflow): Likewise.
2926         * dse.c (dse_step3): Likewise.
2927         * except.c (eh_region_outermost): Likewise.
2928         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2929         * gcse.c (prune_expressions): Likewise.
2930         (prune_insertions_deletions): Likewise.
2931         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
2932         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2933         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
2934         * lcm.c (compute_earliest): Likewise.
2935         (compute_farthest): Likewise.
2936         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
2937         (unroll_loop_runtime_iterations): Likewise.
2938         (unroll_loop_stupid): Likewise.
2939         * lower-subreg.c (decompose_multiword_subregs): Likewise.
2940         * lra-lives.c: Likewise.
2941         * lra.c (lra): Likewise.
2942         * modulo-sched.c (schedule_reg_moves): Likewise.
2943         (optimize_sc): Likewise.
2944         (get_sched_window): Likewise.
2945         (sms_schedule_by_order): Likewise.
2946         (check_nodes_order): Likewise.
2947         (order_nodes_of_sccs): Likewise.
2948         (order_nodes_in_scc): Likewise.
2949         * recog.c (split_all_insns): Likewise.
2950         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
2951         * reload1.c (reload): Likewise.
2952         * sched-rgn.c (haifa_find_rgns): Likewise.
2953         (split_edges): Likewise.
2954         (compute_trg_info): Likewise.
2955         * sel-sched.c (init_seqno): Likewise.
2956         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2957         * tree-into-ssa.c (update_ssa): Likewise.
2958         * tree-ssa-live.c (live_worklist): Likewise.
2959         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
2960         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2961         * Likewise.
2962         (try_peel_loop): Likewise.
2963         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
2964         * Likewise.
2965         * tree-ssa-pre.c (compute_antic): Likewise.
2966         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
2967         * tree-stdarg.c (reachable_at_most_once): Likewise.
2968         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
2969         * var-tracking.c (vt_find_locations): Likewise.
2971 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2973         * sbitmap.h (auto_sbitmap): New class.
2975 2016-07-26  Alan Modra  <amodra@gmail.com>
2977         PR target/72103
2978         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
2979         sri->t_icode.
2981 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
2983         * input.c (selftest::temp_source_file::temp_source_file): Fix
2984         missing "%s" in fprintf.
2986 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
2988         PR middle-end/71732
2989         * cselib.c (cselib_process_insn): Invalidate argument slots for
2990         const/pure calls.
2992 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
2994         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
2995         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
2996         vmulxh_lane_f16, vmulxh_laneq_f16): New.
2998 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3000         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3001         * config/aarch64/aarch64.md (fma, fnma): Support HF.
3002         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
3004 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3006         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3007         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
3008         New.
3009         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
3010         (add<mode>3): Likewise.
3011         (sub<mode>3): Likewise.
3012         (mul<mode>3): Likewise.
3013         (div<mode>3): Likewise.
3014         (*div<mode>3): Likewise.
3015         (<fmaxmin><mode>3): Extend to HF.
3016         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
3017         (fabd<mode>3): Likewise.
3018         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
3019         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
3020         (aarch64_fmulx<mode>): Likewise.
3021         (aarch64_fac<optab><mode>): Likewise.
3022         (aarch64_frecps<mode>): Likewise.
3023         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
3024         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
3025         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
3026         (VSDQ_HSDI): Support HI.
3027         (fcvt_target, FCVT_TARGET): Likewise.
3028         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
3029         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
3030         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
3031         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
3032         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
3033         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
3034         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
3035         vrsqrtsh_f16): New.
3037 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3039         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
3040         * config/aarch64/aarch64-builtins.c (hi_UP): New.
3041         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3042         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
3043         mode.
3044         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
3045         (aarch64_cm<optab><mode>): Likewise.
3046         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
3047         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
3048         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3049         (sqrt<mode>2): Likewise.
3050         (*sqrt<mode>2): Likewise.
3051         (abs<mode>2): Likewise.
3052         (<optab><mode>hf2): New pattern for HF mode.
3053         (<optab>hihf2): Likewise.
3054         * config/aarch64/arm_neon.h: Include arm_fp16.h.
3055         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
3056         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
3057         Support HF mode.
3058         * config/aarch64/arm_fp16.h: New file.
3059         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
3060         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
3061         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
3062         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
3063         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
3064         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
3065         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
3066         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
3067         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
3068         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
3069         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
3070         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
3071         vsqrth_f16): New.
3073 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3075         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
3076         reduc_smin_scal_): Use VDQIF_F16.
3077         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
3078         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
3079         Use VHSDF.
3080         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
3081         * config/aarch64/iterators.md (VDQIF_F16): New.
3082         (vp): Support HF modes.
3083         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
3084         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
3086 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3088         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
3089         "*aarch64_mulx_elt_from_dup<mode>".
3090         (*aarch64_mul3_elt<mode>): Update schedule type.
3091         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
3092         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
3093         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
3094         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
3095         (f, fp): Support HF modes.
3096         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
3097         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
3098         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
3099         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
3100         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
3101         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
3103 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3105         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3106         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
3107         modes.
3108         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
3109         vfmsq_f16): New.
3111 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3113         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3114         * config/aarch64/aarch64-simd.md
3115         (aarch64_rsqrts<mode>): Extend to HF modes.
3116         (fabd<mode>3): Likewise.
3117         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
3118         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
3119         (aarch64_<maxmin_uns>p<mode>): Likewise.
3120         (<su><maxmin><mode>3): Likewise.
3121         (<maxmin_uns><mode>3): Likewise.
3122         (<fmaxmin><mode>3): Likewise.
3123         (aarch64_faddp<mode>): Likewise.
3124         (aarch64_fmulx<mode>): Likewise.
3125         (aarch64_frecps<mode>): Likewise.
3126         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
3127         (add<mode>3): Extend to HF modes.
3128         (sub<mode>3): Likewise.
3129         (mul<mode>3): Likewise.
3130         (div<mode>3): Likewise.
3131         (*div<mode>3): Likewise.
3132         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
3133         HF, V4HF and V8HF.
3134         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
3135         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
3136         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
3137         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
3138         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
3139         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
3140         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
3141         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
3142         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
3143         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
3144         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
3145         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
3146         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
3147         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
3149 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3151         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
3152         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3153         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
3154         (neg<mode>2): Likewise.
3155         (abs<mode>2): Likewise.
3156         (<frint_pattern><mode>2): Likewise.
3157         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
3158         (<optab><VDQF:mode><fcvt_target>2): Likewise.
3159         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
3160         (ftrunc<VDQF:mode>2): Likewise.
3161         (<optab><fcvt_target><VDQF:mode>2): Likewise.
3162         (sqrt<mode>2): Likewise.
3163         (*sqrt<mode>2): Likewise.
3164         (aarch64_frecpe<mode>): Likewise.
3165         (aarch64_cm<optab><mode>): Likewise.
3166         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
3167         HF, V4HF and V8HF.
3168         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
3169         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
3170         (stype): New.
3171         * config/aarch64/arm_neon.h (vdup_n_f16): New.
3172         (vdupq_n_f16): Likewise.
3173         (vld1_dup_f16): Use vdup_n_f16.
3174         (vld1q_dup_f16): Use vdupq_n_f16.
3175         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
3176         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
3177         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
3178         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
3179         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
3180         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
3181         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
3182         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
3183         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
3184         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
3185         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
3186         vsqrt_f16, vsqrtq_f16): New.
3188 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3190         * config/aarch64/aarch64-simd.md
3191         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
3192         (aarch64_ext<mode>): Likewise.
3193         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
3194         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
3195         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
3196         and V8HFmode.
3197         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
3198         float16x8_t.
3199         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
3200         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
3201         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
3202         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
3203         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
3204         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
3205         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
3206         New.
3207         (vmov_n_f16): Reimplement using vdup_n_f16.
3208         (vmovq_n_f16): Reimplement using vdupq_n_f16..
3210 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3212         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
3213         "frame_related_p".  Generate CFA annotation when it's necessary.
3214         (aarch64_expand_prologue): Use aarch64_add_constant.
3215         (aarch64_expand_epilogue): Likewise.
3216         (aarch64_output_mi_thunk): Pass "false" when calling
3217         aarch64_add_constant.
3219 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3221         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
3222         sequences.
3224 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3226         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
3227         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
3228         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
3229         (aarch64_build_constant): Delete.
3231 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
3233         Revert
3234         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
3236         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
3237         flag_toplevel_reorder.
3239 2016-07-25  Richard Biener  <rguenther@suse.de>
3241         * cgraph.c (cgraph_node::verify_node): Compare against builtin
3242         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
3243         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
3244         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
3245         (streamer_get_builtin_tree): Likewise.
3246         (streamer_write_builtin): Likewise.
3247         * lto-streamer.h (LTO_builtin_decl): Remove.
3248         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
3249         (lto_input_scc): Remove LTO_builtin_decl handling.
3250         (lto_input_tree_1): Liekwise.
3251         * lto-streamer-out.c (lto_output_tree_1): Remove special
3252         handling of builtins.
3253         (DFS::DFS): Likewise.
3254         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
3255         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
3256         assert.
3257         (streamer_write_builtin): Remove.
3259 2016-07-25  Martin Liska  <mliska@suse.cz>
3261         * lto-cgraph.c (input_symtab): Don't call get_working_sets
3262         if flag_auto_profile is set to true.
3264 2016-07-25  Martin Liska  <mliska@suse.cz>
3266         PR gcov-profile/71868
3267         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
3268         have a function with multiple latches, count them all.
3270 2016-07-25  Martin Liska  <mliska@suse.cz>
3272         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
3274 2016-07-25  Martin Liska  <mliska@suse.cz>
3276         PR tree-optimization/71987
3277         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
3278         just for SSA_NAMEs. Fix GNU coding style.
3280 2016-07-25  Martin Liska  <mliska@suse.cz>
3282         PR gcov-profile/64874
3283         * gcov-io.h: Update command about file format.
3284         * gcov-iov.c (main): Adapt the numbering scheme.
3286 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3288         PR middle-end/66726
3289         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
3290         whose result is used in PHI.
3291         (final_range_test_p): Likewise.
3292         (maybe_optimize_range_tests): Likewise.
3294 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3296         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3297         Reformat two multi-line strings.
3299 2016-07-22 Martin Sebor  <msebor@redhat.com>
3301         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
3303 2016-07-22 Martin Sebor  <msebor@redhat.com>
3305         PR c/71560
3306         * doc/extend.texi (Compound Literals): Correct and clarify.
3307         (Cast to Union): Same.
3309 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3311         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3312         comments to explain why certain error messages make mention of
3313         undocumented options.
3314         (rs6000_invalid_builtin): Change error messages to replace mention
3315         of undocumented options with mention of the -mcpu=power9 option
3316         that enables those undocumented options.
3317         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
3318         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
3319         definition of this macro to correct an existing error.
3320         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
3321         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
3322         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
3323         descriptions of built-in functions so that they depend on
3324         -mcpu=power9 instead of on the corresponding undocumented flags.
3325         * doc/invoke.texi (Option Summary):  Remove all mention of newly
3326         undocumented flags.
3327         (IBM RS/6000 and PowerPC Options): Likewise.
3328         * doc/md.texi (Constraints for Particuliar Machines): Remove all
3329         mention of newly undocumented flags.
3331 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
3333         * ipa-cp.c (determine_versionability): Do not create constprop clones,
3334         when target_clones attribute is set.
3336 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
3338         * common.opt (funsafe-loop-optimizations): Mark ignore.
3339         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
3340         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
3341         related code.
3342         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
3343         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
3345 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
3347         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
3348         Parameter.
3349         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
3350         Parameter.
3351         (number_of_iterations_exit): Warn missed loop optimization for
3352         possible infinite loops.
3354 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
3356         PR target/71216
3357         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
3358         when to emit a ".machine" pseudo-op.
3360 2016-07-22  Martin Liska  <mliska@suse.cz>
3362         PR gcov-profile/69028
3363         PR gcov-profile/62047
3364         * coverage.c (coverage_compute_lineno_checksum): Do not
3365         calculate checksum for fns w/o xloc.file.
3366         (coverage_compute_profile_id): Likewise.
3368 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
3370         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
3371         (avr_secondary_reload): ...and implementation.
3372         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
3373         * config/avr/avr.md (reload_in<mode>): Remove insns.
3374         (adjust_len) [lpm]: Remove insn attribute value.
3375         * config/avr/predicates.md (flash_operand): Remove insn predicate.
3377 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3379         PR middle-end/71876
3380         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
3381         attribute.
3382         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
3383         * calls.c (special_function_p): Remove the special handling of the
3384         "__builtin_" prefix.
3386 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3388         PR middle-end/71876
3389         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
3390         if STMT may be an alloca call.
3391         (gimple_alloca_call_p, alloca_call_p): Return only true for the
3392         builtin alloca call.
3393         * calls.h (gimple_maybe_alloca_call_p): New function.
3394         * tree-inline.c (inline_forbidden_p_stmt): Use
3395         gimple_maybe_alloca_call_p here.
3397 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
3399         * spellcheck-tree.c (best_macro_match::best_macro_match):
3400         Explictly specify the template arguments when invoking the base
3401         class constructor, to help older C++ compilers.
3403 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
3405         PR sanitizer/71953
3406         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
3407         before builtin_decl_implicit.
3409 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
3411         * optabs.c (emit_condiitonal_move): Short circuit for identical
3412         sources.
3414 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
3416         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
3417         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
3418         (noce_conversion_profitable_p): New.
3419         (noce_try_store_flag_constants): Use it.
3420         (noce_try_addcc): Likewise.
3421         (noce_try_store_flag_mask): Likewise.
3422         (noce_try_cmove): Likewise.
3423         (noce_try_cmove_arith): Likewise.
3424         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
3425         overwriting it.
3426         (noce_convert_multiple_sets): Move cost model to here, from...
3427         (bb_ok_for_noce_convert_multiple_sets) ...here.
3428         (noce_process_if_block): Update calls for above changes.
3429         (noce_find_if_block): Record new noce_if_info parameters.
3431 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
3433         * target.def (max_noce_ifcvt_seq_cost): New.
3434         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
3435         * doc/tm.texi: Regenerate.
3436         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
3437         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
3438         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
3439         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
3440         * doc/invoke.texi: Document new params.
3442 2016-07-21  Richard Biener  <rguenther@suse.de>
3444         PR tree-optimization/71947
3445         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
3446         ranges have useful limit_vr information.
3448 2016-07-21  Richard Biener  <rguenther@suse.de>
3450         * function-tests.c (build_trivial_generic_function): Set
3451         BLOCK_SUPERCONTEXT of DECL_INITIAL.
3452         * omp-low.c (create_omp_child_function): Likewise.
3453         (grid_expand_target_grid_body): Likewise.
3454         * cgraphunit.c (init_lowered_empty_function): Likewise.
3455         (cgraph_node::expand_thunk): Likewise.
3456         * tree-parloops.c (create_loop_fn): Likewise.
3457         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
3459 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3461         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
3462         in comment.
3464 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
3466         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
3467         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
3468         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
3469         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
3470         values for insn attribute.
3471         * config/avr/avr.c (avr_out_insert_notbit): New function.
3472         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
3473         ADJUST_LEN_INSV_NOTBIT_0/_7.
3474         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
3476 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
3478         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
3479         (chrec_convert_1, chrec_convert): Ditto.
3480         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
3481         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
3482         * tree-vrp.c (adjust_range_with_scev): Ditto.
3483         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
3484         (scev_var_range_cant_overflow): New function.
3485         (scev_probably_wraps_p): New parameter.  Call above function.
3486         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
3488 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
3490         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
3491         by removing computation of may_be_zero.
3493 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
3495         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
3497 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
3499         Improving concepts performance and diagnostics.
3500         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
3501         for constraint satisfaction and subsumption.
3502         * timevar.h (auto_timevar): New constructor that matches the push/pop
3503         pattern of usage in pt.c.
3505 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
3507         * hwint.h (HOST_WIDE_INT_0): New define.
3508         (HOST_WIDE_INT_0U): Ditto.
3509         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
3510         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
3511         * simplify-rtx.c: Ditto.
3512         * tree-object-size.c: Ditto.
3514 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3516         * config/s390/s390.c (s390_encode_section_info): Remove mode size
3517         check.
3519 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
3521         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
3522         * combine.c: Use HOST_WIDE_INT_M1U instead of
3523         ~(unsigned HOST_WIDE_INT) 0.
3524         * double-int.h: Ditto.
3525         * dse.c: Ditto.
3526         * dwarf2asm.c:Ditto.
3527         * expmed.c: Ditto.
3528         * genmodes.c: Ditto.
3529         * match.pd: Ditto.
3530         * read-rtl.c: Ditto.
3531         * tree-ssa-loop-ivopts.c: Ditto.
3532         * tree-ssa-loop-prefetch.c: Ditto.
3533         * tree-vect-generic.c: Ditto.
3534         * tree-vect-patterns.c: Ditto.
3535         * tree.c: Ditto.
3537 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3539         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
3540         constant addresses outside [0,0xc0] into a register.
3541         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
3542         cases where the base address register is unused after.
3543         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
3544         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
3545         (avr_out_store_psi_reg_disp_tiny): Same.
3547 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3549         Implement attribute progmem on reduced Tiny cores by adding
3550         flash offset 0x4000 to respective symbols.
3552         PR target/71948
3553         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
3554         documentation how it works on reduced Tiny cores.
3555         (AVR Named Address Spaces): No support for reduced Tiny.
3556         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
3557         (avr_address_tiny_pm_p): New static function.
3558         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
3559         if the address is in progmem.
3560         (avr_assemble_integer): Same.
3561         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
3562         for symbol_ref in progmem.
3563         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
3564         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
3565         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
3567 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
3569         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
3570         * configure: Regenerate.
3571         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
3572         (USE_THIN_ARCHIVES): New variable.
3573         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
3574         this archive as a thin archive.
3576 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
3578         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
3579         same location as last time, don't skip if we have fix-it hints.
3580         Clarify the skipping logic by converting it from one "if" clause
3581         to repeated "if" clauses.
3582         * spellcheck-tree.c: Include "cpplib.h".
3583         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
3584         (best_macro_match::best_macro_match): New constructor.
3585         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
3586         Move here from c/c-decl.c.
3587         (class best_macro_match): Move here from c/c-decl.c, converting
3588         from a typedef to a subclass, gaining a ctor.
3590 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3592         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
3593         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
3594         define...
3595         (avr_addr_space_diagnose_usage): ...and implementation.
3596         (avr_addr_space_supported_p): New function.
3597         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
3598         report bad address space usage if that space is supported.
3599         (avr_insert_attributes): Same.  No more complain about unsupported
3600         address spaces.
3601         * config/avr/avr-c.c (tm_p.h): Include it.
3602         (avr_cpu_cpp_builtins): Only define addr-space related built-in
3603         macro if avr_addr_space_supported_p.
3605 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
3607         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
3608         flag_toplevel_reorder.
3610 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
3612         * gcc-rich-location.c
3613         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
3614         a const char *.
3615         * gcc-rich-location.h
3616         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
3618 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
3620         * target.def (addr_space): Add new diagnose_usage to hook vector.
3621         * targhooks.c (default_addr_space_diagnose_usage): Add default
3622         implementation and...
3623         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
3624         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
3625         is some address space, call targetm.addr_space.diagnose_usage.
3626         * doc/tm.texi.in (Named Address Spaces): Add anchor for
3627         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
3628         * doc/tm.texi: Regenerate.
3630 2016-07-20  Martin Liska  <mliska@suse.cz>
3632         PR middle-end/71898
3633         * graphite-isl-ast-to-gimple.c (later_of_the_two):
3634         Properly handly PHI stmts.
3636 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
3638         PR tree-optimization/71503
3639         PR tree-optimization/71683
3640         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
3641         and break.
3643 2016-07-20  Martin Liska  <mliska@suse.cz>
3645         * doc/invoke.texi (-fipa-ra): Document when the option is
3646         disabled. Fix a typo.
3648 2016-07-20  Martin Liska  <mliska@suse.cz>
3650         * Makefile.in: Include fibonacci_heap.c
3651         * fibonacci_heap.c: New file.
3652         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
3653         (fibonacci_heap::union_with): Fix deletion of the second heap.
3654         * selftest-run-tests.c (selftest::run_tests): Incorporate
3655         fibonacci heap tests.
3656         * selftest.h: Declare fibonacci_heap_c_tests.
3658 2016-07-20  Martin Liska  <mliska@suse.cz>
3660         * selftest-run-tests.c (selftest::run_tests): New function.
3661         * selftest.h (sreal_c_tests): Declare.
3662         * sreal.c (sreal_verify_basics): New function.
3663         (verify_aritmetics): Likewise.
3664         (sreal_verify_arithmetics): Likewise.
3665         (verify_shifting): Likewise.
3666         (sreal_verify_shifting): Likewise.
3667         (void sreal_c_tests): Likewise.
3669 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
3671         PR rtl-optimization/71916
3672         * cfgrtl.c (contains_no_active_insn_p): Return false also for
3673         bb which have a single succ fake edge.
3675 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
3677         PR debug/71855
3678         * dwarf2out.c (gen_subprogram_die): Only call
3679         gen_unspecified_parameters_die while dumping early dwarf.
3681 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
3683         PR middle-end/71874
3684         * gimple-fold.c (fold_builtin_memory_op): Use
3685         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
3687 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
3689         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
3690         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
3691         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
3692         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
3693         * combine.c: Ditto.
3694         * cse.c: Ditto.
3695         * dojump.c: Ditto.
3696         * double-int.c: Ditto.
3697         * dse.c: Ditto.
3698         * dwarf2out.c: Ditto.
3699         * expmed.c: Ditto.
3700         * expr.c: Ditto.
3701         * fold-const.c: Ditto.
3702         * function.c: Ditto.
3703         * fwprop.c: Ditto.
3704         * genmodes.c: Ditto.
3705         * hwint.c: Ditto.
3706         * hwint.h: Ditto.
3707         * ifcvt.c: Ditto.
3708         * loop-doloop.c: Ditto.
3709         * loop-invariant.c: Ditto.
3710         * loop-iv.c: Ditto.
3711         * match.pd: Ditto.
3712         * optabs.c: Ditto.
3713         * real.c: Ditto.
3714         * reload.c: Ditto.
3715         * rtlanal.c: Ditto.
3716         * simplify-rtx.c: Ditto.
3717         * stor-layout.c: Ditto.
3718         * toplev.c: Ditto.
3719         * tree-ssa-loop-ivopts.c: Ditto.
3720         * tree-vect-generic.c: Ditto.
3721         * tree-vect-patterns.c: Ditto.
3722         * tree.c: Ditto.
3723         * tree.h: Ditto.
3724         * ubsan.c: Ditto.
3725         * varasm.c: Ditto.
3726         * wide-int-print.cc: Ditto.
3727         * wide-int.cc: Ditto.
3728         * wide-int.h: Ditto.
3730 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
3732         * selftest.c (selftest::assert_streq): Handle NULL values of
3733         val_actual and val_expected.
3735 2016-07-19  Martin Jambor  <mjambor@suse.cz>
3737         PR fortran/71688
3738         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
3739         rather than cgraph_create_node to get a call graph node.
3741 2016-07-19  Richard Biener  <rguenther@suse.de>
3743         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
3744         handle all tcc_constant bases and valueize SSA names.
3745         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
3746         tcc_constant bases.
3748 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
3750         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
3751         the flags of the exit block and bb2, not just the entry block.
3753 2016-07-19  Richard Biener  <rguenther@suse.de>
3755         PR tree-optimization/71901
3756         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3757         align member, group stuff with the bitfield.
3758         (vn_ref_op_align_unit): New inline.
3759         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
3760         record element alignment and operand 3 unchanged.
3761         (ao_ref_init_from_vn_reference): Adjust.
3762         (valueize_refs_1): Likewise.
3763         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3765 2016-07-19  Richard Biener  <rguenther@suse.de>
3767         PR tree-optimization/71908
3768         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
3769         symbolic constants in a more reliable way.
3771 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3773         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
3774         comment.
3775         (vect_update_inits_of_drs): Likewise.
3776         (vect_create_cond_for_alias_checks): Likewise.
3777         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
3779 2016-07-19  Richard Biener  <rguenther@suse.de>
3781         PR lto/71907
3782         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
3783         with an abstract origin that is not an inlined function outer
3784         scope add a self-reference as abstract origin.
3785         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
3787 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3789         PR target/71493
3790         * config/rs6000/rs6000.c (rs6000_function_value): Fix
3791         unintentional System V.4 structure return breakage for structures
3792         with a single floating point element.
3794 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
3796         PR tree-optimization/71734
3797         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
3798         contains REF, use it to check safelen, assume that safelen value
3799         must be greater 1, fix style.
3800         (ref_indep_loop_p_2): Add REF_LOOP argument.
3801         (ref_indep_loop_p): Pass LOOP as additional argument to
3802         ref_indep_loop_p_2.
3804 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3806         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
3807         allocation in the prologue.
3808         * explow.c (get_dynamic_stack_base): New function to return an address
3809         expression for the dynamic stack base.
3810         (get_dynamic_stack_size): New function to do the required dynamic stack
3811         space size calculations.
3812         (allocate_dynamic_stack_space): Use new functions.
3813         (align_dynamic_address): Move some code from
3814         allocate_dynamic_stack_space to new function.
3815         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
3817 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3819         * config/s390/s390.c (s390_encode_section_info): Always set
3820         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
3821         found.
3823 2016-07-18  Richard Biener  <rguenther@suse.de>
3825         PR tree-optimization/71893
3826         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
3827         for sizetype cast added by array_ref_element_size.
3828         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3830 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
3832         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
3833         register parameters.  Remove code to initialize argument pointer
3834         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
3835         using a pc-relative branch.  Cleanup conditional code.
3836         * config/pa/pa.md (call_mcount): New expander.
3837         (call_mcount_nonpic): New insn.
3838         (call_mcount_pic): New insn and split.
3839         (call_mcount_pic_post_reload): New insn.
3840         (call_mcount_64bit): New insn and split.
3841         (call_mcount_64bit_post_reload): New insn.
3843 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
3845         * config/avr/predicates.md (const_m255_to_m1_operand): New.
3846         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
3847         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
3848         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
3849         (*usum_widenqihi3, *udiff_widenqihi3)
3850         (*addhi3_zero_extend.const): New combiner insns.
3851         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
3852         just 1 bit is affected.
3853         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
3854         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
3856 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
3858         * omp-low.c (lower_omp_target): Mark data clauses with
3859         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
3860         zero-length subarrays.
3862 2016-07-15  Richard Biener  <rguenther@suse.de>
3864         PR tree-optimization/71881
3865         * tree-loop-distribution.c (destroy_loop): Remove blocks in
3866         reverse DOM order to make debug temp generation happy.
3868 2016-07-15  Richard Biener  <rguenther@suse.de>
3870         PR tree-optimization/71887
3871         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
3872         verify it is not zero for division / modulo handling.
3873         (value_replacement): Adjust.
3875 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
3876             Julian Brown  <julian@codesourcery.com>
3878         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
3879         * config/aarch64/aarch64-cost-tables.h
3880         (vulcan_extra_costs): New variable.
3881         * config/aarch64/aarch64.c
3882         (vulcan_addrcost_table): Likewise.
3883         (vulcan_regmove_cost): Likewise.
3884         (vulcan_vector_cost): Likewise.
3885         (vulcan_branch_cost): Likewise.
3886         (vulcan_tunings): Likewise.
3888 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
3890         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
3891         (output_in_order): Loop over undefined variables too.  Output them
3892         via assemble_undefined_decl.  Skip variables that correspond to hard
3893         registers or have value-exprs.
3894         * varpool.c (symbol_table::output_variables): Handle undefined
3895         variables together with defined ones.
3897 2016-07-15  Richard Biener  <rguenther@suse.de>
3899         * tree-ssa-pre.c (get_representative_for): Make sure to return
3900         the value number of SSA names.
3901         (phi_translate_1): get_representative_for cannot return NULL.
3902         (do_pre_regular_insertion): Remove redundant call to
3903         fully_constant_expression.
3904         (do_pre_partial_partial_insertion): Likewise.
3906 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
3908         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
3909         (derive_simple_iv_with_niters): New function.
3910         (simple_iv): Rewrite using simple_iv_with_niters.
3911         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
3912         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
3913         function.
3914         (number_of_iterations_exit): Rewrite using above function.
3915         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
3916         Decl.
3918 2016-07-15  Richard Biener  <rguenther@suse.de>
3920         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
3921         vec_construct cost.
3923 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
3925         PR tree-optimization/71872
3926         * tree-data-ref.c (get_references_in_stmt): Ignore references
3927         with is_gimple_constant get_base_address.
3929 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3931         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
3932         (TARGET_HAVE_LDACQD): New macro.
3933         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
3934         than TARGET_HAVE_LDACQ.
3935         (arm_load_acquire_exclusivedi): Likewise.
3936         (arm_store_release_exclusivedi): Likewise.
3938 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3940         PR rtl-optimization/71878
3941         * lra-constraints.c (match_reload): Pass information about other
3942         output operands.  Create new unique register value if matching input
3943         operand shares same register value as output operand being considered.
3944         (curr_insn_transform): Record output operands already processed.
3946 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3948         PR target/65951
3949         PR tree-optimization/70923
3950         * tree-vect-patterns.c: Include mult-synthesis.h.
3951         (target_supports_mult_synth_alg): New function.
3952         (synth_lshift_by_additions): Likewise.
3953         (apply_binop_and_append_stmt): Likewise.
3954         (vect_synth_mult_by_constant): Likewise.
3955         (target_has_vecop_for_code): Likewise.
3956         (vect_recog_mult_pattern): Use above functions to synthesize vector
3957         multiplication by integer constants.
3959 2016-07-14  Alan Modra  <amodra@gmail.com>
3961         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
3962         gpr alternatives.  Correct '*' placement on Y,r alternative.
3963         Add '*' on operand 1 of r,r alternative.
3965 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3967         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
3968         * expmed.h: ... Here.
3970 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
3972         * gimple.h (stmt_can_terminate_bb_p): New function.
3973         * tree-cfg.c (need_fake_edge_p): Rename to ...
3974         (stmt_can_terminate_bb_p): ... this; return true if stmt can
3975         throw external; handle const and pure calls.
3976         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
3978 2016-07-14  Richard Biener  <rguenther@suse.de>
3980         PR tree-optimization/71866
3981         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
3982         (do_hoist_insertion): Avoid endless recursion when we
3983         didn't insert anything because we managed to simplify
3984         things down to a constant or SSA name.
3985         (fully_constant_expression): Re-write in terms of ...
3986         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
3987         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
3988         vn_nary_build_or_lookup_1.
3989         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
3990         (vn_nary_build_or_lookup): ... this which now wraps it.
3992 2016-07-14  Alan Modra  <amodra@gmail.com>
3994         PR target/71733
3995         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
3996         with p9_vector override before power9-dform override.
3998 2016-07-13  Andi Kleen  <ak@linux.intel.com>
4000         * value-prof.c (gimple_value_profile_transformations): Don't run
4001         when auto_profile is on.
4003 2016-07-13  Andi Kleen  <ak@linux.intel.com>
4005         * auto-profile.c (update_inlined_ind_target,
4006         afdo_indirect_call): Print information to dump file.
4008 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
4010         * genrecog.c (special_predicate_operand_p): New function.
4011         (predicate_name): Move function.
4012         (validate_pattern): Don't warn about missing mode for all
4013         define_special_predicate predicates.
4015 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
4017         * tree-vect-data-refs.c (vect_no_alias_p): New function.
4018         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
4019         resolve alias checks which are known at compilation time.
4020         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
4021         alias checks are resolved.  Move dump info for too many runtime
4022         alias checks to here...
4023         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
4025 2016-07-13  Richard Biener  <rguenther@suse.de>
4027         PR tree-optimization/24574
4028         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
4029         position and add shift, rotate, divison and modulo support
4030         for left zero.
4031         (value_replacement): Pass in argument position to absorbing_element_p.
4033 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4035         PR ipa/71633
4036         * ipa-inline-transform.c (inline_call): Support
4037         instrumented thunks.
4039 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4041         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
4042         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
4043         divide feature.
4044         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
4045         Baseline.  Make initial alternative TARGET_32BIT only.
4046         (udivsi3): Likewise.
4047         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
4048         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
4049         target.
4051 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4053         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
4054         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
4055         availability with TARGET_HAVE_MOVT.
4056         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
4057         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
4058         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
4059         UINTVAL.
4060         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
4061         extra instruction if MOVW is available.  Use a cost variable
4062         incremented by COSTS_N_INSNS (1) when the condition match rather than
4063         returning an arithmetic expression based on COSTS_N_INSNS.  Make
4064         constant with bottom half word zero cost 2 instruction if MOVW is
4065         available.
4066         * config/arm/arm.md (define_attr "arch"): Add v8mb.
4067         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
4068         target is ARMv8-M Baseline.
4069         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
4070         (arm_movtas_ze): Likewise.
4071         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
4072         alternative for constants satisfying j constraint.
4073         (thumb1_movsi_insn): Likewise.
4074         (movsi splitter for K alternative): Tighten condition to not trigger
4075         if movt is available and j constraint is satisfied.
4076         (Pe immediate splitter): Likewise.
4077         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
4078         constant fitting in an halfword to use MOVW.
4079         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
4080         effective target.
4082 2016-07-13  Richard Biener  <rguenther@suse.de>
4084         PR middle-end/71104
4085         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
4086         gimplifying the LHS.  Make sure to gimplify a returning twice
4087         call LHS without using SSA names.
4089 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4091         * tree-data-ref.c (find_data_references_in_stmt): Remove
4092         unnecessary call to vec::release.
4093         (graphite_find_data_references_in_stmt): Likewise.
4094         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
4095         * tree-vect-stmts.c (vectorizable_condition): Likewise.
4097 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4099         * cfgexpand.c (expand_used_vars): Make the type of a local
4100         variable auto_vec.
4101         * genmatch.c (lower_for): Likewise.
4102         * haifa-sched.c (haifa_sched_init): Likewise.
4103         (add_to_speculative_block): Likewise.
4104         (create_check_block_twin): Likewise.
4105         * predict.c (handle_missing_profiles): Likewise.
4106         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
4107         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
4108         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
4109         Likewise.
4110         (maybe_lower_iteration_bound): Likewise.
4111         * tree-ssa-sccvn.c (DFS): Likewise.
4112         * tree-stdarg.c (reachable_at_most_once): Likewise.
4113         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
4114         (vectorizable_store): Likewise.
4116 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4118         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
4119         (sccvn_dom_walker): make cond_stack an auto_vec.
4121 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4123         * ree.c (struct ext_state): Make type of members auto_vec.
4124         (find_and_remove_re): Adjust.
4126 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4128         * cfgexpand.c (struct stack_vars_data): Make type of fields
4129         auto_vec.
4130         (expand_used_vars): Adjust.
4132 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4134         * ipa.c (record_cdtor_fn): Adjust.
4135         (build_cdtor_fns): Likewise.
4136         (ipa_cdtor_merge): Make static_ctors and static_dtors local
4137         variables.
4139 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4141         * genextract.c (struct accum_extract): Add constructor and make
4142         members auto_vec.
4143         (gen_insn): Adjust.
4145 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4147         * tree.c (struct free_lang_data_d): Add constructor and change
4148         types of members to ones that automatically manage resources.
4149         (fld_worklist_push): Adjust.
4150         (find_decls_types): Likewise.
4151         (find_decls_types_in_eh_region): Likewise.
4152         (free_lang_data_in_cgraph): Stop manually creating and
4153         destroying members of free_lang_data_d.
4155 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
4157         PR rtl-optimization/68961
4158         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
4159         peephole variant.  Use sse_reg_operand predicates.
4161 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
4163         * config/i386/predicates.md (x86_64_immediate_operand)
4164         <case CONST_INT>: Remove unneeded truncation to DImode.
4165         <case CONST>: Ditto.
4166         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
4168 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4170         PR target/71805
4171         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
4172         The xxperm and xxpermr instructions require that the 2nd input
4173         operand overlap with the output operand, and not the 1st.
4174         (altivec_vperm_v8hiv16qi): Likewise.
4175         (altivec_vperm_<mode>_uns_internal): Likewise.
4176         (altivec_vpermr_<mode>_internal): Likewise.
4177         (vperm_v8hiv4si): Likewise.
4178         (vperm_v16qiv8hi): Likewise.
4180 2016-07-12  Nathan Sidwell  <nathan@acm.org>
4182         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
4183         when -mno-pic-data-is-text-relative is in effect, by default.
4184         * doc/invoke.texi (mpic-data-is-text-relative): Document new
4185         behavior and clarify.
4187 2016-07-12  Martin Liska  <mliska@suse.cz>
4189         * params.def: Add avg-loop niter.
4190         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
4191         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4192         * doc/invoke.texi: Document the new parameter.
4194 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4196         PR middle-end/71700
4197         * expr.c (store_constructor): Mask sign-extended bits when widening
4198         sub-word constructor element at the start of a word.
4200 2016-07-12  Martin Liska  <mliska@suse.cz>
4202         * Makefile.in: Append rule for params-options.h.
4203         * params-options.h: New file.
4205 2016-07-12  Martin Liska  <mliska@suse.cz>
4207         * ira-build.c (mark_loops_for_removal): Properly iterate
4208         loops.
4210 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
4211             Richard Biener  <rguenther@suse.de>
4213         PR tree-optimization/23286
4214         PR tree-optimization/70159
4215         * doc/invoke.texi: Document -fcode-hoisting.
4216         * common.opt (fcode-hoisting): New flag.
4217         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
4218         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
4219         (do_regular_insertion): Rename to ...
4220         (do_pre_regular_insertion): ... this and amend general comments
4221         on insertion strathegy.
4222         (do_partial_partial_insertion): Rename to ...
4223         (do_pre_partial_partial_insertion): ... this.
4224         (do_hoist_insertion): New function.
4225         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
4226         and call do_hoist_insertion properly.
4227         (insert): Adjust.
4228         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
4229         (pass_pre::execute): Register hoist_insert stats.
4231 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
4233         PR middle-end/71716
4234         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
4235         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
4236         is different from mode's bitsize.  Small cleanup.
4238 2016-07-12  Richard Biener  <rguenther@suse.de>
4240         PR rtl-optimization/68961
4241         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
4242         to simplify to a non-constant.
4244 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
4246         PR middle-end/71758
4247         * omp-low.c (expand_omp_target): Gimplify device.
4249         PR tree-optimization/71823
4250         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
4251         to get vec_oprnds2 from op2.
4253 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
4255         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
4256         Hoist common subexpressions.
4257         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
4259 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
4261         PR target/71800
4262         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
4263         prevent generation of 'stxsiwx' on pre Power8 hardware.
4265 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
4267         * input.c: Include cpplib.h.
4268         (selftest::temp_source_file): New class.
4269         (selftest::temp_source_file::temp_source_file): New ctor.
4270         (selftest::temp_source_file::~temp_source_file): New dtor.
4271         (selftest::should_have_column_data_p): New function.
4272         (selftest::test_should_have_column_data_p): New function.
4273         (selftest::temp_line_table): New class.
4274         (selftest::temp_line_table::temp_line_table): New ctor.
4275         (selftest::temp_line_table::~temp_line_table): New dtor.
4276         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
4277         it to create a temp_line_table.
4278         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
4279         locations that are known to have column data.
4280         (selftest::line_table_case): New struct.
4281         (selftest::test_reading_source_line): Move tempfile handling
4282         to class temp_source_file.
4283         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
4284         (selftest::assert_token_loc_eq): New function.
4285         (ASSERT_TOKEN_LOC_EQ): New macro.
4286         (selftest::test_lexer): New function.
4287         (selftest::boundary_locations): New array.
4288         (selftest::input_c_tests): Call test_should_have_column_data_p.
4289         Loop over a test matrix of interesting values of location and
4290         default_range_bits, calling test_lexer on each case in the matrix.
4291         Move call to test_accessing_ordinary_linemaps into the matrix.
4292         * selftest.h (ASSERT_EQ): Reimplement in terms of...
4293         (ASSERT_EQ_AT): New macro.
4295 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
4297         PR target/71801
4298         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
4299         Don't convert TImode in debug insn.
4301 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4303         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
4304         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
4305         (tree_type_common::lang_flag_7): New.
4306         (tree_type_common::spare): Reduce size.
4307         * tree.h (TYPE_ALIGN_OK): Remove.
4308         (TYPE_LANG_FLAG_7): New.
4309         (get_inner_reference): Adjust header.
4310         * print-tree.c (print_node): Adjust.
4311         * expr.c (get_inner_reference): Remove parameter keep_aligning.
4312         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
4313         calls to get_inner_reference.
4314         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
4315         handling of TYPE_ALIGN_OK.
4316         * builtins.c (get_object_alignment_2): Adjust call to
4317         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
4318         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
4319         TYPE_ALIGN_OK.
4320         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
4321         * cfgexpand.c (expand_debug_expr): Likewise.
4322         * dbxout.c (dbxout_expand_expr): Likewise.
4323         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
4324         loc_list_from_tree, fortran_common): Likewise.
4325         * fold-const.c (optimize_bit_field_compare,
4326         decode_field_reference, fold_unary_loc, fold_comparison,
4327         split_address_to_core_and_offset): Likewise.
4328         * gimple-laddress.c (execute): Likewise.
4329         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
4330         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
4331         * hsa-gen.c (gen_hsa_addr): Likewise.
4332         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
4333         * tsan.c (instrument_expr): Likewise.
4334         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
4335         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
4336         * tree-affine.c (tree_to_aff_combination,
4337         get_inner_reference_aff): Adjust calls to get_inner_reference.
4338         * tree-data-ref.c (split_constant_offset_1,
4339         dr_analyze_innermost): Likewise.
4340         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
4341         * tree-sra.c (ipa_sra_check_caller): Likewise.
4342         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
4343         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
4344         bswap_replace): Likewise.
4345         * tree-vect-data-refs.c (vect_check_gather,
4346         vect_analyze_data_refs): Likewise.
4347         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
4348         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
4349         TYPE_ALIGN_OK.
4351 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
4353         * Makefile.in (selftest-valgrind): New phony target.
4354         * function-tests.c (selftest::build_cfg): Delete pass instances
4355         created by the test.
4356         (selftest::convert_to_ssa): Likewise.
4357         (selftest::test_expansion_to_rtl): Likewise.
4358         * tree-cfg.c (selftest::test_linear_chain): Release dominator
4359         vectors.
4360         (selftest::test_diamond): Likewise.
4362 2016-07-11  Richard Biener  <rguenther@suse.de>
4364         PR tree-optimization/71816
4365         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
4366         than replacing all of its operands.
4368 2016-07-11  Alan Modra  <amodra@gmail.com>
4370         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
4371         (ctr<mode>): Add unspec.
4372         (ctr<mode>_internal*): Likewise.
4374 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
4376         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
4377         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
4379 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4381         PR rtl-optimization/71621
4382         * lra-constraints.c (process_alt_operands): Check combination of
4383         reg class and mode.
4385 2016-07-08  Jason Merrill  <jason@redhat.com>
4386             Richard Biener  <rguenther@suse.de>
4388         P0145: Refining Expression Order for C++.
4389         * gimplify.c (initial_rhs_predicate_for): New.
4390         (gimplfy_modify_expr): Gimplify RHS before LHS.
4392 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4394         PR target/71297
4395         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4396         Allow standard error handling to take over when a wrong number
4397         of arguments is presented to __builtin_vec_ld () or
4398         __builtin_vec_st ().
4400 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
4402         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
4403         variants.
4404         (smin): Likewise.
4405         (fmax): New entry.
4406         (fmin): Likewise.
4407         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
4408         __builtin_aarch64_fmaxv2sf.
4409         (vmaxnmq_f32): Likewise.
4410         (vmaxnmq_f64): Likewise.
4411         (vminnm_f32): Likewise.
4412         (vminnmq_f32): Likewise.
4413         (vminnmq_f64): Likewise.
4415 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4417         PR target/71806
4418         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
4419         enable -mfloat128-hardware by default.
4420         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
4421         that IEEE 128-bit hardware support needs.
4422         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4423         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
4424         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
4425         floating point requires.
4426         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4427         -mfloat128 and -mfloat128-hardware changes.
4429 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
4431         PR tree-optimization/71667
4432         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
4434 2016-07-08  Martin Liska  <mliska@suse.cz>
4436         PR middle-end/71606
4437         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
4438         folding produces SAVE_EXPRs, thus return false for the type.
4440 2016-07-07  Martin Liska  <mliska@suse.cz>
4442         * file-find.c (remove_prefix): New function.
4443         * file-find.h (remove_prefix): Declare the function.
4444         * gcc-ar.c (main): Skip a folder of the wrapper if
4445         a wrapped binary would point to the same file.
4447 2016-07-07  Jan Hubicka  <jh@suse.cz>
4449         * tree-scalar-evolution.c (iv_can_overflow_p): export.
4450         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
4451         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
4453 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
4455         PR ipa/71624
4456         * ipa-inline-analysis.c (compute_inline_parameters): Set
4457         local.can_change_signature to false for intrumentation
4458         thunk callees.
4460 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4462         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
4463         with TARGET_HAVE_MOVT.
4464         (TARGET_HAVE_MOVT): Define.
4465         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
4466         availability with TARGET_HAVE_MOVT.
4467         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
4468         availability.
4469         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
4470         TARGET_THUMB2.
4471         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
4472         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
4473         * config/arm/constraints.md (define_constraint "j"): Use
4474         TARGET_HAVE_MOVT to check MOVT availability.
4476 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4478         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
4480 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4482         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
4483         (armv8-m.main): Likewise.
4484         (armv8-m.main+dsp): Likewise.
4485         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
4486         (FL_FOR_ARCH8M_MAIN): Likewise.
4487         * config/arm/arm-tables.opt: Regenerate.
4488         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
4489         armv8-m.main+dsp to BE8_LINK_SPEC.
4490         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
4491         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
4492         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
4493         Baseline and Mainline.
4494         (arm_option_override_internal): Also disable arm_restrict_it when
4495         !arm_arch_notm.  Update comment for -munaligned-access to also cover
4496         ARMv8-M Baseline.
4497         (arm_file_start): Increase buffer size for printing architecture name.
4498         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
4499         and armv8-m.main+dsp.
4500         (mno-unaligned-access): Clarify that this is disabled by default for
4501         ARMv8-M Baseline architectures as well.
4503 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4505         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
4506         decide whether to prevent some libgcc routines being included for some
4507         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
4508         link between this condition and the one in
4509         libgcc/config/arm/lib1func.S.
4511 2016-07-07  Richard Biener  <rguenther@suse.de>
4513         * tree-ssa-pre.c: Include alias.h.
4514         (compute_avail): If we have multiple VN_REFERENCEs with the
4515         same hashtable entry adjust that to make it a valid replacement
4516         for all of them with respect to alignment and aliasing
4517         when doing insertion.
4518         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
4519         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
4521 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
4523         PR target/70098
4524         PR target/71763
4525         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
4526         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
4527         constraint.
4529 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4531         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
4532         (adjust_mems): Adjust.
4533         (adjust_insn): Likewise.
4534         (prepare_call_arguments): Likewise.
4536 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4538         * gcse.c (struct ls_expr): Make stores field a vector.
4539         (ldst_entry): Adjust.
4540         (free_ldst_entry): Likewise.
4541         (print_ldst_list): Likewise.
4542         (compute_ld_motion_mems): Likewise.
4543         (update_ld_motion_stores): Likewise.
4545 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4547         * gcse.c (struct ls_expr): Remove loads field.
4548         (ldst_entry): Adjust.
4549         (free_ldst_entry): Likewise.
4550         (print_ldst_list): Likewise.
4551         (compute_ld_motion_mems): Likewise.
4553 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4555         * store-motion.c (struct st_expr): Make antic_stores a vector.
4556         (st_expr_entry): Adjust.
4557         (free_st_expr_entry): Likewise.
4558         (print_store_motion_mems): Likewise.
4559         (find_moveable_store): Likewise.
4560         (compute_store_table): Likewise.
4561         (remove_reachable_equiv_notes): Likewise.
4562         (replace_store_insn): Likewise.
4563         (build_store_vectors): Likewise.
4565 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4567         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
4568         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
4570 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
4572         PR tree-optimization/71518
4573         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
4574         misalign also for outer loops with negative step.
4576 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
4578         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
4579         (cortex_a53_shift): Add mov_shift.
4580         (cortex_a53_shift_reg): Add new reservation for register shifts.
4581         (cortex_a53_alu): Remove bfm.
4582         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
4583         (cortex_a53_alu_extr): Add new reservation for EXTR.
4584         (bypasses): Improve bypass modelling.
4586 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4588         PR target/50739
4589         * config/avr/avr.c (avr_asm_select_section): Strip off
4590         SECTION_DECLARED from flags when calling get_section.
4592 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4594         * tree-vectorizer.h (vect_memory_access_type): Add
4595         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
4596         * tree-vect-stmts.c (compare_step_with_zero): New function.
4597         (perm_mask_for_reverse): Move further up file.
4598         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
4599         step is negative.
4600         (get_negative_load_store_type): New function.
4601         (get_load_store_type): Call it.  Add an ncopies argument.
4602         (vectorizable_mask_load_store): Update call accordingly and
4603         remove tests for negative steps.
4604         (vectorizable_store, vectorizable_load): Likewise.  Handle new
4605         memory_access_types.
4607 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4609         * tree-vectorizer.h (vect_memory_access_type): New enum.
4610         (_stmt_vec_info): Add a memory_access_type field.
4611         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
4612         (vect_model_store_cost): Take an access type instead of a boolean.
4613         (vect_model_load_cost): Likewise.
4614         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
4615         vect_model_store_cost and vect_model_load_cost.
4616         * tree-vect-stmts.c (vec_load_store_type): New enum.
4617         (vect_model_store_cost): Take an access type instead of a
4618         store_lanes_p boolean.  Simplify tests.
4619         (vect_model_load_cost): Likewise, but for load_lanes_p.
4620         (get_group_load_store_type, get_load_store_type): New functions.
4621         (vectorizable_store): Use get_load_store_type.  Record the access
4622         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
4623         (vectorizable_load): Likewise.
4624         (vectorizable_mask_load_store): Likewise.  Replace is_store
4625         variable with vls_type.
4627 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4629         * tree-vectorizer.h (vect_grouped_load_supported): Add a
4630         single_element_p parameter.
4631         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
4632         Check the PR65518 case here rather than in vectorizable_load.
4633         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
4634         * tree-vect-stmts.c (vectorizable_load): Likewise.
4636 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4638         * tree-vectorizer.h (gather_scatter_info): New structure.
4639         (vect_check_gather_scatter): Return a bool rather than a decl.
4640         Replace return-by-pointer arguments with a single
4641         gather_scatter_info *.
4642         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
4643         (vect_analyze_data_refs): Update call accordingly.
4644         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4645         (vectorizable_mask_load_store): Likewise.  Also record the
4646         offset dt and vectype in the gather_scatter_info.
4647         (vectorizable_store): Likewise.
4648         (vectorizable_load): Likewise.
4650 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4652         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
4653         strided groups, use the cost of N scalar accesses instead
4654         of ncopies vector accesses.
4655         (vect_model_load_cost): Likewise.
4657 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4659         * tree-vect-stmts.c (vect_cost_group_size): Delete.
4660         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
4661         variable to indicate when once-per-group costs are being used.
4662         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
4664 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
4666         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
4667         peeling-for-gaps condition.
4669 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4671         * config/s390/s390.c (s390_expand_vec_init): Force initializer
4672         element to register if it doesn't match general_operand.
4674 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4675             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4677         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
4678         prototype.
4679         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
4680         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
4681         (SIGNBIT): New mode iterator.
4682         (Fsignbit): New mode attribute.
4683         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
4684         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
4685         when direct moves are available.
4686         (signbit<mode>2_dm): New define_insn_and_split).
4687         (signbit<mode>2_dm2): New define_insn.
4689 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4691         PR rtl-optimization/71594
4692         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
4693         into subregs of appropriate mode before trying to emit a conditional
4694         move.
4696 2016-07-05  Jan Hubicka  <jh@suse.cz>
4698         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
4699         (simple_iv): Use it.
4701 2016-07-05  Jan Hubicka  <jh@suse.cz>
4703         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
4705 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
4707         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
4708         "offmemok".
4710 2016-07-05  Jan Hubicka  <jh@suse.cz>
4712         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
4713         IV can overflow.
4715 2016-07-05  Richard Biener  <rguenther@suse.de>
4717         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
4718         Handle empty else block.
4719         (is_feasible_trace): Likewise.
4720         (split_paths): Likewise.
4722 2016-07-05  Richard Biener  <rguenther@suse.de>
4724         * tree-loop-distribution.c (distribute_loop): Fix issue with
4725         the cost model loop.
4727 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
4729         * config/arm/neon-testgen.ml: Delete.
4730         * config/arm/neon.ml: Delete.
4732 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
4734         PR c++/71739
4735         * tree.c (attribute_value_equal): Use get_attribute_name instead of
4736         directly using TREE_PURPOSE.
4738 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
4740         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
4741         * config/aarch64/aarch64_neon.h: Likewise.
4742         * config/aarch64/arm_neon.h: Likewise.
4743         * config/aarch64/atomics.md: Likewise.
4744         * config/aarch64/aarch64-simd-builtins.def: Likewise.
4745         * doc/invoke.texi: Likewise.
4747 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4749         * config/s390/s390.md: Add "z13" cpu_facility.
4750         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
4751         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
4752         condition" type instructions.
4754 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4755             Jeff Law  <law@redhat.com>
4757         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
4758         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
4760 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
4762         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
4763         permutation for TARGET_AVX512F.
4764         (ix86_expand_vec_one_operand_perm_avx512): New function.
4765         (expand_vec_perm_1): Invoke introduced function.
4766         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
4767         it may be not valid after vectorization.
4769 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4771         PR target/63874
4772         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
4773         typo in comment.  Only force to memory if it is a weak
4774         external reference.
4776 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
4777             Jiong Wang  <jiong.wang@arm.com>
4779         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
4780         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
4781         (AARCH64_FL_F16): New.
4782         (AARCH64_FL_FOR_ARCH8_2): New.
4783         (AARCH64_ISA_8_2): New.
4784         (AARCH64_ISA_F16): New.
4785         (TARGET_FP_F16INST): New.
4786         (TARGET_SIMD_F16INST): New.
4787         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
4788         ("fp"): Disabling "fp" also disables "fp16".
4789         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
4790         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
4791         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
4792         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
4794 2016-07-04  Jan Beulich  <jbeulich@suse.com>
4796         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
4798 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
4800         PR target/71720
4801         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
4802         the insns, use an insn form that does not adjust the offset on
4803         little endian systems.
4805 2016-07-01  Jan Beulich  <jbeulich@suse.com>
4807         * varasm.c (get_variable_section): Validate initializer in
4808         named .bss-like sections.
4810 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4812         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
4813         Exchange the order of the second and third operands in the vpermr
4814         instruction tmeplate.
4816 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
4818         PR target/71698
4819         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
4820         Disallow TDmode values.
4822 2016-07-01  Alan Modra  <amodra@gmail.com>
4824         PR rtl-optimization/71709
4825         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
4826         being set, not referenced.
4828 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
4830         PR tree-optimization/70729
4831         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
4832         of loop since it can be not valid after transformation.
4834 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4836         * config/arm/arm.c (thumb_reload_in_hi): Delete.
4837         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
4839 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
4841         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
4842         for NULL decl.
4844 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
4846         PR target/71677
4847         * config/rs6000/constraints.md (wY constraint): New constraint to
4848         match the requirements for the LXSD and STXSD instructions.
4849         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
4850         predicate to match the requirements for the LXSD and STXSD
4851         instructions.
4852         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
4853         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
4854         to make sure that the bottom 2 bits of offset are 0, the address
4855         form is offsettable, and no updating is done in the address mode.
4856         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
4857         (movdi_internal32): Likewise
4858         (movdi_internal64): Likewise.
4860 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
4862         PR tree-optimization/71707
4863         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
4864         strinfo even for ADDR_EXPR ptr.
4866 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4868         * config/rs6000/altivec.md (darn_32): Change the condition to
4869         TARGET_P9_MISC instead of TARGET_MODULO.
4870         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
4871         condition expression.
4872         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
4873         condition expression.
4874         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
4875         (DFP_TEST): New code iterator.
4876         (dfptstsfi_<code>_mode>): New define_expand.
4877         (*dfp_sgnfcnc_<mode>): New define_insn.
4878         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
4879         definition next to BU_P9_MISC_1 definition and change the MASK
4880         value to RS6000_BTM_P9_MISC.
4881         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
4882         (BU_P9_64BIT_MISC_0): Likewise.
4883         (BU_P9_DFP_MISC_0): New macro definition.
4884         (BU_P9_DFP_MISC_1): New macro definition.
4885         (BU_P9_DFP_MISC_2): New macro definition.
4886         (BU_P9_DFP_OVERLOAD_1): New macro definition.
4887         (BU_P9_DFP_OVERLOAD_2): New macro definition.
4888         (BU_P9_DFP_OVERLOAD_3): New macro definition.
4889         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
4890         (TSTSFI_LT_TD): Likewise.
4891         (TSTSFI_EQ_DD): Likewise.
4892         (TSTSFI_EQ_TD): Likewise.
4893         (TSTSFI_GT_DD): Likewise.
4894         (TSTSFI_GT_TD): Likewise.
4895         (TSTSFI_OV_DD): Likewise.
4896         (TSTSFI_OV_TD): Likewise.
4897         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
4898         (TSTSFI_LT_DD): Likewise.
4899         (TSTSFI_LT_TD): Likewise.
4900         (TSTSFI_EQ): Likewise.
4901         (TSTSFI_EQ_DD): Likewise.
4902         (TSTSFI_EQ_TD): Likewise.
4903         (TSTSFI_GT): Likewise.
4904         (TSTSFI_GT_DD): Likewise.
4905         (TSTSFI_GT_TD): Likewise.
4906         (TSTSFI_OV): Likewise.
4907         (TSTSFI_OV_DD): Likewise.
4908         (TSTSFI_OV_TD): Likewise.
4909         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4910         overloaded test significance functions.
4911         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4912         OPTION_MASK_P9_MISC into the representation of this mask.
4913         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
4914         of this mask.
4915         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
4916         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
4917         non-zero.
4918         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
4919         argument is a 6-bit unsigned literal value if the icode argument
4920         represents a DFP test significance built-in call.
4921         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
4922         flag used independently and in combination with the
4923         RS6000_BTM_64BIT flag.
4924         (rs6000_opt_masks): Add entry for power9-misc command-line option.
4925         (rs6000_builtin_mask_names): Add entry for power9-misc
4926         command-line option.
4927         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
4928         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
4929         RS6000_BTM_P9_MISC macros.
4930         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
4931         option and change the description of the -mpower9-vector option to
4932         enable only vector instructions, removing its erroneously claimed
4933         support for scalar instructions.
4934         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4935         the ISA 3.0 digital floating point test significance built-in
4936         functions.
4938 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
4940         * config/aarch64/aarch64.c (cortexa35_tunings):
4941         Enable AES fusion.  Use cortexa57_branch_cost.
4942         (cortexa53_tunings): Use cortexa57_branch_cost.
4943         (cortexa72_tunings): Use cortexa57_branch_cost.
4944         Use AUTOPREFETCHER_WEAK.
4945         (cortexa73_tunings): Use cortexa57_branch_cost.
4947 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4948             James Greenhalgh  <james.greenhalgh@arm.com>
4950         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
4951         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
4952         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
4953         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
4954         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
4955         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
4956         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
4957         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
4958         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
4959         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
4960         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
4961         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
4962         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
4963         New intrinsics.
4965 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
4966             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4968         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
4969         New define_insn.
4970         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
4972 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
4974         PR driver/71651
4975         * gcc.c (driver::build_option_suggestions): Pass "option" to
4976         add_misspelling_candidates.
4977         * opts-common.c (add_misspelling_candidates): Add "option" param;
4978         use it to avoid adding negated forms for options marked with
4979         RejectNegative.
4980         * opts.h (add_misspelling_candidates): Add "option" param.
4982 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
4984         PR middle-end/71693
4985         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
4986         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
4987         first when permuting bitwise operation with rotate.  Cast
4988         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
4990 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
4992         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
4993         for misspelled param names.
4994         * params.c: Include spellcheck.h.
4995         (find_param_fuzzy): New function.
4996         * params.h (find_param_fuzzy): New prototype.
4997         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
4998         * spellcheck.h (struct edit_distance_traits<const char *>):
4999         ...here.
5001 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5003         * config/rs6000/predicates.md (const_0_to_7_operand): New
5004         predicate, recognize 0..7.
5005         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5006         support for doing extracts from V16QImode, V8HImode, V4SImode
5007         under ISA 3.0.
5008         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
5009         vector extract support.
5010         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
5011         for ISA 3.0 vector extract.
5012         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
5013         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
5014         extracts of a constant element number from small integer vectors
5015         on 64-bit ISA 3.0 systems.
5016         (vsx_extract_<mode>_di): Likewise.
5017         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
5018         say when we can do ISA 3.0 vector extracts.
5019         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
5020         registers, using the stxsiwx instruction.
5022 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
5024         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
5025         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
5026         qdf24xx_regmove_cost, qdf24xx_tunings): New.
5027         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
5028         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
5029         * config/arm/arm.c (arm_qdf24xx_tune): New.
5031 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
5033         * config/aarch64/aarch64.c (cortexa53_tunings):
5034         Increase loop alignment to 8.  Set function alignment to 16.
5035         (cortexa35_tunings): Likewise.
5036         (cortexa57_tunings): Increase loop alignment to 8.
5037         (cortexa72_tunings): Likewise.
5038         (cortexa73_tunings): Likewise.
5040 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5042         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
5043         for arm_fp16_ok and arm_fp16_hw.
5044         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
5045         arm_fp16_alternative.
5047 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5049         PR tree-optimization/71655
5050         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
5051         types when swapping operands.
5053 2016-06-29  Martin Liska  <mliska@suse.cz>
5055         PR middle-end/71585
5056         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
5057         * ipa-inline-transform.c (inline_call): Remove unnecessary call
5058         of build_optimization_node.
5060 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
5062         PR tree-optimization/70729
5063         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
5064         independent in loops having positive safelen value.
5065         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
5066         it may be not valid after vectorization.
5068 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
5070         PR tree-optimization/71625
5071         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
5072         is sorted by ascending list->offset.  If PTR is non-NULL and there is
5073         previous strinfo, call get_stridx_plus_constant.
5074         (get_stridx): Pass exp as second argument to get_addr_stridx.
5075         (addr_stridxptr): Add missing list = list->next, so that there can be
5076         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
5077         the list is sorted by ascending list->offset.
5078         (get_stridx_plus_constant): Adjust so that it can be also called with
5079         ADDR_EXPR instead of SSA_NAME as PTR.
5080         (handle_char_store): Pass NULL_TREE as second argument to
5081         get_addr_stridx.
5083 2016-06-29  Richard Biener  <rguenther@suse.de>
5085         PR rtl-optimization/68961
5086         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
5088 2016-06-29  Richard Biener  <rguenther@suse.de>
5090         PR middle-end/71002
5091         * alias.c (component_uses_parent_alias_set_from): Handle
5092         type punning through union accesses by using the union alias set.
5093         * gimple.c (gimple_get_alias_set): Remove union type punning case.
5095 2016-07-29  Richard Biener  <rguenther@suse.de>
5097         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
5098         precision not matching mode precision.
5100 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
5102         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
5103         pa_output_arg_descriptor.
5104         (call_val_symref_64bit_post_reload): Likewise.
5105         (call_val_powf_64bit_post_reload): Likewise.
5106         (sibcall_internal_symref_64bit): Likewise.
5107         (sibcall_value_internal_symref_64bit): Likewise.
5109 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
5111         PR middle-end/71626
5112         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
5113         a constant, force its SUBREG_REG into memory or register instead
5114         of whole op1.
5116 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5118         PR target/58655
5119         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
5120         * doc/invoke.texi (AVR Options): Document it.
5122 2016-06-28  Walter Lee  <walt@tilera.com>
5124         * config/tilegx/linux.h: Do not include arch/icache.h
5125         (CLEAR_INSN_CACHE): Provide inlined definition directly.
5126         * config/tilepro/linux.h: Do not include arch/icache.h
5127         (CLEAR_INSN_CACHE): Provide inlined definition directly.
5129 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
5131         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
5132         for big-endian BIT_FIELD_REF.
5134 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
5136         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
5137         ('size' attribute): Add '128'.
5138         Include power9.md.
5139         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
5140         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
5141         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
5142         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
5143         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
5144         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
5145         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
5146         *trunc<mode>df2_odd): Set size attribute to '128'.
5147         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
5148         * config/rs6000/power6.md (power6-fp): Include dfp type.
5149         * config/rs6000/power7.md (power7-fp): Likewise.
5150         * config/rs6000/power8.md (power8-fp): Likewise.
5151         * config/rs6000/power9.md: New file.
5152         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
5153         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
5154         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
5155         htmsimple.
5156         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
5157         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
5158         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
5159         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
5160         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
5161         dfp_dscri_<mode>): Change type attribute to dfp.
5162         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
5163         attribute to vecsimple.
5164         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
5165         and prefetch streams.
5166         (rs6000_option_override_internal): Remove temporary code setting
5167         tuning to power8.  Don't set rs6000_sched_groups for power9.
5168         (last_scheduled_insn): Change to rtx_insn *.
5169         (divide_cnt, vec_load_pendulum): New variables.
5170         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
5171         (rs6000_issue_rate): Set issue rate for Power9.
5172         (is_power9_pairable_vec_type): New.
5173         (power9_sched_reorder2): New.
5174         (rs6000_sched_reorder2): Call new function for Power9 specific
5175         reordering.
5176         (insn_must_be_first_in_group): Remove Power9.
5177         (insn_must_be_last_in_group): Likewise.
5178         (force_new_group): Likewise.
5179         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
5180         Initialize divide_cnt/vec_load_pendulum.
5181         (_rs6000_sched_context, rs6000_init_sched_context,
5182         rs6000_set_sched_context): Handle context save/restore of new
5183         variables.
5185 2016-06-28  Richard Biener  <rguenther@suse.de>
5187         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5188         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
5189         COMPONENT_REF operand.
5190         (nonoverlapping_component_refs_p): Likewise.
5191         * stor-layout.c (start_bitfield_representative): Mark
5192         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
5194 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
5196         * Makefile.in: Don't cat ../stage_current if it does not exist.
5198         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
5199         last argument is a bit-field.
5201         PR rtl-optimization/71673
5202         * internal-fn.c (expand_arith_overflow_result_store): Use
5203         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
5204         expand_simple_binop.
5206         PR middle-end/66867
5207         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
5208         expand_ifn_atomic_compare_exchange): New functions.
5209         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
5210         * tree.h (build_call_expr_internal_loc): Rename to ...
5211         (build_call_expr_internal_loc_array): ... this.  Fix up type of
5212         last argument.
5213         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
5214         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
5215         ATOMIC_COMPARE_EXCHANGE result.
5216         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
5217         * gimple-fold.h (optimize_atomic_compare_exchange_p,
5218         fold_builtin_atomic_compare_exchange): New prototypes.
5219         * gimple-fold.c (optimize_atomic_compare_exchange_p,
5220         fold_builtin_atomic_compare_exchange): New functions..
5221         * tree-ssa.c (execute_update_addresses_taken): If
5222         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
5223         of call when finding addressable vars, and if such var becomes
5224         non-addressable, call fold_builtin_atomic_compare_exchange.
5226 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
5228         PR target/71670
5229         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
5230         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
5232 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
5234         * config/rs6000/rs6000.md ('type' attribute): Add
5235         veclogical,veccmpfx,vecexts,vecmove insn types.
5236         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
5237         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
5238         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
5239         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
5240         *nabs<mode>2_hw): Change type to vecmove.
5241         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
5242         *boolcc<mode>3_internal, *eqv<mode>3_internal,
5243         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
5244         *ieee_128bit_vsx_abs<mode>2_internal,
5245         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
5246         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
5247         *ieee128_mtvsrd_32bit): Change type to veclogical.
5248         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
5249         *movdi_internal32, *movdi_internal64): Update insn types.
5250         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
5251         vsx_extract_<mode>): Change type to veclogical.
5252         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
5253         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
5254         *vsx_sign_extend_si_v2di): Change type to vecexts.
5255         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
5256         type to veclogical.
5257         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
5258         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
5259         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
5260         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
5261         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
5262         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
5263         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
5264         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
5265         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
5266         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
5267         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
5268         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
5269         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
5270         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
5271         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
5272         (ppc7450-vecsimple): Add veclogical, vecmove.
5273         (ppc7450-veccmp): Add veccmpfx.
5274         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
5275         vecmove.
5276         (ppc8540_vector_compare): Add veccmpfx.
5277         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
5278         * config/rs6000/cell.md (cell-fp): Add fpsimple.
5279         (cell-vecsimple): Add veclogical, vecmove.
5280         (cell-veccmp): Add veccmpfx.
5281         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
5282         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
5283         veccmpfx.
5284         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
5285         * config/rs6000/power4.md (power4-fp): Add fpsimple.
5286         (power4-vecsimple): Add veclogical, vecmove.
5287         (power4-veccmp): Add veccmpfx.
5288         * config/rs6000/power5.md (power5-fp): Add fpsimple.
5289         * config/rs6000/power6.md (power6-fp): Add fpsimple.
5290         (power6-vecsimple): Add veclogical, vecmove.
5291         (power6-veccmp): Add veccmpfx.
5292         * config/rs6000/power7.md (power7-fp): Add fpsimple.
5293         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
5294         * config/rs6000/power8.md (power8-fp): Add fpsimple.
5295         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
5296         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
5297         * config/rs6000/titan.md (titan_fp): Add fpsimple.
5298         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
5299         fpsimple.
5300         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
5302 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
5304         PR target/71656
5305         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5306         OPTION_MASK_P9_DFORM_VECTOR.
5307         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
5308         disable -mpower9-dform-vector when using reload.
5309         (quad_address_p): Remove 'gpr_p' argument and all associated code.
5310         New 'strict' argument.  Update all callers.  Add strict addressing
5311         support.
5312         (rs6000_legitimate_offset_address_p): Remove call to
5313         virtual_stack_registers_memory_p.
5314         (rs6000_legitimize_reload_address): Add quad address support.
5315         (rs6000_legitimate_address_p): Move call to quad_address_p above
5316         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
5317         to account for new strict usage.
5318         (rs6000_output_move_128bit): Adjust quad_address_p args to account
5319         for new strict usage.
5320         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
5322 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
5324         PR target/70902
5325         PR target/71453
5326         PR target/71555
5327         PR target/71596
5328         PR target/71657
5329         * config/i386/i386.c (ix86_spill_class): Disable condition to
5330         always return NO_REGS.
5332 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
5334         * predict.c: Include gimple-pretty-print.h
5335         (predicted_by_loop_heuristics_p): Check also
5336         PRED_LOOP_EXIT_WITH_RECURSION
5337         (predict_loops): Find self recursive calls and use special purpose
5338         predictors for them; dump log about decisions.
5339         (pass_profile::execute): Dump info about #of iterations.
5340         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
5341         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
5343 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
5345         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
5346         output_asm_insn calls and shorten long lines.  Output .CALL
5347         argument descriptor using pa_output_arg_descriptor.  Add various
5348         inline $$dyncall and other optimizations.
5349         (pa_attr_length_indirect_call): Adjust ordering and lengths.
5351 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
5353         PR tree-optimization/71643
5354         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
5355         EH preds.
5357         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
5358         leak a bitmap if dep_bb is NULL.
5360         PR tree-optimization/71631
5361         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
5362         to rewrite_expr_tree even if negate_result, move new_lhs var
5363         declaration and initialization earlier, for powi_result set afterwards
5364         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
5365         if new_lhs != lhs, and don't shadow gsi var.
5367 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
5369         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
5370         Add in_loop parameter.
5371         (predict_loops): Add loop guard heuristics.
5372         * predict.def (PRED_LOOP_GUARD): New heuristics.
5374 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
5376         * predict.c: Include ipa-utils.h
5377         (tree_bb_level_prediction): Predict recursive calls.
5378         (tree_estimate_probability_bb): Skip inexpensive calls for call
5379         predictor.
5380         * predict.def (PRED_RECURSIVE_CALL): New.
5382 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5384         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
5385         (BU_FLOAT128_1): Likewise.
5386         (FABSQ): Likewise.
5387         (COPYSIGNQ): Likewise.
5388         (RS6000_BUILTIN_NANQ): Likewise.
5389         (RS6000_BUILTIN_NANSQ): Likewise.
5390         (RS6000_BUILTIN_INFQ): Likewise.
5391         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
5392         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
5393         (TARGET_FOLD_BUILTIN): New #define.
5394         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
5395         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
5396         (rs6000_fold_builtin): New target hook implementation, handling
5397         folding of 128-bit NaNs and infinities.
5398         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
5399         entries are filled in to avoid problems during bootstrap
5400         self-test; define builtins for 128-bit NaNs and infinities.
5401         (rs6000_opt_mask): Add entry for float128.
5402         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
5403         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
5404         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
5405         (const_str_type_node): New #define.
5406         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
5407         to a define_expand that dispatches to either copysign<mode>3_soft
5408         or copysign<mode>3_hard.
5409         (copysign<mode>3_hard): Rename from copysign<mode>3.
5410         (copysign<mode>3_soft): New define_insn.
5411         * doc/extend.texi: Document new builtins.
5413 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
5415         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
5416         PRIu64 instead of lu.
5418 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5420         PR debug/71642
5421         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
5422         copy the type name.
5424 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
5426         PR tree-optimization/71647
5427         * omp-low.c (lower_rec_input_clauses): Convert
5428         omp_clause_aligned_alignment (c) to size_type_node for the
5429         last argument of __builtin_assume_aligned.
5431 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5433         * configure.ac (calling ___tls_get_addr via GOT): New
5434         assembler/linker check.
5435         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
5436         assembler and linker supports calling ___tls_get_addr via GOT.
5437         Otherise, defined to 0.
5438         * config.in: Regenerated.
5439         * configure: Likewise.
5440         * config/i386/constraints.md (Yb): New constraint.
5441         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
5442         (REG_CLASS_NAMES): Likewise.
5443         (REG_CLASS_CONTENTS): Likewise.
5444         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
5445         the b constraint with the Yb constraint.  Call ___tls_get_addr
5446         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
5447         is 1.
5448         (*tls_local_dynamic_base_32_gnu): Likewise.
5449         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
5450         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
5451         (*tls_local_dynamic_base_64_<mode>): Likewise.
5453 2016-06-24  Martin Liska  <mliska@suse.cz>
5455         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
5456         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
5457         few functions.
5458         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
5459         argument to true if the expected number of iterations is
5460         loop-based.
5462 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
5464         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
5465         assemble for 32bit target.
5466         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
5467         and $ld_ix86_gld_32_opt to link for 32bit target.
5468         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
5469         * configure: Regenerate.
5471 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5473         * config/arm/arm.c (int_log2): Delete definition and prototype.
5474         (shift_op): Use exact_log2 instead of int_log2.
5475         (vfp3_const_double_for_fract_bits): Likewise.
5477 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
5479         * internal-fn.c (expand_arith_set_overflow): New function.
5480         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
5481         Use it.
5482         (expand_arith_overflow_result_store): Likewise.  Handle precision
5483         smaller than mode precision.
5484         * tree-vrp.c (extract_range_basic): For imag part, handle
5485         properly signed 1-bit precision result.
5486         * doc/extend.texi (__builtin_add_overflow): Document that last
5487         argument can't be pointer to enumerated or boolean type.
5488         (__builtin_add_overflow_p): Document that last argument can't
5489         have enumerated or boolean type.
5491 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5492             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5494         * config/rs6000/predicates.md (splat_input_operand): Rework.
5495         Don't allow constants, since the insns that use this predicate
5496         don't support constants.  Constants are handled by other insns
5497         that are created via combine.  During and after register
5498         allocation, only allow indexed or indirect addresses, and not
5499         general addresses.  Only allow modes supported by the hardware.
5500         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
5501         comment.  Move check for using VSPLTIS<x> to a common location,
5502         instead of doing it in two different places.
5504 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
5506         * config/i386/driver-i386.c (host_detect_local_cpu): Set
5507         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
5508         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
5509         signature_CENTAUR_ebx.
5511 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
5513         PR target/66232
5514         PR target/67400
5515         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
5516         (as_ix86_gas_32_opt): This.
5517         (ld_ix86_tls_ldm_opt): Renamed to ...
5518         (ld_ix86_gld_32_opt): This.
5519         (R_386_TLS_LDM reloc): Updated.
5520         (R_386_GOT32X reloc): New assembler/linker check.
5521         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
5522         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
5523         defined to 0.
5524         * config.in: Regenerated.
5525         * configure: Likewise.
5526         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
5527         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
5528         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
5529         if ix86_force_load_from_GOT_p returns true.
5530         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
5531         ix86_force_load_from_GOT_p returns true.
5532         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
5533         the external function address via the GOT slot.
5534         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
5535         HAVE_AS_IX86_GOT32X before returning false.
5536         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
5537         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
5539 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
5541         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
5543 2016-06-23  Andi Kleen  <ak@linux.intel.com>
5545         * Makefile.in: Regenerate.
5546         * doc/install.texi: Document autoprofiledbootstrap.
5548 2016-06-23  Andi Kleen  <ak@linux.intel.com>
5550         * config/i386/gcc-auto-profile: New file.
5552 2016-06-23  Martin Liska  <mliska@suse.cz>
5554         PR middle-end/71619
5555         * predict.c (predict_loops): Revert the hunk that was removed
5556         in r237103.
5558 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
5560         * config.gcc: Add support for arm*-*-phoenix* targets.
5561         * config/arm/t-phoenix: New.
5562         * config/phoenix.h: New.
5564 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
5565             H.J. Lu  <hongjiu.lu@intel.com>
5567         PR target/67400
5568         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
5569         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
5570         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
5571         ix86_force_load_from_GOT_p returns true.
5572         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
5573         ix86_force_load_from_GOT_p returns true.
5574         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
5575         ix86_force_load_from_GOT_p returns true.
5576         (ix86_expand_move): Load the external function address via the
5577         GOT slot if ix86_force_load_from_GOT_p returns true.
5578         * config/i386/predicates.md (x86_64_immediate_operand): Return
5579         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
5580         (x86_64_zext_immediate_operand): Ditto.
5582 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
5584         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
5586 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
5588         PR c/70339
5589         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
5590         * diagnostic.c (pedwarn_at_rich_loc): New function.
5591         * spellcheck.h (best_match::best_match): Add a
5592         "best_distance_so_far" optional parameter.
5593         (best_match::set_best_so_far): New method.
5594         (best_match::get_best_distance): New accessor.
5595         (best_match::get_best_candidate_length): New accessor.
5597 2016-06-22  Nick Clifton  <nickc@redhat.com>
5599         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
5600         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
5601         modes are accepted as well.
5602         (ucompare_loc_descriptor): Likewise.
5603         (minmax_loc_descriptor): Likewise.
5604         (clz_loc_descriptor): Likewise.
5605         (popcount_loc_descriptor): Likewise.
5606         (bswap_loc_descriptor): Likewise.
5607         (rotate_loc_descriptor): Likewise.
5608         (mem_loc_descriptor): Likewise.
5609         (loc_descriptor): Likewise.
5611 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
5613         * common.opt (fdiagnostics-parseable-fixits): New option.
5614         * diagnostic.c: Include "selftest.h".
5615         (print_escaped_string): New function.
5616         (print_parseable_fixits): New function.
5617         (diagnostic_report_diagnostic): Call print_parseable_fixits.
5618         (selftest::assert_print_escaped_string): New function.
5619         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
5620         (selftest::test_print_escaped_string): New function.
5621         (selftest::test_print_parseable_fixits_none): New function.
5622         (selftest::test_print_parseable_fixits_insert): New function.
5623         (selftest::test_print_parseable_fixits_remove): New function.
5624         (selftest::test_print_parseable_fixits_replace): New function.
5625         (selftest::diagnostic_c_tests): New function.
5626         * diagnostic.h (struct diagnostic_context): Add field
5627         "parseable_fixits_p".
5628         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5629         -fdiagnostics-parseable-fixits.
5630         (-fdiagnostics-parseable-fixits): New option.
5631         * opts.c (common_handle_option): Handle
5632         -fdiagnostics-parseable-fixits.
5633         * selftest-run-tests.c (selftest::run_tests): Call
5634         selftest::diagnostic_c_tests.
5635         * selftest.h (selftest::diagnostic_c_tests): New prototype.
5637 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
5639         PR tree-optimization/71488
5640         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
5641         comparison of boolean vectors.
5642         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
5643         of boolean vectors using bitwise operations.
5645 2016-06-22  Andreas Schwab  <schwab@suse.de>
5647         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
5648         Remove declaration.
5650 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
5652         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
5654 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5656         * config/i386/i386.c (print_reg): Emit an error message on attempt to
5657         print FLAGS_REG.
5659 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5661         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
5662         * config/arm/arm-cores.def (cortex-a73): New entry.
5663         (cortex-a73.cortex-a35): Likewise.
5664         (cortex-a73.cortex-a53): Likewise.
5665         * config/arm/arm-tables.opt: Regenerate.
5666         * config/arm/arm-tune.md: Likewise.
5667         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
5668         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
5669         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
5670         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
5671         * doc/invoke.texi (ARM Options): Document cortex-a73,
5672         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
5674 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5676         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
5677         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
5678         (cortex-a73.cortex-a35): Likewise.
5679         (cortex-a73.cortex-a53): Likewise.
5680         * config/aarch64/aarch64-tune.md: Regenerate.
5681         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
5682         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
5683         -mcpu and -mtune.
5685 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5687         * configure.ac (gcc_cv_as_compress_debug): Remove
5688         --compress-debug-sections as extra as switch.
5689         Handle gas --compress-debug-sections=type.
5690         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
5691         Handle gld --compress-debug-sections=type.
5692         * configure: Regenerate.
5694 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5696         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
5698 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
5700         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
5701         (do_rewrite): likewise.
5703 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5705         * common/config/mep/mep-common.c: Remove.
5706         * config.gcc: Remove mep-* support.
5707         * config/mep/constraints.md: Remove.
5708         * config/mep/default.h: Remove.
5709         * config/mep/intrinsics.h: Remove.
5710         * config/mep/intrinsics.md: Remove.
5711         * config/mep/ivc2-template.h: Remove.
5712         * config/mep/mep-c5.cpu: Remove.
5713         * config/mep/mep-core.cpu: Remove.
5714         * config/mep/mep-default.cpu: Remove.
5715         * config/mep/mep-ext-cop.cpu: Remove.
5716         * config/mep/mep-intrin.h: Remove.
5717         * config/mep/mep-ivc2.cpu: Remove.
5718         * config/mep/mep-pragma.c: Remove.
5719         * config/mep/mep-protos.h: Remove.
5720         * config/mep/mep.c: Remove.
5721         * config/mep/mep.cpu: Remove.
5722         * config/mep/mep.h: Remove.
5723         * config/mep/mep.md: Remove.
5724         * config/mep/mep.opt: Remove.
5725         * config/mep/predicates.md: Remove.
5726         * config/mep/t-mep: Remove.
5727         * doc/install.texi: Remove mep-* documentation.
5728         * doc/md.texi: Likewise.
5730 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5732         * config.gcc: Remove support for avr-rtems.
5733         * config/avr/gen-avr-mmcu-specs.c: Likewise.
5734         * config/avr/rtems.h: Remove.
5735         * config/avr/t-rtems: Remove.
5737 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5739         * config.gcc: Remove m32r-rtems support.
5740         * config/m32r/rtems.h: Remove.
5742 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5744         * config.gcc: Remove h8300-rtems support.
5745         * config/h8300/rtems.h: Remove.
5746         * config/h8300/t-rtems: Remove.
5748 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5750         * config.gcc: Remove support for knetbsd.
5751         * configure.ac: Likewise.
5752         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
5753         * config/knetbsd-gnu.h: Remove.
5754         * configure: Regenerate.
5756 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5758         * config.gcc: Remove support for openbsd 2 and 3.
5759         * config/openbsd-oldgas.h: Remove.
5761 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5763         * config.gcc: Remove interix support.
5764         * config/i386/i386-interix.h: Remove.
5765         * config/i386/interix.opt: Remove.
5766         * config/i386/t-interix: Remove.
5767         * configure: Regenerate.
5768         * configure.ac: Remove interix support.
5769         * doc/install.texi: Remove interix documentation.
5771 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5773         * config/rs6000/rs6000.h: Add conditional preprocessing directives
5774         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
5775         not defined.
5777 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
5779         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
5780         they are both PLACEHOLDER_EXPRs.
5782 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5784         * stor-layout.c (layout_type): Move setting complex MODE to
5785         layout_type, instead of setting it ahead of time by the caller.
5786         * tree.c (build_complex_type): Likewise.
5788 2016-06-21  Martin Liska  <mliska@suse.cz>
5790         * predict.c (force_edge_cold): Replace imposisble with
5791         impossible.
5793 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
5795         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
5796         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
5798 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
5800         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
5802 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5803             Ilya Enkovich  <ilya.enkovich@intel.com>
5805         PR target/71549
5806         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
5807         New member function to convert V1TImode register to SUBREG
5808         TImode in debug insn.
5809         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
5810         after changing register mode to V1TImode.
5812 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
5814         * config/aarch64/aarch64-cores.def (vulcan): New core.
5815         * config/aarch64/aarch64-tune.md: Regenerate.
5816         * doc/invoke.texi: Document vulcan as an available option.
5818 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
5820         * cse.c (canon_asm_operands): New function extracted from...
5821         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
5822         either standalone or member of a PARALLEL.
5824 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
5826         PR target/30417
5827         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
5828         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
5829         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
5831 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
5833         PR target/71103
5834         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
5835         constant addresses if can_create_pseudo_p.
5837 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
5839         PR tree-optimization/71588
5840         * tree-ssa-strlen.c (valid_builtin_call): New function.
5841         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
5842         it.
5844 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
5846         PR middle-end/71581
5847         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
5848         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
5849         for conversion of scalar user var to complex type and use the
5850         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
5851         punt.
5853         PR rtl-optimization/71591
5854         * toplev.c (toplev::run_self_tests): If no_backend, complain and
5855         don't run any tests.
5857 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
5859         PR target/71571
5860         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
5861         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
5862         space for PIC with non-v32 and the common non-PIC "jump".
5864 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
5866         PR target/71559
5867         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
5868         returned values and add UN*/LTGT/*ORDERED cases with values matching
5869         D operand modifier on vcmp for AVX.
5871 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
5873         * config/aarch64/aarch64.opt
5874         (mpc-relative-literal-loads): Rename internal option name.
5875         * config/aarch64/aarch64.c
5876         (aarch64_nopcrelative_literal_loads): Rename to
5877         aarch64_pcrelative_literal_loads.
5878         (aarch64_expand_mov_immediate): Likewise.
5879         (aarch64_secondary_reload): Likewise.
5880         (aarch64_can_use_per_function_literal_pools_p): Likewise.
5881         (aarch64_override_options_after_change_1): Rename and simplify logic.
5882         (aarch64_classify_symbol): Merge large model checks into switch,
5883         remove pc-relative load check.
5885 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
5887         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
5888         costs relative to the cost of a register move.
5890 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
5892         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
5893         (vcvt_n_f64_u64): Likewise.
5894         (vcvt_n_s64_f64): Likewise.
5895         (vcvt_n_u64_f64): Likewise.
5896         (vcvt_f64_s64): Likewise.
5897         (vrecpe_f64): Likewise.
5898         (vcvt_f64_u64): Likewise.
5899         (vrecps_f64): Likewise.
5901 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
5903         * config/aarch64/aarch64.md
5904         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
5905         iterators.
5906         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
5907         attributes.
5908         * config/aarch64/aarch64-builtins.c
5909         (aarch64_types_binop_uss_qualifiers): Delete.
5910         (TYPES_BINOP_USS): Likewise.
5911         (aarch64_types_binop_sus_qualifiers): Likewise.
5912         (TYPES_BINOP_SUS): Likewise.
5913         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
5914         (TYPES_FCVTIMM_SUS): Likewise.
5915         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
5916         rather than BINOP.
5917         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
5918         (fcvtzs): Use SHIFTIMM rather than BINOP.
5919         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
5921 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
5923         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
5924         costs relative to the cost of a register move.
5926 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
5928         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
5929         Allow scalar/single vector modes to be tieable.
5931 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
5933         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
5935 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5937         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
5938         "alignement".
5939         * tree.h (TYPE_ALIGN): Likewise.
5941 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
5943         PR target/71103
5944         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
5946 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
5948         * config/avr/avr.c (avr_print_operand): Fix "format not a string
5949         literal" build warnings.
5950         (avr_print_operand_address): Dito.
5952 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
5954         PR target/71375
5955         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
5956         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
5958 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
5960         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
5962 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
5964         PR bootstrap/71435
5965         * reload1.c (reload): Pass 0 to finish_spills when called because
5966         update_eliminables_and_spill returns true and remove did_spill.
5967         (finish_spills): Adjust comment and document GLOBAL parameter.
5969 2016-06-17  DJ Delorie  <dj@redhat.com>
5971         PR target/71338
5972         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
5973         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
5974         (umulqihi3_virt): Likewise.
5975         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
5976         (umulqihi3_real): Likewise.
5978 2016-06-17  Martin Liska  <mliska@suse.cz>
5980         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
5982 2016-06-17  Martin Liska  <mliska@suse.cz>
5984         * predict.def: PRED_LOOP_EXIT from 92 to 85.
5986 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
5988         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
5989         __FAST_MATH__.
5990         (vaddq_f32): Likewise.
5991         (vmul_f32): Likewise.
5992         (vmulq_f32): Likewise.
5993         (vsub_f32): Likewise.
5994         (vsubq_f32): Likewise.
5996 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
5998         PR tree-optimization/71347
5999         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
6000         cost for all uses in group.
6002 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
6004         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
6005         insert gimple seq if it's not empty.
6007 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
6009         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
6010         member OFFSET.
6011         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
6012         rather than OFFSET.
6013         (comp_dr_with_seg_len_pair): Ditto.
6014         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
6015         struct dr_with_seg_len_pair against DR_OFFSET.
6016         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
6017         DR_OFFSET directly.
6019 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6021         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
6023 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
6025         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
6026         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
6027         (pa_output_millicode_call): Likewise.
6028         (pa_output_call): Likewise.
6029         (pa_output_indirect_call): Likewise.
6030         (pa_asm_output_mi_thunk): Likewise.
6032 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6034         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
6036 2016-06-16  Martin Liska  <mliska@suse.cz>
6038         * predict.c (combine_predictions_for_insn): When we find a first
6039         match predictor, we should consider just predictors with
6040         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
6041         DS theory predictor.
6042         (combine_predictions_for_bb): Likewise.
6044 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6046         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
6047         with base of reference to struct.
6049 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
6051         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
6053 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6055         PR target/71151
6056         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
6057         progmem_swtable_section.
6058         (progmem_swtable_section): Remove.
6059         (avr_asm_function_rodata_section): Remove.
6060         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
6061         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
6063 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
6065         * config/i386/driver-i386.c (host_detect_local_cpu): Set
6066         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
6067         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
6068         signature_CENTAUR_ebx.
6069         * config/i386/i386.c (ix86_option_override_internal): Add
6070         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
6071         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
6072         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
6074 2016-06-16  Martin Liska  <mliska@suse.cz>
6076         * predict.def: Add fortran loop preheader predictor.
6077         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
6078         fold IFN_BUILTIN_EXPECT with a known constant argument.
6080 2016-06-16  Martin Liska  <mliska@suse.cz>
6082         * predict.def: Add 'Fortran' to display text of all
6083         PRED_FORTRAN_* predictors.
6085 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
6087         PR target/71242
6088         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
6089         [IA64_BUILTIN_NANSQ]: Ditto.
6090         (ia64_fold_builtin): New function.
6091         (TARGET_FOLD_BUILTIN): New define.
6092         (ia64_init_builtins) Declare const_string_type node.
6093         Add __builtin_nanq and __builtin_nansq builtin functions.
6094         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
6096 2016-06-16  Nick Clifton  <nickc@redhat.com>
6098         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
6099         MSP430_HWMULT_ prefix to enum values.
6100         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
6101         * config/msp430/msp430.c: Update use of enum values.
6102         * config/msp430/msp430.md: Likewise.
6103         * config/msp430/msp430.opt: Likewise.
6105 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
6107         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
6108         of comparsions in the last iteration.
6110 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
6111             Joern Rennecke  <joern.rennecke@embecosm.com>
6113         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
6114         addresses.
6115         (arc_needs_pcl_p): Add GOTOFFPC.
6116         (arc_legitimate_pic_addr_p): Likewise.
6117         (arc_output_pic_addr_const): Likewise.
6118         (arc_legitimize_pic_address): Generate a pc-relative address using
6119         GOTOFFPC.
6120         (arc_output_libcall): Use @pcl syntax.
6121         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
6122         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
6123         (*movsi_insn): Use @pcl syntax.
6124         (doloop_begin_i): Likewise.
6126 2016-06-16  Martin Liska  <mliska@suse.cz>
6128         * predict.def: Define a new predictor.
6130 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
6132         * config/arc/arc.opt (mtp-regno): Update text.
6134 2016-06-16  Renlin Li  <renlin.li@arm.com>
6136         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
6138 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6140         PR target/71554
6141         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
6142         (setcc + and peephole2): Likewise.
6144         PR rtl-optimization/71532
6145         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
6146         memory slots.
6148 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6150         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
6151         DImode constants with XXSPLTIB in vector registers.
6152         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
6153         vsx_extract_<mode>_internal{1,2} into a single insn that handles
6154         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
6155         extraction of the element at the top of the register as a scalar
6156         value.
6157         (vsx_extract_<mode>_internal1): Likewise.
6158         (vsx_extract_<mode>_internal2): Likewise.
6159         * config/rs6000/constraints.md (wi constraint): Remove a comment
6160         about DImode not being allowed in Altivec registers.
6161         (wB constraint): New constraint for constants that can be
6162         generated in Altivec registers with VSPLTISW/VUPKHSW.
6163         * config/rs6000/predicates.md (xxspltib_constant_split): Update
6164         comments.
6165         (xxspltib_constant_nosplit): Likewise.
6166         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
6167         support for -mupper-regs-di to enable DImode to go into Altivec
6168         registers.
6169         (POWERPC_MASKS): Likewise.
6170         (power7 cpu): Likewise.
6171         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
6172         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
6173         for DImode being allowed in Altivec registers.  Update wi/wj
6174         constraints.  Set scalar_in_vmx_p flag.
6175         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
6176         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
6177         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
6178         (rs6000_opt_masks): Add -mupper-regs-di.
6179         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
6180         direct move to use wi and not wj.
6181         (lfiwzx): Likewise.
6182         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
6183         alternative.
6184         (floatunssi<mode>2_lfiwzx_mem): Likewise.
6185         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
6186         any VSX register, instead of just Altivec registers, to allow
6187         either operand to be an Altivec register or both.
6188         (fixuns_trunc<mode>di2_fctiduz): Likewise.
6189         (movdi_internal32): Add support for -mupper-regs-di.  Add support
6190         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
6191         the alternatives and attributes to be lined up to be easier to
6192         read.
6193         (movdi_internal64): Likewise.
6194         (64-bit DImode splitters): Change predicates to only split loading
6195         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
6196         load constants in ISA 3.0 or ISA 2.07 respectively.
6197         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6198         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
6199         mention -mcpu=power9 sets these options.
6200         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
6201         wB constraint.
6203 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6205         PR target/67353
6206         * config/avr/avr.c (avr_set_current_function): Warn misspelled
6207         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
6208         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
6209         by default to warn misspelled interrupt/ signal handler.
6210         * doc/invoke.texi (AVR Options): Document it. Update description
6211         for -nodevicelib option.
6213 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6215         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
6216         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
6217         (aarch64_<sur>shll2_n<mode>): Likewise.
6219 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
6221         PR middle-end/71529
6222         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
6223         DECL_CONTEXT for copied arguments.
6225 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
6227         PR tree-optimization/71483
6228         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
6229         for slp
6231 2016-06-15  Martin Liska  <mliska@suse.cz>
6233         * predict.c (tree_predict_by_opcode): Call predict_edge_def
6234         instead of predict_edge w/o a probability.
6236 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
6238         PR tree-optimization/71439
6239         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
6240         live PHIs.
6242 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6244         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
6245         register subregs in SET_SRC.
6247 2016-06-15  Richard Biener  <rguenther@suse.de>
6249         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
6250         store restrictions.
6252 2016-06-15  Richard Biener  <rguenther@suse.de>
6254         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
6255         not consider dependences between accesses that belong to the
6256         same group.
6257         (vect_analyze_data_ref_dependences): Do not analyze read-read
6258         or self-dependences.
6260 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6262         * spellcheck-tree.c: Include spellcheck-tree.h rather than
6263         spellcheck.h.
6264         (find_closest_identifier): Reimplement in terms of
6265         best_match<tree,tree>.
6266         * spellcheck-tree.h: New file.
6267         * spellcheck.c (struct edit_distance_traits<const char *>): New
6268         struct.
6269         (find_closest_string): Reimplement in terms of
6270         best_match<const char *, const char *>.
6271         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
6272         overload to spellcheck-tree.h.
6273         (find_closest_identifier): Likewise.
6274         (struct edit_distance_traits<T>): New template.
6275         (class best_match): New class.
6277 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6279         * selftest-run-tests.c (selftest::run_tests): Call
6280         selftest::spellcheck_tree_c_tests.
6281         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
6282         * spellcheck-tree.c: Include selftest.h and stringpool.h.
6283         (selftest::test_find_closest_identifier): New function.
6284         (selftest::spellcheck_tree_c_tests): New function.
6285         * spellcheck.c (selftest::test_find_closest_string): Verify that
6286         the order of the vec does not affect the results for this case.
6287         (selftest::test_data): New array.
6288         (selftest::test_metric_conditions): New function.
6289         (selftest::spellcheck_c_tests): Add a test of case-comparison.
6290         Call selftest::test_metric_conditions.
6292 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6294         * config/rs6000/rs6000-builtin.def (commentary): Typo.
6295         (BU_P9_MISC_1): Likewise.
6296         (BU_P9_64BIT_MISC_0): Likewise.
6297         (BU_P9_MISC_0): Likewise.
6299 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6301         * gcc-rich-location.c
6302         (gcc_rich_location::add_fixit_misspelled_id): New method.
6303         * gcc-rich-location.h
6304         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
6306 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
6308         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
6309         FreeBSD 11 and above.
6311 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
6313         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
6315 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6317         * expmed.h: Close parenthesis in "at your option" in copyright
6318         boilerplate.
6319         * lower-subreg.h: Likewise.
6321 2016-06-14  Richard Biener  <rguenther@suse.de>
6323         PR middle-end/71526
6324         * genmatch.c (expr::gen_transform): Use in_type for comparisons
6325         if available.
6327 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6329         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
6330         New function.
6331         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
6332         mask+shift version.
6333         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
6334         New prototype.
6335         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
6336         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
6338 2016-06-14  Richard Biener  <rguenther@suse.de>
6340         PR tree-optimization/71522
6341         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
6342         copying into float copying.
6344 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
6346         PR tree-optimization/71520
6347         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
6348         (replace_block_by): Move user labels from bb1 to bb2.
6350 2016-06-14  Richard Biener  <rguenther@suse.de>
6352         PR middle-end/71310
6353         PR bootstrap/71510
6354         * expr.h (get_bit_range): Declare.
6355         * expr.c (get_bit_range): Export.
6356         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
6357         word_mode again to constrain the bitfield access.
6359 2016-06-14  Richard Biener  <rguenther@suse.de>
6361         PR tree-optimization/71521
6362         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
6363         division int_const_binop against zero divisor.
6365 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
6367         * config/i386/i386.md (signbittf2): New expander.
6368         * config/i386/sse.md (ptesttf2): New insn pattern.
6370 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6372         PR bootstrap/71481
6373         * input.c (selftest::test_reading_source_line): Avoid reading from
6374         __FILE__ by creating a tempfile with known content and reading
6375         from that instead.
6377 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6379         * pretty-print.c (assert_pp_format_colored): Skip the test if
6380         GCC_COLORS is set.
6381         (test_pp_format): Remove comment about GCC_COLORS.
6383 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6385         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
6386         * pretty-print.c (assert_pp_format_va): Add location param and use
6387         it with ASSERT_STREQ_AT.
6388         (assert_pp_format): Add location param and pass it to
6389         assert_pp_format_va.
6390         (assert_pp_format_colored): Likewise.
6391         (ASSERT_PP_FORMAT_1): New.
6392         (ASSERT_PP_FORMAT_2): New.
6393         (ASSERT_PP_FORMAT_3): New.
6394         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
6395         explicitly, or implicitly via the above macros.
6396         * selftest.c (selftest::pass): Use a selftest::location rather
6397         than file and line.
6398         (selftest::fail): Likewise.  Print the function name.
6399         (selftest::fail_formatted): Likewise.
6400         (selftest::assert_streq): Use a selftest::location rather than
6401         file and line.
6402         * selftest.h (selftest::location): New struct.
6403         (SELFTEST_LOCATION): New macro.
6404         (selftest::pass): Accept a const location & rather than file
6405         and line.
6406         (selftest::fail): Likewise.
6407         (selftest::fail_formatted): Likewise.
6408         (selftest::assert_streq): Likewise.
6409         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
6410         (ASSERT_FALSE): Likewise.
6411         (ASSERT_EQ): Likewise.
6412         (ASSERT_NE): Likewise.
6413         (ASSERT_STREQ): Likewise.
6414         (ASSERT_PRED1): Likewise.
6415         (ASSERT_STREQ_AT): New macro.
6417 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
6419         * selftest.c (selftest::fail_formatted): New function.
6420         (selftest::assert_streq): New function.
6421         * selftest.h (selftests::fail_formatted): New decl.
6422         (selftest::assert_streq): New decl.
6423         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
6425 2016-06-13  Jeff Law  <law@redhat.com>
6427         PR tree-optimization/71403
6428         * tree-ssa-threadbackward.c
6429         (convert_and_register_jump_thread_path): No longer accept reference
6430         to path.  Do not pop items off the path anymore.
6431         (fsm_find_control_statement_thread_paths): Do not allow threading
6432         to a deeper loop nest.  Pop the last item off the path here rather
6433         than in convert_and_register_jump_thread_path.
6435 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
6436             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
6438         [AArch64] Emit division using the Newton series
6440         * config/aarch64/aarch64-protos.h
6441         (cpu_approx_modes): Add new member "division".
6442         (aarch64_emit_approx_div): Declare new function.
6443         * config/aarch64/aarch64.c
6444         (generic_approx_modes): New member "division".
6445         (exynosm1_approx_modes): Likewise.
6446         (xgene1_approx_modes): Likewise.
6447         (aarch64_emit_approx_div): Define new function.
6448         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
6449         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
6450         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
6451         * doc/invoke.texi (-mlow-precision-div): Describe new option.
6453 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
6454             Wilco Dijkstra  <wilco.dijkstra@arm.com>
6456         [AArch64] Emit square root using the Newton series
6458         * config/aarch64/aarch64-protos.h
6459         (aarch64_emit_approx_rsqrt): Replace with new function
6460         "aarch64_emit_approx_sqrt".
6461         (cpu_approx_modes): New member "sqrt".
6462         * config/aarch64/aarch64.c
6463         (generic_approx_modes): New member "sqrt".
6464         (exynosm1_approx_modes): Likewise.
6465         (xgene1_approx_modes): Likewise.
6466         (aarch64_emit_approx_rsqrt): Replace with new function
6467         "aarch64_emit_approx_sqrt".
6468         (aarch64_override_options_after_change_1): Handle new option.
6469         * config/aarch64/aarch64-simd.md
6470         (rsqrt<mode>2): Use new function instead.
6471         (sqrt<mode>2): New expansion and insn definitions.
6472         * config/aarch64/aarch64.md: Likewise.
6473         * config/aarch64/aarch64.opt
6474         (mlow-precision-sqrt): Add new option description.
6475         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
6477 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
6479         [AArch64] Add more choices for the reciprocal square root approximation
6481         Allow a target to prefer such operation depending on the operation mode.
6483         * config/aarch64/aarch64-protos.h
6484         (AARCH64_APPROX_MODE): New macro.
6485         (AARCH64_APPROX_{NONE,ALL}): Likewise.
6486         (cpu_approx_modes): New structure.
6487         (tune_params): New member "approx_modes".
6488         * config/aarch64/aarch64-tuning-flags.def
6489         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
6490         * config/aarch64/aarch64.c
6491         (generic_approx_modes): New core "cpu_approx_modes" structure.
6492         (exynosm1_approx_modes): Likewise.
6493         (xgene1_approx_modes): Likewise.
6494         (generic_tunings): New member "approx_modes".
6495         (cortexa35_tunings): Likewise.
6496         (cortexa53_tunings): Likewise.
6497         (cortexa57_tunings): Likewise.
6498         (cortexa72_tunings): Likewise.
6499         (exynosm1_tunings): Likewise.
6500         (thunderx_tunings): Likewise.
6501         (xgene1_tunings): Likewise.
6502         (use_rsqrt_p): New argument for the mode and use new member from
6503         "tune_params".
6504         (aarch64_builtin_reciprocal): Devise mode from builtin.
6505         (aarch64_optab_supported_p): New argument for the mode.
6506         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
6508 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6510         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
6511         RS6000_BTM_MODULO flag into the set of flags that are considered
6512         to be part of the common configuration.
6514 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6516         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
6517         difference unsigned.
6518         (vec_absdb): New macro for vector absolute difference unsigned
6519         byte.
6520         (vec_absdh): New macro for vector absolute difference unsigned
6521         half-word.
6522         (vec_absdw): New macro for vector absolute difference unsigned word.
6523         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
6524         (vadu<mode>3): New insn.
6525         (*p9_vadu<mode>3): New insn.
6526         * config/rs6000/rs6000-builtin.def (vadub): New built-in
6527         definition.
6528         (vaduh): New built-in definition.
6529         (vaduw): New built-in definition.
6530         (vadu): New overloaded built-in definition.
6531         (vadub): New overloaded built-in definition.
6532         (vaduh): New overloaded built-in definition.
6533         (vaduw): New overloaded built-in definition.
6534         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6535         overloaded vector absolute difference unsigned functions.
6536         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6537         the ISA 3.0 vector absolute difference unsigned built-in functions.
6539 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
6541         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
6542         update shared_lookup_references only once after changing operands.
6544 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
6546         PR middle-end/71373
6547         * tree-nested.c (convert_nonlocal_omp_clauses)
6548         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
6550         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
6551         * tree.def (CASE_LABEL_EXPR): Likewise.
6553 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6555         PR bootstrap/71481
6556         * input.c (test_builtins): Fix an assertion.
6558 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
6560         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
6561         (paritysi2): Ditto.
6562         (isinfxf2): Ditto.
6563         (isinf<mode>2): Ditto.
6565 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
6567         * ggc-tests.c (test_finalization): Only test need_finalization_p
6568         for GCC_VERSION >= 4003.
6570 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6572         * config/s390/vecintrin.h: Fix file description in comment.
6574 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6576         * config/s390/s390-builtin-types.def: Change builtin type naming
6577         scheme to match builtin-types.def.
6579 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
6581         * fold-const.c (optimize_minmax_comparison): Remove.
6582         (fold_comparison): Remove call to the above.
6583         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
6584         New transformations.
6586 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
6588         PR tree-optimization/71416
6589         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
6590         multiple entries
6592 2016-06-13  Martin Liska  <mliska@suse.cz>
6594         * predict.c (enum predictor_reason): Prefix enum with REASON_.
6595         (combine_predictions_for_insn): Likewise.
6596         (prune_predictions_for_bb): Likewise.
6597         (combine_predictions_for_bb): Likewise.
6599 2016-06-13  Richard Biener  <rguenther@suse.de>
6601         PR tree-optimization/71505
6602         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
6603         assert match comment.
6605 2016-06-13  Marek Polacek  <polacek@redhat.com>
6607         PR middle-end/71476
6608         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
6609         gimplify_switch_expr.
6610         (warn_switch_unreachable_r): New function.
6612 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6614         PR target/71379
6615         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
6616         one.
6618 2016-06-13  Richard Biener  <rguenther@suse.de>
6620         PR middle-end/64516
6621         * fold-const.c (fold_unary_loc): Preserve alignment when
6622         folding a VIEW_CONVERT_EXPR into a MEM_REF.
6624 2016-06-13  Martin Liska  <mliska@suse.cz>
6626         PR sanitizer/71458
6627         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
6628         w/ -fsanitize=bounds.
6630 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
6632         * config/i386/i386.c (ix86_init_builtins): Calculate
6633         FLOAT128_FTYPE_CONST_STRING function type only once.
6634         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
6635         built-in functions are available for x86-32 and x86-64 targets.
6637 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
6639         PR target/71241
6640         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
6641         New primitive type.
6642         (FLOAT128_FTYPE_CONST_STRING): New function type.
6643         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
6644         [IX86_BUILTIN_NANSQ]: Ditto.
6645         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
6646         (ix86_init_builtin_types): Declare const_string_type_node.
6647         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
6648         builtin functions.
6649         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
6650         * doc/extend.texi (x86 Built-in Functions): Document
6651         __builtin_nanq and __builtin_nansq.
6653 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
6655         PR target/71061
6656         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
6657         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
6658         length for pop patterns.
6659         (arm_attr_length_push_multi): Update comments.
6660         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
6661         attribute.
6662         (*pop_multiple_with_writeback_and_return): Likewise.
6663         (*pop_multiple_with_return): Likewise.
6665 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
6667         PR middle-end/71310
6668         * fold-const.c (optimize_bit_field_compare): Don't try to use
6669         word_mode unconditionally for reading the bit field, look at
6670         DECL_BIT_FIELD_REPRESENTATIVE instead.
6672 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
6674         PR middle-end/71478
6675         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
6676         vector integer type.
6678 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
6680         PR middle-end/71494
6681         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
6682         without LABEL_DECL, set *handled_ops_p to false instead of true.
6684 2016-06-10  Martin Sebor  <msebor@redhat.com>
6686         PR c/71392
6687         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
6688         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
6689         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
6690         them.
6691         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
6692         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
6693         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
6694         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
6695         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
6696         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
6697         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
6698         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
6700 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6702         * config/arm/arm.h (pool_vector_label,
6703         return_used_this_function): Remove.
6705 2016-06-10  Jeff Law  <law@redhat.com>
6707         PR tree-optimization/71335
6708         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
6709         zero length paths here.
6710         (convert_and_register_jump_thread_path): Remove hacks related to
6711         duplicated blocks in the jump thread path.
6712         (fsm_find_control_statement_thread_paths): Avoid putting the same
6713         block on the thread path twice, but ensure the thread path is
6714         unchanged from the caller's point of view.
6716 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
6718         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
6719         * predict.def (PRED_LOOP_BRANCH): Remove.
6721 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
6723         * Makefile.in (OBJS): Add ggc-tests.o.
6724         (GTFILES): Add ggc-tests.c.
6725         * ggc-tests.c: New file.
6726         * selftest-run-tests.c (selftest::run_tests): Call
6727         selftest::ggc_tests_c_tests.
6728         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
6730 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
6732         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
6734 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
6736         PR sanitizer/71480
6737         * varasm.c (place_block_symbol): Adjust alignment for asan protected
6738         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
6740 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
6742         * profile.c: Include cfgloop.h.
6743         (branch_prob): Compute estimated number of iterations.
6744         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
6745         recompute estimate number of iterations from profile.
6747 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6749         PR inline-asm/68843
6750         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
6751         must be grouped on top of stack.  Don't force early clobber
6752         on ordinary reg outputs.
6754 2016-06-10  Richard Biener  <rguenther@suse.de>
6756         * targhooks.c (default_builtin_vectorization_cost): Adjust
6757         vec_construct cost.
6759 2016-06-10  Richard Biener  <rguenther@suse.de>
6761         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
6762         to fold the RHS to a constant if possible.
6764 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6766         PR middle-end/71373
6767         * tree-nested.c (convert_nonlocal_omp_clauses)
6768         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
6769         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
6770         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
6772         * gimplify.c (gimplify_adjust_omp_clauses): Discard
6773         OMP_CLAUSE_TILE.
6774         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
6776         * omp-low.c (scan_sharing_clauses): Don't expect
6777         OMP_CLAUSE__CACHE_.
6779 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
6781         PR tree-optimization/71407
6782         PR tree-optimization/71416
6783         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
6784         BIT_FIELD_REF type.
6786 2016-06-10  Richard Biener  <rguenther@suse.de>
6788         PR middle-end/71477
6789         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
6791 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
6793         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
6795 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
6796             Jiong Wang  <jiong.wang@arm.com>
6798         PR rtl-optimization/70751
6799         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
6800         spilled into memory.
6802 2016-06-09  Jonathan Yong  <10walls@gmail.com>
6804         Revert:
6805         2015-09-21  Jonathan Yong  <10walls@gmail.com>
6807         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6808         sysroot/usr/lib/32api for additional win32 libraries,
6809         fixes failing Cygwin bootstrapping.
6811 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
6813         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
6814         Delete.
6816 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
6818         PR bootstrap/71471
6819         * pretty-print.c (pp_indent): Specify that %p is printed in a
6820         host-dependent manner.
6821         (test_pp_format): Remove the test for %p.
6823 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
6825         * config/mips/mips.c (mips_output_jump): Fix formatting.
6827 2016-06-09  Richard Biener  <rguenther@suse.de>
6829         PR tree-optimization/71462
6830         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
6831         removed blocks.
6833 2016-06-09  Martin Liska  <mliska@suse.cz>
6835         * predict.c (dump_prediction): Add new argument.
6836         (enum predictor_reason): New enum.
6837         (struct predictor_hash): New struct.
6838         (predictor_hash::hash): New function.
6839         (predictor_hash::equal): Likewise.
6840         (not_removed_prediction_p): New function.
6841         (prune_predictions_for_bb): Likewise.
6842         (combine_predictions_for_bb): Prune predictions.
6844 2016-06-09  Martin Liska  <mliska@suse.cz>
6846         * predict.c (filter_predictions): New function.
6847         (remove_predictions_associated_with_edge): Use the filter
6848         function.
6849         (equal_edge_p): New function.
6851 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
6853         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
6854         Correct usage of @samp vs @option, add @samp where appropriate.
6855         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
6856         Add armv6s-m and document it, as it is no official ARM name.
6858 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6860         * ifcvt.c (struct noce_if_info): Add transform_name field.
6861         (noce_try_move): Set if_info->transform_name to the function name.
6862         (noce_try_ifelse_collapse): Likewise.
6863         (noce_try_store_flag): Likewise.
6864         (noce_try_inverse_constants): Likewise.
6865         (noce_try_store_flag_constants): Likewise.
6866         (noce_try_addcc): Likewise.
6867         (noce_try_store_flag_mask): Likewise.
6868         (noce_try_cmove): Likewise.
6869         (noce_try_cmove_arith): Likewise.
6870         (noce_try_minmax): Likewise.
6871         (noce_try_abs): Likewise.
6872         (noce_try_sign_mask): Likewise.
6873         (noce_try_bitop): Likewise.
6874         (noce_convert_multiple_sets): Likewise.
6875         (noce_process_if_block): Print if_info->transform_name to
6876         dump_file if transformation succeeded.
6878 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6880         * config/arm/cortex-a57.md (cortex_a57_alu):
6881         Handle csel type.
6883 2016-06-08  Martin Sebor  <msebor@redhat.com>
6884             Jakub Jelinek  <jakub@redhat.com>
6886         PR c++/70507
6887         PR c/68120
6888         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
6889         BUILT_IN_MUL_OVERFLOW_P): New builtins.
6890         * builtins.c: Include gimple-fold.h.
6891         (fold_builtin_arith_overflow): Handle
6892         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6893         (fold_builtin_3): Likewise.
6894         * doc/extend.texi (Integer Overflow Builtins): Document
6895         __builtin_{add,sub,mul}_overflow_p.
6897 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
6899         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
6900         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
6902 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
6904         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
6905         Rewrite, looking one level down for records and arrays.
6907 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
6909         * pretty-print.c: Include "selftest.h".
6910         (pp_format): Fix comment.
6911         (identifier_to_locale): Likewise.
6912         (selftest::test_basic_printing): New function.
6913         (selftest::assert_pp_format): New function.
6914         (selftest::test_pp_format): New function.
6915         (selftest::pretty_print_c_tests): New function.
6916         * selftest-run-tests.c (selftest::run_tests): Call
6917         selftest::pretty_print_c_tests.
6918         * selftest.h (pretty_print_c_tests): New declaration.
6920 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
6922         * invoke.texi (max-loop-headers-insns): Document.
6923         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
6924         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
6925         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
6927 2016-06-08  Richard Biener  <rguenther@suse.de>
6929         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
6930         on strided SLP loads and fall back to scalar loads in case
6931         we can't chunk them.
6933 2016-06-08  Richard Biener  <rguenther@suse.de>
6935         PR tree-optimization/71452
6936         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
6937         type used for the SSA rewrite has enough precision to cover
6938         the dynamic type of the location.
6940 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
6941             Richard Biener  <rguenther@suse.de>
6943         PR c++/71448
6944         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
6945         the same as DECL_P (base0) for indirect_base0.  Use equality_code
6946         in one further place.
6948 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
6950         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
6951         to one word if the field is known to overlap other words.
6952         (extract_bit_field_1): Likewise.
6953         (store_split_bit_field): Remove compensating code.
6954         (extract_split_bit_field): Likewise.
6956 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
6958         PR debug/71432
6959         PR ada/71413
6960         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
6962 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
6964         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
6965         VDQF.
6966         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
6967         (arch64_addpv4sf): Delete.
6968         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
6969         "gen_aarch64_addpv4sf".
6970         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
6971         builtin.
6972         (vpadds_f32): Likewise.
6973         (vpaddq_f32): Likewise.
6974         (vpaddq_f64): Likewise.
6976 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
6978         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
6979         VALLF.
6980         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
6981         to VALLF.  Rename to "fabd<mode>3".
6982         "*fabd_scalar<mode>3): Delete.
6983         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
6984         Use builtin.
6985         (vabdd_f64): Likewise.
6986         (vabd_f32): Likewise.
6987         (vabd_f64): Likewise.
6988         (vabdq_f32): Likewise.
6989         (vabdq_f64): Likewise.
6991 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
6993         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
6994         VALLF.
6995         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
6996         "aarch64_rsqrts<mode>".
6997         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
6998         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
6999         builtin.
7000         (vrsqrtsd_f64): Likewise.
7001         (vrsqrts_f32): Likewise.
7002         (vrsqrts_f64): Likewise.
7003         (vrsqrtsq_f32): Likewise.
7004         (vrsqrtsq_f64): Likewise.
7006 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7008         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
7009         VALLF.
7010         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
7011         "aarch64_rsqrte<mode>".
7012         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
7013         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
7014         builtin.
7015         (vrsqrted_f64): Likewise.
7016         (vrsqrte_f32): Likewise.
7017         (vrsqrte_f64): Likewise.
7018         (vrsqrteq_f32): Likewise.
7019         (vrsqrteq_f64): Likewise.
7021 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7023         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
7024         (ucvtf): Likewise.
7025         (fcvtzs): Likewise.
7026         (fcvtzu): Likewise.
7027         * config/aarch64/aarch64-simd.md
7028         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
7029         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
7030         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
7031         Use builtin.
7032         (vcvt_n_f32_u32): Likewise.
7033         (vcvt_n_s32_f32): Likewise.
7034         (vcvt_n_u32_f32): Likewise.
7035         (vcvtq_n_f32_s32): Likewise.
7036         (vcvtq_n_f32_u32): Likewise.
7037         (vcvtq_n_f64_s64): Likewise.
7038         (vcvtq_n_f64_u64): Likewise.
7039         (vcvtq_n_s32_f32): Likewise.
7040         (vcvtq_n_s64_f64): Likewise.
7041         (vcvtq_n_u32_f32): Likewise.
7042         (vcvtq_n_u64_f64): Likewise.
7043         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
7044         (VSDQ_SDI): Likewise.
7045         (fcvt_target): Support V4DI, V4SI and V2SI.
7046         (FCVT_TARGET): Likewise.
7048 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7050         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
7051         (TYPES_BINOP_SUS): Likewise.
7052         (aarch64_simd_builtin_data): Update include file name.
7053         (aarch64_builtins): Likewise.
7054         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
7055         for conversion between scalar float-point and fixed-point.
7056         (ucvtf): Likewise.
7057         (fcvtzs): Likewise.
7058         (fcvtzu): Likewise.
7059         * config/aarch64/aarch64.md
7060         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
7061         pattern for conversion between scalar float to fixed-pointer.
7062         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
7063         (UNSPEC_FCVTZS): New UNSPEC enumeration.
7064         (UNSPEC_FCVTZU): Likewise.
7065         (UNSPEC_SCVTF): Likewise.
7066         (UNSPEC_UCVTF): Likewise.
7067         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
7068         Use builtin.
7069         (vcvtd_n_f64_u64): Likewise.
7070         (vcvtd_n_s64_f64): Likewise.
7071         (vcvtd_n_u64_f64): Likewise.
7072         (vcvtd_n_f32_s32): Likewise.
7073         (vcvts_n_f32_u32): Likewise.
7074         (vcvtd_n_s32_f32): Likewise.
7075         (vcvts_n_u32_f32): Likewise.
7076         * config/aarch64/iterators.md (fcvt_target): Support integer to float
7077         mapping.
7078         (FCVT_TARGET): Likewise.
7079         (FCVT_FIXED2F): New iterator.
7080         (FCVT_F2FIXED): Likewise.
7081         (fcvt_fixed_insn): New define_int_attr.
7083 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7085         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
7086         some statements was removed.
7088 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
7090         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
7091         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
7092         (vect_can_advance_ivs_p): likewise.
7093         (vect_update_ivs_after_vectorizer): likewise.
7094         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
7095         (vect_analyze_scalar_cycles_1): likewise.
7096         (vect_analyze_loop_operations): likewise.
7097         (report_vect_op): likewise.
7098         (vect_is_slp_reduction): likewise.
7099         (vect_is_simple_reduction): likewise.
7100         (get_initial_def_for_induction): likewise.
7101         (vect_transform_loop): likewise.
7102         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
7103         (vect_recog_sad_pattern): likewise.
7104         (vect_recog_widen_sum_pattern): likewise.
7105         (vect_recog_widening_pattern): likewise.
7106         (vect_recog_divmod_pattern): likewise.
7107         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
7108         (vect_analyze_slp_instance): likewise.
7109         (vect_transform_slp_perm_load): likewise.
7110         (vect_schedule_slp_instance): likewise.
7112 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7114         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
7115         (return_prediction): PRED_CONST_RETURN predict return as not taken.
7116         * predict.def (PRED_CONTINUE): Change hitrate 50->67
7117         (PRED_LOOP_BRANCH): Document predictor as broken.
7118         (PRED_LOOP_EXIT): Change hitrate 91->92.
7119         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
7120         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
7121         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
7122         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
7123         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
7124         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
7125         (PRED_CALL): Chane hitrate 71->67.
7126         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
7127         (PRED_GOTO): Document as unused right now.
7128         (PRED_CONST_RETURN): Change hitrate 67->69
7129         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
7130         (PRED_NULL_RETURN): Change hitrate 91->90.
7131         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
7132         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
7133         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
7135 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
7137         * config/rs6000/altivec.h: Add __builtin_vec_mul.
7138         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
7139         special case Altivec builtin.
7140         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7141         VSX_BUILTIN_VEC_MUL (replaced with special case code).
7142         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7143         code for ALTIVEC_BUILTIN_VEC_MUL.
7144         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7145         for __builtin_vec_mul.
7147 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
7149         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
7150         -mno-htm.
7152 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
7154         * spellcheck.c (selftest::test_find_closest_string): New function.
7155         (spellcheck_c_tests): Call the above.
7157 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7159         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
7161 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
7163         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
7164         Yv=Yv,C alternatives.
7166 2016-06-07  Richard Biener  <rguenther@suse.de>
7168         PR c/61564
7169         * common.opt (ffast-math): Make Optimization.
7171 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
7172             Prachi Godbole  <prachi.godbole@imgtec.com>
7174         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
7175         `fabs' and `fneg' type attributes.
7176         (p5600_fpu_fabs): Add `fmove' to the comment.
7178 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7180         * gimple.c: Include builtins.h
7181         (gimple_inexpensive_call_p): New function.
7182         * gimple.h (gimple_inexpensive_call_p): Declare.
7183         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
7184         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
7185         fix formatting.
7187 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
7189         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
7190         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
7191         warning_at_rich_loc, warning_n, pedwarn, permerror,
7192         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
7193         sorry, fatal_error, internal_error, internal_error_no_backtrace):
7194         Use the above.
7196 2016-06-07  Richard Biener  <rguenther@suse.de>
7198         PR tree-optimization/71428
7199         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
7200         BIT_FIELD_REF op vs. load.
7202 2016-06-07  Richard Biener  <rguenther@suse.de>
7204         PR middle-end/71423
7205         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
7206         for signed ops.
7208 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
7210         * config/pa/pa.md (call): Generate indirect long calls to non-local
7211         functions on TARGET_64BIT.
7212         (call_value): Likewise.
7214 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
7216         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
7217         pattern and subsequent splitters.
7218         (call_val_reg_64bit_post_reload): Likewise.
7220 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7222         PR middle-end/71408
7223         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
7224         propagate_op_to_single_use.
7226 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7228         PR middle-end/71281
7229         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
7231 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
7233         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
7234         (enum x86_dirflag_state): New enum.
7235         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
7236         (machine_function): Remove needs_cld.
7237         (ix86_current_function_needs_cld): Remove.
7238         * config/i386/i386.c (ix86_set_func_type): Set
7239         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
7240         (ix86_expand_prologue): Do not emit CLD here.
7241         (ix86_dirflag_mode_needed): New function.
7242         (ix86_dirflag_mode_entry): Ditto.
7243         (ix86_mode_needed): Handle X86_DIRFLAG entity.
7244         (ix86_mode_after): Ditto.
7245         (ix86_mode_entry): Ditto.
7246         (ix86_mode_exit): Ditto.
7247         (ix86_emit_mode_set): Ditto.
7248         * config/i386/i386.md (strmov_singleop): Set
7249         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
7250         Do not set ix86_current_function_needs_cld.
7251         (rep_mov): Ditto.
7252         (strset_singleop): Ditto.
7253         (rep_stos): Ditto.
7254         (cmpstrnqi_nz_1): Ditto.
7255         (cmpstrnqi_1): Ditto.
7256         (strlenqi_1): Ditto.
7258 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
7260         PR tree-optimization/71259
7261         * tree-vect-slp.c (vect_get_constant_vectors): For
7262         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
7263         one for constant op, and use COND_EXPR for non-constant.
7265 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
7267         * Makefile.in (OBJS): Add function-tests.o,
7268         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
7269         selftest-run-tests.o.
7270         (OBJS-libcommon): Add selftest.o.
7271         (OBJS-libcommon-target): Add selftest.o.
7272         (all.internal): Add "selftest".
7273         (all.cross): Likewise.
7274         (selftest): New phony target.
7275         (s-selftest): New target.
7276         (selftest-gdb): New phony target.
7277         (COLLECT2_OBJS): Add selftest.o.
7278         * bitmap.c: Include "selftest.h".
7279         (selftest::test_gc_alloc): New function.
7280         (selftest::test_set_range): New function.
7281         (selftest::test_clear_bit_in_middle): New function.
7282         (selftest::test_copying): New function.
7283         (selftest::test_bitmap_single_bit_set_p): New function.
7284         (selftest::bitmap_c_tests): New function.
7285         * common.opt (fself-test): New.
7286         * diagnostic-show-locus.c: Include "selftest.h".
7287         (make_range): New function.
7288         (test_range_contains_point_for_single_point): New function.
7289         (test_range_contains_point_for_single_line): New function.
7290         (test_range_contains_point_for_multiple_lines): New function.
7291         (assert_eq): New function.
7292         (test_get_line_width_without_trailing_whitespace): New function.
7293         (selftest::diagnostic_show_locus_c_tests): New function.
7294         * et-forest.c: Include "selftest.h".
7295         (selftest::test_single_node): New function.
7296         (selftest::test_simple_tree): New function.
7297         (selftest::test_disconnected_nodes): New function.
7298         (selftest::et_forest_c_tests): New function.
7299         * fold-const.c: Include "selftest.h".
7300         (selftest::assert_binop_folds_to_const): New function.
7301         (selftest::assert_binop_folds_to_nonlvalue): New function.
7302         (selftest::test_arithmetic_folding): New function.
7303         (selftest::fold_const_c_tests): New function.
7304         * function-tests.c: New file.
7305         * gimple.c: Include "selftest.h".
7306         Include "gimple-pretty-print.h".
7307         (selftest::verify_gimple_pp): New function.
7308         (selftest::test_assign_single): New function.
7309         (selftest::test_assign_binop): New function.
7310         (selftest::test_nop_stmt): New function.
7311         (selftest::test_return_stmt): New function.
7312         (selftest::test_return_without_value): New function.
7313         (selftest::gimple_c_tests): New function.
7314         * hash-map-tests.c: New file.
7315         * hash-set-tests.c: New file.
7316         * input.c: Include "selftest.h".
7317         (selftest::assert_loceq): New function.
7318         (selftest::test_accessing_ordinary_linemaps): New function.
7319         (selftest::test_unknown_location): New function.
7320         (selftest::test_builtins): New function.
7321         (selftest::test_reading_source_line): New function.
7322         (selftest::input_c_tests): New function.
7323         * rtl-tests.c: New file.
7324         * selftest-run-tests.c: New file.
7325         * selftest.c: New file.
7326         * selftest.h: New file.
7327         * spellcheck.c: Include "selftest.h".
7328         (selftest::levenshtein_distance_unit_test_oneway): New function,
7329         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
7330         (selftest::levenshtein_distance_unit_test): Likewise.
7331         (selftest::spellcheck_c_tests): Likewise.
7332         * toplev.c: Include selftest.h.
7333         (toplev::run_self_tests): New.
7334         (toplev::main): Handle -fself-test.
7335         * toplev.h (toplev::run_self_tests): New.
7336         * tree.c: Include "selftest.h".
7337         (selftest::test_integer_constants): New function.
7338         (selftest::test_identifiers): New function.
7339         (selftest::test_labels): New function.
7340         (selftest::tree_c_tests): New function.
7341         * tree-cfg.c: Include "selftest.h".
7342         (selftest::push_fndecl): New function.
7343         (selftest::test_linear_chain): New function.
7344         (selftest::test_diamond): New function.
7345         (selftest::test_fully_connected): New function.
7346         (selftest::tree_cfg_c_tests): New function.
7347         * vec.c: Include "selftest.h".
7348         (selftest::safe_push_range): New function.
7349         (selftest::test_quick_push): New function.
7350         (selftest::test_safe_push): New function.
7351         (selftest::test_truncate): New function.
7352         (selftest::test_safe_grow_cleared): New function.
7353         (selftest::test_pop): New function.
7354         (selftest::test_safe_insert): New function.
7355         (selftest::test_ordered_remove): New function.
7356         (selftest::test_unordered_remove): New function.
7357         (selftest::test_block_remove): New function.
7358         (selftest::reverse_cmp): New function.
7359         (selftest::test_qsort): New function.
7360         (selftest::vec_c_tests): New function.c.
7361         * wide-int.cc: Include selftest.h and wide-int-print.h.
7362         (selftest::from_int <wide_int>): New function.
7363         (selftest::from_int <offset_int>): New function.
7364         (selftest::from_int <widest_int>): New function.
7365         (selftest::assert_deceq): New function.
7366         (selftest::assert_hexeq): New function.
7367         (selftest::test_printing <VALUE_TYPE>): New function template.
7368         (selftest::test_ops <VALUE_TYPE>): New function template.
7369         (selftest::test_comparisons <VALUE_TYPE>): New function template.
7370         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
7371         template.
7372         (selftest::wide_int_cc_tests): New function.
7374 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7376         PR middle-end/37780
7377         * ifcvt.c (noce_try_ifelse_collapse): New function.
7378         Declare prototype.
7379         (noce_process_if_block): Call noce_try_ifelse_collapse.
7380         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
7381         (simplify_ternary_operation): Use the above to simplify
7382         conditional CLZ/CTZ expressions.
7384 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7386         PR middle-end/37780
7387         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
7388         define_insn_and_split.
7390 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7392         PR middle-end/37780
7393         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
7395 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7397         PR c/24414
7398         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
7399         Implicitly clobber memory for basic asm with non-empty assembler
7400         string.  Use targetm.md_asm_adjust also here.
7401         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
7402         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
7403         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
7404         non-empty assembler string.
7405         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
7406         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
7407         (decode_asm_operands): Handle basic asm in PARALLEL block.
7408         (extract_insn): Handle basic asm in PARALLEL block.
7409         * doc/extend.texi: Mention new behavior of basic asm.
7410         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
7411         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
7412         branch_needs_nop_p): Use asm_noperands.
7414 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
7416         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
7417         Include the M7 SPARC DFA scheduler.
7418         New attribute v3pipe.
7419         Annotate insns with v3pipe where appropriate.
7420         Define cpu_feature vis4.
7421         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
7422         Add (V8QI "8") to vbits.
7423         Add insns {add,sub}v8qi3
7424         Add insns ss{add,sub}v8qi3
7425         Add insns us{add,sub}{v8qi,v4hi}3
7426         Add insns {min,max}{v8qi,v4hi,v2si}3
7427         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
7428         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
7429         * config/sparc/niagara4.md: Add a comment explaining the
7430         discrepancy between the documented latenty numbers and the
7431         implemented ones.
7432         * config/sparc/niagara7.md: New file.
7433         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
7434         supports SPARC5 and VIS 4.0 instructions.
7435         * configure: Regenerate.
7436         * config.in: Likewise.
7437         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
7438         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
7439         TARGET_CPU_niagara7.
7440         (ASM_CPU64_DEFAULT_SPEC): Likewise.
7441         (CPP_CPU_SPEC): Handle niagara7.
7442         (ASM_CPU_SPEC): Likewise.
7443         * config/sparc/sparc-opts.h (processor_type): Add
7444         PROCESSOR_NIAGARA7.
7445         (mvis4): New option.
7446         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
7447         (AS_NIAGARA7_FLAG): Define.
7448         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
7449         (CPP_CPU64_DEFAULT_SPEC): Likewise.
7450         (CPP_CPU_SPEC): Handle niagara7.
7451         (ASM_CPU_SPEC): Likewise.
7452         * config/sparc/sparc.c (niagara7_costs): Define.
7453         (sparc_option_override): Handle niagara7 and adjust cache-related
7454         parameters with better values for niagara cpus.  Also support VIS4.
7455         (sparc32_initialize_trampoline): Likewise.
7456         (sparc_use_sched_lookahead): Likewise.
7457         (sparc_issue_rate): Likewise.
7458         (sparc_register_move_cost): Likewise.
7459         (dump_target_flag_bits): Support VIS4.
7460         (sparc_vis_init_builtins): Likewise.
7461         (sparc_builtins): Likewise.
7462         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
7463         VIS4 4.0.
7464         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
7465         UltraSparc M7.
7466         * config/sparc/sparc.opt (sparc_processor_type): New value
7467         niagara7.
7468         * config/sparc/visintrin.h (__attribute__): Prototypes for the
7469         VIS4 builtins.
7470         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
7471         -mvis4.
7472         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
7473         VIS4 builtins.
7475 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
7477         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
7479 2016-06-06  Richard Biener  <rguenther@suse.de>
7481         PR tree-optimization/71398
7482         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
7483         remove edges.
7485 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
7487         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
7488         ft32_expand_prolog, ft32_expand_epilogue):
7489         Handle pretend_args.
7490         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
7491         * config/ft32/ft32.md: Add pretend_returner.
7493 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
7495         PR target/71389
7496         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7497         Copy op1 RTX to avoid invalid sharing.
7498         (ix86_expand_vector_move_misalign): Ditto.
7500 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
7502         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
7503         ATTRIBUTE_UNUSED.
7505 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
7507         * predict.c (predicted_by_loop_heuristics_p): New function.
7508         (predict_iv_comparison): Use it.
7509         (predict_loops): Walk from innermost loops; do not predict edges
7510         leaving multiple loops multiple times; implement
7511         PRED_LOOP_ITERATIONS_MAX heuristics.
7512         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
7514 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
7516         * cfg.c (check_bb_profile): Do not report mismatched profiles when
7517         only edges out of BB are EH edges.
7519 2016-06-04  Martin Sebor  <msebor@redhat.com>
7520             Marcin Baczyński  <marbacz@gmail.com>
7522         PR c/48116
7523         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
7524         a void expression in a void function.
7526 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
7528         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
7529         aux; dump reasons of decisions.
7530         (should_duplicate_loop_header_p): Likewise.
7531         (do_while_loop_p): Likewise.
7532         (ch_base::copy_headers): Dump asi num insns duplicated.
7534 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
7536         PR tree-optimization/71405
7537         * tree-ssa.c (execute_update_addresses_taken): For clobber with
7538         incompatible type, build a new clobber with the right type instead
7539         of building a VIEW_CONVERT_EXPR around it.
7541 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
7543         PR tree-optimization/52171
7544         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
7545         by_pieces_ninsns instead of move_by_pieces_ninsns.
7547 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
7549         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
7550         for reg+reg addressing mode.
7552 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7554         * rs6000-c.c (c/c-tree.h): Add #include.
7555         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
7556         in C++ when found in the base position of vec_ld or vec_st.
7558 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
7560         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
7561         use of profile unless profile status is PROFILE_READ.
7562         * profile.c (compute_branch_probabilities): Set profile status
7563         only after reporting predictor hitrates.
7565 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7567         PR target/71276
7568         PR target/71277
7569         * common.opt (ffp-int-builtin-inexact): New option.
7570         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
7571         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
7572         (ceil@var{m}2): Document dependence on this option.
7573         * ipa-inline-transform.c (inline_call): Handle
7574         flag_fp_int_builtin_inexact.
7575         * ipa-inline.c (can_inline_edge_p): Likewise.
7576         * config/i386/i386.md (rintxf2): Do not test
7577         flag_unsafe_math_optimizations.
7578         (rint<mode>2_frndint): New define_insn.
7579         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
7580         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
7581         for 387 instead of extending and truncating.
7582         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
7583         !flag_trapping_math instead of flag_unsafe_math_optimizations.
7584         Change to frndint<mode>2_<rounding>.
7585         (frndintxf2_<rounding>_i387): Likewise.  Change to
7586         frndint<mode>2_<rounding>_i387.
7587         (<rounding_insn>xf2): Likewise.
7588         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
7589         !flag_trapping_math instead of flag_unsafe_math_optimizations for
7590         x87.  Test TARGET_ROUND || !flag_trapping_math ||
7591         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
7592         SSE.  Use ROUND_NO_EXC in constant operand of
7593         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
7594         for 387 instead of extending and truncating.
7596 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7597             Julia Koval  <julia.koval@intel.com>
7599         PR target/66960
7600         PR target/67630
7601         PR target/67634
7602         PR target/67841
7603         PR target/68037
7604         PR target/68618
7605         PR target/68661
7606         PR target/69575
7607         PR target/69596
7608         PR target/69734
7609         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
7610         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
7611         all registers, except for function return registers if there are
7612         no caller-saved registers.
7613         (ix86_set_func_type): New function.
7614         (ix86_set_current_function): Call ix86_set_func_type to set
7615         no_caller_saved_registers and func_type.  Call reinit_regs if
7616         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
7617         nor x87 instructions in interrupt handler nor function with
7618         no_caller_saved_registers attribute.
7619         (ix86_function_ok_for_sibcall): Return false if there are no
7620         caller-saved registers.
7621         (type_natural_mode): Don't warn ABI change for MMX in interrupt
7622         handler.
7623         (ix86_function_arg_advance): Skip for callee in interrupt handler.
7624         (ix86_function_arg): Return special arguments in interrupt handler.
7625         (ix86_promote_function_mode): Promote pointer to word_mode only
7626         for normal functions.
7627         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
7628         interrupt handler.
7629         (ix86_epilogue_uses): New function.
7630         (ix86_hard_regno_scratch_ok): Likewise.
7631         (ix86_save_reg): Preserve all registers in interrupt handler
7632         after reload.  Preserve all registers, except for function return
7633         registers, if there are no caller-saved registers after reload.
7634         (find_drap_reg): Always use callee-saved register if there are
7635         no caller-saved registers.
7636         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
7637         for interrupt handler.
7638         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
7639         Emit cld instruction if stringops are used in interrupt handler
7640         or interrupt handler isn't a leaf function.
7641         (ix86_expand_epilogue): Generate interrupt return for interrupt
7642         handler and pop the 'ERROR_CODE' off the stack before interrupt
7643         return in exception handler.
7644         (ix86_expand_call): Disallow calling interrupt handler directly.
7645         If there are no caller-saved registers, mark all registers that
7646         are clobbered by the call which returns as clobbered.
7647         (ix86_handle_no_caller_saved_registers_attribute): New function.
7648         (ix86_handle_interrupt_attribute): Likewise.
7649         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
7650         attributes.
7651         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
7652         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
7653         accumulation in interrupt function if stack may be realigned to
7654         avoid DRAP.
7655         (EPILOGUE_USES): New.
7656         (function_type): New enum.
7657         (machine_function): Add func_type and no_caller_saved_registers.
7658         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
7659         (interrupt_return): New pattern.
7660         * doc/extend.texi: Document x86 interrupt and
7661         no_caller_saved_registers attributes.
7663 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
7665         PR tree-optimization/52171
7666         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
7667         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
7668         Look for constant strings.  Move some code to emit_block_cmp_hints
7669         and use it.
7670         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
7671         * defaults.h (COMPARE_MAX_PIECES): New macro.
7672         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
7673         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
7674         (clear_by_pieces_1): Don't declare.  Move definition before use.
7675         (can_do_by_pieces): New static function.
7676         (can_move_by_pieces): Use it.  Return bool.
7677         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
7678         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
7679         (class pieces_addr); New.
7680         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
7681         pieces_addr::adjust, pieces_addr::increment_address,
7682         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
7683         functions for it.
7684         (class op_by_pieces_d): New.
7685         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
7686         functions for it.
7687         (class move_by_pieces_d, class compare_by_pieces_d,
7688         class store_by_pieces_d): New subclasses of op_by_pieces_d.
7689         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
7690         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
7691         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
7692         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
7693         compare_by_pieces_d::finish_mode): New member functions.
7694         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
7695         functions.
7696         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
7697         (emit_block_cmp_hints): New function.
7698         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
7699         use the newly defined classes.
7700         * expr.h (by_pieces_constfn): New typedef.
7701         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
7702         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
7703         (move_by_pieces_ninsns): Don't declare.
7704         (can_move_by_pieces): Change return value to bool.
7705         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
7706         (compare_by_pieces_branch_ratio): New hook.
7707         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
7708         (by_pieces_ninsns): Declare.
7709         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
7710         COMPARE_BY_PIECES.
7711         (default_compare_by_pieces_branch_ratio): New function.
7712         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
7713         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
7714         * doc/tm.texi: Regenerate.
7715         * tree-ssa-strlen.c: Include "builtins.h".
7716         (handle_builtin_memcmp): New static function.
7717         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
7718         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
7720 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7722         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
7723         relevant stmts which are simple and invariant.
7724         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
7725         instead of simple and invariant
7727 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7729         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
7730         (vectorizable_reduction): Check for new relevant state.
7731         (vectorizable_live_operation): vectorize live stmts using
7732         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
7733         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
7734         (vect_stmt_relevant_p): Check for stmts which are only used live.
7735         (process_use): Use of a stmt does not inherit it's live value.
7736         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
7737         (vect_analyze_stmt): Check for new relevant state.
7738         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
7739         outside the loop, but not inside it.
7741 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7743         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
7744         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
7745         (vect_get_vec_def_for_operand): Split out code.
7747 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
7749         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
7751 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
7753         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
7755 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7757         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
7759 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
7761         PR middle-end/71387
7762         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
7763         to noreturn e->callee->decl that has void return type and void
7764         arguments, adjust gimple_call_fntype and remove lhs even if it had
7765         previously addressable type.
7767 2016-06-02  Jeff Law  <law@redhat.com>
7769         PR tree-optimization/71328
7770         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
7771         error when checking for a jump back onto the copied path.
7773 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
7775         * config/microblaze/microblaze.c (get_branch_target): Add return
7776         NULL_RTX for the non-CALL_P case.
7777         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
7778         (insert_wic): Remove unused local "j".
7780 2016-06-02  Martin Liska  <mliska@suse.cz>
7782         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
7784 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
7785             Julia Koval  <julia.koval@intel.com>
7787         * function.c (assign_parm_setup_stack): Force source into a
7788         register if needed.
7789         * target.def (function_incoming_arg): Update documentation to
7790         allow arbitrary address computation based on hard register.
7791         * doc/tm.texi: Regenerated.
7793 2016-06-02  Martin Liska  <mliska@suse.cz>
7795         * predict.c (combine_predictions_for_bb): Fix first match in
7796         cases where a first predictor contains more than one occurence
7797         in list of predictors.  Take the best value in such case.
7799 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7801         PR rtl-optimization/71295
7802         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
7803         offset would go over the size of the inner mode reject it.
7805 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
7807         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
7808         x=x,x and v=v,m instead of x=x,m.
7810         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
7811         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
7812         alternative to v=rm,C.
7814         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
7815         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
7816         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
7817         instead of vex for the last two above mentioned alternatives.
7819 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7821         PR target/70830
7822         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
7824 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
7826         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
7828 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
7830         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
7831         from int to unsigned.
7833 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
7835         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
7836         alternatives, eliminating preferred register class.  Add support
7837         for the MTVSRDD instruction in ISA 3.0.
7838         (vsx_splat_v4si_internal): Use splat_input_operand instead of
7839         reg_or_indexed_operand.
7840         (vsx_splat_v4sf_internal): Likewise.
7842 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
7844         PR target/71186
7845         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
7846         for loading up all 0's or all 1's.
7848 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7850         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
7852 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
7854         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
7855         extension.
7856         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
7857         * gcc.c (set_source_date_epoch_envvar): New function, sets
7858         the SOURCE_DATE_EPOCH environment variable to the current time.
7860 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
7862         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
7863         the factor for live Phi nodes.
7865 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
7867         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
7868         * tree-parloops.c (parallelize_loops): likewise.
7869         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
7870         tree_unswitch_outer_loop): likewise.
7872 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
7874         PR middle-end/71371
7875         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
7876         around creation of the temporary.
7878 2016-06-01  Richard Biener  <rguenther@suse.de>
7880         PR tree-optimization/71366
7881         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
7882         (unloop_loops): Move removing edges here ...
7883         (try_unroll_loop_completely): ... from here.
7884         (try_peel_loop): ... and here.
7885         (tree_unroll_loops_completely_1): Track parent loops via
7886         bitmap of header BBs.
7887         (tree_unroll_loops_completely): Adjust for that.
7889 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7891         * config/rs6000/altivec.h (vec_slv): New macro.
7892         (vec_srv): New macro.
7893         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
7894         (UNSPEC_VSRV): New value.
7895         (vslv): New insn.
7896         (vsrv): New insn.
7897         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
7898         (vsrv): New builtin definition.
7899         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
7900         define argument types for new builtin.
7901         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
7902         new builtin.
7903         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
7904         functions.
7906 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
7907             Jocelyn Mayer  <l_indien@magic.fr>
7909         PR target/67310
7910         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
7911         detect processor family for signature_CENTAUR_ebx.
7912         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
7913         signature_CENTAUR_ebx.
7914         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
7915         <default>: Pass x86-64 for has_longmode.
7917 2016-06-01  Nathan Sidwell  <nathan@acm.org>
7919         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
7920         undefined weak.
7922 2016-06-01  Richard Biener  <rguenther@suse.de>
7924         PR tree-optimization/71261
7925         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
7926         of stmts successfully put in the bool pattern.  Remove
7927         single-use restriction.
7928         (adjust_bool_pattern_cast): Add cast at the use site via the
7929         pattern def sequence.
7930         (adjust_bool_pattern): Remove recursion, maintain a hash-map
7931         of patterned defs.  Use the pattern def seqence instead of
7932         multiple independent patterns.
7933         (sort_after_uid): New qsort compare function.
7934         (adjust_bool_stmts): New function to process stmts in the bool
7935         pattern in IL order.
7936         (vect_recog_bool_pattern): Adjust.
7937         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
7938         (ifcvt_walk_pattern_tree): Likewise.
7939         (stmt_is_root_of_bool_pattern): Likewise.
7940         (ifcvt_repair_bool_pattern): Likewise.
7941         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
7943 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
7945         * loop-unroll.c (decide_unroll_constant_iterations,
7946         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
7947         likely upper bounds.
7948         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
7950 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
7952         * tree-core.h (enum omp_clause_code): Remove
7953         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
7955 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7957         * config/arm/sync.md (arm_store_exclusive<mode>):
7958         Use 'H' output modifier on operands[2] rather than creating a new
7959         entry in out-of-bounds memory of the operands array.
7960         (arm_store_release_exclusivedi): Likewise.
7962 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7964         * config/arm/arm.c (arm_fusion_enabled_p): New function.
7965         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
7966         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
7967         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
7969 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
7971         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
7972         into account live statements for mask producers.
7974 2016-06-01  Richard Biener  <rguenther@suse.de>
7976         PR tree-optimization/71311
7977         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
7978         restrict to non-INTEGER_CST @0.
7980 2016-06-01  Richard Biener  <rguenther@suse.de>
7982         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
7983         (relational patterns): Use :c to avoid pattern duplications.
7985 2016-06-01  Richard Biener  <rguenther@suse.de>
7987         * genmatch.c (comparison_code_p): New predicate.
7988         (swap_tree_comparison): New function.
7989         (commutate): Add for_vec parameter to append new for entries.
7990         Support commutating relational operators by swapping it alongside
7991         operands.
7992         (lower_commutative): Adjust.
7993         (dt_simplify::gen): Do not pass artificial operators to gen
7994         functions.
7995         (decision_tree::gen): Do not add artificial operators as parameters.
7996         (parser::parse_expr): Verify operator commutativity when :c is
7997         applied.  Allow :C to override this.
7998         * match.pd: Adjust patterns to use :C instead of :c where required.
8000 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
8002         PR tree-optimization/71077
8003         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
8004         the combining step, use boolean_false_node and boolean_true_node
8005         as the designated false/true return values.
8007 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8009         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
8010         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
8011         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
8012         PRED_LOOP_EXIT.
8014 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8016         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
8017         of flags impliying the register renaming.
8018         * toplev.c (process_options): Do not imply flag_rename_registers with
8019         loop peeling.
8021 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8023         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
8024         default implementation.
8026 2016-05-31  Nathan Sidwell  <nathan@acm.org>
8028         * dwarf2out.c (cur_line_info_table): Add GTY marker.
8030 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8032         * config/sh/constraints.md (b): Remove constraint.
8033         * config/sh/predicates.md (arith_reg_operand): Remove
8034         TARGET_REGISTER_P.
8035         * config/sh/sh-modes.def (PDI): Remove.
8036         * config/sh/sh.c (sh_target_reg_class,
8037         sh_optimize_target_register_callee_saved): Remove functions.
8038         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
8039         (sh_expand_epilogue): Update comment.
8040         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
8041         sh_secondary_reload): Remove TARGET_REGS related code.
8042         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
8043         TARGET_REGISTER_P): Remove macros.
8044         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
8045         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
8046         TR1_REG, TR2_REG): Remove constants.
8047         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
8049 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8051         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
8052         define_expand patterns.
8053         (adddi3_compact): Rename to adddi3.
8054         (subdi3_compact): Rename to subdi3.
8055         (*negdi2): Rename to negdi2.
8056         (*abs<mode>2): Rename to abs<mode>2.
8058 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8060         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
8061         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
8062         (atomic_sub_fetchsi): ... this new pattern.
8063         (mvtc): Add CC_REG clobber.
8065 2016-05-31  Marek Polacek  <polacek@redhat.com>
8067         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
8069 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8071         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
8072         aarch64_fusion_enabled_p to check for fusion capabilities.
8074 2016-05-31  Richard Biener  <rguenther@suse.de>
8076         PR tree-optimization/71352
8077         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
8078         minus one and a negate.
8080 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8082         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
8083         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
8084         Delete prototype.
8085         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
8086         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
8087         Remove use of aarch64_simd_attr_length_move, set length attribute
8088         directly.
8089         (*aarch64_be_movoi): Likewise.
8090         (*aarch64_be_movci): Likewise.
8091         (*aarch64_be_movxi): Likewise.
8093 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8095         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
8096         It no longer does that.
8097         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
8099 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
8101         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
8102         attribute __unused__.
8104 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8106         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
8107         * config/arm/arm.c (arm_arch_thumb1): Define.
8108         (arm_option_override): Initialize arm_arch_thumb1.
8109         * config/arm/arm.h (arm_arch_thumb1): Declare.
8110         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
8111         support Thumb-1 ISA.
8113 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
8115         PR target/71346
8116         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
8117         `Yv' for scalar operand.
8119 2016-05-31  Tom de Vries  <tom@codesourcery.com>
8121         PR tree-optimization/69068
8122         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
8123         phis with more than two args.
8125 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
8127         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
8128         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
8129         target.
8131 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
8133         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
8134         tune_64.
8135         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
8136         support on SPARC.
8137         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
8138         cpu_32, cpu_64, tune_32 and tune_64.
8139         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
8141 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
8143         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
8145 2016-05-30  Andi Kleen  <ak@linux.intel.com>
8147         * auto-profile.c (read_profile): Replace asserts with errors
8148         when file does not exist.
8149         * gcov-io.c (gcov_read_words): Dito.
8151 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8153         * tree-cfg.c (print_loop): Print likely upper bounds.
8155 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8157         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
8158         * opts.c (default_options): Enable peel loops at -O3.
8159         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
8160         (try_peel_loop): Do not re-peel already peeled loops;
8161         use likely upper bounds; fix profile updating.
8162         (pass_complete_unroll::execute): Initialize peeled_loops.
8164 2016-05-30  Martin Liska  <mliska@suse.cz>
8166         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
8167         computed costs by frequency of BB they belong to.
8168         (get_scaled_computation_cost_at): New function.
8170 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
8171             Marc Glisse  <marc.glisse@inria.fr>
8173         PR tree-optimization/71289
8174         * match.pd (-1 / B < A, A > -1 / B): New transformations.
8176 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8178         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
8180 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8182         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
8183         for peeled copies; avoid underflow when updating estimates; correctly
8184         scale loop profile.
8186 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8188         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
8189         r236875. Corrected oe3 to oe2 as obvious.
8191 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8193         PR middle-end/71269
8194         PR middle-end/71252
8195         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
8196         that inserted stmt will not dominate stmts that defines its operand.
8197         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
8198         (rewrite_expr_tree_parallel): Likewise.
8200 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8202         PR middle-end/71252
8203         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
8204         all fields including stmt_to_insert are swapped.
8206 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8208         * predict.h (force_edge_cold): Declare.
8209         * predict.c (force_edge_cold): New function.
8210         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
8211         updating.
8212         (canonicalize_loop_induction_variables): Fix formating.
8214 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8216         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
8217         (visium_expand_copysign): Use gen_int_mode directly.
8218         (visium_compute_frame_size): Minor tweaks.
8220 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8222         * tree-vect-loop.c (vect_analyze_loop_2): Use
8223         likely_max_stmt_executions_int.
8225 2016-05-30  Tom de Vries  <tom@codesourcery.com>
8227         PR tree-optimization/69067
8228         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
8230 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
8232         PR target/71245
8233         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
8234         New peepholes to remove unneeded fild/fistp pairs.
8235         (define_peephole2 atomic_loaddi_fpu): Ditto.
8237 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8239         * predict.c (maybe_hot_frequency_p): Avoid division.
8241 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
8243         * doc/install.texi: Use https for shop.fsf.org.
8245 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8247         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
8248         likely_max_stmt_executions_int.
8250 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8252         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
8253         likely_max_stmt_executions_int.
8255 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8257         * profile.c (compute_branch_probabilities): Do not report hitrates
8258         here.
8259         (branch_prob): Report hitrates here.
8260         * predict.c (gimple_predict_edge): Do not assert profile status;
8261         fix formatting issues.
8263 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8265         * predict.c (edge_predicted_by_p): New function.
8266         (predict_paths_for_bb): Do not put multiple predictions of the same type
8267         on one edge.
8269 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8271         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
8272         commit.
8274 2016-05-28  Alan Modra  <amodra@gmail.com>
8276         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
8278 2016-05-28  Alan Modra  <amodra@gmail.com>
8280         PR rtl-optimization/71275
8281         * ira.c (ira): Free dominance info.
8283 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
8285         * doc/sourcebuild.texi: New address for upstream Go repository.
8287 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8289         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
8290         (TARGET_ARM_V7M): Likewise.
8292 2016-05-26  Jeff Law  <law@redhat.com>
8294         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
8295         (thread_across_edge): Remove calls to find_jump_threads_backwards.
8296         * passes.def: Add jump threading passes before DOM/VRP.
8297         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
8298         argument to a basic block from an edge.  Remove tests which are
8299         handled elsewhere.
8300         (pass_data_thread_jumps, class pass_thread_jumps): New.
8301         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
8302         (make_pass_thread_jumps): Likewise.
8303         * tree-pass.h (make_pass_thread_jumps): Declare.
8305 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8307         * config/visium/visium-protos.h (split_double_move): Rename into...
8308         (visium_split_double_move): ...this.
8309         (visium_split_double_add): Declare.
8310         * config/visium/visium.c (split_double_move): Rename into...
8311         (visium_split_double_move): ...this.
8312         (visium_split_double_add): New function.
8313         (visium_expand_copysign): Renumber operands for consistency.
8314         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
8315         (DFmode move splitter): Likewise.
8316         (*addi3_insn): Split by means of visium_split_double_add.
8317         (*adddi3_insn_flags): Delete.
8318         (*plus_plus_sltu<subst_arith>): New insn.
8319         (*subdi3_insn): Split by means of visium_split_double_add.
8320         (subdi3_insn_flags): Delete.
8321         (*minus_minus_sltu<subst_arith>): New insn.
8322         (*negdi2_insn): Split by means of visium_split_double_add.
8323         (*negdi2_insn_flags): Delete.
8325 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
8327         * configure.ac: Treat a --with-headers option without argument
8328         the same as the default (i.e. consult sys-include directory).
8329         * configure: Regenerate.
8331 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8333         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
8334         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
8335         prototype.
8336         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
8337         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
8339 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
8341         PR target/63596
8342         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
8343         tree-stdarg analysis results.
8344         (aarch64_setup_incoming_varargs): Likewise.
8346 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
8348         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
8349         va_list_gpr_counter_field and va_list_fpr_counter_field.
8351 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
8353         PR67609
8354         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
8355         * config/aarch64/aarch64.c
8356         (aarch64_cannot_change_mode_class): Remove function.
8357         * config/aarch64/aarch64-protos.h
8358         (aarch64_cannot_change_mode_class): Remove.
8360 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8362         * cfgloop.c (record_niter_bound): Record likely upper bounds.
8363         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
8364         get_likely_max_loop_iterations_int): New.
8365         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
8366         any_likely_upper_bound.
8367         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
8368         Declare.
8369         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
8370         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
8371         upper bound.
8372         (unroll_loop_constant_iterations): Likewise.
8373         (unroll_loop_runtime_iterations): Likewise.
8374         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
8375         * lto-streamer-out.c (output_cfg): Likewise.
8376         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
8377         bounds.
8378         (canonicalize_loop_induction_variables): Dump likely upper bounds.
8379         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
8380         (likely_max_loop_iterations): New.
8381         (likely_max_loop_iterations_int): New.
8382         (likely_max_stmt_executions): New.
8383         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
8384         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
8385         likely_max_stmt_executions): Declare.
8387 2016-05-27  Marek Polacek  <polacek@redhat.com>
8389         PR middle-end/71308
8390         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
8392 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8394         * config/s390/s390.md (2x risbg splitters): Use
8395         reg_overlap_mentioned_p instead of rtx_equal_p.
8397 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8399         * combine.c (make_compound_operation): Take known zero bits into
8400         account when checking for possible zero_extend.
8402 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8404         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
8405         Use const_int_operand for operand 2 predicate.  Simplify expand code
8406         as a result.
8408 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
8410         PR middle-end/71279
8411         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
8412         into comparison.
8414 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8416         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
8417         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
8418         that returns CC_SESWPmode and CC_ZESWPmode.
8419         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
8420         and CC_SESWPmode.
8421         (aarch64_rtx_costs): Likewise.
8423 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8425         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
8426         for ISA 3.0 min/max support.
8427         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
8428         conditional move support.
8429         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
8430         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
8431         available.
8432         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
8433         conditional moves where the comparison type is different from move
8434         type.
8435         (fp_minmax): New code iterator for smin/smax.
8436         (minmax): New code attributes for min/max.
8437         (SMINMAX): Likewise.
8438         (smax<mode>3): Combine min, max insns into one insn using the
8439         fp_minmax code iterator.  Add support for ISA 3.0 min/max
8440         instructions that don't need -ffast-math.
8441         (s<minmax><mode>3): Likewise.
8442         (smax<mode>3_vsx): Likewise.
8443         (smin<mode>3): Likewise.
8444         (s<minmax><mode>3_vsx): Likewise.
8445         (smin<mode>3_vsx): Likewise.
8446         (pre-VSX min/max splitters): Likewise.
8447         (s<minmax><mode>3_fpr): Likewise.
8448         (movsfcc): Rewrite floating point conditional moves to combine
8449         SFmode/DFmode into a single insn.
8450         (mov<mode>cc): Likewise.
8451         (movdfcc): Likewise.
8452         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
8453         SFDF2 iterators to handle all combinations.
8454         (fseldfsf4): Likewise.
8455         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
8456         (fseldfdf4): Likewise.
8457         (fselsfdf4): Likewise.
8458         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
8459         comparison instructions that set a 0/-1 mask, and use it for
8460         floating point conditional move via XXSEL.
8461         (fpmask<mode>): Likewise.
8462         (xxsel<mode>): Likewise.
8463         * config/rs6000/predicates.md (min_max_operator): Delete, no
8464         longer used.
8465         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
8466         instructions that generate a 0/-1 mask for use with XXSEL.
8467         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
8468         say whether floating point min/max is available, either through
8469         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
8470         (TARGET_MINMAX_DF): Likewise.
8472 2016-05-27  Alan Modra  <amodra@gmail.com>
8474         PR rtl-optimization/71275
8475         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
8476         for update_equiv_regs and combine_and_move_insns.
8478 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
8480         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
8481         if_then_else or cond RTXes to calculate attribute value.
8482         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
8483         <attr "length_immediate>: Ditto.
8484         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
8485         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
8486         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
8487         <attr "type">: Ditto.
8488         <attr "prefix_data16">: Ditto.
8489         <attr "prefix_extra">: Ditto.
8490         <attr "length_immediate">: Ditto.
8491         <attr "prefix">: Ditto.
8492         (vec_set<mode>_0) <attr "isa">: Ditto.
8493         <attr "prefix_extra">: Ditto.
8494         <attr "length_immediate">: Ditto.
8495         <attr "prefix">: Ditto.
8496         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
8497         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
8498         (sse2_storelpd) <attr "prefix_data16">: Ditto.
8499         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
8500         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
8501         <attr "length_immediate">: Ditto.
8502         <attr "prefix">: Ditto.
8503         (sse2_movsd) <attr "length_immediate">: Ditto.
8504         <attr "prefix">: Ditto.
8505         (vec_concatv2df)  <attr "isa">: Ditto.
8506         <attr "prefix">: Ditto.
8507         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
8508         (*vec_extractv2di_1) <attr "isa">: Ditto.
8509         <attr "type">: Ditto.
8510         <attr "length_immediate">: Ditto.
8511         <attr "prefix_rex">: Ditto.
8512         <attr "prefix_extra">: Ditto.
8513         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
8514         <attr "prefix_extra">: Ditto.
8515         <attr "length_immediate">: Ditto.
8516         (vec_concatv2di) <attr "isa">: Ditto.
8517         <attr "prefix_extra">: Ditto.
8518         <attr "length_immediate">: Ditto.
8519         <attr "prefix">: Ditto.
8521 2016-05-26  Martin Liska  <mliska@suse.cz>
8523         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
8524         function.
8525         (operator+): Likewise.
8526         (operator-): Likewise.
8527         (comp_cost::operator+=): Likewise.
8528         (comp_cost::operator-=): Likewise.
8529         (comp_cost::operator/=): Likewise.
8530         (comp_cost::operator*=): Likewise.
8531         (operator<): Likewise.
8532         (operator==): Likewise.
8533         (operator<=): Likewise.
8534         (new_cost): Remove.
8535         (infinite_cost_p): Likewise.
8536         (add_costs): Likewise.
8537         (sub_costs): Likewise.
8538         (compare_costs): Likewise.
8539         (set_group_iv_cost): Use the newly introduced functions.
8540         (get_address_cost): Likewise.
8541         (get_shiftadd_cost): Likewise.
8542         (force_expr_to_var_cost): Likewise.
8543         (split_address_cost): Likewise.
8544         (ptr_difference_cost): Likewise.
8545         (difference_cost): Likewise.
8546         (get_computation_cost_at): Likewise.
8547         (determine_group_iv_cost_generic): Likewise.
8548         (determine_group_iv_cost_address): Likewise.
8549         (determine_group_iv_cost_cond): Likewise.
8550         (autoinc_possible_for_pair): Likewise.
8551         (determine_group_iv_costs): Likewise.
8552         (cheaper_cost_pair): Likewise.
8553         (iv_ca_recount_cost): Likewise.
8554         (iv_ca_set_no_cp): Likewise.
8555         (iv_ca_set_cp): Likewise.
8556         (iv_ca_cost): Likewise.
8557         (iv_ca_new): Likewise.
8558         (iv_ca_dump): Likewise.
8559         (iv_ca_narrow): Likewise.
8560         (iv_ca_prune): Likewise.
8561         (iv_ca_replace): Likewise.
8562         (try_add_cand_for): Likewise.
8563         (try_improve_iv_set): Likewise.
8564         (find_optimal_iv_set): Likewise.
8566 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
8568         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
8569         that internal functions will clobber all caller-saved registers.
8571 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
8573         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
8574         Return a better case_values_threshold when optimizing.
8576 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
8578         * config/aarch64/aarch64-simd.md (aarch64_combinez):
8579         Add ? to integer variant.
8580         (aarch64_combinez_be): Likewise.
8582 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8584         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
8585         instead of x constraint.
8586         (vcvtps2ph256<mask_name>): Likewise.
8588         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
8589         alternative.  Formatting fix.
8591         * config/i386/sse.md
8592         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
8593         to ...
8594         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
8595         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
8596         maybe_evex prefix instead of vex.
8597         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
8598         EXT_REX_SSE_REG_P (op0) case in the splitter.
8600 2016-05-25  Jeff Law  <law@redhat.com>
8602         PR tree-optimization/71272
8603         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
8604         Update comments.  Add test for empty path.
8606 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
8608         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
8609         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
8610         special case builtin.
8611         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8612         code for ALTIVEC_BUILTIN_VEC_CMPNE.
8613         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8614         for __builtin_vec_cmpne.
8616 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8618         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
8619         redundant test and bail out if the type of the new operand is not
8620         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
8622 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
8624         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
8625         (x_ix86_target_flags_explicit): Remove.
8626         * config/i386/i386.c (ix86_function_specific_save): Do not copy
8627         x_ix86_target_flags_explicit.
8628         (ix86_function_specific_restore): Ditto.
8630 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
8631             H.J. Lu  <hongjiu.lu@intel.com>
8633         PR target/70738
8634         * common/config/i386/i386-common.c
8635         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
8636         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
8637         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
8638         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
8639         (-mgeneral-regs-only): Add new option.
8640         * config/i386/i386.c (ix86_option_override_internal): Don't enable
8641         x87 instructions if only general registers are allowed.
8642         (ix86_target_string): Add ix86_flags argument. Handle additional
8643         flags options through ix86_flags argument.  Update all callers.
8644         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
8646 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8648         PR rtl-optimization/66940
8649         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
8650         decrementing desired_val will not overflow before performing these
8651         operations.
8653 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
8655         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
8656         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
8657         * config/i386/i386.c (enum ix86_builtins): Add
8658         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
8659         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
8660         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
8661         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
8662         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
8663         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
8664         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
8665         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
8666         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
8667         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
8668         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
8669         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
8670         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
8671         __builtin_ia32_cvtps2dq512_mask.
8672         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
8673         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
8674         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
8675         * config/i386/sse.md
8676         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
8677         Rename to ...
8678         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
8679         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
8680         to ...
8681         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
8682         (avx512f_vec_pack_sfix_v8df): New define_expand.
8683         (avx512f_roundpd512): Rename to ...
8684         (avx512f_round<castmode>512): ... this.  Change iterator.
8685         (avx512f_roundps512_sfix): New define_expand.
8686         (round<mode>2_sfix): Change iterator.
8688 2016-05-25  Nick Clifton  <nickc@redhat.com>
8690         * config/msp430/msp430.c (msp430_attr): Produce an error if a
8691         static interrupt handler is detected.
8692         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
8693         default linker script.
8694         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
8695         the low part of a symbolic pointer.
8697 2016-05-25  Richard Biener  <rguenther@suse.de>
8699         PR tree-optimization/71261
8700         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
8701         interesting stmt instead of immediate uses when looking
8702         for the use operand to replace.
8704 2016-05-25  Martin Liska  <mliska@suse.cz>
8706         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
8708 2016-05-25  Richard Biener  <rguenther@suse.de>
8710         PR tree-optimization/71264
8711         * tree-vect-stmts.c (vect_init_vector): Properly deal with
8712         vector type val.
8714 2016-05-25  Martin Liska  <mliska@suse.cz>
8716         PR tree-optimization/71239
8717         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
8718         if DECL_SIZE is NULL.
8720 2016-05-25  Richard Biener  <rguenther@suse.de>
8722         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
8723         * tree-if-conv.c (pass_data_if_conversion): Use it.
8725 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8727         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
8728         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
8729         * varpool.c (varpool_node::get_availability): Likewise.
8731 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8733         * config/rs6000/altivec.md (VNEG iterator): New iterator for
8734         VNEGW/VNEGD instructions.
8735         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
8736         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
8737         support for ISA 3.0 VNEGW/VNEGD instructions.
8739 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8741         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
8742         pointers inside OACC_DATA regions.
8743         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
8744         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
8745         (gimplify_adjust_omp_clauses): Fix typo in comment.
8747 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8749         * config/rs6000/altivec.md (VParity): New mode iterator for vector
8750         parity built-in functions.
8751         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
8752         zeros.
8753         (p9v_parity<mode>2): Likewise.
8754         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
8755         parity.
8756         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
8757         (parity<mode>2): ISA 3.0 expander for vector parity.
8758         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
8759         power9 built-ins.
8760         (BU_P9_64BIT_MISC_0): Likewise.
8761         (BU_P9_MISC_0): Likewise.
8762         (BU_P9V_AV_1): Likewise.
8763         (BU_P9V_AV_2): Likewise.
8764         (BU_P9V_AV_3): Likewise.
8765         (BU_P9V_AV_P): Likewise.
8766         (BU_P9V_VSX_1): Likewise.
8767         (BU_P9V_OVERLOAD_1): Likewise.
8768         (BU_P9V_OVERLOAD_2): Likewise.
8769         (BU_P9V_OVERLOAD_3): Likewise.
8770         (VCTZB): Add vector count trailing zeros support.
8771         (VCTZH): Likewise.
8772         (VCTZW): Likewise.
8773         (VCTZD): Likewise.
8774         (VPRTYBD): Add vector parity support.
8775         (VPRTYBQ): Likewise.
8776         (VPRTYBW): Likewise.
8777         (VCTZ): Add overloaded vector count trailing zeros support.
8778         (VPRTYB): Add overloaded vector parity support.
8779         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8780         overloaded vector count trailing zeros and parity instructions.
8781         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
8782         vector parity support.
8783         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
8784         trailing zeros support.
8785         (vec_cntlz): Likewise.
8786         (vec_vctzb): Likewise.
8787         (vec_vctzd): Likewise.
8788         (vec_vctzh): Likewise.
8789         (vec_vctzw): Likewise.
8790         (vec_vprtyb): Add ISA 3.0 vector parity support.
8791         (vec_vprtybd): Likewise.
8792         (vec_vprtybw): Likewise.
8793         (vec_vprtybq): Likewise.
8794         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8795         the ISA 3.0 vector count trailing zeros and vector parity built-in
8796         functions.
8798 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
8800         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
8801         when there is stmt_to_insert.
8803 2016-05-24  Martin Sebor  <msebor@redhat.com>
8805         PR c++/71147
8806         * tree.h (complete_or_array_type_p): New inline function.
8808 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
8810         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
8811         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
8812         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
8814         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
8815         Limit 1st alternative to noavx isa, split 2nd alternative into one
8816         noavx and one avx alternative, use *x and Bm in the former and
8817         x and m in the latter.
8819         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
8820         of sse4 for the first alternative, drop %v from the template
8821         and d operand modifier.  Split second alternative into one sse4_noavx
8822         and one avx alternative, use *x instead of *v in the former and v
8823         instead of *v in the latter.
8824         (*sse4_1_extractps): Use noavx isa instead of * for the first
8825         alternative, drop %v from the template.  Split second alternative into
8826         one noavx and one avx alternative, use *x instead of *v in the
8827         former and v instead of *v in the latter.
8828         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
8829         with noavx and the last one with avx.
8830         (sse4_1_phminposuw): Guard first alternative with noavx isa,
8831         split the second one into one noavx and one avx alternative,
8832         use *x and Bm in the former and x and m in the latter one.
8833         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
8834         alternatives.
8836         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
8837         first two alternatives to noavx, use *x instead of *v in the second
8838         one, add avx alternative without *.
8839         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
8840         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
8841         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
8843 2016-05-24  Jeff Law  <law@redhat.com>
8845         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
8846         New function, extracted from...
8847         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
8848         Allow simple copies and constant initializations in the SSA chain.
8850 2016-05-24  Marek Polacek  <polacek@redhat.com>
8852         PR c/71249
8853         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
8854         scope.
8856 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
8858         PR c++/71257
8859         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8860         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8861         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
8862         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
8863         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
8865 2016-05-24  Richard Biener  <rguenther@suse.de>
8867         PR tree-optimization/71240
8868         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
8869         has integral type.
8871 2016-05-24  Richard Biener  <rguenther@suse.de>
8873         PR tree-optimization/71230
8874         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
8876 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
8878         * tree-vectorizer.h (vectorizable_comparison): Delete.
8879         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
8880         PURE_SLP_STMT check.
8881         * tree-vect-stmts.c (vectorizable_call): Likewise.
8882         (vectorizable_simd_clone_call): Likewise.
8883         (vectorizable_conversion): Likewise.
8884         (vectorizable_assignment): Likewise.
8885         (vectorizable_shift): Likewise.
8886         (vectorizable_operation): Likewise.
8887         (vectorizable_load): Likewise.
8888         (vectorizable_condition): Likewise.
8889         (vectorizable_store): Likewise.  Assert that we don't have
8890         hybrid SLP.
8891         (vectorizable_comparison): Make static.  Remove redundant
8892         PURE_SLP_STMT check.
8893         (vect_transform_stmt): Assert that we always have an slp_node
8894         if PURE_SLP_STMT.
8896 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8898         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
8899         operands[2] against 1 with comparison against CONST1_RTX.
8900         (<shift>di3_neon): Likewise.
8901         * config/arm/predicates.md (const0_operand): Replace with comparison
8902         against CONST0_RTX.
8904 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8906         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
8907         operands[2] against 1 with comparison against CONST1_RTX.
8908         (ashrdi3): Likewise.
8909         (lshrdi3): Likewise.
8910         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
8911         UINTVAL.
8912         (ashrsi3): Likewise.
8913         (lshrsi3): Likewise.
8914         (rotrsi3): Likewise.
8915         (define_split above *compareqi_eq0): Likewise.
8916         (define_split above "prologue"): Likewise.
8917         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
8918         * config/arm/predicates.md (shift_operator): Likewise.
8919         (shift_nomul_operator): Likewise.
8920         (sat_shift_operator): Likewise.
8921         (thumb1_cmp_operand): Likewise.
8922         (const_neon_scalar_shift_amount_operand): Replace manual range
8923         check with IN_RANGE.
8924         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
8925         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
8927 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8929         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
8930         with HOST_WIDE_INT_1.
8931         (insv): Likewise.
8932         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
8933         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
8934         (arm_canonicalize_comparison): Likewise.
8935         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
8936         HOST_WIDE_INT_1.
8937         (thumb1_size_rtx_costs): Likewise.
8938         (vfp_const_double_index): Replace cast of 1 to unsigned
8939         HOST_WIDE_INT with HOST_WIDE_INT_1U.
8940         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
8941         HOST_WIDE_INT_1.
8942         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
8943         HOST_WIDE_INT with HOST_WIDE_INT_1U.
8944         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
8945         HOST_WIDE_INT with HOST_WIDE_INT_1.
8947 2016-05-24  Marek Polacek  <polacek@redhat.com>
8949         * tree-cfg.h (should_remove_lhs_p): New predicate.
8950         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
8951         * gimplify.c (gimplify_modify_expr): Likewise.
8952         * tree-cfg.c (verify_gimple_call): Likewise.
8953         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8954         * gimple-fold.c: Include "tree-cfg.h".
8955         (gimple_fold_call): Use should_remove_lhs_p.
8957 2016-05-24  Richard Biener  <rguenther@suse.de>
8959         PR tree-optimization/71253
8960         * cfganal.h (control_dependences): Make robust against edge
8961         and BB removal.
8962         (control_dependences::control_dependences): Remove edge_list argument.
8963         (control_dependences::get_edge): Remove.
8964         (control_dependences::get_edge_src): Add.
8965         (control_dependences::get_edge_dest): Likewise.
8966         (control_dependences::m_el): Make a vector of edge src/dest index.
8967         * cfganal.c (control_dependences::find_control_dependence): Adjust.
8968         (control_dependences::control_dependences): Likewise.
8969         (control_dependences::~control_dependence): Likewise.
8970         (control_dependences::get_edge): Remove.
8971         (control_dependences::get_edge_src): Add.
8972         (control_dependences::get_edge_dest): Likewise.
8973         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
8974         get_edge_src.
8975         (perform_tree_ssa_dce): Adjust.
8976         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
8977         get_edge_src.
8978         (pass_loop_distribution::execute): Adjust.  Do loop destroying
8979         conditional on changed.
8981 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8983         PR target/69857
8984         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
8985         return.  Reindent transformation comment and mention the ARM state
8986         behavior.
8988 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
8990         PR middle-end/71252
8991         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
8992         after build_and_add_sum creates new use stmt.
8994 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
8996         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
8997         load_lanes/grouped_load classification comes first.  Don't check
8998         whether the vectorization factor is a multiple of the group size
8999         for load_lanes.
9001 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9003         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
9004         GROUP_GAP for single-element interleaving.
9005         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
9006         variable.
9008 2016-05-24  Richard Biener  <rguenther@suse.de>
9010         PR middle-end/70434
9011         PR c/69504
9012         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
9013         bases which are accessed with non-invariant indices.
9014         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
9015         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
9017 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9019         PR middle-end/71170
9020         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
9021         (add_to_ops_vec): Add stmt_to_insert.
9022         (add_repeat_to_ops_vec): Init stmt_to_insert.
9023         (insert_stmt_before_use): New.
9024         (transform_add_to_multiply): Remove mult_stmt insertion and add it
9025         to ops vector.
9026         (get_ops): Init stmt_to_insert.
9027         (maybe_optimize_range_tests): Likewise.
9028         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
9029         (rewrite_expr_tree_parallel): Likewise.
9030         (reassociate_bb): Likewise.
9032 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9034         PR target/71201
9035         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
9036         ISA 3.0 xxperm fusion alternative.
9037         (altivec_vperm_v8hiv16qi): Likewise.
9038         (altivec_vperm_<mode>_uns_internal): Likewise.
9039         (vperm_v8hiv4si): Likewise.
9040         (vperm_v16qiv8hi): Likewise.
9042 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9043             Kelvin Nilsen  <kelvin@gcc.gnu.org>
9045         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
9046         vpermr/xxpermr on ISA 3.0.
9047         (altivec_expand_vec_perm_le): Likewise.
9048         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
9049         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
9050         ISA 3.0.
9052 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
9054         * config/i386/i386.h (IS_STACK_MODE): Enable for
9055         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
9056         SSE_FLOAT_MODE_P macros.
9057         * config/i386/i386.c (ix86_preferred_reload_class): Use
9058         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
9059         Cleanup regclass processing for CONST_DOUBLE_P.
9060         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
9061         (ix86_rtx_costs): Remove redundant TARGET_80387 check
9062         with IS_STACK_MODE macro.
9063         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
9064         with TARGET_SSE2.
9065         (*movdf_internal): Use IS_STACK_MODE macro.
9066         (*movsf_internal): Ditto.
9068 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
9070         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
9071         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
9073 2016-05-23  Jeff Law  <law@redhat.com>
9075         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
9076         extracted from ...
9077         (fsm_find_control_statement_thread_paths): Call it.
9079 2016-05-23  Martin Jambor  <mjambor@suse.cz>
9081         PR ipa/71234
9082         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
9083         from_global_constant if t is not NULL.
9085 2016-05-23  Marek Polacek  <polacek@redhat.com>
9087         PR c/49859
9088         * common.opt (Wswitch-unreachable): New option.
9089         * doc/invoke.texi: Document -Wswitch-unreachable.
9090         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
9091         warning.
9093 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
9095         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
9096         TMR_INDEX is non-NULL.
9098 2016-05-23  Richard Biener  <rguenther@suse.de>
9100         PR tree-optimization/71230
9101         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
9102         (try_special_add_to_ops): ... here.  Always test for single-use.
9104 2016-05-23  Martin Jambor  <mjambor@suse.cz>
9106         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
9107         default block if a PHI node in the original one would be resized.
9109 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9111         PR tree-optimization/58135
9112         * tree-vect-slp.c: When group size is not multiple
9113         of vector size, allow splitting of store group at
9114         vector boundary.
9116 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
9118         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
9120 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
9122         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
9123         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
9124         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
9125         of 64x2.
9127         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
9128         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
9129         v constraint instead of x and vinserti32x4 insn.
9131         * config/i386/sse.md (i128vldq): New mode iterator.
9132         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
9133         avx512dq and avx512vl alternatives.
9135         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
9136         constraint, use maybe_evex prefix instead of vex.
9137         (vec_dupv4sf): Use v constraint instead of x for output
9138         operand except for noavx alternative, use Yv constraint
9139         instead of x for input.  Use maybe_evex prefix instead of vex.
9140         (*vec_dupv4si): Likewise.
9141         (*vec_dupv2di): Likewise.
9143 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9145         PR middle-end/40921
9146         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
9147         (linearize_expr_tree): Call try_special_add_to_ops.
9148         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
9150 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9152         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
9153         to computed stack_usage.
9155 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9157         PR target/71103
9158         * config/avr/avr.md (define_expand "mov<mode>"): If the source
9159         operand is subreg (symbol_ref) then move the symbol ref to register.
9161 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
9163         * tree.c (array_at_struct_end_p): Look through MEM_REF.
9165 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9167         PR middle-end/71179
9168         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
9169         VECTOR type.
9171 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9173         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
9174         ranges by calling get_single_symbol and tidy up.  Look more closely
9175         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
9177 2016-05-20  Jeff Law  <law@redhat.com>
9179         * bitmap.c (bitmap_find_bit): Remove useless test.
9181 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
9183         * function.c (thread_prologue_and_epilogue_insns): Commit the
9184         insertion of the epilogue.
9186 2016-05-20  Martin Jambor  <mjambor@suse.cz>
9188         PR tree-optimization/70884
9189         * tree-sra.c (initialize_constant_pool_replacements): Do not check
9190         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
9191         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
9192         of constant pool data as a reason for scalarization.
9194 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9196         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
9197         for naked functions.
9198         (thumb1_expand_prologue): Likewise.
9200 2016-05-20  Nathan Sidwell  <nathan@acm.org>
9202         * config/nvptx/nptx.c (nvptx_option_override): Only set
9203         flag_toplevel_reorder, if not explicitly specified.  Set
9204         flag_no_common, unless explicitly specified.
9206 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9208         * calls.c (can_implement_as_sibling_call_p): Mark param
9209         reg_parm_stack_space with ATTRIBUTE_UNUSED.
9211 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
9213         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
9214         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
9215         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
9216         constants.
9217         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
9218         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
9219         and CASE_CONST_ANY.
9221 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
9223         * config/nvptx/nvptx.md (sincossf3): New pattern.
9225 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9227         * calls.c (maybe_complain_about_tail_call): New function.
9228         (initialize_argument_information): Call
9229         maybe_complain_about_tail_call when clearing *may_tailcall.
9230         (can_implement_as_sibling_call_p): Call
9231         maybe_complain_about_tail_call when returning false.
9232         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
9233         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
9234         if tail-call optimization fails.
9235         * cfgexpand.c (expand_call_stmt): Initialize
9236         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
9237         * gimple-pretty-print.c (dump_gimple_call): Dump
9238         gimple_call_must_tail_p.
9239         * gimple.c (gimple_build_call_from_tree): Call
9240         gimple_call_set_must_tail with the value of
9241         CALL_EXPR_MUST_TAIL_CALL.
9242         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
9243         (gimple_call_set_must_tail): New function.
9244         (gimple_call_must_tail_p): New function.
9245         * print-tree.c (print_node): Update printing of TREE_STATIC
9246         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
9247         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
9248         trailing comment listing applicable flags.
9249         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
9251 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9253         * calls.c (expand_call): Move "Rest of purposes for tail call
9254         optimizations to fail" to...
9255         (can_implement_as_sibling_call_p): ...this new function, and
9256         split into multiple "if" statements.
9258 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9260         * cfgloop.h (expected_loop_iterations_unbounded,
9261         expected_loop_iterations): Unconstify.
9262         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
9263         profile with known upper bound; return 3 when profile is absent.
9264         (expected_loop_iterations): Update.
9266 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9268         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
9269         and get_max_loop_iterations_int.
9271 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9273         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
9274         realistic upper bounds here.
9276 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
9278         PR c++/71210
9279         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
9280         calls if the LHS is variable length or has addressable type.
9281         If targets[0]->decl is a noreturn call with void return type and
9282         zero arguments, adjust fntype and remove lhs in that case.
9284 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
9286         PR tree-optimization/71079
9287         PR tree-optimization/71206
9288         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
9290 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9292         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
9293         (get_vec_alignment_for_array_decl): Likewise.
9294         (get_vec_alignment_for_record_decl): Likewise.
9295         (increase_alignment::execute): Move code to find alignment to
9296         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
9297         (type_align_map): New hash_map.
9299 2016-05-20  Richard Guenther  <rguenther@suse.de>
9301         PR tree-optimization/29756
9302         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
9303         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
9304         * fold-const.c (operand_equal_p): Likewise.
9305         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
9306         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
9307         * tree-inline.c (estimate_operator_cost): Likewise.
9308         * tree-pretty-print.c (dump_generic_node): Likewise.
9309         * tree-ssa-operands.c (get_expr_operands): Likewise.
9310         * cfgexpand.c (expand_debug_expr): Likewise.
9311         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9312         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
9313         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
9314         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
9315         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
9316         (execute_update_addresses_taken): Do it.
9318 2016-05-20  Richard Biener  <rguenther@suse.de>
9320         PR tree-optimization/71185
9321         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
9322         register operations.
9324 2016-05-20  Richard Biener  <rguenther@suse.de>
9326         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
9327         gimple_seq_add_seq_without_update.
9328         (release_bb_predicate): Assert we have no operands to free.
9329         (if_convertible_loop_p_1): Calculate post dominators later.
9330         Do not free BB predicates here.
9331         (combine_blocks): Do not recompute BB predicates.
9332         (version_loop_for_if_conversion): Save BB predicates around
9333         loop versioning.
9335 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
9337         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
9338         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
9339         code.  Ignore sibcalls on EDGE_IGNORE edges.
9340         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
9341         on edges for sibcalls that run without prologue.  The rest of the
9342         function is combined from...
9343         (fix_fake_fallthrough_edge): ... this, and ...
9344         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
9345         function argument, make it a local variable.
9347 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
9349         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
9350         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
9351         for 32-bit mode and SEH for 64-bit.
9352         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
9353         TARGET_64BIT_DEFAULT.
9355 2016-05-19  Ryan Burn  <contact@rnburn.com>
9357         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
9358         * gengtype.c (open_base_files): Add cilk.h to ifiles.
9360 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
9362         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
9363         force pending loads from memory.
9365 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9367         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
9368         (UNSPEC_DARN_32): New unspec constant.
9369         (UNSPEC_DARN_RAW): New unspec constant.
9370         (darn_32): New instruction.
9371         (darn_raw): New instruction.
9372         (darn): New instruction.
9373         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
9374         support and documentation for this macro.
9375         (BU_P9_MISC_1): New macro definition.
9376         (BU_P9_64BIT_MISC_0): New macro definition.
9377         (BU_P9_MISC_0): New macro definition.
9378         (darn_32): New builtin definition.
9379         (darn_raw): New builtin definition.
9380         (darn): New builtin definition.
9381         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
9382         RS6000_BUILTIN_0 directives to surround each occurrence of
9383         #include "rs6000-builtin.def".
9384         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
9385         RS6000_BTM_64BIT flags to the returned mask, depending on
9386         configuration.
9387         (def_builtin): Correct an error in the assignments made to the
9388         debugging variable attr_string.
9389         (rs6000_expand_builtin): Add support for no-operand built-in
9390         functions.
9391         (builtin_function_type): Remove fatal_error assertion that is no
9392         longer valid.
9393         (rs6000_common_init_builtins): Add support for no-operand built-in
9394         functions.
9395         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
9396         definition.
9397         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
9398         definition.
9399         (RS6000_BTM_64BIT): New macro definition.
9400         * doc/extend.texi: Document __builtin_darn (void),
9401         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
9402         functions.
9404 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
9406         * tree-vect-loop.c (vect_analyze_loop_2): Use also
9407         max_loop_iterations_int.
9409 2016-05-19  Marek Polacek  <polacek@redhat.com>
9411         PR tree-optimization/71031
9412         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
9413         condition and adjust the code a bit.
9415 2016-05-19  Martin Liska  <mliska@suse.cz>
9417         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
9418         auto_vec instead of vec.
9420 2016-05-19  Martin Liska  <mliska@suse.cz>
9422         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
9424 2016-05-19  Martin Liska  <mliska@suse.cz>
9426         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
9428 2016-05-19  Martin Liska  <mliska@suse.cz>
9430         * ipa-pure-const.c (set_function_state): Remove an existing
9431         funct_state.
9432         (remove_node_data): Do not free it as it's released
9433         in set_function_state.
9435 2016-05-19  Martin Liska  <mliska@suse.cz>
9437         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
9438         bitmap.
9440 2016-05-19  Martin Liska  <mliska@suse.cz>
9442         * omp-simd-clone.c (simd_clone_adjust): Release vector.
9444 2016-05-19  Martin Liska  <mliska@suse.cz>
9446         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
9447         an auto_vec instead of re-creating it.
9449 2016-05-19  Martin Liska  <mliska@suse.cz>
9451         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
9452         auto_vec instead of vec.
9454 2016-05-19  Martin Liska  <mliska@suse.cz>
9456         * lto-section-in.c (lto_get_section_data): Call
9457         lto_check_version with additional argument.
9458         * lto-streamer.c (lto_check_version): Add new argument.
9459         * lto-streamer.h (lto_check_version): Likewise.
9461 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9463         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
9464         Don't add cost of inner memory when handling sign-extended loads.
9466 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
9468         PR rtl-optimization/71148
9469         * cse.c (cse_main): Free dominance info.
9470         (rest_of_handle_cse): Don't free dominance info.
9471         (rest_of_handle_cse2): Likewise.
9472         (rest_of_handle_cse_after_global_opts): Likewise.
9474 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9476         PR target/71056
9477         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
9478         NULL_TREE early if NEON is not available.  Remove now redundant check
9479         in ARM_CHECK_BUILTIN_MODE.
9481 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
9483         PR sanitizer/64354
9484         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
9485         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
9486         * doc/cpp.texi: Document new macros.
9488 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
9490         PR tree-optimization/69848
9491         * tree-vect-loop.c (vectorizable_reduction): Don't factor
9492         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
9494 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
9496         * function.c (thread_prologue_and_epilogue_insn): Move the
9497         "goto epilogue_done" one block later.
9499 2016-05-19  Richard Biener  <rguenther@suse.de>
9501         PR tree-optimization/70729
9502         * passes.def: Move LIM pass before PRE.  Remove no longer
9503         required copyprop and move first DCE out of the loop pipeline.
9505 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
9507         PR driver/69265
9508         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
9509         (OBJS-libcommon-target): ...here.
9510         * opts-common.c: Include spellcheck.h.
9511         (cmdline_handle_error): Build a vec of valid options and use it
9512         to suggest provide hints for misspelled arguments.
9514 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
9516         PR c++/71100
9517         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
9518         lhs if it has TREE_ADDRESSABLE type.
9520 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
9522         PR target/71145
9523         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
9524         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
9526 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9528         PR ipa/69708
9529         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
9530         input for NOP_EXPR pass-through functions.
9531         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
9532         aggregate global constant VAR_DECLs in constant jump functions.
9534 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9536         PR ipa/69708
9537         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
9538         from TREE_READONLY parameters.
9540 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9542         PR ipa/69708
9543         * cgraph.h (cgraph_indirect_call_info): New field
9544         guaranteed_unmodified.
9545         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
9546         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
9547         appropriate.
9548         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
9549         pass the parameter value to ipa_find_agg_cst_for_param.
9550         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
9551         guaranteed_unmodified, store AA results there instead of bailing out
9552         if present.
9553         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
9554         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
9555         (find_constructor_constant_at_offset): New function.
9556         (ipa_find_agg_cst_from_init): Likewise.
9557         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
9558         static initializers of contants, report back through a new paameter
9559         from_global_constant if that was the case.
9560         (try_make_edge_direct_simple_call): Also pass parameter value to
9561         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
9562         appropriate.
9563         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
9564         (ipa_read_indirect_edge_info): Likewise.
9565         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
9566         (ipa_load_from_parm_agg): Likewise.
9568 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
9570         PR rtl-optimization/71150
9571         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
9572         check.
9574 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9576         PR target/70915
9577         * config/rs6000/constraints.md (wE constraint): New constraint
9578         for a vector constant that can be loaded with XXSPLTIB.
9579         (wM constraint): New constraint for a vector constant of a 1's.
9580         (wS constraint): New constraint for a vector constant that can be
9581         loaded with XXSPLTIB and a vector sign extend instruction.
9582         * config/rs6000/predicates.md (xxspltib_constant_split): New
9583         predicates for wE/wS constraints.
9584         (xxspltib_constant_nosplit): Likewise.
9585         (easy_vector_constant): Add support for constants that can be
9586         loaded via XXSPLTIB.
9587         (all_ones_constant): New predicate for vector constant with all
9588         1's set.
9589         (splat_input_operand): Add support for ISA 3.0 word splat operations.
9590         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
9591         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
9592         instruction and possibly with a sign extension.
9593         (output_vec_const_move): Add support for XXSPLTIB. If we are
9594         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
9595         instead of XXLXOR/XXLORC.
9596         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
9597         operations.
9598         (rs6000_legitimize_reload_address): Likewise.
9599         (rs6000_output_move_128bit): Use output_vec_const_move to emit
9600         constants.
9601         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
9602         combine VSX_M and VSX_M2 into one iterator.
9603         (VSX_M2): Likewise.
9604         (VSINT_84): New iterators for loading constants with XXSPLTIB.
9605         (VSINT_842): Likewise.
9606         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
9607         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
9608         XXSPLTIB instruction.
9609         (xxspltib_<mode>_nosplit): Likewise.
9610         (xxspltib_<mode>_split): New insn to load up constants with
9611         XXSPLTIB and a sign extend instruction.
9612         (vsx_mov<mode>): Replace single move that handled all vector types
9613         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
9614         moves (when -mvsx-timode is in effect) into the main vector
9615         moves.  Eliminate separate moves for <VSr> <VSa>, where the
9616         preferred register class (<VSr>) is listed first, and the
9617         secondary register class (<VSa>) is listed second with a '?' to
9618         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
9619         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
9620         that if the register was involved in a slow operation, the
9621         clear/set operation does not wait for the slow operation to
9622         finish.  Adjust the length attributes for 32-bit mode.  Use
9623         rs6000_output_move_128bit and drop the use of the string
9624         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
9625         spacing so that the alternatives and attributes don't generate
9626         long lines, and put things in columns, so that it is easier to
9627         match up the operands and attributes with the insn alternatives.
9628         (vsx_mov<mode>_64bit): Likewise.
9629         (vsx_mov<mode>_32bit): Likewise.
9630         (vsx_movti_64bit): Fold movti into normal vector moves.
9631         (vsx_movti_32bit): Likewise.
9632         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
9633         splat instructions.
9634         (vsx_splat_v4si_internal): Likewise.
9635         (vsx_splat_v4sf_internal): Likewise.
9636         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
9637         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
9638         extend vector elements.
9639         (vsx_sign_extend_hi_<mode>): Likewise.
9640         (vsx_sign_extend_si_v2di): Likewise.
9641         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
9642         declaration.
9643         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
9644         constraints.  Add trailing period to wL documentation.
9646 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
9648         PR middle-end/71020
9649         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
9650         * tree-dfa.c (replace_abnormal_ssa_names): New function.
9651         * tree-call-cdce.c: Include tree-dfa.h.
9652         (can_guard_call_p): New function, extracted from...
9653         (can_use_internal_fn): ...here.
9654         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
9655         and return void.
9656         (shrink_wrap_one_built_in_call): Likewise.
9657         (use_internal_fn): Likewise.
9658         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
9659         and return void.  Call replace_abnormal_ssa_names.
9660         (pass_call_cdce::execute): Check can_guard_call_p during the
9661         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
9662         will always change something.
9664 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9666         PR ipa/70646
9667         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
9668         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
9670 2016-05-18  Martin Jambor  <mjambor@suse.cz>
9672         PR ipa/70646
9673         * ipa-inline.h (condition): New field size.
9674         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
9675         for comaprison and store it into the new condition.
9676         (evaluate_conditions_for_known_args): Use condition size to check
9677         access sizes for all but CHANGED conditions.
9678         (unmodified_parm_1): New parameter size_p, store access size into it.
9679         (unmodified_parm): Likewise.
9680         (unmodified_parm_or_parm_agg_item): Likewise.
9681         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
9682         (set_cond_stmt_execution_predicate): Extract access sizes and store
9683         them to conditions.
9684         (set_switch_stmt_execution_predicate): Likewise.
9685         (will_be_nonconstant_expr_predicate): Likewise.
9686         (will_be_nonconstant_predicate): Likewise.
9687         (inline_read_section): Stream condition size.
9688         (inline_write_summary): Likewise.
9690 2016-05-18  Richard Biener  <rguenther@suse.de>
9692         * tree-ssa-loop-im.c (determine_max_movement): Properly add
9693         condition cost to PHI cost instead of total_cost.
9695 2016-05-18  Martin Liska  <mliska@suse.cz>
9697         PR fortran/70856
9698         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
9699         merged variables.
9701 2016-05-18  Richard Biener  <rguenther@suse.de>
9703         * lto-streamer.h (LTO_major_version): Bump to 6.
9705 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
9707         * function.c (make_split_prologue_seq, make_prologue_seq,
9708         make_epilogue_seq): New functions, factored out from...
9709         (thread_prologue_and_epilogue_insns): Here.
9711 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
9713         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9714         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
9715         of before.  Add a comment.
9717 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
9719         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
9720         expression pointer, not pointer to the pointer.
9722 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
9724         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
9725         (avx2_pbroadcast<mode>): Add another alternative with v instead
9726         of x constraints in it, using <pbroadcast_evex_isa> isa.
9727         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
9729         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
9730         constraint x instead of v in second alternative, add avx512bw
9731         alternative.
9733         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
9734         constraint x instead of v in second alternative, add avx512bw
9735         alternative.
9737         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
9738         constraint x instead of v in second alternative, add avx512bw
9739         alternative.
9741         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
9742         avx512bw alternative.
9744 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9746         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
9747         array to 128 chars.
9748         (define_insn "*andnottf3"): Ditto.
9749         (define_insn "*<code><mode>3"/any_logic): Ditto.
9750         (define_insn "*<code>tf3"/any_logic): Ditto.
9751         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
9752         operand to block AVX-512VL insn variant emit when it is not enabled.
9754 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9756         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
9757         constraint fot SF mode.
9759 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
9760             Kirill Yukhin  <kirill.yukhin@intel.com>
9762         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
9763         modifiers.
9764         (define_insn "rsqrt14<mode>"): Ditto.
9765         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9766         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
9767         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
9768         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9769         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
9770         Ditto.
9771         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
9772         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
9773         * config/i386/i386.c (ix86_print_operand): Expand check for size
9774         override codes for Intel syntax.
9776 2016-05-18  Richard Biener  <rguenther@suse.de>
9778         PR tree-optimization/71168
9779         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
9780         initialization earlier.
9782 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
9784         * config/aarch64/aarch64-simd.md
9785         (aarch64_reduc_plus_internal<mode>): Rename to...
9786         (reduc_plus_scal): ...This, and remove previous implementation.
9788 2016-05-18  Richard Biener  <rguenther@suse.de>
9790         * passes.def: Put late dse and cd_dce in canonical order.
9792 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
9794         * ipa-inline-transform.c (preserve_function_body_p): Look for
9795         first non-thunk clone.
9796         (save_function_body): Save into first non-thunk.
9797         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
9798         up call stmt id.
9799         (lto_output_node): Inline thunks don't need body in every
9800         partition.
9801         * lto-streamer-in.c: Do not fixup thunk clones.
9802         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
9803         thunks.
9804         * tree-inline.c (copy_bb): Be prepared for target node to be new after
9805         folding suceeds.
9807 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
9809         PR middle-end/63586
9810         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
9811         (reassociate_bb): Call transform_add_to_multiply.
9813 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
9815         * config/aarch64/aarch64.c (all_extensions): Removed unused
9816         static variable.
9818 2016-05-17  Nathan Sidwell  <nathan@acm.org>
9820         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
9821         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
9823 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
9825         PR tree-optimization/54579
9826         PR middle-end/55299
9827         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
9829 2016-05-17  Marek Polacek  <polacek@redhat.com>
9831         PR ipa/71146
9832         * tree-inline.c (expand_call_inline): Call
9833         maybe_remove_unused_call_args.
9835 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
9837         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
9838         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
9839         * doc/md.texi (fmin@var{m}3): Likewise.
9841 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
9843         * match.pd (X & C): New transformation.
9845 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
9847         * match.pd (~X & Y): New transformation.
9849 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
9851         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
9852         information for new SSA_NAME.
9853         (simplify_conversion_using_ranges): Get range through get_range_info
9854         instead of get_value_range.
9856 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
9858         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
9859         Remove inline assembly.
9860         (vmvn_s16): Likewise.
9861         (vmvn_s32): Likewise.
9862         (vmvn_u8): Likewise.
9863         (vmvn_u16): Likewise.
9864         (vmvn_u32): Likewise.
9865         (vmvnq_s8): Likewise.
9866         (vmvnq_s16): Likewise.
9867         (vmvnq_s32): Likewise.
9868         (vmvnq_u8): Likewise.
9869         (vmvnq_u16): Likewise.
9870         (vmvnq_u32): Likewise.
9871         (vmvn_p8): Likewise.
9872         (vmvnq_p16): Likewise.
9874 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
9876         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
9877         Use builtin.
9878         (vmul_n_s16): Likewise.
9879         (vmul_n_s32): Likewise.
9880         (vmul_n_u16): Likewise.
9881         (vmul_n_u32): Likewise.
9882         (vmulq_n_f32): Likewise.
9883         (vmulq_n_f64): Likewise.
9884         (vmulq_n_s16): Likewise.
9885         (vmulq_n_s32): Likewise.
9886         (vmulq_n_u16): Likewise.
9887         (vmulq_n_u32): Likewise.
9889 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
9891         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
9892         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
9894 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
9896         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
9897         to *aarch64_fma4_elt_from_dup<mode>.
9898         (*aarch64_fnma4_elt_to_128df): Rename to
9899         *aarch64_fnma4_elt_from_dup<mode>.
9900         * config/aarch64/arm_neon.h (vfma_n_f64): New.
9901         (vfms_n_f32): Likewise.
9902         (vfms_n_f64): Likewise.
9903         (vfmsq_n_f32): Likewise.
9904         (vfmsq_n_f64): Likewise.
9906 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
9908         * wide-int.h: Change fixed_wide_int_storage from class to struct.
9910 2016-05-17  Richard Biener  <rguenther@suse.de>
9912         PR tree-optimization/71132
9913         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
9914         Only add control dependences for blocks in the loop.
9915         (build_rdg): Adjust.
9916         (generate_code_for_partition): Return whether loop should
9917         be destroyed and delay that.
9918         (distribute_loop): Likewise.
9919         (pass_loop_distribution::execute): Record loops to be destroyed
9920         and perform delayed destroying of loops.
9922 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9924         PR target/70809
9925         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
9927 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
9929         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
9931 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
9933         PR target/71114
9934         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
9935         insertion point for instructions generated by validize_mem.
9937 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
9939         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
9940         in brackets.
9942 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
9944         * config/aarch64/aarch64.c
9945         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
9946         rather than a macro.
9948 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
9950         * doc/invoke.texi (AArch64 Options): Various updates.
9952 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
9954         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
9955         into instrumentation thunks.
9956         * cif-code.def (CIF_CHKP): New.
9958 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
9960         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
9962 2016-05-16  Martin Jambor  <mjambor@suse.cz>
9964         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
9965         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
9967 2016-05-16  Marek Polacek  <polacek@redhat.com>
9969         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
9970         commentary.
9972 2016-05-16  Martin Jambor  <mjambor@suse.cz>
9974         PR hsa/70857
9975         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
9976         the outlined kernel function.
9978 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
9980         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
9981         (ISA_HAS_DLSA): Ditto.
9983 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
9985         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
9987 2016-05-16  Nathan Sidwell  <nathan@acm.org>
9989         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
9990         (nvptx_name_replacement): Restore.  Add comment.
9991         (write_fn_proto, write_fn_proto_from_insn,
9992         nvptx_output_call_insn): Restore
9993         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
9995 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
9997         * config/aarch64/aarch64.md
9998         (add<mode>3_compareC_cconly_imm): Remove use of %w.
9999         (add<mode>3_compareC_imm): Likewise.
10000         (<optab>si3_uxtw): Split into register and immediate variants.
10001         (andsi3_compare0_uxtw): Likewise.
10002         (and<mode>3_compare0): Likewise.
10003         (and<mode>3nr_compare0): Likewise.
10004         (stack_protect_test_<mode>): Don't use %x for memory operands.
10006 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
10008         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
10010 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10012         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10013         Split integer shifts into shift_reg and bfm.
10014         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
10015         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10016         (ror<mode>3_insn): Likewise.
10017         (<optab>si3_insn_uxtw): Likewise.
10018         (<optab><mode>3_insn): Change to rotate_imm.
10019         (extr<mode>5_insn_alt): Likewise.
10020         (extrsi5_insn_uxtw): Likewise.
10021         (extrsi5_insn_uxtw_alt): Likewise.
10023 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10025         * doc/tm.texi: Regenerate.
10026         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
10027         (TARGET_INVALID_RETURN_TYPE): Remove.
10028         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
10029         TARGET_INVALID_RETURN_TYPE.
10030         * target.def (invalid_parameter_type): Remove.
10031         (invalid_return_type): Remove.
10033 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10035         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
10036         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
10037         calls from thunk.
10038         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
10039         gimple body.
10040         (preserve_function_body_p): No need to preserve function body
10041         * cif-codes.def (CIF_THUNK): Remove.
10042         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
10044 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10046         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
10048 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10050         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
10051         for thunks.
10053 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10055         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
10056         (inline_small_functions): Do not look for function symbol when
10057         resetting caches.
10059 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10061         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
10062         of inline thunks
10064 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10065             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10066             Jiong Wang  <jiong.wang@arm.com>
10068         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
10069         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
10070         Define __ARM_FP16_ARGS when appropriate.
10071         * config/arm/arm.c (arm_invalid_parameter_type): Remove
10072         declaration.
10073         (arm_invalid_return_type): Likewise.
10074         (TARGET_INVALID_PARAMETER_TYPE): Remove.
10075         (TARGET_INVALID_RETURN_TYPE): Remove.
10076         (aapcs_vfp_sub_candidate): Allow HFmode.
10077         (aapcs_vfp_allocate): Add comment.  Support HFmode.
10078         (aapcs_vfp_allocate_return_reg): Likewise.
10079         (struct aapcs_cp_arg_layout): Slightly reword comments for
10080         is_return_candidate and allocate_return_reg.
10081         (output_mov_vfp): Update assert.
10082         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
10083         condition.
10084         (arm_invalid_parameter_type): Remove.
10085         (amr_invalid_return_type): Remove.
10086         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
10087         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
10088         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
10090 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10092         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10093         * config/aarch64/arch64-protos.h
10094         (aarch64_legitimize_reload_address): Remove.
10095         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
10096         Remove.
10098 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10100         * configure.ac: Add ACX_NONCANONICAL_HOST.
10101         * configure: Regenerate.
10102         * Makefile.in: Set host_noncanonical.
10104 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
10106         PR target/71097
10107         * config/i386/i386.md (*movtf_internal): Before register allocation,
10108         do not allow FP constants for CM_MEDIUM memory model, allow only
10109         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
10110         (*movxf_internal): Ditto.
10111         (*movdf_internal): Ditto.
10112         (*movsf_internal): Ditto.
10114 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
10116         PR rtl-optimization/67483
10117         * combine.c (make_compound_operation): Don't call extract_left_shift
10118         with negative shift amounts.
10120 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
10122         PR bootstrap/71071
10123         * fold-const.c (fold_checksum_tree): Allow modification
10124         of TYPE_ALIAS_SET during folding.
10126         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
10127         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
10128         (ix86_split_to_parts): Likewise.  Fix up formatting.
10130 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
10132         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
10133         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
10134         printf format.
10136 2016-05-13  Nathan Sidwell  <nathan@acm.org>
10138         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
10139         (nvptx_name_replacement): Delete.
10140         (write_fn_proto, write_fn_proto_from_insn,
10141         nvptx_output_call_insn): Remove nvptx_name_replacement call.
10142         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
10143         * langhooks.c (add_builtin_funcction_common): Call
10144         targetm.mangle_decl_assembler_name.
10146         * config/nvptx/nvptx.c (write_fn_proto): Handle
10147         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
10149 2016-05-13  Martin Liska  <mliska@suse.cz>
10151         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
10152         and PRIu64 in printf format.
10154 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10156         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
10157         comment.
10159 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10161         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10162         Change --param max-completely-peeled-times to
10163         --param max-completely-peel-times in dump file printing.
10165 2016-05-13  Richard Biener  <rguenther@suse.de>
10167         PR tree-optimization/42587
10168         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
10169         (find_bswap_or_nop_1): Likewise.
10170         (bswap_replace): Likewise.
10172 2016-05-13  Martin Liska  <mliska@suse.cz>
10174         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
10175         Initialize a variable with default value.
10177 2016-05-13  Martin Liska  <mliska@suse.cz>
10179         * doc/invoke.texi: Enhance explanation of error recovery
10180         of sanitizers.
10182 2016-05-13  Martin Liska  <mliska@suse.cz>
10184         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
10185         (struct cost_pair): Change inv_expr_id (int) to inv_expr
10186         (iv_inv_expr_ent *).
10187         (struct iv_inv_expr_ent): Comment struct fields.
10188         (sort_iv_inv_expr_ent): New function.
10189         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
10190         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
10191         a hash_map between iv_inv_expr_ent and number of usages.
10192         (niter_for_exit): Fix coding style.
10193         (tree_ssa_iv_optimize_init): Use renamed variable.
10194         (determine_base_object): Fix coding style.
10195         (alloc_iv): Likewise.
10196         (find_interesting_uses_outside): Likewise.
10197         (add_candidate_1): Likewise.
10198         (add_standard_iv_candidates): Likewise.
10199         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
10200         (prepare_decl_rtl): Fix coding style.
10201         (get_address_cost): Likewise.
10202         (get_shiftadd_cost): Likewise.
10203         (force_expr_to_var_cost): Likewise.
10204         (compare_aff_trees): Likewise.
10205         (get_expr_id): Restructure the function.
10206         (get_loop_invariant_expr_id): Renamed to
10207         get_loop_invariant_expr.
10208         (get_computation_cost_at): Replace usage of inv_expr_id with
10209         inv_expr.
10210         (get_computation_cost): Likewise.
10211         (determine_group_iv_cost_generic): Likewise.
10212         (determine_group_iv_cost_address): Likewise.
10213         (iv_period): Fix coding style.
10214         (iv_elimination_compare_lt): Likewise.
10215         (may_eliminate_iv): Likewise.
10216         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
10217         inv_expr.
10218         (determine_group_iv_costs): Dump invariant expressions.
10219         (iv_ca_recount_cost): Use the newly added hash_map.
10220         (iv_ca_set_remove_invariants): Fix coding style.
10221         (iv_ca_set_add_invariants): Fix coding style.
10222         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
10223         invariants.
10224         (iv_ca_set_cp): Likewise.
10225         (iv_ca_new): Initialize the newly added hash_map and remove
10226         initialization of fields.
10227         (iv_ca_free): Delete the hash_map.
10228         (iv_ca_dump): Dump invariant expressions.
10229         (iv_ca_extend): Fix coding style.
10230         (try_add_cand_for): Likewise.
10231         (create_new_ivs): Dump information about # of avg iterations and
10232         # of used invariant expressions.
10233         (rewrite_use_compare): Fix coding style.
10234         (free_loop_data): Set default value for max_inv_expr_id.
10236 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10238         * cse.c (rest_of_handle_cse): Use cleanup_cfg
10239         returned value cse_cfg_altered computation.
10240         (rest_of_handle_cse2): Likewise.
10241         (rest_of_handle_cse_after_global_opts): Likewise.
10243 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10245         PR target/53440
10246         * config/arm/arm.c (arm32_output_mi_thunk): New.
10247         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
10248         to split Thumb1 vs TARGET_32BIT functionality.
10249         (arm_thumb1_mi_thunk): New.
10251 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10253         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
10254         to true.
10256 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10258         PR target/71080
10259         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
10261 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10263         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
10264         (expand_builtin_trap): Emit a regular call.
10265         (set_builtin_user_assembler_name): Remove obsolete cases.
10266         * dse.c (scan_insn): Adjust.
10267         * except.c: Include calls.h.
10268         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
10269         emit a regular call to setjmp.
10270         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
10271         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
10272         (emit_block_move_via_libcall): Delete.
10273         (block_move_fn): Delete.
10274         (init_block_move_fn): Likewise.
10275         (emit_block_move_libcall_fn): Likewise.
10276         (emit_block_op_via_libcall): New function.
10277         (set_storage_via_libcall): Tidy up and use memset builtin.
10278         (block_clear_fn): Delete.
10279         (init_block_clear_fn): Likewise.
10280         (clear_storage_libcall_fn): Likewise.
10281         (expand_assignment): Call emit_block_move_via_libcall.
10282         Do not include gt-expr.h.
10283         * expr.h (emit_block_op_via_libcall): Declare.
10284         (emit_block_copy_via_libcall): New inline function.
10285         (emit_block_move_via_libcall): Likewise.
10286         (emit_block_comp_via_libcall): Likewise.
10287         (block_clear_fn): Delete.
10288         (init_block_move_fn): Likewise.
10289         (init_block_clear_fn): Likewise.
10290         (emit_block_move_via_libcall): Likewise.
10291         (set_storage_via_libcall): Add default parameter value.
10292         * libfuncs.h (enum libfunc_index): Remove obsolete values.
10293         (abort_libfunc): Delete.
10294         (memcpy_libfunc): Likewise.
10295         (memmove_libfunc): Likewise.
10296         (memcmp_libfunc): Likewise.
10297         (memset_libfunc): Likewise.
10298         (setbits_libfunc): Likewise.
10299         (setjmp_libfunc): Likewise.
10300         (longjmp_libfunc): Likewise.
10301         (profile_function_entry_libfunc): Likewise.
10302         (profile_function_exit_libfunc): Likewise.
10303         (gcov_flush_libfunc): Likewise.
10304         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
10305         and DECL_VISIBILITY on the declaration.
10306         (init_optabs): Do not initialize obsolete libfuncs.
10307         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
10308         * tree-core.h (ECF_RET1): Define.
10309         (ECF_TM_PURE): Adjust.
10310         (ECF_TM_BUILTIN): Likewise.
10311         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
10312         (build_common_builtin_nodes): Initialize abort builtin.
10313         Add ECF_RET1 on memcpy, memmove and memset builtins.
10314         Pass final flags for alloca and alloca_with_align builtins.
10315         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
10316         obsolete builtins.
10317         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
10318         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
10319         set_storage_via_libcall and call emit_block_copy_via_libcall.
10321 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
10323         * config/i386/i386.md (*call_got_x32): Change operand 0 to
10324         DImode before it is passed to ix86_output_call_operand.
10325         (*call_value_got_x32): Ditto for operand 1.
10327 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
10329         PR rtl-optimization/70904
10330         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
10331         reload for wide mode.
10333 2016-05-12  Marek Polacek  <polacek@redhat.com>
10335         PR c/70756
10336         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
10337         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
10338         * langhooks.h (incomplete_type_error): Likewise.
10339         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
10340         parameter, pass it down to incomplete_type_error.
10341         * tree.h (size_in_bytes): New inline overload.
10342         (size_in_bytes_loc): Renamed from size_in_bytes.
10344 2016-05-12  Richard Biener  <rguenther@suse.de>
10346         PR tree-optimization/71059
10347         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
10348         nary before looking up or entering the expression into the VN
10349         hashes.
10350         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
10351         Make sure to re-use NARYs without result as inserted by
10352         phi-translation.
10354 2016-05-12  Richard Biener  <rguenther@suse.de>
10356         PR tree-optimization/71062
10357         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
10358         field.
10359         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10360         vars_contains_restrict if the var is a restrict tag.
10361         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
10362         do not disambiguate pointers against it.
10363         (dump_points_to_solution): Re-structure and adjust for new
10364         vars_contains_restrict flag.
10365         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
10367 2016-05-12  Martin Liska  <mliska@suse.cz>
10369         * doc/invoke.texi: Explain connection between
10370         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
10372 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
10374         PR tree-optimization/71006
10375         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10376         consider COND_EXPR as a mask producer.
10378 2016-05-12  Marek Polacek  <polacek@redhat.com>
10380         PR driver/71063
10381         * opts.c (common_handle_option): Detect missing argument for --help^.
10383 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10385         PR target/70830
10386         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
10387         when popping the PC and within an interrupt handler routine.
10388         Add missing tab to output of "ldmfd".
10389         (output_return_instruction): Output LDMFD with SP update rather
10390         than POP when returning from interrupt handler.
10392 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
10394         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
10395         TARGET_64BIT && TARGET_AVX512DQ.
10396         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
10397         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
10398         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
10399         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
10400         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
10401         (*vec_extractv4si_zext): Add avx512dq alternative.
10402         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
10403         use v instead of x constraint in other alternatives where possible.
10405         * config/i386/sse.md (sse2_loadld): Use v instead of x
10406         constraint in alternatives 0,1,4.
10408         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
10409         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
10410         v constraints instead of x and <pinsr_evex_isa> isa attribute.
10412         PR target/71019
10413         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
10414         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
10415         is not emitted unless TARGET_AVX512BW.
10416         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
10417         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
10418         for the result operand.
10420         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
10421         constraint instead of x in avx alternatives.  Use maybe_evex instead
10422         of vex prefix.
10424         * config/i386/constraints.md (Yv): New constraint.
10425         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
10426         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
10427         * config/i386/i386.md (avx512fvecmode): New mode attr.
10428         (*pushtf): Use v constraint instead of x.
10429         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
10430         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
10431         (*absneg<mode>2): Use Yv constraint instead of x constraint.
10432         (*absnegtf2_sse): Likewise.
10433         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
10434         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
10435         avx512f alternatives.
10436         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
10438 2016-05-12  Richard Biener  <rguenther@suse.de>
10440         PR tree-optimization/71060
10441         * tree-data-ref.c (initialize_data_dependence_relation): Do not
10442         require exact match of DR_BASE_OBJECT but only matching address and
10443         type.
10445 2016-05-12  Richard Biener  <rguenther@suse.de>
10447         PR tree-optimization/70986
10448         * cfganal.c: Include cfgloop.h.
10449         (dfs_find_deadend): Prefer to take edges exiting loops.
10451 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10453         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
10454         compile and run time.
10456 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
10458         PR c/43651
10459         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
10461 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
10463         * config/i386/i386.c (legitimize_pic_address): Use
10464         copy_to_suggested_reg instead of gen_movsi.
10466 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10468         * config/rs6000/predicates.md (quad_memory_operand): Move most of
10469         the code into quad_address_p and call it to share code with
10470         vsx_quad_dform_memory_operand.
10471         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
10472         d-form support.
10473         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
10474         bit instead of being a separate word.  Split -mpower9-dform into
10475         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
10476         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
10477         for the register class supporting 128-bit quad word memory offsets.
10478         (mode_supports_vsx_dform_quad): Helper function to return if the
10479         register class uses quad word memory offsets.
10480         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
10481         (rs6000_debug_reg_global): Always print if we are using LRA or not.
10482         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
10483         instructions are enabled, set up the appropriate addr_masks for
10484         128-bit types.
10485         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
10486         -mpower9-dform-scalar, instead of -mpower9-dform.
10487         (rs6000_option_override_internal): Split -mpower9-dform into two
10488         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
10489         -mpower9-dform switch sets or clears both.  If we are not using
10490         the LRA register allocator, do not enable -mpower9-dform-vector by
10491         default.  If we are using LRA, enable -mpower9-dform-vector and
10492         -mvsx-timode if it is appropriate.  Issue a warning if either
10493         -mpower9-dform-vector or -mvsx-timode are explicitly used without
10494         enabling LRA.
10495         (quad_address_offset_p): New helper function to return if the
10496         offset is legal for quad word memory instructions.
10497         (quad_address_p): New function to determin if GPR or vector
10498         register quad word memory addresses are legal.
10499         (mem_operand_gpr): Validate quad word address offsets.
10500         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
10501         d-form (register + offset) instructions.
10502         (offsettable_ok_by_alignment): Likewise.
10503         (rs6000_legitimate_offset_address_p): Likewise.
10504         (legitimate_lo_sum_address_p): Likewise.
10505         (rs6000_legitimize_address): Likewise.
10506         (rs6000_legitimize_reload_address): Add more debug statements for
10507         -mdebug=addr.
10508         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
10509         d-form instructions.
10510         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
10511         d-form instructions.  Distinguish different cases in debug
10512         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
10513         d-form instructions.
10514         (rs6000_preferred_reload_class): Likewise.
10515         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
10516         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
10517         of the ISA 2.06 indexed memory instructions.
10518         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
10519         use them to save/restore the saved vector registers instead of
10520         using Altivec instructions.
10521         (rs6000_emit_epilogue): Likewise.
10522         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
10523         (rs6000_opt_masks): Split -mpower9-dform into
10524         -mpower9-dform-scalar and -mpower9-dform-vector.
10525         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
10526         was not selected.
10527         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
10528         ISA 3.0 vector indexed memory instructions, and fold the code into
10529         the normal mov<mode> patterns.
10530         (p9_vecstore_<mode>): Likewise.
10531         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
10532         instructions.
10533         (vsx_movti_64bit): Likewise.
10534         (vsx_movti_32bit): Likewise.
10535         * config/rs6000/constraints.md (wO constraint): New constraint for
10536         ISA 3.0 vector d-form support.
10537         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
10538         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
10539         include -mpower9-dform-vector until we switch over to LRA.
10540         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
10541         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
10542         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
10543         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
10544         for -mpower9-dform and -mlra.
10545         * doc/md.texi (wO constraint): Document wO constraint.
10547 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
10549         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
10550         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
10551         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
10552         Move handling of non-insn arguments inline into the sole user:
10553         (output_trans_func): ...here.
10554         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
10555         in emitted function prototype.
10556         (output_internal_insn_latency_func): Ditto.  Simplify.
10557         (output_internal_maximal_insn_latency_func): Ditto.  Delete
10558         always-unused argument.
10559         (output_insn_latency_func): Ditto.
10560         (output_maximal_insn_latency_func): Ditto.
10562 2016-05-11  Richard Biener  <rguenther@suse.de>
10564         PR tree-optimization/71055
10565         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
10566         sth with precision not equal to access size verify we don't chop
10567         off bits.
10569 2016-05-11  Richard Biener  <rguenther@suse.de>
10571         PR debug/71057
10572         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
10573         (dwarf2out_finish): Move retry_incomplete_types call ...
10574         (dwarf2out_early_finish): ... here.
10576 2016-05-11  Richard Biener  <rguenther@suse.de>
10578         PR middle-end/71002
10579         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
10580         if the langhook insists on it.
10581         * fold-const.c (make_bit_field_ref): Add arg for the original
10582         reference and preserve its alias-set.
10583         (decode_field_reference): Take exp by reference and adjust it
10584         to the original memory reference.
10585         (optimize_bit_field_compare): Adjust callers.
10586         (fold_truth_andor_1): Likewise.
10587         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
10589 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
10591         PR middle-end/70807
10592         * cfgrtl.h (delete_insn_and_edges): Now return bool.
10593         * cfgrtl.c (delete_insn_and_edges): Likewise.
10594         * config/i386/i386.c (convert_scalars_to_vector): Remove
10595         redundant code.
10596         * cse.c (cse_insn): Compute cse_cfg_altered.
10597         (delete_trivially_dead_insns): Likewise.
10598         (cse_cc_succs): Likewise.
10599         (rest_of_handle_cse): Free dominance info if required.
10600         (rest_of_handle_cse2): Likewise.
10601         (rest_of_handle_cse_after_global_opts): Likewise.
10603 2016-05-11  Alan Modra  <amodra@gmail.com>
10605         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
10606         abi_v4_pass_in_fpr): New functions.
10607         (rs6000_function_arg_boundary): Exclude complex IBM long double
10608         from 64-bit alignment when ABI_V4.
10609         (rs6000_function_arg, rs6000_function_arg_advance_1,
10610         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
10612 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
10614         PR rtl-optimization/71028
10615         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
10616         jump with just a return in the fallthrough block if the branch
10617         block contains just a return as well.
10619 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
10621         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
10622         * match.pd ((X & Y) ^ Y): ... this.
10623         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
10624         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
10626 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
10628         * read-md.c (require_char_ws): New function.
10629         (read_string): Simplify using require_char_ws.
10630         (handle_constants): Likewise.
10631         (handle_enum): Likewise.
10632         (handle_file): Likewise.
10633         * read-md.h (require_char_ws): New declaration.
10634         * read-rtl.c (read_conditions): Simplify using require_char_ws.
10635         (read_mapping): Likewise.
10636         (read_rtx_code): Likewise.
10637         (read_nested_rtx): Likewise.
10639 2016-05-10  James Norris  <jnorris@codesourcery.com>
10641         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
10642         if offloading is enabled and -fopenacc or -fopenmp is specified.
10643         (CRTOFFLOADEND): Likewise.
10644         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
10645         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
10647 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
10649         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
10650         gotoff_operand code paths.  Use copy_to_suggested_regs and
10651         expand_simple_binop where appropriate.  Cleanup.
10653 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10655         PR target/70799
10656         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
10657         integer constants.
10658         (dimode_scalar_chain::vector_const_cost): New.
10659         (dimode_scalar_chain::compute_convert_gain): Handle constants.
10660         (dimode_scalar_chain::convert_op): Likewise.
10661         (dimode_scalar_chain::convert_insn): Likewise.
10663 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
10665         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
10666         unary operation, not a binary one.
10668 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10670         PR middle-end/70877
10671         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
10672         calls with type casted fndecl.
10674 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
10676         PR tree-optimization/70786
10677         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
10678         * calls.c (initialize_argument_information): Bind bounds
10679         with corresponding args passed by reference.
10681 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
10683         PR target/70927
10684         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
10685         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
10686         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
10687         accordingly.
10689 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10691         PR target/70963
10692         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
10693         code for a zero scale factor.
10694         (vsx_xvcvdpuxds_scale): Likewise.
10696 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
10698         * diagnostic-show-locus.c (layout::layout): Call show_ruler
10699         if show_ruler_p was set on the context.
10700         (layout::show_ruler): New method.
10701         * diagnostic.h (struct diagnostic_context): Add field
10702         "show_ruler_p".
10704 2016-05-10  Richard Biener  <rguenther@suse.de>
10706         PR tree-optimization/71039
10707         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
10708         (chk_uses): New function.
10709         (propagate_with_phi): Verify we can safely replicate the lhs of an
10710         aggregate assignment on all incoming edges.
10712 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
10714         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
10715         Forward declare.
10716         (rx_atomic_sequence): New class.
10717         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
10718         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
10719         non-inline.
10720         (rx_atomic_sequence::rx_atomic_sequence,
10721         rx_atomic_sequence::~rx_atomic_sequence): New functions.
10722         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
10723         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
10724         CTRLREG_INTB): New constants.
10725         (FETCHOP): New code iterator.
10726         (fethcop_name, fetchop_name2): New iterator code attributes.
10727         (QIHI): New mode iterator.
10728         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
10729         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
10730         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
10732 2016-05-10  Martin Liska  <mliska@suse.cz>
10734         * tree-inline.c (remap_dependence_clique): Do not remap
10735         debugging statements.
10737 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10739         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
10740         ("*fixuns_truncdfdi2_z13")
10741         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
10742         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
10743         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
10745 2016-05-10  Richard Biener  <rguenther@suse.de>
10747         PR tree-optimization/70497
10748         PR tree-optimization/28367
10749         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
10750         split out from ...
10751         (visit_reference_op_load): ... here.
10752         (vn_reference_lookup_3): Use it to handle subreg-like accesses
10753         with simplified BIT_FIELD_REFs.
10754         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
10755         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
10756         correctly.
10758 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
10760         * dwarf2out.c (add_abstract_origin_attribute): Adjust
10761         documentation comment.  For BLOCK nodes, add a
10762         DW_AT_abstract_origin attribute that points to the DIE generated
10763         for the origin BLOCK.
10764         (gen_lexical_block_die): Call add_abstract_origin_attribute for
10765         blocks from inlined functions.
10767 2016-05-10  Alan Modra  <amodra@gmail.com>
10769         PR target/70947
10770         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
10771         regrename modifying insns saving lr before __morestack call.
10772         * config/rs6000/rs6000.md (split_stack_return): Similarly for
10773         insns restoring lr after __morestack call.
10775 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
10777         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
10778         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
10779         expanders.
10780         * config/i386/sse.md (vec_interleave_high<mode>,
10781         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
10782         <avx512>_vpermt2var<mode>3_maskz): Likewise.
10784 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10786         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
10787         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
10788         parallel reassociation for power8 and forward.
10790 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
10792         * config/i386/i386.md (absneg splitters with general regs): Use
10793         general_reg_operand predicate.
10794         (btsq peephole2): Use x86_64_immediate_operand to check if new
10795         value is suitable for immediate operand.  Generate emitted insn
10796         using RTL expressions.
10797         (btcq peephole2): Ditto.
10798         (btrq peephole2): Ditto.  Generate correct immediate operand
10799         for AND masking.
10801 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
10803         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
10804         bitpos.
10806 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
10808         * tree-affine.c (wide_int_constant_multiple_p): Add missing
10809         pointer dereference.
10811 2016-05-09  Richard Biener  <rguenther@suse.de>
10813         PR tree-optimization/70985
10814         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
10815         op0 isn't a gimple register.
10817 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
10819         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
10820         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
10821         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
10822         (i6400_fpu_mult): New cpu units.
10823         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
10824         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
10825         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
10826         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
10827         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
10828         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
10829         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
10830         (i6400_msa_long_float4, i6400_msa_long_float5)
10831         (i6400_msa_long_float8, i6400_msa_fdiv_df)
10832         (i6400_msa_fdiv_sf): New reservations.
10833         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
10834         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
10835         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
10836         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
10837         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
10838         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
10839         (msa_short_cmp, msa_short_float2, msa_short_logic3)
10840         (msa_short_store4, msa_long_load, msa_short_store)
10841         (msa_long_logic, msa_long_float2, msa_long_float4)
10842         (msa_long_float5, msa_long_float8, msa_long_mult)
10843         (msa_long_fdiv, msa_long_div): New reservations.
10845 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
10846             Sameera Deshpande  <sameera.deshpande@imgtec.com>
10847             Matthew Fortune  <matthew.fortune@imgtec.com>
10848             Graham Stott  <graham.stott@imgtec.com>
10849             Chao-ying Fu  <chao-ying.fu@imgtec.com>
10851         * config.gcc: Add MSA header file for mips*-*-* target.
10852         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
10853         (Ubv8i, Urv8):  New constraints.
10854         * config/mips/mips-ftypes.def: Add function types for MSA
10855         builtins.
10856         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
10857         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
10858         * config/mips/mips-msa.md: New file.
10859         * config/mips/mips-protos.h
10860         (mips_split_128bit_const_insns): New prototype.
10861         (mips_msa_idiv_insns): Likewise.
10862         (mips_split_128bit_move): Likewise.
10863         (mips_split_128bit_move_p): Likewise.
10864         (mips_split_msa_copy_d): Likewise.
10865         (mips_split_msa_insert_d): Likewise.
10866         (mips_split_msa_fill_d): Likewise.
10867         (mips_expand_msa_branch): Likewise.
10868         (mips_const_vector_same_val_p): Likewise.
10869         (mips_const_vector_same_bytes_p): Likewise.
10870         (mips_const_vector_same_int_p): Likewise.
10871         (mips_const_vector_shuffle_set_p): Likewise.
10872         (mips_const_vector_bitimm_set_p): Likewise.
10873         (mips_const_vector_bitimm_clr_p): Likewise.
10874         (mips_msa_vec_parallel_const_half): Likewise.
10875         (mips_msa_output_division): Likewise.
10876         (mips_ldst_scaled_shift): Likewise.
10877         (mips_expand_vec_cond_expr): Likewise.
10878         * config/mips/mips.c (enum mips_builtin_type): Add
10879         MIPS_BUILTIN_MSA_TEST_BRANCH.
10880         (mips_gen_const_int_vector_shuffle): New prototype.
10881         (mips_const_vector_bitimm_set_p): New function.
10882         (mips_const_vector_bitimm_clr_p): Likewise.
10883         (mips_const_vector_same_val_p): Likewise.
10884         (mips_const_vector_same_bytes_p): Likewise.
10885         (mips_const_vector_same_int_p): Likewise.
10886         (mips_const_vector_shuffle_set_p): Likewise.
10887         (mips_symbol_insns): Forbid loading symbols via immediate for
10888         MSA.
10889         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
10890         stores.
10891         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
10892         MSA.
10893         (mips_lx_address_p): Add support load indexed address for MSA.
10894         (mips_address_insns): Add calculation of instructions needed for
10895         stores and loads for MSA.
10896         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
10897         CONST_VECTOR for MSA and let it fall through.
10898         (mips_ldst_scaled_shift): New function.
10899         (mips_subword_at_byte): Likewise.
10900         (mips_msa_idiv_insns): Likewise.
10901         (mips_legitimize_move): Validate MSA moves.
10902         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
10903         calculation of costs for MSA division.
10904         (mips_split_move_p): Check if MSA moves need splitting.
10905         (mips_split_move): Split MSA moves if necessary.
10906         (mips_split_128bit_move_p): New function.
10907         (mips_split_128bit_move): Likewise.
10908         (mips_split_msa_copy_d): Likewise.
10909         (mips_split_msa_insert_d): Likewise.
10910         (mips_split_msa_fill_d): Likewise.
10911         (mips_output_move): Handle MSA moves.
10912         (mips_expand_msa_branch): New function.
10913         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
10914         Reinstate 'y' modifier.
10915         (mips_file_start): Add MSA .gnu_attribute.
10916         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
10917         FPRs.
10918         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
10919         (mips_class_max_nregs): Add register size for MSA supported mode.
10920         (mips_cannot_change_mode_class): Allow conversion between MSA
10921         vector modes and TImode.
10922         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
10923         instruction.
10924         (mips_secondary_reload_class): Force MSA loads/stores via memory.
10925         (mips_preferred_simd_mode): Add preffered modes for MSA.
10926         (mips_vector_mode_supported_p): Add MSA supported modes.
10927         (mips_autovectorize_vector_sizes): New function.
10928         (mips_msa_output_division): Likewise.
10929         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
10930         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
10931         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
10932         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
10933         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
10934         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
10935         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
10936         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
10937         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
10938         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
10939         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
10940         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
10941         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
10942         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
10943         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
10944         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
10945         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
10946         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
10947         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
10948         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
10949         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
10950         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
10951         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
10952         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
10953         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
10954         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
10955         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
10956         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
10957         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
10958         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
10959         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
10960         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
10961         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
10962         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
10963         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
10964         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
10965         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
10966         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
10967         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
10968         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
10969         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
10970         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
10971         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
10972         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
10973         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
10974         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
10975         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
10976         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
10977         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
10978         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
10979         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
10980         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
10981         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
10982         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
10983         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
10984         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
10985         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
10986         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
10987         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
10988         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
10989         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
10990         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
10991         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
10992         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
10993         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
10994         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
10995         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
10996         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
10997         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
10998         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
10999         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
11000         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
11001         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
11002         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
11003         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
11004         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
11005         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
11006         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
11007         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
11008         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
11009         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
11010         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
11011         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
11012         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
11013         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
11014         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
11015         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
11016         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
11017         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
11018         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
11019         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
11020         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
11021         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
11022         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
11023         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
11024         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
11025         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
11026         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
11027         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
11028         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
11029         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
11030         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
11031         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
11032         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
11033         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
11034         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
11035         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
11036         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
11037         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
11038         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
11039         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
11040         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
11041         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
11042         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
11043         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
11044         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
11045         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
11046         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
11047         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
11048         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
11049         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
11050         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
11051         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
11052         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
11053         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
11054         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
11055         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
11056         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
11057         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
11058         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
11059         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
11060         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
11061         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
11062         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
11063         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
11064         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
11065         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
11066         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
11067         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
11068         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
11069         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
11070         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
11071         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
11072         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
11073         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
11074         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
11075         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
11076         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
11077         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
11078         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
11079         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
11080         move_v builtins.
11081         (mips_get_builtin_decl_index): New array.
11082         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
11083         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
11084         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
11085         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
11086         (mips_init_builtins): Initialize mips_get_builtin_decl_index
11087         array.
11088         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11089         hook.
11090         (mips_expand_builtin_insn): Prepare operands for
11091         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
11092         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
11093         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
11094         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
11095         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
11096         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
11097         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
11098         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
11099         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
11100         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
11101         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
11102         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
11103         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
11104         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
11105         CODE_FOR_msa_clti_s_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_maxi_s_b,
11108         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
11109         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
11110         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
11111         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
11112         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
11113         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
11114         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
11115         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
11116         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
11117         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
11118         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
11119         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
11120         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
11121         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
11122         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
11123         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
11124         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
11125         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
11126         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
11127         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
11128         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
11129         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
11130         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
11131         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
11132         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
11133         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
11134         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
11135         These are set implicitly and an error is reported if overridden.
11136         (mips_expand_builtin_msa_test_branch): New function.
11137         (mips_expand_msa_shuffle): Likewise.
11138         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
11139         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
11140         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
11141         (mips_expand_vec_unpack): Add support for MSA.
11142         (mips_expand_vector_init): Likewise.
11143         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
11144         instead of const0_rtx.
11145         (mips_msa_vec_parallel_const_half): New function.
11146         (mips_gen_const_int_vector): Likewise.
11147         (mips_gen_const_int_vector_shuffle): Likewise.
11148         (mips_expand_msa_cmp): Likewise.
11149         (mips_expand_vec_cond_expr): Likewise.
11150         * config/mips/mips.h
11151         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
11152         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
11153         specified.
11154         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
11155         (ISA_HAS_MSA): New macro.
11156         (UNITS_PER_MSA_REG): Likewise.
11157         (BITS_PER_MSA_REG): Likewise.
11158         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
11159         (MSA_REG_FIRST): New macro.
11160         (MSA_REG_LAST): Likewise.
11161         (MSA_REG_NUM): Likewise.
11162         (MSA_REG_P): Likewise.
11163         (MSA_REG_RTX_P): Likewise.
11164         (MSA_SUPPORTED_MODE_P): Likewise.
11165         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
11166         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
11167         * config/mips/mips.md: Include mips-msa.md.
11168         (alu_type): Add simd_add.
11169         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
11170         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
11171         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
11172         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
11173         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
11174         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
11175         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
11176         simd_move, simd_load, simd_store.  Choose "multi" for moves
11177         for "qword_mode".
11178         (qword_mode): New attribute.
11179         (insn_count): Add instruction count for quad moves.
11180         Increase the count for MIPS SIMD division.
11181         (UNITMODE): Add UNITMODEs for vector types.
11182         (addsub): New code iterator.
11183         * config/mips/mips.opt (mmsa): New option.
11184         * config/mips/msa.h: New file.
11185         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
11186         specified.
11187         * config/mips/mti-linux.h: Likewise.
11188         * config/mips/predicates.md
11189         (const_msa_branch_operand): New constraint.
11190         (const_uimm3_operand): Likewise.
11191         (const_uimm4_operand): Likewise.
11192         (const_uimm5_operand): Likewise.
11193         (const_uimm8_operand): Likewise.
11194         (const_imm5_operand): Likewise.
11195         (aq10b_operand): Likewise.
11196         (aq10h_operand): Likewise.
11197         (aq10w_operand): Likewise.
11198         (aq10d_operand): Likewise.
11199         (const_m1_operand): Likewise.
11200         (reg_or_m1_operand): Likewise.
11201         (const_exp_2_operand): Likewise.
11202         (const_exp_4_operand): Likewise.
11203         (const_exp_8_operand): Likewise.
11204         (const_exp_16_operand): Likewise.
11205         (const_vector_same_val_operand): Likewise.
11206         (const_vector_same_simm5_operand): Likewise.
11207         (const_vector_same_uimm5_operand): Likewise.
11208         (const_vector_same_uimm6_operand): Likewise.
11209         (const_vector_same_uimm8_operand): Likewise.
11210         (par_const_vector_shf_set_operand): Likewise.
11211         (reg_or_vector_same_val_operand): Likewise.
11212         (reg_or_vector_same_simm5_operand): Likewise.
11213         (reg_or_vector_same_uimm6_operand): Likewise.
11214         * doc/extend.texi (MIPS SIMD Architecture Functions): New
11215         section.
11216         * doc/invoke.texi (-mmsa): Document new option.
11218 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11220         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
11221         * configure: Regenerate.
11222         * config.in: Regenerate.
11223         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
11224         on -fvtable-verify.
11225         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
11226         (ENDFILE_VTV_SPEC): Define.
11228 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
11230         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
11231         registers in all interrupt handlers if necessary.
11232         (rl78_option_override): Add warning.
11233         (MUST_SAVE_MDUC_REGISTERS): New macro.
11234         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
11235         * config/rl78/rl78.c (check_mduc_usage): New function.
11236         (mduc_regs): New structure to hold MDUC register data.
11237         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
11238         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
11239         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
11240         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
11241         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
11242         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
11244 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
11246         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
11247         (tree-ssa-loop-niter.h): Ditto.
11248         (idx_within_array_bound, ref_within_array_bound): New functions.
11249         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
11250         Factor out check on writable base object to ...
11251         (base_object_writable): ... here.
11253 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11255         * config/arm/arm.md (probe_stack): Add modes to set source
11256         and destination.
11258 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
11260         * regrename.c (base_reg_class_for_rename): New static function.
11261         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
11263 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
11265         * cgraph.c (thunk_adjust): Export.
11266         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
11267         * cgraphunit.c (thunk_adjust): Export.
11268         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
11269         thunks.
11270         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
11271         inlinable.
11272         * tree-inline.c (expand_call_inline): Expand thunks inline.
11274 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
11276         PR target/70998
11277         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
11278         (*sse2_vd_cvtss2sd): Ditto.
11279         * config/i386/i386.md
11280         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
11281         Generate *sse2_vd_cvtsd2ss pattern.
11282         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
11283         Generate *sse2_vd_cvtss2sd pattern.
11285 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
11287         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
11288         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
11289         users.
11291 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
11293         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
11294         * config/sh/sh.c: Define and declare variables on first use throughout
11295         the file.
11296         (current_function_interrupt): Change to bool type.
11297         (frame_insn): Rename to emit_frame_insn and update users.
11298         (push_regs): Use bool for 'interrupt_handler' argument.
11299         (save_schedule_s): Remove.
11300         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
11301         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
11302         targetm.asm_out.unaligned_op.di.
11303         (gen_far_branch): Remove redundant forward declaration.
11304         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
11305         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
11306         (sh_set_return_address, sh_function_ok_for_sibcall,
11307         scavenge_reg): Update comments.
11308         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
11309         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
11310         (sh_attr_renesas_p): Remove unnecessary parentheses.
11311         (branch_dest): Simplify.
11312         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
11313         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
11314         (CUMULATIVE_ARGS): Change macro to typedef.
11315         (current_function_interrupt): Change to bool type.
11316         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
11317         Surround with __cplusplus ifdef.
11318         (sh_compare_op0, sh_compare_op1): Remove.
11319         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
11321 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
11323         * config/arm/arm.md: (arch): Add neon.
11324         (arch_enabled): Return yes for arch neon when TARGET_NEON.
11325         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
11326         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
11327         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
11328         attributes for alt renumbering.  Mark alt 3 as non-predicable.
11329         (thumb2_movdf_vfp): Likewise.
11331 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
11333         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
11334         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
11335         (*andqi_1): Add preferred_for_speed attribute to disparage
11336         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
11337         (*<code>qi_1): Ditto.
11338         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
11339         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
11340         (*ashlqi3_1): Ditto.
11341         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
11342         Add preferred_for_size attribute to disparage alternative 0 and
11343         preferred_for_speed attribute to disparage alternative 1 for
11344         TARGET_PARTIAL_REG_STALL targets.
11346 2016-05-07  Tom de Vries  <tom@codesourcery.com>
11348         PR tree-optimization/70956
11349         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
11350         def.
11352 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
11354         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
11355         * config/sh/sh.c (sh_cbranch_distance): Implement it.
11356         * config/sh/sh.md (branch_zero): Remove define_attr.
11357         (define_delay): Disable delay slot if branch distance is one insn.
11359 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
11361         * config/i386/i386.md (LEAMODE): New mode attribute.
11362         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
11363         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
11364         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
11365         operand 2 predicate.
11366         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
11367         (*lea<mode>_general_3): Ditto.
11368         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
11370 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
11372         * genmddump.c (main): Convert argv from char ** to const char **.
11374 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
11376         * coretypes.h (OVERRIDE): New macro.
11377         (FINAL): New macro.
11379 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
11381         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
11382         allow coalescing if the types are compatible.
11384 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
11386         * pass_manager.h (pass_manager::register_pass_name): New method.
11387         (pass_manager::get_pass_by_name): New method.
11388         (pass_manager::create_pass_tab): New method.
11389         (pass_manager::m_name_to_pass_map): New field.
11390         * passes.c (name_to_pass_map): Delete global in favor of field
11391         "m_name_to_pass_map" of pass_manager.
11392         (register_pass_name): Rename from a function to...
11393         (pass_manager::register_pass_name): ...this method, updating
11394         for renaming of global "name_to_pass_map" to field
11395         "m_name_to_pass_map".
11396         (create_pass_tab): Rename from a function to...
11397         (pass_manager::create_pass_tab): ...this method, updating
11398         for renaming of global "name_to_pass_map" to field.
11399         (get_pass_by_name): Rename from a function to...
11400         (pass_manager::get_pass_by_name): ...this method.
11401         (enable_disable_pass): Convert use of get_pass_by_name to
11402         a method call, locating the pass_manager singleton.
11404 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
11406         * genattr-common.c (main): Convert argv from char ** to const char **.
11407         * genattr.c (main): Likewise.
11408         * genattrtab.c (main): Likewise.
11409         * genautomata.c (initiate_automaton_gen): Likewise.
11410         (main): Likewise.
11411         * gencodes.c (main): Likewise.
11412         * genconditions.c (main): Likewise.
11413         * genconfig.c (main): Likewise.
11414         * genconstants.c (main): Likewise.
11415         * genemit.c (main): Likewise.
11416         * genenums.c (main): Likewise.
11417         * genextract.c (main): Likewise.
11418         * genflags.c (main): Likewise.
11419         * genmddeps.c (main): Likewise.
11420         * genopinit.c (main): Likewise.
11421         * genoutput.c (main): Likewise.
11422         * genpeep.c (main): Likewise.
11423         * genpreds.c (main): Likewise.
11424         * genrecog.c (main): Likewise.
11425         * gensupport.c (init_rtx_reader_args_cb): Likewise.
11426         (init_rtx_reader_args): Likewise.
11427         * gensupport.h (init_rtx_reader_args_cb): Likewise.
11428         (init_rtx_reader_args): Likewise.
11429         * gentarget-def.c (main): Likewise.
11430         * read-md.c (read_md_files): Likewise.
11431         * read-md.h (read_md_files): Likewise.
11433 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
11435         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
11436         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
11437         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
11438         Remove unused predicate.
11439         (register_and_not_fp_reg_operand): Ditto.
11441 2016-05-06  Martin Liska  <mliska@suse.cz>
11443         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
11444         instead of vec as the vector is local to the function.
11446 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
11448         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
11449         avx512bw alternative.
11451         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
11452         before the ashr<mode>3 pattern.
11454         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
11455         v instead of x in vex or maybe_vex alternatives, use
11456         maybe_evex instead of vex in prefix.
11458         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
11459         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
11460         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
11461         in vex or maybe_vex alternatives, use maybe_evex instead of vex
11462         in prefix.
11464         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
11465         v instead of x in vex or maybe_vex alternatives, use
11466         maybe_evex instead of vex in prefix.
11468         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
11469         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
11470         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
11471         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
11472         alternatives, use maybe_evex instead of vex in prefix.
11474         * config/i386/sse.md (vec_interleave_lowv4sf,
11475         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
11476         v instead of x in vex or maybe_vex alternatives, use
11477         maybe_evex instead of vex in prefix.
11479         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
11480         v instead of x in vex or maybe_vex alternatives, use
11481         maybe_evex instead of vex in prefix.
11483         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
11484         v constraint instead of x.
11486 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
11488         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
11489         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
11490         equality first.
11492 2016-05-06  Richard Biener  <rguenther@suse.de>
11494         PR tree-optimization/70948
11495         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11496         Properly clobber all fields of va_list for __builtin_va_start.
11498 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
11500         PR debug/70935
11501         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
11502         loop latch destination.
11504 2016-05-06  Martin Liska  <mliska@suse.cz>
11506         * tree-ssa-uninit.c: Apply manual changes
11507         to the GNU coding style.
11508         (prune_uninit_phi_opnds): Rename from
11509         prune_uninit_phi_opnds_in_unrealizable_paths.
11511 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11513         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
11514         mspace): Remove deprecated options.
11515         * doc/invoke.texi (SH options): Remove -mspace.
11517 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11519         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
11521 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11523         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
11524         corresponding combine split pattern.
11526 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11528         PR target/58219
11529         * config/sh/predicates.md (long_displacement_mem_operand): New.
11530         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
11531         Add movi20, movi20s alternatives.  Adjust length attribute for
11532         alternatives.
11533         (movsi_ie): Allow for any FPU.  Adjust length attribute for
11534         alternatives.
11535         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
11536         attribute for alternatives.
11537         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
11538         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
11539         length attribute for alternatives.
11541 2016-05-06  Richard Biener  <rguenther@suse.de>
11543         PR tree-optimization/70960
11544         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
11546 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11548         PR target/52933
11549         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
11550         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
11552 2016-05-06  Marek Polacek  <polacek@redhat.com>
11554         PR sanitizer/70875
11555         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
11557 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
11559         PR target/54089
11560         * config/sh/sh.md (*rotcr): Add another variant.
11562 2016-05-06  Richard Biener  <rguenther@suse.de>
11564         PR middle-end/70931
11565         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
11567 2016-05-06  Richard Biener  <rguenther@suse.de>
11569         PR middle-end/70941
11570         * fold-const.c (split_tree): Always convert to the original type
11571         before negating.
11573 2016-05-06  Richard Biener  <rguenther@suse.de>
11575         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
11576         (fwprop_addr): Likewise.
11578 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
11580         PR target/70873
11581         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
11582         New prototype.
11583         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
11584         * config/i386/i386.md (push mem splitter): Use find_constant_src in
11585         the splitter condition.
11586         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
11587         the splitter condition.
11588         (FP float_extend load splitter): Ditto.
11590 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
11592         * config/i386/i386.md (peehole2 patterns): Change true_regnum
11593         to REGNO in all peephole2 patterns.
11594         (post-reload splitters): Change true_regnum to REGNO in
11595         post-reload splitters.
11596         (zero_extend splitters): Use general_reg_operand and
11597         nonimmediate_gr_operand predicates.
11599 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
11601         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
11602         v constraint instead of x.
11604 2016-05-05  Alan Modra  <amodra@gmail.com>
11606         PR target/68662
11607         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
11608         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
11609         TARGET_NO_FP_IN_TOC for -mrelocatable.
11610         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
11611         TARGET_RELOCATABLE test.
11612         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11613         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11614         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11615         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11616         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11617         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11618         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11619         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11620         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
11621         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11622         Likewise.
11623         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
11624         (rs6000_stack_info): Likewise.
11625         (rs6000_elf_asm_out_constructor): Likewise.
11626         (rs6000_elf_asm_out_destructor): Likewise.
11627         (rs6000_elf_declare_function_name): Likewise.
11628         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
11629         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
11630         Don't define.
11632 2016-05-05  Alan Modra  <amodra@gmail.com>
11634         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
11636 2016-05-05  Alan Modra  <amodra@gmail.com>
11638         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
11639         out-of-line gpr restore for one or two regs if that would add
11640         a save of lr.
11642 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
11644         PR target/70873
11645         * config/i386/i386.md
11646         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
11647         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
11648         as operand 0 predicate.
11649         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
11650         Ditto.
11651         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
11652         Ditto.  Emit the pattern using RTX.
11654         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
11655         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
11656         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
11657         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
11658         Ditto.
11659         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
11660         sse_reg_operand as operand 0 predicate.
11662         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
11663         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
11664         instead of gen_rtx_REG.
11665         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
11666         Ditto.
11668 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11670         * function.c (emit_use_return_register_into_block): Delete.
11671         (gen_return_pattern): Delete.
11672         (emit_return_into_block): Delete.
11673         (active_insn_between): Delete.
11674         (convert_jumps_to_returns): Delete.
11675         (emit_return_for_exit): Delete.
11676         (thread_prologue_and_epilogue_insns): Delete all code dealing with
11677         simple_return for shrink-wrapped blocks.
11678         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
11679         end of blocks that need one.
11680         (get_unconverted_simple_return): Delete.
11681         (convert_to_simple_return): Delete.
11682         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
11683         (convert_to_simple_return): Ditto.
11685 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11687         * cfgcleanup.c (bb_is_just_return): New function.
11688         (try_optimize_cfg): Simplify jumps to return, branches to return,
11689         and branches around return.
11691 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11693         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
11694         branch to a return.
11696 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
11698         PR c++/70906
11699         PR c++/70933
11700         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
11701         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
11702         assert flags & OEP_HASH_CHECK, instead of asserting it
11703         never happens.  Handle TARGET_EXPR.
11704         * fold-const.c (operand_equal_p): For hash verification,
11705         or in OEP_HASH_CHECK into flags.
11707 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11709         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
11710         comment.
11711         (compute_samebase_partition_bases): Fix typo.
11713 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
11715         * config/i386/sse.md (vec_interleave_highv8sf,
11716         vec_interleave_lowv8sf, vec_interleave_highv4df,
11717         vec_interleave_lowv4df): Remove constraints from expanders.
11719         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
11721 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
11723         * tree-inline.c (expand_call_inline): Fix path dealing with
11724         making lhs of call statement undefined.
11726 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
11728         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11729         Check availability on NODE, too.
11730         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
11731         (cgraph_node::call_for_symbol_and_aliases): Likewise.
11732         (varpool_node::call_for_symbol_and_aliase): Likewise.
11733         * ipa-pure-const.c (add_new_function): Analyze all bodies.
11734         (propagate_pure_const): Propagate across interposable functions, too.
11735         (skip_function_for_local_pure_const): Do not skip interposable bodies
11736         with aliases.
11737         (pass_local_pure_const::execute): Update.
11739 2016-05-04  Marek Polacek  <polacek@redhat.com>
11741         * doc/invoke.texi: Document -Wdangling-else.
11743 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11745         * config.gcc: Error out when conflicting multilib is detected.  Do not
11746         loop over multilibs since no combination is legal.
11748 2016-05-04  Alan Modra  <amodra@gmail.com>
11750         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
11751         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
11752         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11753         Align .toc.
11755 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
11757         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
11758         Clean up p5600 comments.
11760 2016-05-04  Richard Biener  <rguenther@suse.de>
11762         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
11763         constructor simplifications.
11764         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
11766 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
11768         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
11769         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
11770         result.set_rtx is null instead of aborting.
11771         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
11772         Always enable.
11773         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
11774         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
11775         *mov<mode>_store_postinc): New patterns.
11777 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
11779         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
11780         as commutative.  Check both conversions are NOP.
11781         ((A & B) OP (C & B)): Remove.
11783 2016-05-04  Alan Modra  <amodra@gmail.com>
11785         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
11787 2016-05-04  Alan Modra  <amodra@gmail.com>
11789         PR target/70866
11790         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
11791         when cr2,3,4 are all fixed regs.
11793 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
11795         PR rtl-optimization/57193
11796         * opts.c (default_options_table): Revert OPT_frename_registers change.
11797         * doc/invoke.texi (-frename-registers, -O2): Likewise.
11799 2016-05-03  Martin Sebor  <msebor@redhat.com>
11801         PR c++/66561
11802         * builtins.c (fold_builtin_FILE): New function.
11803         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
11804         (fold_builtin_0): Call them.
11805         * gimplify.c (gimplify_call_expr): Remove the handling of
11806         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
11808         PR c++/66561
11809         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
11810         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
11811         constants.
11813         PR c++/66639
11814         * doc/extend.texi (Function Names as Strings): Update __func__,
11815         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
11816         constants.
11818 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
11819             Richard Biener  <rguenther@suse.de>
11821         PR tree-optimization/70916
11822         * tree-if-conv.c: Include cfganal.h.
11823         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
11824         and remove_fake_exit_edges around the optimization pass.
11826 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
11828         * cgraph.c (symbol_table::create_edge): Set inline_failed.
11829         (cgraph_edge::make_direct): Likewise.
11830         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
11831         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
11832         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
11833         (CIF_THUNK): New code.
11834         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
11835         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
11836         (compute_inline_parameters): Set inline_failed for thunks.
11837         (inline_analyze_function): Cleanup.
11838         * ipa-inline.c (can_inline_edge_p): Do not deal with
11839         call_stmt_cannot_inline_p.
11840         (can_early_inline_edge_p): Likewise.
11841         (early_inliner): Initialize inline_failed.
11842         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
11844 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
11846         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
11847         from nonimm_ssenomem_operand.
11848         (nonimm_ssenomem_operand): New predicate.
11849         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
11850         as operand 0 predicate.
11851         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
11852         Disable unsupported alternatives using "enabled" attribute.
11853         Use register_ssemem_operand as operand 0 predicate.
11854         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
11856 2016-05-03  Marek Polacek  <polacek@redhat.com>
11858         PR c/70859
11859         * input.c (expansion_point_location): New function.
11860         * input.h (expansion_point_location): Declare.
11862 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
11864         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
11865         occurence with frame_offset_ ones.
11867 2016-05-03  Alan Modra  <amodra@gmail.com>
11869         PR rtl-optimization/70890
11870         * ira.c (combine_and_move_insns): When moving def_insn, remove
11871         equivs on use_insn.
11873 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11875         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
11876         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
11877         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
11878         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
11880 2016-05-03  Alan Modra  <amodra@gmail.com>
11882         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
11883         for SAVE_MULTIPLE/STORE_MULTIPLE.
11885 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
11887         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
11888         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
11890 2016-05-03  Richard Biener  <rguenther@suse.de>
11892         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
11893         default true.
11894         (gimplify_arg): Likewise.
11895         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
11896         re-writing the result to a decl if required.
11897         (internal_get_tmp_var): Add allow_ssa parameter
11898         and override into_ssa with it.
11899         (get_formal_tmp_var): Adjust.
11900         (get_initialized_tmp_var): Add allow_ssa parameter.
11901         (gimplify_arg): Add allow_ssa parameter and avoid generating
11902         SSA names for the result false.
11903         (gimplify_call_expr): If the call may return twice do not
11904         gimplify parameters into SSA.
11905         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
11906         (gimplify_modify_expr): Adjust assert.  For noreturn calls
11907         with a SSA name LHS adjust its def.
11908         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
11909         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
11910         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
11911         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
11912         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
11913         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
11914         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
11915         (optimize_target_teams): Do not allow SSA names for clause operands.
11916         (gimplify_expr): Likewise for where we mark the result addressable.
11917         * passes.def (pass_init_datastructures): Remove.
11918         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
11919         (rewrite_stmt): Likewise.
11920         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
11921         (replace_locals_op): Replace SSA names.
11922         (copy_gimple_seq_and_replace_locals): Init src_cfun.
11923         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
11924         * cgraph.c (release_function_body): Free CFG annotations only
11925         when we have a CFG.  Simplify.
11926         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
11927         force_gimple_operand instead of get_initialized_tmp_var.
11928         * tree-pass.h (make_pass_init_datastructures): Remove.
11929         * tree-ssa.c (execute_init_datastructures): Remove.
11930         (pass_data_init_datastructures): Likewise.
11931         (class pass_init_datastructures): Likewise.
11932         (make_pass_init_datastructures): Likewise.
11933         * omp-low.c (create_omp_child_function): Init SSA data structures.
11934         (grid_expand_target_grid_body): Likewise.
11935         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
11936         name before adding it to names_to_release.
11937         (remove_bb): Always release SSA defs.
11938         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
11939         before dereferencing it.
11940         * cgraphunit.c (init_lowered_empty_function): Always
11941         int SSA data structures.
11942         * tree-ssanames.c (release_defs): Remove assert that we are in
11943         SSA form.
11944         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
11946 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
11947             Uros Bizjak  <ubizjak@gmail.com>
11949         PR rtl-optimization/70467
11950         * config/i386/predicates.md (x86_64_hilo_int_operand,
11951         x86_64_hilo_general_operand): New predicates.
11952         * config/i386/constraints.md (Wd): New constraint.
11953         * config/i386/i386.md (mode attr di): Use Wd instead of e.
11954         (general_hilo_operand): New mode attr.
11955         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
11956         instead of <general_operand>.
11957         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
11958         x86_64_hilo_general_operand instead of <general_operand>.
11960 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
11962         PR tree-optimization/70916
11963         * tree-if-conv.c (constant_or_ssa_name): Removed.
11964         (fold_build_cond_expr): Use is_gimple_val instead of
11965         constant_or_ssa_name.
11967         PR tree-optimization/70916
11968         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
11969         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
11971         PR target/49244
11972         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
11973         (optimize_atomic_bit_test_and): New function.
11974         (pass_fold_builtins::execute): Use it.
11975         * optabs.def (atomic_bit_test_and_set_optab,
11976         atomic_bit_test_and_complement_optab,
11977         atomic_bit_test_and_reset_optab): New optabs.
11978         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
11979         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
11980         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
11981         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
11982         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
11983         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
11984         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
11985         * doc/md.texi (atomic_bit_test_and_set@var{mode},
11986         atomic_bit_test_and_complement@var{mode},
11987         atomic_bit_test_and_reset@var{mode}): Document.
11988         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
11989         atomic_bit_test_and_complement<mode>,
11990         atomic_bit_test_and_reset<mode>): New expanders.
11991         (atomic_bit_test_and_set<mode>_1,
11992         atomic_bit_test_and_complement<mode>_1,
11993         atomic_bit_test_and_reset<mode>_1): New insns.
11995 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
11997         PR rtl-optimization/70687
11998         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
11999         instead of unsigned HOST_WIDE_INT.
12001 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
12003         PR rtl-optimization/44281
12004         * hard-reg-set.h (struct target_hard_regs): New field
12005         x_fixed_nonglobal_reg_set.
12006         (fixed_nonglobal_reg_set): New macro.
12007         * reginfo.c (init_reg_sets_1): Initialize it.
12008         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
12009         of fixed_reg_set.
12010         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
12012 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12014         PR tree-optimization/56541
12015         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
12016         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
12017         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
12018         (any_complicated_phi): new static variable.
12019         (aggressive_if_conv): delete.
12020         (if_convertible_phi_p): support phis with more than two arguments.
12021         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
12022         critical pred edges.
12023         (ifcvt_split_critical_edges): support phis with more than two
12024         arguments by checking new parameter.  only split critical edges
12025         if needed.
12026         (tree_if_conversion): handle simd pragma marked loop using new
12027         local variable aggressive_if_conv.  check any_complicated_phi.
12029 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12031         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
12032         before using it.
12034 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12036         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
12037         cbase.
12039 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
12041         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
12042         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
12043         define_insn_and_split.
12044         (mulsi3_i): New define_insn_and_split.
12045         (mulsi3_call): Convert to define_insn.
12046         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
12047         Remove constraints.
12049 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12051         * machmode.h (mode_complex): Add support to give the complex mode
12052         for a given mode.
12053         (GET_MODE_COMPLEX_MODE): Likewise.
12054         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
12055         stored by build_complex_type and gfc_build_complex_type instead of
12056         trying to figure out the appropriate mode based on the size. Raise
12057         an assertion error, if the type was not set.
12058         * genmodes.c (struct mode_data): Add field for the complex type of
12059         the given type.
12060         (blank_mode): Likewise.
12061         (make_complex_modes): Remember the complex mode created in the
12062         base type.
12063         (emit_mode_complex): Write out the mode_complex array to map a
12064         type mode to the complex version.
12065         (emit_insn_modes_c): Likewise.
12066         * tree.c (build_complex_type): Set the complex type to use before
12067         calling layout_type.
12068         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
12069         support for __float128 complex datatypes.
12070         (rs6000_hard_regno_mode_ok): Likewise.
12071         (rs6000_setup_reg_addr_masks): Likewise.
12072         (rs6000_complex_function_value): Likewise.
12073         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
12074         __float128 and __ibm128 complex.
12075         (FLOAT128_IBM_P): Likewise.
12076         (ALTIVEC_ARG_MAX_RETURN): Likewise.
12077         * doc/extend.texi (Additional Floating Types): Document that
12078         -mfloat128 must be used to enable __float128.  Document complex
12079         __float128 and __ibm128 support.
12081 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
12083         PR target/49244
12084         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
12085         char/short arguments promoted to int because of promote_prototypes.
12087 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
12089         * config/i386/predicates.md (register_ssemem_operand): New predicate.
12090         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
12091         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
12092         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
12093         alternatives using "enabled" attribute.  Use register_ssemem_operand
12094         as operand 1 predicate.
12095         (*cmpi<unord>xf_i387): Split XFmode pattern from
12096         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
12097         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
12098         *absneg<mode>2_i387.  Disable unsupported alternatives using
12099         "enabled" attribute.
12100         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
12102 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12104         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
12105         marker.
12106         (oacc_loop_process): Check mask for loop termination.
12108 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
12110         * cif-code.def (CIF_THUNK): Add.
12111         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
12112         accidental change.
12114 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
12116         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
12117         (dump_inline_summary): Dump it.
12118         (fp_expression_p): New predicate.
12119         (estimate_function_body_sizes): Use it.
12120         (inline_merge_summary): Merge fp_expressions.
12121         (inline_read_section): Read fp_expressions.
12122         (inline_write_summary): Write fp_expressions.
12123         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
12124         codegen boundary if either caller or callee is !fp_expressions.
12125         * ipa-inline.h (inline_summary): Add fp_expressions.
12126         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
12127         to fp_expressions be sure the fp generation flags are updated.
12129 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
12131         PR rtl-optimization/70467
12132         * cse.c (cse_insn): Handle no-op MEM moves after folding.
12134         PR rtl-optimization/70467
12135         * ipa-pure-const.c (check_call): Handle internal calls even in
12136         ipa mode like in local mode.
12138 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12140         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
12142 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
12144         * match.pd (X u< X, X u> X): New transformations.
12146 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
12148         * flag-types.h (enum warn_strict_overflow_code): Move ...
12149         * coretypes.h: ... here.
12150         * fold-const.h (fold_overflow_warning): Declare.
12151         * fold-const.c (fold_overflow_warning): Make non-static.
12152         (fold_comparison): Move the transformation of X +- C1 CMP C2
12153         into X CMP C2 -+ C1 ...
12154         * match.pd: ... here.
12155         * gimple-fold.c (fold_stmt_1): Protect with
12156         fold_defer_overflow_warnings.
12158 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12160         * omp-low.c (struct oacc_loop): Add 'inner' field.
12161         (new_oacc_loop_raw): Initialize it to zero.
12162         (oacc_loop_fixed_partitions): Initialize it.
12163         (oacc_loop_auto_partitions): Partition outermost loop to outermost
12164         available partitioning.
12166 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12168         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
12169         register_operand.
12170         (umulsidi3): Likewise.
12171         (indirect_jump): Fix jump instruction assembly patterns.
12173 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
12175         PR target/70860
12176         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
12177         (nvptx_function_value): Assert non-NULL cfun.
12179 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
12181         PR rtl-optimization/70886
12182         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
12184         * cselib.h (rtx_equal_for_cselib_1): Declare.
12185         (rtx_equal_for_cselib_p: New inline function.
12186         * cselib.c (rtx_equal_for_cselib_p): Delete.
12187         (rtx_equal_for_cselib_1): Make public.
12189 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
12191         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
12192         (register_mixssei387nonimm_operand): Remove predicate.
12193         * config/i386/i386.md (*fop_<mode>_comm): Merge from
12194         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
12195         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
12196         for TARGET_MIX_SSE_I387 alternatives.
12197         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
12198         Disable unsupported alternatives using "enabled" attribute.  Use
12199         nonimm_ssenomem_operand as operand 1 predicate.  Also check
12200         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
12202 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12204         * tree.c (cst_and_fits_in_hwi): Simplify.
12206 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12208         * tree.h (wi::to_wide): New function.
12209         * expr.c (expand_expr_real_1): Use wi::to_wide.
12210         * fold-const.c (int_const_binop_1): Likewise.
12211         (extract_muldiv_1): Likewise.
12213 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12215         * wide-int.h: Update offset_int and widest_int documentation.
12216         (WI_SIGNED_SHIFT_RESULT): New macro.
12217         (wi::binary_shift): Define signed_shift_result_type for
12218         shifts on offset_int- and widest_int-like types.
12219         (generic_wide_int): Support <<= and >>= if << and >> are supported.
12220         * tree.h (int_bit_position): Use shift operators instead of wi::
12221          shifts.
12222         * alias.c (adjust_offset_for_component_ref): Likewise.
12223         * expr.c (get_inner_reference): Likewise.
12224         * fold-const.c (fold_comparison): Likewise.
12225         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
12226         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
12227         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12228         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12229         (stmt_kills_ref_p): Likewise.
12230         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
12231         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
12232         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12233         (ao_ref_init_from_vn_reference): Likewise.
12235 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12237         * wide-int.h: Update offset_int and widest_int documentation.
12238         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
12239         (wi::binary_traits): Allow ordered comparisons between offset_int and
12240         offset_int, between widest_int and widest_int, and between either
12241         of these types and basic C types.
12242         (operator <, <=, >, >=): Define for the same combinations.
12243         * tree.h (tree_int_cst_lt): Use comparison operators instead
12244         of wi:: comparisons.
12245         (tree_int_cst_le): Likewise.
12246         * gimple-fold.c (fold_array_ctor_reference): Likewise.
12247         (fold_nonarray_ctor_reference): Likewise.
12248         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
12249         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
12250         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
12251         * tree-sra.c (completely_scalarize): Likewise.
12252         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
12253         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
12254         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
12255         (check_for_binary_op_overflow): Likewise.
12256         (search_for_addr_array): Likewise.
12257         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
12259 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12261         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
12262         (arc_save_restore): Likewise.
12263         (arc_dwarf_register_span): Likewise.
12264         (arc_output_pic_addr_const): Initialize suffix variable.
12266 2016-05-02  Martin Liska  <mliska@suse.cz>
12268         * symbol-summary.h (function_summary::function_summary):
12269         Remove checking assert for all cgraph nodes.
12270         (function_summary::get): Check summary_uid.
12271         (symtab_insertion): Check summary_uid.
12273 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12275         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
12276         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
12277         bmaskn instruction.
12278         (arc_dwarf_register_span): Remove enum keyword.
12279         (compact_memory_operand_p): New function.
12280         * config/arc/arc.h (reg_class): Add code density register classes.
12281         (REG_CLASS_NAMES): Likewise.
12282         (REG_CLASS_CONTENTS): Likewise.
12283         * config/arc/arc.md (*movqi_insn): Add code density instructions.
12284         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
12285         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
12286         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
12287         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
12288         constraints.
12289         (h, Rcd, Rsd, Rzd): New register constraints.
12290         (T): Use compact_memory_operand_p function.
12291         * config/arc/predicates.md (compact_load_memory_operand): Remove.
12293 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
12295         * config/sh/sh.md (*negnegt, *movtt): Remove.
12297 2016-05-02  Marek Polacek  <polacek@redhat.com>
12298             Tom de Vries  <tom@codesourcery.com>
12300         PR tree-optimization/70700
12301         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
12302         bigger than FIRST_REF_NODE.
12304 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
12306         PR target/52898
12307         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
12308         TARGET_CMPEQDI_T.
12309         (prepare_cbranch_operands): Don't use scratch register.  Assume that
12310         function is used when pseudos can be created.
12311         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
12312         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
12313         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
12314         define_expand.  Allow it only when pseudos can be created.
12315         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
12317 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
12319         * config/i386/constraints.md (BC): Only allow -1 operands.
12320         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
12321         Add "enabled" attribute.  Update XI mode attribute calculation.
12322         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
12323         (*movoi_internal_avx): Update XI mode attribute calculation.
12324         (*movti_internal): Ditto.
12326 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12328         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
12329         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
12331 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
12333         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
12334         statement on instruction code.  Remove trailing spaces.
12335         (altivec_expand_stv_builtin): Likewise.
12337 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12339         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
12340         (TARGET_FPU_DOUBLE): Simplify.
12341         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
12342         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
12343         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
12344         with 'TARGET_FPU_DOUBLE'.
12345         * config/sh/sh.md: Likewise.
12347 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
12349         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
12350         SH_DIV_STR_FOR_SIZE): Remove.
12351         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
12352         SH_DIV_STR_FOR_SIZE): Remove.
12354 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12356         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
12357         logical_reg_operand): Delete.
12358         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
12359         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
12360         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
12361         match_operand and match_test.
12362         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
12363         variables on their first use.  Return bool values.
12364         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
12365         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
12366         arith_reg_operand for input operand.  Remove empty constraints.
12367         (xorsi3): Delete.
12368         (*xorsi3_compact): Rename to xorsi3.
12369         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
12370         (*zero_extend<mode>si2_disp_mem): Update comment.
12371         (mov_nop): Delete.
12373 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
12375         * config/sh/t-sh: Remove SH5 support.
12376         * config.gcc: Likewise.
12377         * configure: Likewise.
12379 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12381         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
12383 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
12385         * config/sh/sh.c (register_sh_passes, sh_option_override,
12386         sh_print_operand, prepare_move_operands,
12387         sh_can_follow_jump): Remove TARGET_SH1 checks.
12388         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
12389         PROMOTE_MODE): Likewise.
12390         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
12391         movdi): Likewise.
12393 2016-04-30  Alan Modra  <amodra@gmail.com>
12395         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
12396         restoring when fixed_reg_p, but allow out-of-line or stmw save.
12397         Check for user regs later to avoid unnecessary looping over regs.
12398         Merge user reg check with non-saved reg check.  Don't force
12399         inline VR restore when static chain used.
12400         (rs6000_frame_related): Omit eh_frame info for user regs when
12401         saving.
12402         (fixed_regs_p): Delete.
12404 2016-04-30  Alan Modra  <amodra@gmail.com>
12406         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
12407         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
12408         Update all uses.
12410 2016-04-30  Alan Modra  <amodra@gmail.com>
12412         PR target/69645
12413         * config/rs6000/rs6000.c (fixed_reg_p): New function.
12414         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
12415         Update all uses.
12417 2016-04-30  Alan Modra  <amodra@gmail.com>
12419         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12420         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
12421         flag_pic test for Darwin.
12423 2016-04-30  Alan Modra  <amodra@gmail.com>
12425         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
12426         throw_calls_crossed.
12427         (REG_FREQ_CALLS_CROSSED): Delete.
12428         (REG_N_THROWING_CALLS_CROSSED): Delete.
12429         * regstat.c (regstat_bb_compute_ri): Don't calculate
12430         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
12431         (dump_reg_info): Don't print call cross frequency.
12432         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
12433         and REG_N_THROWING_CALLS_CROSSED.
12435 2016-04-30  Alan Modra  <amodra@gmail.com>
12437         * regs.h (struct reg_info_t): Delete live_length.
12438         (REG_LIVE_LENGTH): Delete macro.
12439         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
12440         local_live, local_processed and local_live_last_luid params.
12441         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
12442         Formatting fixes.
12443         (regstat_compute_ri): Adjust for above.  Don't set
12444         REG_LIVE_LENGTH.
12445         (dump_reg_info): Don't print live length.
12446         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
12447         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
12448         Localize loop_depth var.
12450 2016-04-30  Alan Modra  <amodra@gmail.com>
12452         * ira.c (enum valid_equiv): New.
12453         (validate_equiv_mem): Return enum.
12454         (update_equiv_mem): Create replacement in more cases.
12455         (add_store_equivs): Update validate_equiv_mem call.
12457 2016-04-30  Alan Modra  <amodra@gmail.com>
12459         * ira.c (combine_and_move_insns): Rather than scanning insns,
12460         use DF infrastucture to find use and def insns.
12462 2016-04-30  Alan Modra  <amodra@gmail.com>
12464         ira.c (combine_and_move_insns): Move invariant conditions..
12465         (ira.c): ..to here.  Call combine_and_move_insns before
12466         add_store_equivs.  Call grow_reg_equivs later.  Allocate
12467         req_equiv later using max_reg_num() rather than global max_regno.
12468         (contains_replace_regs): Delete.
12469         (add_store_equivs): Remove contains_replace_regs test.
12471 2016-04-30  Alan Modra  <amodra@gmail.com>
12473         * ira.c (struct equiv_mem_data): New.
12474         (equiv_mem, equiv_mem_modified): Delete static vars.
12475         (validate_equiv_mem_from_store): Use "data" param to communicate..
12476         (validate_equiv_mem): ..from here.
12478 2016-04-30  Alan Modra  <amodra@gmail.com>
12480         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
12481         split out from..
12482         (update_reg_equivs): ..here.  Move allocation and freeing of
12483         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
12484         end_alias_analysis to..
12485         (ira): ..here.
12487 2016-04-30  Alan Modra  <amodra@gmail.com>
12489         * ira.c (pdx_subregs): Delete.
12490         (struct equivalence): Add pdx_subregs field.
12491         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
12492         pdx_subregs access.
12493         (update_equiv_regs): Don't create or free pdx_subregs.  Update
12494         pdx_subregs access.
12496 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12498         * config/rs6000/altivec.h: Change definitions of vec_xl and
12499         vec_xst.
12500         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
12501         (LD_ELEMREV_V2DI): New.
12502         (LD_ELEMREV_V4SF): New.
12503         (LD_ELEMREV_V4SI): New.
12504         (LD_ELEMREV_V8HI): New.
12505         (LD_ELEMREV_V16QI): New.
12506         (ST_ELEMREV_V2DF): New.
12507         (ST_ELEMREV_V2DI): New.
12508         (ST_ELEMREV_V4SF): New.
12509         (ST_ELEMREV_V4SI): New.
12510         (ST_ELEMREV_V8HI): New.
12511         (ST_ELEMREV_V16QI): New.
12512         (XL): New.
12513         (XST): New.
12514         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12515         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
12516         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
12517         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
12518         (altivec_expand_builtin): Add handling for
12519         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
12520         (rs6000_invalid_builtin): Add error-checking for
12521         RS6000_BTM_P9_VECTOR.
12522         (altivec_init_builtins): Define builtins used to implement vec_xl
12523         and vec_xst.
12524         (rs6000_builtin_mask_names): Define power9-vector.
12525         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
12526         (RS6000_BTM_P9_VECTOR): Define.
12527         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
12528         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
12529         (vsx_ld_elemrev_v2df): Likewise.
12530         (vsx_ld_elemrev_v4sf): Likewise.
12531         (vsx_ld_elemrev_v4si): Likewise.
12532         (vsx_ld_elemrev_v8hi): Likewise.
12533         (vsx_ld_elemrev_v16qi): Likewise.
12534         (vsx_st_elemrev_v2df): Likewise.
12535         (vsx_st_elemrev_v2di): Likewise.
12536         (vsx_st_elemrev_v4sf): Likewise.
12537         (vsx_st_elemrev_v4si): Likewise.
12538         (vsx_st_elemrev_v8hi): Likewise.
12539         (vsx_st_elemrev_v16qi): Likewise.
12540         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
12541         grammar.
12543 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
12545         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
12546         out into ...
12547         (simplify_control_stmt_condition_1): ... here.  Recurse into
12548         BIT_AND_EXPRs and BIT_IOR_EXPRs.
12550 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
12552         PR target/69810
12553         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
12554         (zero_extendqi<mode>2_dot): Revert earlier conversion from
12555         define_insn_and_split to define_insn.
12556         (zero_extendqi<mode>2_dot2): Same.
12557         (extendqi<mode>2_dot): Same.
12558         (extendqi<mode>2_dot2): Same.
12560 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12562         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
12563         (probe_stack): New expander.
12564         (probe_stack_<mode>): New insn pattern.
12566 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12568         * config/i386/i386.md
12569         (operations with memory inputs setting flags peephole2):
12570         Remove uneeded REG_P checks.  Cleanup pattern generation.
12572 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12574         * tree-vect-loop.c (vect_transform_loop): Fix
12575         nb_iterations_upper_bound computation for vectorized loop.
12577 2016-04-29  Marek Polacek  <polacek@redhat.com>
12578             Jakub Jelinek  <jakub@redhat.com>
12580         PR sanitizer/70342
12581         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
12582         TARGET_EXPR_SLOT as a base.
12584 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
12586         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
12587         with 'rCm2' constraints to limit possible immediate size.
12588         (*load_zeroextendqisi_update): Likewise.
12589         (*load_signextendqisi_update): Likewise.
12590         (*loadhi_update): Likewise.
12591         (*load_zeroextendhisi_update): Likewise.
12592         (*load_signextendhisi_update): Likewise.
12593         (*loadsi_update): Likewise.
12594         (*loadsf_update): Likewise.
12596 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12598         * config/i386/predicates.md (constm1_operand): Fix comparison.
12600 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
12602         * testsuite/gcc.target/arc/ieee_eq.c: New test.
12604 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
12606         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
12607         remaining SH5 related settings.
12608         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
12609         shmedia_prepare_call_address): Delete.
12610         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
12611         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
12612         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
12613         UNSUPPORTED_SH2A): Remove m5 checks.
12614         (sh_divide_strategy_e): Remove SH5 division strategies.
12615         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
12616         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
12618 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12620         * config/s390/s390.c (s390_rtx_costs): Update documentation.
12622 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12624         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
12625         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
12626         Change lder to ldr.
12627         * config/s390/vector.md ("mov<mode>"): Likewise.
12629 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
12631         * config/s390/constraints.md ("U", "W"): Invoke
12632         s390_mem_constraint with "ZR" and "ZT".
12633         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
12634         addresses when using LRA.  Accept also short displacements for S
12635         and T constraints.  Do not check for long displacement target for
12636         S and T constraints.
12637         (s390_mem_constraint): Remove handling of U and W constraints.
12638         * config/s390/s390.md (various patterns): Remove the short
12639         displacement constraints (Q and R) if a long displacement
12640         constraint is present.  Add longdisp as required CPU capability.
12641         * config/s390/vector.md: Likewise.
12642         * config/s390/vx-builtins.md: Likewise.
12644 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12646         PR target/60040
12647         * reload1.c (reload): Call finish_spills before
12648         restarting reload loop. Skip select_reload_regs
12649         if update_eliminables_and_spill returns true.
12651 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
12653         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
12654         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
12655         (umulhisi3_imm): Update predicates and constraint letters.
12656         (umulhisi3_reg): Declare instruction as commutative.
12657         * config/arc/constraints.md (J12, J16): New constraints.
12658         * config/arc/predicates.md (short_unsigned_const_operand): New
12659         predicate.
12660         (arc_short_operand): Likewise.
12661         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
12663 2016-04-29  Richard Biener  <rguenther@suse.de>
12665         PR tree-optimization/13962
12666         PR tree-optimization/65686
12667         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
12668         * tree-ssa-alias.c (ptrs_compare_unequal): New function
12669         using PTA to compare pointers.
12670         * match.pd: Add pattern for pointer equality compare simplification
12671         using ptrs_compare_unequal.
12673 2016-04-29  Richard Biener  <rguenther@suse.de>
12675         * stor-layout.c (layout_type): Do not build a pointer-to-element
12676         type for arrays.
12678 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
12680         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
12681         Use SWI mode iterator.  Use general_reg_operand predicate.
12682         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
12683         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
12684         predicates.
12686 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
12688         PR middle-end/70843
12689         * fold-const.c (operand_equal_p): Don't verify hash value equality
12690         if arg0 == arg1.
12691         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
12692         and OMP_CLAUSE.
12694 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
12696         PR target/70858
12697         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
12698         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
12699         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
12700         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
12701         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
12703 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12705         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
12706         to info.  Don't initialize separate fields to 0.  Clean up
12707         formatting a bit.
12709 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
12711         * config/i386/i386.md (peephole2s for operations with memory inputs):
12712         Use SWI mode iterator.
12713         (peephole2s for operations with memory outputs): Ditto.
12714         Do not check for stack checking probe.
12716         (probe_stack): Remove expander.
12718 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12719             Andrew Burgess  <andrew.burgess@embecosm.com>
12721         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
12722         operands as 32-bits.
12724 2016-04-28  Jason Merrill  <jason@redhat.com>
12726         * gdbinit.in: Skip line-map.h.
12728 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12729             Andrew Burgess  <andrew.burgess@embecosm.com>
12731         * config/arc/arc.c (arc_conditional_register_usage): Take
12732         TARGET_RRQ_CLASS into account.
12733         (arc_print_operand): Support printing 'p' and 's' operands.
12734         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
12735         as 0.
12736         (TARGET_RRQ_CLASS): Define.
12737         (IS_POWEROF2_OR_0_P): Define.
12738         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
12739         alternatives.
12740         (*tst_movb): New define_insn.
12741         (*tst): Avoid recognition if it could prevent '*tst_movb'
12742         combination; replace c/CnL with c/Chs alternative.
12743         (*tst_bitfield_tst): New define_insn.
12744         (*tst_bitfield_asr): New define_insn.
12745         (*tst_bitfield): New define_insn.
12746         (andsi3_i): Add Rrq variant.
12747         (extzv): New define_expand.
12748         (insv): New define_expand.
12749         (*insv_i): New define_insn.
12750         (*movb): New define_insn.
12751         (*movb_signed): New define_insn.
12752         (*movb_high): New define_insn.
12753         (*movb_high_signed): New define_insn.
12754         (*movb_high_signed + 1): New define_split pattern.
12755         (*mrgb): New define_insn.
12756         (*mrgb + 1): New define_peephole2 pattern.
12757         (*mrgb + 2): New define_peephole2 pattern.
12758         * config/arc/arc.opt (mbitops): New option for nps400, uses
12759         TARGET_NPS_BITOPS_DEFAULT.
12760         * config/arc/constraints.md (q): Make register class conditional.
12761         (Rrq): New register constraint.
12762         (Chs): New constraint.
12763         (Clo): New constraint.
12764         (Chi): New constraint.
12765         (Cbf): New constraint.
12766         (Cbn): New constraint.
12767         (C18): New constraint.
12768         (Cbi): New constraint.
12770 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12772         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
12773         dst->popcount.
12774         (bitmap_intersection_of_preds): Ditto.
12775         (bitmap_union_of_succs): Ditto.
12776         (bitmap_union_of_preds): Ditto.
12777         * sbitmap.c (do_popcount): Delete.
12778         (BITMAP_DEBUGGING): Delete.
12779         (sbitmap_verify_popcount): Delete.
12780         (sbitmap_alloc): Don't initialize the popcount field.
12781         (sbitmap_alloc_with_popcount): Delete.
12782         (sbitmap_resize): Don't resize the popcount array.
12783         (sbitmap_vector_alloc): Don't initialize the popcount field.
12784         (bitmap_copy): Don't copy the popcount array.
12785         (bitmap_clear): Don't clear the popcount array.
12786         (bitmap_clear): Delete the popcount array handling.
12787         (bitmap_ior_and_compl): Delete the popcount assert.
12788         (bitmap_not): Ditto.
12789         (bitmap_and_compl): Ditto.
12790         (bitmap_and): Delete the popcount array handling.
12791         (bitmap_xor): Ditto.
12792         (bitmap_ior): Ditto.
12793         (bitmap_or_and): Delete the popcount assert.
12794         (bitmap_and_or): Ditto.
12795         (popcount_table): Delete.
12796         (sbitmap_elt_popcount): Delete.
12797         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
12798         (bitmap_set_bit): Delete the popcount assert.
12799         (bitmap_clear_bit): Ditto.
12800         (sbitmap_free): Don't free the popcount array.
12801         (sbitmap_alloc_with_popcount): Delete declaration.
12802         (sbitmap_popcount): Ditto.
12804 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12805             Andrew Burgess  <andrew.burgess@embecosm.com>
12807         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
12808         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
12809         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
12810         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
12811         * config/arc/arc.opt (mcmem): New option.
12812         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
12813         supply length for r/m alternative.
12814         (*extendqisi2_ac): Likewise.
12815         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
12816         r/Uex alternative.
12817         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
12818         (movhi_insn): Likewise.
12819         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
12820         (*zero_extendqihi2_i): Add r/Ucm alternative.
12821         (*zero_extendqisi2_ac): Likewise.
12822         (*zero_extendhisi2_i): Likewise.
12823         * config/arc/constraints.md (Uex): New memory constraint.
12824         (Ucm): New define_constraint.
12825         * config/arc/predicates.md (long_immediate_loadstore_operand):
12826         Return 0 for MEM with cmem_address address.
12827         (cmem_address_0): New predicates.
12828         (cmem_address_1): Likewise.
12829         (cmem_address_2): Likewise.
12830         (cmem_address): Likewise.
12832 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12834         * config/rs6000/rs6000.c (machine_function): Rename
12835         insn_chain_scanned_p to spe_insn_chain_scanned_p.
12836         (rs6000_stack_info): Adjust.
12838 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12839             Andrew Burgess  <andrew.burgess@embecosm.com>
12841         * config/arc/constraints.md (Usd): Convert to define_constraint.
12842         (Us<): Likewise.
12843         (Us>): Likewise.
12845 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
12847         PR target/70821
12848         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
12849         Add new peephole2 where the first insn is *mov<mode>_or instead of
12850         *mov<mode>_internal.
12852 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
12854         * tracer.c (bb_seen): Make static.
12856 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
12858         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
12859         support, setup defaults.
12860         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
12861         * config/arc/arc.c (arc_init): Add NPS400 support.
12862         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
12863         (TARGET_ARC700): NPS400 is also an ARC700.
12864         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
12866 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
12868         PR target/70668
12869         * config/nds32/nds32.md (casesi): Don't access the operands array
12870         out of bounds.
12872 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
12874         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
12875         (or $-1,reg peephole2): Ditto.
12876         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
12878 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
12880         * doc/extend.texi (Common Function Attributes) [optimize]:
12881         Discourage use of the optimize attribute.
12883 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
12885         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
12886         special case builtin.
12887         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12888         ALTIVEC_BUILTIN_VEC_ADDE.
12889         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12890         support for ALTIVEC_BUILTIN_VEC_ADDE.
12891         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12892         for __builtin_vec_adde.
12894 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
12896         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
12897         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
12899 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12901         PR testsuite/70595
12902         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12903         attributes): Document cilkplus_runtime.
12905 2016-04-28  Martin Jambor  <mjambor@suse.cz>
12907         * tree-cfg.c (verify_expr): Verify that local declarations belong to
12908         this function.  Call verify_expr on MEM_REFs and bases of other
12909         handled_components.
12911 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12913         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
12914         for WORD_REGISTER_OPERATIONS to runtime check.
12916 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
12918         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
12920 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
12922         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
12923         big-endian compilation.
12924         * config/arc/arc.md (addf3): Likewise.
12925         (subdf3): Likewise.
12926         (muldf3): Likewise.
12928 2016-04-28  Richard Biener  <rguenther@suse.de>
12930         PR tree-optimization/70840
12931         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
12932         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
12933         Mark x * pow(x,c) -> pow(x,c+1) commutative.
12934         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
12936 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12938         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
12939         and explain why in a comment.
12941 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
12943         * config/arc/arc.md (cpu_facility): Add fpx variant.
12944         (subdf3): Prohibit use reverse sub when assist operations option
12945         is enabled.
12946         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
12947         instructions only when FPX is enabled.
12948         * testsuite/gcc.target/arc/trsub.c: New test.
12950 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
12952         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
12953         mult_operator when calculating "type" attribute.
12954         (*fop_<mode>_1_i387): Ditto.
12955         (*fop_xf_1_i387): Ditto.
12956         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
12957         Use std::swap to swap operands.  Use RTL expressions to generate
12958         converted pattern.
12960 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
12961             Joern Rennecke  <joern.rennecke@embecosm.com>
12963         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
12964         declaration.
12965         (emit_pic_move): Remove.
12966         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
12967         * config/arc/arc.c (emit_pic_move): Removed.
12968         (TARGET_HAVE_TLS): Define.
12969         (arc_conditional_register_usage): Test for arc_tp_regno.
12970         (arc_print_operand, arc_print_operand_address): Handle TLS
12971         unspecs.
12972         (arc_needs_pcl_p): New function.
12973         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
12974         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
12975         (arc_raw_symbolic_reference_mentioned_p): Likewise.
12976         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
12977         (arc_legitimize_tls_address): Likewise.
12978         (DTPOFF_ZERO_SYM): Define.
12979         (arc_legitimize_pic_address): Make it static, handle TLS cases.
12980         (arc_output_pic_addr_const): Print TLS unspecs.
12981         (prepare_pic_move): New function, replaces emit_pic_move.
12982         (arc_legitimate_constant_p): Handle TLS unspecs.
12983         (arc_legitimate_address_p): Likewise.
12984         (arc_rewrite_small_data_p): Use assert for TLS constants.
12985         (prepare_move_operands): Use prepare_pic_move.
12986         (arc_legitimize_address): Legitimize tls addresses.
12987         (arc_epilogue_uses): Check for arc_tp_regno.
12988         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
12989         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
12990         Define.
12991         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
12992         Likewise.
12993         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
12994         %(arc_tls_extra_start_spec).
12995         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
12996         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
12997         (EH_USES): Define.
12998         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
12999         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
13000         (UNSPEC_TLS_OFF): Add.
13001         (R10_REG): Define.
13002         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
13003         (get_thread_pointersi): New patterns.
13004         * config/arc/arc.opt (mtp-regno): New option.
13005         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
13006         (move_dest_operand): Likewise.
13007         * configure: Regenerate.
13008         * configure.ac: Add arc*-*-* case to test for tls.
13009         * doc/invoke.texi (ARC options): Document mtp-regno.
13011 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13013         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
13014         the new ARC HS SIMD instructions.
13015         (arc_preferred_simd_mode): New function.
13016         (arc_autovectorize_vector_sizes): Likewise.
13017         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
13018         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13019         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
13020         (arc_init_builtins): Add new SIMD builtin types.
13021         (arc_split_move): Handle 64 bit vector moves.
13022         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
13023         (TARGET_PLUS_QMACW): Define.
13024         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
13025         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
13026         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
13027         (VSUBADD4H): New builtins.
13028         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
13029         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
13031 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
13032             Matthias Klose  <doko@debian.org>
13034         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
13036 2016-04-28  Richard Biener  <rguenther@suse.de>
13038         PR middle-end/70777
13039         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
13040         canonicalization.
13042 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
13044         * common/config/sh/sh-common.c: Remove SH5 support.
13045         * config/sh/constraints.md: Likewise.
13046         * config/sh/config/sh/elf.h: Likewise.
13047         * config/sh/linux.h: Likewise.
13048         * config/sh/netbsd-elf.h: Likewise.
13049         * config/sh/predicates.md: Likewise.
13050         * config/sh/sh-c.c: Likewise.
13051         * config/sh/sh-protos.h: Likewise.
13052         * config/sh/sh.c: Likewise.
13053         * config/sh/sh.h: Likewise.
13054         * config/sh/sh.md: Likewise.
13055         * config/sh/sh.opt: Likewise.
13056         * config/sh/sync.md: Likewise.
13057         * config/sh/sh64.h: Delete.
13058         * config/sh/shmedia.h: Likewise.
13059         * config/sh/shmedia.md: Likewise.
13060         * config/sh/sshmedia.h: Likewise.
13061         * config/sh/t-netbsd-sh5-64: Likewise.
13062         * config/sh/t-sh64: Likewise.
13063         * config/sh/ushmedia.h: Likewise.
13065 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13067         * config/i386/i386.md (sign_extend to memory peephole2s): Use
13068         general_reg_operand instead of register_operand predicate.
13070 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13072         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
13074 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
13076         * match.pd (A - B > A, A + B < A): New transformations.
13078 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
13080         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
13081         which defaults to true.  Emit an outer pair of parentheses only if
13082         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
13083         don't emit parentheses for the right-hand operand.
13085 2016-04-27  Jeff Law  <law@redhat.com>
13087         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
13089 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13091         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
13092         (altivec_lvx_<mode>_internal): Document.
13093         (altivec_lvx_<mode>_2op): New define_insn.
13094         (altivec_lvx_<mode>_1op): Likewise.
13095         (altivec_lvx_<mode>_2op_si): Likewise.
13096         (altivec_lvx_<mode>_1op_si): Likewise.
13097         (altivec_stvx_<mode>): Remove.
13098         (altivec_stvx_<mode>_internal): Document.
13099         (altivec_stvx_<mode>_2op): New define_insn.
13100         (altivec_stvx_<mode>_1op): Likewise.
13101         (altivec_stvx_<mode>_2op_si): Likewise.
13102         (altivec_stvx_<mode>_1op_si): Likewise.
13103         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13104         Expand vec_ld and vec_st during parsing.
13105         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
13106         changes.
13107         (altivec_expand_stvx_be): Likewise.
13108         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
13109         address-masking behavior in RTL.
13110         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
13111         address-masking behavior in RTL.
13112         (altivec_expand_builtin): Change builtin code arguments for calls
13113         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
13114         (insn_is_swappable_p): Avoid incorrect swap optimization in the
13115         presence of lvx/stvx patterns.
13116         (alignment_with_canonical_addr): New function.
13117         (alignment_mask): Likewise.
13118         (find_alignment_op): Likewise.
13119         (recombine_lvx_pattern): Likewise.
13120         (recombine_stvx_pattern): Likewise.
13121         (recombine_lvx_stvx_patterns): Likewise.
13122         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
13123         stvx patterns from expand.
13124         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
13125         expansions.
13126         (vector_altivec_store_<mode>): Likewise.
13128 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
13130         * config/aarch64/aarch64.md
13131         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
13132         remove the "fp" attributes.
13133         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
13134         add the "simd" attributes.
13135         (*movdf_aarch64): Likewise.
13136         (*movtf_aarch64): Remove the "fp" attributes.
13137         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
13138         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
13140 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13142         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
13143         rtx to rtx_code_label *.
13144         * rtl.h (maybe_set_first_label_num): Likewise.
13146 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13148         * df-core.c (df_add_problem): Make the problem param be const.
13149         (df_remove_problem): Make local "problem" be const.
13150         * df-problems.c (problem_RD): Make const.
13151         (problem_LR): Likewise.
13152         (problem_LIVE): Likewise.
13153         (problem_MIR): Likewise.
13154         (problem_CHAIN): Likewise.
13155         (problem_WORD_LR): Likewise.
13156         (problem_NOTE): Likewise.
13157         (problem_MD): Likewise.
13158         * df-scan.c (problem_SCAN): Likewise.
13159         * df.h (struct df_problem): Make field "dependent_problem" be
13160         const.
13161         (struct dataflow): Likewise for field "problem".
13162         (df_add_problem): Make param const.
13164 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
13166         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
13167         inter-unit moves to/from vector registers are enabled.  Do not disable
13168         for TARGET_MMX.
13170 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13172         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
13173         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
13174         #define to...
13175         (enum df_problem_id): ...this new enum.
13176         (struct df_problem): Convert field "id" from "int" to
13177         enum df_problem_id.
13179 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13181         * rtl.def: Update comment for "things in the instruction chain" to
13182         reflect the removal of the leading "i" field for INSN_UID in
13183         r210360.  Fix bogus apostrophe.
13185 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
13187         * config/i386/i386.md
13188         (lea arith with mem operand + setcc peephole2): Set operator mode.
13190 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
13192         PR target/70155
13193         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
13194         (dimode_scalar_to_vector_candidate_p): This.
13195         (timode_scalar_to_vector_candidate_p): New function.
13196         (scalar_to_vector_candidate_p): Likewise.
13197         (timode_check_non_convertible_regs): Likewise.
13198         (timode_remove_non_convertible_regs): Likewise.
13199         (remove_non_convertible_regs): Likewise.
13200         (remove_non_convertible_regs): Renamed to ...
13201         (dimode_remove_non_convertible_regs): This.
13202         (scalar_chain::~scalar_chain): Make it virtual.
13203         (scalar_chain::compute_convert_gain): Make it pure virtual.
13204         (scalar_chain::mark_dual_mode_def): Likewise.
13205         (scalar_chain::convert_insn): Likewise.
13206         (scalar_chain::convert_registers): Likewise.
13207         (scalar_chain::add_to_queue): Make it protected.
13208         (scalar_chain::emit_conversion_insns): Likewise.
13209         (scalar_chain::replace_with_subreg): Likewise.
13210         (scalar_chain::replace_with_subreg_in_insn): Likewise.
13211         (scalar_chain::convert_op): Likewise.
13212         (scalar_chain::convert_reg): Likewise.
13213         (scalar_chain::make_vector_copies): Likewise.
13214         (scalar_chain::convert_registers): New pure virtual function.
13215         (class dimode_scalar_chain): New class.
13216         (class timode_scalar_chain): Likewise.
13217         (scalar_chain::mark_dual_mode_def): Renamed to ...
13218         (dimode_scalar_chain::mark_dual_mode_def): This.
13219         (timode_scalar_chain::mark_dual_mode_def): New function.
13220         (timode_scalar_chain::convert_insn): Likewise.
13221         (dimode_scalar_chain::convert_registers): Likewise.
13222         (scalar_chain::compute_convert_gain): Renamed to ...
13223         (dimode_scalar_chain::compute_convert_gain): This.
13224         (scalar_chain::replace_with_subreg): Renamed to ...
13225         (dimode_scalar_chain::replace_with_subreg): This.
13226         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
13227         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
13228         (scalar_chain::make_vector_copies): Renamed to ...
13229         (dimode_scalar_chain::make_vector_copies): This.
13230         (scalar_chain::convert_reg): Renamed to ...
13231         (dimode_scalar_chain::convert_reg ): This.
13232         (scalar_chain::convert_op): Renamed to ...
13233         (dimode_scalar_chain::convert_op): This.
13234         (scalar_chain::convert_insn): Renamed to ...
13235         (dimode_scalar_chain::convert_insn): This.
13236         (scalar_chain::convert): Call convert_registers.
13237         (convert_scalars_to_vector): Change to scalar_chain pointer to
13238         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
13239         in 32-bit mode.  Delete scalar_chain pointer.  Call
13240         free_dominance_info in 64-bit mode.
13241         (pass_stv::gate): Remove TARGET_64BIT check.
13242         (ix86_option_override): Put the 64-bit STV pass before the CSE
13243         pass.
13245 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
13247         * dwarf2out.h (struct dw_loc_descr_node): Remove the
13248         dw_loc_frame_offset field.
13249         * dwarf2out.c (new_loc_descr): Likewise.
13250         (resolve_args_picking_1): Turn the VISITED hash set into a
13251         FRAME_OFFSET hash map. Use it to associate a frame offset to
13252         visited nodes. Remove uses of the CHECKING_P macro.
13253         (resolve_args_picking): Update call to resolve_args_picking_1.
13255 2016-04-27  Martin Liska  <mliska@suse.cz>
13257         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
13258         (free_loop_data): Release vuses of groups.
13260 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
13262         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
13263         instead of redundant use_id and boolean have_use_for.
13264         (struct iv_use): Change sub_id into group_id.  Remove field next.
13265         Move fields: related_cands, n_map_members, cost_map and selected
13266         to ...
13267         (struct iv_group): ... here.  New structure.
13268         (struct iv_common_cand): Use structure declaration directly.
13269         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
13270         (MAX_CONSIDERED_USES): Rename macro to ...
13271         (MAX_CONSIDERED_GROUPS): ... here.
13272         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
13273         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
13274         (dump_uses): Rename to ...
13275         (dump_groups): ... here.  Update all uses.
13276         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
13277         (find_induction_variables): Refactor format of dump information.
13278         (record_sub_use): Delete.
13279         (record_use): Update all uses.
13280         (record_group): New function.
13281         (record_group_use, find_interesting_uses_op): Call above functions.
13282         Update all uses.
13283         (find_interesting_uses_cond): Ditto.
13284         (group_compare_offset): New function.
13285         (split_all_small_groups): Rename to ...
13286         (split_small_address_groups_p): ... here.  Update all uses.
13287         (split_address_groups):  Update all uses.
13288         (find_interesting_uses): Refactor format of dump information.
13289         (add_candidate_1): Update all uses.  Remove redundant check on iv,
13290         base and step.
13291         (add_candidate, record_common_cand): Remove redundant assert.
13292         (add_iv_candidate_for_biv): Update use.
13293         (add_iv_candidate_derived_from_uses): Update all uses.
13294         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
13295         (alloc_use_cost_map): Ditto.
13296         (set_use_iv_cost, get_use_iv_cost): Rename to ...
13297         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
13298         (determine_use_iv_cost_generic): Ditto.
13299         (determine_group_iv_cost_generic): Ditto.
13300         (determine_use_iv_cost_address): Ditto.
13301         (determine_group_iv_cost_address): Ditto.
13302         (determine_use_iv_cost_condition): Ditto.
13303         (determine_group_iv_cost_cond): Ditto.
13304         (determine_use_iv_cost): Ditto.
13305         (determine_group_iv_cost): Ditto.
13306         (set_autoinc_for_original_candidates): Update all uses.
13307         (find_iv_candidates): Update all uses.  Refactor dump information.
13308         (determine_use_iv_costs): Ditto.
13309         (determine_iv_costs): Ditto.
13310         (iv_ca_cand_for_use): Rename to ...
13311         (iv_ca_cand_for_group): ... here.  Update all uses.
13312         (iv_ca_add_use, iv_ca_add_group): Ditto.
13313         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
13314         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
13315         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
13316         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
13317         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
13318         (create_new_iv, adjust_iv_update_pos): Ditto.
13319         (rewrite_use_address): Delete.
13320         (rewrite_use_address_1): Rename to ...
13321         (rewrite_use_address): ... here.
13322         (rewrite_use_compare): Update all uses.
13323         (rewrite_use): Delete.
13324         (rewrite_uses): Rename to ...
13325         (rewrite_groups): ... here.  Update all uses.
13326         (remove_unused_ivs, free_loop_data): Update all uses.
13327         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
13329 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13331         * rtlanal.c (nonzero_bits1): Convert preprocessor check
13332         for WORD_REGISTER_OPERATIONS to runtime check.
13334 2016-04-27  Richard Biener  <rguenther@suse.de>
13336         PR ipa/70760
13337         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
13338         aggregate_value_p to determine if a function result is
13339         returned by reference.
13340         (ipa_pta_execute): Functions having their address taken are
13341         not automatically nonlocal.
13343 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
13345         PR sanitizer/70683
13346         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
13347         * fold-const.c (operand_equal_p): If flag_checking and
13348         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
13349         and if it returns non-zero, assert iterative_hash_expr on both
13350         args is the same.
13352 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
13354         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
13356 2016-04-27  Nick Clifton  <nickc@redhat.com>
13358         PR middle-end/49889
13359         * varasm.c (merge_weak): Generate an error if an attempt is made
13360         to convert a non-weak static function into a weak, public function.
13362 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13364         * params.def (MAX_PARTITION_SIZE): New param.
13365         * doc/invoke.texi: Document lto-max-partition.
13367 2016-04-27  Richard Biener  <rguenther@suse.de>
13369         PR ipa/70785
13370         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
13371         function cummulating used_from_other_partition, externally_visible
13372         and force_output from aliases.
13373         (refered_from_nonlocal_var): Likewise.
13374         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
13375         node flags properly.
13377 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
13379         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
13380         (-Wmemset-elt-size): New item.
13382 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13384         PR ada/70759
13385         * stor-layout.h (internal_reference_types): Delete.
13386         * stor-layout.c (reference_types_internal): Likewise.
13387         (internal_reference_types): Likewise.
13388         (layout_type) <REFERENCE_TYPE>: Adjust.
13390 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
13392         PR sanitizer/70683
13393         * tree.h (inchash::add_expr): Add FLAGS argument.
13394         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
13395         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
13396         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
13397         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
13398         if swap_tree_comparison (code) is smaller than code, hash that
13399         and arguments in the other order.  Hash CONVERT_EXPR the same
13400         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
13401         of ADDR_EXPR of decl as the decl itself.  Add or remove
13402         OEP_ADDRESS_OF from recursive flags as needed.  For
13403         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
13404         operands commutatively and only the third one normally.
13405         For internal CALL_EXPR hash in CALL_EXPR_IFN.
13407 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13409         * config/rtems.h (LIB_SPEC): Add -latomic.
13411 2016-04-27  Joel Sherrill  <joel@rtems.org>
13413         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
13414         xilink.ld and flags not relevant to RTEMS.
13416 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13418         * toplev.c (backend_init_target): Avoid calling init_reload when using
13419         LRA.
13421 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
13423         * reorg.c (try_merge_delay_insns): Declare i and j inside the
13424         for loops rather than one for the whole function.
13426 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
13428         * match.pd (X + CST CMP X): New transformation.
13430 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
13432         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
13433         * fold-const.c (fold_binary_loc): Remove 2 transformations
13434         superseded by match.pd.
13435         * match.pd (x+x -> x*2): Generalize to integers.
13437 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
13439         * config/i386/i386.md (operation on memory peephole): Duplicate an
13440         existing peephole and adapt it to match lea rather than an operation
13441         that clobbers CC.
13443         PR rtl-optimization/57193
13444         * opts.c (default_options_table): Add OPT_frename_registers at -O2
13445         and above.
13446         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
13448 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
13450         * tree-if-conv.c (any_pred_load_store): New static variable.
13451         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
13452         any_pred_load_store instead of and_mask_load_store.
13453         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
13454         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
13455         (combine_blocks, tree_if_conversion): Ditto.
13457 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
13459         PR tree-optimization/70771
13460         PR tree-optimization/70775
13461         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
13462         virtual PHI nodes.  Delete parameter.
13463         (if_convertible_loop_p_1): Delete argument to above function.
13464         (predicate_all_scalar_phis): Delete code handling single-argument
13465         PHIs.
13466         (tree_if_conversion): Mark and update virtual SSA.
13468 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13470         PR target/61821
13471         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
13472         (x86_elf_aligned_common): Rename to ...
13473         (x86_elf_aligned_decl_common): ... this.
13474         Add decl arg.  Switch to .lbss for largecomm object.  Use
13475         LARGECOMM_SECTION_ASM_OP.
13476         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
13477         renaming.
13478         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
13479         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
13480         Pass new decl arg.
13481         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13482         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
13484 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13486         PR target/59407
13487         * config/i386/i386.c (SECTION_LARGE): Define.
13488         (x86_64_elf_select_section): Set it for large data/bss sections.
13489         Only clear SECTION_WRITE for .lrodata.
13490         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
13491         data/bss sections.
13492         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
13493         * varasm.c (default_elf_asm_named_section): Grow flagchars.
13494         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
13495         SECTION_MACH_DEP.
13496         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
13497         * doc/tm.texi: Regenerate.
13499 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
13501         PR bootstrap/70704
13502         * configure.ac (--enable-checking): Document extra flag, for
13503         non-release builds default to --enable-checking=yes,extra.
13504         If misc checking and extra checking, define CHECKING_P to 2 instead
13505         of 1.
13506         * common.opt (fchecking=): Add.
13507         * doc/invoke.texi (-fchecking=): Document.
13508         * doc/install.texi: Document --enable-checking changes.
13509         * configure: Regenerated.
13510         * config.in: Regenerated.
13512 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13514         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
13515         attribute instead of which_alternative.
13516         * config/i386/sse.md (*mov<mode>_internal): Ditto.
13517         Use EXT_REX_SSE_REG_P where appropriate.
13519 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13521         * config/i386/predicates.md (const0_operand): Do not match
13522         const_wide_int code.
13523         (const1_operand): Ditto.
13525 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13527         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
13528         for SSE constm1 operands and TARGET_AVX512VL.
13529         (*movti_internal): Ditto.
13530         (*mov<mode>_or): Use constm1_operand predicate.
13531         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
13532         for SSE vector_all_ones operands and TARGET_AVX512VL.
13533         * config/i386/predicates.md (constm1_operand): New predicate.
13534         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
13535         emission of constant -1 load.
13537 2016-04-25  Jason Merrill  <jason@redhat.com>
13539         * gdbinit.in: Skip is-a.h.
13541         * attribs.c (register_scoped_attributes): Fix logic.
13542         * attribs.h: Declare register_scoped_attributes.
13544 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13546         * config/rs6000/rs6000-builtin.def: Correct pasto error for
13547         stxvd2x and stxvw4x built-in functions.
13549 2016-04-25  DJ Delorie  <dj@redhat.com>
13551         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
13552         (ashrhi3): Likewise.
13553         (lshrhi3): Likewise.
13555 2016-04-25  Richard Biener  <rguenther@suse.de>
13557         PR tree-optimization/70780
13558         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
13559         wasn't visited yet.
13560         (compute_antic): Mark blocks with abnormal preds as visited as
13561         they have a final empty antic-in solution already.
13563 2016-04-25  Michael Collison  <michael.collison@linaro.org>
13565         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
13567 2016-04-25  Michael Collison  <michael.collison@linaro.org>
13569         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
13570         mode is VQI to improve mixed mode vectorization.
13571         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
13572         define_insn to match low half of signed vaddw.
13573         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
13574         define_insn to match high half of signed vaddw.
13575         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
13576         define_insn to match low half of unsigned vaddw.
13577         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
13578         define_insn to match high half of unsigned vaddw.
13579         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
13580         (arm_simd_check_vect_par_cnst_half_p): Likewise.
13581         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
13582         for new function.
13583         (arm_simd_check_vect_par_cnst_half_p): Likewise.
13584         * config/arm/predicates.md (vect_par_constant_high): Support
13585         big endian and simplify by calling
13586         arm_simd_check_vect_par_cnst_half
13587         (vect_par_constant_low): Likewise.
13589 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
13591         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
13592         predicate for operand 2.
13594 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
13595             H.J. Lu  <hongjiu.lu@intel.com>
13597         * config/i386/i386-protos.h (standard_sse_constant_p): Add
13598         machine_mode argument.
13599         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
13600         constm1_rtx operands.  For VOIDmode constants, get mode from
13601         pred_mode.  Check mode size if the mode is supported by ABI.
13602         (standard_sse_constant_opcode): Do not use standard_constant_p.
13603         Strictly check ABI support for all-ones operands.
13604         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
13605         immediates. Update calls to standard_sse_constant_p.
13606         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
13607         (ix86_rtx_costs): Ditto.
13608         * config/i386/i386.md (*movxi_internal_avx512f): Use
13609         nonimmediate_or_sse_const_operand instead of vector_move_operand.
13610         Use (v,BC) alternative instead of (v,C). Use register_operand
13611         checks instead of MEM_P.
13612         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
13613         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
13614         isa attribute.  Use register_operand checks instead of MEM_P.
13615         (*movti_internal): Use nonimmediate_or_sse_const_operand for
13616         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
13617         alternative and corresponding sse2 isa attribute.
13618         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
13619         to standard_sse_constant_p.
13620         (FP constant splitters): Ditto.
13621         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
13622         (C): Ditto.
13623         * config/i386/predicates.md (constm1_operand): Remove.
13624         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
13625         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
13626         vector_all_ones_operand instead of constm1_operand.
13628 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13630         * print-rtl.c (print_rtx_insn_vec): New function.
13631         * print-rtl.h: New prototype.
13632         * store-motion.c (struct st_expr): Make avail_stores a vector.
13633         (st_expr_entry): Adjust.
13634         (free_st_expr_entry): Likewise.
13635         (print_store_motion_mems): Likewise.
13636         (find_moveable_store): Likewise.
13637         (compute_store_table): Likewise.
13638         (delete_store): Likewise.
13639         (build_store_vectors): Likewise.
13641 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13643         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
13645 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13647         * vec.h (vec_safe_contains): New function.
13648         (vec::contains): Likewise.
13649         (vec::begin): Likewise.
13650         (vec::end): Likewise.
13652 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
13654         PR sanitizer/70712
13655         * cfgexpand.c (expand_stack_vars): Fix typo.
13657 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13659         * system.h (list, map, set, vector): Include conditionally.
13660         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
13661         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
13662         * ipa-icf.c (INCLUDE_LIST): Define.
13663         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
13664         * config/sh/sh.c (INCLUDE_VECTOR): Define.
13665         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
13666         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
13667         * cp/logic.cc (INCLUDE_LIST): Define.
13668         * fortran/trans-common.c (INCLUDE_MAP): Define.
13670 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13672         * auto-profile.c: Remove <string.h> include.
13673         * ipa-icf-gimple.c: Remove <list> include.
13674         * diagnostic.c: Remove <new> include.
13675         * genmatch.c: Likewise.
13676         * pretty-print.c: Likewise.
13677         * toplev.c: Likewise
13678         * c/c-objc-common.c: Likewise.
13679         * cp/error.c: Likewise.
13680         * fortran/error.c: Likewise.
13682 2016-04-22  Richard Biener  <rguenther@suse.de>
13684         * lto-streamer-in.c (input_ssa_names): Do not allocate
13685         GIMPLE_NOP for all SSA names.
13686         * lto-streamer-out.c (output_ssa_names): Do not output
13687         SSA names that should have been released.
13689 2016-04-22  Richard Biener  <rguenther@suse.de>
13691         PR tree-optimization/70740
13692         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
13693         VDEF.
13695 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
13697         PR target/70750
13698         * config/i386/predicates.md (call_insn_operand): Replace
13699         sibcall_memory_operand with memory_operand.
13701 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
13703         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
13704         has_single_use() tests.
13705         (register_edge_assert_for_1): Likewise.
13706         (find_assert_locations_1): Check the liveness bitmap instead of
13707         checking has_single_use().
13709 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
13711         PR target/70728
13712         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
13713         Extract AVX-512BW constraint from AVX.
13715 2016-04-21  Richard Biener  <rguenther@suse.de>
13717         PR tree-optimization/70725
13718         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
13719         for phi_convertible_by_degenerating_args.
13720         (predicate_all_scalar_phis): Handle single-argument PHIs.
13722 2016-04-21  Richard Biener  <rguenther@suse.de>
13724         PR middle-end/70747
13725         * fold-const.c (fold_comparison): Return properly typed
13726         constant boolean.
13728 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
13730         PR tree-optimization/70715
13731         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
13732         after expanding BASE using expand_simple_operations.
13734 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
13736         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
13737         New transformations.
13739 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
13741         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
13743 2016-04-20  Jan Hubicka  <jh@suse.cz>
13745         * ipa-inline.c (can_inline_edge_p): Pass caller info to
13746         ultiimate_alias_target.
13747         (update_callee_keys): Likewise.
13748         (lookup_recursive_calls): Likewise.
13749         (speculation_useful_p): Likewise.
13751 2016-04-20  Jan Hubicka  <jh@suse.cz>
13753         PR ipa/70018
13754         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
13755         (set_nothrow_flag_1): ... this; handle interposition correctly;
13756         recurse on aliases and thunks.
13757         (cgraph_node::set_nothrow_flag): New.
13758         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
13759         functions compiled with non-call exceptions that binds to current
13760         def.
13761         (propagate_nothrow): Be safe WRT interposition.
13762         * cgraph.h (set_nothrow_flag): Update prototype.
13764 2016-04-18  Jan Hubicka  <jh@suse.cz>
13766         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13767         max_loop_iterations_int.
13768         (tree_unswitch_outer_loop): Likewise.
13770 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
13772         PR tree-optimization/69489
13773         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
13774         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
13775         Revise dump message.
13776         (if_convertible_bb_p): Remove check on edge count of basic block's
13777         predecessors.
13779 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
13781         PR tree-optimization/56625
13782         PR tree-optimization/69489
13783         * tree-data-ref.h (DR_INNERMOST): New macro.
13784         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
13785         hashing struct innermost_loop_behavior.
13786         (ref_DR_map): Remove.
13787         (innermost_DR_map): New map.
13788         (baseref_DR_map): Revise comment.
13789         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
13790         to innermost_DR_map accroding to its innermost loop behavior.
13791         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
13792         to its innermost loop behavior.
13793         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
13794         Add initialization for innermost_DR_map.  Record memory reference
13795         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
13796         have innermost loop behavior.
13797         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
13798         innermost_DR_map.
13800 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
13802         * config/i386/i386.md (*lea<mode>_general_1): Rename from
13803         *lea_general_1.  Use explicit SWI12 mode interator.
13804         (*lea<mode>_general_2): Rename from *lea_general_2.
13805         Use explicit SWI12 mode interator.
13806         (*lea<mode>_general_3): Rename from *lea_general_3.
13807         Use explicit SWI12 mode interator.
13808         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
13809         Use explicit SWI12 mode interator.
13810         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
13811         Use explicit SWI48 mode interator.
13813 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13815         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13816         Short-cut unaligned load and store cases.  Handle all integer
13817         vector modes.
13818         (ix86_expand_vector_move_misalign): Short-cut unaligned load
13819         and store cases.  Call ix86_avx256_split_vector_move_misalign
13820         directly without checking mode class.
13822 2016-04-20  Andrew Pinski  <apinski@cavium.com>
13823             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13825         PR target/64971
13826         * config/aarch64/aarch64.md (sibcall): Force call
13827         address to be DImode for ILP32.
13828         (sibcall_value): Likewise.
13830 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13832         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
13834 2016-04-20  Richard Biener  <rguenther@suse.de>
13836         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
13837         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
13838         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
13839         (maybe_push_res_to_seq): Adjust.
13840         * gimple-fold.c (maybe_build_generic_op): Likewise.
13842 2016-04-20  Marek Polacek  <polacek@redhat.com>
13844         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
13845         rather than true.
13847 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
13849         * config/i386/sse.md (vec_unpacks_lo_hi): Always
13850         use kmovw to support AVX512F target.
13852 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
13854         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
13856 2016-04-20  Marek Polacek  <polacek@redhat.com>
13858         PR tree-optimization/70725
13859         * tree-if-conv.c (is_false_predicate): New function.
13860         (predicate_mem_writes): Use it.
13862 2016-04-20  Richard Biener  <rguenther@suse.de>
13864         PR tree-optimization/70726
13865         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
13866         shift amounts from a pattern stmt operand.
13868 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13870         PR target/70674
13871         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
13872         stack_restore_from_fpr pattern when restoring r15.
13873         (s390_optimize_prologue): Strip away the memory barrier in the
13874         parallel when trying to get rid of restore insns.
13875         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
13876         definition for loading the stack pointer from an FPR.  Compared to
13877         the normal move insn this pattern includes a full memory barrier.
13879 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
13881         PR middle-end/70680
13882         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
13883         implicitly linear or lastprivate iterator on the outer context.
13885 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
13887         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
13888         alignment check.
13889         * config/i386/i386.md (ssememalign): Removed.
13890         * config/i386/sse.md: Remove ssememalign attribute from patterns.
13892 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
13894         PR target/69201
13895         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
13896         const short * to __builtin_ia32_loaddquhi512_mask.
13897         (_mm512_maskz_loadu_epi16): Likewise.
13898         (_mm512_mask_storeu_epi16): Pass short * to
13899         __builtin_ia32_storedquhi512_mask.
13900         (_mm512_mask_loadu_epi8): Pass const char * to
13901         __builtin_ia32_loaddquqi512_mask.
13902         (_mm512_maskz_loadu_epi8): Likewise.
13903         (_mm512_mask_storeu_epi8): Pass char * to
13904         __builtin_ia32_storedquqi512_mask.
13905         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
13906         const double * to __builtin_ia32_loadupd512_mask.
13907         (_mm512_mask_loadu_pd): Likewise.
13908         (_mm512_maskz_loadu_pd): Likewise.
13909         (_mm512_storeu_pd): Pass double * to
13910         __builtin_ia32_storeupd512_mask.
13911         (_mm512_mask_storeu_pd): Likewise.
13912         (_mm512_loadu_ps): Pass const float * to
13913         __builtin_ia32_loadups512_mask.
13914         (_mm512_mask_loadu_ps): Likewise.
13915         (_mm512_maskz_loadu_ps): Likewise.
13916         (_mm512_storeu_ps): Pass float * to
13917         __builtin_ia32_storeups512_mask.
13918         (_mm512_mask_storeu_ps): Likewise.
13919         (_mm512_mask_loadu_epi64): Pass const long long * to
13920         __builtin_ia32_loaddqudi512_mask.
13921         (_mm512_maskz_loadu_epi64): Likewise.
13922         (_mm512_mask_storeu_epi64): Pass long long *
13923         to __builtin_ia32_storedqudi512_mask.
13924         (_mm512_loadu_si512): Pass const int * to
13925         __builtin_ia32_loaddqusi512_mask.
13926         (_mm512_mask_loadu_epi32): Likewise.
13927         (_mm512_maskz_loadu_epi32): Likewise.
13928         (_mm512_storeu_si512): Pass int * to
13929         __builtin_ia32_storedqusi512_mask.
13930         (_mm512_mask_storeu_epi32): Likewise.
13931         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
13932         char * to __builtin_ia32_storedquqi256_mask.
13933         (_mm_mask_storeu_epi8): Likewise.
13934         (_mm256_mask_loadu_epi16): Pass const short * to
13935         __builtin_ia32_loaddquhi256_mask.
13936         (_mm256_maskz_loadu_epi16): Likewise.
13937         (_mm_mask_loadu_epi16): Pass const short * to
13938         __builtin_ia32_loaddquhi128_mask.
13939         (_mm_maskz_loadu_epi16): Likewise.
13940         (_mm256_mask_loadu_epi8): Pass const char * to
13941         __builtin_ia32_loaddquqi256_mask.
13942         (_mm256_maskz_loadu_epi8): Likewise.
13943         (_mm_mask_loadu_epi8): Pass const char * to
13944         __builtin_ia32_loaddquqi128_mask.
13945         (_mm_maskz_loadu_epi8): Likewise.
13946         (_mm256_mask_storeu_epi16): Pass short * to.
13947         __builtin_ia32_storedquhi256_mask.
13948         (_mm_mask_storeu_epi16): Pass short * to.
13949         __builtin_ia32_storedquhi128_mask.
13950         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
13951         const double * to __builtin_ia32_loadupd256_mask.
13952         (_mm256_maskz_loadu_pd): Likewise.
13953         (_mm_mask_loadu_pd): Pass onst double * to
13954         __builtin_ia32_loadupd128_mask.
13955         (_mm_maskz_loadu_pd): Likewise.
13956         (_mm256_mask_storeu_pd): Pass double * to
13957         __builtin_ia32_storeupd256_mask.
13958         (_mm_mask_storeu_pd): Pass double * to
13959         __builtin_ia32_storeupd128_mask.
13960         (_mm256_mask_loadu_ps): Pass const float * to
13961         __builtin_ia32_loadups256_mask.
13962         (_mm256_maskz_loadu_ps): Likewise.
13963         (_mm_mask_loadu_ps): Pass const float * to
13964         __builtin_ia32_loadups128_mask.
13965         (_mm_maskz_loadu_ps): Likewise.
13966         (_mm256_mask_storeu_ps): Pass float * to
13967         __builtin_ia32_storeups256_mask.
13968         (_mm_mask_storeu_ps): ass float * to
13969         __builtin_ia32_storeups128_mask.
13970         (_mm256_mask_loadu_epi64): Pass const long long * to
13971         __builtin_ia32_loaddqudi256_mask.
13972         (_mm256_maskz_loadu_epi64): Likewise.
13973         (_mm_mask_loadu_epi64): Pass const long long * to
13974         __builtin_ia32_loaddqudi128_mask.
13975         (_mm_maskz_loadu_epi64): Likewise.
13976         (_mm256_mask_storeu_epi64): Pass long long * to
13977         __builtin_ia32_storedqudi256_mask.
13978         (_mm_mask_storeu_epi64): Pass long long * to
13979         __builtin_ia32_storedqudi128_mask.
13980         (_mm256_mask_loadu_epi32): Pass const int * to
13981         __builtin_ia32_loaddqusi256_mask.
13982         (_mm256_maskz_loadu_epi32): Likewise.
13983         (_mm_mask_loadu_epi32): Pass const int * to
13984         __builtin_ia32_loaddqusi128_mask.
13985         (_mm_maskz_loadu_epi32): Likewise.
13986         (_mm256_mask_storeu_epi32): Pass int * to
13987         __builtin_ia32_storedqusi256_mask.
13988         (_mm_mask_storeu_epi32): Pass int * to
13989         __builtin_ia32_storedqusi128_mask.
13990         * config/i386/i386-builtin-types.def (PCSHORT): New.
13991         (PINT64): Likewise.
13992         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
13993         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
13994         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
13995         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
13996         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
13997         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
13998         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
13999         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
14000         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
14001         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
14002         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
14003         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
14004         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
14005         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
14006         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
14007         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
14008         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
14009         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
14010         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
14011         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
14012         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
14013         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
14014         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
14015         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
14016         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
14017         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
14018         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
14019         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
14020         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
14021         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
14022         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
14023         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
14024         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
14025         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
14026         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
14027         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
14028         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
14029         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
14030         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
14031         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
14032         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
14033         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
14034         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
14035         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
14036         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
14037         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
14038         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
14039         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
14040         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
14041         use UNSPEC_STOREU.
14042         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
14043         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
14044         load nor store.
14045         (ix86_expand_vector_move_misalign): Likewise.
14046         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
14047         to scalar function prototype for unaligned load/store builtins.
14048         (ix86_expand_special_args_builtin): Updated.
14049         * config/i386/sse.md (UNSPEC_LOADU): Removed.
14050         (UNSPEC_STOREU): Likewise.
14051         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
14052         (VI_ULOADSTORE_F_AVX512VL): Likewise.
14053         (ssescalarsize): Handle V4TI, V2TI and V1TI.
14054         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
14055         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
14056         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
14057         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
14058         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
14059         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
14060         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
14061         (<avx512>_storedqu<mode>_mask): Likewise.
14062         (*sse4_2_pcmpestr_unaligned): Likewise.
14063         (*sse4_2_pcmpistr_unaligned): Likewise.
14064         (*mov<mode>_internal): Renamed to ...
14065         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
14066         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
14067         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
14068         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
14070 2016-04-19  Richard Biener  <rguenther@suse.de>
14072         PR tree-optimization/70171
14073         * tree-ssa-phiprop.c: Include stor-layout.h.
14074         (phiprop_insert_phi): Handle the aggregate copy case.
14075         (propagate_with_phi): Likewise.
14077 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
14079         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
14080         instead of simplify_gen_subreg (... , 0).
14081         (ix86_delegitimize_address): Ditto.
14082         (ix86_split_divmod): Ditto.
14083         (ix86_split_copysign_const): Ditto.
14084         (ix86_split_copysign_var): Ditto.
14085         (ix86_expand_args_builtin): Ditto.
14086         (ix86_expand_round_builtin): Ditto.
14087         (ix86_expand_special_args_builtin): Ditto.
14088         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
14089         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
14090         (udivmodqi4): Ditto.
14091         (absneg splitters): Ditto.
14092         (*jcc_bt<mode>_1): Ditto.
14094 2016-04-19  Richard Biener  <rguenther@suse.de>
14096         PR tree-optimization/70724
14097         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
14098         restoring out from ...
14099         (free_scc_vn): ... here.
14100         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
14101         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
14102         tail merging.
14103         (pass_fre::execute): Restore SSA info.
14105 2016-04-19  Richard Biener  <rguenther@suse.de>
14107         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
14108         * gimple-walk.c (walk_gimple_op): Initialize it.
14109         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
14110         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
14111         remapping SSA names of defs.
14112         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
14113         adjustment.
14115 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
14117         PR middle-end/70689
14118         * lra-constraints.c (equiv_substition_p): New.
14119         (process_alt_operands): Use it.
14120         (swap_operands): Swap it.
14121         (curr_insn_transform): Update it.
14123 2016-04-18  Michael Matz  <matz@suse.de>
14125         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
14126         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
14127         * tree-core.h (tree_type_common.align): Use bit-field.
14128         (tree_type_common.spare): New.
14129         (tree_decl_common.off_align): Make smaller.
14130         (tree_decl_common.align): Use bit-field.
14132         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
14133         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
14134         (scan_sharing_clauses): Ditto.
14135         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14136         (omp_finish_file): Ditto.
14137         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
14138         (layout_decl): Ditto.
14139         (relayout_decl): Ditto.
14140         (finalize_record_size): Use SET_TYPE_ALIGN.
14141         (finalize_type_size): Ditto.
14142         (finish_builtin_struct): Ditto.
14143         (layout_type): Ditto.
14144         (initialize_sizetypes): Ditto.
14145         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
14146         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
14147         (lookup_field_for_decl): Use SET_DECL_ALIGN.
14148         (get_chain_field): Ditto.
14149         (get_trampoline_type): Ditto.
14150         (get_nl_goto_field): Ditto.
14151         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
14152         SET_DECL_ALIGN.
14153         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
14154         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
14155         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14156         (build_qualified_type): Use SET_TYPE_ALIGN.
14157         (build_aligned_type, build_range_type_1): Ditto.
14158         (build_atomic_base): Ditto.
14159         (build_common_tree_nodes): Ditto.
14160         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
14161         (expand_one_stack_var_at): Ditto.
14162         * coverage.c (build_var): Use SET_DECL_ALIGN.
14163         * except.c (init_eh): Ditto.
14164         * function.c (assign_parm_setup_block): Ditto.
14165         * symtab.c (increase_alignment_1): Ditto.
14166         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
14167         * tree-vect-stmts.c (ensure_base_align): Ditto.
14168         * varasm.c (align_variable): Ditto.
14169         (assemble_variable): Ditto.
14170         (build_constant_desc): Ditto.
14171         (output_constant_def_contents): Ditto.
14173         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
14174         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
14175         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
14176         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
14177         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
14179 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
14181         PR target/70708
14182         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
14183         replace %vmovsd with "%vmovq".
14184         (vec_concatv2df): Likewise.
14186 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
14188         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
14189         (*vec_extractv2si_0): Ditto.
14190         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
14191         (zero_extended_scalar_load_operand splitters): Ditto.
14192         (vec_extract splitters): Ditto.
14193         (*vec_extractv4si_0_zext): Ditto.
14194         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
14195         and lowpart_subreg.
14196         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
14197         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
14198         (*sse4_1_extractps): Use lowpart_subreg.
14199         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
14201 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14203         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
14204         gld requirements.
14205         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
14206         Mention Solaris 11 packaging changes.
14207         Update gas and gld requirements.
14208         Remove reference to pre-Solaris 10 bug.
14209         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
14210         systems and bugs.
14211         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
14212         with cc.
14214 2016-04-17  Jan Hubicka  <jh@suse.cz>
14216         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
14217         max_loop_iterations_int.
14219 2016-04-18  Richard Biener  <rguenther@suse.de>
14221         PR tree-optimization/43434
14222         * tree-ssa-structalias.c (struct vls_data): New.
14223         (visit_loadstore): Handle all pointer-based accesses.
14224         (compute_dependence_clique): Compute a bitmap of restrict tags
14225         assigned bases and pass it to visit_loadstore.
14227 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
14229         PR target/70711
14230         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
14231         armv8.1-a and armv8.1-a+crc.
14233 2016-04-18  Richard Biener  <rguenther@suse.de>
14235         PR tree-optimization/70701
14236         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
14237         references after translating through a memcpy.
14239 2016-04-18  Richard Biener  <rguenther@suse.de>
14241         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
14242         (compute_antic): ... here.  For partial antic use regular
14243         postorder and scrap iteration.
14244         (compute_partial_antic_aux): Remove unused return value.
14245         (init_pre): Do not allocate postorder.
14246         (fini_pre): Do not free postorder.
14248 2016-04-18  Richard Biener  <rguenther@suse.de>
14250         PR middle-end/37870
14251         * expmed.c (extract_bit_field_1): Remove broken case
14252         using a wider MODE_INT mode.
14254 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
14256         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
14257         unless compiling with at least GCC-4.8.
14259 2016-04-17  Jan Hubicka  <jh@suse.cz>
14261         PR bootstrap/70706
14262         * graphite.c (graphite_finalize): Update call to
14263         tree_estimate_probability.
14264         * predict.h (tree_estimate_probability): Update prototype.
14266 2016-04-17  Jan Hubicka  <jh@suse.cz>
14268         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
14269         (tree_estimate_probability): Likewise.
14270         (pass_profile::execute): Update.
14271         (report_predictor_hitrates): New function.
14272         * profile.c (compute_branch_probabilities): Use it.
14273         * predict.h (report_predictor_hitrates): Declare.
14275 2016-04-17  Jan Hubicka  <jh@suse.cz>
14277         PR ipa/70018
14278         * cgraph.h (cgraph_node::set_const_flag,
14279         cgraph_node::set_pure_flag): Update prototype to return bool;
14280         update comment.
14281         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
14282         of interposable symbol are interposable, too.
14283         (cgraph_set_const_flag_1): Rename to ...
14284         (set_const_flag_1): ... this one; change to self recursive function
14285         instead of call_for_symbol_thunks_and_aliases. Handle correctly
14286         clearnig the flag in all variants and also virtual thunks of const
14287         functions are pure; track if any change was done.
14288         (cgraph_node::set_const_flag): Update.
14289         (struct set_pure_flag_info): New struct.
14290         (cgraph_set_pure_flag_1): Rename to ...
14291         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
14292         rather than pointer encoded flags; track if any changes was done;
14293         handle correctly clearning flag and setting flag of aliases already
14294         declared const.
14295         (cgraph_node::set_pure_flag): Update.
14296         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
14298 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14300         PR other/70433
14301         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
14302         backslash in label.
14304 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14306         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
14307         '{}<> ' as escape-for-record.
14309 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14311         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
14312         structure.
14314 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14316         PR other/70185
14317         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
14318         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
14319         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
14320         * passes.c (finish_optimization_passes): Only call
14321         finish_graph_dump_file if dfi->graph_dump_initialized.
14322         (execute_function_dump, pass_init_dump_file): Use
14323         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
14325 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14327         PR tree-optimization/70256
14328         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
14329         (debug_varmap): New function.
14331 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14333         PR other/70183
14334         * passes.c (pass_manager::register_pass): Propagate pflags.
14336 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14338         PR other/68875
14339         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
14340         * passes.c (pass_manager::pass_manager): Declare and init p_start in
14341         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
14342         check if it's equal to p_start.
14343         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
14345 2016-04-15  Jan Hubicka  <jh@suse.cz>
14347         PR ipa/70018
14348         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
14349         function does not bind to current def.
14350         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
14351         handle conservatively calls to functions that does not need to bind
14352         to current def.
14353         (check_call): Update call of worse_state.
14354         (ignore_edge_for_nothrow): Update.
14355         (ignore_edge_for_pure_const): Likewise.
14356         (propagate_pure_const): Update calls to worse_state.
14357         (skip_function_for_local_pure_const): Reformat comments.
14359 2016-04-15  Jan Hubicka  <jh@suse.cz>
14361         PR ipa/70018
14362         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
14363         (cgraph_node::function_symbol): Likewise.
14364         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
14365         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
14366         (symtab_node::ultimate_alias_target): Add REF parameter.
14367         (symtab_node::binds_to_current_def_p): Declare.
14368         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
14369         (cgraph_node::function_symbol): Likewise.
14370         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
14371         (cgraph_node::get_availability): Likewise.
14372         (cgraph_edge::binds_to_current_def_p): New inline function.
14373         (varpool_node::get_availability): Add REF parameter.
14374         (varpool_node::ultimate_alias_target): Likewise.
14375         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
14376         (symtab_node::binds_to_current_def_p): Likewise.
14377         * varpool.c (varpool_node::get_availability): Likewise.
14379 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
14381         PR target/70662
14382         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
14383         Fix mode size check.
14385 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
14387         * BASE-VER: Set to 7.0.0.
14389 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
14391         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
14393 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14395         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
14396         architecture revisions.
14398 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
14400         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
14401         * config/i386/i386.c (ix86_using_red_zone): No longer static.
14402         * config/i386/i386.md (stack decrement to push peepholes): Guard
14403         with !x86_using_red_zone ().
14405 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
14407         PR c++/70675
14408         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
14409         to dump_generic_node.
14410         (NIY): Pass also flags to do_niy.
14412 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
14414         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
14415         (simd_clone_vector_of_formal_parm_types)
14416         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
14417         (simd_clone_mangle, simd_clone_create)
14418         (simd_clone_adjust_return_type, create_tmp_simd_array)
14419         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
14420         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
14421         (ipa_simd_modify_function_body, simd_clone_linear_addend)
14422         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
14423         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
14424         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
14425         * omp-simd-clone.c: ... this new file.
14426         (simd_clone_vector_of_formal_parm_types): Make it static.
14427         * Makefile.in (OBJS): Add omp-simd-clone.o.
14429 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
14431         PR target/70662
14432         * config/i386/sse.md: Use proper memory operand modifiers.
14435 2016-04-15  Richard Biener  <rguenther@suse.de>
14436         Alan Modra  <amodra@gmail.com>
14438         PR tree-optimization/70130
14439         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
14440         when alignment stays not the same and no not use the realign
14441         scheme then.
14443 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14445         PR target/70669
14446         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
14447         direct move handlers for KFmode. Change TFmode handlers test from
14448         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
14450 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
14452         PR c++/70594
14453         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
14454         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
14455         (inlined_polymorphic_ctor_dtor_block_p): Use it.
14456         * tree-ssa-live.c (remove_unused_scope_block_p): When
14457         in_ctor_dtor_block, avoid discarding not just BLOCKs with
14458         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
14459         block_ultimate_origin is FUNCTION_DECL.
14460         (remove_unused_locals): If current_function_decl is
14461         polymorphic_ctor_dtor_p, pass initial true to
14462         remove_unused_scope_block_p' is_ctor_dtor_block.
14464 2016-04-14  Martin Sebor  <msebor@redhat.com>
14466         PR c++/69517
14467         PR c++/70019
14468         PR c++/70588
14469         * doc/extend.texi (Variable Length): Revert.
14471 2016-04-14  Marek Polacek  <polacek@redhat.com>
14472             Jan Hubicka  <hubicka@ucw.cz>
14474         PR c++/70029
14475         * tree.c (verify_type): Disable the canonical type of main variant
14476         check.
14478 2016-04-14  Jason Merrill  <jason@redhat.com>
14480         * cfgexpand.c, expr.c: Revert previous change.
14482 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
14484         PR middle-end/70643
14485         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
14486         when building a mem ref for the incoming reduction variable.
14488 2016-04-14  Richard Biener  <rguenther@suse.de>
14490         PR tree-optimization/70614
14491         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
14492         loop if the evolution dropped to chrec_dont_know.
14493         (interpret_condition_phi): Likewise.
14495 2016-04-14  Richard Biener  <rguenther@suse.de>
14497         PR tree-optimization/70623
14498         * tree-ssa-pre.c (changed_blocks): Make global ...
14499         (compute_antic): ... local here.  Move and fix worklist
14500         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
14501         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
14502         worklist handling, dump when ANTIC_IN changed.
14503         (compute_partial_antic_aux): Remove worklist handling.
14504         (init_pre): Do not compute post dominators.  Add a comment about
14505         the CFG order chosen.
14506         (fini_pre): Do not free post dominators.
14508 2016-04-13  Martin Sebor  <msebor@redhat.com>
14510         PR c++/69517
14511         PR c++/70019
14512         PR c++/70588
14513         * doc/extend.texi (Variable Length): Document C++ specifics.
14515 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
14517         PR c++/70641
14518         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
14519         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
14520         eh edges have been purged.
14522         PR c++/70594
14523         * tree-sra.c (create_access_replacement,
14524         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
14525         gets fancy name.
14526         * tree-pretty-print.c (dump_fancy_name): New function.
14527         (dump_decl_name, dump_generic_node): Use it.
14529 2016-04-13  Jason Merrill  <jason@redhat.com>
14531         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
14532         * expr.c (expand_expr_real_1): Likewise.
14534 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14536         * config/i386/i386.md (kunpckhi): Swap operands.
14537         (kunpcksi): Likewise.
14538         (kunpckdi): Likewise.
14539         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
14540         (vec_pack_trunc_<mode>): Likewise.
14542 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
14544         PR debug/70628
14545         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
14547         PR middle-end/70633
14548         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
14549         gimplification turns some element into non-constant.
14551         PR debug/70628
14552         * rtl.h (convert_memory_address_addr_space_1): New prototype.
14553         * explow.c (convert_memory_address_addr_space_1): No longer static,
14554         add NO_EMIT argument and don't call convert_modes if true, pass
14555         it down recursively, remove break after return.
14556         (convert_memory_address_addr_space): Adjust caller.
14557         * simplify-rtx.c (simplify_unary_operation_1): Call
14558         convert_memory_address_addr_space_1 instead of convert_memory_address,
14559         if it returns NULL, don't simplify.
14561 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
14563         PR target/70630
14564         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
14566 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14568         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14569         Bump the upper SIMDLEN limits, so that if the return type or
14570         characteristic type if the return type is void can be passed in
14571         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
14572         allowed.
14574 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14576         PR target/70640
14577         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
14578         Do not use "=" constraint on an input constraint.
14579         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14580         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14581         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
14582         generates (neg (abs ...)) instead of (abs ...).
14584 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14586         PR rtl-optimization/70596
14587         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
14588         just invalidate LRA data and reset them.  Adjust dump wording.
14590 2016-04-12  Martin Liska  <mliska@suse.cz>
14592         Revert
14593         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
14595         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
14596         estimates here.
14597         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
14598         max_loop_iterations_int.
14599         (tree_unswitch_outer_loop): Likewise.
14600         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
14601         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
14603 2016-04-12  Tom de Vries  <tom@codesourcery.com>
14605         PR tree-optimization/68756
14606         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
14607         instead of new_name.
14609 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
14611         PR tree-optimization/70602
14612         * tree-sra.c (generate_subtree_copies): Don't write anything into
14613         constant pool decls.
14615         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
14616         regardless whether there are depend clauses or not.
14618 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14620         PR target/70381
14621         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
14622         target attribute and pragma from changing the -mfloat128
14623         and -mfloat128-hardware options.
14625         * doc/extend.texi (Additional Floating Types): Document PowerPC
14626         __float128 restrictions.
14628 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
14630         PR target/70133
14631         * config/aarch64/driver-aarch64.c
14632         (aarch64_get_extension_string_for_isa_flags): New.
14633         (arch_extension): Rename to...
14634         (aarch64_arch_extension): ...This.
14635         (ext_to_feat_string): Rename to...
14636         (aarch64_extensions): ...This.
14637         (aarch64_core_data): Keep track of architecture extension flags.
14638         (cpu_data): Rename to...
14639         (aarch64_cpu_data): ...This.
14640         (aarch64_arch_driver_info): Keep track of architecture extension
14641         flags.
14642         (get_arch_name_from_id): Rename to...
14643         (get_arch_from_id): ...This, change return type.
14644         (host_detect_local_cpu): Update and reformat for renames, handle
14645         extensions through common infrastructure.
14647 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
14649         PR target/70133
14650         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
14651         track of a canonical flag name.
14652         (all_extensions): Likewise.
14653         (arch_to_arch_name): Also track extension flags enabled by the arch.
14654         (all_architectures): Likewise.
14655         (aarch64_parse_extension): Move to here.
14656         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
14657         rework.
14658         (aarch64_rewrite_selected_cpu): Update for above change.
14659         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
14660         are handled, such that the single explicit value enabled by an
14661         extension is kept seperate from the implicit values it also enables.
14662         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
14663         to here.
14664         (aarch64_parse_extension): New.
14665         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
14666         here to config/aarch64/aarch64-protos.h.
14667         (aarch64_parse_extension): Move from here to
14668         common/config/aarch64/aarch64-common.c.
14669         (aarch64_option_print): Update.
14670         (aarch64_declare_function_name): Likewise.
14671         (aarch64_start_file): Likewise.
14672         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
14673         the canonical flag for extensions.
14674         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
14675         flags.
14677 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
14679         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
14680         AARCH64_FL_CRC.
14682 2016-04-09  Tom de Vries  <tom@codesourcery.com>
14684         PR tree-optimization/68953
14685         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
14686         first to last subscript.
14688 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
14690         PR tree-optimization/70586
14691         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
14692         for any calls.
14694 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
14696         PR lto/70289
14697         PR ipa/70348
14698         PR tree-optimization/70373
14699         PR middle-end/70533
14700         PR middle-end/70534
14701         PR middle-end/70535
14702         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
14703         clauses for acc parallel reductions as necessary.  Error on those
14704         that are private.
14705         * omp-low.c (scan_sharing_clauses): Don't install variables which
14706         are used in acc parallel reductions.
14707         (lower_rec_input_clauses): Remove dead code.
14708         (lower_oacc_reductions): Add support for reference reductions.
14709         (lower_reduction_clauses): Remove dead code.
14710         (lower_omp_target): Don't remap variables appearing in acc parallel
14711         reductions.
14712         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
14714 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
14716         PR middle-end/70593
14717         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
14718         with multiple SSA_NAME defs, force the outputs other than first
14719         to be live before calling live_track_process_def on each output.
14721         PR rtl-optimization/70574
14722         * fwprop.c (forward_propagate_and_simplify): Don't add
14723         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
14724         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
14725         paradoxical subregs within *loc.
14727 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
14729         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
14730         -ftree-parallelize-loops={0,1}.
14731         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
14732         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
14733         * config/ia64/hpux.h (LIB_SPEC): Likewise.
14734         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14735         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
14737 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
14739         PR sanitizer/70541
14740         * asan.c (instrument_derefs): If we get unknown location, extract it
14741         with EXPR_LOCATION.
14742         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
14744 2016-04-08  Tom de Vries  <tom@codesourcery.com>
14746         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
14747         implicit firstprivate clause.
14749 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14751         PR target/70566
14752         * config/arm/thumb2.md (tst + branch-> lsls + branch
14753         peephole below *orsi_not_shiftsi_si): Require that condition
14754         register is dead after the peephole.
14755         (second peephole after the above): Likewise.
14757 2016-04-08  Alan Modra  <amodra@gmail.com>
14759         PR target/70117
14760         * builtins.c (fold_builtin_classify): For IBM extended precision,
14761         look at just the high-order double to test for NaN.
14762         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
14763         test just the high double for Inf but both doubles for subnormal
14764         limit.
14766 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
14768         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
14769         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
14770         node->simdclone->mask_mode != VOIDmode masks.
14771         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
14772         earlier, use it instead of node->simdclone.
14773         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14774         Set clonei->mask_mode.
14776 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
14778         PR c/70436
14779         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
14780         Pass it through to cp_parser_already_scoped_statement.
14781         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
14782         it through to cp_parser_statement.
14783         (cp_parser_statement): Pass IF_P through to
14784         cp_parser_iteration_statement.
14785         (cp_parser_pragma): Adjust call to
14786         cp_parser_iteration_statement.
14788 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
14790         PR c/70436
14791         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
14792         resolve a future -Wparentheses warning.
14793         * omp-low.c (scan_sharing_clauses): Likewise.
14794         * tree-parloops.c (eliminate_local_variables): Likewise.
14796 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
14798         PR rtl-optimization/70398
14799         * lra-constraints.c (process_address_1): Check zero scale and code
14800         for reloading with zero scale.
14802 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
14804         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
14805         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
14807 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
14809         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14810         Add support for AVX512F clones, include them by default for
14811         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
14812         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
14813         up to 128.
14815         PR middle-end/70550
14816         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
14817         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
14818         firstprivate clauses.
14819         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
14820         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
14821         (lower_omp_target): Set TREE_NO_WARNING for
14822         non-addressable possibly uninitialized vars which are copied into
14823         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
14825 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
14827         * config/pa/predicates.md (integer_store_memory_operand): Accept
14828         REG+D operands with a large offset when reload_in_progress is true.
14829         (floating_point_store_memory_operand): Likewise.
14831 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
14833         PR c++/70336
14834         * match.pd (nested int casts): Limit to GIMPLE.
14836 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
14838         PR ipa/66223
14839         * ipa-devirt.c (maybe_record_node): Fix comment; use
14840         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
14842 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
14844         PR rtl-optimization/70542
14845         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
14846         if there are any uses other than insn or debug insns.
14848 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
14849             Jakub Jelinek  <jakub@redhat.com>
14851         PR tree-optimization/70509
14852         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
14853         Shift HOST_WIDE_INT_1U instead of 1.
14855 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
14857         PR tree-optimization/70509
14858         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
14859         of the vector base type for index.
14861 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
14863         PR target/70510
14864         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
14866 2016-04-05  Richard Biener  <rguenther@suse.de>
14868         PR tree-optimization/70526
14869         * tree-sra.c (build_ref_for_offset): Use prev_base to
14870         extract the alias pointer type.
14872 2016-04-05  Richard Biener  <rguenther@suse.de>
14874         * dse.c (struct store_info): Remove alias_set member.
14875         (struct read_info_type): Likewise.
14876         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
14877         spill_deleted, clear_alias_set_lookup): Remove.
14878         (get_group_info): Remove dead base == NULL_RTX case.
14879         (dse_step0): Remove initialization of removed variables.
14880         (delete_dead_store_insn): Reomve alias set dumping.
14881         (free_read_records): Remove alias_set handling.
14882         (canon_address): Remove alias_set_out parameter.
14883         (record_store): Remove spill_alias_set, it's always zero.
14884         (check_mem_read_rtx): Likewise.
14885         (dse_step2): Rename from ...
14886         (dse_step2_nospill): ... this.  Adjust.
14887         (scan_stores): Rename from ...
14888         (scan_stores_nospill): ... this.
14889         (scan_reads): Rename from ...
14890         (scan_reads_nospill): ... this.
14891         (scan_stores_spill, scan_reads_spill): Remove.
14892         (dse_step3_scan): Remove for_spills argument which is always false.
14893         (dse_step3): Likewise.
14894         (dse_step5): Rename from ...
14895         (dse_step5_nospill): ... this.  Remove alias_set handling.
14896         (rest_of_handle_dse): Adjust.
14898 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
14900         PR target/70525
14901         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
14902         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
14903         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
14904         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
14906 2016-04-05  Richard Biener  <rguenther@suse.de>
14908         PR middle-end/70499
14909         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
14910         non-register type temporaries into SSA.
14912 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
14914         PR ipa/66223
14915         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
14916         calls when sanitizing.
14917         (possible_polymorphic_call_target_p): Fix formatting.
14919 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14920             Jakub Jelinek <jakub@redhat.com>
14922         PR middle-end/70457
14923         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
14924         to ensure a call statement is compatible with a built-in's
14925         prototype.
14926         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
14927         Likewise.
14929 2016-04-04  Richard Biener  <rguenther@suse.de>
14931         PR rtl-optimization/70484
14932         * rtl.h (canon_output_dependence): Declare.
14933         * alias.c (canon_output_dependence): New function.
14934         * dse.c (record_store): Use canon_output_dependence rather
14935         than canon_true_dependence.
14937 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
14939         PR ipa/68881
14940         * cgraph.h (symtab_node::copy_visibility_from): New function.
14941         * symtab.c (symtab_node::copy_visibility_from): New function.
14942         * ipa-visibility.c (optimize_weakref): New function.
14943         (function_and_variable_visibility): Use it.
14945 2016-04-04  Martin Liska  <mliska@suse.cz>
14947         PR hsa/70402
14948         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
14949         value that is really in range handled by SBR instruction.
14950         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
14951         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
14952         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
14954 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
14956         PR target/70416
14957         PR target/67391
14958         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
14959         set, but not for SP_REG operands.
14961 2016-04-02  Martin Sebor  <msebor@redhat.com>
14963         PR c++/67376
14964         * fold-const.c (maybe_nonzero_address): New function.
14965         (fold_comparison): Call it.  Fold equality and relational
14966         expressions involving null pointers.
14967         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
14969 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
14971         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
14972         the "Y" constraint (scalar FP 0.0 immediate).
14974         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
14975         Add the "const_double" to the list of operand constraints.
14977 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
14979         PR rtl-optimization/70467
14980         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
14981         If low word of the last operand is 0, just emit addition/subtraction
14982         for the high word.
14984 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14986         PR target/70404
14987         * config/s390/s390.c (s390_expand_insv): Check for everything
14988         constant instead of just VOIDmode stuff.
14990 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14992         PR target/70496
14993         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
14995 2016-04-01  Nathan Sidwell  <nathan@acm.org>
14997         * tree.def (TRY_CATCH_EXPR): Correct documentation.
14999 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
15001         PR rtl-optimization/70461
15002         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
15003         is necessary.
15005 2016-03-31  Martin Liska  <mliska@suse.cz>
15007         PR hsa/70399
15008         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
15009         a tree value or an immediate integer value to a buffer
15010         that is eventually copied to a BRIG section.
15011         (emit_immediate_operand): Call the function here.
15012         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
15013         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
15014         of class' fields that are removed.
15015         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
15016         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
15017         m_brig_repr_size fields.
15019 2016-03-31  Martin Liska  <mliska@suse.cz>
15021         PR hsa/70391
15022         * hsa-gen.c (hsa_function_representation::update_dominance): New
15023         function.
15024         (convert_addr_to_flat_segment): Likewise.
15025         (gen_hsa_memory_set): New alignment argument.
15026         (gen_hsa_ctor_assignment): Likewise.
15027         (gen_hsa_insns_for_single_assignment): Provide alignment
15028         to gen_hsa_ctor_assignment.
15029         (gen_hsa_insns_for_direct_call): Add new argument.
15030         (expand_lhs_of_string_op): New function.
15031         (expand_string_operation_builtin): Likewise.
15032         (expand_memory_copy): New function.
15033         (expand_memory_set): New function.
15034         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
15035         (convert_switch_statements): Change signature.
15036         (generate_hsa): Use a return value of the function.
15037         (pass_gen_hsail::execute): Do not call
15038         convert_switch_statements here.
15039         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
15040         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
15041         (hsa_function_representation::update_dominance): New function.
15043 2016-03-31  Martin Liska  <mliska@suse.cz>
15045         PR hsa/70391
15046         * hsa-brig.c (emit_directive_variable): Emit alignment
15047         according to hsa_symbol::m_align.
15048         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
15049         (dump_hsa_symbol): Dump alignment of HSA symbols.
15050         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
15051         (gen_hsa_addr_with_align): New function.
15052         (hsa_bitmemref_alignment): Use newly added function.
15053         (gen_hsa_insns_for_load): Likewise.
15054         (gen_hsa_insns_for_store): Likewise.
15055         (gen_hsa_memory_copy): New argument added.
15056         (gen_hsa_insns_for_single_assignment): Respect
15057         alignment for assignments processed via gen_hsa_memory_copy.
15058         (gen_hsa_insns_for_direct_call): Likewise.
15059         (gen_hsa_insns_for_return): Likewise.
15060         (gen_function_def_parameters): Set default alignment.
15061         * hsa.c (hsa_object_alignment): New function.
15062         (hsa_byte_alignment): Pasted function.
15063         * hsa.h (hsa_symbol::m_align): New field.
15065 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
15067         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
15068         scratch field for goto case.
15070 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
15072         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
15074 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
15076         PR target/70442
15077         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
15078         (scalar_chain::convert_insn): Call convert_op for reg
15079         moves to handle undefined registers.
15081 2016-03-31  Nathan Sidwell  <nathan@acm.org>
15083         PR c++/70393
15084         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
15085         Assert we don't want to move backwards.
15087 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
15089         PR target/70453
15090         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
15092 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
15094         PR rtl-optimization/70460
15095         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
15096         with operand from REG_LABEL_OPERAND, instead substitute
15097         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
15098         Don't do anything for REG_NON_LOCAL_GOTO jumps.
15100 2016-03-31  Martin Liska  <mliska@suse.cz>
15102         * passes.c (execute_one_pass): Do not call
15103         todo_after for a discarded function.
15105 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
15107         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
15108         (no_cost, infinite_cost): Initialize the new field.
15109         (get_computation_cost_at): Record setup cost.
15110         (determine_use_iv_cost_address): Skip cost computation for sub
15111         uses if we can estimate it without losing accuracy.
15113 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
15115         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
15116         estimates here.
15117         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
15118         max_loop_iterations_int.
15119         (tree_unswitch_outer_loop): Likewise.
15120         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
15121         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
15123 2016-03-30  Richard Biener  <rguenther@suse.de>
15125         PR middle-end/70450
15126         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
15128 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
15130         PR target/70421
15131         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
15132         in gen_blendm expander.
15134 2016-03-30  Nick Clifton  <nickc@redhat.com>
15136         PR target/62254
15137         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
15138         case where we are already provided with an SImode SUBREG.
15140 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15142         PR target/70439
15143         * config/i386/i386.c (ix86_expand_epilogue): Properly check
15144         conflict between DRAP register and __builtin_eh_return.
15146 2016-03-30  Michael Matz  <matz@suse.de>
15147             Richard Biener  <rguenther@suse.de>
15149         PR ipa/12392
15150         * ipa-polymorphic-call.c (struct type_change_info): Change
15151         speculative to an unsigned allowing to limit the work we do.
15152         (csftc_abort_walking_p): New inline function..
15153         (check_stmt_for_type_change): Limit the number of may-defs
15154         skipped for speculative devirtualization to
15155         max-speculative-devirt-maydefs.
15156         * params.def (max-speculative-devirt-maydefs): New param.
15157         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
15159 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
15161         PR target/63890
15162         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
15163         and TARGET_MACHO.
15165 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
15167         PR tree-optimization/59124
15168         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
15169         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
15171 2016-03-29  Jeff Law  <law@redhat.com>
15173         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
15175 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
15177         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
15178         to HOST_WIDE_INT.
15180 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
15182         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
15183         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
15184         gcrt0.o if linking dynamically.
15186 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
15188         PR ipa/70283
15189         * ipa-devirt.c (methods_equal_p): New function.
15190         (compare_virtual_tables): Use it.
15191         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
15192         * cgraphclones.c (clone_function_name_1): Use
15193         symbol_table::symbol_suffix_separator.
15194         * coverage.c (build_var): Likewise.
15195         * symtab.c (symbol_table::symbol_suffix_separator): New.
15197 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
15199         PR rtl-optimization/70429
15200         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
15201         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
15202         mode != result_mode.
15204         PR c++/70353
15205         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
15207         PR tree-optimization/70405
15208         * ssa-iterators.h (num_imm_uses): Add missing braces.
15210 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15212         PR rtl-optimization/68695
15213         * ira-color.c (allocno_copy_cost_saving): New.
15214         (improve_allocation): Use it.
15216 2016-03-29  Richard Henderson  <rth@redhat.com>
15218         PR middle-end/70355
15219         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
15221 2016-03-29  Richard Biener  <rguenther@suse.de>
15223         PR middle-end/70424
15224         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
15225         use alignment returned by get_pointer_alignment_1 if it is
15226         bigger than BITS_PER_UNIT.
15227         * builtins.c (get_pointer_alignment_1): Do not return true
15228         for alignment extracted from SSA info.
15230 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
15232         * config/ft32/ft32.opt (mnodiv): New.
15233         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
15234         * doc/invoke.texi (FT32 Options -mnodiv): New.
15236 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
15238         PR target/70406
15239         * config/i386/i386.md (define_split, andn): Fix modes.
15241 2016-03-26  Richard Biener  <rguenther@suse.de>
15242             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15244         PR ipa/70366
15245         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
15246         instead of
15247         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
15248         as 2nd argument to cl_optimization_restore().
15250 2016-03-25  Richard Henderson  <rth@redhat.com>
15252         PR target/70120
15253         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
15254         * config/aarch64/aarch64-protos.h: Declare it.
15255         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
15257 2016-03-25  Alan Modra  <amodra@gmail.com>
15259         PR target/70052
15260         * config/rs6000/constraints.md (j): Simplify.
15261         * config/rs6000/predicates.md (easy_fp_constant): Exclude
15262         decimal float 0.D.
15263         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
15264         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
15265          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
15266         in all constraint alternatives.
15267         (movtd_64bit_nodm): Delete "j" constraint alternative.
15269 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
15271         * tree-ssa-propagate.c: Enhance docs for
15272         SSA_PROP_NOT_INTERESTING.
15274 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
15276         * doc/extend.texi: Fix typo in documentation to pure attribute.
15278 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
15280         PR target/70319
15281         * config/pa/pa.md (bswapdi2): Use a scratch register.
15283 2016-03-24  Richard Henderson  <rth@redhat.com>
15285         PR middle-end/69845
15286         * fold-const.c (extract_muldiv_1): Correct test for multiplication
15287         overflow.
15289 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
15291         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
15292         using ix86_expand_binary_operator instead of gen_andsi3.
15294 2016-03-24  Richard Biener  <rguenther@suse.de>
15296         PR tree-optimization/70396
15297         * tree-vect-stmts.c (vectorizable_comparison): Use
15298         get_vectype_for_scalar_type.
15300 2016-03-24  Richard Biener  <rguenther@suse.de>
15302         PR middle-end/70370
15303         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
15304         with register bases.
15306 2016-03-24  Richard Biener  <rguenther@suse.de>
15308         PR tree-optimization/70372
15309         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
15310         build_all_ones_cst to also handle vector types correctly.
15312 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15314         PR target/70381
15315         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
15316         -mfloat128 here.
15318 2016-03-23  Marek Polacek  <polacek@redhat.com>
15320         PR c++/69884
15321         * doc/invoke.texi: Document -Wignored-attributes.
15323 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
15325         PR tree-optimization/69042
15326         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
15327         parameter from 30 to 40.
15329 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
15331         PR tree-optimization/69042
15332         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
15333         for use with constant offset stripped in base.
15335 2016-03-23  Richard Biener  <rguenther@suse.de>
15337         PR middle-end/70251
15338         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
15339         mode compatibility check.
15340         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15342 2016-03-23  Jeff Law  <law@redhat.com>
15344         PR tree-optimization/64058
15345         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
15346         CONFLICT_COUNT.
15347         (struct ssa_conflicts): Move up earlier in the file.
15348         (conflicts_, var_map_): New static variables.
15349         (initialize_conflict_count): New function to initialize the
15350         CONFLICT_COUNT field for each conflict pair.
15351         (compare_pairs): Lazily initialize the conflict count and use it
15352         as the first tie-breaker.
15353         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
15354         and wipe conflicts_ and map_ around the call to qsort.  Remove
15355         special case for 2 coalesce pairs.
15356         * bitmap.c (bitmap_count_unique_bits): New function.
15357         (bitmap_count_bits_in_word): New function, extracted from
15358         bitmap_count_bits.
15359         (bitmap_count_bits): Use bitmap_count_bits_in_word.
15360         * bitmap.h (bitmap_count_unique_bits): Declare it.
15362 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
15364         PR target/69917
15365         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
15366         transparent alias chain for decl assembler name.
15367         * config/sol2.c (solaris_assemble_visibility): Likewise.
15369 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15371         * config/arm/arm1020e.md (1020call_op): Reduce reservation
15372         duration.
15373         (v10_fdivs): Likewise.
15374         (v10_fdivd): Likewise.
15376 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15378         PR driver/70132
15379         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
15380         to not call fclose twice on file.
15382 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
15384         PR tree-optimization/70354
15385         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
15386         oprnd0 is wider than oprnd1 and there is a cast from the wider
15387         type to oprnd1, mask it with the mask of the narrower type.
15389         PR target/70321
15390         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
15391         Optimize TARGET_STV splitters, if high or low word of last argument
15392         is 0 or -1.
15394 2016-03-22  Jeff Law  <law@redhat.com>
15396         PR target/70232
15397         tree-ssa-threadbackward.c
15398         (fsm_find_control_statement_thread_paths): Correctly distinguish
15399         between old style jump threads vs FSM jump threads.
15401 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
15403         PR target/70302
15404         * config/i386/i386.c (scalar_chain::convert_op): Support
15405         uninitialized register usage case.
15407 2016-03-22  Richard Biener  <rguenther@suse.de>
15409         PR middle-end/70251
15410         * genmatch.c (gen_transform): Adjust last parameter to a three-state
15411         int...
15412         (capture::gen_transform): ... to change behavior when substituting
15413         a condition into cond or not-cond expr context.
15414         (dt_simplify::gen_1): Adjust.
15415         * gimple-match-head.c: Include gimplify.h for unshare_expr.
15416         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
15417         last change and instead change to
15418         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
15419         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15421 2016-03-22  Anthony Green  <green@moxielogic.com>
15423         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
15424         issue for moxiebox targets.
15425         (CC1PLUS_SPEC): Ditto.
15427 2016-03-22  Richard Biener  <rguenther@suse.de>
15429         PR middle-end/70333
15430         * fold-const.c (extract_muldiv_1): Properly perform multiplication
15431         in the wide type.
15433 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
15435         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
15437 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
15439         PR target/70325
15440         * config/i386/i386.c (def_builtin): Handle
15441         OPTION_MASK_ISA_AVX512VL to be and-ed with other
15442         bits.
15443         (const struct builtin_description bdesc_special_args[]):
15444         Remove duplicate ISA bits.
15446 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
15448         PR target/70329
15449         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
15450         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
15451         in a way that works also for AVX512BW.
15453         PR target/70300
15454         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
15455         instead of source if operands[1] is xmm16 and above and
15456         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
15457         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
15459         PR c++/70295
15460         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
15461         on assign if (*from_p) is a comparison, set it to
15462         TREE_NO_WARNING (*from_p).
15464 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
15466         PR middle-end/70326
15467         * lra.c (restore_scratches): Ignore deleted insns.
15469 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
15470             Jakub Jelinek  <jakub@redhat.com>
15472         PR tree-optimization/70317
15473         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
15474         to HONOR_NANS.
15476 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
15478         PR target/70327
15479         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
15480         of ix86_expand_move.
15481         (movoi): Ditto.
15482         (movti): Use general_operand for operand 1 predicate.
15484 2016-03-21  Martin Liska  <mliska@suse.cz>
15486         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
15487         insns.
15488         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
15490 2016-03-21  Martin Liska  <mliska@suse.cz>
15492         PR ipa/70306
15493         * ipa-icf.c (sem_function::parse): Skip static
15494         constructors and destructors.
15496 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
15498         PR target/70296
15499         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
15500         function-like macro, peek following token(s) if it is followed
15501         by CPP_OPEN_PAREN token with optional padding in between, and
15502         if not, don't treat it like a macro.
15504 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
15505             Alexander Monakov  <amonakov@ispras.ru>
15507         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
15508         for the stabs debug format.
15510 2016-03-21  Richard Biener  <rguenther@suse.de>
15512         PR tree-optimization/70310
15513         * tree-vect-generic.c (expand_vector_condition): Fold the built
15514         condition.
15516 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
15518         PR target/70293
15519         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
15520         Block third alternative for AVX-512VL target,
15522 2016-03-21  Martin Liska  <mliska@suse.cz>
15524         PR hsa/70234
15525         * hsa-brig.c (emit_function_directives): Mark unemitted
15526         global variables for emission.
15527         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
15528         (get_symbol_for_decl): Likewise.
15529         * hsa.h (struct hsa_symbol): New flag.
15531 2016-03-21  Richard Biener  <rguenther@suse.de>
15533         PR tree-optimization/70288
15534         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
15535         we do not estimate unsimplified all-constant conditionals or
15536         switches as optimized away.
15538 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
15540         PR rtl-optimization/69102
15541         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
15542         when we have a readonly dependency context.
15544 2016-03-18  Jeff Law  <law@redhat.com>
15546         PR rtl-optimization/70263
15547         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
15548         (update_equiv_regs): When trying to move a store to after the insn
15549         that sets the source of the store, make sure the store occurs after
15550         the insn that sets the source of the store.  When successful note
15551         the REG_EQUIV note created in the dump file.
15553 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
15554             Bernd Schmidt  <bschmidt@redhat.com>
15556         * doc/extend.texi: Document more potential problems with basic asms.
15558 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
15560         PR rtl-optimization/70278
15561         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
15562         VOIDmode.
15564 2016-03-18  Jason Merrill  <jason@redhat.com>
15566         * calls.c (load_register_parameters): Fix zero size sibcall logic.
15568 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
15570         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
15571         values to 128b regs.
15573 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15575         PR tree-optimization/70252
15576         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
15577         boolean vector has a proper number of elements.
15578         (supportable_narrowing_operation): Likewise.
15580 2016-03-18  Tom de Vries  <tom@codesourcery.com>
15582         PR ipa/70269
15583         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
15585 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
15587         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
15588         instead of replace_rtx for DEBUG_INSNs.
15590 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15592         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
15593         load type reservations.
15595 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
15597         PR target/70188
15598         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
15599         define_constraint for "Q" and "T" constraints.
15601 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
15603         Tweak the pipeline model for Exynos M1
15605         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
15606         model.
15608 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
15610         PR c/70264
15611         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
15612         where one or both locations aren't within a line_map.
15614 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15616         PR driver/70192
15617         * opts.c (finish_options): Don't set flag_pie to the default if
15618         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
15619         if it is -1.
15621 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
15623         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
15624         true as ALL_REGS argument to replace_rtx.
15626 2016-03-17  Richard Biener  <rguenther@suse.de>
15628         PR debug/70271
15629         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
15630         last.
15632 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
15634         PR target/70245
15635         * rtl.h (replace_rtx): Add ALL_REGS argument.
15636         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
15637         equality and assert mode is the same, instead of just rtx pointer
15638         equality.
15639         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
15640         true as ALL_REGS argument to replace_rtx.
15642 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
15644         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
15645         for boolean vector with vector mode only.
15646         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15648 2016-03-17  Nick Clifton  <nickc@redhat.com>
15650         PR target/70162
15651         * config/rx/rx.c (rx_print_integer): Print negative constants in
15652         decimal.
15654 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
15656         PR target/70261
15657         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
15659 2016-03-16  Richard Henderson  <rth@redhat.com>
15660             Richard Biener  <rguenth@suse.de>
15662         PR middle-end/70240
15663         PR middle-end/68215
15664         PR tree-opt/68714
15665         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
15666         first operand as is_gimple_condexpr.
15668         PR middle-end/70240
15669         PR middle-end/68215
15670         Revert r231575
15671         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
15672         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
15673         Do not gimplify the result.
15674         (do_unop): Adjust call to tree_vec_extract.
15675         (do_binop): Likewise.
15676         (do_compare): Likewise.
15677         (do_plus_minus): Likewise.
15678         (do_negate): Likewise.
15679         (expand_vector_condition): Likewise.
15680         (do_cond): Likewise.
15682 2016-03-16  Richard Henderson  <rth@redhat.com>
15684         PR target/70048
15685         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
15686         (aarch64_classify_address): Use it.
15687         (aarch64_legitimize_address): Force all subexpressions of PLUS
15688         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
15690 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
15691             Richard Biener  <rguenth@suse.de>
15693         PR target/70245
15694         * rtlanal.c (replace_rtx): For REG, if from is a REG,
15695         return to even if only REGNO is equal, and assert
15696         mode is the same.
15698 2016-03-11  Jeff Law  <law@redhat.com>
15700         PR rtl-optimization/70224
15701         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
15703 2016-03-16  Richard Henderson  <rth@redhat.com>
15705         PR middle-end/70199
15706         * function.h (struct function): Add has_forced_label_in_static.
15707         * gimplify.c (force_labels_r): Set it.
15708         * lto-streamer-in.c (input_struct_function_base): Read it.
15709         * lto-streamer-out.c (output_struct_function_base): Write it.
15710         * tree-inline.c (has_label_address_in_static_1): Remove.
15711         (copy_forbidden): Remove fndecl parameter; test
15712         has_forced_label_in_static.
15713         (inline_forbidden_p): Update call to copy_forbidden.
15714         (tree_versionable_function_p): Likewise.
15715         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
15716         (chkp_versioning): Likewise.
15717         * tree-inline.h (copy_forbidden): Update decl.
15719 2016-03-16  Marek Polacek  <polacek@redhat.com>
15721         PR c/70093
15722         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
15723         function being thunked if the result type doesn't have fixed size.
15724         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
15725         doesn't have fixed size.
15727 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
15729         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
15730         reporting malformed loop nest.
15732 2016-03-16  Tom de Vries  <tom@codesourcery.com>
15734         PR lto/70187
15735         * ipa-devirt.c (possible_polymorphic_call_targets): Move
15736         nodes.length () == 1 test to before first nodes[0] access.
15738 2016-03-16  Tom de Vries  <tom@codesourcery.com>
15740         PR tree-optimization/68715
15741         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
15742         single_pred_p test.
15744 2016-03-16  Tom de Vries  <tom@codesourcery.com>
15746         PR tree-optimization/68809
15747         * graphite-scop-detection.c (same_close_phi_node): Test if result types
15748         are the same.
15750 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
15751             Sandra Loosemore  <sandra@codesourcery.com>
15753         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
15754         on leaf attribute. Mention ELF interposition problems.
15756 2016-03-16  Alan Modra  <amodra@gmail.com>
15758         PR rtl-optimization/69195
15759         PR rtl-optimization/47992
15760         * ira.c (indirect_jump_optimize): Ignore artificial defs.
15761         Add comments.
15763 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
15765         PR bootstrap/69513
15766         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
15768 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15770         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
15772 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
15774         PR rtl-optimization/70222
15775         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
15776         optimization if mode is different from result_mode, queue up masking
15777         of the result in outer_op.  Formatting fix.
15779         PR middle-end/70239
15780         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
15781         of safe_grow.
15783 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15785         PR rtl-optimization/69032
15786         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
15787         looping backwards over basic block insns.
15789 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15791         PR target/66660
15792         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
15793         to non-speculative when propagating trap bits.
15795 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15797         PR rtl-optimization/63384
15798         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
15799         DEBUG_INSN_P insns.
15801 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
15803         PR target/64411
15804         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
15805         factored out from ...
15806         (sched_analyze_insn): ... here.
15807         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
15808         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
15809         get_implicit_reg_pending_clobbers in it.
15810         (setup_id_reg_sets): Use setup_id_implicit_regs.
15811         (deps_init_id): Ditto.
15813 2016-03-15  Tom de Vries  <tom@codesourcery.com>
15815         PR ipa/70161
15816         * cgraph.c (cgraph_node::get_body): Save, reset and restore
15817         dump_file_name.
15818         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
15819         execute_function_dump.
15820         (execute_one_pass): Don't dump function if it will be dumped after ipa
15821         transform.
15823 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
15825         * genrecog.c (match_pattern_2): If pred is NULL don't call
15826         safe_predicate_mode on it.
15828 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
15830         PR middle-end/70219
15831         * lra-constraints.c (delete_move_and_clobber): Change assertion
15832         to also allow dregno == 0.
15834 2016-03-14  Richard Henderson  <rth@redhat.com>
15836         PR tree-opt/68714
15837         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
15838         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
15839         (reassociate_bb): Use optimize_vec_cond_expr; avoid
15840         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
15841         on vectors.
15843 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
15845         PR target/70083
15846         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
15847         regs.
15848         (lra_create_live_ranges_1): initialize hard register biggest_mode to
15849         VOIDmode.
15850         * lra-constraints.c (split_reg): For hard regs, try to find the
15851         biggest single-register mode used in the function.
15853 2016-03-14  Richard Biener  <rguenther@suse.de>
15855         PR tree-optimization/56365
15856         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
15857         constants to compare against.
15859 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
15861         PR target/70098
15862         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
15863         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
15864         (define_split for the GPR case): Use int_reg_operand instead of
15865         gpc_reg_operand for the output.
15867 2016-03-14  Tom de Vries  <tom@codesourcery.com>
15869         PR tree-optimization/70045
15870         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
15871         create_empty_if_region_on_edge argument.
15873 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
15875         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
15876         (STACK_CHECK_PROTECT): Likewise.
15877         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
15878         (STACK_CHECK_PROTECT): Likewise.
15879         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
15880         (STACK_CHECK_PROTECT): Likewise.
15881         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
15882         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15883         (STACK_CHECK_PROTECT): Likewise.
15885 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
15887         PR rtl-optimization/69307
15888         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
15889         registers in modes that span more than one register.
15891 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
15893         PR target/69614
15894         * lra-constraints.c (delete_move_and_clobber): New.
15895         (remove_inheritance_pseudos): Use it.
15897 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
15899         PR ada/70017
15900         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
15901         the libcall is LCT_THROW.
15902         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
15903         for the checking routine.
15905 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15907         PR target/70131
15908         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
15909         optimization if we have direct move.
15910         (roundu32<mode>2_fprs): Likewise.
15912 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
15914         PR target/70123
15915         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
15916         be rematerialized.
15917         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
15918         Arguments swapped.  All callers changed.  Take reg_renumber into
15919         account, and Calculate and compare register ranges for hard regs.
15921 2016-03-11  Jeff Law  <law@redhat.com>
15923         PR tree-optimization/70190
15924         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15925         Handle cases where we can not extract the taken edge, even though we
15926         found a constant value.
15928         PR tree-optimization/64058
15929         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
15930         (num_coalesce_pairs): Move up earlier in file.
15931         (find_coalesce_pair): Initialize the INDEX field for each pair
15932         discovered.
15933         (compare_pairs): No longer sort on the elements in each pair.
15934         Instead break ties with the index of the coalesce pair.
15936 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15938         PR target/70002
15939         * config/aarch64/aarch64-protos.h
15940         (aarch64_save_restore_target_globals): New prototype.
15941         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
15942         Call the above when popping pragma.
15943         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
15944         New function.
15945         (aarch64_set_current_function): Rewrite using the above.
15947 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
15949         PR tree-optimization/70177
15950         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
15951         (extract_ops_from_tree): ... this.  In the 2 argument
15952         overload remove _1 suffix.
15953         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
15954         (extract_ops_from_tree): ... this.
15955         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
15956         Adjust callers.
15957         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15958         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
15959         extract_ops_from_tree instead of 2 operand one.
15961 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
15963         PR tree-optimization/70013
15964         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
15965         for constant-pool entries.
15967 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
15969         PR rtl-optimization/70174
15970         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
15971         followed by gen_lowpart on force_reg instead of just gen_lowpart.
15973         PR tree-optimization/70169
15974         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
15975         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
15976         for unknown codes.
15978 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
15979             Jakub Jelinek  <jakub@redhat.com>
15981         PR target/70160
15982         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
15983         of uninitialized values.
15985 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15987         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
15988         define_expand.
15989         ("*trunctddd2"): New pattern definition.
15990         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
15991         TD->DD truncation.
15993 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15995         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
15996         definitions for BFP and DFP rounding modes.
15997         ("fixuns_truncdddi2", "fixuns_trunctddi2")
15998         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
15999         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
16000         ("fix_trunctf<mode>2"): Use the new constants instead of magic
16001         numbers.
16003 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16005         * config/s390/constraints.md: Adjust comment.
16006         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
16007         s390_decompose_addrstyle_without_index.
16008         * config/s390/predicates.md (shift_count_or_setmem_operand):
16009         Rename to setmem_operand.
16010         * config/s390/s390-protos.h
16011         (s390_decompose_shift_count): Rename to
16012         s390_decompose_addrstyle_without_index.
16013         * config/s390/s390.c (s390_decompose_shift_count)
16014         (s390_mem_constraint, print_shift_count_operand)
16015         (print_operand_address, print_operand): Rename
16016         s390_decompose_shift_count to
16017         s390_decompose_addrstyle_without_index and rename
16018         print_shift_count_operand to print_addrstyle_operand troughout the
16019         file.
16020         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
16021         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
16022         Rename shift_count_or_setmem_operand to setmem_operand.
16023         * config/s390/vx-builtins.md ("vec_insert<mode>")
16024         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
16025         nonmemory_operand.
16027 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16029         PR target/70168
16030         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16031         Handle overlapping retval and newval.
16033 2016-03-10  Nick Clifton  <nickc@redhat.com>
16035         PR target/7044
16036         * config/aarch64/aarch64.c
16037         (aarch64_override_options_after_change_1): When forcing
16038         flag_omit_frame_pointer to be true, use a special value that can
16039         be detected if this function is called again, thus preventing
16040         flag_omit_leaf_frame_pointer from being forced to be false.
16042 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16044         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16045         Set x_flag_omit_leaf_frame_pointer when handling
16046         -momit-leaf-frame-pointer.
16048 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16050         PR lto/69589
16051         * cgraph.c (cgraph_node::dump): Dump split_part and
16052         indirect_call_target.
16053         * cgraph.h (cgraph_node): Add indirect_call_target flag.
16054         * ipa.c (has_addr_references_p): Cleanup.
16055         (is_indirect_call_target_p): New.
16056         (walk_polymorphic_call_targets): Do not mark virtuals that may be
16057         called indirectly as local.
16058         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
16060 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16062         PR ipa/69630
16063         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
16064         on cxa_pure_virtual.
16066 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16068         PR lto/69589
16069         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
16071 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16073         PR lto/69589
16074         * tree.c (need_assembler_name_p): Only record main variant type names.
16076 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
16078         PR target/70113.
16079         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
16080         Always define to 0 or 1.
16081         (TARGET_FIX_ERR_A53_843419): New macro.
16082         * config/aarch64/aarch64-elf-raw.h
16083         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
16084         * config/aarch64/aarch64-linux.h: Likewise.
16085         * config/aarch64/aarch64.c
16086         (aarch64_override_options_after_change_1): Do not default
16087         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
16088         843419 is on.
16089         (aarch64_attributes): Handle fix-cortex-a53-843419.
16090         (aarch64_can_inline_p): Likewise.
16091         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
16093 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
16094         Jakub Jelinek <jakub@redhat.com>
16096         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
16097         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
16098         DECL_COMMONS if flag_unconstrained_commons is set.
16099         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16100         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
16101         (funconstrained-commons): Document.
16103 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
16105         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
16106         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
16108 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
16110         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
16111         has a proper number of elements.
16113 2016-03-10  Alan Modra  <amodra@gmail.com>
16115         PR rtl-optimization/69195
16116         PR rtl-optimization/47992
16117         * ira.c (recorded_label_ref): Delete.
16118         (update_equiv_regs): Return void.
16119         (indirect_jump_optimize): New function.
16120         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
16121         before regstat_compute_ri.  Don't rebuild_jump_labels here.
16122         Delete update_regstat.
16124 2016-03-10  Richard Biener  <rguenther@suse.de>
16126         PR tree-optimization/70128
16127         * tree-ssa-structalias.c (set_uids_in_ptset): Set
16128         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
16130 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
16132         PR tree-optimization/70152
16133         * tree-sra.c (replace_removed_params_ssa_names): Copy over
16134         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
16136         PR target/70086
16137         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
16138         instead of gen_sse2_loadlpd.
16139         * config/i386/sse.md (*vec_concatv2df): Rename to...
16140         (vec_concatv2df): ... this.
16142         PR tree-optimization/70127
16143         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
16145 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
16147         PR c/68473
16148         PR c++/70105
16149         * diagnostic-show-locus.c (compatible_locations_p): New function.
16150         (layout::layout): Sanitize ranges using compatible_locations_p.
16152 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
16154         PR c/68473
16155         PR c++/70105
16156         * diagnostic-show-locus.c (layout_range::layout_range): Replace
16157         location_range param with three const expanded_locations * and a
16158         bool.
16159         (layout::layout): Replace call to
16160         rich_location::lazily_expand_location with get_expanded_location.
16161         Extract the range and perform location expansion here, passing
16162         the results to the layout_range ctor.
16163         * diagnostic.c (source_range::debug): Delete.
16164         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
16165         of rich_location::get_expanded_location.
16166         * gcc-rich-location.c (get_range_for_expr): Delete.
16167         (gcc_rich_location::add_expr): Reimplement to avoid the
16168         rich_location::add_range overload that took a location_range,
16169         passing a location_t instead.
16171 2016-03-09  Richard Biener  <rguenther@suse.de>
16172         Jakub Jelinek  <jakub@redhat.com>
16174         PR tree-optimization/70138
16175         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
16176         Also skip vect_double_reduction_def.
16178 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
16180         PR target/70049
16181         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
16182         if the operand is "m".
16184 2016-03-09  Nathan Sidwell  <nathan@acm.org>
16186         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
16188 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16190         * config/i386/i386.c (processor_target_table): Fix cost table
16191         intialization order for znver1.
16193 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
16195         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
16196         - becuase -> because.
16197         * ipa-reference.c (ignore_module_statics): Likewise.
16198         * cgraph.c (cgraph_node::get_body): Likewise.
16199         * ipa-inline.c (early_inliner): Likewise.
16200         * ipa-devirt.c (types_same_for_odr): Likewise.
16201         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
16202         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
16204 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16206         * tree-ssa-math-opts.c: Fix typo in comment.
16208 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
16210         PR target/70110
16211         * config/i386/i386.c (scalar_chain::make_vector_copies,
16212         scalar_chain::convert_reg): Call end_sequence in between
16213         get_insns and emit_conversion_insns rather than after both
16214         calls.
16216 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
16218         PR target/70064
16219         * config/i386/i386.h (machine_function): Add
16220         pc_thunk_call_expanded flag.
16221         (ix86_pc_thunk_call_expanded): New define.
16222         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
16223         (*set_got): Rename insn pattern from set_got.
16224         (*set_got_labelled): Rename inst pattern from set_got_labelled.
16225         * config/i386/i386.c (ix86_compute_frame_layout): Use
16226         ix86_pc_thunk_call_expanded to prevent red-zone.
16228 2016-03-07  Martin Jambor  <mjambor@suse.cz>
16230         * hsa.h (hsa_get_ctor_statements): Declare.
16231         (hsa_get_dtor_statements): Likewise.
16232         (hsa_get_kernel_dispatch_type): Likewise.
16233         * hsa.c (hsa_get_ctor_statements): New function.
16234         (hsa_get_dtor_statements): Likewise.
16235         (hsa_get_kernel_dispatch_type): Likewise.
16236         * hsa-brig.c (hsa_cdtor_statements): Removed.
16237         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
16238         hsa_get_dtor_statements.
16239         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
16240         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
16242 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16244         * config/arm/arm-cores.def (cortex-r8): New.
16245         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
16246         * config/arm/arm-tune.md: Likewise.
16247         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
16249 2016-03-07  Martin Sebor  <msebor@redhat.com>
16251         PR rtl-optimization/19705
16252         * doc/invoke.texi (Options That Control Optimization): Clarify
16253         -fno-branch-count-reg.
16255 2016-02-26  Richard Biener  <rguenther@suse.de>
16256             Jeff Law  <law@redhat.com>
16258         PR tree-optimization/69740
16259         * cfghooks.c (remove_edge): Request loop fixups if we delete
16260         an edge that might turn an irreducible loop into a natural
16261         loop.
16262         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
16263         Move after definition of loops_state_clear.
16265 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
16267         PR rtl-optimization/69052
16268         * rtlanal.c (commutative_operand_precedence): Set higher precedence
16269         to CONST_WIDE_INT.
16271 2016-03-07  Tom de Vries  <tom@codesourcery.com>
16273         PR tree-optimization/70116
16274         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
16275         is_tm_ending stmts and ubsan/asan internal functions.
16276         (find_duplicate): Use it.  Don't test is_tm_ending here.
16278 2016-03-07  Richard Biener  <rguenther@suse.de>
16280         PR tree-optimization/70115
16281         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
16282         (propagate_constants_for_unrolling): Use replace_uses_by.
16284 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
16286         PR middle-end/69916
16287         * omp-low.c (struct oacc_loop): Add ifns.
16288         (new_oacc_loop_raw): Initialize it.
16289         (finish_oacc_loop): Clear mask & flags if no ifns.
16290         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
16291         (oacc_loop_xform_loop): Add ifns arg & adjust.
16292         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
16294 2016-03-07  Richard Henderson  <rth@redhat.com>
16296         PR rtl-opt/70061
16297         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
16298         (insert_value_copy_on_edge): Likewise.
16300 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16302         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
16304 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16306         PR target/62281
16307         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
16309 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16311         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
16313 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16315         Fix sseimul type attribute.
16316         * config/i386/znver1.md
16317         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
16318         znver1_sseimul_avx256_load) : Fix the type attribute.
16319         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
16320         pipe usage and latency.
16322 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
16324         PR c++/70084
16325         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
16326         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
16327         to the right type.
16329 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
16331         PR c/69973
16332         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
16334         PR rtl-optimization/69941
16335         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
16336         the reg share its mode.
16338 2016-03-04  Jeff Law  <law@redhat.com>
16340         PR tree-optimization/69196
16341         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16342         If the both SSA_NAMEs are anonymous, then consider them unassociated
16343         and include the PHI in the statement count.
16345 2016-03-05  Tom de Vries  <tom@codesourcery.com>
16347         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
16348         construct in oacc routine.  Check for oacc region in oacc routine.
16350 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
16352         PR target/70062
16353         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
16354         2016-02-22 changes, instead don't recurse if RECUR is already true.
16355         Don't change *dynamic_check if RECUR.  Adjust recursive caller
16356         to pass true to the new argument.
16357         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
16359         PR target/70059
16360         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
16361         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
16362         fixes.
16363         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
16365 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
16367         PR rtl-optimization/57676
16368         * lra-assigns.c (lra_assign): Guard test for maximum iterations
16369         with flag_checking.
16371 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
16373         * tree-vect-patterns.c (search_type_for_mask): Handle
16374         comparison of booleans.
16376 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
16378         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
16379         Fix @xref usage.
16381         PR debug/69947
16382         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
16383         all other ops that have dw_val_class_die_ref operands,
16384         and DW_OP_GNU_entry_value.
16386 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16388         PR rtl-optimization/69904
16389         * config/arm/arm.c (arm_cannot_copy_insn_p):
16390         Return true for load-exclusive instructions.
16392 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
16394         PR target/70021
16395         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
16396         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
16397         the pattern no matter if it is used just by non-pattern, pattern
16398         or mix thereof.
16399         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
16400         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
16401         oprnd1 def_stmt is in pattern, don't look through it.
16403 2016-03-03  Marek Polacek  <polacek@redhat.com>
16405         PR middle-end/70050
16406         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
16408 2016-03-03  Martin Liska  <mliska@suse.cz>
16410         PR tree-optimization/70043
16411         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
16412         previous statement if we see a debug statement.
16414 2016-03-03  Richard Biener  <rguenther@suse.de>
16416         PR tree-optimization/55936
16417         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
16418         parameter and guard unsafe equivalence use.
16419         (vrp_evaluate_conditional_warnv_with_ops): Always use
16420         safe equivalences but not via the quadratic compare_names
16421         helper.
16423 2016-03-03  Michael Collison  <michael.collison@linaro.org>
16425         PR target/70014
16426         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
16427         for operand 1 to s_register_operand. Change predicate for operand
16428         2 to arm_not_immediate_operand.
16430 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
16432         * doc/tm.texi: Regenerated.
16434 2016-03-02  Richard Henderson  <rth@redhat.com>
16436         PR rtl-opt/67145
16437         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
16438         simplification when all args are positive non-fixed registers.
16440 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16442         * target.def (lra_p): Specify that new ports should use LRA.
16444 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
16446         PR libgomp/69555
16447         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
16448         gimplify_type_sizes the type they refer to.
16449         (omp_notice_variable): Handle reference vars to VLAs.
16450         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
16451         reference to VLA decls in the second pass instead of first pass.
16453 2016-03-02  Tom de Vries  <tom@codesourcery.com>
16455         PR tree-optimization/68659
16456         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
16457         new_expr == NULL_TREE.
16458         (get_new_name): Handle ADDR_EXPR.
16460 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
16462         PR rtl-optimization/69052
16463         * loop-invariant.c (canonicalize_address): New function.
16464         (inv_can_prop_to_addr_use): Check validity of address expression
16465         which is canonicalized by above function.
16467 2016-03-02  Alan Modra  <amodra@gmail.com>
16469         PR ipa/69990
16470         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
16471         larger alignment.
16473 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
16475         PR target/70028
16476         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
16477         (*movhi_internal): Put mask moves from and to memory separately
16478         from moves from/to GPRs.
16480 2016-03-02  Richard Biener  <rguenther@suse.de>
16482         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
16483         GENERIC expressions in GIMPLE.
16485 2016-03-02  Richard Biener  <rguenther@suse.de>
16487         * config/i386/i386.c (type_natural_mode): Fix typo.
16489 2016-03-02  Nick Clifton  <nickc@redhat.com>
16491         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
16493 2016-03-02  Richard Biener  <rguenther@suse.de>
16494             Uros Bizjak  <ubizjak@gmail.com>
16496         PR target/67278
16497         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
16499 2016-03-02  Richard Biener  <rguenther@suse.de>
16501         PR middle-end/67278
16502         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
16504 2016-03-02  Marek Polacek  <polacek@redhat.com>
16506         PR c/67854
16507         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
16508         "is promoted to" warning.
16510 2016-03-01  DJ Delorie  <dj@redhat.com>
16512         * config.gcc: Deprecate mep-*.
16514 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
16516         PR middle-end/70025
16517         * lra-constraints.c (regno_val_use_in): New.
16518         (match_reload): Use it instead of regno_use_in.
16520 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
16522         PR rtl-optimization/70007
16523         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
16524         references present in REG_EQUAL notes attached to non-SET patterns.
16526 2016-03-01  Jeff Law  <law@redhat.com>
16528         PR tree-optimization/69196
16529         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16530         Appropriately clamp the number of statements to copy when the
16531         thread path does not traverse a loop backedge.
16533         PR tree-optimization/69196
16534         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16535         Do count some PHIs in the thread path against the insn count.  Decrease
16536         final statement count by one as the control statement in the last
16537         block will get removed.  Remove special cased code for handling PHIs
16538         in the last block.
16540 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
16542         PR target/70027
16543         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
16544         asm dialect alternatives to explicit GOTPCREL calls.
16546 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
16548         PR ada/70017
16549         * ira.c (do_reload): Issue warning for generic stack checking here...
16550         * reload1.c (reload): ...instead of here and streamline it.
16552 2016-03-01  Nick Clifton  <nickc@redhat.com>
16554         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
16556 2016-03-01  Richard Biener  <rguenther@suse.de>
16558         PR tree-optimization/69983
16559         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
16560         types and fall back to operand_equal_p.
16562 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16564         Revert
16565         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16567         * config/s390/constraints.md ("jm8"): New constraint.
16568         * config/s390/predicates.md ("const_int_8bitset_operand"): New
16569         predicate.
16570         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
16571         into ...
16572         ("*setmem_long<setmem_and>"): New pattern.
16573         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
16574         into ...
16575         ("*setmem_long_31z<setmem_and>"): New pattern.
16576         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
16577         New substitution rules with the required attributes.
16580 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16582         Revert
16583         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16585         * gensupport.c (process_substs_on_one_elem): Split loop to
16586         complete mark_operands_used_in_match_dup on all expressions in the
16587         vector first.
16588         (adjust_operands_numbers): Inline into process_substs_on_one_elem
16589         and remove function.
16591 2016-03-01  Richard Biener  <rguenther@suse.de>
16593         PR middle-end/70022
16594         * fold-const.c (fold_indirect_ref_1): Fix range checking for
16595         vector BIT_FIELD_REF extract.
16597 2016-03-01  Richard Biener  <rguenther@suse.de>
16599         PR tree-optimization/69994
16600         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
16602 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
16604         PR tree-optimization/69956
16605         * tree-vect-stmts.c (supportable_widening_operation): Support
16606         multi-step conversion of boolean vectors.
16607         (supportable_narrowing_operation): Likewise.
16609 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16611         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
16612         anymore.
16614 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16616         * config/s390/subst.md (DSI_VI): New mode iterator.
16617         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
16618         * config/s390/vector.md ("vec_set<mode>"): Move expander before
16619         the insn definition.
16620         ("*vec_set<mode>"): Change predicate and add alternative to
16621         support only either register or const_int operands as element
16622         selector.
16623         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
16624         operands.
16625         ("vec_extract<mode>"): New expander.
16626         ("*vec_extract<mode>"): New insn definition supporting reg and
16627         const_int element selectors.
16628         ("*vec_extract<mode>_plus"): New insn definition supporting
16629         reg+const_int element selectors.
16630         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
16631         following expander+insn definition.
16632         ("<vec_shifts_name><mode>3"): New expander.
16633         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
16635 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16637         * config/s390/s390.md ("*tabort_1"): Change predicate to
16638         nonmemory_operand.  Add a second alternative to cover
16639         register as well as const int operands.
16640         ("*tabort_1_plus"): New pattern definition.
16642 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16644         * config/s390/s390.md ("*ashrdi3_cc_31")
16645         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
16646         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
16647         Merge insn definitions into ...
16648         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
16649         New pattern definition.
16650         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
16651         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
16652         ("*ashr<mode>3_and"): Merge insn definitions into ...
16653         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
16654         New pattern definition.
16655         * config/s390/subst.md ("addr_style_op_cc_subst")
16656         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
16657         substitutions patterns plus attributes.
16658         Add ashiftrt to SUBST iterator.
16660 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16662         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
16663         op2 to nonmemory_operand.
16664         ("*<shift>di3_31", "*<shift>di3_31_and"):
16665         Merge into single pattern definition ...
16666         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
16667         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
16668         pattern definition ...
16669         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
16670         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
16671         iterator.
16673 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16675         * config/s390/predicates.md (const_int_6bitset_operand): New
16676         predicate.
16677         * config/s390/s390.md: Include subst.md.
16678         ("rotl<mode>3"): New expander.
16679         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
16680         ...
16681         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
16682         * config/s390/subst.md: New file.
16684 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16686         * config/s390/s390.md ("op_type", "atype", "length" attributes):
16687         Remove RRR type.  It doesn't really exist.
16688         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
16689         attributes.
16690         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
16691         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
16692         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
16693         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
16694         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
16695         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
16696         `enabled' attribute.
16698 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16700         * gensupport.c (process_substs_on_one_elem): Split loop to
16701         complete mark_operands_used_in_match_dup on all expressions in the
16702         vector first.
16703         (adjust_operands_numbers): Inline into process_substs_on_one_elem
16704         and remove function.
16706 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16708         PR target/69706
16709         * config/sparc/sparc.c (NWORDS_UP): Rename to...
16710         (CEIL_NWORDS): ...this.  Use CEIL macro.
16711         (compute_fp_layout): Adjust to above renaming.
16712         (function_arg_union_value): Likewise.
16713         (sparc_arg_partial_bytes): Likewise.
16714         (sparc_function_arg_advance): Likewise.
16716 2016-02-29  Jeff Law  <law@redhat.com>
16718         PR tree-optimization/70005
16719         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
16720         where an object with a boolean range is compared against a value
16721         outside [0..1].
16723         PR tree-optimization/69999
16724         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
16725         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
16726         loop cleanups.
16728 2016-02-29  Richard Biener  <rguenther@suse.de>
16730         PR tree-optimization/69994
16731         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
16732         (get_unary_op): Look through nop conversions.
16733         (ops_equal_values_p): New function, look for equality diregarding
16734         nop conversions.
16735         (eliminate_plus_minus_pair): Use ops_equal_values_p
16736         (repropagate_negates): Do not use get_unary_op here.
16738 2016-02-29  Martin Liska  <mliska@suse.cz>
16740         * system.h: Poison ENABLE_CHECKING macro.
16742 2016-02-29  Martin Liska  <mliska@suse.cz>
16744         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
16745         is presented in dump flags.
16746         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
16747         (hsa_regalloc): Likewise.
16749 2016-02-19  Richard Biener  <rguenther@suse.de>
16751         PR tree-optimization/69980
16752         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
16753         permutation of those we need to keep.
16755 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16757         PR target/69706
16758         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
16759         (NWORDS_UP): ...this
16760         (init_cumulative_args): Minor tweaks.
16761         (sparc_promote_function_mode): Likewise.
16762         (scan_record_type): Delete.
16763         (traverse_record_type): New function template.
16764         (classify_data_t): New structure type.
16765         (classify_registers): New inline function.
16766         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
16767         exhausted.  Instantiate traverse_record_type on classify_registers and
16768         deal with the case of a structure passed in slot #15 with no FP field
16769         in the first word.
16770         (assign_data_t): New structure type.
16771         (compute_int_layout): New static function.
16772         (compute_fp_layout): Likewise.
16773         (count_registers): New inline function.
16774         (assign_int_registers): New static function.
16775         (assign_fp_registers): Likewise.
16776         (assign_registers): New inline function.
16777         (function_arg_record_value_1): Delete.
16778         (function_arg_record_value_2): Likewise.
16779         (function_arg_record_value_3): Likewise.
16780         (function_arg_record_value): Adjust to above changes.  Instantiate
16781         traverse_record_type on count_registers to first count the number of
16782         registers to be used and then on assign_registers to assign them.
16783         (function_arg_union_value): Adjust to above renaming.
16784         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
16785         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
16786         case of a structure passed in slot #15
16787         (sparc_function_arg_advance): Likewise.
16788         (function_arg_padding): Minor tweak.
16790 2016-02-29  Richard Biener  <rguenther@suse.de>
16792         PR tree-optimization/69720
16793         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
16794         the adjustment_def path for possibly vectorized defs.
16795         (vect_create_epilog_for_reduction): Handle vectorized initial
16796         defs properly.
16798 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
16800         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
16802 2016-02-27  Jeff Law  <law@redhat.com>
16804         Revert
16805         2016-02-26  Richard Biener  <rguenther@suse.de>
16806                     Jeff Law  <law@redhat.com>
16808         PR tree-optimization/69740
16809         * cfghooks.c (remove_edge): Request loop fixups if we delete
16810         an edge that might turn an irreducible loop into a natural
16811         loop.
16813 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
16815         PR rtl-optimization/69896
16816         * tree-vect-generic.c (get_compute_type): Avoid single element
16817         vector types.
16819 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
16821         Rename the AArch64 tuning option and related functions to enable the
16822         Newton series for the reciprocal square root to reflect its
16823         approximative characteristic.
16825         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
16826         function to "aarch64_emit_approx_rsqrt".
16827         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
16828         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
16829         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
16830         (xgene1_tunings): Likewise.
16831         (use_rsqrt_p): Likewise.
16832         (aarch64_emit_swrsqrt): Use new function name.
16833         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
16834         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
16835         text explaining this option.
16836         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
16838 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
16840         PR target/69969
16841         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16842         complain about -mallow-movmisalign without -mvsx if
16843         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
16845 2016-02-26  Joel Sherrill  <joel@rtems.org>
16847         * config.gcc: Add x86_64-*-rtems*.
16848         * config/i386/rtems-64.h: New file.
16850 2016-02-26  Joel Sherrill  <joel@rtems.org>
16852         * config.gcc: Add aarch64-*-rtems*.
16853         * config/aarch64/rtems.h: New file.
16855 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
16857         PR target/69946
16858         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
16859         shift amount using %h.  Add comment.
16861 2016-02-26  Richard Biener  <rguenther@suse.de>
16862             Jeff Law  <law@redhat.com>
16864         PR tree-optimization/69740
16865         * cfghooks.c (remove_edge): Request loop fixups if we delete
16866         an edge that might turn an irreducible loop into a natural
16867         loop.
16869 2016-02-26  Martin Jambor  <mjambor@suse.cz>
16871         PR middle-end/69920
16872         * tree-sra.c (sra_modify_assign): Do not remove loads of
16873         uninitialized aggregates to SSA_NAMEs.
16875 2016-02-26  Richard Henderson  <rth@redhat.com>
16877         PR target/69709
16878         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
16879         pseudo in case the target rtx matches the source of the left
16880         shift.
16882 2016-02-26  Martin Jambor  <mjambor@suse.cz>
16884         PR hsa/69568
16885         * hsa.h (hsa_type_packed_p): Declare.
16886         * hsa.c (hsa_type_packed_p): New function.
16887         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
16888         loads.
16889         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
16890         * hsa-brig.c (emit_basic_insn): Likewise.
16892 2016-02-26  Martin Jambor  <mjambor@suse.cz>
16894         pr hsa/69674
16895         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
16896         pointers.
16897         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
16899 2016-02-26  Martin Jambor  <mjambor@suse.cz>
16901         * hsa.h (is_a_helper): New overload for hsa_op_immed for
16902         hsa_op_with_type operands.
16903         (hsa_unsigned_type_for_type): Declare.
16904         * hsa.c (hsa_unsigned_type_for_type): New function.
16905         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
16906         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
16907         the finalizer.  Do not emit extra move.
16909 2016-02-26  Martin Jambor  <mjambor@suse.cz>
16911         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
16912         atomic operations in private segment.
16914 2016-02-26  Martin Jambor  <mjambor@suse.cz>
16916         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
16917         statements to wi->info.  Also disallow omp simd constructs.
16918         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
16919         for not gridifying.  Dump special string for omp_for.
16921 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16923         PR target/69245
16924         * config/aarch64/aarch64.c (aarch64_set_current_function):
16925         Save/restore target globals when switching to
16926         target_option_default_node.
16928 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16930         PR target/69613
16931         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
16932         Return 0 if !SHIFT_COUNT_TRUNCATED.
16934 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
16935             Eric Botcazou  <ebotcazou@adacore.com>
16937         PR rtl-optimization/69891
16938         * dse.c (scan_insn): If we can't figure out memset arguments
16939         or they are non-constant, call clear_rhs_from_active_local_stores.
16941 2016-02-26  Martin Liska  <mliska@suse.cz>
16943         * doc/extend.texi: Mention clog10, clog10f an clog10l
16944         in Builtins section.
16946 2016-02-26  Martin Liska  <mliska@suse.cz>
16948         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
16949         CHECKING_P.
16950         (resolve_args_picking_1): Likewise.
16951         * dwarf2out.h (struct GTY): Likewise.
16953 2016-02-26  Martin Liska  <mliska@suse.cz>
16955         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
16956         with flag_checking.
16957         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
16959 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
16960             Martin Liska  <mliska@suse.cz>
16962         * doc/install.texi: Mention --enable-valgrind-annotations.
16964 2016-02-26  Richard Biener  <rguenther@suse.de>
16966         PR tree-optimization/69551
16967         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
16968         looking through aliases adjust DECL_PT_UID to refer to the
16969         ultimate alias target.
16971 2016-02-25  Martin Liska  <mliska@suse.cz>
16973         PR middle-end/69919
16974         * alloc-pool.c (after_memory_report): New variable.
16975         * alloc-pool.h (base_pool_allocator ::release): Do not use
16976         the infrastructure if after_memory_report.
16977         * toplev.c (toplev::main): Mark after memory report.
16979 2016-02-25  Richard Biener  <rguenther@suse.de>
16981         PR tree-optimization/48795
16982         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
16984 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
16986         PR driver/68463
16987         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
16988         offloading is enabled and -fopenacc or -fopenmp is specified.
16989         (CRTOFFLOADEND): Likewise.
16990         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
16991         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
16992         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
16993         (offload_objects_file_name): New static var.
16994         (tool_cleanup): Remove offload_objects_file_name file.
16995         (find_offloadbeginend): Replace with ...
16996         (find_crtoffloadtable): ... this.
16997         (run_gcc): Remove offload_argc and offload_argv.
16998         Get offload_objects_file_name from -foffload-objects=... option.
16999         Read names of object files with offload from this file, pass them to
17000         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
17001         don't pass offloadbegin and offloadend to the linker.  Don't pass
17002         offload non-LTO files to the linker, because now they're not claimed.
17004 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
17006         PR ipa/69630
17007         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
17008         on builtin_unreachable.
17010 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
17012         PR rtl-optimization/69896
17013         * regcprop.c: Include cfgrtl.h.
17014         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
17015         than remembered mode, either delete it (if noop_move_p), or
17016         treat like copy_p but not noop_p instruction.
17018 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17020         PR debug/69705
17021         * dwarf2out.c (gen_variable_die): Work around buggy LTO
17022         - allow NULL decl for Fortran DW_TAG_common_block variables.
17024 2016-02-24  Jason Merrill  <jason@redhat.com>
17026         * common.opt (flifetime-dse): Add -flifetime-dse=1.
17028 2016-02-24  Richard Biener  <rguenther@suse.de>
17029             Jakub Jelinek  <jakub@redhat.com>
17031         PR middle-end/69760
17032         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
17033         conditionally executed ops to well-defined overflow behavior.
17035 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17037         PR middle-end/69915
17038         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
17039         elements.
17041 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17043         PR rtl-optimization/69886
17044         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
17045         argument.  Use it when checking validity of set instructions.
17046         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
17047         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
17048         callsite.
17049         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
17050         * store-motion.c (find_moveable_store): Update
17051         can_assign_to_reg_without_clobbers_p callsite.
17053 2016-02-24  Richard Biener  <rguenther@suse.de>
17055         PR middle-end/68963
17056         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
17057         bogus check.
17058         (record_nonwrapping_iv): Do not fall back to the low/high bound
17059         for non-constant IV bases if the stmt is not always executed.
17061 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17063         * config/arm/arm-cores.def (cortex-a32): New entry.
17064         * config/arm/arm-tables.opt: Regenerate.
17065         * config/arm/arm-tune.md: Regenerate.
17066         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
17067         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
17068         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
17069         for -mcpu and -mtune.
17071 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17073         PR target/69875
17074         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
17075         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
17076         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
17077         (atomic_loaddi_1): Delete.
17078         (atomic_loaddi): Rewrite expander using the above changes.
17080 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17082         PR c/69918
17083         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
17084         2 to 3.
17086 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17087             Richard Biener  <rguenth@suse.de>
17089         PR middle-end/69909
17090         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
17091         set_mem_attributes if tem is SSA_NAME which got expanded
17092         as a MEM.
17094 2016-02-24  Richard Biener  <rguenther@suse.de>
17096         PR tree-optimization/69907
17097         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
17098         end of permutations for BB vectorization.
17100 2016-02-24  Christian Bruel  <christian.bruel@st.com>
17102         * config/arm/arm-c.c (arm_option_override): Initialize
17103         target_option_current_node.
17104         * config/arm/arm.c (arm_pragma_target_parse): Replace
17105         build_target_option_node call by target_option_current_node.
17106         Set target_option_current_node.
17107         Fix comments.
17109 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
17111         PR target/69810
17112         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
17113         define_insn_and_split to define_insn.
17114         (zero_extendqi<mode>2_dot2): Same.
17115         (extendqi<mode>2_dot): Same.
17116         (extendqi<mode>2_dot2): Same.
17118 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
17120         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
17121         and add bypass for AES{D,E} and AESMC pairs.
17122         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
17123         and AESMC pairs.
17125 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
17127         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
17128         series for reciprocal square root in Exynos M1.
17130 2016-02-23  Martin Sebor  <msebor@redhat.com>
17132         PR c/69759
17133         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
17134         __builtin_alloca_with_align.
17136 2016-02-23  Richard Henderson  <rth@redhat.com>
17138         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
17139         (ix86_register_pragmas): Remove __seg_tls.
17140         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
17141         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
17142         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
17143         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
17144         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
17145         * doc/extend.texi (__seg_tls): Remove item.
17147 2016-02-23  Richard Biener  <rguenther@suse.de>
17149         * alloc-pool.h (struct allocation_object): Make id member
17150         conditional on CHECKING_P again.
17151         (get_instance): Adjust.
17152         (base_pool_allocator): Likewise.
17154 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
17156         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
17157         (parallelize_loops): In OpenACC kernels mode, set n_threads to
17158         zero.
17159         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
17160         flag_openacc.
17161         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
17163 2016-02-23  Richard Biener  <rguenther@suse.de>
17165         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
17166         * bitmap.h (struct bitmap_usage): Likewise.
17167         (bitmap_move): Declare.
17168         * bitmap.c (register_overhead): Take size_t argument.
17169         (bitmap_move): New function.
17170         * df-problems.c (df_rd_transfer_function): Use bitmap_move
17171         to properly account overhead.
17172         * tree.c (free_node): Use tree_size.
17174 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
17176         PR c++/69902
17177         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
17178         when inverting comparison.
17180         PR c/69900
17181         * common.opt (Wunreachable-code): Add Warning flag.
17183 2016-02-23  Mark Wielaard  <mjw@redhat.com>
17184             Jakub Jelinek  <jakub@redhat.com>
17186         PR c/69911
17187         * cgraphunit.c (check_global_declaration): Check main_input_filename
17188         and DECL_SOURCE_FILE are not NULL.
17190 2016-02-23  Martin Jambor  <mjambor@suse.cz>
17192         PR tree-optimization/69666
17193         * tree-sra.c (sra_modify_assign): Do not attempt to create
17194         default_def replacements for unscalarizable regions.
17196 2016-02-20  Mark Wielaard  <mjw@redhat.com>
17198         PR c/28901
17199         * cgraphunit.c (check_global_declaration): Check level of
17200         warn_unused_const_variable and main_input_filename.
17201         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
17202         (-Wunused-variable): For C implies -Wunused-const-variable=1.
17203         (-Wunused-const-variable): Explain levels 1 and 2.
17205 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
17207         PR target/69888
17208         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
17209         identical arguments.  Formatting and spelling fixes.
17211         PR target/69885
17212         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
17213         be specified.
17215         PR target/69894
17216         PR target/69895
17217         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
17218         and m68k-devices.def.
17219         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
17220         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
17222 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
17224         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
17225         and HImode registers.
17227 2016-02-22  Richard Biener  <rguenther@suse.de>
17229         PR tree-optimization/69882
17230         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
17231         preserve permutations present because of gaps.
17232         (vect_supported_load_permutation_p): Always continue checking
17233         permutations after vect_attempt_slp_rearrange_stmts.
17235 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
17237         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
17238         min_profitable_estimate, rather than min_profitable_iters.
17240 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
17242         PR target/69885
17243         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
17244         SImode for last match_operand.
17246 2016-02-22  Martin Liska  <mliska@suse.cz>
17248         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
17249         return bitsize - 1 as the return value.
17251 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
17253         PR target/69806
17254         PR target/54089
17255         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
17256         Handle negative shift counts.
17257         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
17258         force_reg on the shift constant.
17259         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
17260         (lshrsi3_d): Handle negative shift counts.
17262 2016-02-22  Richard Biener  <rguenther@suse.de>
17263             Tom de Vries  <tom@codesourcery.com>
17265         * graph.c: Include dumpfile.h.
17266         (print_graph_cfg): Split into three overloads.
17267         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
17269 2016-02-22  Tom de Vries  <tom@codesourcery.com>
17271         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
17272         dump-fn.
17274 2016-02-22  Richard Biener  <rguenther@suse.de>
17276         PR ipa/37448
17277         * ipa-inline-transform.c (inline_call): When not updating
17278         overall summaries adjust self size by the growth estimate.
17279         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
17280         hash-set, do not update overall summaries here.  Renamed from ...
17281         (inline_to_all_callers): ... this which is now wrapping the
17282         above and performing delayed overall summary update.
17283         (early_inline_small_functions): Delay updating of the overall
17284         summary.
17286 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17288         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
17289         variable.
17291 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
17293         PR driver/69805
17294         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
17295         :%* in %:gt() argument.
17296         (greater_than_spec_func): Adjust for expecting only numbers,
17297         if there are more than two numbers, compare the last two.
17299 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
17301         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
17302         -Wnarrowing with -std.
17304 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
17306         PR c++/69851
17307         * expr.c (store_field): Don't use bit-field path if exp is
17308         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
17309         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
17310         and the assignment can be performed by bitwise copy.  Formatting
17311         fix.
17313         PR middle-end/69838
17314         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
17315         call copy_reg_eh_region_note_forward on before and/or after sequences
17316         and remove note from insn if it no longer can throw.
17318         PR target/69820
17319         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
17320         if TARGET_AVX512BW.
17322 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17324         * config/s390/vector.md: Add missing commutative operand markers
17325         to the patterns which qualify for one.
17326         * config/s390/vx-builtins.md: Likewise.
17328 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17330         * config/s390/vector.md (VI, VI_QHS): Add single element vector
17331         types to mode iterators.
17332         (vec_double): ... and mode attribute.
17333         * config/s390/vx-builtins.md (non_vec_int): Likewise.
17335 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17337         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
17338         Change the predicate of op2 from nonimmediate to general and let
17339         reload fix it if necessary.
17341 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17343         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
17345 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17347         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
17348         mode.
17350 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17352         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
17353         * config/s390/s390.c (s390_expand_vec_movstr): New function.
17354         * config/s390/s390.md ("movstr<P:mode>"): Call
17355         s390_expand_vec_movstr.
17357 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17359         * config/s390/s390.md: Add missing output modifier for operand 1
17360         to print it as address properly.
17362 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17364         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
17365         * config/s390/2964.md: New file.
17366         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
17367         of insn grouping attributes depending on the CPU level.
17368         (s390_get_unit_mask): New function.
17369         (s390_sched_score): Remove the OOO from the scheduling macros.
17370         Add loop to calculate a score for the instruction mix.
17371         (s390_sched_reorder): Likewise plus improve debug output.
17372         (s390_sched_variable_issue): Rename macros as above.  Calculate
17373         the unit distances after actually scheduling an insn.  Improve
17374         debug output.
17375         (s390_sched_init): Clear last_scheduled_unit_distance array.
17376         * config/s390/s390.md: Include 2964.md.
17378 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
17380         PR target/69671
17381         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
17382         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
17383         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
17384         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
17385         *avx512f_<code>v8div16qi2_mask_1): New insns.
17387 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
17389         PR target/68404
17390         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
17391         2016-02-09 change.
17393         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
17394         earlyclobber from target.  Use wF constraint for fused memory
17395         address.
17396         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
17398 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
17399             Martin Liska  <mliska@suse.cz>
17401         PR sanitizer/69863
17402         * cfgexpand.c (asan_sanitize_stack_p): New function.
17403         (partition_stack_vars): Use the function.
17404         (expand_stack_vars): Likewise.
17405         (defer_stack_allocation): Likewise.
17406         (expand_used_vars): Likewise.
17408 2016-02-18  Richard Biener  <rguenther@suse.de>
17410         PR middle-end/69553
17411         * fold-const.c (operand_equal_p): Properly compare offsets for
17412         IMAGPART_EXPR and ARRAY_REF.
17414 2016-02-18  Nick Clifton  <nickc@redhat.com>
17416         PR target/62254
17417         PR target/69610
17418         * config/arm/arm.c (arm_option_override_internal): Disable
17419         interworking if the target does not support thumb instructions.
17420         (arm_reload_in_hi): Handle the case where a register to register
17421         move needs reloading because there is no simple pattern to handle
17422         it.
17423         (arm_reload_out_hi): Likewise.
17425 2016-02-18  Richard Biener  <rguenther@suse.de>
17427         PR middle-end/69854
17428         * match.pd: Don't use fold_binary or fold_unary for folding
17429         constants.
17431 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
17433         PR c++/69850
17434         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
17435         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
17436         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
17437         warn on gimple_no_warning_p statements.
17439 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
17441         * doc/extend.texi (C++ Attributes): Correct description of
17442         warn_unused type attribute.
17444 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17446         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
17447         correct instruction.
17449 2016-02-17  Richard Biener  <rguenther@suse.de>
17451         PR rtl-optimization/69609
17452         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
17453         (find_traces_1_round): When ending a trace update cached priority
17454         of successors.
17455         (bb_to_key): Use cached priority when available.
17456         (copy_bb): Initialize cached priority.
17457         (reorder_basic_blocks_software_trace_cache): Likewise.
17459 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17461         PR target/69161
17462         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
17463         New predicate.
17464         (aarch64_comparison_operator): Break overly long line into two.
17465         (aarch64_comparison_operation): Likewise.
17466         * config/aarch64/aarch64.md (cstorecc4): Use
17467         aarch64_comparison_operator_mode instead of
17468         aarch64_comparison_operator.
17469         (cstore<mode>4): Likewise.
17470         (aarch64_cstore<mode>): Likewise.
17471         (*cstoresi_insn_uxtw): Likewise.
17472         (cstore<mode>_neg): Likewise.
17473         (*cstoresi_neg_uxtw): Likewise.
17475 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17477         PR target/69161
17478         * config/arm/predicates.md (arm_comparison_operator_mode):
17479         New predicate.
17480         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
17481         instead of arm_comparison_operator.
17482         (*mov_negscc): Likewise.
17483         (*mov_notscc): Likewise.
17484         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
17485         (*thumb2_mov_negscc): Likewise.
17486         (*thumb2_mov_negscc_strict_it): Likewise.
17487         (*thumb2_mov_notscc): Likewise.
17488         (*thumb2_mov_notscc_strict_it): Likewise.
17490 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
17492         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
17493         Add missing return.
17495 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
17497         * config/visium/visium.c (machine_libfunc_index): New enum.
17498         (machine_libfuncs): New structure.
17499         (visium_libfuncs): New static variable.
17500         (TARGET_INIT_LIBFUNCS): Define to...
17501         (visium_init_libfuncs): ...this.  New function.
17502         (expand_block_move_4): Use the appropriate libfunc.
17503         (expand_block_move_2): Likewise.
17504         (expand_block_move_1): Likewise.
17505         (expand_block_set_4): Likewise.
17506         (expand_block_set_2): Likewise.
17507         (expand_block_set_1): Likewise.
17508         (visium_trampoline_init): Likewise.
17510 2016-02-17  Nick Clifton  <nickc@redhat.com>
17512         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
17513         TI's devices.csv file as of March 2016.
17515 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17517         PR Target/48344
17518         * opts-global.c (handle_common_deferred_options): Introduce and
17519         initialize two global variables to remember command-line options
17520         specifying a stack-limiting register.
17521         * opts.h: Add extern declarations of the two new global variables.
17522         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
17523         variable based on the values of the two new global variables.
17525 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17527         PR c/69835
17528         * common.opt (Wnonnull-compare): New warning.
17529         * doc/invoke.texi (-Wnonnull): Remove text about comparison
17530         of arguments against NULL.
17531         (-Wnonnull-compare): Document.
17532         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
17533         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
17534         * passes.def (pass_warn_nonnull_compare): Add.
17535         * gimple-ssa-nonnull-compare.c: New file.
17537 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17539         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
17540         AARCH64_EXTRA_TUNE_RECIP_SQRT.
17542 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17544         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
17545         reciprocal sqrt for -mlow-precision-recip-sqrt.
17547 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17548             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17550         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
17551         always use lane loads to construct non-constant vectors.
17553 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17555         * config/aarch64/aarch64.md
17556         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
17557         constraints for operand 3.
17558         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
17560 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17561             Richard Biener  <rguenther@suse.de>
17563         PR tree-optimization/69820
17564         * tree-vect-patterns.c (type_conversion_p): Return false if
17565         *orig_type is unsigned single precision or boolean.
17566         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
17567         Formatting fix.
17569 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17571         PR rtl-optimization/69764
17572         PR rtl-optimization/69771
17573         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
17574         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
17576 2016-02-16  Richard Biener  <rguenther@suse.de>
17578         PR tree-optimization/69776
17579         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
17580         sets from caller.
17581         (indirect_refs_may_alias_p): Likewise.
17582         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
17583         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
17584         according to tbaa_p.
17585         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
17586         (optimize_stmt): For redundant store discovery do not allow tbaa.
17588 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
17590         PR tree-optimization/69714
17591         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
17592         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
17594 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
17596         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
17597         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
17598         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
17599         * config/arc/arc.c (arc_init): Check FPU options.
17600         (get_arc_condition_code): Handle new CC_FPU* modes.
17601         (arc_select_cc_mode): Likewise.
17602         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
17603         register pair only. Allow access for ARCv2 accumulator.
17604         (gen_compare_reg): Whenever we have FPU support use FPU compare
17605         instructions.
17606         (arc_reorg): Don't generate brcc insns when FPU compare
17607         instructions are involved.
17608         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
17609         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
17610         floating point emulation.
17611         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
17612         (REVERSE_CONDITION): Add new CC_FPU* modes.
17613         (TARGET_FP_SP_BASE): Define.
17614         (TARGET_FP_DP_BASE): Likewise.
17615         (TARGET_FP_SP_FUSED): Likewise.
17616         (TARGET_FP_DP_FUSED): Likewise.
17617         (TARGET_FP_SP_CONV): Likewise.
17618         (TARGET_FP_DP_CONV): Likewise.
17619         (TARGET_FP_SP_SQRT): Likewise.
17620         (TARGET_FP_DP_SQRT): Likewise.
17621         (TARGET_FP_DP_AX): Likewise.
17622         * config/arc/arc.md (ARCV2_ACC): New constant.
17623         (type): New fpu type attribute.
17624         (SDF): Conditional iterator.
17625         (cstore<mode>, cbranch<mode>): Change expand condition.
17626         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
17627         handles FPU/FPX cases as well.
17628         * config/arc/arc.opt (mfpu): New option.
17629         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
17630         Renamed.
17631         (adddf3, muldf3, subdf3): Removed.
17632         * config/arc/predicates.md (proper_comparison_operator): Recognize
17633         CC_FPU* modes.
17634         * config/arc/fpu.md: New file.
17635         * doc/invoke.texi (ARC Options): Document mfpu option.
17637 2016-02-16  Richard Biener  <rguenther@suse.de>
17639         PR rtl-optimization/69291
17640         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
17641         noce_operand_ok check.
17643 2016-02-16  Tom de Vries  <tom@codesourcery.com>
17645         PR lto/67709
17646         * omp-low.c (simd_clone_create): Remove call to
17647         symtab->call_cgraph_insertion_hooks.
17649 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
17651         PR tree-optimization/69802
17652         * tree-ssa-reassoc.c (update_range_test): If op is
17653         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
17654         op == 1 test of precision 1 integral op, otherwise handle
17655         that case as op itself.  Fix up formatting.
17656         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
17657         up formatting.
17659 2016-02-16  Richard Biener  <rguenther@suse.de>
17661         PR tree-optimization/69586
17662         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
17663         types for conversion sources.
17665 2016-02-16  Richard Biener  <rguenther@suse.de>
17667         PR middle-end/69801
17668         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
17669         mask OEP_ADDRESS_OF.
17671 2016-02-16  Alan Modra  <amodra@gmail.com>
17673         PR target/68973
17674         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
17675         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
17676         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
17677         (p8_mtvsrwz): New.
17678         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
17679         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
17680         (p8_fmrgow_<mode>): Likewise.
17681         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
17682         changes.
17683         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
17684         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
17685         to use movdi_internal64.  Remove op0_di.
17686         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
17688 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
17690         Add support for the FCCMP insn types
17692         * config/aarch64/aarch64.md (fccmp): Change insn type.
17693         (fccmpe): Likewise.
17694         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
17695         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
17696         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
17697         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
17698         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
17699         * config/arm/types.md (fccmps): Add new insn type.
17700         (fccmpd): Likewise.
17702 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17704         * alias.c (get_alias_set): Fix a typo in comment.
17706 2016-02-15  Richard Biener  <rguenther@suse.de>
17708         PR tree-optimization/69595
17709         * match.pd: Complete range test simplification to true.
17711 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
17713         PR rtl-optimization/69648
17714         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
17715         pic_offset_table_rtx.
17717         PR rtl-optimization/69752
17718         * ira.c (update_equiv_regs): When looking for more than a single SET,
17719         also take other side effects into account.
17721 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
17723         * config/s390/s390.c (s390_function_profiler): Add a new sequence
17724         for z900+ CPUs in 31-bit mode.
17726 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
17728         * common/config/s390/s390-common.c (s390_supports_split_stack):
17729         New function.
17730         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
17731         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
17732         * config/s390/s390.c (struct machine_function): New field
17733         split_stack_varargs_pointer.
17734         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
17735         in s390_emit_prologue.
17736         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
17737         vararg pointer.
17738         (morestack_ref): New global.
17739         (SPLIT_STACK_AVAILABLE): New macro.
17740         (s390_expand_split_stack_prologue): New function.
17741         (s390_live_on_entry): New function.
17742         (s390_va_start): Use split-stack vararg pointer if appropriate.
17743         (s390_asm_file_end): Emit the split-stack note sections.
17744         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
17745         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
17746         (UNSPECV_SPLIT_STACK_CALL): New unspec.
17747         (UNSPECV_SPLIT_STACK_DATA): New unspec.
17748         (split_stack_prologue): New expand.
17749         (split_stack_space_check): New expand.
17750         (split_stack_data): New insn.
17751         (split_stack_call): New expand.
17752         (split_stack_call_*): New insn.
17753         (split_stack_cond_call): New expand.
17754         (split_stack_cond_call_*): New insn.
17756 2016-02-15  Richard Biener  <rguenther@suse.de>
17758         PR tree-optimization/69783
17759         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17760         Add trivially correct cases.
17762 2016-02-15  Tom de Vries  <tom@codesourcery.com>
17764         PR lto/69655
17765         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
17766         do_force_output.
17767         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
17769 2016-02-15  Richard Biener  <rguenther@suse.de>
17771         PR tree-optimization/69776
17772         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17773         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
17774         indicate whether we can use TBAA to disambiguate against stores.
17775         Use alias-set zero if not.
17776         (visit_reference_op_store): Do not use TBAA when looking up
17777         redundant stores.
17778         * tree-ssa-pre.c (compute_avail): Use TBAA here.
17779         (eliminate_dom_walker::before_dom_children): But not when looking
17780         up redundant stores.
17782 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
17784         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
17786 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17788         *  config/i386/znver1.md
17789         (znver1_pop, znver1_pop_mem,
17790         znver1_load_imov_double_store,
17791         znver1_load_imov_direct_store,
17792         znver1_load_imov_direct_load,
17793         znver1_load_imov_double_load): Add new.
17794         (znver1_insn, znver1_insn_load): Add icmov type.
17795         (znver1_sseavx_fma,
17796         znver1_sseavx_fma_load,
17797         znver1_avx256_fma,
17798         znver1_avx256_fma_load): Fix pipe usage.
17800 2016-02-14  Alan Modra  <amodra@gmail.com>
17802         PR target/68973
17803         * reload.c (find_reloads_address_1): For pre/post-inc/dec
17804         with an invalid hard reg, reload just the reg not the entire
17805         pre/post-inc/dec address expression.
17807 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
17809         PR target/67260
17810         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
17811         fixed R1_REG scratch reg.
17812         (sibcall_value_pcrel_fdpic): Likewise.
17814 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
17816         PR target/67636
17817         PR target/64345
17818         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
17820 2016-02-12  Walter Lee  <walt@tilera.com>
17822         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
17823         * config/tilegx/t-tilegx: Likewise.
17825 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
17827         PR other/69554
17828         * diagnostic-show-locus.c (struct line_span): New struct.
17829         (layout::get_first_line): Delete.
17830         (layout::get_last_line): Delete.
17831         (layout::get_num_line_spans): New member function.
17832         (layout::get_line_span): Likewise.
17833         (layout::print_heading_for_line_span_index_p): Likewise.
17834         (layout::get_expanded_location): Likewise.
17835         (layout::calculate_line_spans): Likewise.
17836         (layout::m_first_line): Delete.
17837         (layout::m_last_line): Delete.
17838         (layout::m_line_spans): New field.
17839         (layout::layout): Update comment.  Replace m_first_line and
17840         m_last_line with m_line_spans, replacing their initialization
17841         with a call to calculate_line_spans.
17842         (diagnostic_show_locus): When printing source lines and
17843         annotations, rather than looping over a single span
17844         of lines, instead loop over each line_span within
17845         the layout, with an inner loop over the lines within them.
17846         Call the context's start_span callback when changing line spans.
17847         * diagnostic.c (diagnostic_initialize): Initialize start_span.
17848         (diagnostic_build_prefix): Break out the building of the location
17849         part of the string into...
17850         (diagnostic_get_location_text): ...this new function, rewriting
17851         it from nested ternary expressions to a sequence of "if"
17852         statements.
17853         (default_diagnostic_start_span_fn): New function.
17854         * diagnostic.h (diagnostic_start_span_fn): New typedef.
17855         (diagnostic_context::start_span): New field.
17856         (default_diagnostic_start_span_fn): New prototype.
17858 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
17860         PR driver/69779
17861         * gcc.c (driver::finalize): Fix cleanup of "specs".
17863 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
17865         PR driver/69265
17866         PR driver/69453
17867         * gcc.c (driver::driver): Initialize m_option_suggestions.
17868         (driver::~driver): Clean up m_option_suggestions.
17869         (suggest_option): Convert to...
17870         (driver::suggest_option): ...this, and split out into
17871         driver::build_option_suggestions and find_closest_string.
17872         (driver::build_option_suggestions): New function, from
17873         first half of suggest_option.  Special-case
17874         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
17875         the sanitizer_opts array.  For options of enum types, add the
17876         various enum values to the candidate strings.
17877         (driver::handle_unrecognized_options): Remove "const".
17878         * gcc.h (driver::handle_unrecognized_options): Likewise.
17879         (driver::build_option_suggestions): New decl.
17880         (driver::suggest_option): New decl.
17881         (driver::m_option_suggestions): New field.
17882         * opts-common.c (add_misspelling_candidates): New function.
17883         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
17884         and make non-static.
17885         * opts.h (sanitizer_opts): New array decl.
17886         (add_misspelling_candidates): New function decl.
17887         * spellcheck.c (find_closest_string): New function.
17888         * spellcheck.h (find_closest_string): New function decl.
17890 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
17892         PR rtl-optimization/69764
17893         PR rtl-optimization/69771
17894         * optabs.c (expand_binop_directly): For shift_optab_p, force
17895         convert_modes with VOIDmode if xop1 has VOIDmode.
17897 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
17899         PR target/69729
17900         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
17901         to correctly determine instrumentation thunks.
17903 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
17905         PR ipa/69241
17906         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
17907         type by reference, force lhs on the call.
17909         PR ipa/68672
17910         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
17911         Compute retval and retbnd early in all cases if split_part_return_p
17912         and return_bb is not EXIT.  Remove all clobber stmts and reset
17913         all debug stmts that refer to SSA_NAMEs defined in split part,
17914         except if it is retval, in that case replace the old retval with the
17915         lhs of the call to the split part.
17917 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17919         revert:
17920         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17922         PR middle-end/66726
17923         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
17924         whose result is used in PHI.
17925         (maybe_optimize_range_tests): Likewise.
17926         (final_range_test_p): Likweise.
17928 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17930         PR middle-end/66726
17931         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
17932         whose result is used in PHI.
17933         (maybe_optimize_range_tests): Likewise.
17934         (final_range_test_p): Likweise.
17936 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
17938         * cgraph.c: Spelling fixes - behaviour -> behavior and
17939         neighbour -> neighbor.
17940         * target.def: Likewise.
17941         * sel-sched.c: Likewise.
17942         * config/mips/mips.c: Likewise.
17943         * config/arc/arc.md: Likewise.
17944         * config/arm/cortex-a57.md: Likewise.
17945         * config/arm/arm.c: Likewise.
17946         * config/arm/neon.md: Likewise.
17947         * config/arm/arm-c.c: Likewise.
17948         * config/vms/vms-c.c: Likewise.
17949         * config/s390/s390.c: Likewise.
17950         * config/i386/znver1.md: Likewise.
17951         * config/i386/i386.c: Likewise.
17952         * config/ia64/hpux-unix2003.h: Likewise.
17953         * config/msp430/msp430.md: Likewise.
17954         * config/rx/rx.c: Likewise.
17955         * config/rx/rx.md: Likewise.
17956         * config/aarch64/aarch64-simd.md: Likewise.
17957         * config/aarch64/aarch64.c: Likewise.
17958         * config/nvptx/nvptx.c: Likewise.
17959         * config/bfin/bfin.c: Likewise.
17960         * config/cris/cris.opt: Likewise.
17961         * config/rs6000/rs6000.c: Likewise.
17962         * target.h: Likewise.
17963         * spellcheck.c: Likewise.
17964         * ira-build.c: Likewise.
17965         * tree-inline.c: Likewise.
17966         * builtins.c: Likewise.
17967         * lra-constraints.c: Likewise.
17968         * explow.c: Likewise.
17969         * hwint.h: Likewise.
17970         * targhooks.c: Likewise.
17971         * tree-vect-data-refs.c: Likewise.
17972         * expr.c: Likewise.
17973         * doc/tm.texi: Likewise.
17974         * doc/extend.texi: Likewise.
17975         * doc/install.texi: Likewise.
17976         * doc/md.texi: Likewise.
17977         * tree-ssa-tail-merge.c: Likewise.
17978         * sched-int.h: Likewise.
17979         * match.pd: Likewise.
17980         * sched-ebb.c: Likewise.
17981         * target.def (omit_struct_return_reg): Likewise.
17982         * gimple-ssa-isolate-paths.c: Likewise.
17983         (find_implicit_erroneous_behaviour): Renamed to...
17984         (find_implicit_erroneous_behavior): ... this.
17985         (find_explicit_erroneous_behaviour): Renamed to...
17986         (find_explicit_erroneous_behavior): ... this.
17987         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
17989 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
17991         PR rtl-optimization/64682
17992         PR rtl-optimization/69567
17993         PR rtl-optimization/69737
17994         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
17995         in I2 as well, just lose it.
17997 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17999         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
18000         New variable.
18001         (aarch64_last_printed_tune_string): Likewise.
18002         (aarch64_declare_function_name): Only output .arch assembler
18003         directive if it will be different from the previously output
18004         directive.  Same for .tune comment but only if -dA is set.
18005         (aarch64_start_file): New function.
18006         (TARGET_ASM_FILE_START): Define.
18008 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
18010         PR plugins/69758
18011         * Makefile.in (PLUGIN_HEADERS): Add params.list.
18013 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
18015         PR target/65313
18016         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
18017         -Wmaybe-uninitialized warning.
18019 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
18021         PR target/69713
18022         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
18024 2016-02-11  Richard Biener  <rguenther@suse.de>
18026         PR rtl-optimization/69291
18027         * ifcvt.c (noce_try_store_flag_constants): Do not allow
18028         subexpressions affected by changing the result.
18030 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
18032         PR target/69148
18033         * lra-constraints.c (curr_insn_transform): Find in/out operands
18034         for secondary memory moves.  Update dups.
18036 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
18038         PR tree-optimization/69652
18039         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
18040         to nested loop, did source re-formatting, skip debug statements,
18041         add check on statement with volatile operand, remove dead scalar
18042         statements.
18044 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
18045             Patrick Palka  <ppalka@gcc.gnu.org>
18047         PR ipa/69241
18048         PR c++/69649
18049         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
18050         calls if the return type is TREE_ADDRESSABLE.
18051         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
18052         * ipa-split.c (split_function): Fix doubled "we" in comment.
18053         Use void return type for the split part even if
18054         !split_point->split_part_set_retval.
18056 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
18058         PR tree-optimization/68021
18059         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
18060         when computing the value of biv cand by itself.
18062 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18064         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
18065         (cortexa57_tunings): Likewise.
18066         (cortexa72_tunings): Likewise.
18067         (arch_macro_fusion_pair_p): Add support for AES fusion.
18068         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
18069         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18070         Allow virtual registers before reload so early scheduling works.
18071         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
18072         correct latency and pipeline.
18073         (cortex_a57_crypto_complex): Likewise.
18074         (cortex_a57_crypto_xor): Likewise.
18075         (define_bypass): Add AES bypass.
18077 2016-02-10  Richard Biener  <rguenther@suse.de>
18079         PR tree-optimization/69726
18080         * passes.def: Add DCE pass before late uninit.
18081         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
18082         really fixup if-conversions job.
18084 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18086         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
18087         (arm_cortex_a57_tune): Likewise.
18088         (aarch_macro_fusion_pair_p): Add support for AES fusion.
18089         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
18091 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18093         * timevar.def (TV_PHASE_DBGINFO): Delete.
18094         (TV_PHASE_CHECK_DBGINFO): Likewise.
18095         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
18097 2016-02-10  Richard Biener  <rguenther@suse.de>
18099         PR tree-optimization/69719
18100         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18101         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
18103 2016-02-09  Andrew Pinski  <apinski@cavium.com>
18105         PR tree-opt/69282
18106         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
18107         get_vcond_mask_icode returns false.
18109 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
18111         PR target/68404
18112         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
18113         an ADDIS that adds a pointer to a large constant that sets the
18114         upper16 bits with a load operation.
18116 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
18118         PR target/68532
18119         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
18120         order.
18121         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
18122         endian.
18123         (vzipq_s16): Likewise.
18124         (vzipq_s32): Likewise.
18125         (vzipq_f32): Likewise.
18126         (vzipq_u8): Likewise.
18127         (vzipq_u16): Likewise.
18128         (vzipq_u32): Likewise.
18129         (vzipq_p8): Likewise.
18130         (vzipq_p16): Likewise.
18132 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
18134         PR target/68532
18135         * config/arm/arm.c (neon_endian_lane_map): New function.
18136         (neon_vector_pair_endian_lane_map): New function.
18137         (arm_evpc_neon_vuzp): Allow for big endian lane order.
18138         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
18139         endian.
18140         (vuzpq_s16): Likewise.
18141         (vuzpq_s32): Likewise.
18142         (vuzpq_f32): Likewise.
18143         (vuzpq_u8): Likewise.
18144         (vuzpq_u16): Likewise.
18145         (vuzpq_u32): Likewise.
18146         (vuzpq_p8): Likewise.
18147         (vuzpq_p16): Likewise.
18149 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
18151         PR target/69634
18152         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
18153         debug insns.
18155 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
18157         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
18158         truncate const_int operand 1 to QImode.
18160 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18162         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
18163         corresponding to an abnormal edge.
18165 2016-02-09  Tom de Vries  <tom@codesourcery.com>
18167         PR tree-optimization/69599
18168         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
18169         function.
18170         (find_func_aliases_for_builtin_call, find_func_clobbers)
18171         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
18172         partition.
18174 2016-02-09  Richard Biener  <rguenther@suse.de>
18176         PR tree-optimization/69715
18177         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
18178         LHS on calls as non-rewritable.
18180 2016-02-09  Tom de Vries  <tom@codesourcery.com>
18182         PR lto/69707
18183         * lto-wrapper.c (append_diag_options): New function.
18184         (compile_offload_image): Call append_diag_options.
18186 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
18188         PR other/69722
18189         * doc/extend.texi (Flag Output Operands): Correct sectioning.
18190         Minor copy-edit to fix verb tenses.
18192 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
18194         PR tree-optimization/69209
18195         * ipa-split.c (split_function): If split part is not
18196         returning retval, retval has gimple type but is not
18197         gimple value, force it into a SSA_NAME first.
18199 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
18201         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
18202         outdated section.
18204 2016-02-08  Jason Merrill  <jason@redhat.com>
18206         PR c++/69631
18207         * convert.c (convert_to_integer_1): Check dofold on truncation
18208         distribution.
18209         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
18210         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
18211         Rename from *_nofold.
18212         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
18213         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
18215 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
18217         PR target/60410
18218         * tree.c (build_common_tree_nodes): Remove short_double argument.
18219         All callers changed.
18220         * tree.h (build_common_tree_nodes): Adjust declaration.
18221         * doc/invoke.texi (-fshort-double): Remove documentation.
18222         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18223         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
18224         * lto-wrapper.c (merge_and_complain, append_compiler_options)
18225         (append_linker_options): Don't handle OPT_fshort_double.
18227         PR rtl-optimization/68730
18228         * lra-remat.c (insn_to_cand_activation): New static variable.
18229         (lra_remat): Allocate and free it.
18230         (create_cand): New arg activation. Initialize a field in
18231         insn_to_cand_activation if it is nonnull.
18232         (create_cands): Pass the activation insn to create_cand when making
18233         a candidate involving an output reload.  Reorganize code a little.
18234         (do_remat): Keep track of active status of candidates in a separate
18235         bitmap.
18237 2016-02-08  Richard Biener  <rguenther@suse.de>
18239         PR tree-optimization/69719
18240         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18241         Properly use absolute of the difference of the two offsets to
18242         compare or adjust the segment length.
18244 2016-02-08  Richard Biener  <rguenther@suse.de>
18245             Jeff Law  <law@redhat.com>
18247         PR target/68273
18248         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
18249         types for anonymous SSA names.
18251 2016-02-08   Richard Biener  <rguenther@suse.de>
18253         PR rtl-optimization/69274
18254         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
18256 2016-02-08  Jeff Law  <law@redhat.com>
18258         PR tree-optimization/65917
18259         * tree-ssa-dom.c (record_temporary_equivalences): Record both
18260         equivalences from if (x == y) style conditionals.
18261         (loop_depth_of_name): Remove.
18262         (record_equality): Remove loop depth check.
18263         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
18264         (const_and_copies::record_const_or_copy_raw): New member function.
18265         * tree-ssa-scopedtables.c
18266         (const_and_copies::record_const_or_copy_raw): New, factored out of
18267         (const_and_copies::record_const_or_copy): Call new member function.
18269 2016-02-05  Jeff Law  <law@redhat.com>
18271         PR tree-optimization/68541
18272         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
18273         (count_stmts_in_block): New function.
18274         (poor_ifcvt_candidate_code): Likewise.
18275         (is_feasible_trace): Add some heuristics to determine when path
18276         splitting is profitable.
18277         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
18278         is a diamond with a single exit.
18280 2016-02-05  Martin Sebor  <msebor@redhat.com>
18282         PR c++/69662
18283         * doc/invoke.texi: Update -Wplacement-new to take an optional
18284         argument.
18286 2016-02-06  Richard Henderson  <rth@redhat.com>
18288         PR c/69643
18289         * tree.c (tree_nop_conversion_p): Do not strip casts into or
18290         out of non-standard address spaces.
18292 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
18294         PR rtl-optimization/69691
18295         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
18297 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
18299         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
18300         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
18301         (*ieee128_mfvsrd_64bit): Likewise.
18302         (*ieee128_mfvsrd_32bit): Likewise.
18304 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
18306         PR target/69369
18307         Revert r232560:
18308         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18310         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
18311         instrumented_version.
18313 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
18315         * doc/invoke.texi (Optimize Options): In table of --param options
18316         rename second occurrence of tracer-min-branch-ratio to
18317         tracer-min-branch-probability, rename
18318         tracer-min-branch-ratio-feedback to
18319         tracer-min-branch-probability-feedback and clarify description,
18320         rename sched-spec-state-edge-prob-cutoff to
18321         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
18322         to selsched-insns-to-rename, rename lto-minpartition to
18323         lto-min-partition, delete reorder-blocks-duplicate and
18324         reorder-blocks-duplicate-feedback.
18326 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18328         * config/s390/s390.c (s390_register_info_set_ranges): Remove
18329         superfluous loops.
18331 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18333         * doc/extend.texi: S/390: Correct some typos.
18335 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18337         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
18339 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18341         PR target/69625
18342         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
18343         (s390_register_info_gprtofpr): Use new macros above.
18344         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
18345         its name.
18346         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
18347         its name.  Adjust restore and save gpr ranges.
18348         (s390_register_info_set_ranges): New function.
18349         (s390_register_info): Use new macros above.  Call
18350         s390_register_info_set_ranges.
18351         (s390_optimize_register_info): Likewise.
18352         (s390_hard_regno_rename_ok): Use new macros.
18353         (s390_hard_regno_scratch_ok): Likewise.
18354         (s390_emit_epilogue): Likewise.
18355         (s390_can_use_return_insn): Likewise.
18356         (s390_optimize_prologue): Likewise.
18357         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
18359 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
18361         PR bootstrap/69677
18362         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
18363         alignment fixes.
18364         (ix86_option_override_internal): Disable TARGET_STV even for
18365         -m{incoming,preferred}-stack-boundary=3.
18367 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18369         * config.gcc: Mark deprecated rtems targets as obsolete.
18371 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
18373         PR rtl-optimization/64682
18374         PR rtl-optimization/69567
18375         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
18376         before I2 only if the register is both used and set in I2.
18378 2016-02-04  DJ Delorie  <dj@redhat.com>
18380         * config/msp430/msp430.c (msp430_start_function): Add function type.
18382 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
18384         PR fortran/69368
18385         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
18387 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
18389         PR rtl-optimization/69577
18390         Revert:
18391         2015-10-29  Richard Henderson  <rth@redhat.com>
18393         PR target/68124
18394         PR rtl-opt/67609
18395         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
18396         sse check to the exact conditions of PR 67609.
18398 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
18400         PR target/69667
18401         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
18402         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
18403         not allowed into the traditional Altivec registers.
18404         (movtd_64bit_nodm): Likewise.
18405         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
18407 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
18409         * config/aarch64/cortex-a57-fma-steering.c
18410         (aarch64_register_fma_steering): Remove "static" from arguments
18411         to register_pass.
18413 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
18415         PR target/69619
18416         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
18417         twice when complex.
18419 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
18421         * doc/invoke.texi: Delete -mno-fma4.
18423 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
18425         PR rtl-optimization/69577
18426         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
18427         (find_subregs_of_mode): Update accordingly.  Iterate over partial
18428         definitions.
18430 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
18432         * config/arm/arm-protos.h (neon_reinterpret): Remove.
18433         * config/arm/arm.c (neon_reinterpret): Remove.
18434         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
18435         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
18436         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
18437         vreinterpretti): Remove.
18438         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
18439         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
18440         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
18441         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
18442         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
18443         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
18444         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
18445         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
18446         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
18447         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
18448         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
18449         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
18450         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
18451         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
18452         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
18453         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
18454         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
18455         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
18456         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
18457         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
18458         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
18459         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
18460         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
18461         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
18462         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
18463         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
18464         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
18465         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
18466         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
18467         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
18468         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
18469         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
18470         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
18471         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
18472         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
18473         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
18474         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
18475         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
18476         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
18477         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
18478         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
18479         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
18480         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
18481         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
18482         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
18483         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
18484         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
18485         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
18486         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
18487         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
18488         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
18489         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
18490         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
18491         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
18492         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
18493         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
18494         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
18495         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
18496         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
18497         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
18498         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
18499         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
18500         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
18501         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
18502         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
18503         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
18504         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
18505         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
18506         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
18507         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
18508         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
18509         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
18510         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
18511         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
18512         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
18513         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
18514         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
18515         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
18516         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
18517         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
18518         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
18519         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
18520         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
18521         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
18522         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
18523         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
18524         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
18525         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
18526         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
18527         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
18528         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
18529         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
18530         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
18531         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
18532         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
18533         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
18534         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
18535         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
18536         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
18537         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
18538         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
18539         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
18540         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
18542 2016-02-04  Martin Liska  <mliska@suse.cz>
18544         PR sanitizer/69276
18545         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
18546         that are gimple_store_p.
18547         (maybe_instrument_call): Likewise.
18549 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
18551         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
18552         register scaling out of memory reference and comment why.
18554 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18556         PR target/65932
18557         PR target/67714
18558         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
18559         folding the source of a SET.
18561 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18563         PR target/65932
18564         PR target/67714
18565         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
18566         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
18568 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
18570         PR target/65932
18571         PR target/67714
18572         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
18573         HImode.
18575 2016-02-04  Christian Bruel  <christian.bruel@st.com>
18577         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
18578         * config/arm/arm.c (arm_set_current_function): Likewise.
18580 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
18581             Ilya Enkovich  <enkovich.gnu@gmail.com>
18582             H.J. Lu  <hongjiu.lu@intel.com>
18584         PR target/69454
18585         * config/i386/i386.c (convert_scalars_to_vector): Remove
18586         stack alignment fixes.
18587         (ix86_option_override_internal): Disable TARGET_STV if stack
18588         might not be aligned enough.
18589         (ix86_minimum_alignment): Assert that TARGET_STV is false.
18591 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
18593         * config/i386/x86-tune.def: Disable default prefetching
18594         for -march=znver1.
18596 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18597             Vladimir Makarov  <vmakarov@redhat.com>
18599         PR target/69461
18600         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
18601         in validating fused toc addresses.
18603 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
18605         PR c/69627
18606         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
18607         range->m_caret fields if range->m_show_caret_p is false.
18609         PR target/69644
18610         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18611         Force oldval into register if it does not satisfy reg_or_short_operand
18612         predicate.  Fix up formatting.
18614 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
18615             Alexandre Oliva  <aoliva@redhat.com>
18617         PR target/69461
18618         * lra-constraints.c (simplify_operand_subreg): Check additionally
18619         address validity after potential reloading.
18620         (process_address_1): Check insns validity.  In case of failure do
18621         nothing.
18623 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
18625         PR target/69118
18626         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
18627         Fix target.
18629 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
18631         * wide-int.cc (canonize_uhwi): New function.
18632         (wi::divmod_internal): Use it.
18634 2016-02-02  James Norris  <jnorris@codesourcery.com
18636         * gimplify.c (omp_notice_variable): Add usage check.
18638 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
18640         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
18641         like LE, GE, LT, GT when emitting relational operator.
18643 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
18645         * ira-costs.c (find_costs_and_classes): Add extra argument.
18646         * target.def (ira_change_pseudo_allocno_class): Add parameter.
18647         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
18648         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
18649         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
18650         Add best_class parameter, and return it if not ALL_REGS.
18651         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
18652         Add parameter.
18653         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
18654         Update target hook.
18656 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
18658         * config/aarch64/aarch64.c
18659         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
18660         (aarch64_ira_change_pseudo_allocno_class): New function.
18662 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
18664         PR target/67032
18665         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
18667 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18669         * config/avr/avr.c (avr_option_override): Set
18670         PARAM_ALLOW_STORE_DATA_RACES to 1.
18672 2016-02-02  Richard Biener  <rguenther@suse.de>
18674         PR tree-optimization/69595
18675         * match.pd: Add range test simplifications to true/false.
18677 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
18679         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
18680         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
18681         instead.
18683 2016-02-02  Richard Biener  <rguenther@suse.de>
18685         PR tree-optimization/69606
18686         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
18687         info on the result before moving a stmt.
18689 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
18691         PR middle-end/68542
18692         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
18693         branch with vector comparison.
18694         * config/i386/sse.md (VI48_AVX): New mode iterator.
18695         (define_expand "cbranch<mode>4): Add support for conditional branch
18696         with vector comparison.
18697         * tree-vect-loop.c (optimize_mask_stores): New function.
18698         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
18699         has_mask_store field of vect_info.
18700         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
18701         vectorized loops having masked stores after vec_info destroy.
18702         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
18703         correspondent macros.
18704         (optimize_mask_stores): Add prototype.
18706 2016-02-02  Alan Modra  <amodra@gmail.com>
18708         PR target/69548
18709         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
18710         allow subregs.
18712 2016-02-02  Alan Modra  <amodra@gmail.com>
18714         PR target/68662
18715         * config/rs6000/rs6000.c (need_toc_init): New var, set it
18716         whenever toc_label_name used.
18717         (rs6000_file_start): Don't set up toc section here,
18718         (rs6000_output_function_epilogue): do so here instead,
18719         (rs6000_xcoff_file_start): and here.
18720         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
18721         (load_toc_aix_di): Likewise.
18723 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
18725         PR rtl-optimization/69592
18726         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
18727         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
18728         (num_sign_bit_copies_binary_arith_p): New inline function.
18729         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
18731 2016-02-01  Jeff Law  <law@redhat.com>
18733         PR tree-optimization/69580
18734         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
18735         * tree-ssa-threadbackward.c
18736         (fsm_find_control_statement_thread_paths): Do not try to walk
18737         through large PHI nodes.
18739 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
18741         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
18742         when count is incremented above limit, don't analyze further
18743         insns afterwards.
18745         * omp-low.c (oacc_parse_default_dims): Avoid
18746         -Wsign-compare warning, make sure value fits into int
18747         rather than just unsigned int.
18749 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
18751         PR tree-optimization/67921
18752         * fold-const.c (split_tree): New parameters.  Convert pointer
18753         type variable part to proper type before negating.
18754         (fold_binary_loc): Pass new arguments to split_tree.
18756 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
18758         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
18759         (nvptx_goacc_validate_dims): Extend to handle global defaults.
18760         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
18761         * doc/tm.texti: Rebuilt.
18762         * doc/invoke.texi (fopenacc-dim): Document.
18763         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
18764         (append_compiler_options): Likewise.
18765         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
18766         (oacc_parse_default_dims): New.
18767         (oacc_validate_dims): Add USED arg.  Select non-unity default when
18768         possible.
18769         (oacc_loop_fixed_partitions): Return mask of used partitions.
18770         (oacc_loop_auto_partitions): Emit dump info.
18771         (oacc_loop_partition): Return mask of used partitions.
18772         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
18773         loop partitioning and validation calls.
18775 2016-02-01  Richard Biener  <rguenther@suse.de>
18777         PR middle-end/69556
18778         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
18780 2016-02-01  Richard Biener  <rguenther@suse.de>
18782         PR tree-optimization/69574
18783         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
18784         of asserting return chrec_dont_know.
18786 2016-02-01  Martin Liska  <mliska@suse.cz>
18788         * mem-stats-traits.h: Add copyright header.
18789         * mem-stats.h: Likewise.
18791 2016-02-01  Richard Biener  <rguenther@suse.de>
18793         PR tree-optimization/69579
18794         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
18795         Do not propagate through abnormal PHI results.
18797 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
18799         * postreload.c (reload_cse_simplify): Remove dead code.
18801 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
18803         PR rtl-optimization/69570
18804         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
18805         if there is more than one set, not if there is a single set.
18807 2016-02-01  Richard Henderson  <rth@redhat.com>
18809         PR rtl-opt/69535
18810         * combine.c (make_compound_operation): When looking through a
18811         subreg, make sure to re-extend to the width of the outer mode.
18813 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
18815         PR tree-optimization/69546
18816         * wide-int.cc (wi::divmod_internal): For unsigned division
18817         where both operands fit into uhwi, if o1 is 1 and o0 has
18818         msb set, if divident_prec is larger than bits per hwi,
18819         clear another quotient word and return 2 instead of 1.
18820         Similarly for remainder with msb in HWI set, if dividend_prec
18821         is larger than bits per hwi.
18823 2016-01-29  Martin Jambor  <mjambor@suse.cz>
18825         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
18826         Use short lowercase names.
18827         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
18828         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
18829         acq_rel one.  Protect warning agains segfaults if
18830         get_memory_order_name returns NULL.
18831         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
18832         with release semantics.  Do not warn if get_memory_order already did.
18833         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
18834         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
18835         if get_memory_order already did.
18837 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
18839         * doc/install.texi: Document that isl-0.16 is supported.
18841 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
18843         PR target/69299
18844         * config/i386/constraints.md (Bm): Describe as special memory
18845         constraint.
18846         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
18847         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
18848         * genpreds.c (struct constraint_data): Add is_special_memory.
18849         (have_special_memory_constraints, special_memory_start): New
18850         static vars.
18851         (special_memory_end): Ditto.
18852         (add_constraint): Add new arg is_special_memory.  Add code to
18853         process its true value.  Update have_special_memory_constraints.
18854         (process_define_constraint): Pass the new arg.
18855         (process_define_register_constraint): Ditto.
18856         (choose_enum_order): Process special memory.
18857         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
18858         function insn_extra_special_memory_constraint.
18859         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
18860         * gensupport.c (process_rtx): Process
18861         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
18862         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
18863         * ira-lives.c (single_reg_class): Use
18864         insn_extra_special_memory_constraint.
18865         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
18866         * lra-constraints.c (process_alt_operands): Ditto.
18867         (curr_insn_transform): Use insn_extra_special_memory_constraint.
18868         * recog.c (asm_operand_ok, preprocess_constraints): Process
18869         CT_SPECIAL_MEMORY.
18870         * reload.c (find_reloads): Ditto.
18871         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
18872         * stmt.c (parse_input_constraint): Use
18873         insn_extra_special_memory_constraint.
18875 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
18877         PR target/69530
18878         * lra-splill.c (lra_final_code_change): Revert r229087 by
18879         removing all sub-registers.
18881 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
18883         PR target/65604
18884         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
18886 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
18888         PR target/69551
18889         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
18890         SSE1, copy target into the temporary reg first before recursing
18891         on it.
18893 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
18895         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
18896         with vm.
18898 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
18900         * ginclude/stdarg.h: Test __cplusplus instead of
18901         __GXX_EXPERIMENTAL_CXX0X__.
18903 2016-01-29  Richard Biener  <rguenther@suse.de>
18905         PR tree-optimization/69547
18906         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
18907         Do not mark clobbers necessary.
18908         (mark_all_reaching_defs_necessary_1): Likewise.
18910 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18912         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
18913         declaration name with %qs and print it in both error messages.
18914         Also fix indentation.
18916 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18918         PR other/69006
18919         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
18920         trailing blank line from error message.
18922 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
18924         PR c++/69462
18925         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
18926         for C++-11.
18928 2016-01-29  Richard Biener  <rguenther@suse.de>
18930         PR middle-end/69537
18931         * match.pd: Allow all integral types when simplifying a
18932         widening or sign-changing conversion.
18934 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
18936         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
18937         back to setting codegen_error to fail codegen.
18939 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
18941         PR target/69459
18942         * config/i386/constraints.md (C): Only accept constant zero operand.
18943         (BC): New constraint.
18944         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
18945         instead of C constraint.
18946         * doc/md.texi (Machine Constraints): Update description
18947         of C constraint.
18949 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
18951         PR target/68400
18952         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
18954 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
18956         PR middle-end/69542
18957         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
18958         non-debug insns.
18960 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
18962         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
18963         branches if using guessed profile.
18965 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
18967         * graphite-optimize-isl.c (optimize_isl): Fix dump.
18969 2016-01-28  Richard Henderson  <rth@redhat.com>
18971         PR target/69305
18972         * config/aarch64/aarch64-modes.def (CC_Cmode): New
18973         * config/aarch64/aarch64-protos.h: Update.
18974         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
18975         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
18976         (aarch64_get_condition_code_1): Handle CC_Cmode.
18977         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
18978         (*add<mode>3_compareC_cconly_imm): New.
18979         (*add<mode>3_compareC_cconly): New.
18980         (*add<mode>3_compareC_imm): New.
18981         (add<mode>3_compareC): New.
18982         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
18983         to be first.  Use aarch64_carry_operation.
18984         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
18985         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
18986         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
18987         (subti3): Use subdi3_compare1.
18988         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
18989         (sub<mode>3_compare1): New.
18990         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
18991         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
18992         (*subsi3_carryin_uxtw): Likewise.
18993         (*ngc<mode>, *ngcsi_uxtw): Likewise.
18994         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
18995         * config/aarch64/iterators.md (DWI): New.
18996         * config/aarch64/predicates.md (aarch64_carry_operation): New.
18997         (aarch64_borrow_operation): New.
18999 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
19001         * graphite-optimize-isl.c (optimize_isl): Print a different debug
19002         message when isl does not return a valid schedule.
19004 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19006         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
19007         Remove comments from class declarations: they are already in the code
19008         close by the defs.
19010 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19012         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
19013         codegen_error_p.
19014         (ternary_op_to_tree): Same.
19015         (unary_op_to_tree): Same.
19016         (nary_op_to_tree): Same.
19017         (gcc_expression_from_isl_expr_op): Same.
19018         (gcc_expression_from_isl_expression): Same.
19019         (graphite_create_new_loop): Same.
19020         (graphite_create_new_loop_guard): Same.
19021         (build_iv_mapping): Same.
19022         (graphite_create_new_guard): Same.
19023         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
19024         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
19026 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19028         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
19029         instead of setting codegen_error to fail codegen.
19031 2016-01-28  Jason Merrill  <jason@redhat.com>
19033         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
19035 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19037         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
19038         Remove CONST_INT_P check in CCMP cost calculation.
19040 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19042         * config/aarch64/aarch64.c (generic_vector_cost):
19043         Set vec_permute_cost.
19044         (cortexa57_vector_cost): Likewise.
19045         (exynosm1_vector_cost): Likewise.
19046         (xgene1_vector_cost): Likewise.
19047         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
19048         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
19049         Add vec_permute_cost entry.
19051 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19053         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
19054         immediate as %1.
19055         (add<mode>3_compare0): Likewise.
19056         (addsi3_compare0_uxtw): Likewise.
19057         (add<mode>3nr_compare0): Likewise.
19058         (compare_neg<mode>): Likewise.
19059         (<optab><mode>3): Likewise.
19061 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
19063         * tree-vect-stmts.c (vectorizable_comparison): Add
19064         NULL check for vectype.
19066 2016-01-28  Richard Biener  <rguenther@suse.de>
19068         PR tree-optimization/69466
19069         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
19070         Account for PHIs we couldn't duplicate.
19072 2016-01-28  Martin Liska  <mliska@suse.cz>
19074         PR pch/68758
19075         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
19076         instead of ENABLE_VALGRIND_CHECKING.
19078 2016-01-27  Richard Henderson  <rth@redhat.com>
19080         PR rtl-opt/69447
19081         * lra-remat.c (subreg_regs): New.
19082         (dump_candidates_and_remat_bb_data): Dump it.
19083         (operand_to_remat): Reject if operand in subreg_regs.
19084         (set_bb_regs): Collect subreg_regs.
19085         (lra_remat): Init and free subreg_regs.  Compute
19086         calculate_local_reg_remat_bb_data before create_cands.
19088 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
19090         PR target/68986
19091         * config/i386/i386.c (ix86_update_stack_boundary): Don't
19092         change stack_alignment_needed for __tls_get_addr call.
19094 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
19096         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
19098 2016-01-27  Jeff Law  <law@redhat.com>
19100         PR tree-optimization/68398
19101         PR tree-optimization/69196
19102         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
19103         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
19104         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19105         Only count PHIs in the last block in the path.  The others will
19106         const/copy propagate away.  Add heuristic to allow more irreducible
19107         subloops to be created when it is likely profitable to do so.
19109         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19110         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
19111         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
19113 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
19115         PR lto/69254
19116         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
19117         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
19118         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
19119         * tree-streamer-in.c: Include asan.h.
19120         (streamer_get_builtin_tree): For builtins in sanitizer
19121         range call initialize_sanitizer_builtins and retry.
19123 2016-01-27  Ian Lance Taylor  <iant@google.com>
19125         * common.opt (fkeep-gc-roots-live): New undocumented option.
19126         * tree-ssa-loop-ivopts.c (add_candidate_1): If
19127         -fkeep-gc-roots-live, skip pointers.
19128         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
19129         NULL.
19131 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
19133         PR target/69512
19134         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
19135         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
19137 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
19139         PR target/68380
19140         * configure.ac: NetBSD provides SSP in its C library.
19141         * configure: Updated.
19143 2016-01-27  Richard Biener  <rguenther@suse.de>
19145         PR tree-optimization/69166
19146         * tree-vect-loop.c (vect_is_simple_reduction): Always check
19147         reduction code for commutativity / associativity.
19149 2016-01-27  Martin Jambor  <mjambor@suse.cz>
19151         PR tree-optimization/69355
19152         * tree-sra.c (analyze_access_subtree): Correct hole detection when
19153         total_scalarization fails.
19155 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
19157         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
19158         power9.
19160 2016-01-27  Christian Bruel  <christian.bruel@st.com>
19162         PR target/69245
19163         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
19164         Move arm_reset_previous_fndecl and set_target_option_current_node in
19165         the conditional part.  Call save_restore_target_globals.
19166         * config/arm/arm.c (arm_set_current_function):
19167         Refactor to better support #pragma target and attribute mix.
19168         Call save_restore_target_globals.
19169         * config/arm/arm-protos.h (save_restore_target_globals): New function.
19171 2016-01-27  Martin Liska  <mliska@suse.cz>
19173         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
19174         reference for an HSA kernel and its host function.
19176 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
19178         PR tree-optimization/69399
19179         * wide-int.h (wi::lrshift): For larger precisions, only
19180         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
19182 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
19184         * config/arc/predicates.md (proper_comparison_operator): Reject
19185         constant-constant comparison.
19187 2016-01-26  Tom de Vries  <tom@codesourcery.com>
19189         PR tree-optimization/69110
19190         * tree-data-ref.c (initialize_data_dependence_relation): Handle
19191         DR_NUM_DIMENSIONS == 0.
19193 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
19194             Sebastian Pop  <s.pop@samsung.com>
19196         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
19197         isl_ast_op_cond and isl_ast_op_select.
19198         (gcc_expression_from_isl_expr_op): Same.
19200 2016-01-26  Jason Merrill  <jason@redhat.com>
19202         PR c++/68782
19203         * tree.c (recompute_constructor_flags): Split out from
19204         build_constructor.
19205         (verify_constructor_flags): New.
19206         * tree.h: Declare them.
19208 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19210         PR rtl-optimization/69217
19211         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
19212         are no TYPE_FIELDS set for the record type.
19214 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19216         PR target/68662
19217         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
19218         toc_label_name unconditionally.
19219         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
19220         SYMBOL_REF string.  Use toc_label_name instead of constructing
19221         LCTOC1.
19222         (rs6000_elf_declare_function_name): Use toc_label_name instead of
19223         constructing LCTOC1.
19225 2016-01-26  Martin Sebor  <msebor@redhat.com>
19227         PR other/69477
19228         * doc/extend.texi (Common Type Attributes): Move text that talks about
19229         attribute packed from attribute aligned to the section discussing
19230         the former attribute for clarity.
19232 2016-01-26  Richard Henderson  <rth@redhat.com>
19234         PR middle-end/60908
19235         * trans-mem.c (tm_region_init): Mark entry block as visited.
19237 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
19239         PR other/69006
19240         * diagnostic-show-locus.c (layout::print_source_line): Replace
19241         call to pp_newline with call to layout::print_newline.
19242         (layout::print_annotation_line): Likewise.
19243         (layout::move_to_column): Likewise.
19244         (layout::print_any_fixits): After printing any fixits, print a
19245         trailing newline, if necessary.
19246         (layout::print_newline): New method, resetting any colorization
19247         before a newline.
19248         (diagnostic_show_locus): Move the pp_newline to before the
19249         early bailout.  Remove dummy block enclosing the layout instance.
19250         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
19251         of pp_newline_and_flush with pp_flush.
19252         (diagnostic_append_note): Delete use of pp_newline.
19253         (diagnostic_append_note_at_rich_loc): Delete.
19254         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
19255         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
19256         when newline characters are added to the buffer.
19258 2016-01-26  Michael Matz  <matz@suse.de>
19260         * configure.ac (ac_cv_std_swap_in_utility): New test.
19261         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
19262         * configure: Regenerate.
19263         * config.in: Regenerate.
19265 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
19267         * config/arc/arc.md (cstoresi4): Force operand into register.
19268         (arcset<code>): Fix predicate.
19269         (arcsetltu): Likewise.
19270         (arcsetgeu): Likewise.
19271         (arcsethi): Likewise.
19272         (arcsetls): Likewise.
19274 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19276         PR tree-optimization/69483
19277         * gimple-fold.c (canonicalize_constructor_val): Return NULL
19278         if base has error_mark_node type.
19280 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
19282         PR target/68620
19283         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
19284         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
19285         New helper macros.
19286         (vget_lane_f16): Handle big-endian.
19287         (vgetq_lane_f16): Likewise.
19288         (vset_lane_f16): Likewise.
19289         (vsetq_lane_f16): Likewise.
19290         * config/arm/iterators.md (VQXMOV): Add V8HF.
19291         (VDQ): Add V4HF and V8HF.
19292         (V_reg): Handle V4HF and V8HF.
19293         (Is_float_mode): Likewise.
19294         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
19295         neon_vdup_nv8hf): New patterns.
19296         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
19297         Use VD_LANE iterator.
19298         (neon_vld1_dup<mode>): Use VQ2 iterator.
19300 2016-01-26  Nathan Sidwell  <nathan@acm.org>
19302         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
19303         (set_oacc_fn_attrib): Add IS_KERNEL arg.
19304         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
19305         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
19306         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
19307         (oacc_validate_dims): Add LEVEL arg, don't return level.
19308         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
19309         oacc_validate_dims.
19310         (execute_oacc_device_lower): Adjust, add more dump output.
19311         * tree-ssa-loop.c (gate_oacc_kernels): Use
19312         oacc_fn_attrib_kernels_p.
19313         * tree-parloops.c (create_parallel_loop): Adjust
19314         set_oacc_fn_attrib call.
19316 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19318         PR lto/69254
19319         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
19320         (append_compiler_options): Handle -fcilkplus.
19321         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
19323 2016-01-26  Nick Clifton  <nickc@redhat.com>
19325         PR target/66655
19326         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
19327         been marked as DECL_ONE_ONLY but we do not the means to make it
19328         so, then do not allow it to bind locally.
19330 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19332         PR lto/69254
19333         * opts.h (parse_sanitizer_options): New prototype.
19334         * opts.c (sanitizer_opts): New array.
19335         (parse_sanitizer_options): New function.
19336         (common_handle_option): Use parse_sanitizer_options.
19338 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19340         PR target/68986
19341         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
19342         alignment adjustment to ...
19343         (ix86_update_stack_boundary): Here.  Don't over-align stack for
19344         __tls_get_addr.
19345         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
19346         if __tls_get_addr is called.
19348 2016-01-26  Christian Bruel  <christian.bruel@st.com>
19350         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
19352 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
19354         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
19356 2016-01-26  Richard Biener  <rguenther@suse.de>
19358         PR middle-end/69467
19359         * match.pd: Guard X * CST CMP 0 pattern with single_use.
19361 2016-01-26  Richard Biener  <rguenther@suse.de>
19363         PR tree-optimization/69452
19364         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
19365         (move_computations_dom_walker::before_dom_children): Rename
19366         to ...
19367         (move_computations_worker): This.
19368         (move_computations): Perform an RPO rather than a DOM walk.
19370 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19372         PR target/69442
19373         * combine.c (combine_instructions): For REG_EQUAL note with
19374         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
19375         to the underlying register.
19376         * doc/rtl.texi (REG_EQUAL): Document the behavior of
19377         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
19379 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
19381         PR target/67896
19382         * config/aarch64/aarch64-builtins.c
19383         (aarch64_init_simd_builtin_types): Do not set structural
19384         equality to __Poly{8,16,64,128}_t types.
19386 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
19388         PR tree-optimization/69400
19389         * wide-int.cc (wi_pack): Take the precision as argument and
19390         perform canonicalization here rather than in the callers.
19391         Use the main loop to handle all full-width HWIs.  Add a
19392         zero HWI if in_len isn't a full result.
19393         (wi::divmod_internal): Update accordingly.
19394         (wi::mul_internal): Likewise.  Simplify.
19396 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
19397             Sebastian Pop  <s.pop@samsung.com>
19399         * graphite-poly.c (apply_poly_transforms): Simplify.
19400         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
19401         (print_isl_map): Same.
19402         (print_isl_union_map): Same.
19403         (print_isl_schedule): New.
19404         (debug_isl_schedule): New.
19405         * graphite-dependences.c (scop_get_reads): Do not call
19406         isl_union_map_add_map that is undocumented isl functionality.
19407         (scop_get_must_writes): Same.
19408         (scop_get_may_writes): Same.
19409         (scop_get_original_schedule): Remove.
19410         (scop_get_dependences): Do not call isl_union_map_compute_flow that
19411         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
19412         (compute_deps): Remove.
19413         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
19414         (debug_schedule_ast): New.
19415         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
19416         set_separate_option.
19417         (graphite_regenerate_ast_isl): Add dump.
19418         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
19419         from scop->transformed_schedule.
19420         (graphite_regenerate_ast_isl): Add more dump.
19421         * graphite-optimize-isl.c (optimize_isl): Set
19422         scop->transformed_schedule.  Check whether schedules are equal.
19423         (apply_poly_transforms): Move here.
19424         * graphite-poly.c (apply_poly_transforms): ... from here.
19425         (free_poly_bb): Static.
19426         (free_scop): Static.
19427         (pbb_number_of_iterations_at_time): Remove.
19428         (print_isl_ast): New.
19429         (debug_isl_ast): New.
19430         (debug_scop_pbb): New.
19431         * graphite-scop-detection.c (print_edge): Move.
19432         (print_sese): Move.
19433         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
19434         (build_scop_scattering): Remove.
19435         (create_pw_aff_from_tree): Assert instead of bailing out.
19436         (add_condition_to_pbb): Remove unused code, do not fail.
19437         (add_conditions_to_domain): Same.
19438         (add_conditions_to_constraints): Remove.
19439         (build_scop_context): New.
19440         (add_iter_domain_dimension): New.
19441         (build_iteration_domains): Initialize pbb->iterators.
19442         Call add_conditions_to_domain.
19443         (nested_in): New.
19444         (loop_at): New.
19445         (index_outermost_in_loop): New.
19446         (index_pbb_in_loop): New.
19447         (outermost_pbb_in): New.
19448         (add_in_sequence): New.
19449         (add_outer_projection): New.
19450         (outer_projection_mupa): New.
19451         (add_loop_schedule): New.
19452         (build_schedule_pbb): New.
19453         (build_schedule_loop): New.
19454         (embed_in_surrounding_loops): New.
19455         (build_schedule_loop_nest): New.
19456         (build_original_schedule): New.
19457         (build_poly_scop): Call build_original_schedule.
19458         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
19459         (free_poly_dr): Remove.
19460         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
19461         (free_poly_bb): Remove.
19462         (debug_loop_vec): Remove.
19463         (print_isl_ast): Declare.
19464         (debug_isl_ast): Declare.
19465         (scop_do_interchange): Remove.
19466         (scop_do_strip_mine): Remove.
19467         (scop_do_block): Remove.
19468         (flatten_all_loops): Remove.
19469         (optimize_isl): Remove.
19470         (pbb_number_of_iterations_at_time): Remove.
19471         (debug_scop_pbb): Declare.
19472         (print_schedule_ast): Declare.
19473         (debug_schedule_ast): Declare.
19474         (struct scop): Remove schedule.  Add original_schedule,
19475         transformed_schedule.
19476         (free_gimple_poly_bb): Remove.
19477         (print_generated_program): Remove.
19478         (debug_generated_program): Remove.
19479         (unify_scattering_dimensions): Remove.
19480         * sese.c (print_edge): ... here.
19481         (print_sese): ... here.
19482         (debug_edge): ... here.
19483         (debug_sese): ... here.
19484         * sese.h (print_edge): Declare.
19485         (print_sese): Declare.
19486         (dump_edge): Declare.
19487         (dump_sese): Declare.
19489 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
19490             Sebastian Pop  <s.pop@samsung.com>
19492         * Makefile.in: Set ISLVER in site.exp.
19494 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
19496         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
19497         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
19498         through DECL_VALUE_EXPR for expansion.
19500 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19502         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
19503         the frame info after reload completed.
19505 2016-01-25  Jeff Law  <law@redhat.com>
19507         PR tree-optimization/69196
19508         PR tree-optimization/68398
19509         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
19510         tree-ssa-threadupdate.c.
19511         (determine_bb_domination_status): Prototype
19512         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
19513         (determine_bb_domination_status): No longer static.
19514         (valid_jump_thread_path): Remove code to detect characteristics
19515         of the jump thread path not associated with correctness.
19516         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
19517         Correct test for thread path length.  Count PHIs for real operands as
19518         statements that need to be copied.  Do not count ASSERT_EXPRs.
19519         Look at all the blocks in the thread path.  Compute and selectively
19520         filter thread paths based on threading through the latch, threading
19521         a multiway branch or crossing a multiway branch.
19523 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19525         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
19526         decl with __attribute__ ((unused)) annotation.
19528 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
19530         PR target/69421
19531         * tree-vect-stmts.c (vectorizable_condition): Check vectype
19532         of operands is compatible with a statement vectype.
19534 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
19536         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
19537         improve wording for mixed storage order support.
19539 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
19541         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
19542         (vcvt_u64_f64): Likewise.
19543         (vcvta_s64_f64): Likewise.
19544         (vcvta_u64_f64): Likewise.
19545         (vcvtm_s64_f64): Likewise.
19546         (vcvtm_u64_f64): Likewise.
19547         (vcvtn_s64_f64): Likewise.
19548         (vcvtn_u64_f64): Likewise.
19549         (vcvtp_s64_f64): Likewise.
19550         (vcvtp_u64_f64): Likewise.
19552 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
19554         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
19555         (arc_init): Check validity mll64 option.
19556         (arc_save_restore): Use double load/store instruction.
19557         (arc_expand_movmem): Likewise.
19558         (arc_split_move): Don't split if we have double load/store
19559         instructions. Returns a boolean.
19560         (arc_process_double_reg_moves): Change function to return boolean
19561         instead of a sequence of instructions.
19562         (arc_dwarf_register_span): New function.
19563         * config/arc/arc-protos.h (arc_split_move): Change prototype.
19564         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
19565         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
19566         (*movdf_insn): Likewise.
19567         * config/arc/arc.opt (mll64): New option.
19568         * config/arc/predicates.md (even_register_operand): New predicate.
19569         * doc/invoke.texi (ARC Options): Add mll64 documentation.
19571 2016-01-25  Richard Biener  <rguenther@suse.de>
19573         PR lto/69393
19574         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
19575         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
19576         DECL_NAMELESS.
19577         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
19579 2016-01-25  Richard Biener  <rguenther@suse.de>
19581         PR tree-optimization/69376
19582         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
19583         flag.
19584         (VN_INFO_ANTI_RANGE_P): New inline.
19585         (VN_INFO_RANGE_TYPE): Likewise.
19586         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
19587         SSA_NAME_ANTI_RANGE_P.
19588         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
19589         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19590         Properly query VN_INFO_RANGE_TYPE.
19592 2016-01-25  Nick Clifton  <nickc@redhat.com>
19594         PR target/66655
19595         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
19597 2016-01-23  Tom de Vries  <tom@codesourcery.com>
19599         PR tree-optimization/69426
19600         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
19601         removed clobber.
19603 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
19605         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
19606         "the the" with "the" in the comments.
19607         * ipa-devirt.c (build_type_inheritance_graph,
19608         update_type_inheritance_graph): Likewise.
19609         * tree.c (build_function_type_list_1): Likewise.
19610         * cfgloopmanip.c (scale_loop_profile): Likewise.
19611         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
19612         * gimple-ssa-split-paths.c
19613         (find_block_to_duplicate_for_splitting_paths): Likewise.
19614         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
19615         * expr.c (convert_move): Likewise.
19616         * var-tracking.c (vt_stack_adjustments): Likewise.
19617         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19618         * tree-vrp.c (test_for_singularity): Likewise.
19620         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
19621         directly instead of building a temporary tree.
19623         PR bootstrap/69434
19624         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
19625         remove <algorithm> include.
19627 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
19629         PR target/69432
19630         * config/i386/i386.c: Include dojump.h.
19631         (expand_small_movmem_or_setmem,
19632         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
19633         fixes.
19634         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
19635         if dynamic_check != -1.
19637 2016-01-21  Jeff Law  <law@redhat.com>
19639         PR middle-end/69347
19640         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
19641         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
19642         into dominated_by_p.
19643         (cprop_into_successor_phis): Avoid unnecessary tests.
19645 2016-01-22  Richard Henderson  <rth@redhat.com>
19647         PR target/69416
19648         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
19649         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
19651 2016-01-22  Michael Matz  <matz@suse.de>
19653         * system.h (string, algorithm): Include only conditionally.
19654         (new): Include always under C++.
19655         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
19656         * final.c (toplevel): Ditto.
19657         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
19658         * genconditions.c (write_header): Make gencondmd.c define
19659         INCLUDE_STRING.
19660         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
19662         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
19663         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
19665 2016-01-22  Christian Bruel  <christian.bruel@st.com>
19667         PR target/68674
19668         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
19670 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19672         PR target/69403
19673         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
19674         define_insn_and_split.  Ensure operands[1] and operands[0] do not
19675         get assigned the same register.
19677 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19679         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
19681 2016-01-22  Christian Bruel  <christian.bruel@st.com>
19683         * config/arm/arm-c.c (arm_pragma_target_parse):
19684         Remove warn_builtin_macro_redefined overwrite.
19686 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
19688         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
19689         flag_non_call_exceptions compatibility.
19691 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
19693         PR debug/66668
19694         * dwarf2out.c (add_child_die_after): New function.
19695         (dwarf_qual_info_t): New type.
19696         (dwarf_qual_info): New variable.
19697         (qualified_die_p): New function.
19698         (modified_type_die): For -fdebug-types-section, ensure
19699         canonical order of qualifiers.  Put qualified DIEs adjacent
19700         to the corresponding non-qualified type DIE and search there
19701         for existing qualified DIEs.
19703 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
19705         * doc/extend.texi (scalar_storage_order type attribute): Document
19706         restriction on type punning and aliasing, and remove future tense.
19708 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
19710         PR target/69252
19711         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
19712         first stage.
19714 2016-01-21  Jeff Law  <law@redhat.com>
19716         PR middle-end/69347
19717         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
19718         useless call to record_temporary_equivalences.
19719         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
19720         allocate 10 slots in the bb_path vector and let it grow as needed.
19721         (fsm_find_control_statement_thread_paths): Similarly for the next_path
19722         vector.
19724 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
19726         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
19727         Detangle.
19728         * configure: Regenerate.
19730 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
19732         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
19733         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
19735 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
19737         PR middle-end/66178
19738         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
19739         drop EXPAND_INITIALIZER.
19740         * rtl.h (contains_symbolic_reference_p): Declare.
19741         * rtlanal.c (contains_symbolic_reference_p): New function.
19742         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
19743         a subtraction into a NOT if symbolic constants are involved.
19745 2016-01-21  Anton Blanchard  <anton@samba.org>
19746             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19748         PR target/63354
19749         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
19750         #define.
19751         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
19752         function.
19754 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
19756         * config/microblaze/microblaze.c
19757         (get_branch_target): New.
19758         (insert_wic_for_ilb_runout): New.
19759         (insert_wic): New.
19760         (microblaze_machine_dependent_reorg): New.
19761         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
19762         * config/microblaze/microblaze.md
19763         (UNSPEC_IPREFETCH): Define.
19764         (iprefetch): New pattern
19765         * config/microblaze/microblaze.opt
19766         (mxl-prefetch): New flag.
19768 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
19770         * config/microblaze/microblaze.h
19771         (FIXED_REGISTERS): Update in macro.
19772         (CALL_USED_REGISTERS): Update in macro.
19774 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
19776         PR rtl-optimization/68920
19777         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
19778         moves.
19780 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19782         PR rtl-optimization/68990
19783         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
19784         pseudo instead of inheritance ones.
19786 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19787             Nick Clifton  <nickc@redhat.com>
19789         PR target/69129
19790         PR target/69012
19791         * config/mips/mips.c (mips_compute_frame_info): Initialise
19792         args_size and hard_frame_pointer_offset fields of the frame
19793         structure before calling mips_global_pointer.
19795 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
19797         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
19798         label reference.
19799         * configure: Regenerate.
19801 2016-01-21  Richard Biener  <rguenther@suse.de>
19803         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
19805 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
19807         * config/s390/s390.c (s390_asm_declare_function_size): Add code
19808         to actually emit the .size directive.
19810 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
19811              Jakub Jelinek  <jakub@redhat.com>
19813         PR target/69187
19814         PR target/65624
19815         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
19816         args array size by one to avoid buffer overflow.
19818 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
19820         * config/s390/s390.md (pool_section_start): Use switch_to_section
19821         to select proper read-only data section instead of hardcoding
19822         .rodata.
19823         (pool_section_end): Use switch_to_section to match the above.
19825 2016-01-21  Richard Biener  <rguenther@suse.de>
19827         PR tree-optimization/69378
19828         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
19829         (set_ssa_val_to): Use it for dominance checks taking into
19830         account not executable edges.
19832 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
19834         PR c++/69355
19835         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
19836         for bitsize instead of GET_MODE_PRECISION (mode).
19838 2016-01-20  Martin Sebor  <msebor@redhat.com>
19840         PR c/52291
19841         * extend.texi (__sync Builtins): Clarify the semantics of
19842         __sync_fetch_and_OP built-ins on pointers.
19843         (__atomic Builtins): Same.
19845 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19846             Sebastian Pop  <s.pop@samsung.com>
19848         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
19849         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
19850         (is_valid_rename): Same.
19851         (translate_isl_ast_to_gimple::get_rename): Same.
19852         (translate_isl_ast_to_gimple::rename_all_uses): Same.
19853         (translate_isl_ast_to_gimple::rename_uses): Same.
19854         (get_new_name): Check for close_phi nodes.
19855         (copy_loop_phi_args): Use phi_node_kind.
19856         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
19857         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
19859 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19860             Sebastian Pop  <s.pop@samsung.com>
19862         Revert commit r229783.
19863         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
19864         Remove use of parameter_rename_map.
19865         (copy_def): Remove.
19866         (copy_internal_parameters): Remove.
19867         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
19868         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
19869         (free_sese_info): Do not free parameter_rename_map.
19870         (set_rename): Do not use parameter_rename_map.
19871         (rename_uses): Update call to set_rename.
19872         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
19873         * sese.h (parameter_rename_map_t): Remove.
19874         (struct sese_info_t): Remove field parameter_rename_map.
19876 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19877             Sebastian Pop  <s.pop@samsung.com>
19879         * graphite-isl-ast-to-gimple.c: Fix comment.
19880         * graphite-scop-detection.c (defined_in_loop_p): New.
19881         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
19882         names defined in loop.
19884 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19885             Sebastian Pop  <s.pop@samsung.com>
19887         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
19888         Discard unstructured if-then-else regions.
19890 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19891             Sebastian Pop  <s.pop@samsung.com>
19893         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
19894         (cleanup_loop_iter_dom): Remove.
19895         (build_loop_iteration_domains): Remove.
19896         (build_scop_context): Remove.
19897         (build_scop_iteration_domain): Remove.
19898         (add_loop_constraints): New.
19899         (build_iteration_domains): New.
19900         (build_poly_scop): Call build_iteration_domains.
19902 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19903             Sebastian Pop  <s.pop@samsung.com>
19905         * graphite-scop-detection.c
19906         (scop_detection::harmful_loop_in_region): Free dom and loops.
19907         (scop_detection::loop_body_is_valid_scop): Free bbs.
19909 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19910             Sebastian Pop  <s.pop@samsung.com>
19912         * graphite-scop-detection.c (record_loop_in_sese): New.
19913         (gather_bbs::before_dom_children): Call record_loop_in_sese.
19914         (build_scops): Remove call to build_sese_loop_nests.
19915         * sese.c (sese_record_loop): Remove.
19916         (build_sese_loop_nests): Remove.
19917         (new_sese_info): Remove region->loops.
19918         (free_sese_info): Same.
19919         * sese.h (sese_contains_loop): Same.
19920         (build_sese_loop_nests): Remove.
19921         (sese_contains_loop): Remove.
19923 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19924             Sebastian Pop  <s.pop@samsung.com>
19926         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
19927         loop_is_valid_in_scop.
19928         (scop_detection::harmful_stmt_in_region): Renamed
19929         harmful_loop_in_region.
19930         Call loop_is_valid_in_scop.
19932 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19933             Sebastian Pop  <s.pop@samsung.com>
19935         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
19936         isl_ast_node_mark.
19938 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19939             Sebastian Pop  <s.pop@samsung.com>
19941         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
19942         * graphite.h (struct poly_bb): Remove field is_reduction.
19943         (PBB_IS_REDUCTION): Remove.
19945 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
19946             Sebastian Pop  <s.pop@samsung.com>
19948         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
19949         (add_pdr_constraints): Same.
19950         (scop_get_reads): Same.
19951         (scop_get_must_writes): Same.
19952         (scop_get_may_writes): Same.
19953         (scop_get_original_schedule): Same.
19954         (extend_schedule): Same.
19955         (apply_schedule_on_deps): Same.
19956         (carries_deps): Same.
19957         (compute_deps): Same.
19958         (scop_get_dependences): Same.
19959         * graphite-isl-ast-to-gimple.c
19960         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
19961         * graphite-optimize-isl.c (get_schedule_for_band): Same.
19962         (get_schedule_for_band_list): Same.
19963         (get_schedule_map): Same.
19964         (apply_schedule_map_to_scop): Same.
19965         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
19966         (build_loop_iteration_domains): Same.
19967         (add_condition_to_pbb): Same.
19968         (add_param_constraints): Same.
19969         (pdr_add_memory_accesses): Same.
19970         (pdr_add_data_dimensions): Same.
19972 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
19974         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
19975         requirements.
19977 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
19979         * common.opt (feliminate-dwarf2-dups): Replace references to
19980         "DWARF 2" with just "DWARF".
19981         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
19982         * doc/extend.texi: Likewise.
19983         * doc/cpp.texi: Likewise.
19984         * doc/invoke.texi: Likewise.
19985         (Option Summary): Add -gdwarf to list of Debugging Options.
19986         (Debugging Options): Document -gdwarf.
19987         * doc/contrib.texi: Spell "DWARF" like that.
19989 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
19991         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
19992         warning.  Fix up formatting.
19994         PR middle-end/67653
19995         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
19996         attempt to mark memory input operand addressable and
19997         call prepare_gimple_addressable in that case.  Don't adjust
19998         input_location for diagnostics, use error_at instead.
20000 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
20002         * config/rs6000/ppc-auxv.h: New file.
20003         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
20004         (cpu_is): Likewise.
20005         (cpu_supports): Likewise.
20006         * config/rs6000/rs6000.c: include "ppc-auxv.h".
20007         (cpu_is_info): New variable.
20008         (cpu_supports_info): Likewise.
20009         (tcb_verification_symbol): Likewise.
20010         (cpu_builtin_p): Likewise.
20011         (cpu_expand_builtin): New function.
20012         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
20013         (rs6000_init_builtins): Likewise.
20014         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
20015         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
20016         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
20017         * configure: Regenerate.
20018         * config.in: Likewise.
20019         * doc/extend.texi (PowerPC Built-in Functions): Document
20020         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
20022 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
20024         PR target/68609
20025         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
20026         domain check.
20027         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
20028         for V4SFmode.
20030 2016-01-20  Richard Henderson  <rth@redhat.com>
20032         PR bootstrap/69343
20033         PR bootstrap/69339
20034         PR tree-opt/68964
20035         Revert:
20036         * tree.c (tm_define_builtin): New.
20037         (find_tm_vector_type): New.
20038         (build_tm_vector_builtins): New.
20039         (build_common_builtin_nodes): Call it.
20041 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
20043         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
20044         (arm_fp_ok): Likewise.
20045         (arm_fp): Likewise.
20046         (arm_crypto): Likewise.
20048 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20049             Richard Biener  <rguenther@suse.de>
20051         PR tree-optimization/69328
20052         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
20053         vectors have same number of elements.
20054         (vectorizable_condition): Fix masked version recognition.
20056 2016-01-20  Richard Biener  <rguenther@suse.de>
20058         PR tree-optimization/69345
20059         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
20060         (VN_INFO_PTR_INFO): Likewise.
20061         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
20062         info when it is equal between non-dominating SSA names.
20063         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20064         Make sure to look at original SSA infos.
20066 2016-01-20  Jeff Law  <law@redhat.com>
20068         PR target/25114
20069         * config/m68k/predicates.md (pow2_m1_operand): New predicate
20070         extracted from ...
20071         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
20072         (pc_or_label_operand): New predicate.
20073         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
20074         tests for small integers that are 2^n - 1.
20076 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
20078         * doc/invoke.texi (Options Summary): Add '.' after @xref.
20080 2016-01-19  Jeff Law  <law@redhat.com>
20082         PR middle-end/69347
20083         * tree-ssa-threadbackwards.c
20084         (fsm_find_control_statement_thread_paths): Do not try to lookup
20085         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
20087 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20089         * doc/lto.texi: Remove text that says only Gold has linker plugin
20090         support.
20092 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
20094         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
20095         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
20096         the DIE accordingly.
20097         (modified_type_die): Add REVERSE parameter and pass it recursively,
20098         as well as to base_type_die.  Adjust presence check accordingly.
20099         (base_type_for_mode): Adjust call to modified_type_die.
20100         (add_type_attribute): Add REVERSE parameter and pass it to
20101         modified_type_die.
20102         (generic_parameter_die): Adjust call to add_type_attribute.
20103         (add_scalar_info): Likewise.
20104         (add_subscript_info): Likewise.
20105         (gen_array_type_die): Likewise.
20106         (gen_descr_array_type_die): Likewise.
20107         (gen_entry_point_die): Likewise.
20108         (gen_enumeration_type_die): Likewise.
20109         (gen_formal_parameter_die): Likewise.
20110         (gen_subprogram_die): Likewise.
20111         (gen_variable_die ): Likewise.
20112         (gen_const_die): Likewise.
20113         (gen_field_die): Likewise.
20114         (gen_pointer_type_die): Likewise.
20115         (gen_reference_type_die): Likewise.
20116         (gen_ptr_to_mbr_type_die): Likewise.
20117         (gen_inheritance_die): Likewise.
20118         (gen_subroutine_type_die): Likewise.
20119         (gen_typedef_die): Likewise.
20120         (force_type_die): Adjust call to modified_type_die.
20122 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
20124         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
20125         flow throughout the file.  Fix broken link to Objective-C 2.0
20126         documentation.
20127         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
20128         errors.
20130 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20132         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
20134 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20136         PR ipa/66223
20137         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
20138         (maybe_record_node): Record cxa_pure_virtual as the only possible
20139         target if there are not ohter candidates.
20140         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
20142 2016-01-19  Richard Biener  <rguenther@suse.de>
20144         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
20145         (get_memory_order): Likewise.
20147 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
20149         * tree-vect-stmts.c (vectorizable_store): Check
20150         rhs vectype.
20152 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
20154         PR jit/68446
20155         * gcc.c (driver::decode_argv): Add call to
20156         init_opts_obstack before init_options_struct.
20157         * opts.c (init_opts_obstack): Remove idempotency.
20158         (init_options_struct): Replace call to init_opts_obstack
20159         with a gcc_assert to verify that it has already been called.
20160         * toplev.c (toplev::main): Add call to init_opts_obstack before
20161         calls to init_options_struct.
20162         (toplev::finalize): Move cleanup of opts_obstack next to
20163         cleanup of save_decoded_options, clearing the latter, and
20164         save_decoded_options_count.
20166 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20168         PR target/69135
20169         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
20170         attribute to unconditional.  Remove %? from output template.
20172 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20173             Jiong Wang  <jiong.wang@arm.com>
20175         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
20176         generated from different expand order.
20178 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20180         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
20181         Add support for CCMP costing.
20183 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20185         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
20186         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
20187         (fccmpe<mode>): Likewise.
20188         (fcmp): Rename to fcmp and globalize pattern.
20189         (fcmpe): Likewise.
20190         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
20191         (aarch64_gen_ccmp_next): Add FP support.
20193 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20195         * target.def (gen_ccmp_first): Update documentation.
20196         (gen_ccmp_next): Likewise.
20197         * doc/tm.texi (gen_ccmp_first): Update documentation.
20198         (gen_ccmp_next): Likewise.
20199         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
20200         expand_ccmp_expr_1.  Improve comments.
20201         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
20202         (ccmp_ior<mode>): Remove pattern.
20203         (cmp<mode>): Remove expand.
20204         (cmp): Globalize pattern.
20205         (cstorecc4): Use cc_register.
20206         (mov<mode>cc): Remove ccmp_cc_register check.
20207         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
20208         Simplify after removal of CC_DNE/* modes.
20209         (aarch64_ccmp_mode_to_code): Remove.
20210         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
20211         In 'k' case use integer as condition.
20212         (aarch64_nzcv_codes): Remove inverted cases.
20213         (aarch64_code_to_ccmode): Remove.
20214         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
20215         comparison with CC register to be used in folowing CCMP/branch/CSEL.
20216         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
20217         pattern.  Return the comparison with CC register.  Invert conditions
20218         when bitcode is OR.
20219         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
20220         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
20222 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20224         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
20225         instrumented_version.
20227 2016-01-19  Richard Biener  <rguenther@suse.de>
20229         PR tree-optimization/69336
20230         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
20231         handled components with get_ref_base_and_extent.
20232         (equal_mem_array_ref_p): Adjust.
20234 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
20236         PR debug/65779
20237         * shrink-wrap.c: Include valtrack.h.
20238         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
20239         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
20240         in between insn and where it will be moved to.  Call
20241         dead_debug_insert_temp.
20242         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
20243         first and dead_debug_local_finish at the end.
20244         For uses and defs bitmap, handle all regs in between REGNO and
20245         END_REGNO, not just the first one.
20247 2016-01-19  Richard Biener  <rguenther@suse.de>
20249         PR tree-optimization/69352
20250         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
20251         (equal_mem_array_ref_p): Constrain size and max size properly.
20252         Compare the reverse flag.
20254 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
20256         * ira.c (ira): Update regstat data if we deleted insns.
20258 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
20260         PR rtl-optimization/68955
20261         PR rtl-optimization/64557
20262         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
20263         here.  Fix up formatting.
20264         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
20266 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20268         PR lto/69133
20269         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
20270         assume that the node has body.
20271         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
20272         check.
20274 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20276         * lto-streamer-out.c (lto_output): Do not stream instrumentation
20277         thunks.
20279 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20281         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
20282         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
20284 2016-01-19  Martin Jambor  <mjambor@suse.cz>
20285             Martin Liska  <mliska@suse.cz>
20286             Michael Matz  <matz@suse.de>
20288         * Makefile.in (OBJS): Add new source files.
20289         (GTFILES): Add hsa.c.
20290         * common.opt (disable_hsa): New variable.
20291         (-Whsa): New warning.
20292         * config.in (ENABLE_HSA): New.
20293         * configure.ac: Treat hsa differently from other accelerators.
20294         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
20295         $enable_offloading.
20296         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
20297         * doc/install.texi (Configuration): Document --with-hsa-runtime,
20298         --with-hsa-runtime-include, --with-hsa-runtime-lib and
20299         --with-hsa-kmt-lib.
20300         * doc/invoke.texi (-Whsa): Document.
20301         (hsa-gen-debug-stores): Likewise.
20302         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
20303         to invoke offload compiler for hsa acclerator.
20304         * opts.c (common_handle_option): Determine whether HSA offloading
20305         should be performed.
20306         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
20307         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
20308         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
20309         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
20310         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
20311         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
20312         GF_OMP_FOR_KIND_GRID_LOOP.
20313         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
20314         (pp_gimple_stmt_1): Likewise.
20315         * gimple-walk.c (walk_gimple_stmt): Likewise.
20316         * gimple.c (gimple_build_omp_grid_body): New function.
20317         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
20318         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
20319         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
20320         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
20321         GF_OMP_TEAMS_GRID_PHONY.
20322         (gimple_statement_omp_single_layout): Updated comments.
20323         (gimple_build_omp_grid_body): New function.
20324         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
20325         (gimple_omp_for_grid_phony): New function.
20326         (gimple_omp_for_set_grid_phony): Likewise.
20327         (gimple_omp_parallel_grid_phony): Likewise.
20328         (gimple_omp_parallel_set_grid_phony): Likewise.
20329         (gimple_omp_teams_grid_phony): Likewise.
20330         (gimple_omp_teams_set_grid_phony): Likewise.
20331         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
20332         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
20333         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
20334         (BUILT_IN_GOMP_TARGET): Updated type.
20335         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
20336         (adjust_for_condition): New function.
20337         (get_omp_for_step_from_incr): Likewise.
20338         (extract_omp_for_data): Moved parts to adjust_for_condition and
20339         get_omp_for_step_from_incr.
20340         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
20341         (fixup_child_record_type): Bail out if receiver_decl is NULL.
20342         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
20343         (scan_omp_parallel): Do not create child functions for phony
20344         constructs.
20345         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
20346         (scan_omp_1_op): Checking assert we are not remapping to
20347         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
20348         (parallel_needs_hsa_kernel_p): New function.
20349         (expand_parallel_call): Register apprpriate parallel child
20350         functions as HSA kernels.
20351         (grid_launch_attributes_trees): New type.
20352         (grid_attr_trees): New variable.
20353         (grid_create_kernel_launch_attr_types): New function.
20354         (grid_insert_store_range_dim): Likewise.
20355         (grid_get_kernel_launch_attributes): Likewise.
20356         (get_target_argument_identifier_1): Likewise.
20357         (get_target_argument_identifier): Likewise.
20358         (get_target_argument_value): Likewise.
20359         (push_target_argument_according_to_value): Likewise.
20360         (get_target_arguments): Likewise.
20361         (expand_omp_target): Call get_target_arguments instead of looking
20362         up for teams and thread limit.
20363         (grid_expand_omp_for_loop): New function.
20364         (grid_arg_decl_map): New type.
20365         (grid_remap_kernel_arg_accesses): New function.
20366         (grid_expand_target_kernel_body): New function.
20367         (expand_omp): Call it.
20368         (lower_omp_for): Do not emit phony constructs.
20369         (lower_omp_taskreg): Do not emit phony constructs but create for them
20370         a temporary variable receiver_decl.
20371         (lower_omp_taskreg): Do not emit phony constructs.
20372         (lower_omp_teams): Likewise.
20373         (lower_omp_grid_body): New function.
20374         (lower_omp_1): Call it.
20375         (grid_reg_assignment_to_local_var_p): New function.
20376         (grid_seq_only_contains_local_assignments): Likewise.
20377         (grid_find_single_omp_among_assignments_1): Likewise.
20378         (grid_find_single_omp_among_assignments): Likewise.
20379         (grid_find_ungridifiable_statement): Likewise.
20380         (grid_target_follows_gridifiable_pattern): Likewise.
20381         (grid_remap_prebody_decls): Likewise.
20382         (grid_copy_leading_local_assignments): Likewise.
20383         (grid_process_kernel_body_copy): Likewise.
20384         (grid_attempt_target_gridification): Likewise.
20385         (grid_gridify_all_targets_stmt): Likewise.
20386         (grid_gridify_all_targets): Likewise.
20387         (execute_lower_omp): Call grid_gridify_all_targets.
20388         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
20389         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
20390         (tree_omp_clause): Added union field dimension.
20391         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
20392         * tree.c (omp_clause_num_ops): Added number of arguments of
20393         OMP_CLAUSE__GRIDDIM_.
20394         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
20395         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
20396         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
20397         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
20398         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
20399         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
20400         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
20401         * tree-pass.h (make_pass_gen_hsail): Declare.
20402         (make_pass_ipa_hsa): Likewise.
20403         * ipa-hsa.c: New file.
20404         * lto-section-in.c (lto_section_name): Add hsa section name.
20405         * lto-streamer.h (lto_section_type): Add hsa section.
20406         * timevar.def (TV_IPA_HSA): New.
20407         * hsa-brig-format.h: New file.
20408         * hsa-brig.c: New file.
20409         * hsa-dump.c: Likewise.
20410         * hsa-gen.c: Likewise.
20411         * hsa.c: Likewise.
20412         * hsa.h: Likewise.
20413         * toplev.c (compile_file): Call hsa_output_brig.
20414         * hsa-regalloc.c: New file.
20416 2016-01-18  Jeff Law  <law@redhat.com>
20418         PR tree-optimization/69320
20419         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
20420         ranged object, do nothing if the RHS constant is not [0..1].
20421         (optimize_stmt): Comparing a boolean ranged object against a
20422         constant outside [0..1] results in a compile-time constant.
20424         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
20425         test.
20427 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
20429         * doc/invoke.texi (Invoking GCC): Add new section to menu.
20430         (Option Summary): Update to reflect new section and moved options.
20431         (C++ Dialect Options): Move -fstats to new section.
20432         (Debugging Options): Move all dump, statistics, and other GCC
20433         developer options to new section.  Rewrite section introduction
20434         and re-order remaining options to put the more basic ones first.
20435         (Optimization Options): Move -fira-verbose and -flto-report* to
20436         new section.
20437         (Developer Options): New section incorporating moved options.
20438         * doc/cppopts.texi (-dM): Update cross-reference.
20440 2016-01-18  Richard Henderson  <rth@redhat.com>
20442         PR target/69176
20443         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
20444         operands to pseudo only if CSE is expected.  Split long immediate
20445         operands only after reload, and for the stack pointer.
20446         (*add<GPI>3_pluslong): Remove.
20447         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
20448         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
20449         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
20450         (*add<GPI>3 peepholes): New.
20451         (*add<GPI>3 splitters): New.
20452         * config/aarch64/constraints.md (Upl): New.
20453         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
20455 2016-01-18  Richard Biener  <rguenther@suse.de>
20457         PR tree-optimization/69297
20458         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
20459         stmt at most once.
20460         (vect_bb_vectorization_profitable_p): Clear visited flag again.
20462 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
20464         PR middle-end/68542
20465         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
20466         of mixind vector and scalar types.
20467         (fold_relational_const): Add handling of vector
20468         comparison with boolean result.
20469         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
20470         comparison of vector operands with boolean result for EQ/NE only.
20471         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
20472         (verify_gimple_cond): Likewise.
20473         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
20474         valid type of VAL.
20476 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
20478         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
20479         !TARGET_OCTEON.
20481 2016-01-18  Richard Biener  <rguenther@suse.de>
20483         PR middle-end/69308
20484         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
20486 2016-01-18  Tom de Vries  <tom@codesourcery.com>
20488         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
20490 2016-01-18  Tom de Vries  <tom@codesourcery.com>
20492         * omp-low.c (set_oacc_fn_attrib): Make extern.
20493         * omp-low.h (set_oacc_fn_attrib): Declare.
20494         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
20495         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
20496         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
20497         Add and handle function parameter oacc_kernels_p.
20498         (find_reduc_addr, get_omp_data_i_param): New function.
20499         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
20500         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
20501         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
20502         Calculate dominance info.  Skip loops that are not in a kernels region
20503         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
20504         (pass_parallelize_loops::execute): Call parallelize_loops with
20505         oacc_kernels_p argument.
20506         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
20507         New member function.
20508         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
20509         * passes.def: Add argument to pass_parallelize_loops instantation.
20511 2016-01-18  Tom de Vries  <tom@codesourcery.com>
20513         * tree-parloops.c (pass_parallelize_loops::execute): Allow
20514         pass_parallelize_loops to be run outside the loop pipeline.
20516 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
20518         * tree-scalar-evolution.c (follow_copies_to_constant): New.
20519         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
20521 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
20523         PR target/63679
20524         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
20525         using get_ref_base_and_extent.
20526         (equal_mem_array_ref_p): New.
20527         (hashable_expr_equal_p): Add call to previous.
20529 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
20531         PR target/63679
20532         * tree-sra.c (disqualified_constants, constant_decl_p): New.
20533         (sra_initialize): Allocate disqualified_constants.
20534         (sra_deinitialize): Free disqualified_constants.
20535         (disqualify_candidate): Update disqualified_constants when appropriate.
20536         (create_access): Scan for constant-pool entries as we go along.
20537         (scalarizable_type_p): Add check against type_contains_placeholder_p.
20538         (maybe_add_sra_candidate): Allow constant-pool entries.
20539         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
20540         (initialize_constant_pool_replacements): New.
20541         (sra_modify_assign): Avoid mangling assignments created by previous,
20542         and don't generate writes into constant pool.
20543         (sra_modify_function_body): Call initialize_constant_pool_replacements.
20545 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20547         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
20548         andnot instruction.
20549         (scalar_chain::convert_op): Likewise.
20550         * config/i386/i386.md (*andndi3_doubleword): New.
20552 2016-01-18  Richard Biener  <rguenther@suse.de>
20554         PR tree-optimization/69170
20555         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
20556         building a vector from scalar results of a pattern stmt.
20558 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
20560         * haifa-sched.c (autopref_multipass_init): Work around
20561         -Wmaybe-uninitialized warning.
20563 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20565         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
20566         against the constant 0.
20568 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20570         PR tree-optimization/68799
20571         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
20572         look up phi candidates in the statement-candidate map.
20573         (phi_add_costs): Likewise.
20574         (record_phi_increments): Likewise.
20575         (phi_incr_cost): Likewise.
20576         (ncd_with_phi): Likewise.
20577         (all_phi_incrs_profitable): Likewise.
20579 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
20581         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
20582         -Wmaybe-uninitialized warning.
20584 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
20586         * doc/invoke.texi (Invoking GCC): Add new section to menu.
20587         (Option Summary): Update to reflect new section and moved options.
20588         (C++ Dialect Options): Move -fvtable-verify and related options.
20589         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
20590         and profiling-related options.
20591         (Optimization Options): Move profile generation options and
20592         -fstack-protector and related options.
20593         (Instrumentation Options): New section incorporating moved options.
20594         (Code Generation Options): Move -finstrument-functions and
20595         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
20597 2016-01-16  Tom de Vries  <tom@codesourcery.com>
20599         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
20601 2016-01-16  Tom de Vries  <tom@codesourcery.com>
20603         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
20605 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
20607         * hash-table.h (hash_table::empty): Turn into an inline wrapper
20608         that checks whether the table is already empty.  Rename the
20609         original implementation to...
20610         (hash_table::empty_slot): ...this new private function.
20612 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
20614         PR diagnostic/68899
20615         * diagnostic-show-locus.c (layout::print_source_line): Move x
20616         offset of line until after call to
20617         get_line_width_without_trailing_whitespace.
20619 2016-01-15  Jeff Law  <law@redhat.com>
20621         PR tree-optimization/69270
20622         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
20623         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
20624         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
20625         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
20626         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
20627         ssa_name_has_boolean_range and constant_boolean_node.
20629 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
20631         PR rtl-optimization/69030
20632         * lra-spills.c (remove_pseudos): Check nrefs and make the function
20633         returning bool.
20634         (spill_pseudos): Delete debug insn for dead pseudo.
20635         (lra_spill): Initiate spill_hard_reg and slots memory separately.
20637 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
20639         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
20640         New.
20641         (TYPES_UNOPUS): Likewise.
20642         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
20643         builtin type, from UNOP to UNOPUS.
20644         (lbtruncuv4sf): Likewise.
20645         (lbtruncuv2df): Likewise.
20646         (lrounduv2sf): Likewise.
20647         (lrounduv4sf): Likewise.
20648         (lrounduv2df): Likewise.
20649         (lroundusf): Likewise.
20650         (lroundusf): Likewise.
20651         (lceiluv2sf): Likewise.
20652         (lceiluv4sf): Likewise.
20653         (lceiluv2df): Likewise.
20654         (lceilusf): Likewise.
20655         (lceiludf): Likewise.
20656         (lflooruv2sf): Likewise.
20657         (lflooruv4sf): Likewise.
20658         (lflooruv2df): Likewise.
20659         (lfloorusf): Likewise.
20660         (lfloorudf): Likewise.
20661         (lfrintnuv2sf): Likewise.
20662         (lfrintnuv4sf): Likewise.
20663         (lfrintnuv2df): Likewise.
20664         (lfrintnusf): Likewise.
20665         (lfrintnudf): Likewise.
20666         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
20667         conversion.
20668         (vcvtq_u32_f32): Likewise.
20669         (vcvtq_u64_f64): Likewise.
20670         (vcvta_u32_f32): Likewise.
20671         (vcvtaq_u32_f32): Likewise.
20672         (vcvtaq_u64_f64): Likewise.
20673         (vcvtm_u32_f32): Likewise.
20674         (vcvtmq_u32_f32): Likewise.
20675         (vcvtmq_u64_f64): Likewise.
20676         (vcvtn_u32_f32): Likwise.
20677         (vcvtnq_u32_f32): Likewise.
20678         (vcvtnq_u64_f64): Likewise.
20679         (vcvtp_u32_f32): Likewise.
20680         (vcvtpq_u32_f32): Likewise.
20681         (vcvtpq_u64_f64): Likewise.
20682         (vcvtmd_u64_f64): Likewise.
20683         (vcvtms_u32_f32): Likewise.
20684         (vcvtad_u64_f64): Likewise.
20685         (vcvtas_u32_f32): Likewise.
20686         (vcvtnd_u64_f64): Likewise.
20687         (vcvtns_u32_f32): Likewise.
20688         (vcvtpd_u64_f64): Likewise.
20689         (vcvtps_u32_f32): Likewise.
20691 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20693         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
20694         CSEL of zero_extended registers.
20696 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20698         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20699         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
20701 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20703         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
20704         false when argument string is not found in the attributes table
20705         at all.
20707 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
20709         PR target/68609
20710         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
20711         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
20712         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
20713         precision estimate.
20715 2016-01-15  Richard Biener  <rguenther@suse.de>
20717         PR tree-optimization/66856
20718         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
20719         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
20720         (vect_create_new_slp_node): Increment stmt reference count.
20721         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
20722         an SLP tree before swapping operands.
20723         (vect_build_slp_tree): Likewise.
20724         (destroy_bb_vec_info): Free stmt info after SLP instances.
20725         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
20726         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
20727         (STMT_VINFO_NUM_SLP_USES): New macro.
20729 2016-01-15  Richard Biener  <rguenther@suse.de>
20731         PR debug/69137
20732         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
20733         (add_linkage_name): ... here.
20734         (gen_typedef_die): Use add_linkage_name_raw instead of
20735         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
20736         if necessary.
20738 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
20740         * gimplify.c (oacc_default_clause): Decode reference and pointer
20741         types for both kernels and parallel regions.
20743 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
20745         PR middle-end/69246
20746         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
20748 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
20750         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
20751         (convert_scalars_to_vector): Likewise.
20753 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
20755         * doc/extend.texi (Type Traits): Fix grammar.
20757 2016-01-15  Martin Jambor  <mjambor@suse.cz>
20759         * tree-inline.c (remap_decl): Use existing dclarations if
20760         remapping a type and prevent_decl_creation_for_types.
20761         (replace_locals_stmt): Do an initial remapping of non-VLA typed
20762         decls first.  Do real remapping with
20763         prevent_decl_creation_for_types set.
20764         * tree-inline.h (copy_body_data): New field
20765         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
20766         padding.
20768 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20770         * config/s390/s390.opt (mmvcle): More verbose help text.
20772 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20774         * config/s390/s390.opt: Add period to -mzvector option text.
20776 2016-01-15  Richard Biener  <rguenther@suse.de>
20778         PR tree-optimization/68961
20779         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
20780         of invariants in stores again.
20782 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20784         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
20786 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
20788         * config/i386/i386.c (ix86_expand_branch): Don't split
20789         DI mode xor instruction to SI mode.
20791 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
20793         PR ipa/68148
20794         * ipa-icf.c (sem_function::merge): Virtual functions may become
20795         reachable even if they address is not taken and there are no
20796         idrect calls.
20798 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
20800         * lto-streamer-out.c (subtract_estimated_size): New function.
20801         (get_symbol_initial_value): Use it.
20803 2016-01-15  Christian Bruel  <christian.bruel@st.com>
20805         PR target/65837
20806         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
20807         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
20808         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
20809         use add_builtin_function_ext_scope instead of add_builtin_function.
20810         (neon_set_p, neon_crypto_set_p): Remove.
20811         (arm_init_builtins): Always call arm_init_neon_builtins and
20812         arm_init_crypto_builtins.
20813         (arm_expand_builtin): Check that builtins are allowed for the arch.
20814         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
20815         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
20816         arm_init_neon_builtins call.
20818 2016-01-15  Richard Biener  <rguenther@suse.de>
20820         PR tree-optimization/69117
20821         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
20822         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
20823         of the leader conservatively.
20824         (free_scc_vn): Restore original SSA name infos.
20826 2016-01-14  Jeff Law  <law@redhat.com>
20828         PR tree-optimization/69270
20829         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
20830         single bit of precision, verify it's also unsigned.
20831         (record_edge_info): Use constant_boolean_node rather than fold_convert
20832         to convert boolean_true/boolean_false to the right type.
20834 2016-01-14  Richard Henderson  <rth@redhat.com>
20836         PR rtl-opt/69014
20837         * loop-doloop.c (record_reg_sets): New.
20838         (doloop_optimize): Reject the transform if the sequence
20839         clobbers registers live at the end of the loop block.
20840         (doloop_optimize_loops): Enable df_live if needed.
20842 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20844         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
20845         * config/rs6000/rs6000.c: Likewise.
20846         * config/rs6000/rs6000.h: Likewise.
20847         * config/rs6000/rs6000.md: Likewise.
20848         * doc/extend.texi: Likewsie.
20850 2016-01-14  Jeff Law  <law@redhat.com>
20852         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
20853         typo.
20855 2016-01-14  Richard Henderson  <rth@redhat.com>
20857         PR c/69272
20858         PR tree-opt/68964
20859         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
20860         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
20861         instead of builtin_decl_declared_p to test for declaration.
20863 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
20865         * doc/loop.texi (Loop Analysis and Representation): Document
20866         loop_depth function.
20868 2016-01-14  Tom de Vries  <tom@codesourcery.com>
20870         PR tree-optimization/68773
20871         * omp-low.c (expand_omp_target): Don't set force_output.
20872         * varpool.c (varpool_node::get_create): Same.
20873         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
20874         offload_funcs with force_output.
20876 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
20878         PR debug/69244
20879         * lra-eliminations.c (move_plus_up): Don't change anything if either
20880         the outer or inner subreg mode is not MODE_INT.
20881         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
20882         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
20884 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
20886         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
20887         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
20888         reduc_uplus_@var{m}): Remove.
20889         * expr.c (expand_expr_real_2): Remove expansion path for
20890         reduc_[us](min|max|plus) optabs.
20891         * optabs-tree.c (scalar_reduc_to_vector): Remove.
20892         * optabs-tree.h (scalar_reduc_to_vector): Remove.
20893         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
20894         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
20895         * tree-vect-loop.c (vectorizable_reduction): Remove test for
20896         reduc_[us](min|max|plus) optabs.
20898 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
20900         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
20901         (reduc_plus_scal_v2sf): New.
20902         (reduc_smax_v2sf): Rename to...
20903         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
20904         (reduc_smin_v2sf): Rename to...
20905         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
20907 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
20909         * alias.c (compare_base_symbol_refs): New function.
20910         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
20911         it.
20913 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
20915         PR middle-end/68146
20916         PR tree-optimization/69155
20917         * tree-complex.c: Include cfganal.h.
20918         (phis_to_revisit): New variable.
20919         (extract_component): Add phiarg_p argument.  Assert that returned
20920         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
20921         (update_phi_components): Partly rewrite to use loop over real/imag
20922         components instead of code duplication.  If extract_component returns
20923         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
20924         create_tmp_reg into the PHI node instead, and mention the phi triplet
20925         in phis_to_revisit.
20926         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
20927         in phis_to_revisit at the end.
20929 2016-01-14  Richard Biener  <rguenther@suse.de>
20931         PR tree-optimization/68060
20932         * tree-vect-loop.c (vect_is_simple_reduction): Check the
20933         outer loop reduction is only used in the inner loop before
20934         detecting a double reduction.
20936 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
20938         PR target/68269
20939         * combine.c (expand_field_assignment): Punt if compute_mode is
20940         unsupported scalar mode.
20942 2016-01-14  Richard Biener  <rguenther@suse.de>
20944         PR tree-optimization/66856
20945         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
20946         SLP node only if it built successfully.
20947         (vect_analyze_slp_instance): Adjust.
20949 2016-01-14  Jeff Law  <law@redhat.com>
20951         PR tree-optimization/69270
20952         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
20953         (record_edge_info): Use it.  Convert boolean_{true,false}_node
20954         to the type of op0.
20956 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
20958         PR ipa/66487
20959         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
20960         use block_ultimate_origin
20961         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
20963 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
20965         * doc/invoke.texi (Submodel Options): Rename section to
20966         "Machine-Dependent Options" to better reflect its content.
20967         Rewrite introductory text to remove archaic CPU names.
20968         Update references.
20970 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
20972         * doc/invoke.texi (Code Gen Options): Move section up in file,
20973         before target-specific options.  Update menu and option summary
20974         to reflect the new section ordering.
20976 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
20978         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
20979         (C++ Dialect Options): Add cross-reference to -std option.
20980         * doc/standards.texi (C++ Language): Document C++14 support.
20982 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
20984         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
20985         for pack/unpack functions for __ibm128.
20986         (PACK_IF): Likewise.
20987         (UNPACK_IF): Likewise.
20989         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20990         support for __ibm128 pack/unpack functions.
20991         (rs6000_invalid_builtin): Likewise.
20992         (rs6000_init_builtins): Likewise.
20993         (rs6000_opt_masks): Likewise.
20995         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
20996         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
20997         functions
20998         (RS6000_BTM_COMMON): Likewise.
21000         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
21001         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
21002         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
21003         128-bit floating point.  Add support for the double values to be
21004         in Altivec registers for TF/IF packing and unpacking, but restrict
21005         TD packing sub-fields to be FPR registers.  Don't allow overlapped
21006         register support for packing.  Allow pack inputs to be memory
21007         locations.  Don't build generator functions for unpack<mode>_dm
21008         and unpack<mode>_nodm.
21009         (unpack<mode>_dm): Likewise.
21010         (unpack<mode>_nodm): Likewise.
21011         (pack<mode>): Likewise.
21013         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
21014         built-in functions to pack/unpack explicit __ibm128 values.
21015         (__builtin_unpack_ibm128): Likewise.
21017         * doc/extend.texi (PowerPC Built-in Functions): Document
21018         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
21020 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
21022         PR c/66208
21023         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
21024         Add new arg loc and pass it down as context.
21025         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
21026         to the location to use for the warning.
21027         (check_function_arguments): New arg loc.  All callers changed.  Pass
21028         it to check_function_nonnull.
21029         * c-common.h (check_function_arguments): Adjust declaration.
21031 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
21033         PR tree-optimization/69156
21034         * gimple.c (validate_type): Removed.
21035         (gimple_builtin_call_types_compatible_p): Use
21036         useless_type_conversion_p instead of validate_type.
21037         * value-prof.c (gimple_stringop_fixed_value): Fold
21038         icall_size to correct type.
21040 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
21042         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
21043         effects.
21045 2016-01-13  Richard Henderson  <rth@redhat.com>
21047         PR tree-opt/68964
21048         * target.def (builtin_tm_load, builtin_tm_store): Remove.
21049         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
21050         (ix86_builtin_tm_store): Remove.
21051         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
21052         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
21053         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
21054         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
21055         * doc/tm.texi: Rebuild.
21057         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
21058         (BUILT_IN_TM_MEMCPY_RTWN): New.
21059         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
21060         fallback from vector to integer helpers.
21061         (build_tm_load): Handle vector types directly, instead of
21062         via target hook.
21063         (build_tm_store): Likewise.
21064         (expand_assign_tm): Prepare for register types not handled by
21065         the above.  Copy them to memory and use memcpy.
21066         * tree.c (tm_define_builtin): New.
21067         (find_tm_vector_type): New.
21068         (build_tm_vector_builtins): New.
21069         (build_common_builtin_nodes): Call it.
21071 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
21073         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
21074         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
21076 2016-01-13  Tom de Vries  <tom@codesourcery.com>
21078         PR tree-optimization/69169
21079         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
21080         handled_struct_type param.
21081         (create_variable_info_for, intra_create_variable_infos): Call
21082         create_variable_info_for_1 with extra arg.
21084 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
21086         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
21087         and "armv8.1-a+crc" entries.
21089 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
21091         PR target/69228
21092         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
21093         Change first operand predicate from register_or_constm1_operand
21094         to register_operand.
21095         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
21096         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
21097         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
21098         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
21099         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
21100         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
21101         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
21102         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
21103         comparison with constm1_rtx from vec_prefetch_gen part.
21105 2016-01-13  Richard Biener  <rguenther@suse.de>
21107         PR tree-optimization/69013
21108         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
21109         Exchange assert for a test.
21111 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21113         PR target/69247
21114         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
21116 2016-01-13  Richard Biener  <rguenther@suse.de>
21118         PR tree-optimization/69242
21119         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
21120         assert with a check.
21122 2016-01-13  Richard Biener  <rguenther@suse.de>
21124         PR tree-optimization/69186
21125         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21126         Properly guard vect_update_misalignment_for_peel call.
21128 2016-01-12  Jeff Law  <law@redhat.com>
21130         PR tree-optimization/pr67755
21131         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
21132         "need_profile_correction".
21133         (thread_block_1): Initialize new field to false by default.  If we
21134         have multiple thread paths through a common joiner to different
21135         final targets, then set new field to true.
21136         (compute_path_counts): Only do count adjustment when it's really
21137         needed.
21139 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21141         * doc/invoke.texi (Spec Files): Move section down in file, past
21142         all command-line option descriptions.
21144 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21146         PR middle-end/54809
21147         * doc/gty.texi: Remove documentation of mark_hook.
21148         * gengtype.c (struct write_types_data): Remove code to support
21149         mark_hook attribute.
21150         (walk_type): Likewise.
21151         (write_func_for_structure): Likewise.
21153 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21155         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
21156         Directory Options, and -specs= to Overall Options.
21157         (Overall Options): Adjust similarly.  Reorder to group related
21158         options together.  Make -specs= cross-reference the spec file details.
21159         (Directory Options): Adjust similarly.
21161 2016-01-12  Jeff Law  <law@redhat.com>
21163         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
21165 2016-01-12  Olivier Hainque  <hainque@adacore.com>
21167         * gcc.c (spec_undefvar_allowed): New global.
21168         (process_command): Set to true when running for --version or --help,
21169         alone or together.
21170         (getenv_spec_function): When the variable is not defined, use the
21171         variable name as the variable value if we're allowed not to issue
21172         a fatal error.
21174 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
21176         PR tree-optimization/68911
21177         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
21178         information computed for expression "init + nit * step".
21180 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21182         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
21183         about name of GCC executable.  Remove deleted node from menu.
21184         (Directory Options) <-B>: Remove cross-reference to deleted node.
21185         (Target Options): Delete section.
21187 2016-01-12  Christian Bruel  <christian.bruel@st.com>
21189         PR target/69180
21190         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
21191         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
21193 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
21195         PR target/69198
21196         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
21197         aligned_mem is properly set for AVX512-VL floating point masked
21198         stores.
21200         PR target/69175
21201         * ifcvt.c (cond_exec_process_if_block): When removing the last
21202         insn from then_bb, remove also any possible barriers that follow it.
21204 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
21206         PR target/68456
21207         PR target/69226
21208         * config/i386/iamcu.h (SIZE_TYPE): New macro.
21209         (PTRDIFF_TYPE): Likewise.
21210         (WCHAR_TYPE): Likewise.
21211         (WCHAR_TYPE_SIZE): Likewise.
21212         (STDINT_LONG32): Likewise.
21214 2016-01-12  Richard Biener  <rguenther@suse.de>
21216         PR tree-optimization/69053
21217         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
21218         convert initial value for cond reductions.
21220 2016-01-12  Richard Biener  <rguenther@suse.de>
21222         PR tree-optimization/69007
21223         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
21224         widen_sum after dot_prod and sad.
21226 2016-01-12  Richard Biener  <rguenther@suse.de>
21228         PR tree-optimization/69168
21229         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
21230         pattern stmt SLP type.
21231         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
21232         end up unused so cope with that case.
21234 2016-01-12  Richard Biener  <rguenther@suse.de>
21236         PR tree-optimization/69157
21237         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
21238         stmts def type only during analyze phase.
21239         (vectorizable_call): Likewise.
21240         (vectorizable_simd_clone_call): Likewise.
21241         (vectorizable_conversion): Likewise.
21242         (vectorizable_assignment): Likewise.
21243         (vectorizable_shift): Likewise.
21244         (vectorizable_operation): Likewise.
21245         (vectorizable_store): Likewise.
21246         (vectorizable_load): Likewise.
21248 2016-01-12  Richard Biener  <rguenther@suse.de>
21250         PR tree-optimization/69174
21251         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
21252         space.
21253         (vectorizable_load): Properly compute the number of loads needed
21254         for permuted strided SLP loads and do not spuriously assign
21255         to SLP_TREE_VEC_STMTS.
21257 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
21259         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
21260         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
21261         (MD_EXEC_PREFIX): Remove.
21262         (MD_STARTFILE_PREFIX) Removee.
21263         (FILE_NAME_ABSOLUTE_P): Remove.
21264         (CPP_SPEC): Do not read macros from sys/version.h.
21265         (LINK_COMMAND_SPEC): Remove.
21266         (LOCAL_INCLUDE_DIR): Remove.
21267         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
21268         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
21269         (POST_LINK_SPEC): Define to invoke stubify after linker
21270         (LIBSTDCXX): Remove define
21271         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
21272         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
21273         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
21274         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
21275         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
21276         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
21277         (i386_djgpp_asm_named_section): Add propotype of new procedure
21279         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
21280         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
21281         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
21282         in config/i386/djgpp.h).
21283         (STANDARD_STARTFILE_PREFIX_2): Define identical to
21284         STANDARD_STARTFILE_PREFIX_1.
21285         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
21286         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
21287         installation errors.
21288         (MAX_OFILE_ALIGNMENT): Define to 128.
21289         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
21291         * config/i386/djgpp.c: New file. Add implementation of
21292         i386_djgpp_asm_named_section.
21294         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
21296         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
21297         Add rule for building djgpp.o.
21299 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21301         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
21302         (rtx_is_swappable_p): Reductions are swappable.
21303         (insn_is_swappable_p): V2DF reductions are swappable.
21305 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
21307         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
21308         reloads for other unsupported memory operands.
21310 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21311             Jim Wilson  <jim.wilson@linaro.org>
21313         PR target/69194
21314         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
21315         copy_to_mode_reg instead of force_reg.
21317 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
21319         PR target/69225
21320         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
21321         TARGET_80387 is true.
21323 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
21325         PR target/69071
21326         * lra-eliminations.c (move_plus_up): Only move plus up
21327         if subreg of the constant can be simplified into constant
21328         and use the simplified subreg of the constant instead of
21329         the original constant.
21331         * fold-const.c (fold_convertible_p): Don't return true
21332         for conversion of VECTOR_TYPE to same sized integral type.
21333         (fold_convert_loc): Fix up formatting.  Fold conversion of
21334         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
21335         instead of NOP_EXPR.
21337         PR tree-optimization/69214
21338         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
21339         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
21340         Formatting fix.
21342         PR tree-optimization/69207
21343         * tree-vect-slp.c (vect_get_constant_vectors): For
21344         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
21345         fold_convertible_p to vector_type's element type, and always
21346         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
21348 2016-01-11  Richard Biener  <rguenther@suse.de>
21350         PR tree-optimization/69173
21351         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
21352         fixup the cycle if all stmts are in a pattern.
21354 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
21356         PR middle-end/68999
21357         * alias.c (base_alias_check): Move check for addresses with
21358         alignment ANDs before the call for compare_base_decls.
21359         (memrefs_conflict_p): Return -1 for different decls
21360         that went through alignment adjustments.
21362 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21364         PR rtl-optimization/68796
21365         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
21366         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
21367         and QImode comparisons against zero with CC_NZmode.
21368         * config/aarch64/iterators.md (short_mask): New mode_attr.
21370 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
21372         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
21373         (<avx512>_store<mode>_mask): Likewise.
21375 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
21376             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21378         PR rtl-optimization/68841
21379         * ifcvt.c (struct noce_if_info): Add orig_x field.
21380         (bbs_ok_for_cmove_arith): Add to_rename parameter.
21381         Don't record conflicts on to_rename if it's present.
21382         Allow memory destinations in sets.
21383         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
21384         blocks, passing orig_x to the checks.
21385         (noce_process_if_block): Set if_info->orig_x appropriately.
21387 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21389         PR tree-optimization/69069
21390         * tree-parloops.c (create_parallel_loop): Add missing phi args.
21392 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
21394         PR rtl-optimization/68920
21395         * config/i386/i386.c (ix86_option_override_internal): Restrict number
21396         of conditional moves for  RTL if-conversion to 1 for
21397         TARGET_ONE_IF_CONV_INSN.
21398         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
21399         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
21400         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
21401         parameter to restirct number of conditional moves for
21402         RTL if-conversion.
21403         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
21404         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
21405         conditionl moves.
21407 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
21409         PR bootstrap/69123
21410         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
21411         onepart vars.  Fix typo in comment.  Fix reversed condition in
21412         unshare test.
21413         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
21415         PR bootstrap/69123
21416         * var-tracking.c (dump_onepart_variable_differences): New.
21417         (dataflow_set_different): If a detailed dump is requested,
21418         delay early returns and dump differences between onepart
21419         variables present before and after, and added variables.
21421 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
21423         PR target/69010
21424         * expr.c (expand_expr_real_1): For boolean vector constants
21425         with a scalar mode use const_scalar_mask_from_tree.
21426         (const_scalar_mask_from_tree): New.
21427         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
21428         assigned to a mask type to handle constants.
21430 2016-01-11  Martin Jambor  <mjambor@suse.cz>
21432         PR ipa/69044
21433         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
21434         useless parameters if we cannot change function signature.
21436 2016-01-11  Martin Jambor  <mjambor@suse.cz>
21438         PR ipa/66616
21439         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
21440         flag.
21442 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21444         PR tree-optimization/69109
21445         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
21446         latch with phi.
21448 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21450         PR tree-optimization/69108
21451         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
21452         res is not used in a phi.
21454 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
21456         PR 67425
21457         * common.opt (frandom-seed): Fix parameter name.
21458         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
21460 2016-01-11  Tom de Vries  <tom@codesourcery.com>
21462         PR tree-optimization/69058
21463         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
21464         not supported.
21466 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
21468         * config/arc/arc.opt (mdiv-rem): Add period to the end.
21469         (mcode-density): Likewise.
21471 2016-01-10  Tom de Vries  <tom@codesourcery.com>
21473         PR tree-optimization/69062
21474         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
21475         (parallelize_loops): Don't paralelize loop that has phi with address
21476         arg.
21478 2016-01-10  Tom de Vries  <tom@codesourcery.com>
21480         PR tree-optimization/69039
21481         * tree-parloops.c (try_create_reduction_list): Only allow single exit
21482         phi for reduction.
21484 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
21486         PR middle-end/68743
21487         * match.pd: Require target has function_c99_misc before doing
21488         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
21490 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
21492         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
21493         use GMPINC.
21494         * configure: Regenerate.
21496 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
21498         PR middle-end/50865
21499         PR tree-optimization/69097
21500         * fold-const.h (expr_not_equal_to): New prototype.
21501         * fold-const.c: Include stringpool.h and tree-ssanames.h.
21502         (expr_not_equal_to): New function.
21503         * match.pd (X % -Y is the same as X % Y): Don't optimize
21504         unless X is known not to be equal to minimum or Y is known
21505         not to be equal to -1.
21506         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
21507         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
21508         (simplify_stmt_using_ranges): Adjust caller.
21509         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
21510         substitute_and_fold.
21512 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
21514         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
21515         w/o DECL_NAME.
21517 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
21519         PR tree-optimization/69167
21520         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
21521         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
21522         ops[0] comparison.
21523         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
21525 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
21526             Richard Biener  <rguenther@suse.de>
21528         PR tree-optimization/68707
21529         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
21530         instances that can be handled via vect_load_lanes.
21532 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
21534         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
21535         if we can't determine address equivalence.
21536         * alias.c (compare_base_decl): Update for changed return value of
21537         symtab_node::equal_address_to.
21539 2016-01-08  Jason Merrill  <jason@redhat.com>
21541         PR c++/68983
21542         PR c++/67557
21543         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
21544         * expr.c (store_field): Not here.
21545         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
21546         call with TREE_ADDRESSABLE type.
21547         * tree-cfg.c (verify_gimple_call): Adjust.
21549 2016-01-08  Olivier Hainque  <hainque@adacore.com>
21551         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
21552         libc_internal.
21554 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
21556         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
21557         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
21558         (reduc_smin_v2sf): Rename to...
21559         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
21560         (reduc_splus_v2sf): Rename to...
21561         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
21563 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
21565         PR tree-optimization/69162
21566         * gimplify.c (gimplify_va_arg_expr): Encode original type of
21567         valist argument in another argument.
21568         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
21569         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
21570         to determine the va_list type, build a MEM_REF instead of
21571         build_fold_indirect_ref.
21573         PR tree-optimization/69172
21574         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
21575         gimple_build.
21577 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21579         PR tree-optimization/67781
21580         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
21581         and cmpnop in two steps: first the ones not accessed in original
21582         gimple expression in a endian independent way and then the ones not
21583         accessed in the final result in an endian-specific way.
21585 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
21587         PR tree-optimization/69083
21588         * tree-vect-slp.c (vect_get_constant_vectors): For
21589         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
21590         element type.  If op is fold_convertible_p to vector_type's element
21591         type, use NOP_EXPR instead of VCE.
21593 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
21595         PR rtl-optimization/67778
21596         PR rtl-optimization/68634
21597         PR rtl-optimization/68909
21598         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
21599         block from the stack until done with it.  Remove a superfluous
21600         bitmap set.  Remove a superfluous bitmap test.
21602 2016-01-07  Martin Sebor  <msebor@redhat.com>
21604         PR c/68966
21605         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
21606         constraint on the type of arguments.
21608 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
21610         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
21611         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
21612         unaligned_access on the gcc_options set.
21613         * config/arm/arm.c (arm_option_override_internal): Use
21614         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
21616 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
21618         PR target/69140
21619         * config/i386/i386.c (ix86_frame_pointer_required): Enable
21620         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
21622 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
21624         Revert
21625         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
21627         PR target/69140
21628         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
21629         depending on frame_pointer_needed before remaining integer and SSE
21630         registers are saved.
21632 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
21634         PR 1078
21635         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
21637 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
21639         PR target/69171
21640         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
21641         Use the "xBm" constraint.
21642         (float<sseintvecmodelower><mode>2<mask_name><round_name):
21643         Likewise.
21644         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
21645         (sse_cvtsi2ssq<round_name>): Likewise.
21646         (sse_cvtss2si<round_name>): Likewise.
21647         (sse_cvtss2siq<round_name>): Likewise.
21648         (sse2_cvtsi2sdq<round_name>): Likewise.
21649         (sse2_cvtsd2si<round_name>): Likewise.
21650         (sse2_cvtsd2siq<round_name>): Likewise.
21651         * config/i386/subst.md (round_nimm_scalar_predicate): New
21652         predicate.
21654 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
21656         PR middle-end/67639
21657         * varasm.c (make_decl_rtl): Mark invalid register vars as
21658         DECL_EXTERNAL.
21660         PR rtl-optimization/66206
21661         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
21662         All callers changed.
21664 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
21666         PR tree-optimization/69141
21667         * tree-ssa-pre.c: Include langhooks.h.
21668         (eliminate_dom_walker::before_dom_children): Use
21669         lang_hooks.decl_printable_name instead of
21670         cgraph_node::get ()->name ().
21672         PR middle-end/68960
21673         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
21674         it and DECL_ALIGN too.
21676 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
21678         * config/mips/mips-ftypes.def: Sort to lexicographical order.
21680 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
21682         PR target/69140
21683         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
21684         depending on frame_pointer_needed before remaining integer and SSE
21685         registers are saved.
21687 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21689         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
21690         mode iterator with VSX_M2.
21691         (*p9_vecstore_<mode>): Likewise.
21692         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
21693         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
21694         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
21695         (define_split for VSX_LE128 stores): Likewise.
21696         (define_peephole2 for TImode LE swaps): Likewise.
21697         (define_split for VSX_LE128 post-reload stores): Likewise.
21699 2016-01-06  Marek Polacek  <polacek@redhat.com>
21701         PR sanitizer/69099
21702         * convert.c (convert_to_integer_1): Adjust call to
21703         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
21704         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
21705         EXPR instead of ARG.
21706         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
21708 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21710         PR 1078
21711         * doc/extend.texi (RL78 Variable Attributes): New section.
21713 2016-01-05  Marek Polacek  <polacek@redhat.com>
21715         PR c/69104
21716         * builtins.c (get_memmodel): Use expansion point location rather than
21717         the input location.  Call warning_at rather than warning.
21718         (expand_builtin_atomic_compare_exchange): Likewise.
21719         (expand_builtin_atomic_load): Likewise.
21720         (expand_builtin_atomic_store): Likewise.
21721         (expand_builtin_atomic_clear): Likewise.
21723 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21725         PR target/68991
21726         * config/i386/i386.c (ix86_expand_vector_logical_operator):
21727         Replace nonimmediate_operand with vector_operand.
21728         * config/i386/predicates.md (vector_operand): New predicate.
21729         (general_vector_operand): Replace nonimmediate_operand with
21730         vector_operand.
21731         * config/i386/sse.md: Replace nonimmediate_operand with
21732         vector_operand and m constraint with Bm constraint on SSE
21733         patterns with 16-byte memory operand.
21734         * config/i386/subst.md (round_nimm_predicate): Replace
21735         nonimmediate_operand with vector_operand.
21736         (round_saeonly_nimm_predicate): Likewise.
21737         (round_saeonly_nimm_scalar_predicate): New.
21739 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
21741         PR target/68991
21742         * config/i386/constraints.md (Bm): New constraint.
21743         * config/i386/predicates.md (vector_memory_operand): New
21744         predicate.
21745         * config/i386/sse.md: Replace xm with xBm in plusminus and
21746         any_logic patterns.
21748 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21750         PR 1078
21751         * doc/extend.texi (V850 Function Attributes): New section.
21752         (V850 Variable Attributes): New section.
21754 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21756         PR 1078
21757         * doc/extend.texi (MicroBlaze Function Attributes): Document
21758         interrupt_handler and fast_interrupt attributes.
21760 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
21762         PR other/60465
21763         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
21764         for local symbolic operands.
21765         * config/ia64/predicates.md (local_symbolic_operand64): New
21766         predicate.
21768 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21770         PR rtl-optimization/68651
21771         * combine.c (combine_simplify_rtx): Canonicalize x + x into
21772         x << 1.
21774 2016-01-05  Nathan Sidwell  <nathan@acm.org>
21776         * alias.c (compare_base_decls): Use symtab_node::get.
21778 2016-01-05  Nick Clifton  <nickc@redhat.com>
21780         PR target/68770
21781         * ira-costs.c (copy_cost): Initialise the t_icode field of the
21782         secondary_reload_info structure.
21784         PR target/66655
21785         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
21786         decls if weak support is available.
21788 2016-01-04  Martin Sebor  <msebor@redhat.com>
21790         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
21792 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21794         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
21795         OPTION_MASK_P9_DFORM.
21797         * config/rs6000/constraints.md (wo constraint): New constraint for
21798         ISA 3.0 (power9).
21800         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
21801         for wo constraint.
21802         (rs6000_init_hard_regno_mode_ok): Likewise.
21804         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
21805         wo constraint.
21807         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
21808         expanders not to have constraints.  Add support for ISA 3.0 xxperm
21809         instruction.  Add support for fusing xxlor with xxperm.
21810         (altivec_vperm_<mode>_internal): Likewise.
21811         (altivec_vperm_v8hiv16qi): Likewise.
21812         (altivec_vperm_<mode>v16q): Likewise.
21813         (altivec_vperm_<mode>_uns): Likewise.
21814         (vperm_v8hiv4si): Likewise.
21815         (vperm_v16qiv8hi): Likewise.
21817         * doc/md.texi (RS/6000 constraints): Document wo constraint.
21819 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
21821         Update copyright years.
21823         * gcc.c (process_command): Update copyright notice dates.
21824         * gcov-dump.c (print_version): Ditto.
21825         * gcov.c (print_version): Ditto.
21826         * gcov-tool.c (print_version): Ditto.
21827         * gengtype.c (create_file): Ditto.
21828         * doc/cpp.texi: Bump @copying's copyright year.
21829         * doc/cppinternals.texi: Ditto.
21830         * doc/gcc.texi: Ditto.
21831         * doc/gccint.texi: Ditto.
21832         * doc/gcov.texi: Ditto.
21833         * doc/install.texi: Ditto.
21834         * doc/invoke.texi: Ditto.
21836 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
21838         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
21839         modes larger than TImode as TImode if NEON is not enabled.
21841 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
21843         PR target/69100
21844         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
21845         mode for %f0-%f31 only if TARGET_FPU.
21847 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
21849         PR target/69072
21850         * config/sparc/sparc.c (scan_record_type): Take into account subfields
21851         to compute the PACKED_P predicate.
21852         (function_arg_record_value): Minor tweaks.
21854 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21856         * doc/install.texi (--with-multilib-list): Describe the meaning of the
21857         option for arm*-*-* targets.
21859 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
21861         * doc/extend.texi (Common Function Attributes): Move docs for
21862         MSP430-specific attributes to....
21863         (MSP430 Function Attributes): ...here.  Delete the redundant
21864         entries and copy-edit the remaining text.
21865         (MSP430 Variable Attributes): Use uniform format for index
21866         entries and add a cross-reference to the corresponding function
21867         attribute docs.
21869 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
21871         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
21872         -finite-math typo.
21873         (x86 Options): Likewise.
21875 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
21877         PR 1078
21879         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
21880         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
21881         to corresponding attribute.
21883 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
21885         * doc/extend.texi (Common Function Attributes) <noplt>: Move
21886         to correct alphabetization of table.  Copy-edit and correct
21887         markup.
21888         <stack_protect>: Likewise.
21889         <target_clones>: Likewise.
21890         <simd>: Likewise.
21891         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
21892         Correct punctuation.
21893         (Code Gen Options) <-fno-plt>: Copy-edit.
21895 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21897         PR target/68917
21898         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
21899         SI values.  Explicitly convert SI to DI and vice-versa.
21901 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
21903         PR tree-optimization/69070
21904         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
21905         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
21907         PR sanitizer/69055
21908         * ubsan.c (ubsan_instrument_float_cast): Call
21909         initialize_sanitizer_builtins.
21911         PR target/69015
21912         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
21914 Copyright (C) 2016 Free Software Foundation, Inc.
21916 Copying and distribution of this file, with or without modification,
21917 are permitted in any medium without royalty provided the copyright
21918 notice and this notice are preserved.