2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob67ec6224a8afd32b4813c967e8e9ff5cdfeb0bcf
1 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
3         PR rtl-optimization/69847
4         * lra-constraints.c (process_invariant_for_inheritance): Save
5         pattern instead of src.
6         (remove_inheritance_pseudos): Use the pattern.  Add assert.
8 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
10         * input.c (string_concat::string_concat): New constructor.
11         (string_concat_db::string_concat_db): New constructor.
12         (string_concat_db::record_string_concatenation): New method.
13         (string_concat_db::get_string_concatenation): New method.
14         (string_concat_db::get_key_loc): New method.
15         (class auto_cpp_string_vec): New class.
16         (get_substring_ranges_for_loc): New function.
17         (get_source_range_for_substring): New function.
18         (get_num_source_ranges_for_substring): New function.
19         (class selftest::lexer_test_options): New class.
20         (struct selftest::lexer_test): New struct.
21         (class selftest::ebcdic_execution_charset): New class.
22         (selftest::ebcdic_execution_charset::s_singleton): New variable.
23         (selftest::lexer_test::lexer_test): New constructor.
24         (selftest::lexer_test::~lexer_test): New destructor.
25         (selftest::lexer_test::get_token): New method.
26         (selftest::assert_char_at_range): New function.
27         (ASSERT_CHAR_AT_RANGE): New macro.
28         (selftest::assert_num_substring_ranges): New function.
29         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
30         (selftest::assert_has_no_substring_ranges): New function.
31         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
32         (selftest::test_lexer_string_locations_simple): New function.
33         (selftest::test_lexer_string_locations_ebcdic): New function.
34         (selftest::test_lexer_string_locations_hex): New function.
35         (selftest::test_lexer_string_locations_oct): New function.
36         (selftest::test_lexer_string_locations_letter_escape_1): New function.
37         (selftest::test_lexer_string_locations_letter_escape_2): New function.
38         (selftest::test_lexer_string_locations_ucn4): New function.
39         (selftest::test_lexer_string_locations_ucn8): New function.
40         (selftest::uint32_from_big_endian): New function.
41         (selftest::test_lexer_string_locations_wide_string): New function.
42         (selftest::uint16_from_big_endian): New function.
43         (selftest::test_lexer_string_locations_string16): New function.
44         (selftest::test_lexer_string_locations_string32): New function.
45         (selftest::test_lexer_string_locations_u8): New function.
46         (selftest::test_lexer_string_locations_utf8_source): New function.
47         (selftest::test_lexer_string_locations_concatenation_1): New
48         function.
49         (selftest::test_lexer_string_locations_concatenation_2): New
50         function.
51         (selftest::test_lexer_string_locations_concatenation_3): New
52         function.
53         (selftest::test_lexer_string_locations_macro): New function.
54         (selftest::test_lexer_string_locations_stringified_macro_argument):
55         New function.
56         (selftest::test_lexer_string_locations_non_string): New function.
57         (selftest::test_lexer_string_locations_long_line): New function.
58         (selftest::test_lexer_char_constants): New function.
59         (selftest::input_c_tests): Call the new test functions once per
60         case within the line_table test matrix.
61         * input.h (struct string_concat): New struct.
62         (struct location_hash): New struct.
63         (class string_concat_db): New class.
64         * substring-locations.h: New header.
66 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
68         PR tree-optimization/72810
69         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
70         the type of the case labels when truncating.
72 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
74         PR Target/72819
75         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
76         (aarch64_fp16_ptr_type_node): Likewise.
77         * config/aarch64/aarch64-simd-builtins.c
78         (aarch64_fp16_ptr_type_node): Define.
79         (aarch64_init_fp16_types): New, refactored out of...
80         (aarch64_init_builtins): ...here, update to call
81         aarch64_init_fp16_types.
82         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
83         HFmode.
84         (aapcs_vfp_sub_candidate): Likewise.
86 2016-08-05  Martin Liska  <mliska@suse.cz>
88             Joshua Cranmer  <Pidgeot18@gmail.com>
90         * gcov.c (line_t::has_block): New function.
91         (enum loop_type): New enum.
92         (handle_cycle): New function.
93         (unblock): Likewise.
94         (circuit): Likewise.
95         (get_cycles_count): Likewise.
96         (accumulate_line_counts): Use new loop detection algorithm.
98 2016-08-05  Martin Liska  <mliska@suse.cz>
100         * gcov.c (output_intermediate_file): Rename
101         function_info::line_next to next_file_fn.
102         (process_file): Likewise.
103         (read_graph_file): Likewise.
104         (accumulate_line_counts): Likewise.
105         (output_lines): Likewise.
107 2016-08-05  Richard Biener  <rguenther@suse.de>
109         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
110         restriction on threading to a loop header.
112 2016-08-05  Richard Biener  <rguenther@suse.de>
114         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
115         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
116         adjust loop info accordingly.
118 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
120         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
121         before folding call to __builtin_constant_p with parameters to false.
123 2016-08-05  Alan Modra  <amodra@gmail.com>
125         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
126         code accidentally committed 2016-05-02 providing class when given
127         NO_REGS.
129 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
131         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
132         the case label ranges that partially overlap with OP's value
133         range.
135 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
137         PR target/72805
138         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
139         Cast builtin function result to __mmask16 instead of __mmask8.
140         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
141         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
142         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
144 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
146         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
147         (ASSERT_TRUE_AT): New macro.
148         (ASSERT_FALSE): Reimplement in terms of...
149         (ASSERT_FALSE_AT): New macro.
150         (ASSERT_STREQ_AT): Fix typo in comment.
152 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
154         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
155         labels are exhaustive, designate the label with the widest
156         range to be the default label.
158 2016-08-04  Andrew Pinski  <apinski@cavium.com>
160         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
161         (thunderx_tunings): Use thunderx_vector_cost instead of
162         generic_vector_cost.
164 2016-08-04  Martin Liska  <mliska@suse.cz>
166         * gcov.c (main): Fix GNU coding style.
167         (output_intermediate_file): Likewise.
168         (process_file): Likewise.
169         (generate_results): Likewise.
170         (release_structures): Likewise.
171         (create_file_names): Likewise.
172         (find_source): Likewise.
173         (read_graph_file): Likewise.
174         (find_exception_blocks): Likewise.
175         (canonicalize_name): Likewise.
176         (make_gcov_file_name): Likewise.
177         (mangle_name): Likewise.
178         (accumulate_line_counts): Likewise.
179         (output_branch_count): Likewise.
180         (read_line): Likewise.
182 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
184         PR rtl-optimization/71779
185         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
186         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
187         or if it was truncated.
189         PR rtl-optimization/70903
190         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
192 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
194         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
195         accessing SSA_NAME_PTR_INFO.
197 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
199         PR 70677
200         * common/config/avr/avr-common.c (avr_option_optimization_table)
201         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
203 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
205         PR 55181
206         * config/avr/avr.md: New pattern to work around do_store_flag
207         generating shift instructions for bit extractions.
209 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
211         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
212         BITMAP_ALLOC.
213         (add_equivalence): Likewise.
214         (get_value_range): Allocate value range with vrp_value_range_pool.
215         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
216         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
218 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
220         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
221         the default for the rs6000 port.
223 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
225         PR middle-end/71876
226         * calls.c (special_function_p): Remove special handling of
227         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
228         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
229         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
231 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
233         PR middle-end/72778
234         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
235         Don't stop on regular insns.
237 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
239         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
240         size to DImode boundary.
241         (nvptx_propagate): Likewise.
243 2016-08-03  Alan Modra  <amodra@gmail.com>
245         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
246         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
247         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
248         from -mefficient-unaligned-vector.  Note that this affects fp too.
250 2016-08-03  Alan Modra  <amodra@gmail.com>
252         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
253         cost more.
255 2016-08-03  Alan Modra  <amodra@gmail.com>
257         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
258         to a reg.  Localize vars.
260 2016-08-03  Alan Modra  <amodra@gmail.com>
262         * config/rs6000/rs6000.opt: Remove negatives from help strings
263         and comments.
265 2016-08-03  Alan Modra  <amodra@gmail.com>
267         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
268         Delete duplicated code.
270 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
272         PR middle-end/72778
273         * lra-spills.c (regno_in_use_p): New.
274         (lra_final_code_change): Use it.
276 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
278         PR rtl-optimization/69847
279         * lra-int.h (struct lra-reg): Use restore_rtx instead of
280         restore_regno.
281         (lra_rtx_hash): New.
282         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
283         of restore_regno.
284         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
285         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
286         * lra-spills.c (lra_final_code_change): Don't delete insn when the
287         next insn is USE with the same reg as the current insn source.
288         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
289         of restore_regno.
290         (lra_constraints_init): Call initiate_invariants.
291         (lra_constraints_finish): Call finish_invariants.
292         (struct invariant, invariant_t, invariant_ptr_t): New.
293         (const_invariant_ptr_t, invariants, invariants_pool): New.
294         (invariant_table, invariant_hash, invariant_eq_p): New.
295         (insert_invariant, initiate_invariants, finish_invariants): New.
296         (clear_invariants, invalid_invariant_regs): New.
297         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
298         instead of restore_regno.
299         (invariant_p, process_invariant_for_inheritance): New.
300         (inherit_in_ebb): Implement invariant inheritance.
301         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
302         (remove_inheritance_pseudos): Implement undoing invariant
303         inheritance.
304         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
305         instead of restore_regno.
306         * lra-assigns.c (regno_live_length): New.
307         (reload_pseudo_compare_func): Use regno_live_length.
308         (assign_by_spills): Use restore_rtx instead of restore_regno.
309         (lra_assign): Ditto.  Initiate regno_live_length.
311 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
313         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
314         __builtin_aarch64_fmindf.
316 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
318         PR tree-optimization/34114
319         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
320         information for more control IVs.
322 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
324         PR tree-optimization/34114
325         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
326         PLUS_EXPR case.  Handle SSA_NAME case.
328 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
330         * config/aarch64/aarch64-simd-builtins.def
331         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
332         (__builtin_aarch64_fmaxdf): Likewise.
333         (__builtin_aarch64_smin_nandf): Likewise.
334         (__builtin_aarch64_smax_nandf): Likewise.
335         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
336         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
337         (<fmaxmin><mode>3): ...this.
338         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
339         (vminnm_f64): Likewise.
340         (vmin_f64): Likewise.
341         (vmax_f64): Likewise.
342         * config/aarch64/iterators.md (FMAXMIN): Merge with...
343         (FMAXMIN_UNS): ...this.
344         (fmaxmin): Merged with
345         (fmaxmin_op): ...this...
346         (maxmin_uns_op): ...in to this.
348 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
350         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
351         Add support for vec_extract on vector float, vector int, vector
352         short, and vector char vector types.
353         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
354         vector float, vector int, vector short, and vector char
355         optimizations on 64-bit ISA 2.07 systems for both constant and
356         variable element numbers.
357         (rs6000_split_vec_extract_var): Likewise.
358         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
359         Altivec registers on ISA 2.07 and above.
360         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
361         which never was matched due to the split occuring before register
362         allocation (and the code would not have worked on little endian
363         systems if it did match).  Allow extracts to go to the Altivec
364         registers if ISA 2.07 (power8).  Change from using "" around the
365         C++ code to using {}'s.
366         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
367         vec_extracts when the vector is in memory.
368         (vsx_extract_v4sf_var): New insn to optimize vector float
369         vec_extracts when the element number is variable on 64-bit ISA
370         2.07 systems.
371         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
372         for 64-bit ISA 2.07 as well as ISA 3.0.
373         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
374         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
375         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
376         optimize vector int, vector short, and vector char vec_extracts
377         when the vector is in memory.
378         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
379         optimize vector int, vector short, and vector char vec_extracts
380         when the element number is variable.
382 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
384         PR target/71948
385         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
386         does not overlap with other symbol flags.
388 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
390         * config/aarch64/aarch64.h (aarch64_frame):
391         Remove padding0 and hardfp_offset.  Add locals_offset,
392         initial_adjust, callee_adjust, callee_offset and final_adjust.
393         * config/aarch64/aarch64.c (aarch64_layout_frame):
394         Remove unused padding0 and hardfp_offset initializations.
395         Choose frame layout and set frame variables accordingly.
396         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
397         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
398         (aarch64_pop_regs): Likewise.
399         (aarch64_expand_prologue): Remove all decision code, just emit
400         prolog according to frame variables.
401         (aarch64_expand_epilogue): Remove all decision code, just emit
402         epilog according to frame variables.
403         (aarch64_initial_elimination_offset): Use offset to local/arg area.
405 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
407         PR target/72748
408         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
409         fix_debug_reg_uses after changing source register mode to
410         V1TImode if source register is undefined.
412 2015-08-01  Alan Hayward <alan.hayward@arm.com>
414         PR tree-optimization/71818
415         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
416         with non invariant evolutions
418 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
420         PR target/72767
421         * config/avr/avr.md (length) [branch]: Correct insn length
422         attribute for forward branches.
424 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
426         * doc/extend.texi (AVR Built-in Functions): Document
427         __builtin_avr_nops.
428         * config/avr/builtins.def (NOPS): New.
429         * config/avr/avr.c (avr_expand_nops): New static function.
430         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
432 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
434         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
435         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
436         addresses.
438 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
440         * config/aarch64/aarch64.c (vulcan_tunings): Update
441         vulcan L1 cache_line_size.
443 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
445         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
446         function that takes a vector memory address, a hard register, an
447         element number and a temporary base register, and recreates an
448         address that points to the appropriate element within the vector.
449         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
450         (rs6000_split_vec_extract_var): Add support for the target of a
451         vec_extract with variable element number being a scalar memory
452         location.
453         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
454         swappable.
455         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
456         vsx_extract_<mode>_load insn with a new insn that optimizes
457         storing either element to a memory location, using scratch
458         registers to pick apart the vector and reconstruct the address.
459         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
460         (vsx_extract_<mode>_store): Rework alternatives to more correctly
461         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
462         store instruction.
463         (vsx_extract_<mode>_var): Add support for extracting a variable
464         element number from memory.
466 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
468         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
469         when testing for compares against constants of the form 0xabab.
471 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
473         PR tree-optimization/57558
474         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
475         function.
476         (vect_loop_versioning): Support versioning with niter assumptions.
477         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
478         (vect_get_loop_niters): New parameter.  Reimplement to support
479         assumptions in loop niter info.
480         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
481         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
482         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
483         Support loop versioning for niters.
484         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
485         (vect_free_loop_info_assumptions): New function.
486         (vectorize_loops): Free loop niter info for loops with flag
487         LOOP_F_ASSUMPTIONS set if vectorization failed.
488         * tree-vectorizer.h (struct _loop_vec_info): New field
489         num_iters_assumptions.
490         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
491         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
492         (LOOP_REQUIRES_VERSIONING): New macro.
493         (vect_free_loop_info_assumptions): New decl.
495 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
497         * cfgloop.h (struct loop): New field constraints.
498         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
499         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
500         functions.
501         * cfgloop.c (alloc_loop): Initialize new field.
502         * cfgloopmanip.c (copy_loop_info): Copy constraints.
503         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
504         Adjust niter analysis wrto loop constraints.
505         * doc/loop.texi (@node Number of iterations): Add description for loop
506         constraints.
508 2016-07-29  Marek Polacek  <polacek@redhat.com>
510         PR c/7652
511         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
512         (ix86_expand_round_builtin): Likewise.
514 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
515             Georg-Johann Lay  <avr@gjlay.de>
517         PR rtl-optimization/71976
518         * combine.c (get_last_value): Return 0 if the argument for which
519         the function is called has a wider mode than the recorded value.
521 2016-07-29  Marek Polacek  <polacek@redhat.com>
523         PR c/7652
524         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
525         (altivec_expand_st_builtin): Likewise.
527 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
529         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
530         introduced in r238381.
532 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
534         PR middle-end/68217
535         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
536         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
538 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
540         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
541         New declaration.
542         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
543         Add support for vec_extract of vector double or vector long having
544         a variable element number on 64-bit ISA 2.07 systems or newer.
545         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
546         Likewise.
547         (rs6000_split_vec_extract_var): New function to split a
548         vec_extract built-in function with variable element number.
549         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
550         swappable.
551         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
552         (UNSPEC_VSX_EXTRACT): Likewise.
553         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
554         direct move instructions to be generated on 64-bit ISA 2.07
555         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
556         instruction.
557         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
558         arguments for vec_extract variable element.
559         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
560         vec_extract with variable element on V2DFmode and V2DImode
561         vectors.
562         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
563         -mupper-regs-df requirement, since it isn't needed.
564         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
565         do direct moves on 64-bit systems, which allows optimization of
566         vec_extract on 64-bit ISA 2.07 systems and newer.
568 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
569 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
571          * config/aarch64/aarch64.md
572         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
573         statement and type.
574         (<optab>qihi2_aarch64): Likewise, and split into two.
575         (extendqihi2_aarch64): New.
576         (zero_extendqihi2_aarch64): New.
577         * config/aarch64/iterators.md (ldrxt): Remove.
578         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
579         uxtb/uxth.
581 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
583         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
585 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
587         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
588         (aarch64_push_reg): New function to push 1 or 2 registers.
589         (aarch64_pop_reg): New function to pop 1 or 2 registers.
590         (aarch64_expand_prologue): Use aarch64_push_regs.
591         (aarch64_expand_epilogue): Use aarch64_pop_regs.
593 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
595         PR tree-optimization/71734
596         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
597         attribute instead of REF_LOOP and use it.
598         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
599         set it for Loops having non-zero safelen attribute.
600         (ref_indep_loop_p): Pass zero as initial value for safelen.
602 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
604         PR middle-end/72657
605         PR target/72683
606         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
607         call using chkp_gimple_call_builtin_p.
608         (chkp_copy_bounds_for_assign): Likewise.
610 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
612         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
613         * config/arm/arm-protos.h (struct tune_params): Likewise.
614         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
615         (cortex_a9_sched_adjust_cost): Likewise.
616         (fa726te_sched_adjust_cost): Likewise.
617         (arm_adjust_cost): Likewise.
618         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
619         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
620         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
621         * config/i386/i386.c (ix86_adjust_cost): Likewise.
622         * config/ia64/ia64.c: Likewise.
623         * config/m68k/m68k.c: Likewise.
624         * config/mep/mep.c (mep_adjust_cost): Likewise.
625         * config/microblaze/microblaze.c (microblaze_adjust_cost):
626         * Likewise.
627         * config/mips/mips.c (mips_adjust_cost): Likewise.
628         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
629         * Likewise.
630         * config/pa/pa.c (pa_adjust_cost): Likewise.
631         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
632         (rs6000_debug_adjust_cost): Likewise.
633         * config/sh/sh.c (sh_adjust_cost): Likewise.
634         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
635         (hypersparc_adjust_cost): Likewise.
636         (sparc_adjust_cost): Likewise.
637         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
638         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
639         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
640         * Likewise.
641         * config/visium/visium.c (visium_adjust_cost): Likewise.
642         * doc/tm.texi: Regenerate.
643         * haifa-sched.c (dep_cost_1): Adjust.
644         * target.def: Merge adjust_cost and adjust_cost_2.
646 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
648         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
650 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
652         * store-motion.c (struct st_expr): Make pattern_regs a vector.
653         (extract_mentioned_regs): Append to a vector instead of
654         returning a rtx_expr_list.
655         (st_expr_entry): Adjust.
656         (free_st_expr_entry): Likewise.
657         (store_ops_ok): Likewise.
658         (store_killed_in_insn): Likewise.
659         (find_moveable_store): Likewise.
661 2016-07-28  Martin Liska  <mliska@suse.cz>
663         PR gcov-profile/68025
664         * tree-profile.c (tree_profiling): Respect
665         no_profile_instrument_function attribute.
666         * doc/extend.texi: Document no_profile_instrument_function
667         attribute.
669 2016-07-28  Martin Liska  <mliska@suse.cz>
671         PR rtl-optimization/70944
672         * combine.c (make_compound_operation):
673         Do not allow make_compound_operation for vector mode
675 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
677         PR middle-end/71994
678         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
679          before calling get_ops.
681 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
683         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
684         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
685         (BITS_PER_UNIT_LOG): Remove.
686         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
687         * expr.c (expand_assignment): Likewise.
688         * stor-layout.c (initialize_sizetypes): Likewise.
690 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
692         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
693         signature of rs6000_expand_vector_extract so that the element
694         number is a RTX instead of a constant integer.
695         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
696         Likewise.
697         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
698         (altivec_expand_vec_ext_builtin): Likewise.
699         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
700         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
701         MFVSRLD instruction.
703 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
705         * input.c (get_pure_location): Move here from tree.c.
706         (make_location): Likewise.  Add header comment.
707         (selftest::test_accessing_ordinary_linemaps): Verify
708         pure_location_p, make_location, get_location_from_adhoc_loc and
709         get_range_from_loc.
710         * input.h (get_pure_location): Move declaration here from tree.h.
711         (get_finish): Likewise for inline function.
712         (make_location): Likewise for declaration.
713         * tree.c (get_pure_location): Move to input.c.
714         (make_location): Likewise.
715         * tree.h (get_pure_location): Move declaration to tree.h.
716         (get_finish): Likewise for inline function.
717         (make_location): Likewise for declaration.
719 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
721         PR middle-end/71078
722         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
724 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
726         * system.h (STATIC_ASSERT): Use static_assert if building
727         with C++11 onwards.
729 2016-07-27  Richard Biener  <rguenther@suse.de>
731         PR tree-optimization/72517
732         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
733         Revert change to not compute read-read dependences.
735 2016-07-27  Richard Biener  <rguenther@suse.de>
737         * predict.c (set_even_probabilities): Make nedges unsigned.
739 2016-07-27  Martin Liska  <mliska@suse.cz>
741         * predict.c (set_even_probabilities): Handle unlikely edges.
742         (combine_predictions_for_bb): Likewise.
744 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
746         PR target/71869
747         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
748         __float128 support when we don't have hardware support, so that
749         the IEEE built-in functions like isgreater, first call __unordkf3
750         to make sure neither operand is a NaN, and if both operands are
751         ordered, do the normal comparison.
753 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
755         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
756         name.
757         (extract_code_and_val_from_cond_with_ops): Verify that name is
758         either cond_op0 or cond_op1.
760 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
762         PR tree-optimization/18046
763         * genmodes.c (emit_mode_size_inline): Emit an assert that
764         verifies that mode is a valid array index.
765         (emit_mode_nuinits_inline): Likewise.
766         (emit_mode_inner_inline): Likewise.
767         (emit_mode_unit_size_inline): Likewise.
768         (emit_mode_unit_precision_inline): Likewise.
769         * tree-vrp.c: Include params.h.
770         (find_switch_asserts): Register edge assertions for the default
771         label which correspond to the anti-ranges of each case label.
772         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
773         * doc/invoke.texi: Document it.
775 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
777         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
778         and unnecessary call to gimple_bb.
780 2016-07-26  Richard Biener  <rguenther@suse.de>
782         PR rtl-optimization/71984
783         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
784         for VOIDmode.
786 2016-07-26  Richard Biener  <rguenther@suse.de>
788         PR middle-end/72517
789         * expmed.c (extract_bit_field_1): Constrain the vector mode
790         with element size matching the extraction mode size when
791         choosing a better vector mode to do the extraction from.
793 2016-07-26  Richard Biener  <rguenther@suse.de>
794             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
796         PR middle-end/70920
797         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
798         pattern.
800 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
802         * tree-ssa-structalias.c (struct scc_info): Change types of
803         members to auto_sbitmap and auto_vec.
804         (scc_info::scc_info): New constructor.
805         (scc_info::~scc_info): New destructor.
806         (init_scc_info): Remove.
807         (free_scc_info): Remove.
808         (find_indirect_cycles): Adjust.
809         (perform_var_substitution): Likewise.
810         (free_var_substitution_info): Likewise.
812 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
814         * tree-outof-ssa.c (struct elim_graph): Change type of members
815         to auto_vec and auto_sbitmap.
816         (elim_graph::elim_graph): New constructor.
817         (delete_elim_graph): Remove.
818         (expand_phi_nodes): Adjust.
820 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
822         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
823         (new_elim_graph): Adjust.
824         (clear_elim_graph): Likewise.
825         (delete_elim_graph): Likewise.
826         (elim_graph_size): Likewise.
827         (elim_graph_add_node): Likewise.
828         (elim_graph_add_edge): Likewise.
829         (elim_graph_remove_succ_edge): Likewise.
830         (eliminate_name): Likewise.
831         (eliminate_build): Likewise.
832         (elim_forward): Likewise.
833         (elim_unvisited_predecessor): Likewise.
834         (elim_backward): Likewise.
835         (elim_create): Likewise.
836         (eliminate_phi): Likewise.
837         (expand_phi_nodes): Likewise.
839 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
841         * bt-load.c (compute_out): Use auto_sbitmap class.
842         (link_btr_uses): Likewise.
843         * cfganal.c (mark_dfs_back_edges): Likewise.
844         (post_order_compute): Likewise.
845         (inverted_post_order_compute): Likewise.
846         (pre_and_rev_post_order_compute_fn): Likewise.
847         (single_pred_before_succ_order): Likewise.
848         * cfgexpand.c (pass_expand::execute): Likewise.
849         * cfgloop.c (verify_loop_structure): Likewise.
850         * cfgloopmanip.c (fix_bb_placements): Likewise.
851         (remove_path): Likewise.
852         (update_dominators_in_loop): Likewise.
853         * cfgrtl.c (break_superblocks): Likewise.
854         * ddg.c (check_sccs): Likewise.
855         (create_ddg_all_sccs): Likewise.
856         * df-core.c (df_worklist_dataflow): Likewise.
857         * dse.c (dse_step3): Likewise.
858         * except.c (eh_region_outermost): Likewise.
859         * function.c (thread_prologue_and_epilogue_insns): Likewise.
860         * gcse.c (prune_expressions): Likewise.
861         (prune_insertions_deletions): Likewise.
862         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
863         * graph.c (draw_cfg_nodes_no_loops): Likewise.
864         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
865         * lcm.c (compute_earliest): Likewise.
866         (compute_farthest): Likewise.
867         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
868         (unroll_loop_runtime_iterations): Likewise.
869         (unroll_loop_stupid): Likewise.
870         * lower-subreg.c (decompose_multiword_subregs): Likewise.
871         * lra-lives.c: Likewise.
872         * lra.c (lra): Likewise.
873         * modulo-sched.c (schedule_reg_moves): Likewise.
874         (optimize_sc): Likewise.
875         (get_sched_window): Likewise.
876         (sms_schedule_by_order): Likewise.
877         (check_nodes_order): Likewise.
878         (order_nodes_of_sccs): Likewise.
879         (order_nodes_in_scc): Likewise.
880         * recog.c (split_all_insns): Likewise.
881         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
882         * reload1.c (reload): Likewise.
883         * sched-rgn.c (haifa_find_rgns): Likewise.
884         (split_edges): Likewise.
885         (compute_trg_info): Likewise.
886         * sel-sched.c (init_seqno): Likewise.
887         * store-motion.c (remove_reachable_equiv_notes): Likewise.
888         * tree-into-ssa.c (update_ssa): Likewise.
889         * tree-ssa-live.c (live_worklist): Likewise.
890         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
891         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
892         * Likewise.
893         (try_peel_loop): Likewise.
894         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
895         * Likewise.
896         * tree-ssa-pre.c (compute_antic): Likewise.
897         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
898         * tree-stdarg.c (reachable_at_most_once): Likewise.
899         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
900         * var-tracking.c (vt_find_locations): Likewise.
902 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
904         * sbitmap.h (auto_sbitmap): New class.
906 2016-07-26  Alan Modra  <amodra@gmail.com>
908         PR target/72103
909         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
910         sri->t_icode.
912 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
914         * input.c (selftest::temp_source_file::temp_source_file): Fix
915         missing "%s" in fprintf.
917 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
919         PR middle-end/71732
920         * cselib.c (cselib_process_insn): Invalidate argument slots for
921         const/pure calls.
923 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
925         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
926         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
927         vmulxh_lane_f16, vmulxh_laneq_f16): New.
929 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
931         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
932         * config/aarch64/aarch64.md (fma, fnma): Support HF.
933         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
935 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
937         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
938         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
939         New.
940         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
941         (add<mode>3): Likewise.
942         (sub<mode>3): Likewise.
943         (mul<mode>3): Likewise.
944         (div<mode>3): Likewise.
945         (*div<mode>3): Likewise.
946         (<fmaxmin><mode>3): Extend to HF.
947         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
948         (fabd<mode>3): Likewise.
949         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
950         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
951         (aarch64_fmulx<mode>): Likewise.
952         (aarch64_fac<optab><mode>): Likewise.
953         (aarch64_frecps<mode>): Likewise.
954         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
955         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
956         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
957         (VSDQ_HSDI): Support HI.
958         (fcvt_target, FCVT_TARGET): Likewise.
959         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
960         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
961         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
962         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
963         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
964         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
965         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
966         vrsqrtsh_f16): New.
968 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
970         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
971         * config/aarch64/aarch64-builtins.c (hi_UP): New.
972         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
973         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
974         mode.
975         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
976         (aarch64_cm<optab><mode>): Likewise.
977         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
978         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
979         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
980         (sqrt<mode>2): Likewise.
981         (*sqrt<mode>2): Likewise.
982         (abs<mode>2): Likewise.
983         (<optab><mode>hf2): New pattern for HF mode.
984         (<optab>hihf2): Likewise.
985         * config/aarch64/arm_neon.h: Include arm_fp16.h.
986         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
987         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
988         Support HF mode.
989         * config/aarch64/arm_fp16.h: New file.
990         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
991         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
992         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
993         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
994         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
995         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
996         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
997         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
998         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
999         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
1000         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
1001         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
1002         vsqrth_f16): New.
1004 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1006         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
1007         reduc_smin_scal_): Use VDQIF_F16.
1008         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
1009         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
1010         Use VHSDF.
1011         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
1012         * config/aarch64/iterators.md (VDQIF_F16): New.
1013         (vp): Support HF modes.
1014         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
1015         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
1017 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1019         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
1020         "*aarch64_mulx_elt_from_dup<mode>".
1021         (*aarch64_mul3_elt<mode>): Update schedule type.
1022         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
1023         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
1024         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1025         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
1026         (f, fp): Support HF modes.
1027         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
1028         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
1029         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
1030         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
1031         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
1032         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
1034 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1036         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1037         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
1038         modes.
1039         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
1040         vfmsq_f16): New.
1042 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1044         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1045         * config/aarch64/aarch64-simd.md
1046         (aarch64_rsqrts<mode>): Extend to HF modes.
1047         (fabd<mode>3): Likewise.
1048         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
1049         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
1050         (aarch64_<maxmin_uns>p<mode>): Likewise.
1051         (<su><maxmin><mode>3): Likewise.
1052         (<maxmin_uns><mode>3): Likewise.
1053         (<fmaxmin><mode>3): Likewise.
1054         (aarch64_faddp<mode>): Likewise.
1055         (aarch64_fmulx<mode>): Likewise.
1056         (aarch64_frecps<mode>): Likewise.
1057         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
1058         (add<mode>3): Extend to HF modes.
1059         (sub<mode>3): Likewise.
1060         (mul<mode>3): Likewise.
1061         (div<mode>3): Likewise.
1062         (*div<mode>3): Likewise.
1063         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
1064         HF, V4HF and V8HF.
1065         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
1066         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
1067         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
1068         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
1069         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
1070         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
1071         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
1072         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
1073         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
1074         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
1075         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
1076         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
1077         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
1078         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
1080 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1082         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
1083         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1084         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
1085         (neg<mode>2): Likewise.
1086         (abs<mode>2): Likewise.
1087         (<frint_pattern><mode>2): Likewise.
1088         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
1089         (<optab><VDQF:mode><fcvt_target>2): Likewise.
1090         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
1091         (ftrunc<VDQF:mode>2): Likewise.
1092         (<optab><fcvt_target><VDQF:mode>2): Likewise.
1093         (sqrt<mode>2): Likewise.
1094         (*sqrt<mode>2): Likewise.
1095         (aarch64_frecpe<mode>): Likewise.
1096         (aarch64_cm<optab><mode>): Likewise.
1097         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
1098         HF, V4HF and V8HF.
1099         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
1100         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
1101         (stype): New.
1102         * config/aarch64/arm_neon.h (vdup_n_f16): New.
1103         (vdupq_n_f16): Likewise.
1104         (vld1_dup_f16): Use vdup_n_f16.
1105         (vld1q_dup_f16): Use vdupq_n_f16.
1106         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
1107         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
1108         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
1109         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
1110         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
1111         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
1112         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
1113         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
1114         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
1115         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
1116         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
1117         vsqrt_f16, vsqrtq_f16): New.
1119 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1121         * config/aarch64/aarch64-simd.md
1122         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
1123         (aarch64_ext<mode>): Likewise.
1124         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
1125         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
1126         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
1127         and V8HFmode.
1128         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
1129         float16x8_t.
1130         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
1131         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
1132         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
1133         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
1134         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
1135         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
1136         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
1137         New.
1138         (vmov_n_f16): Reimplement using vdup_n_f16.
1139         (vmovq_n_f16): Reimplement using vdupq_n_f16..
1141 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1143         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
1144         "frame_related_p".  Generate CFA annotation when it's necessary.
1145         (aarch64_expand_prologue): Use aarch64_add_constant.
1146         (aarch64_expand_epilogue): Likewise.
1147         (aarch64_output_mi_thunk): Pass "false" when calling
1148         aarch64_add_constant.
1150 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1152         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
1153         sequences.
1155 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1157         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
1158         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
1159         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
1160         (aarch64_build_constant): Delete.
1162 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
1164         Revert
1165         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
1167         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1168         flag_toplevel_reorder.
1170 2016-07-25  Richard Biener  <rguenther@suse.de>
1172         * cgraph.c (cgraph_node::verify_node): Compare against builtin
1173         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
1174         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
1175         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
1176         (streamer_get_builtin_tree): Likewise.
1177         (streamer_write_builtin): Likewise.
1178         * lto-streamer.h (LTO_builtin_decl): Remove.
1179         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
1180         (lto_input_scc): Remove LTO_builtin_decl handling.
1181         (lto_input_tree_1): Liekwise.
1182         * lto-streamer-out.c (lto_output_tree_1): Remove special
1183         handling of builtins.
1184         (DFS::DFS): Likewise.
1185         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
1186         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
1187         assert.
1188         (streamer_write_builtin): Remove.
1190 2016-07-25  Martin Liska  <mliska@suse.cz>
1192         * lto-cgraph.c (input_symtab): Don't call get_working_sets
1193         if flag_auto_profile is set to true.
1195 2016-07-25  Martin Liska  <mliska@suse.cz>
1197         PR gcov-profile/71868
1198         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
1199         have a function with multiple latches, count them all.
1201 2016-07-25  Martin Liska  <mliska@suse.cz>
1203         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
1205 2016-07-25  Martin Liska  <mliska@suse.cz>
1207         PR tree-optimization/71987
1208         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
1209         just for SSA_NAMEs. Fix GNU coding style.
1211 2016-07-25  Martin Liska  <mliska@suse.cz>
1213         PR gcov-profile/64874
1214         * gcov-io.h: Update command about file format.
1215         * gcov-iov.c (main): Adapt the numbering scheme.
1217 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
1219         PR middle-end/66726
1220         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
1221         whose result is used in PHI.
1222         (final_range_test_p): Likewise.
1223         (maybe_optimize_range_tests): Likewise.
1225 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1227         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1228         Reformat two multi-line strings.
1230 2016-07-22 Martin Sebor  <msebor@redhat.com>
1232         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
1234 2016-07-22 Martin Sebor  <msebor@redhat.com>
1236         PR c/71560
1237         * doc/extend.texi (Compound Literals): Correct and clarify.
1238         (Cast to Union): Same.
1240 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1242         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1243         comments to explain why certain error messages make mention of
1244         undocumented options.
1245         (rs6000_invalid_builtin): Change error messages to replace mention
1246         of undocumented options with mention of the -mcpu=power9 option
1247         that enables those undocumented options.
1248         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
1249         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
1250         definition of this macro to correct an existing error.
1251         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
1252         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
1253         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
1254         descriptions of built-in functions so that they depend on
1255         -mcpu=power9 instead of on the corresponding undocumented flags.
1256         * doc/invoke.texi (Option Summary):  Remove all mention of newly
1257         undocumented flags.
1258         (IBM RS/6000 and PowerPC Options): Likewise.
1259         * doc/md.texi (Constraints for Particuliar Machines): Remove all
1260         mention of newly undocumented flags.
1262 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
1264         * ipa-cp.c (determine_versionability): Do not create constprop clones,
1265         when target_clones attribute is set.
1267 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
1269         * common.opt (funsafe-loop-optimizations): Mark ignore.
1270         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
1271         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
1272         related code.
1273         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
1274         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
1276 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
1278         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1279         Parameter.
1280         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1281         Parameter.
1282         (number_of_iterations_exit): Warn missed loop optimization for
1283         possible infinite loops.
1285 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
1287         PR target/71216
1288         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1289         when to emit a ".machine" pseudo-op.
1291 2016-07-22  Martin Liska  <mliska@suse.cz>
1293         PR gcov-profile/69028
1294         PR gcov-profile/62047
1295         * coverage.c (coverage_compute_lineno_checksum): Do not
1296         calculate checksum for fns w/o xloc.file.
1297         (coverage_compute_profile_id): Likewise.
1299 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
1301         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
1302         (avr_secondary_reload): ...and implementation.
1303         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
1304         * config/avr/avr.md (reload_in<mode>): Remove insns.
1305         (adjust_len) [lpm]: Remove insn attribute value.
1306         * config/avr/predicates.md (flash_operand): Remove insn predicate.
1308 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1310         PR middle-end/71876
1311         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
1312         attribute.
1313         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
1314         * calls.c (special_function_p): Remove the special handling of the
1315         "__builtin_" prefix.
1317 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1319         PR middle-end/71876
1320         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
1321         if STMT may be an alloca call.
1322         (gimple_alloca_call_p, alloca_call_p): Return only true for the
1323         builtin alloca call.
1324         * calls.h (gimple_maybe_alloca_call_p): New function.
1325         * tree-inline.c (inline_forbidden_p_stmt): Use
1326         gimple_maybe_alloca_call_p here.
1328 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
1330         * spellcheck-tree.c (best_macro_match::best_macro_match):
1331         Explictly specify the template arguments when invoking the base
1332         class constructor, to help older C++ compilers.
1334 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1336         PR sanitizer/71953
1337         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1338         before builtin_decl_implicit.
1340 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1342         * optabs.c (emit_condiitonal_move): Short circuit for identical
1343         sources.
1345 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1347         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
1348         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
1349         (noce_conversion_profitable_p): New.
1350         (noce_try_store_flag_constants): Use it.
1351         (noce_try_addcc): Likewise.
1352         (noce_try_store_flag_mask): Likewise.
1353         (noce_try_cmove): Likewise.
1354         (noce_try_cmove_arith): Likewise.
1355         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
1356         overwriting it.
1357         (noce_convert_multiple_sets): Move cost model to here, from...
1358         (bb_ok_for_noce_convert_multiple_sets) ...here.
1359         (noce_process_if_block): Update calls for above changes.
1360         (noce_find_if_block): Record new noce_if_info parameters.
1362 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1364         * target.def (max_noce_ifcvt_seq_cost): New.
1365         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
1366         * doc/tm.texi: Regenerate.
1367         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
1368         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
1369         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
1370         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
1371         * doc/invoke.texi: Document new params.
1373 2016-07-21  Richard Biener  <rguenther@suse.de>
1375         PR tree-optimization/71947
1376         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
1377         ranges have useful limit_vr information.
1379 2016-07-21  Richard Biener  <rguenther@suse.de>
1381         * function-tests.c (build_trivial_generic_function): Set
1382         BLOCK_SUPERCONTEXT of DECL_INITIAL.
1383         * omp-low.c (create_omp_child_function): Likewise.
1384         (grid_expand_target_grid_body): Likewise.
1385         * cgraphunit.c (init_lowered_empty_function): Likewise.
1386         (cgraph_node::expand_thunk): Likewise.
1387         * tree-parloops.c (create_loop_fn): Likewise.
1388         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
1390 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1392         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
1393         in comment.
1395 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
1397         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
1398         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
1399         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
1400         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
1401         values for insn attribute.
1402         * config/avr/avr.c (avr_out_insert_notbit): New function.
1403         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
1404         ADJUST_LEN_INSV_NOTBIT_0/_7.
1405         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
1407 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1409         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
1410         (chrec_convert_1, chrec_convert): Ditto.
1411         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
1412         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
1413         * tree-vrp.c (adjust_range_with_scev): Ditto.
1414         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
1415         (scev_var_range_cant_overflow): New function.
1416         (scev_probably_wraps_p): New parameter.  Call above function.
1417         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
1419 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1421         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
1422         by removing computation of may_be_zero.
1424 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1426         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1428 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
1430         Improving concepts performance and diagnostics.
1431         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1432         for constraint satisfaction and subsumption.
1433         * timevar.h (auto_timevar): New constructor that matches the push/pop
1434         pattern of usage in pt.c.
1436 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
1438         * hwint.h (HOST_WIDE_INT_0): New define.
1439         (HOST_WIDE_INT_0U): Ditto.
1440         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
1441         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
1442         * simplify-rtx.c: Ditto.
1443         * tree-object-size.c: Ditto.
1445 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1447         * config/s390/s390.c (s390_encode_section_info): Remove mode size
1448         check.
1450 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
1452         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
1453         * combine.c: Use HOST_WIDE_INT_M1U instead of
1454         ~(unsigned HOST_WIDE_INT) 0.
1455         * double-int.h: Ditto.
1456         * dse.c: Ditto.
1457         * dwarf2asm.c:Ditto.
1458         * expmed.c: Ditto.
1459         * genmodes.c: Ditto.
1460         * match.pd: Ditto.
1461         * read-rtl.c: Ditto.
1462         * tree-ssa-loop-ivopts.c: Ditto.
1463         * tree-ssa-loop-prefetch.c: Ditto.
1464         * tree-vect-generic.c: Ditto.
1465         * tree-vect-patterns.c: Ditto.
1466         * tree.c: Ditto.
1468 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1470         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
1471         constant addresses outside [0,0xc0] into a register.
1472         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
1473         cases where the base address register is unused after.
1474         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
1475         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
1476         (avr_out_store_psi_reg_disp_tiny): Same.
1478 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1480         Implement attribute progmem on reduced Tiny cores by adding
1481         flash offset 0x4000 to respective symbols.
1483         PR target/71948
1484         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
1485         documentation how it works on reduced Tiny cores.
1486         (AVR Named Address Spaces): No support for reduced Tiny.
1487         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
1488         (avr_address_tiny_pm_p): New static function.
1489         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
1490         if the address is in progmem.
1491         (avr_assemble_integer): Same.
1492         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
1493         for symbol_ref in progmem.
1494         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
1495         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
1496         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
1498 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
1500         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
1501         * configure: Regenerate.
1502         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
1503         (USE_THIN_ARCHIVES): New variable.
1504         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
1505         this archive as a thin archive.
1507 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1509         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
1510         same location as last time, don't skip if we have fix-it hints.
1511         Clarify the skipping logic by converting it from one "if" clause
1512         to repeated "if" clauses.
1513         * spellcheck-tree.c: Include "cpplib.h".
1514         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
1515         (best_macro_match::best_macro_match): New constructor.
1516         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
1517         Move here from c/c-decl.c.
1518         (class best_macro_match): Move here from c/c-decl.c, converting
1519         from a typedef to a subclass, gaining a ctor.
1521 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1523         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
1524         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
1525         define...
1526         (avr_addr_space_diagnose_usage): ...and implementation.
1527         (avr_addr_space_supported_p): New function.
1528         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
1529         report bad address space usage if that space is supported.
1530         (avr_insert_attributes): Same.  No more complain about unsupported
1531         address spaces.
1532         * config/avr/avr-c.c (tm_p.h): Include it.
1533         (avr_cpu_cpp_builtins): Only define addr-space related built-in
1534         macro if avr_addr_space_supported_p.
1536 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
1538         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1539         flag_toplevel_reorder.
1541 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1543         * gcc-rich-location.c
1544         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
1545         a const char *.
1546         * gcc-rich-location.h
1547         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
1549 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1551         * target.def (addr_space): Add new diagnose_usage to hook vector.
1552         * targhooks.c (default_addr_space_diagnose_usage): Add default
1553         implementation and...
1554         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
1555         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
1556         is some address space, call targetm.addr_space.diagnose_usage.
1557         * doc/tm.texi.in (Named Address Spaces): Add anchor for
1558         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
1559         * doc/tm.texi: Regenerate.
1561 2016-07-20  Martin Liska  <mliska@suse.cz>
1563         PR middle-end/71898
1564         * graphite-isl-ast-to-gimple.c (later_of_the_two):
1565         Properly handly PHI stmts.
1567 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
1569         PR tree-optimization/71503
1570         PR tree-optimization/71683
1571         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1572         and break.
1574 2016-07-20  Martin Liska  <mliska@suse.cz>
1576         * doc/invoke.texi (-fipa-ra): Document when the option is
1577         disabled. Fix a typo.
1579 2016-07-20  Martin Liska  <mliska@suse.cz>
1581         * Makefile.in: Include fibonacci_heap.c
1582         * fibonacci_heap.c: New file.
1583         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1584         (fibonacci_heap::union_with): Fix deletion of the second heap.
1585         * selftest-run-tests.c (selftest::run_tests): Incorporate
1586         fibonacci heap tests.
1587         * selftest.h: Declare fibonacci_heap_c_tests.
1589 2016-07-20  Martin Liska  <mliska@suse.cz>
1591         * selftest-run-tests.c (selftest::run_tests): New function.
1592         * selftest.h (sreal_c_tests): Declare.
1593         * sreal.c (sreal_verify_basics): New function.
1594         (verify_aritmetics): Likewise.
1595         (sreal_verify_arithmetics): Likewise.
1596         (verify_shifting): Likewise.
1597         (sreal_verify_shifting): Likewise.
1598         (void sreal_c_tests): Likewise.
1600 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1602         PR rtl-optimization/71916
1603         * cfgrtl.c (contains_no_active_insn_p): Return false also for
1604         bb which have a single succ fake edge.
1606 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
1608         PR debug/71855
1609         * dwarf2out.c (gen_subprogram_die): Only call
1610         gen_unspecified_parameters_die while dumping early dwarf.
1612 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1614         PR middle-end/71874
1615         * gimple-fold.c (fold_builtin_memory_op): Use
1616         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1618 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
1620         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1621         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1622         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1623         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1624         * combine.c: Ditto.
1625         * cse.c: Ditto.
1626         * dojump.c: Ditto.
1627         * double-int.c: Ditto.
1628         * dse.c: Ditto.
1629         * dwarf2out.c: Ditto.
1630         * expmed.c: Ditto.
1631         * expr.c: Ditto.
1632         * fold-const.c: Ditto.
1633         * function.c: Ditto.
1634         * fwprop.c: Ditto.
1635         * genmodes.c: Ditto.
1636         * hwint.c: Ditto.
1637         * hwint.h: Ditto.
1638         * ifcvt.c: Ditto.
1639         * loop-doloop.c: Ditto.
1640         * loop-invariant.c: Ditto.
1641         * loop-iv.c: Ditto.
1642         * match.pd: Ditto.
1643         * optabs.c: Ditto.
1644         * real.c: Ditto.
1645         * reload.c: Ditto.
1646         * rtlanal.c: Ditto.
1647         * simplify-rtx.c: Ditto.
1648         * stor-layout.c: Ditto.
1649         * toplev.c: Ditto.
1650         * tree-ssa-loop-ivopts.c: Ditto.
1651         * tree-vect-generic.c: Ditto.
1652         * tree-vect-patterns.c: Ditto.
1653         * tree.c: Ditto.
1654         * tree.h: Ditto.
1655         * ubsan.c: Ditto.
1656         * varasm.c: Ditto.
1657         * wide-int-print.cc: Ditto.
1658         * wide-int.cc: Ditto.
1659         * wide-int.h: Ditto.
1661 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1663         * selftest.c (selftest::assert_streq): Handle NULL values of
1664         val_actual and val_expected.
1666 2016-07-19  Martin Jambor  <mjambor@suse.cz>
1668         PR fortran/71688
1669         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1670         rather than cgraph_create_node to get a call graph node.
1672 2016-07-19  Richard Biener  <rguenther@suse.de>
1674         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1675         handle all tcc_constant bases and valueize SSA names.
1676         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1677         tcc_constant bases.
1679 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1681         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1682         the flags of the exit block and bb2, not just the entry block.
1684 2016-07-19  Richard Biener  <rguenther@suse.de>
1686         PR tree-optimization/71901
1687         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1688         align member, group stuff with the bitfield.
1689         (vn_ref_op_align_unit): New inline.
1690         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1691         record element alignment and operand 3 unchanged.
1692         (ao_ref_init_from_vn_reference): Adjust.
1693         (valueize_refs_1): Likewise.
1694         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1696 2016-07-19  Richard Biener  <rguenther@suse.de>
1698         PR tree-optimization/71908
1699         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1700         symbolic constants in a more reliable way.
1702 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
1704         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1705         comment.
1706         (vect_update_inits_of_drs): Likewise.
1707         (vect_create_cond_for_alias_checks): Likewise.
1708         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1710 2016-07-19  Richard Biener  <rguenther@suse.de>
1712         PR lto/71907
1713         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1714         with an abstract origin that is not an inlined function outer
1715         scope add a self-reference as abstract origin.
1716         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1718 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1720         PR target/71493
1721         * config/rs6000/rs6000.c (rs6000_function_value): Fix
1722         unintentional System V.4 structure return breakage for structures
1723         with a single floating point element.
1725 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
1727         PR tree-optimization/71734
1728         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1729         contains REF, use it to check safelen, assume that safelen value
1730         must be greater 1, fix style.
1731         (ref_indep_loop_p_2): Add REF_LOOP argument.
1732         (ref_indep_loop_p): Pass LOOP as additional argument to
1733         ref_indep_loop_p_2.
1735 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1737         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1738         allocation in the prologue.
1739         * explow.c (get_dynamic_stack_base): New function to return an address
1740         expression for the dynamic stack base.
1741         (get_dynamic_stack_size): New function to do the required dynamic stack
1742         space size calculations.
1743         (allocate_dynamic_stack_space): Use new functions.
1744         (align_dynamic_address): Move some code from
1745         allocate_dynamic_stack_space to new function.
1746         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1748 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1750         * config/s390/s390.c (s390_encode_section_info): Always set
1751         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1752         found.
1754 2016-07-18  Richard Biener  <rguenther@suse.de>
1756         PR tree-optimization/71893
1757         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1758         for sizetype cast added by array_ref_element_size.
1759         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1761 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
1763         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1764         register parameters.  Remove code to initialize argument pointer
1765         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
1766         using a pc-relative branch.  Cleanup conditional code.
1767         * config/pa/pa.md (call_mcount): New expander.
1768         (call_mcount_nonpic): New insn.
1769         (call_mcount_pic): New insn and split.
1770         (call_mcount_pic_post_reload): New insn.
1771         (call_mcount_64bit): New insn and split.
1772         (call_mcount_64bit_post_reload): New insn.
1774 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
1776         * config/avr/predicates.md (const_m255_to_m1_operand): New.
1777         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1778         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1779         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1780         (*usum_widenqihi3, *udiff_widenqihi3)
1781         (*addhi3_zero_extend.const): New combiner insns.
1782         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1783         just 1 bit is affected.
1784         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1785         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1787 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1789         * omp-low.c (lower_omp_target): Mark data clauses with
1790         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1791         zero-length subarrays.
1793 2016-07-15  Richard Biener  <rguenther@suse.de>
1795         PR tree-optimization/71881
1796         * tree-loop-distribution.c (destroy_loop): Remove blocks in
1797         reverse DOM order to make debug temp generation happy.
1799 2016-07-15  Richard Biener  <rguenther@suse.de>
1801         PR tree-optimization/71887
1802         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1803         verify it is not zero for division / modulo handling.
1804         (value_replacement): Adjust.
1806 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
1807             Julian Brown  <julian@codesourcery.com>
1809         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1810         * config/aarch64/aarch64-cost-tables.h
1811         (vulcan_extra_costs): New variable.
1812         * config/aarch64/aarch64.c
1813         (vulcan_addrcost_table): Likewise.
1814         (vulcan_regmove_cost): Likewise.
1815         (vulcan_vector_cost): Likewise.
1816         (vulcan_branch_cost): Likewise.
1817         (vulcan_tunings): Likewise.
1819 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
1821         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1822         (output_in_order): Loop over undefined variables too.  Output them
1823         via assemble_undefined_decl.  Skip variables that correspond to hard
1824         registers or have value-exprs.
1825         * varpool.c (symbol_table::output_variables): Handle undefined
1826         variables together with defined ones.
1828 2016-07-15  Richard Biener  <rguenther@suse.de>
1830         * tree-ssa-pre.c (get_representative_for): Make sure to return
1831         the value number of SSA names.
1832         (phi_translate_1): get_representative_for cannot return NULL.
1833         (do_pre_regular_insertion): Remove redundant call to
1834         fully_constant_expression.
1835         (do_pre_partial_partial_insertion): Likewise.
1837 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
1839         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1840         (derive_simple_iv_with_niters): New function.
1841         (simple_iv): Rewrite using simple_iv_with_niters.
1842         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1843         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1844         function.
1845         (number_of_iterations_exit): Rewrite using above function.
1846         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1847         Decl.
1849 2016-07-15  Richard Biener  <rguenther@suse.de>
1851         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1852         vec_construct cost.
1854 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1856         PR tree-optimization/71872
1857         * tree-data-ref.c (get_references_in_stmt): Ignore references
1858         with is_gimple_constant get_base_address.
1860 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1862         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1863         (TARGET_HAVE_LDACQD): New macro.
1864         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1865         than TARGET_HAVE_LDACQ.
1866         (arm_load_acquire_exclusivedi): Likewise.
1867         (arm_store_release_exclusivedi): Likewise.
1869 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1871         PR rtl-optimization/71878
1872         * lra-constraints.c (match_reload): Pass information about other
1873         output operands.  Create new unique register value if matching input
1874         operand shares same register value as output operand being considered.
1875         (curr_insn_transform): Record output operands already processed.
1877 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1879         PR target/65951
1880         PR tree-optimization/70923
1881         * tree-vect-patterns.c: Include mult-synthesis.h.
1882         (target_supports_mult_synth_alg): New function.
1883         (synth_lshift_by_additions): Likewise.
1884         (apply_binop_and_append_stmt): Likewise.
1885         (vect_synth_mult_by_constant): Likewise.
1886         (target_has_vecop_for_code): Likewise.
1887         (vect_recog_mult_pattern): Use above functions to synthesize vector
1888         multiplication by integer constants.
1890 2016-07-14  Alan Modra  <amodra@gmail.com>
1892         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1893         gpr alternatives.  Correct '*' placement on Y,r alternative.
1894         Add '*' on operand 1 of r,r alternative.
1896 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1898         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1899         * expmed.h: ... Here.
1901 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
1903         * gimple.h (stmt_can_terminate_bb_p): New function.
1904         * tree-cfg.c (need_fake_edge_p): Rename to ...
1905         (stmt_can_terminate_bb_p): ... this; return true if stmt can
1906         throw external; handle const and pure calls.
1907         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1909 2016-07-14  Richard Biener  <rguenther@suse.de>
1911         PR tree-optimization/71866
1912         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1913         (do_hoist_insertion): Avoid endless recursion when we
1914         didn't insert anything because we managed to simplify
1915         things down to a constant or SSA name.
1916         (fully_constant_expression): Re-write in terms of ...
1917         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
1918         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1919         vn_nary_build_or_lookup_1.
1920         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1921         (vn_nary_build_or_lookup): ... this which now wraps it.
1923 2016-07-14  Alan Modra  <amodra@gmail.com>
1925         PR target/71733
1926         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1927         with p9_vector override before power9-dform override.
1929 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1931         * value-prof.c (gimple_value_profile_transformations): Don't run
1932         when auto_profile is on.
1934 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1936         * auto-profile.c (update_inlined_ind_target,
1937         afdo_indirect_call): Print information to dump file.
1939 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1941         * genrecog.c (special_predicate_operand_p): New function.
1942         (predicate_name): Move function.
1943         (validate_pattern): Don't warn about missing mode for all
1944         define_special_predicate predicates.
1946 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
1948         * tree-vect-data-refs.c (vect_no_alias_p): New function.
1949         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1950         resolve alias checks which are known at compilation time.
1951         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1952         alias checks are resolved.  Move dump info for too many runtime
1953         alias checks to here...
1954         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1956 2016-07-13  Richard Biener  <rguenther@suse.de>
1958         PR tree-optimization/24574
1959         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1960         position and add shift, rotate, divison and modulo support
1961         for left zero.
1962         (value_replacement): Pass in argument position to absorbing_element_p.
1964 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1966         PR ipa/71633
1967         * ipa-inline-transform.c (inline_call): Support
1968         instrumented thunks.
1970 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1972         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1973         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1974         divide feature.
1975         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1976         Baseline.  Make initial alternative TARGET_32BIT only.
1977         (udivsi3): Likewise.
1978         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1979         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1980         target.
1982 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1984         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1985         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1986         availability with TARGET_HAVE_MOVT.
1987         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1988         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1989         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1990         UINTVAL.
1991         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1992         extra instruction if MOVW is available.  Use a cost variable
1993         incremented by COSTS_N_INSNS (1) when the condition match rather than
1994         returning an arithmetic expression based on COSTS_N_INSNS.  Make
1995         constant with bottom half word zero cost 2 instruction if MOVW is
1996         available.
1997         * config/arm/arm.md (define_attr "arch"): Add v8mb.
1998         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1999         target is ARMv8-M Baseline.
2000         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
2001         (arm_movtas_ze): Likewise.
2002         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
2003         alternative for constants satisfying j constraint.
2004         (thumb1_movsi_insn): Likewise.
2005         (movsi splitter for K alternative): Tighten condition to not trigger
2006         if movt is available and j constraint is satisfied.
2007         (Pe immediate splitter): Likewise.
2008         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
2009         constant fitting in an halfword to use MOVW.
2010         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
2011         effective target.
2013 2016-07-13  Richard Biener  <rguenther@suse.de>
2015         PR middle-end/71104
2016         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
2017         gimplifying the LHS.  Make sure to gimplify a returning twice
2018         call LHS without using SSA names.
2020 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2022         * tree-data-ref.c (find_data_references_in_stmt): Remove
2023         unnecessary call to vec::release.
2024         (graphite_find_data_references_in_stmt): Likewise.
2025         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
2026         * tree-vect-stmts.c (vectorizable_condition): Likewise.
2028 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2030         * cfgexpand.c (expand_used_vars): Make the type of a local
2031         variable auto_vec.
2032         * genmatch.c (lower_for): Likewise.
2033         * haifa-sched.c (haifa_sched_init): Likewise.
2034         (add_to_speculative_block): Likewise.
2035         (create_check_block_twin): Likewise.
2036         * predict.c (handle_missing_profiles): Likewise.
2037         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
2038         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
2039         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
2040         Likewise.
2041         (maybe_lower_iteration_bound): Likewise.
2042         * tree-ssa-sccvn.c (DFS): Likewise.
2043         * tree-stdarg.c (reachable_at_most_once): Likewise.
2044         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
2045         (vectorizable_store): Likewise.
2047 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2049         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
2050         (sccvn_dom_walker): make cond_stack an auto_vec.
2052 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2054         * ree.c (struct ext_state): Make type of members auto_vec.
2055         (find_and_remove_re): Adjust.
2057 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2059         * cfgexpand.c (struct stack_vars_data): Make type of fields
2060         auto_vec.
2061         (expand_used_vars): Adjust.
2063 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2065         * ipa.c (record_cdtor_fn): Adjust.
2066         (build_cdtor_fns): Likewise.
2067         (ipa_cdtor_merge): Make static_ctors and static_dtors local
2068         variables.
2070 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2072         * genextract.c (struct accum_extract): Add constructor and make
2073         members auto_vec.
2074         (gen_insn): Adjust.
2076 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2078         * tree.c (struct free_lang_data_d): Add constructor and change
2079         types of members to ones that automatically manage resources.
2080         (fld_worklist_push): Adjust.
2081         (find_decls_types): Likewise.
2082         (find_decls_types_in_eh_region): Likewise.
2083         (free_lang_data_in_cgraph): Stop manually creating and
2084         destroying members of free_lang_data_d.
2086 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
2088         PR rtl-optimization/68961
2089         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
2090         peephole variant.  Use sse_reg_operand predicates.
2092 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
2094         * config/i386/predicates.md (x86_64_immediate_operand)
2095         <case CONST_INT>: Remove unneeded truncation to DImode.
2096         <case CONST>: Ditto.
2097         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
2099 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2101         PR target/71805
2102         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
2103         The xxperm and xxpermr instructions require that the 2nd input
2104         operand overlap with the output operand, and not the 1st.
2105         (altivec_vperm_v8hiv16qi): Likewise.
2106         (altivec_vperm_<mode>_uns_internal): Likewise.
2107         (altivec_vpermr_<mode>_internal): Likewise.
2108         (vperm_v8hiv4si): Likewise.
2109         (vperm_v16qiv8hi): Likewise.
2111 2016-07-12  Nathan Sidwell  <nathan@acm.org>
2113         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
2114         when -mno-pic-data-is-text-relative is in effect, by default.
2115         * doc/invoke.texi (mpic-data-is-text-relative): Document new
2116         behavior and clarify.
2118 2016-07-12  Martin Liska  <mliska@suse.cz>
2120         * params.def: Add avg-loop niter.
2121         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
2122         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2123         * doc/invoke.texi: Document the new parameter.
2125 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2127         PR middle-end/71700
2128         * expr.c (store_constructor): Mask sign-extended bits when widening
2129         sub-word constructor element at the start of a word.
2131 2016-07-12  Martin Liska  <mliska@suse.cz>
2133         * Makefile.in: Append rule for params-options.h.
2134         * params-options.h: New file.
2136 2016-07-12  Martin Liska  <mliska@suse.cz>
2138         * ira-build.c (mark_loops_for_removal): Properly iterate
2139         loops.
2141 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
2142             Richard Biener  <rguenther@suse.de>
2144         PR tree-optimization/23286
2145         PR tree-optimization/70159
2146         * doc/invoke.texi: Document -fcode-hoisting.
2147         * common.opt (fcode-hoisting): New flag.
2148         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
2149         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
2150         (do_regular_insertion): Rename to ...
2151         (do_pre_regular_insertion): ... this and amend general comments
2152         on insertion strathegy.
2153         (do_partial_partial_insertion): Rename to ...
2154         (do_pre_partial_partial_insertion): ... this.
2155         (do_hoist_insertion): New function.
2156         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
2157         and call do_hoist_insertion properly.
2158         (insert): Adjust.
2159         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
2160         (pass_pre::execute): Register hoist_insert stats.
2162 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
2164         PR middle-end/71716
2165         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
2166         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
2167         is different from mode's bitsize.  Small cleanup.
2169 2016-07-12  Richard Biener  <rguenther@suse.de>
2171         PR rtl-optimization/68961
2172         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
2173         to simplify to a non-constant.
2175 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
2177         PR middle-end/71758
2178         * omp-low.c (expand_omp_target): Gimplify device.
2180         PR tree-optimization/71823
2181         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
2182         to get vec_oprnds2 from op2.
2184 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
2186         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
2187         Hoist common subexpressions.
2188         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
2190 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
2192         PR target/71800
2193         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
2194         prevent generation of 'stxsiwx' on pre Power8 hardware.
2196 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
2198         * input.c: Include cpplib.h.
2199         (selftest::temp_source_file): New class.
2200         (selftest::temp_source_file::temp_source_file): New ctor.
2201         (selftest::temp_source_file::~temp_source_file): New dtor.
2202         (selftest::should_have_column_data_p): New function.
2203         (selftest::test_should_have_column_data_p): New function.
2204         (selftest::temp_line_table): New class.
2205         (selftest::temp_line_table::temp_line_table): New ctor.
2206         (selftest::temp_line_table::~temp_line_table): New dtor.
2207         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
2208         it to create a temp_line_table.
2209         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
2210         locations that are known to have column data.
2211         (selftest::line_table_case): New struct.
2212         (selftest::test_reading_source_line): Move tempfile handling
2213         to class temp_source_file.
2214         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
2215         (selftest::assert_token_loc_eq): New function.
2216         (ASSERT_TOKEN_LOC_EQ): New macro.
2217         (selftest::test_lexer): New function.
2218         (selftest::boundary_locations): New array.
2219         (selftest::input_c_tests): Call test_should_have_column_data_p.
2220         Loop over a test matrix of interesting values of location and
2221         default_range_bits, calling test_lexer on each case in the matrix.
2222         Move call to test_accessing_ordinary_linemaps into the matrix.
2223         * selftest.h (ASSERT_EQ): Reimplement in terms of...
2224         (ASSERT_EQ_AT): New macro.
2226 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
2228         PR target/71801
2229         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2230         Don't convert TImode in debug insn.
2232 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2234         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
2235         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
2236         (tree_type_common::lang_flag_7): New.
2237         (tree_type_common::spare): Reduce size.
2238         * tree.h (TYPE_ALIGN_OK): Remove.
2239         (TYPE_LANG_FLAG_7): New.
2240         (get_inner_reference): Adjust header.
2241         * print-tree.c (print_node): Adjust.
2242         * expr.c (get_inner_reference): Remove parameter keep_aligning.
2243         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
2244         calls to get_inner_reference.
2245         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
2246         handling of TYPE_ALIGN_OK.
2247         * builtins.c (get_object_alignment_2): Adjust call to
2248         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
2249         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
2250         TYPE_ALIGN_OK.
2251         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
2252         * cfgexpand.c (expand_debug_expr): Likewise.
2253         * dbxout.c (dbxout_expand_expr): Likewise.
2254         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
2255         loc_list_from_tree, fortran_common): Likewise.
2256         * fold-const.c (optimize_bit_field_compare,
2257         decode_field_reference, fold_unary_loc, fold_comparison,
2258         split_address_to_core_and_offset): Likewise.
2259         * gimple-laddress.c (execute): Likewise.
2260         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
2261         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
2262         * hsa-gen.c (gen_hsa_addr): Likewise.
2263         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
2264         * tsan.c (instrument_expr): Likewise.
2265         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
2266         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
2267         * tree-affine.c (tree_to_aff_combination,
2268         get_inner_reference_aff): Adjust calls to get_inner_reference.
2269         * tree-data-ref.c (split_constant_offset_1,
2270         dr_analyze_innermost): Likewise.
2271         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
2272         * tree-sra.c (ipa_sra_check_caller): Likewise.
2273         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
2274         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
2275         bswap_replace): Likewise.
2276         * tree-vect-data-refs.c (vect_check_gather,
2277         vect_analyze_data_refs): Likewise.
2278         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
2279         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
2280         TYPE_ALIGN_OK.
2282 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
2284         * Makefile.in (selftest-valgrind): New phony target.
2285         * function-tests.c (selftest::build_cfg): Delete pass instances
2286         created by the test.
2287         (selftest::convert_to_ssa): Likewise.
2288         (selftest::test_expansion_to_rtl): Likewise.
2289         * tree-cfg.c (selftest::test_linear_chain): Release dominator
2290         vectors.
2291         (selftest::test_diamond): Likewise.
2293 2016-07-11  Richard Biener  <rguenther@suse.de>
2295         PR tree-optimization/71816
2296         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
2297         than replacing all of its operands.
2299 2016-07-11  Alan Modra  <amodra@gmail.com>
2301         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2302         (ctr<mode>): Add unspec.
2303         (ctr<mode>_internal*): Likewise.
2305 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
2307         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
2308         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
2310 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
2312         PR rtl-optimization/71621
2313         * lra-constraints.c (process_alt_operands): Check combination of
2314         reg class and mode.
2316 2016-07-08  Jason Merrill  <jason@redhat.com>
2317             Richard Biener  <rguenther@suse.de>
2319         P0145: Refining Expression Order for C++.
2320         * gimplify.c (initial_rhs_predicate_for): New.
2321         (gimplfy_modify_expr): Gimplify RHS before LHS.
2323 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2325         PR target/71297
2326         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2327         Allow standard error handling to take over when a wrong number
2328         of arguments is presented to __builtin_vec_ld () or
2329         __builtin_vec_st ().
2331 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2333         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2334         variants.
2335         (smin): Likewise.
2336         (fmax): New entry.
2337         (fmin): Likewise.
2338         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2339         __builtin_aarch64_fmaxv2sf.
2340         (vmaxnmq_f32): Likewise.
2341         (vmaxnmq_f64): Likewise.
2342         (vminnm_f32): Likewise.
2343         (vminnmq_f32): Likewise.
2344         (vminnmq_f64): Likewise.
2346 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2348         PR target/71806
2349         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2350         enable -mfloat128-hardware by default.
2351         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2352         that IEEE 128-bit hardware support needs.
2353         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2354         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2355         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2356         floating point requires.
2357         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2358         -mfloat128 and -mfloat128-hardware changes.
2360 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
2362         PR tree-optimization/71667
2363         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
2365 2016-07-08  Martin Liska  <mliska@suse.cz>
2367         PR middle-end/71606
2368         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2369         folding produces SAVE_EXPRs, thus return false for the type.
2371 2016-07-07  Martin Liska  <mliska@suse.cz>
2373         * file-find.c (remove_prefix): New function.
2374         * file-find.h (remove_prefix): Declare the function.
2375         * gcc-ar.c (main): Skip a folder of the wrapper if
2376         a wrapped binary would point to the same file.
2378 2016-07-07  Jan Hubicka  <jh@suse.cz>
2380         * tree-scalar-evolution.c (iv_can_overflow_p): export.
2381         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
2382         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
2384 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2386         PR ipa/71624
2387         * ipa-inline-analysis.c (compute_inline_parameters): Set
2388         local.can_change_signature to false for intrumentation
2389         thunk callees.
2391 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2393         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
2394         with TARGET_HAVE_MOVT.
2395         (TARGET_HAVE_MOVT): Define.
2396         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
2397         availability with TARGET_HAVE_MOVT.
2398         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
2399         availability.
2400         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
2401         TARGET_THUMB2.
2402         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
2403         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
2404         * config/arm/constraints.md (define_constraint "j"): Use
2405         TARGET_HAVE_MOVT to check MOVT availability.
2407 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2409         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
2411 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2413         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
2414         (armv8-m.main): Likewise.
2415         (armv8-m.main+dsp): Likewise.
2416         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
2417         (FL_FOR_ARCH8M_MAIN): Likewise.
2418         * config/arm/arm-tables.opt: Regenerate.
2419         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
2420         armv8-m.main+dsp to BE8_LINK_SPEC.
2421         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
2422         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
2423         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
2424         Baseline and Mainline.
2425         (arm_option_override_internal): Also disable arm_restrict_it when
2426         !arm_arch_notm.  Update comment for -munaligned-access to also cover
2427         ARMv8-M Baseline.
2428         (arm_file_start): Increase buffer size for printing architecture name.
2429         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
2430         and armv8-m.main+dsp.
2431         (mno-unaligned-access): Clarify that this is disabled by default for
2432         ARMv8-M Baseline architectures as well.
2434 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2436         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
2437         decide whether to prevent some libgcc routines being included for some
2438         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
2439         link between this condition and the one in
2440         libgcc/config/arm/lib1func.S.
2442 2016-07-07  Richard Biener  <rguenther@suse.de>
2444         * tree-ssa-pre.c: Include alias.h.
2445         (compute_avail): If we have multiple VN_REFERENCEs with the
2446         same hashtable entry adjust that to make it a valid replacement
2447         for all of them with respect to alignment and aliasing
2448         when doing insertion.
2449         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
2450         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
2452 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
2454         PR target/70098
2455         PR target/71763
2456         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2457         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2458         constraint.
2460 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2462         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
2463         (adjust_mems): Adjust.
2464         (adjust_insn): Likewise.
2465         (prepare_call_arguments): Likewise.
2467 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2469         * gcse.c (struct ls_expr): Make stores field a vector.
2470         (ldst_entry): Adjust.
2471         (free_ldst_entry): Likewise.
2472         (print_ldst_list): Likewise.
2473         (compute_ld_motion_mems): Likewise.
2474         (update_ld_motion_stores): Likewise.
2476 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2478         * gcse.c (struct ls_expr): Remove loads field.
2479         (ldst_entry): Adjust.
2480         (free_ldst_entry): Likewise.
2481         (print_ldst_list): Likewise.
2482         (compute_ld_motion_mems): Likewise.
2484 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2486         * store-motion.c (struct st_expr): Make antic_stores a vector.
2487         (st_expr_entry): Adjust.
2488         (free_st_expr_entry): Likewise.
2489         (print_store_motion_mems): Likewise.
2490         (find_moveable_store): Likewise.
2491         (compute_store_table): Likewise.
2492         (remove_reachable_equiv_notes): Likewise.
2493         (replace_store_insn): Likewise.
2494         (build_store_vectors): Likewise.
2496 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2498         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
2499         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
2501 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2503         PR tree-optimization/71518
2504         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2505         misalign also for outer loops with negative step.
2507 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
2509         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
2510         (cortex_a53_shift): Add mov_shift.
2511         (cortex_a53_shift_reg): Add new reservation for register shifts.
2512         (cortex_a53_alu): Remove bfm.
2513         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
2514         (cortex_a53_alu_extr): Add new reservation for EXTR.
2515         (bypasses): Improve bypass modelling.
2517 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2519         PR target/50739
2520         * config/avr/avr.c (avr_asm_select_section): Strip off
2521         SECTION_DECLARED from flags when calling get_section.
2523 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2525         * tree-vectorizer.h (vect_memory_access_type): Add
2526         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
2527         * tree-vect-stmts.c (compare_step_with_zero): New function.
2528         (perm_mask_for_reverse): Move further up file.
2529         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
2530         step is negative.
2531         (get_negative_load_store_type): New function.
2532         (get_load_store_type): Call it.  Add an ncopies argument.
2533         (vectorizable_mask_load_store): Update call accordingly and
2534         remove tests for negative steps.
2535         (vectorizable_store, vectorizable_load): Likewise.  Handle new
2536         memory_access_types.
2538 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2540         * tree-vectorizer.h (vect_memory_access_type): New enum.
2541         (_stmt_vec_info): Add a memory_access_type field.
2542         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
2543         (vect_model_store_cost): Take an access type instead of a boolean.
2544         (vect_model_load_cost): Likewise.
2545         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
2546         vect_model_store_cost and vect_model_load_cost.
2547         * tree-vect-stmts.c (vec_load_store_type): New enum.
2548         (vect_model_store_cost): Take an access type instead of a
2549         store_lanes_p boolean.  Simplify tests.
2550         (vect_model_load_cost): Likewise, but for load_lanes_p.
2551         (get_group_load_store_type, get_load_store_type): New functions.
2552         (vectorizable_store): Use get_load_store_type.  Record the access
2553         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
2554         (vectorizable_load): Likewise.
2555         (vectorizable_mask_load_store): Likewise.  Replace is_store
2556         variable with vls_type.
2558 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2560         * tree-vectorizer.h (vect_grouped_load_supported): Add a
2561         single_element_p parameter.
2562         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2563         Check the PR65518 case here rather than in vectorizable_load.
2564         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
2565         * tree-vect-stmts.c (vectorizable_load): Likewise.
2567 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2569         * tree-vectorizer.h (gather_scatter_info): New structure.
2570         (vect_check_gather_scatter): Return a bool rather than a decl.
2571         Replace return-by-pointer arguments with a single
2572         gather_scatter_info *.
2573         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2574         (vect_analyze_data_refs): Update call accordingly.
2575         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2576         (vectorizable_mask_load_store): Likewise.  Also record the
2577         offset dt and vectype in the gather_scatter_info.
2578         (vectorizable_store): Likewise.
2579         (vectorizable_load): Likewise.
2581 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2583         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2584         strided groups, use the cost of N scalar accesses instead
2585         of ncopies vector accesses.
2586         (vect_model_load_cost): Likewise.
2588 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2590         * tree-vect-stmts.c (vect_cost_group_size): Delete.
2591         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
2592         variable to indicate when once-per-group costs are being used.
2593         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
2595 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2597         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2598         peeling-for-gaps condition.
2600 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2602         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2603         element to register if it doesn't match general_operand.
2605 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2606             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2608         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2609         prototype.
2610         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2611         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2612         (SIGNBIT): New mode iterator.
2613         (Fsignbit): New mode attribute.
2614         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2615         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2616         when direct moves are available.
2617         (signbit<mode>2_dm): New define_insn_and_split).
2618         (signbit<mode>2_dm2): New define_insn.
2620 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2622         PR rtl-optimization/71594
2623         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2624         into subregs of appropriate mode before trying to emit a conditional
2625         move.
2627 2016-07-05  Jan Hubicka  <jh@suse.cz>
2629         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2630         (simple_iv): Use it.
2632 2016-07-05  Jan Hubicka  <jh@suse.cz>
2634         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2636 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
2638         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2639         "offmemok".
2641 2016-07-05  Jan Hubicka  <jh@suse.cz>
2643         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2644         IV can overflow.
2646 2016-07-05  Richard Biener  <rguenther@suse.de>
2648         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2649         Handle empty else block.
2650         (is_feasible_trace): Likewise.
2651         (split_paths): Likewise.
2653 2016-07-05  Richard Biener  <rguenther@suse.de>
2655         * tree-loop-distribution.c (distribute_loop): Fix issue with
2656         the cost model loop.
2658 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
2660         * config/arm/neon-testgen.ml: Delete.
2661         * config/arm/neon.ml: Delete.
2663 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2665         PR c++/71739
2666         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2667         directly using TREE_PURPOSE.
2669 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
2671         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2672         * config/aarch64/aarch64_neon.h: Likewise.
2673         * config/aarch64/arm_neon.h: Likewise.
2674         * config/aarch64/atomics.md: Likewise.
2675         * config/aarch64/aarch64-simd-builtins.def: Likewise.
2676         * doc/invoke.texi: Likewise.
2678 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2680         * config/s390/s390.md: Add "z13" cpu_facility.
2681         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2682         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2683         condition" type instructions.
2685 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2686             Jeff Law  <law@redhat.com>
2688         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2689         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2691 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
2693         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2694         permutation for TARGET_AVX512F.
2695         (ix86_expand_vec_one_operand_perm_avx512): New function.
2696         (expand_vec_perm_1): Invoke introduced function.
2697         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2698         it may be not valid after vectorization.
2700 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2702         PR target/63874
2703         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2704         typo in comment.  Only force to memory if it is a weak
2705         external reference.
2707 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
2708             Jiong Wang  <jiong.wang@arm.com>
2710         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2711         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2712         (AARCH64_FL_F16): New.
2713         (AARCH64_FL_FOR_ARCH8_2): New.
2714         (AARCH64_ISA_8_2): New.
2715         (AARCH64_ISA_F16): New.
2716         (TARGET_FP_F16INST): New.
2717         (TARGET_SIMD_F16INST): New.
2718         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2719         ("fp"): Disabling "fp" also disables "fp16".
2720         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2721         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2722         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2723         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2725 2016-07-04  Jan Beulich  <jbeulich@suse.com>
2727         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2729 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2731         PR target/71720
2732         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2733         the insns, use an insn form that does not adjust the offset on
2734         little endian systems.
2736 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2738         * varasm.c (get_variable_section): Validate initializer in
2739         named .bss-like sections.
2741 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2743         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2744         Exchange the order of the second and third operands in the vpermr
2745         instruction tmeplate.
2747 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2749         PR target/71698
2750         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2751         Disallow TDmode values.
2753 2016-07-01  Alan Modra  <amodra@gmail.com>
2755         PR rtl-optimization/71709
2756         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2757         being set, not referenced.
2759 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
2761         PR tree-optimization/70729
2762         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2763         of loop since it can be not valid after transformation.
2765 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2767         * config/arm/arm.c (thumb_reload_in_hi): Delete.
2768         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2770 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2772         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2773         for NULL decl.
2775 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2777         PR target/71677
2778         * config/rs6000/constraints.md (wY constraint): New constraint to
2779         match the requirements for the LXSD and STXSD instructions.
2780         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2781         predicate to match the requirements for the LXSD and STXSD
2782         instructions.
2783         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2784         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2785         to make sure that the bottom 2 bits of offset are 0, the address
2786         form is offsettable, and no updating is done in the address mode.
2787         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2788         (movdi_internal32): Likewise
2789         (movdi_internal64): Likewise.
2791 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2793         PR tree-optimization/71707
2794         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2795         strinfo even for ADDR_EXPR ptr.
2797 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2799         * config/rs6000/altivec.md (darn_32): Change the condition to
2800         TARGET_P9_MISC instead of TARGET_MODULO.
2801         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2802         condition expression.
2803         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2804         condition expression.
2805         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2806         (DFP_TEST): New code iterator.
2807         (dfptstsfi_<code>_mode>): New define_expand.
2808         (*dfp_sgnfcnc_<mode>): New define_insn.
2809         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2810         definition next to BU_P9_MISC_1 definition and change the MASK
2811         value to RS6000_BTM_P9_MISC.
2812         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2813         (BU_P9_64BIT_MISC_0): Likewise.
2814         (BU_P9_DFP_MISC_0): New macro definition.
2815         (BU_P9_DFP_MISC_1): New macro definition.
2816         (BU_P9_DFP_MISC_2): New macro definition.
2817         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2818         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2819         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2820         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2821         (TSTSFI_LT_TD): Likewise.
2822         (TSTSFI_EQ_DD): Likewise.
2823         (TSTSFI_EQ_TD): Likewise.
2824         (TSTSFI_GT_DD): Likewise.
2825         (TSTSFI_GT_TD): Likewise.
2826         (TSTSFI_OV_DD): Likewise.
2827         (TSTSFI_OV_TD): Likewise.
2828         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2829         (TSTSFI_LT_DD): Likewise.
2830         (TSTSFI_LT_TD): Likewise.
2831         (TSTSFI_EQ): Likewise.
2832         (TSTSFI_EQ_DD): Likewise.
2833         (TSTSFI_EQ_TD): Likewise.
2834         (TSTSFI_GT): Likewise.
2835         (TSTSFI_GT_DD): Likewise.
2836         (TSTSFI_GT_TD): Likewise.
2837         (TSTSFI_OV): Likewise.
2838         (TSTSFI_OV_DD): Likewise.
2839         (TSTSFI_OV_TD): Likewise.
2840         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2841         overloaded test significance functions.
2842         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2843         OPTION_MASK_P9_MISC into the representation of this mask.
2844         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2845         of this mask.
2846         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2847         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2848         non-zero.
2849         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2850         argument is a 6-bit unsigned literal value if the icode argument
2851         represents a DFP test significance built-in call.
2852         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2853         flag used independently and in combination with the
2854         RS6000_BTM_64BIT flag.
2855         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2856         (rs6000_builtin_mask_names): Add entry for power9-misc
2857         command-line option.
2858         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2859         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2860         RS6000_BTM_P9_MISC macros.
2861         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2862         option and change the description of the -mpower9-vector option to
2863         enable only vector instructions, removing its erroneously claimed
2864         support for scalar instructions.
2865         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2866         the ISA 3.0 digital floating point test significance built-in
2867         functions.
2869 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
2871         * config/aarch64/aarch64.c (cortexa35_tunings):
2872         Enable AES fusion.  Use cortexa57_branch_cost.
2873         (cortexa53_tunings): Use cortexa57_branch_cost.
2874         (cortexa72_tunings): Use cortexa57_branch_cost.
2875         Use AUTOPREFETCHER_WEAK.
2876         (cortexa73_tunings): Use cortexa57_branch_cost.
2878 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2879             James Greenhalgh  <james.greenhalgh@arm.com>
2881         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2882         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2883         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2884         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2885         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2886         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2887         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2888         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2889         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2890         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2891         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2892         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2893         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2894         New intrinsics.
2896 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
2897             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2899         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2900         New define_insn.
2901         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2903 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
2905         PR driver/71651
2906         * gcc.c (driver::build_option_suggestions): Pass "option" to
2907         add_misspelling_candidates.
2908         * opts-common.c (add_misspelling_candidates): Add "option" param;
2909         use it to avoid adding negated forms for options marked with
2910         RejectNegative.
2911         * opts.h (add_misspelling_candidates): Add "option" param.
2913 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2915         PR middle-end/71693
2916         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2917         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2918         first when permuting bitwise operation with rotate.  Cast
2919         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2921 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
2923         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2924         for misspelled param names.
2925         * params.c: Include spellcheck.h.
2926         (find_param_fuzzy): New function.
2927         * params.h (find_param_fuzzy): New prototype.
2928         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2929         * spellcheck.h (struct edit_distance_traits<const char *>):
2930         ...here.
2932 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2934         * config/rs6000/predicates.md (const_0_to_7_operand): New
2935         predicate, recognize 0..7.
2936         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2937         support for doing extracts from V16QImode, V8HImode, V4SImode
2938         under ISA 3.0.
2939         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2940         vector extract support.
2941         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2942         for ISA 3.0 vector extract.
2943         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2944         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2945         extracts of a constant element number from small integer vectors
2946         on 64-bit ISA 3.0 systems.
2947         (vsx_extract_<mode>_di): Likewise.
2948         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2949         say when we can do ISA 3.0 vector extracts.
2950         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2951         registers, using the stxsiwx instruction.
2953 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
2955         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2956         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2957         qdf24xx_regmove_cost, qdf24xx_tunings): New.
2958         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2959         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2960         * config/arm/arm.c (arm_qdf24xx_tune): New.
2962 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
2964         * config/aarch64/aarch64.c (cortexa53_tunings):
2965         Increase loop alignment to 8.  Set function alignment to 16.
2966         (cortexa35_tunings): Likewise.
2967         (cortexa57_tunings): Increase loop alignment to 8.
2968         (cortexa72_tunings): Likewise.
2969         (cortexa73_tunings): Likewise.
2971 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2973         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2974         for arm_fp16_ok and arm_fp16_hw.
2975         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2976         arm_fp16_alternative.
2978 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2980         PR tree-optimization/71655
2981         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2982         types when swapping operands.
2984 2016-06-29  Martin Liska  <mliska@suse.cz>
2986         PR middle-end/71585
2987         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2988         * ipa-inline-transform.c (inline_call): Remove unnecessary call
2989         of build_optimization_node.
2991 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
2993         PR tree-optimization/70729
2994         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2995         independent in loops having positive safelen value.
2996         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2997         it may be not valid after vectorization.
2999 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
3001         PR tree-optimization/71625
3002         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
3003         is sorted by ascending list->offset.  If PTR is non-NULL and there is
3004         previous strinfo, call get_stridx_plus_constant.
3005         (get_stridx): Pass exp as second argument to get_addr_stridx.
3006         (addr_stridxptr): Add missing list = list->next, so that there can be
3007         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
3008         the list is sorted by ascending list->offset.
3009         (get_stridx_plus_constant): Adjust so that it can be also called with
3010         ADDR_EXPR instead of SSA_NAME as PTR.
3011         (handle_char_store): Pass NULL_TREE as second argument to
3012         get_addr_stridx.
3014 2016-06-29  Richard Biener  <rguenther@suse.de>
3016         PR rtl-optimization/68961
3017         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
3019 2016-06-29  Richard Biener  <rguenther@suse.de>
3021         PR middle-end/71002
3022         * alias.c (component_uses_parent_alias_set_from): Handle
3023         type punning through union accesses by using the union alias set.
3024         * gimple.c (gimple_get_alias_set): Remove union type punning case.
3026 2016-07-29  Richard Biener  <rguenther@suse.de>
3028         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
3029         precision not matching mode precision.
3031 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
3033         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
3034         pa_output_arg_descriptor.
3035         (call_val_symref_64bit_post_reload): Likewise.
3036         (call_val_powf_64bit_post_reload): Likewise.
3037         (sibcall_internal_symref_64bit): Likewise.
3038         (sibcall_value_internal_symref_64bit): Likewise.
3040 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
3042         PR middle-end/71626
3043         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
3044         a constant, force its SUBREG_REG into memory or register instead
3045         of whole op1.
3047 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3049         PR target/58655
3050         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
3051         * doc/invoke.texi (AVR Options): Document it.
3053 2016-06-28  Walter Lee  <walt@tilera.com>
3055         * config/tilegx/linux.h: Do not include arch/icache.h
3056         (CLEAR_INSN_CACHE): Provide inlined definition directly.
3057         * config/tilepro/linux.h: Do not include arch/icache.h
3058         (CLEAR_INSN_CACHE): Provide inlined definition directly.
3060 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
3062         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
3063         for big-endian BIT_FIELD_REF.
3065 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
3067         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
3068         ('size' attribute): Add '128'.
3069         Include power9.md.
3070         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
3071         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
3072         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
3073         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
3074         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
3075         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
3076         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
3077         *trunc<mode>df2_odd): Set size attribute to '128'.
3078         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
3079         * config/rs6000/power6.md (power6-fp): Include dfp type.
3080         * config/rs6000/power7.md (power7-fp): Likewise.
3081         * config/rs6000/power8.md (power8-fp): Likewise.
3082         * config/rs6000/power9.md: New file.
3083         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
3084         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
3085         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
3086         htmsimple.
3087         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
3088         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
3089         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
3090         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
3091         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
3092         dfp_dscri_<mode>): Change type attribute to dfp.
3093         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
3094         attribute to vecsimple.
3095         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
3096         and prefetch streams.
3097         (rs6000_option_override_internal): Remove temporary code setting
3098         tuning to power8.  Don't set rs6000_sched_groups for power9.
3099         (last_scheduled_insn): Change to rtx_insn *.
3100         (divide_cnt, vec_load_pendulum): New variables.
3101         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
3102         (rs6000_issue_rate): Set issue rate for Power9.
3103         (is_power9_pairable_vec_type): New.
3104         (power9_sched_reorder2): New.
3105         (rs6000_sched_reorder2): Call new function for Power9 specific
3106         reordering.
3107         (insn_must_be_first_in_group): Remove Power9.
3108         (insn_must_be_last_in_group): Likewise.
3109         (force_new_group): Likewise.
3110         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
3111         Initialize divide_cnt/vec_load_pendulum.
3112         (_rs6000_sched_context, rs6000_init_sched_context,
3113         rs6000_set_sched_context): Handle context save/restore of new
3114         variables.
3116 2016-06-28  Richard Biener  <rguenther@suse.de>
3118         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3119         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
3120         COMPONENT_REF operand.
3121         (nonoverlapping_component_refs_p): Likewise.
3122         * stor-layout.c (start_bitfield_representative): Mark
3123         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
3125 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
3127         * Makefile.in: Don't cat ../stage_current if it does not exist.
3129         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
3130         last argument is a bit-field.
3132         PR rtl-optimization/71673
3133         * internal-fn.c (expand_arith_overflow_result_store): Use
3134         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
3135         expand_simple_binop.
3137         PR middle-end/66867
3138         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
3139         expand_ifn_atomic_compare_exchange): New functions.
3140         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
3141         * tree.h (build_call_expr_internal_loc): Rename to ...
3142         (build_call_expr_internal_loc_array): ... this.  Fix up type of
3143         last argument.
3144         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
3145         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
3146         ATOMIC_COMPARE_EXCHANGE result.
3147         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
3148         * gimple-fold.h (optimize_atomic_compare_exchange_p,
3149         fold_builtin_atomic_compare_exchange): New prototypes.
3150         * gimple-fold.c (optimize_atomic_compare_exchange_p,
3151         fold_builtin_atomic_compare_exchange): New functions..
3152         * tree-ssa.c (execute_update_addresses_taken): If
3153         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
3154         of call when finding addressable vars, and if such var becomes
3155         non-addressable, call fold_builtin_atomic_compare_exchange.
3157 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
3159         PR target/71670
3160         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
3161         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
3163 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
3165         * config/rs6000/rs6000.md ('type' attribute): Add
3166         veclogical,veccmpfx,vecexts,vecmove insn types.
3167         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
3168         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
3169         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
3170         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
3171         *nabs<mode>2_hw): Change type to vecmove.
3172         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
3173         *boolcc<mode>3_internal, *eqv<mode>3_internal,
3174         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
3175         *ieee_128bit_vsx_abs<mode>2_internal,
3176         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
3177         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
3178         *ieee128_mtvsrd_32bit): Change type to veclogical.
3179         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
3180         *movdi_internal32, *movdi_internal64): Update insn types.
3181         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
3182         vsx_extract_<mode>): Change type to veclogical.
3183         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
3184         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
3185         *vsx_sign_extend_si_v2di): Change type to vecexts.
3186         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
3187         type to veclogical.
3188         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
3189         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
3190         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
3191         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
3192         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
3193         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
3194         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
3195         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
3196         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
3197         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
3198         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
3199         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
3200         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
3201         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
3202         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
3203         (ppc7450-vecsimple): Add veclogical, vecmove.
3204         (ppc7450-veccmp): Add veccmpfx.
3205         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
3206         vecmove.
3207         (ppc8540_vector_compare): Add veccmpfx.
3208         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
3209         * config/rs6000/cell.md (cell-fp): Add fpsimple.
3210         (cell-vecsimple): Add veclogical, vecmove.
3211         (cell-veccmp): Add veccmpfx.
3212         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
3213         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
3214         veccmpfx.
3215         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
3216         * config/rs6000/power4.md (power4-fp): Add fpsimple.
3217         (power4-vecsimple): Add veclogical, vecmove.
3218         (power4-veccmp): Add veccmpfx.
3219         * config/rs6000/power5.md (power5-fp): Add fpsimple.
3220         * config/rs6000/power6.md (power6-fp): Add fpsimple.
3221         (power6-vecsimple): Add veclogical, vecmove.
3222         (power6-veccmp): Add veccmpfx.
3223         * config/rs6000/power7.md (power7-fp): Add fpsimple.
3224         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
3225         * config/rs6000/power8.md (power8-fp): Add fpsimple.
3226         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
3227         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
3228         * config/rs6000/titan.md (titan_fp): Add fpsimple.
3229         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
3230         fpsimple.
3231         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
3233 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
3235         PR target/71656
3236         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3237         OPTION_MASK_P9_DFORM_VECTOR.
3238         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
3239         disable -mpower9-dform-vector when using reload.
3240         (quad_address_p): Remove 'gpr_p' argument and all associated code.
3241         New 'strict' argument.  Update all callers.  Add strict addressing
3242         support.
3243         (rs6000_legitimate_offset_address_p): Remove call to
3244         virtual_stack_registers_memory_p.
3245         (rs6000_legitimize_reload_address): Add quad address support.
3246         (rs6000_legitimate_address_p): Move call to quad_address_p above
3247         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
3248         to account for new strict usage.
3249         (rs6000_output_move_128bit): Adjust quad_address_p args to account
3250         for new strict usage.
3251         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
3253 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
3255         PR target/70902
3256         PR target/71453
3257         PR target/71555
3258         PR target/71596
3259         PR target/71657
3260         * config/i386/i386.c (ix86_spill_class): Disable condition to
3261         always return NO_REGS.
3263 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
3265         * predict.c: Include gimple-pretty-print.h
3266         (predicted_by_loop_heuristics_p): Check also
3267         PRED_LOOP_EXIT_WITH_RECURSION
3268         (predict_loops): Find self recursive calls and use special purpose
3269         predictors for them; dump log about decisions.
3270         (pass_profile::execute): Dump info about #of iterations.
3271         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
3272         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
3274 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
3276         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
3277         output_asm_insn calls and shorten long lines.  Output .CALL
3278         argument descriptor using pa_output_arg_descriptor.  Add various
3279         inline $$dyncall and other optimizations.
3280         (pa_attr_length_indirect_call): Adjust ordering and lengths.
3282 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
3284         PR tree-optimization/71643
3285         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
3286         EH preds.
3288         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
3289         leak a bitmap if dep_bb is NULL.
3291         PR tree-optimization/71631
3292         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
3293         to rewrite_expr_tree even if negate_result, move new_lhs var
3294         declaration and initialization earlier, for powi_result set afterwards
3295         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
3296         if new_lhs != lhs, and don't shadow gsi var.
3298 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
3300         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
3301         Add in_loop parameter.
3302         (predict_loops): Add loop guard heuristics.
3303         * predict.def (PRED_LOOP_GUARD): New heuristics.
3305 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
3307         * predict.c: Include ipa-utils.h
3308         (tree_bb_level_prediction): Predict recursive calls.
3309         (tree_estimate_probability_bb): Skip inexpensive calls for call
3310         predictor.
3311         * predict.def (PRED_RECURSIVE_CALL): New.
3313 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3315         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
3316         (BU_FLOAT128_1): Likewise.
3317         (FABSQ): Likewise.
3318         (COPYSIGNQ): Likewise.
3319         (RS6000_BUILTIN_NANQ): Likewise.
3320         (RS6000_BUILTIN_NANSQ): Likewise.
3321         (RS6000_BUILTIN_INFQ): Likewise.
3322         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
3323         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
3324         (TARGET_FOLD_BUILTIN): New #define.
3325         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
3326         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
3327         (rs6000_fold_builtin): New target hook implementation, handling
3328         folding of 128-bit NaNs and infinities.
3329         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
3330         entries are filled in to avoid problems during bootstrap
3331         self-test; define builtins for 128-bit NaNs and infinities.
3332         (rs6000_opt_mask): Add entry for float128.
3333         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
3334         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
3335         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3336         (const_str_type_node): New #define.
3337         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3338         to a define_expand that dispatches to either copysign<mode>3_soft
3339         or copysign<mode>3_hard.
3340         (copysign<mode>3_hard): Rename from copysign<mode>3.
3341         (copysign<mode>3_soft): New define_insn.
3342         * doc/extend.texi: Document new builtins.
3344 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3346         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
3347         PRIu64 instead of lu.
3349 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3351         PR debug/71642
3352         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
3353         copy the type name.
3355 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3357         PR tree-optimization/71647
3358         * omp-low.c (lower_rec_input_clauses): Convert
3359         omp_clause_aligned_alignment (c) to size_type_node for the
3360         last argument of __builtin_assume_aligned.
3362 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3364         * configure.ac (calling ___tls_get_addr via GOT): New
3365         assembler/linker check.
3366         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
3367         assembler and linker supports calling ___tls_get_addr via GOT.
3368         Otherise, defined to 0.
3369         * config.in: Regenerated.
3370         * configure: Likewise.
3371         * config/i386/constraints.md (Yb): New constraint.
3372         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
3373         (REG_CLASS_NAMES): Likewise.
3374         (REG_CLASS_CONTENTS): Likewise.
3375         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
3376         the b constraint with the Yb constraint.  Call ___tls_get_addr
3377         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
3378         is 1.
3379         (*tls_local_dynamic_base_32_gnu): Likewise.
3380         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
3381         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
3382         (*tls_local_dynamic_base_64_<mode>): Likewise.
3384 2016-06-24  Martin Liska  <mliska@suse.cz>
3386         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
3387         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
3388         few functions.
3389         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
3390         argument to true if the expected number of iterations is
3391         loop-based.
3393 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
3395         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
3396         assemble for 32bit target.
3397         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
3398         and $ld_ix86_gld_32_opt to link for 32bit target.
3399         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
3400         * configure: Regenerate.
3402 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3404         * config/arm/arm.c (int_log2): Delete definition and prototype.
3405         (shift_op): Use exact_log2 instead of int_log2.
3406         (vfp3_const_double_for_fract_bits): Likewise.
3408 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3410         * internal-fn.c (expand_arith_set_overflow): New function.
3411         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3412         Use it.
3413         (expand_arith_overflow_result_store): Likewise.  Handle precision
3414         smaller than mode precision.
3415         * tree-vrp.c (extract_range_basic): For imag part, handle
3416         properly signed 1-bit precision result.
3417         * doc/extend.texi (__builtin_add_overflow): Document that last
3418         argument can't be pointer to enumerated or boolean type.
3419         (__builtin_add_overflow_p): Document that last argument can't
3420         have enumerated or boolean type.
3422 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3423             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3425         * config/rs6000/predicates.md (splat_input_operand): Rework.
3426         Don't allow constants, since the insns that use this predicate
3427         don't support constants.  Constants are handled by other insns
3428         that are created via combine.  During and after register
3429         allocation, only allow indexed or indirect addresses, and not
3430         general addresses.  Only allow modes supported by the hardware.
3431         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
3432         comment.  Move check for using VSPLTIS<x> to a common location,
3433         instead of doing it in two different places.
3435 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
3437         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3438         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
3439         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
3440         signature_CENTAUR_ebx.
3442 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3444         PR target/66232
3445         PR target/67400
3446         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
3447         (as_ix86_gas_32_opt): This.
3448         (ld_ix86_tls_ldm_opt): Renamed to ...
3449         (ld_ix86_gld_32_opt): This.
3450         (R_386_TLS_LDM reloc): Updated.
3451         (R_386_GOT32X reloc): New assembler/linker check.
3452         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
3453         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
3454         defined to 0.
3455         * config.in: Regenerated.
3456         * configure: Likewise.
3457         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
3458         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
3459         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
3460         if ix86_force_load_from_GOT_p returns true.
3461         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
3462         ix86_force_load_from_GOT_p returns true.
3463         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
3464         the external function address via the GOT slot.
3465         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
3466         HAVE_AS_IX86_GOT32X before returning false.
3467         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
3468         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
3470 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
3472         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
3474 2016-06-23  Andi Kleen  <ak@linux.intel.com>
3476         * Makefile.in: Regenerate.
3477         * doc/install.texi: Document autoprofiledbootstrap.
3479 2016-06-23  Andi Kleen  <ak@linux.intel.com>
3481         * config/i386/gcc-auto-profile: New file.
3483 2016-06-23  Martin Liska  <mliska@suse.cz>
3485         PR middle-end/71619
3486         * predict.c (predict_loops): Revert the hunk that was removed
3487         in r237103.
3489 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
3491         * config.gcc: Add support for arm*-*-phoenix* targets.
3492         * config/arm/t-phoenix: New.
3493         * config/phoenix.h: New.
3495 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
3496             H.J. Lu  <hongjiu.lu@intel.com>
3498         PR target/67400
3499         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
3500         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
3501         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
3502         ix86_force_load_from_GOT_p returns true.
3503         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
3504         ix86_force_load_from_GOT_p returns true.
3505         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
3506         ix86_force_load_from_GOT_p returns true.
3507         (ix86_expand_move): Load the external function address via the
3508         GOT slot if ix86_force_load_from_GOT_p returns true.
3509         * config/i386/predicates.md (x86_64_immediate_operand): Return
3510         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
3511         (x86_64_zext_immediate_operand): Ditto.
3513 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
3515         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
3517 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3519         PR c/70339
3520         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
3521         * diagnostic.c (pedwarn_at_rich_loc): New function.
3522         * spellcheck.h (best_match::best_match): Add a
3523         "best_distance_so_far" optional parameter.
3524         (best_match::set_best_so_far): New method.
3525         (best_match::get_best_distance): New accessor.
3526         (best_match::get_best_candidate_length): New accessor.
3528 2016-06-22  Nick Clifton  <nickc@redhat.com>
3530         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
3531         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
3532         modes are accepted as well.
3533         (ucompare_loc_descriptor): Likewise.
3534         (minmax_loc_descriptor): Likewise.
3535         (clz_loc_descriptor): Likewise.
3536         (popcount_loc_descriptor): Likewise.
3537         (bswap_loc_descriptor): Likewise.
3538         (rotate_loc_descriptor): Likewise.
3539         (mem_loc_descriptor): Likewise.
3540         (loc_descriptor): Likewise.
3542 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3544         * common.opt (fdiagnostics-parseable-fixits): New option.
3545         * diagnostic.c: Include "selftest.h".
3546         (print_escaped_string): New function.
3547         (print_parseable_fixits): New function.
3548         (diagnostic_report_diagnostic): Call print_parseable_fixits.
3549         (selftest::assert_print_escaped_string): New function.
3550         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
3551         (selftest::test_print_escaped_string): New function.
3552         (selftest::test_print_parseable_fixits_none): New function.
3553         (selftest::test_print_parseable_fixits_insert): New function.
3554         (selftest::test_print_parseable_fixits_remove): New function.
3555         (selftest::test_print_parseable_fixits_replace): New function.
3556         (selftest::diagnostic_c_tests): New function.
3557         * diagnostic.h (struct diagnostic_context): Add field
3558         "parseable_fixits_p".
3559         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3560         -fdiagnostics-parseable-fixits.
3561         (-fdiagnostics-parseable-fixits): New option.
3562         * opts.c (common_handle_option): Handle
3563         -fdiagnostics-parseable-fixits.
3564         * selftest-run-tests.c (selftest::run_tests): Call
3565         selftest::diagnostic_c_tests.
3566         * selftest.h (selftest::diagnostic_c_tests): New prototype.
3568 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
3570         PR tree-optimization/71488
3571         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3572         comparison of boolean vectors.
3573         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3574         of boolean vectors using bitwise operations.
3576 2016-06-22  Andreas Schwab  <schwab@suse.de>
3578         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3579         Remove declaration.
3581 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3583         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3585 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3587         * config/i386/i386.c (print_reg): Emit an error message on attempt to
3588         print FLAGS_REG.
3590 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3592         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3593         * config/arm/arm-cores.def (cortex-a73): New entry.
3594         (cortex-a73.cortex-a35): Likewise.
3595         (cortex-a73.cortex-a53): Likewise.
3596         * config/arm/arm-tables.opt: Regenerate.
3597         * config/arm/arm-tune.md: Likewise.
3598         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3599         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3600         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3601         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3602         * doc/invoke.texi (ARM Options): Document cortex-a73,
3603         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3605 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3607         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3608         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3609         (cortex-a73.cortex-a35): Likewise.
3610         (cortex-a73.cortex-a53): Likewise.
3611         * config/aarch64/aarch64-tune.md: Regenerate.
3612         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3613         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3614         -mcpu and -mtune.
3616 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3618         * configure.ac (gcc_cv_as_compress_debug): Remove
3619         --compress-debug-sections as extra as switch.
3620         Handle gas --compress-debug-sections=type.
3621         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3622         Handle gld --compress-debug-sections=type.
3623         * configure: Regenerate.
3625 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3627         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3629 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
3631         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3632         (do_rewrite): likewise.
3634 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3636         * common/config/mep/mep-common.c: Remove.
3637         * config.gcc: Remove mep-* support.
3638         * config/mep/constraints.md: Remove.
3639         * config/mep/default.h: Remove.
3640         * config/mep/intrinsics.h: Remove.
3641         * config/mep/intrinsics.md: Remove.
3642         * config/mep/ivc2-template.h: Remove.
3643         * config/mep/mep-c5.cpu: Remove.
3644         * config/mep/mep-core.cpu: Remove.
3645         * config/mep/mep-default.cpu: Remove.
3646         * config/mep/mep-ext-cop.cpu: Remove.
3647         * config/mep/mep-intrin.h: Remove.
3648         * config/mep/mep-ivc2.cpu: Remove.
3649         * config/mep/mep-pragma.c: Remove.
3650         * config/mep/mep-protos.h: Remove.
3651         * config/mep/mep.c: Remove.
3652         * config/mep/mep.cpu: Remove.
3653         * config/mep/mep.h: Remove.
3654         * config/mep/mep.md: Remove.
3655         * config/mep/mep.opt: Remove.
3656         * config/mep/predicates.md: Remove.
3657         * config/mep/t-mep: Remove.
3658         * doc/install.texi: Remove mep-* documentation.
3659         * doc/md.texi: Likewise.
3661 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3663         * config.gcc: Remove support for avr-rtems.
3664         * config/avr/gen-avr-mmcu-specs.c: Likewise.
3665         * config/avr/rtems.h: Remove.
3666         * config/avr/t-rtems: Remove.
3668 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3670         * config.gcc: Remove m32r-rtems support.
3671         * config/m32r/rtems.h: Remove.
3673 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3675         * config.gcc: Remove h8300-rtems support.
3676         * config/h8300/rtems.h: Remove.
3677         * config/h8300/t-rtems: Remove.
3679 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3681         * config.gcc: Remove support for knetbsd.
3682         * configure.ac: Likewise.
3683         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
3684         * config/knetbsd-gnu.h: Remove.
3685         * configure: Regenerate.
3687 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3689         * config.gcc: Remove support for openbsd 2 and 3.
3690         * config/openbsd-oldgas.h: Remove.
3692 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3694         * config.gcc: Remove interix support.
3695         * config/i386/i386-interix.h: Remove.
3696         * config/i386/interix.opt: Remove.
3697         * config/i386/t-interix: Remove.
3698         * configure: Regenerate.
3699         * configure.ac: Remove interix support.
3700         * doc/install.texi: Remove interix documentation.
3702 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3704         * config/rs6000/rs6000.h: Add conditional preprocessing directives
3705         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3706         not defined.
3708 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3710         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3711         they are both PLACEHOLDER_EXPRs.
3713 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3715         * stor-layout.c (layout_type): Move setting complex MODE to
3716         layout_type, instead of setting it ahead of time by the caller.
3717         * tree.c (build_complex_type): Likewise.
3719 2016-06-21  Martin Liska  <mliska@suse.cz>
3721         * predict.c (force_edge_cold): Replace imposisble with
3722         impossible.
3724 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3726         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3727         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3729 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3731         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3733 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3734             Ilya Enkovich  <ilya.enkovich@intel.com>
3736         PR target/71549
3737         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3738         New member function to convert V1TImode register to SUBREG
3739         TImode in debug insn.
3740         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3741         after changing register mode to V1TImode.
3743 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
3745         * config/aarch64/aarch64-cores.def (vulcan): New core.
3746         * config/aarch64/aarch64-tune.md: Regenerate.
3747         * doc/invoke.texi: Document vulcan as an available option.
3749 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3751         * cse.c (canon_asm_operands): New function extracted from...
3752         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
3753         either standalone or member of a PARALLEL.
3755 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3757         PR target/30417
3758         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3759         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3760         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3762 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3764         PR target/71103
3765         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3766         constant addresses if can_create_pseudo_p.
3768 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3770         PR tree-optimization/71588
3771         * tree-ssa-strlen.c (valid_builtin_call): New function.
3772         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3773         it.
3775 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3777         PR middle-end/71581
3778         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3779         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3780         for conversion of scalar user var to complex type and use the
3781         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3782         punt.
3784         PR rtl-optimization/71591
3785         * toplev.c (toplev::run_self_tests): If no_backend, complain and
3786         don't run any tests.
3788 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
3790         PR target/71571
3791         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3792         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
3793         space for PIC with non-v32 and the common non-PIC "jump".
3795 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3797         PR target/71559
3798         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3799         returned values and add UN*/LTGT/*ORDERED cases with values matching
3800         D operand modifier on vcmp for AVX.
3802 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3804         * config/aarch64/aarch64.opt
3805         (mpc-relative-literal-loads): Rename internal option name.
3806         * config/aarch64/aarch64.c
3807         (aarch64_nopcrelative_literal_loads): Rename to
3808         aarch64_pcrelative_literal_loads.
3809         (aarch64_expand_mov_immediate): Likewise.
3810         (aarch64_secondary_reload): Likewise.
3811         (aarch64_can_use_per_function_literal_pools_p): Likewise.
3812         (aarch64_override_options_after_change_1): Rename and simplify logic.
3813         (aarch64_classify_symbol): Merge large model checks into switch,
3814         remove pc-relative load check.
3816 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3818         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3819         costs relative to the cost of a register move.
3821 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3823         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3824         (vcvt_n_f64_u64): Likewise.
3825         (vcvt_n_s64_f64): Likewise.
3826         (vcvt_n_u64_f64): Likewise.
3827         (vcvt_f64_s64): Likewise.
3828         (vrecpe_f64): Likewise.
3829         (vcvt_f64_u64): Likewise.
3830         (vrecps_f64): Likewise.
3832 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3834         * config/aarch64/aarch64.md
3835         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3836         iterators.
3837         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
3838         attributes.
3839         * config/aarch64/aarch64-builtins.c
3840         (aarch64_types_binop_uss_qualifiers): Delete.
3841         (TYPES_BINOP_USS): Likewise.
3842         (aarch64_types_binop_sus_qualifiers): Likewise.
3843         (TYPES_BINOP_SUS): Likewise.
3844         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3845         (TYPES_FCVTIMM_SUS): Likewise.
3846         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3847         rather than BINOP.
3848         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3849         (fcvtzs): Use SHIFTIMM rather than BINOP.
3850         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3852 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3854         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3855         costs relative to the cost of a register move.
3857 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3859         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3860         Allow scalar/single vector modes to be tieable.
3862 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3864         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3866 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3868         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3869         "alignement".
3870         * tree.h (TYPE_ALIGN): Likewise.
3872 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3874         PR target/71103
3875         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3877 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3879         * config/avr/avr.c (avr_print_operand): Fix "format not a string
3880         literal" build warnings.
3881         (avr_print_operand_address): Dito.
3883 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
3885         PR target/71375
3886         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3887         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3889 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
3891         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3893 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3895         PR bootstrap/71435
3896         * reload1.c (reload): Pass 0 to finish_spills when called because
3897         update_eliminables_and_spill returns true and remove did_spill.
3898         (finish_spills): Adjust comment and document GLOBAL parameter.
3900 2016-06-17  DJ Delorie  <dj@redhat.com>
3902         PR target/71338
3903         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3904         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3905         (umulqihi3_virt): Likewise.
3906         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3907         (umulqihi3_real): Likewise.
3909 2016-06-17  Martin Liska  <mliska@suse.cz>
3911         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3913 2016-06-17  Martin Liska  <mliska@suse.cz>
3915         * predict.def: PRED_LOOP_EXIT from 92 to 85.
3917 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
3919         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3920         __FAST_MATH__.
3921         (vaddq_f32): Likewise.
3922         (vmul_f32): Likewise.
3923         (vmulq_f32): Likewise.
3924         (vsub_f32): Likewise.
3925         (vsubq_f32): Likewise.
3927 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3929         PR tree-optimization/71347
3930         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3931         cost for all uses in group.
3933 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
3935         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3936         insert gimple seq if it's not empty.
3938 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3940         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3941         member OFFSET.
3942         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3943         rather than OFFSET.
3944         (comp_dr_with_seg_len_pair): Ditto.
3945         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
3946         struct dr_with_seg_len_pair against DR_OFFSET.
3947         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3948         DR_OFFSET directly.
3950 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3952         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3954 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
3956         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3957         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3958         (pa_output_millicode_call): Likewise.
3959         (pa_output_call): Likewise.
3960         (pa_output_indirect_call): Likewise.
3961         (pa_asm_output_mi_thunk): Likewise.
3963 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3965         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3967 2016-06-16  Martin Liska  <mliska@suse.cz>
3969         * predict.c (combine_predictions_for_insn): When we find a first
3970         match predictor, we should consider just predictors with
3971         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
3972         DS theory predictor.
3973         (combine_predictions_for_bb): Likewise.
3975 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3977         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3978         with base of reference to struct.
3980 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3982         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3984 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3986         PR target/71151
3987         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3988         progmem_swtable_section.
3989         (progmem_swtable_section): Remove.
3990         (avr_asm_function_rodata_section): Remove.
3991         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3992         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3994 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
3996         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3997         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3998         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3999         signature_CENTAUR_ebx.
4000         * config/i386/i386.c (ix86_option_override_internal): Add
4001         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
4002         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
4003         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
4005 2016-06-16  Martin Liska  <mliska@suse.cz>
4007         * predict.def: Add fortran loop preheader predictor.
4008         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
4009         fold IFN_BUILTIN_EXPECT with a known constant argument.
4011 2016-06-16  Martin Liska  <mliska@suse.cz>
4013         * predict.def: Add 'Fortran' to display text of all
4014         PRED_FORTRAN_* predictors.
4016 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
4018         PR target/71242
4019         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
4020         [IA64_BUILTIN_NANSQ]: Ditto.
4021         (ia64_fold_builtin): New function.
4022         (TARGET_FOLD_BUILTIN): New define.
4023         (ia64_init_builtins) Declare const_string_type node.
4024         Add __builtin_nanq and __builtin_nansq builtin functions.
4025         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
4027 2016-06-16  Nick Clifton  <nickc@redhat.com>
4029         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
4030         MSP430_HWMULT_ prefix to enum values.
4031         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
4032         * config/msp430/msp430.c: Update use of enum values.
4033         * config/msp430/msp430.md: Likewise.
4034         * config/msp430/msp430.opt: Likewise.
4036 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
4038         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
4039         of comparsions in the last iteration.
4041 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
4042             Joern Rennecke  <joern.rennecke@embecosm.com>
4044         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
4045         addresses.
4046         (arc_needs_pcl_p): Add GOTOFFPC.
4047         (arc_legitimate_pic_addr_p): Likewise.
4048         (arc_output_pic_addr_const): Likewise.
4049         (arc_legitimize_pic_address): Generate a pc-relative address using
4050         GOTOFFPC.
4051         (arc_output_libcall): Use @pcl syntax.
4052         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
4053         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
4054         (*movsi_insn): Use @pcl syntax.
4055         (doloop_begin_i): Likewise.
4057 2016-06-16  Martin Liska  <mliska@suse.cz>
4059         * predict.def: Define a new predictor.
4061 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
4063         * config/arc/arc.opt (mtp-regno): Update text.
4065 2016-06-16  Renlin Li  <renlin.li@arm.com>
4067         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
4069 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
4071         PR target/71554
4072         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
4073         (setcc + and peephole2): Likewise.
4075         PR rtl-optimization/71532
4076         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
4077         memory slots.
4079 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4081         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
4082         DImode constants with XXSPLTIB in vector registers.
4083         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
4084         vsx_extract_<mode>_internal{1,2} into a single insn that handles
4085         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
4086         extraction of the element at the top of the register as a scalar
4087         value.
4088         (vsx_extract_<mode>_internal1): Likewise.
4089         (vsx_extract_<mode>_internal2): Likewise.
4090         * config/rs6000/constraints.md (wi constraint): Remove a comment
4091         about DImode not being allowed in Altivec registers.
4092         (wB constraint): New constraint for constants that can be
4093         generated in Altivec registers with VSPLTISW/VUPKHSW.
4094         * config/rs6000/predicates.md (xxspltib_constant_split): Update
4095         comments.
4096         (xxspltib_constant_nosplit): Likewise.
4097         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
4098         support for -mupper-regs-di to enable DImode to go into Altivec
4099         registers.
4100         (POWERPC_MASKS): Likewise.
4101         (power7 cpu): Likewise.
4102         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
4103         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
4104         for DImode being allowed in Altivec registers.  Update wi/wj
4105         constraints.  Set scalar_in_vmx_p flag.
4106         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
4107         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
4108         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
4109         (rs6000_opt_masks): Add -mupper-regs-di.
4110         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
4111         direct move to use wi and not wj.
4112         (lfiwzx): Likewise.
4113         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
4114         alternative.
4115         (floatunssi<mode>2_lfiwzx_mem): Likewise.
4116         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
4117         any VSX register, instead of just Altivec registers, to allow
4118         either operand to be an Altivec register or both.
4119         (fixuns_trunc<mode>di2_fctiduz): Likewise.
4120         (movdi_internal32): Add support for -mupper-regs-di.  Add support
4121         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
4122         the alternatives and attributes to be lined up to be easier to
4123         read.
4124         (movdi_internal64): Likewise.
4125         (64-bit DImode splitters): Change predicates to only split loading
4126         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
4127         load constants in ISA 3.0 or ISA 2.07 respectively.
4128         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4129         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
4130         mention -mcpu=power9 sets these options.
4131         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
4132         wB constraint.
4134 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4136         PR target/67353
4137         * config/avr/avr.c (avr_set_current_function): Warn misspelled
4138         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
4139         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
4140         by default to warn misspelled interrupt/ signal handler.
4141         * doc/invoke.texi (AVR Options): Document it. Update description
4142         for -nodevicelib option.
4144 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4146         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
4147         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
4148         (aarch64_<sur>shll2_n<mode>): Likewise.
4150 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
4152         PR middle-end/71529
4153         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
4154         DECL_CONTEXT for copied arguments.
4156 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
4158         PR tree-optimization/71483
4159         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
4160         for slp
4162 2016-06-15  Martin Liska  <mliska@suse.cz>
4164         * predict.c (tree_predict_by_opcode): Call predict_edge_def
4165         instead of predict_edge w/o a probability.
4167 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
4169         PR tree-optimization/71439
4170         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
4171         live PHIs.
4173 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4175         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
4176         register subregs in SET_SRC.
4178 2016-06-15  Richard Biener  <rguenther@suse.de>
4180         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
4181         store restrictions.
4183 2016-06-15  Richard Biener  <rguenther@suse.de>
4185         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
4186         not consider dependences between accesses that belong to the
4187         same group.
4188         (vect_analyze_data_ref_dependences): Do not analyze read-read
4189         or self-dependences.
4191 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4193         * spellcheck-tree.c: Include spellcheck-tree.h rather than
4194         spellcheck.h.
4195         (find_closest_identifier): Reimplement in terms of
4196         best_match<tree,tree>.
4197         * spellcheck-tree.h: New file.
4198         * spellcheck.c (struct edit_distance_traits<const char *>): New
4199         struct.
4200         (find_closest_string): Reimplement in terms of
4201         best_match<const char *, const char *>.
4202         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
4203         overload to spellcheck-tree.h.
4204         (find_closest_identifier): Likewise.
4205         (struct edit_distance_traits<T>): New template.
4206         (class best_match): New class.
4208 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4210         * selftest-run-tests.c (selftest::run_tests): Call
4211         selftest::spellcheck_tree_c_tests.
4212         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
4213         * spellcheck-tree.c: Include selftest.h and stringpool.h.
4214         (selftest::test_find_closest_identifier): New function.
4215         (selftest::spellcheck_tree_c_tests): New function.
4216         * spellcheck.c (selftest::test_find_closest_string): Verify that
4217         the order of the vec does not affect the results for this case.
4218         (selftest::test_data): New array.
4219         (selftest::test_metric_conditions): New function.
4220         (selftest::spellcheck_c_tests): Add a test of case-comparison.
4221         Call selftest::test_metric_conditions.
4223 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4225         * config/rs6000/rs6000-builtin.def (commentary): Typo.
4226         (BU_P9_MISC_1): Likewise.
4227         (BU_P9_64BIT_MISC_0): Likewise.
4228         (BU_P9_MISC_0): Likewise.
4230 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4232         * gcc-rich-location.c
4233         (gcc_rich_location::add_fixit_misspelled_id): New method.
4234         * gcc-rich-location.h
4235         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
4237 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
4239         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
4240         FreeBSD 11 and above.
4242 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
4244         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
4246 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4248         * expmed.h: Close parenthesis in "at your option" in copyright
4249         boilerplate.
4250         * lower-subreg.h: Likewise.
4252 2016-06-14  Richard Biener  <rguenther@suse.de>
4254         PR middle-end/71526
4255         * genmatch.c (expr::gen_transform): Use in_type for comparisons
4256         if available.
4258 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4260         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
4261         New function.
4262         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
4263         mask+shift version.
4264         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
4265         New prototype.
4266         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
4267         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
4269 2016-06-14  Richard Biener  <rguenther@suse.de>
4271         PR tree-optimization/71522
4272         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
4273         copying into float copying.
4275 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
4277         PR tree-optimization/71520
4278         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
4279         (replace_block_by): Move user labels from bb1 to bb2.
4281 2016-06-14  Richard Biener  <rguenther@suse.de>
4283         PR middle-end/71310
4284         PR bootstrap/71510
4285         * expr.h (get_bit_range): Declare.
4286         * expr.c (get_bit_range): Export.
4287         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
4288         word_mode again to constrain the bitfield access.
4290 2016-06-14  Richard Biener  <rguenther@suse.de>
4292         PR tree-optimization/71521
4293         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
4294         division int_const_binop against zero divisor.
4296 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4298         * config/i386/i386.md (signbittf2): New expander.
4299         * config/i386/sse.md (ptesttf2): New insn pattern.
4301 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4303         PR bootstrap/71481
4304         * input.c (selftest::test_reading_source_line): Avoid reading from
4305         __FILE__ by creating a tempfile with known content and reading
4306         from that instead.
4308 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4310         * pretty-print.c (assert_pp_format_colored): Skip the test if
4311         GCC_COLORS is set.
4312         (test_pp_format): Remove comment about GCC_COLORS.
4314 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4316         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
4317         * pretty-print.c (assert_pp_format_va): Add location param and use
4318         it with ASSERT_STREQ_AT.
4319         (assert_pp_format): Add location param and pass it to
4320         assert_pp_format_va.
4321         (assert_pp_format_colored): Likewise.
4322         (ASSERT_PP_FORMAT_1): New.
4323         (ASSERT_PP_FORMAT_2): New.
4324         (ASSERT_PP_FORMAT_3): New.
4325         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
4326         explicitly, or implicitly via the above macros.
4327         * selftest.c (selftest::pass): Use a selftest::location rather
4328         than file and line.
4329         (selftest::fail): Likewise.  Print the function name.
4330         (selftest::fail_formatted): Likewise.
4331         (selftest::assert_streq): Use a selftest::location rather than
4332         file and line.
4333         * selftest.h (selftest::location): New struct.
4334         (SELFTEST_LOCATION): New macro.
4335         (selftest::pass): Accept a const location & rather than file
4336         and line.
4337         (selftest::fail): Likewise.
4338         (selftest::fail_formatted): Likewise.
4339         (selftest::assert_streq): Likewise.
4340         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
4341         (ASSERT_FALSE): Likewise.
4342         (ASSERT_EQ): Likewise.
4343         (ASSERT_NE): Likewise.
4344         (ASSERT_STREQ): Likewise.
4345         (ASSERT_PRED1): Likewise.
4346         (ASSERT_STREQ_AT): New macro.
4348 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4350         * selftest.c (selftest::fail_formatted): New function.
4351         (selftest::assert_streq): New function.
4352         * selftest.h (selftests::fail_formatted): New decl.
4353         (selftest::assert_streq): New decl.
4354         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
4356 2016-06-13  Jeff Law  <law@redhat.com>
4358         PR tree-optimization/71403
4359         * tree-ssa-threadbackward.c
4360         (convert_and_register_jump_thread_path): No longer accept reference
4361         to path.  Do not pop items off the path anymore.
4362         (fsm_find_control_statement_thread_paths): Do not allow threading
4363         to a deeper loop nest.  Pop the last item off the path here rather
4364         than in convert_and_register_jump_thread_path.
4366 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4367             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
4369         [AArch64] Emit division using the Newton series
4371         * config/aarch64/aarch64-protos.h
4372         (cpu_approx_modes): Add new member "division".
4373         (aarch64_emit_approx_div): Declare new function.
4374         * config/aarch64/aarch64.c
4375         (generic_approx_modes): New member "division".
4376         (exynosm1_approx_modes): Likewise.
4377         (xgene1_approx_modes): Likewise.
4378         (aarch64_emit_approx_div): Define new function.
4379         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
4380         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
4381         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
4382         * doc/invoke.texi (-mlow-precision-div): Describe new option.
4384 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4385             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4387         [AArch64] Emit square root using the Newton series
4389         * config/aarch64/aarch64-protos.h
4390         (aarch64_emit_approx_rsqrt): Replace with new function
4391         "aarch64_emit_approx_sqrt".
4392         (cpu_approx_modes): New member "sqrt".
4393         * config/aarch64/aarch64.c
4394         (generic_approx_modes): New member "sqrt".
4395         (exynosm1_approx_modes): Likewise.
4396         (xgene1_approx_modes): Likewise.
4397         (aarch64_emit_approx_rsqrt): Replace with new function
4398         "aarch64_emit_approx_sqrt".
4399         (aarch64_override_options_after_change_1): Handle new option.
4400         * config/aarch64/aarch64-simd.md
4401         (rsqrt<mode>2): Use new function instead.
4402         (sqrt<mode>2): New expansion and insn definitions.
4403         * config/aarch64/aarch64.md: Likewise.
4404         * config/aarch64/aarch64.opt
4405         (mlow-precision-sqrt): Add new option description.
4406         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
4408 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4410         [AArch64] Add more choices for the reciprocal square root approximation
4412         Allow a target to prefer such operation depending on the operation mode.
4414         * config/aarch64/aarch64-protos.h
4415         (AARCH64_APPROX_MODE): New macro.
4416         (AARCH64_APPROX_{NONE,ALL}): Likewise.
4417         (cpu_approx_modes): New structure.
4418         (tune_params): New member "approx_modes".
4419         * config/aarch64/aarch64-tuning-flags.def
4420         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
4421         * config/aarch64/aarch64.c
4422         (generic_approx_modes): New core "cpu_approx_modes" structure.
4423         (exynosm1_approx_modes): Likewise.
4424         (xgene1_approx_modes): Likewise.
4425         (generic_tunings): New member "approx_modes".
4426         (cortexa35_tunings): Likewise.
4427         (cortexa53_tunings): Likewise.
4428         (cortexa57_tunings): Likewise.
4429         (cortexa72_tunings): Likewise.
4430         (exynosm1_tunings): Likewise.
4431         (thunderx_tunings): Likewise.
4432         (xgene1_tunings): Likewise.
4433         (use_rsqrt_p): New argument for the mode and use new member from
4434         "tune_params".
4435         (aarch64_builtin_reciprocal): Devise mode from builtin.
4436         (aarch64_optab_supported_p): New argument for the mode.
4437         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
4439 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4441         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
4442         RS6000_BTM_MODULO flag into the set of flags that are considered
4443         to be part of the common configuration.
4445 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4447         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
4448         difference unsigned.
4449         (vec_absdb): New macro for vector absolute difference unsigned
4450         byte.
4451         (vec_absdh): New macro for vector absolute difference unsigned
4452         half-word.
4453         (vec_absdw): New macro for vector absolute difference unsigned word.
4454         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
4455         (vadu<mode>3): New insn.
4456         (*p9_vadu<mode>3): New insn.
4457         * config/rs6000/rs6000-builtin.def (vadub): New built-in
4458         definition.
4459         (vaduh): New built-in definition.
4460         (vaduw): New built-in definition.
4461         (vadu): New overloaded built-in definition.
4462         (vadub): New overloaded built-in definition.
4463         (vaduh): New overloaded built-in definition.
4464         (vaduw): New overloaded built-in definition.
4465         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4466         overloaded vector absolute difference unsigned functions.
4467         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4468         the ISA 3.0 vector absolute difference unsigned built-in functions.
4470 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4472         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
4473         update shared_lookup_references only once after changing operands.
4475 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
4477         PR middle-end/71373
4478         * tree-nested.c (convert_nonlocal_omp_clauses)
4479         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
4481         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
4482         * tree.def (CASE_LABEL_EXPR): Likewise.
4484 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4486         PR bootstrap/71481
4487         * input.c (test_builtins): Fix an assertion.
4489 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4491         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
4492         (paritysi2): Ditto.
4493         (isinfxf2): Ditto.
4494         (isinf<mode>2): Ditto.
4496 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4498         * ggc-tests.c (test_finalization): Only test need_finalization_p
4499         for GCC_VERSION >= 4003.
4501 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4503         * config/s390/vecintrin.h: Fix file description in comment.
4505 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4507         * config/s390/s390-builtin-types.def: Change builtin type naming
4508         scheme to match builtin-types.def.
4510 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
4512         * fold-const.c (optimize_minmax_comparison): Remove.
4513         (fold_comparison): Remove call to the above.
4514         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
4515         New transformations.
4517 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
4519         PR tree-optimization/71416
4520         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
4521         multiple entries
4523 2016-06-13  Martin Liska  <mliska@suse.cz>
4525         * predict.c (enum predictor_reason): Prefix enum with REASON_.
4526         (combine_predictions_for_insn): Likewise.
4527         (prune_predictions_for_bb): Likewise.
4528         (combine_predictions_for_bb): Likewise.
4530 2016-06-13  Richard Biener  <rguenther@suse.de>
4532         PR tree-optimization/71505
4533         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
4534         assert match comment.
4536 2016-06-13  Marek Polacek  <polacek@redhat.com>
4538         PR middle-end/71476
4539         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
4540         gimplify_switch_expr.
4541         (warn_switch_unreachable_r): New function.
4543 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4545         PR target/71379
4546         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
4547         one.
4549 2016-06-13  Richard Biener  <rguenther@suse.de>
4551         PR middle-end/64516
4552         * fold-const.c (fold_unary_loc): Preserve alignment when
4553         folding a VIEW_CONVERT_EXPR into a MEM_REF.
4555 2016-06-13  Martin Liska  <mliska@suse.cz>
4557         PR sanitizer/71458
4558         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
4559         w/ -fsanitize=bounds.
4561 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4563         * config/i386/i386.c (ix86_init_builtins): Calculate
4564         FLOAT128_FTYPE_CONST_STRING function type only once.
4565         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
4566         built-in functions are available for x86-32 and x86-64 targets.
4568 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4570         PR target/71241
4571         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4572         New primitive type.
4573         (FLOAT128_FTYPE_CONST_STRING): New function type.
4574         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4575         [IX86_BUILTIN_NANSQ]: Ditto.
4576         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4577         (ix86_init_builtin_types): Declare const_string_type_node.
4578         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4579         builtin functions.
4580         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4581         * doc/extend.texi (x86 Built-in Functions): Document
4582         __builtin_nanq and __builtin_nansq.
4584 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
4586         PR target/71061
4587         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4588         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4589         length for pop patterns.
4590         (arm_attr_length_push_multi): Update comments.
4591         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4592         attribute.
4593         (*pop_multiple_with_writeback_and_return): Likewise.
4594         (*pop_multiple_with_return): Likewise.
4596 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
4598         PR middle-end/71310
4599         * fold-const.c (optimize_bit_field_compare): Don't try to use
4600         word_mode unconditionally for reading the bit field, look at
4601         DECL_BIT_FIELD_REPRESENTATIVE instead.
4603 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
4605         PR middle-end/71478
4606         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4607         vector integer type.
4609 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
4611         PR middle-end/71494
4612         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4613         without LABEL_DECL, set *handled_ops_p to false instead of true.
4615 2016-06-10  Martin Sebor  <msebor@redhat.com>
4617         PR c/71392
4618         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4619         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4620         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4621         them.
4622         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4623         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4624         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4625         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4626         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4627         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4628         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4629         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4631 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4633         * config/arm/arm.h (pool_vector_label,
4634         return_used_this_function): Remove.
4636 2016-06-10  Jeff Law  <law@redhat.com>
4638         PR tree-optimization/71335
4639         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4640         zero length paths here.
4641         (convert_and_register_jump_thread_path): Remove hacks related to
4642         duplicated blocks in the jump thread path.
4643         (fsm_find_control_statement_thread_paths): Avoid putting the same
4644         block on the thread path twice, but ensure the thread path is
4645         unchanged from the caller's point of view.
4647 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4649         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4650         * predict.def (PRED_LOOP_BRANCH): Remove.
4652 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
4654         * Makefile.in (OBJS): Add ggc-tests.o.
4655         (GTFILES): Add ggc-tests.c.
4656         * ggc-tests.c: New file.
4657         * selftest-run-tests.c (selftest::run_tests): Call
4658         selftest::ggc_tests_c_tests.
4659         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4661 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
4663         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4665 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
4667         PR sanitizer/71480
4668         * varasm.c (place_block_symbol): Adjust alignment for asan protected
4669         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4671 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4673         * profile.c: Include cfgloop.h.
4674         (branch_prob): Compute estimated number of iterations.
4675         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4676         recompute estimate number of iterations from profile.
4678 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4680         PR inline-asm/68843
4681         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4682         must be grouped on top of stack.  Don't force early clobber
4683         on ordinary reg outputs.
4685 2016-06-10  Richard Biener  <rguenther@suse.de>
4687         * targhooks.c (default_builtin_vectorization_cost): Adjust
4688         vec_construct cost.
4690 2016-06-10  Richard Biener  <rguenther@suse.de>
4692         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4693         to fold the RHS to a constant if possible.
4695 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4697         PR middle-end/71373
4698         * tree-nested.c (convert_nonlocal_omp_clauses)
4699         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4700         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4701         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4703         * gimplify.c (gimplify_adjust_omp_clauses): Discard
4704         OMP_CLAUSE_TILE.
4705         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4707         * omp-low.c (scan_sharing_clauses): Don't expect
4708         OMP_CLAUSE__CACHE_.
4710 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
4712         PR tree-optimization/71407
4713         PR tree-optimization/71416
4714         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4715         BIT_FIELD_REF type.
4717 2016-06-10  Richard Biener  <rguenther@suse.de>
4719         PR middle-end/71477
4720         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4722 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4724         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4726 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
4727             Jiong Wang  <jiong.wang@arm.com>
4729         PR rtl-optimization/70751
4730         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4731         spilled into memory.
4733 2016-06-09  Jonathan Yong  <10walls@gmail.com>
4735         Revert:
4736         2015-09-21  Jonathan Yong  <10walls@gmail.com>
4738         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4739         sysroot/usr/lib/32api for additional win32 libraries,
4740         fixes failing Cygwin bootstrapping.
4742 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
4744         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4745         Delete.
4747 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
4749         PR bootstrap/71471
4750         * pretty-print.c (pp_indent): Specify that %p is printed in a
4751         host-dependent manner.
4752         (test_pp_format): Remove the test for %p.
4754 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
4756         * config/mips/mips.c (mips_output_jump): Fix formatting.
4758 2016-06-09  Richard Biener  <rguenther@suse.de>
4760         PR tree-optimization/71462
4761         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4762         removed blocks.
4764 2016-06-09  Martin Liska  <mliska@suse.cz>
4766         * predict.c (dump_prediction): Add new argument.
4767         (enum predictor_reason): New enum.
4768         (struct predictor_hash): New struct.
4769         (predictor_hash::hash): New function.
4770         (predictor_hash::equal): Likewise.
4771         (not_removed_prediction_p): New function.
4772         (prune_predictions_for_bb): Likewise.
4773         (combine_predictions_for_bb): Prune predictions.
4775 2016-06-09  Martin Liska  <mliska@suse.cz>
4777         * predict.c (filter_predictions): New function.
4778         (remove_predictions_associated_with_edge): Use the filter
4779         function.
4780         (equal_edge_p): New function.
4782 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
4784         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4785         Correct usage of @samp vs @option, add @samp where appropriate.
4786         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4787         Add armv6s-m and document it, as it is no official ARM name.
4789 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4791         * ifcvt.c (struct noce_if_info): Add transform_name field.
4792         (noce_try_move): Set if_info->transform_name to the function name.
4793         (noce_try_ifelse_collapse): Likewise.
4794         (noce_try_store_flag): Likewise.
4795         (noce_try_inverse_constants): Likewise.
4796         (noce_try_store_flag_constants): Likewise.
4797         (noce_try_addcc): Likewise.
4798         (noce_try_store_flag_mask): Likewise.
4799         (noce_try_cmove): Likewise.
4800         (noce_try_cmove_arith): Likewise.
4801         (noce_try_minmax): Likewise.
4802         (noce_try_abs): Likewise.
4803         (noce_try_sign_mask): Likewise.
4804         (noce_try_bitop): Likewise.
4805         (noce_convert_multiple_sets): Likewise.
4806         (noce_process_if_block): Print if_info->transform_name to
4807         dump_file if transformation succeeded.
4809 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4811         * config/arm/cortex-a57.md (cortex_a57_alu):
4812         Handle csel type.
4814 2016-06-08  Martin Sebor  <msebor@redhat.com>
4815             Jakub Jelinek  <jakub@redhat.com>
4817         PR c++/70507
4818         PR c/68120
4819         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4820         BUILT_IN_MUL_OVERFLOW_P): New builtins.
4821         * builtins.c: Include gimple-fold.h.
4822         (fold_builtin_arith_overflow): Handle
4823         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4824         (fold_builtin_3): Likewise.
4825         * doc/extend.texi (Integer Overflow Builtins): Document
4826         __builtin_{add,sub,mul}_overflow_p.
4828 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
4830         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4831         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4833 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
4835         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4836         Rewrite, looking one level down for records and arrays.
4838 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
4840         * pretty-print.c: Include "selftest.h".
4841         (pp_format): Fix comment.
4842         (identifier_to_locale): Likewise.
4843         (selftest::test_basic_printing): New function.
4844         (selftest::assert_pp_format): New function.
4845         (selftest::test_pp_format): New function.
4846         (selftest::pretty_print_c_tests): New function.
4847         * selftest-run-tests.c (selftest::run_tests): Call
4848         selftest::pretty_print_c_tests.
4849         * selftest.h (pretty_print_c_tests): New declaration.
4851 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4853         * invoke.texi (max-loop-headers-insns): Document.
4854         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4855         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4856         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4858 2016-06-08  Richard Biener  <rguenther@suse.de>
4860         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4861         on strided SLP loads and fall back to scalar loads in case
4862         we can't chunk them.
4864 2016-06-08  Richard Biener  <rguenther@suse.de>
4866         PR tree-optimization/71452
4867         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4868         type used for the SSA rewrite has enough precision to cover
4869         the dynamic type of the location.
4871 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
4872             Richard Biener  <rguenther@suse.de>
4874         PR c++/71448
4875         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4876         the same as DECL_P (base0) for indirect_base0.  Use equality_code
4877         in one further place.
4879 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
4881         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4882         to one word if the field is known to overlap other words.
4883         (extract_bit_field_1): Likewise.
4884         (store_split_bit_field): Remove compensating code.
4885         (extract_split_bit_field): Likewise.
4887 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
4889         PR debug/71432
4890         PR ada/71413
4891         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4893 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4895         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4896         VDQF.
4897         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4898         (arch64_addpv4sf): Delete.
4899         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4900         "gen_aarch64_addpv4sf".
4901         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
4902         builtin.
4903         (vpadds_f32): Likewise.
4904         (vpaddq_f32): Likewise.
4905         (vpaddq_f64): Likewise.
4907 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4909         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4910         VALLF.
4911         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4912         to VALLF.  Rename to "fabd<mode>3".
4913         "*fabd_scalar<mode>3): Delete.
4914         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4915         Use builtin.
4916         (vabdd_f64): Likewise.
4917         (vabd_f32): Likewise.
4918         (vabd_f64): Likewise.
4919         (vabdq_f32): Likewise.
4920         (vabdq_f64): Likewise.
4922 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4924         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4925         VALLF.
4926         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4927         "aarch64_rsqrts<mode>".
4928         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4929         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
4930         builtin.
4931         (vrsqrtsd_f64): Likewise.
4932         (vrsqrts_f32): Likewise.
4933         (vrsqrts_f64): Likewise.
4934         (vrsqrtsq_f32): Likewise.
4935         (vrsqrtsq_f64): Likewise.
4937 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4939         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4940         VALLF.
4941         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4942         "aarch64_rsqrte<mode>".
4943         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4944         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
4945         builtin.
4946         (vrsqrted_f64): Likewise.
4947         (vrsqrte_f32): Likewise.
4948         (vrsqrte_f64): Likewise.
4949         (vrsqrteq_f32): Likewise.
4950         (vrsqrteq_f64): Likewise.
4952 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4954         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4955         (ucvtf): Likewise.
4956         (fcvtzs): Likewise.
4957         (fcvtzu): Likewise.
4958         * config/aarch64/aarch64-simd.md
4959         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4960         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4961         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4962         Use builtin.
4963         (vcvt_n_f32_u32): Likewise.
4964         (vcvt_n_s32_f32): Likewise.
4965         (vcvt_n_u32_f32): Likewise.
4966         (vcvtq_n_f32_s32): Likewise.
4967         (vcvtq_n_f32_u32): Likewise.
4968         (vcvtq_n_f64_s64): Likewise.
4969         (vcvtq_n_f64_u64): Likewise.
4970         (vcvtq_n_s32_f32): Likewise.
4971         (vcvtq_n_s64_f64): Likewise.
4972         (vcvtq_n_u32_f32): Likewise.
4973         (vcvtq_n_u64_f64): Likewise.
4974         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4975         (VSDQ_SDI): Likewise.
4976         (fcvt_target): Support V4DI, V4SI and V2SI.
4977         (FCVT_TARGET): Likewise.
4979 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4981         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4982         (TYPES_BINOP_SUS): Likewise.
4983         (aarch64_simd_builtin_data): Update include file name.
4984         (aarch64_builtins): Likewise.
4985         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4986         for conversion between scalar float-point and fixed-point.
4987         (ucvtf): Likewise.
4988         (fcvtzs): Likewise.
4989         (fcvtzu): Likewise.
4990         * config/aarch64/aarch64.md
4991         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4992         pattern for conversion between scalar float to fixed-pointer.
4993         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4994         (UNSPEC_FCVTZS): New UNSPEC enumeration.
4995         (UNSPEC_FCVTZU): Likewise.
4996         (UNSPEC_SCVTF): Likewise.
4997         (UNSPEC_UCVTF): Likewise.
4998         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4999         Use builtin.
5000         (vcvtd_n_f64_u64): Likewise.
5001         (vcvtd_n_s64_f64): Likewise.
5002         (vcvtd_n_u64_f64): Likewise.
5003         (vcvtd_n_f32_s32): Likewise.
5004         (vcvts_n_f32_u32): Likewise.
5005         (vcvtd_n_s32_f32): Likewise.
5006         (vcvts_n_u32_f32): Likewise.
5007         * config/aarch64/iterators.md (fcvt_target): Support integer to float
5008         mapping.
5009         (FCVT_TARGET): Likewise.
5010         (FCVT_FIXED2F): New iterator.
5011         (FCVT_F2FIXED): Likewise.
5012         (fcvt_fixed_insn): New define_int_attr.
5014 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5016         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
5017         some statements was removed.
5019 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
5021         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
5022         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
5023         (vect_can_advance_ivs_p): likewise.
5024         (vect_update_ivs_after_vectorizer): likewise.
5025         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
5026         (vect_analyze_scalar_cycles_1): likewise.
5027         (vect_analyze_loop_operations): likewise.
5028         (report_vect_op): likewise.
5029         (vect_is_slp_reduction): likewise.
5030         (vect_is_simple_reduction): likewise.
5031         (get_initial_def_for_induction): likewise.
5032         (vect_transform_loop): likewise.
5033         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
5034         (vect_recog_sad_pattern): likewise.
5035         (vect_recog_widen_sum_pattern): likewise.
5036         (vect_recog_widening_pattern): likewise.
5037         (vect_recog_divmod_pattern): likewise.
5038         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
5039         (vect_analyze_slp_instance): likewise.
5040         (vect_transform_slp_perm_load): likewise.
5041         (vect_schedule_slp_instance): likewise.
5043 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5045         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
5046         (return_prediction): PRED_CONST_RETURN predict return as not taken.
5047         * predict.def (PRED_CONTINUE): Change hitrate 50->67
5048         (PRED_LOOP_BRANCH): Document predictor as broken.
5049         (PRED_LOOP_EXIT): Change hitrate 91->92.
5050         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
5051         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
5052         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
5053         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
5054         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
5055         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
5056         (PRED_CALL): Chane hitrate 71->67.
5057         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
5058         (PRED_GOTO): Document as unused right now.
5059         (PRED_CONST_RETURN): Change hitrate 67->69
5060         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
5061         (PRED_NULL_RETURN): Change hitrate 91->90.
5062         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
5063         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
5064         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
5066 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
5068         * config/rs6000/altivec.h: Add __builtin_vec_mul.
5069         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
5070         special case Altivec builtin.
5071         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
5072         VSX_BUILTIN_VEC_MUL (replaced with special case code).
5073         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5074         code for ALTIVEC_BUILTIN_VEC_MUL.
5075         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5076         for __builtin_vec_mul.
5078 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
5080         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
5081         -mno-htm.
5083 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
5085         * spellcheck.c (selftest::test_find_closest_string): New function.
5086         (spellcheck_c_tests): Call the above.
5088 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5090         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
5092 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
5094         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
5095         Yv=Yv,C alternatives.
5097 2016-06-07  Richard Biener  <rguenther@suse.de>
5099         PR c/61564
5100         * common.opt (ffast-math): Make Optimization.
5102 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
5103             Prachi Godbole  <prachi.godbole@imgtec.com>
5105         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
5106         `fabs' and `fneg' type attributes.
5107         (p5600_fpu_fabs): Add `fmove' to the comment.
5109 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5111         * gimple.c: Include builtins.h
5112         (gimple_inexpensive_call_p): New function.
5113         * gimple.h (gimple_inexpensive_call_p): Declare.
5114         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
5115         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
5116         fix formatting.
5118 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
5120         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
5121         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
5122         warning_at_rich_loc, warning_n, pedwarn, permerror,
5123         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
5124         sorry, fatal_error, internal_error, internal_error_no_backtrace):
5125         Use the above.
5127 2016-06-07  Richard Biener  <rguenther@suse.de>
5129         PR tree-optimization/71428
5130         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
5131         BIT_FIELD_REF op vs. load.
5133 2016-06-07  Richard Biener  <rguenther@suse.de>
5135         PR middle-end/71423
5136         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
5137         for signed ops.
5139 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
5141         * config/pa/pa.md (call): Generate indirect long calls to non-local
5142         functions on TARGET_64BIT.
5143         (call_value): Likewise.
5145 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
5147         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
5148         pattern and subsequent splitters.
5149         (call_val_reg_64bit_post_reload): Likewise.
5151 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5153         PR middle-end/71408
5154         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
5155         propagate_op_to_single_use.
5157 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5159         PR middle-end/71281
5160         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
5162 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
5164         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
5165         (enum x86_dirflag_state): New enum.
5166         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
5167         (machine_function): Remove needs_cld.
5168         (ix86_current_function_needs_cld): Remove.
5169         * config/i386/i386.c (ix86_set_func_type): Set
5170         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
5171         (ix86_expand_prologue): Do not emit CLD here.
5172         (ix86_dirflag_mode_needed): New function.
5173         (ix86_dirflag_mode_entry): Ditto.
5174         (ix86_mode_needed): Handle X86_DIRFLAG entity.
5175         (ix86_mode_after): Ditto.
5176         (ix86_mode_entry): Ditto.
5177         (ix86_mode_exit): Ditto.
5178         (ix86_emit_mode_set): Ditto.
5179         * config/i386/i386.md (strmov_singleop): Set
5180         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
5181         Do not set ix86_current_function_needs_cld.
5182         (rep_mov): Ditto.
5183         (strset_singleop): Ditto.
5184         (rep_stos): Ditto.
5185         (cmpstrnqi_nz_1): Ditto.
5186         (cmpstrnqi_1): Ditto.
5187         (strlenqi_1): Ditto.
5189 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
5191         PR tree-optimization/71259
5192         * tree-vect-slp.c (vect_get_constant_vectors): For
5193         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
5194         one for constant op, and use COND_EXPR for non-constant.
5196 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
5198         * Makefile.in (OBJS): Add function-tests.o,
5199         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
5200         selftest-run-tests.o.
5201         (OBJS-libcommon): Add selftest.o.
5202         (OBJS-libcommon-target): Add selftest.o.
5203         (all.internal): Add "selftest".
5204         (all.cross): Likewise.
5205         (selftest): New phony target.
5206         (s-selftest): New target.
5207         (selftest-gdb): New phony target.
5208         (COLLECT2_OBJS): Add selftest.o.
5209         * bitmap.c: Include "selftest.h".
5210         (selftest::test_gc_alloc): New function.
5211         (selftest::test_set_range): New function.
5212         (selftest::test_clear_bit_in_middle): New function.
5213         (selftest::test_copying): New function.
5214         (selftest::test_bitmap_single_bit_set_p): New function.
5215         (selftest::bitmap_c_tests): New function.
5216         * common.opt (fself-test): New.
5217         * diagnostic-show-locus.c: Include "selftest.h".
5218         (make_range): New function.
5219         (test_range_contains_point_for_single_point): New function.
5220         (test_range_contains_point_for_single_line): New function.
5221         (test_range_contains_point_for_multiple_lines): New function.
5222         (assert_eq): New function.
5223         (test_get_line_width_without_trailing_whitespace): New function.
5224         (selftest::diagnostic_show_locus_c_tests): New function.
5225         * et-forest.c: Include "selftest.h".
5226         (selftest::test_single_node): New function.
5227         (selftest::test_simple_tree): New function.
5228         (selftest::test_disconnected_nodes): New function.
5229         (selftest::et_forest_c_tests): New function.
5230         * fold-const.c: Include "selftest.h".
5231         (selftest::assert_binop_folds_to_const): New function.
5232         (selftest::assert_binop_folds_to_nonlvalue): New function.
5233         (selftest::test_arithmetic_folding): New function.
5234         (selftest::fold_const_c_tests): New function.
5235         * function-tests.c: New file.
5236         * gimple.c: Include "selftest.h".
5237         Include "gimple-pretty-print.h".
5238         (selftest::verify_gimple_pp): New function.
5239         (selftest::test_assign_single): New function.
5240         (selftest::test_assign_binop): New function.
5241         (selftest::test_nop_stmt): New function.
5242         (selftest::test_return_stmt): New function.
5243         (selftest::test_return_without_value): New function.
5244         (selftest::gimple_c_tests): New function.
5245         * hash-map-tests.c: New file.
5246         * hash-set-tests.c: New file.
5247         * input.c: Include "selftest.h".
5248         (selftest::assert_loceq): New function.
5249         (selftest::test_accessing_ordinary_linemaps): New function.
5250         (selftest::test_unknown_location): New function.
5251         (selftest::test_builtins): New function.
5252         (selftest::test_reading_source_line): New function.
5253         (selftest::input_c_tests): New function.
5254         * rtl-tests.c: New file.
5255         * selftest-run-tests.c: New file.
5256         * selftest.c: New file.
5257         * selftest.h: New file.
5258         * spellcheck.c: Include "selftest.h".
5259         (selftest::levenshtein_distance_unit_test_oneway): New function,
5260         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
5261         (selftest::levenshtein_distance_unit_test): Likewise.
5262         (selftest::spellcheck_c_tests): Likewise.
5263         * toplev.c: Include selftest.h.
5264         (toplev::run_self_tests): New.
5265         (toplev::main): Handle -fself-test.
5266         * toplev.h (toplev::run_self_tests): New.
5267         * tree.c: Include "selftest.h".
5268         (selftest::test_integer_constants): New function.
5269         (selftest::test_identifiers): New function.
5270         (selftest::test_labels): New function.
5271         (selftest::tree_c_tests): New function.
5272         * tree-cfg.c: Include "selftest.h".
5273         (selftest::push_fndecl): New function.
5274         (selftest::test_linear_chain): New function.
5275         (selftest::test_diamond): New function.
5276         (selftest::test_fully_connected): New function.
5277         (selftest::tree_cfg_c_tests): New function.
5278         * vec.c: Include "selftest.h".
5279         (selftest::safe_push_range): New function.
5280         (selftest::test_quick_push): New function.
5281         (selftest::test_safe_push): New function.
5282         (selftest::test_truncate): New function.
5283         (selftest::test_safe_grow_cleared): New function.
5284         (selftest::test_pop): New function.
5285         (selftest::test_safe_insert): New function.
5286         (selftest::test_ordered_remove): New function.
5287         (selftest::test_unordered_remove): New function.
5288         (selftest::test_block_remove): New function.
5289         (selftest::reverse_cmp): New function.
5290         (selftest::test_qsort): New function.
5291         (selftest::vec_c_tests): New function.c.
5292         * wide-int.cc: Include selftest.h and wide-int-print.h.
5293         (selftest::from_int <wide_int>): New function.
5294         (selftest::from_int <offset_int>): New function.
5295         (selftest::from_int <widest_int>): New function.
5296         (selftest::assert_deceq): New function.
5297         (selftest::assert_hexeq): New function.
5298         (selftest::test_printing <VALUE_TYPE>): New function template.
5299         (selftest::test_ops <VALUE_TYPE>): New function template.
5300         (selftest::test_comparisons <VALUE_TYPE>): New function template.
5301         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
5302         template.
5303         (selftest::wide_int_cc_tests): New function.
5305 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5307         PR middle-end/37780
5308         * ifcvt.c (noce_try_ifelse_collapse): New function.
5309         Declare prototype.
5310         (noce_process_if_block): Call noce_try_ifelse_collapse.
5311         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
5312         (simplify_ternary_operation): Use the above to simplify
5313         conditional CLZ/CTZ expressions.
5315 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5317         PR middle-end/37780
5318         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
5319         define_insn_and_split.
5321 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5323         PR middle-end/37780
5324         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
5326 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5328         PR c/24414
5329         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
5330         Implicitly clobber memory for basic asm with non-empty assembler
5331         string.  Use targetm.md_asm_adjust also here.
5332         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
5333         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
5334         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
5335         non-empty assembler string.
5336         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
5337         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
5338         (decode_asm_operands): Handle basic asm in PARALLEL block.
5339         (extract_insn): Handle basic asm in PARALLEL block.
5340         * doc/extend.texi: Mention new behavior of basic asm.
5341         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
5342         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
5343         branch_needs_nop_p): Use asm_noperands.
5345 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
5347         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
5348         Include the M7 SPARC DFA scheduler.
5349         New attribute v3pipe.
5350         Annotate insns with v3pipe where appropriate.
5351         Define cpu_feature vis4.
5352         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
5353         Add (V8QI "8") to vbits.
5354         Add insns {add,sub}v8qi3
5355         Add insns ss{add,sub}v8qi3
5356         Add insns us{add,sub}{v8qi,v4hi}3
5357         Add insns {min,max}{v8qi,v4hi,v2si}3
5358         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
5359         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
5360         * config/sparc/niagara4.md: Add a comment explaining the
5361         discrepancy between the documented latenty numbers and the
5362         implemented ones.
5363         * config/sparc/niagara7.md: New file.
5364         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
5365         supports SPARC5 and VIS 4.0 instructions.
5366         * configure: Regenerate.
5367         * config.in: Likewise.
5368         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
5369         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
5370         TARGET_CPU_niagara7.
5371         (ASM_CPU64_DEFAULT_SPEC): Likewise.
5372         (CPP_CPU_SPEC): Handle niagara7.
5373         (ASM_CPU_SPEC): Likewise.
5374         * config/sparc/sparc-opts.h (processor_type): Add
5375         PROCESSOR_NIAGARA7.
5376         (mvis4): New option.
5377         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
5378         (AS_NIAGARA7_FLAG): Define.
5379         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
5380         (CPP_CPU64_DEFAULT_SPEC): Likewise.
5381         (CPP_CPU_SPEC): Handle niagara7.
5382         (ASM_CPU_SPEC): Likewise.
5383         * config/sparc/sparc.c (niagara7_costs): Define.
5384         (sparc_option_override): Handle niagara7 and adjust cache-related
5385         parameters with better values for niagara cpus.  Also support VIS4.
5386         (sparc32_initialize_trampoline): Likewise.
5387         (sparc_use_sched_lookahead): Likewise.
5388         (sparc_issue_rate): Likewise.
5389         (sparc_register_move_cost): Likewise.
5390         (dump_target_flag_bits): Support VIS4.
5391         (sparc_vis_init_builtins): Likewise.
5392         (sparc_builtins): Likewise.
5393         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
5394         VIS4 4.0.
5395         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
5396         UltraSparc M7.
5397         * config/sparc/sparc.opt (sparc_processor_type): New value
5398         niagara7.
5399         * config/sparc/visintrin.h (__attribute__): Prototypes for the
5400         VIS4 builtins.
5401         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
5402         -mvis4.
5403         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5404         VIS4 builtins.
5406 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
5408         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
5410 2016-06-06  Richard Biener  <rguenther@suse.de>
5412         PR tree-optimization/71398
5413         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
5414         remove edges.
5416 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
5418         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
5419         ft32_expand_prolog, ft32_expand_epilogue):
5420         Handle pretend_args.
5421         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
5422         * config/ft32/ft32.md: Add pretend_returner.
5424 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
5426         PR target/71389
5427         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5428         Copy op1 RTX to avoid invalid sharing.
5429         (ix86_expand_vector_move_misalign): Ditto.
5431 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
5433         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
5434         ATTRIBUTE_UNUSED.
5436 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
5438         * predict.c (predicted_by_loop_heuristics_p): New function.
5439         (predict_iv_comparison): Use it.
5440         (predict_loops): Walk from innermost loops; do not predict edges
5441         leaving multiple loops multiple times; implement
5442         PRED_LOOP_ITERATIONS_MAX heuristics.
5443         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
5445 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
5447         * cfg.c (check_bb_profile): Do not report mismatched profiles when
5448         only edges out of BB are EH edges.
5450 2016-06-04  Martin Sebor  <msebor@redhat.com>
5451             Marcin Baczyński  <marbacz@gmail.com>
5453         PR c/48116
5454         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
5455         a void expression in a void function.
5457 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
5459         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
5460         aux; dump reasons of decisions.
5461         (should_duplicate_loop_header_p): Likewise.
5462         (do_while_loop_p): Likewise.
5463         (ch_base::copy_headers): Dump asi num insns duplicated.
5465 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
5467         PR tree-optimization/71405
5468         * tree-ssa.c (execute_update_addresses_taken): For clobber with
5469         incompatible type, build a new clobber with the right type instead
5470         of building a VIEW_CONVERT_EXPR around it.
5472 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
5474         PR tree-optimization/52171
5475         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
5476         by_pieces_ninsns instead of move_by_pieces_ninsns.
5478 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
5480         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
5481         for reg+reg addressing mode.
5483 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5485         * rs6000-c.c (c/c-tree.h): Add #include.
5486         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
5487         in C++ when found in the base position of vec_ld or vec_st.
5489 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
5491         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
5492         use of profile unless profile status is PROFILE_READ.
5493         * profile.c (compute_branch_probabilities): Set profile status
5494         only after reporting predictor hitrates.
5496 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
5498         PR target/71276
5499         PR target/71277
5500         * common.opt (ffp-int-builtin-inexact): New option.
5501         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
5502         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
5503         (ceil@var{m}2): Document dependence on this option.
5504         * ipa-inline-transform.c (inline_call): Handle
5505         flag_fp_int_builtin_inexact.
5506         * ipa-inline.c (can_inline_edge_p): Likewise.
5507         * config/i386/i386.md (rintxf2): Do not test
5508         flag_unsafe_math_optimizations.
5509         (rint<mode>2_frndint): New define_insn.
5510         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
5511         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
5512         for 387 instead of extending and truncating.
5513         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
5514         !flag_trapping_math instead of flag_unsafe_math_optimizations.
5515         Change to frndint<mode>2_<rounding>.
5516         (frndintxf2_<rounding>_i387): Likewise.  Change to
5517         frndint<mode>2_<rounding>_i387.
5518         (<rounding_insn>xf2): Likewise.
5519         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
5520         !flag_trapping_math instead of flag_unsafe_math_optimizations for
5521         x87.  Test TARGET_ROUND || !flag_trapping_math ||
5522         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
5523         SSE.  Use ROUND_NO_EXC in constant operand of
5524         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
5525         for 387 instead of extending and truncating.
5527 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5528             Julia Koval  <julia.koval@intel.com>
5530         PR target/66960
5531         PR target/67630
5532         PR target/67634
5533         PR target/67841
5534         PR target/68037
5535         PR target/68618
5536         PR target/68661
5537         PR target/69575
5538         PR target/69596
5539         PR target/69734
5540         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
5541         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
5542         all registers, except for function return registers if there are
5543         no caller-saved registers.
5544         (ix86_set_func_type): New function.
5545         (ix86_set_current_function): Call ix86_set_func_type to set
5546         no_caller_saved_registers and func_type.  Call reinit_regs if
5547         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
5548         nor x87 instructions in interrupt handler nor function with
5549         no_caller_saved_registers attribute.
5550         (ix86_function_ok_for_sibcall): Return false if there are no
5551         caller-saved registers.
5552         (type_natural_mode): Don't warn ABI change for MMX in interrupt
5553         handler.
5554         (ix86_function_arg_advance): Skip for callee in interrupt handler.
5555         (ix86_function_arg): Return special arguments in interrupt handler.
5556         (ix86_promote_function_mode): Promote pointer to word_mode only
5557         for normal functions.
5558         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
5559         interrupt handler.
5560         (ix86_epilogue_uses): New function.
5561         (ix86_hard_regno_scratch_ok): Likewise.
5562         (ix86_save_reg): Preserve all registers in interrupt handler
5563         after reload.  Preserve all registers, except for function return
5564         registers, if there are no caller-saved registers after reload.
5565         (find_drap_reg): Always use callee-saved register if there are
5566         no caller-saved registers.
5567         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5568         for interrupt handler.
5569         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5570         Emit cld instruction if stringops are used in interrupt handler
5571         or interrupt handler isn't a leaf function.
5572         (ix86_expand_epilogue): Generate interrupt return for interrupt
5573         handler and pop the 'ERROR_CODE' off the stack before interrupt
5574         return in exception handler.
5575         (ix86_expand_call): Disallow calling interrupt handler directly.
5576         If there are no caller-saved registers, mark all registers that
5577         are clobbered by the call which returns as clobbered.
5578         (ix86_handle_no_caller_saved_registers_attribute): New function.
5579         (ix86_handle_interrupt_attribute): Likewise.
5580         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5581         attributes.
5582         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5583         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5584         accumulation in interrupt function if stack may be realigned to
5585         avoid DRAP.
5586         (EPILOGUE_USES): New.
5587         (function_type): New enum.
5588         (machine_function): Add func_type and no_caller_saved_registers.
5589         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5590         (interrupt_return): New pattern.
5591         * doc/extend.texi: Document x86 interrupt and
5592         no_caller_saved_registers attributes.
5594 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
5596         PR tree-optimization/52171
5597         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5598         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
5599         Look for constant strings.  Move some code to emit_block_cmp_hints
5600         and use it.
5601         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5602         * defaults.h (COMPARE_MAX_PIECES): New macro.
5603         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5604         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5605         (clear_by_pieces_1): Don't declare.  Move definition before use.
5606         (can_do_by_pieces): New static function.
5607         (can_move_by_pieces): Use it.  Return bool.
5608         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
5609         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
5610         (class pieces_addr); New.
5611         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5612         pieces_addr::adjust, pieces_addr::increment_address,
5613         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5614         functions for it.
5615         (class op_by_pieces_d): New.
5616         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5617         functions for it.
5618         (class move_by_pieces_d, class compare_by_pieces_d,
5619         class store_by_pieces_d): New subclasses of op_by_pieces_d.
5620         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5621         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5622         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5623         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5624         compare_by_pieces_d::finish_mode): New member functions.
5625         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5626         functions.
5627         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5628         (emit_block_cmp_hints): New function.
5629         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5630         use the newly defined classes.
5631         * expr.h (by_pieces_constfn): New typedef.
5632         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5633         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5634         (move_by_pieces_ninsns): Don't declare.
5635         (can_move_by_pieces): Change return value to bool.
5636         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5637         (compare_by_pieces_branch_ratio): New hook.
5638         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5639         (by_pieces_ninsns): Declare.
5640         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5641         COMPARE_BY_PIECES.
5642         (default_compare_by_pieces_branch_ratio): New function.
5643         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5644         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5645         * doc/tm.texi: Regenerate.
5646         * tree-ssa-strlen.c: Include "builtins.h".
5647         (handle_builtin_memcmp): New static function.
5648         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5649         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5651 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5653         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5654         relevant stmts which are simple and invariant.
5655         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5656         instead of simple and invariant
5658 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5660         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5661         (vectorizable_reduction): Check for new relevant state.
5662         (vectorizable_live_operation): vectorize live stmts using
5663         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
5664         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5665         (vect_stmt_relevant_p): Check for stmts which are only used live.
5666         (process_use): Use of a stmt does not inherit it's live value.
5667         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5668         (vect_analyze_stmt): Check for new relevant state.
5669         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5670         outside the loop, but not inside it.
5672 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5674         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5675         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5676         (vect_get_vec_def_for_operand): Split out code.
5678 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5680         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5682 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5684         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5686 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5688         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5690 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
5692         PR middle-end/71387
5693         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5694         to noreturn e->callee->decl that has void return type and void
5695         arguments, adjust gimple_call_fntype and remove lhs even if it had
5696         previously addressable type.
5698 2016-06-02  Jeff Law  <law@redhat.com>
5700         PR tree-optimization/71328
5701         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5702         error when checking for a jump back onto the copied path.
5704 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
5706         * config/microblaze/microblaze.c (get_branch_target): Add return
5707         NULL_RTX for the non-CALL_P case.
5708         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5709         (insert_wic): Remove unused local "j".
5711 2016-06-02  Martin Liska  <mliska@suse.cz>
5713         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5715 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
5716             Julia Koval  <julia.koval@intel.com>
5718         * function.c (assign_parm_setup_stack): Force source into a
5719         register if needed.
5720         * target.def (function_incoming_arg): Update documentation to
5721         allow arbitrary address computation based on hard register.
5722         * doc/tm.texi: Regenerated.
5724 2016-06-02  Martin Liska  <mliska@suse.cz>
5726         * predict.c (combine_predictions_for_bb): Fix first match in
5727         cases where a first predictor contains more than one occurence
5728         in list of predictors.  Take the best value in such case.
5730 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5732         PR rtl-optimization/71295
5733         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5734         offset would go over the size of the inner mode reject it.
5736 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
5738         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5739         x=x,x and v=v,m instead of x=x,m.
5741         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5742         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
5743         alternative to v=rm,C.
5745         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5746         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
5747         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
5748         instead of vex for the last two above mentioned alternatives.
5750 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5752         PR target/70830
5753         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5755 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
5757         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5759 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
5761         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5762         from int to unsigned.
5764 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5766         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5767         alternatives, eliminating preferred register class.  Add support
5768         for the MTVSRDD instruction in ISA 3.0.
5769         (vsx_splat_v4si_internal): Use splat_input_operand instead of
5770         reg_or_indexed_operand.
5771         (vsx_splat_v4sf_internal): Likewise.
5773 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5775         PR target/71186
5776         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5777         for loading up all 0's or all 1's.
5779 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5781         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5783 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
5785         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5786         extension.
5787         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5788         * gcc.c (set_source_date_epoch_envvar): New function, sets
5789         the SOURCE_DATE_EPOCH environment variable to the current time.
5791 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5793         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5794         the factor for live Phi nodes.
5796 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5798         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5799         * tree-parloops.c (parallelize_loops): likewise.
5800         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5801         tree_unswitch_outer_loop): likewise.
5803 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
5805         PR middle-end/71371
5806         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5807         around creation of the temporary.
5809 2016-06-01  Richard Biener  <rguenther@suse.de>
5811         PR tree-optimization/71366
5812         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5813         (unloop_loops): Move removing edges here ...
5814         (try_unroll_loop_completely): ... from here.
5815         (try_peel_loop): ... and here.
5816         (tree_unroll_loops_completely_1): Track parent loops via
5817         bitmap of header BBs.
5818         (tree_unroll_loops_completely): Adjust for that.
5820 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5822         * config/rs6000/altivec.h (vec_slv): New macro.
5823         (vec_srv): New macro.
5824         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5825         (UNSPEC_VSRV): New value.
5826         (vslv): New insn.
5827         (vsrv): New insn.
5828         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5829         (vsrv): New builtin definition.
5830         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5831         define argument types for new builtin.
5832         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5833         new builtin.
5834         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5835         functions.
5837 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
5838             Jocelyn Mayer  <l_indien@magic.fr>
5840         PR target/67310
5841         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5842         detect processor family for signature_CENTAUR_ebx.
5843         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5844         signature_CENTAUR_ebx.
5845         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5846         <default>: Pass x86-64 for has_longmode.
5848 2016-06-01  Nathan Sidwell  <nathan@acm.org>
5850         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5851         undefined weak.
5853 2016-06-01  Richard Biener  <rguenther@suse.de>
5855         PR tree-optimization/71261
5856         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5857         of stmts successfully put in the bool pattern.  Remove
5858         single-use restriction.
5859         (adjust_bool_pattern_cast): Add cast at the use site via the
5860         pattern def sequence.
5861         (adjust_bool_pattern): Remove recursion, maintain a hash-map
5862         of patterned defs.  Use the pattern def seqence instead of
5863         multiple independent patterns.
5864         (sort_after_uid): New qsort compare function.
5865         (adjust_bool_stmts): New function to process stmts in the bool
5866         pattern in IL order.
5867         (vect_recog_bool_pattern): Adjust.
5868         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5869         (ifcvt_walk_pattern_tree): Likewise.
5870         (stmt_is_root_of_bool_pattern): Likewise.
5871         (ifcvt_repair_bool_pattern): Likewise.
5872         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5874 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5876         * loop-unroll.c (decide_unroll_constant_iterations,
5877         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5878         likely upper bounds.
5879         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5881 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
5883         * tree-core.h (enum omp_clause_code): Remove
5884         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
5886 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5888         * config/arm/sync.md (arm_store_exclusive<mode>):
5889         Use 'H' output modifier on operands[2] rather than creating a new
5890         entry in out-of-bounds memory of the operands array.
5891         (arm_store_release_exclusivedi): Likewise.
5893 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5895         * config/arm/arm.c (arm_fusion_enabled_p): New function.
5896         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5897         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5898         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
5900 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5902         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5903         into account live statements for mask producers.
5905 2016-06-01  Richard Biener  <rguenther@suse.de>
5907         PR tree-optimization/71311
5908         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5909         restrict to non-INTEGER_CST @0.
5911 2016-06-01  Richard Biener  <rguenther@suse.de>
5913         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5914         (relational patterns): Use :c to avoid pattern duplications.
5916 2016-06-01  Richard Biener  <rguenther@suse.de>
5918         * genmatch.c (comparison_code_p): New predicate.
5919         (swap_tree_comparison): New function.
5920         (commutate): Add for_vec parameter to append new for entries.
5921         Support commutating relational operators by swapping it alongside
5922         operands.
5923         (lower_commutative): Adjust.
5924         (dt_simplify::gen): Do not pass artificial operators to gen
5925         functions.
5926         (decision_tree::gen): Do not add artificial operators as parameters.
5927         (parser::parse_expr): Verify operator commutativity when :c is
5928         applied.  Allow :C to override this.
5929         * match.pd: Adjust patterns to use :C instead of :c where required.
5931 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
5933         PR tree-optimization/71077
5934         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5935         the combining step, use boolean_false_node and boolean_true_node
5936         as the designated false/true return values.
5938 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5940         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5941         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5942         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5943         PRED_LOOP_EXIT.
5945 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5947         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5948         of flags impliying the register renaming.
5949         * toplev.c (process_options): Do not imply flag_rename_registers with
5950         loop peeling.
5952 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5954         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5955         default implementation.
5957 2016-05-31  Nathan Sidwell  <nathan@acm.org>
5959         * dwarf2out.c (cur_line_info_table): Add GTY marker.
5961 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5963         * config/sh/constraints.md (b): Remove constraint.
5964         * config/sh/predicates.md (arith_reg_operand): Remove
5965         TARGET_REGISTER_P.
5966         * config/sh/sh-modes.def (PDI): Remove.
5967         * config/sh/sh.c (sh_target_reg_class,
5968         sh_optimize_target_register_callee_saved): Remove functions.
5969         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5970         (sh_expand_epilogue): Update comment.
5971         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5972         sh_secondary_reload): Remove TARGET_REGS related code.
5973         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5974         TARGET_REGISTER_P): Remove macros.
5975         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5976         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5977         TR1_REG, TR2_REG): Remove constants.
5978         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5980 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5982         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5983         define_expand patterns.
5984         (adddi3_compact): Rename to adddi3.
5985         (subdi3_compact): Rename to subdi3.
5986         (*negdi2): Rename to negdi2.
5987         (*abs<mode>2): Rename to abs<mode>2.
5989 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5991         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5992         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5993         (atomic_sub_fetchsi): ... this new pattern.
5994         (mvtc): Add CC_REG clobber.
5996 2016-05-31  Marek Polacek  <polacek@redhat.com>
5998         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
6000 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6002         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
6003         aarch64_fusion_enabled_p to check for fusion capabilities.
6005 2016-05-31  Richard Biener  <rguenther@suse.de>
6007         PR tree-optimization/71352
6008         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
6009         minus one and a negate.
6011 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6013         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
6014         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6015         Delete prototype.
6016         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
6017         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
6018         Remove use of aarch64_simd_attr_length_move, set length attribute
6019         directly.
6020         (*aarch64_be_movoi): Likewise.
6021         (*aarch64_be_movci): Likewise.
6022         (*aarch64_be_movxi): Likewise.
6024 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
6026         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
6027         It no longer does that.
6028         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
6030 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
6032         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
6033         attribute __unused__.
6035 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6037         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
6038         * config/arm/arm.c (arm_arch_thumb1): Define.
6039         (arm_option_override): Initialize arm_arch_thumb1.
6040         * config/arm/arm.h (arm_arch_thumb1): Declare.
6041         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
6042         support Thumb-1 ISA.
6044 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
6046         PR target/71346
6047         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
6048         `Yv' for scalar operand.
6050 2016-05-31  Tom de Vries  <tom@codesourcery.com>
6052         PR tree-optimization/69068
6053         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
6054         phis with more than two args.
6056 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
6058         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
6059         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
6060         target.
6062 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
6064         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
6065         tune_64.
6066         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
6067         support on SPARC.
6068         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
6069         cpu_32, cpu_64, tune_32 and tune_64.
6070         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
6072 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
6074         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
6076 2016-05-30  Andi Kleen  <ak@linux.intel.com>
6078         * auto-profile.c (read_profile): Replace asserts with errors
6079         when file does not exist.
6080         * gcov-io.c (gcov_read_words): Dito.
6082 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6084         * tree-cfg.c (print_loop): Print likely upper bounds.
6086 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6088         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
6089         * opts.c (default_options): Enable peel loops at -O3.
6090         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
6091         (try_peel_loop): Do not re-peel already peeled loops;
6092         use likely upper bounds; fix profile updating.
6093         (pass_complete_unroll::execute): Initialize peeled_loops.
6095 2016-05-30  Martin Liska  <mliska@suse.cz>
6097         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
6098         computed costs by frequency of BB they belong to.
6099         (get_scaled_computation_cost_at): New function.
6101 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
6102             Marc Glisse  <marc.glisse@inria.fr>
6104         PR tree-optimization/71289
6105         * match.pd (-1 / B < A, A > -1 / B): New transformations.
6107 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6109         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
6111 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6113         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
6114         for peeled copies; avoid underflow when updating estimates; correctly
6115         scale loop profile.
6117 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
6119         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
6120         r236875. Corrected oe3 to oe2 as obvious.
6122 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
6124         PR middle-end/71269
6125         PR middle-end/71252
6126         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
6127         that inserted stmt will not dominate stmts that defines its operand.
6128         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
6129         (rewrite_expr_tree_parallel): Likewise.
6131 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
6133         PR middle-end/71252
6134         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
6135         all fields including stmt_to_insert are swapped.
6137 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6139         * predict.h (force_edge_cold): Declare.
6140         * predict.c (force_edge_cold): New function.
6141         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
6142         updating.
6143         (canonicalize_loop_induction_variables): Fix formating.
6145 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6147         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
6148         (visium_expand_copysign): Use gen_int_mode directly.
6149         (visium_compute_frame_size): Minor tweaks.
6151 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6153         * tree-vect-loop.c (vect_analyze_loop_2): Use
6154         likely_max_stmt_executions_int.
6156 2016-05-30  Tom de Vries  <tom@codesourcery.com>
6158         PR tree-optimization/69067
6159         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
6161 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
6163         PR target/71245
6164         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
6165         New peepholes to remove unneeded fild/fistp pairs.
6166         (define_peephole2 atomic_loaddi_fpu): Ditto.
6168 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6170         * predict.c (maybe_hot_frequency_p): Avoid division.
6172 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
6174         * doc/install.texi: Use https for shop.fsf.org.
6176 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6178         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
6179         likely_max_stmt_executions_int.
6181 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6183         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
6184         likely_max_stmt_executions_int.
6186 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6188         * profile.c (compute_branch_probabilities): Do not report hitrates
6189         here.
6190         (branch_prob): Report hitrates here.
6191         * predict.c (gimple_predict_edge): Do not assert profile status;
6192         fix formatting issues.
6194 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6196         * predict.c (edge_predicted_by_p): New function.
6197         (predict_paths_for_bb): Do not put multiple predictions of the same type
6198         on one edge.
6200 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6202         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
6203         commit.
6205 2016-05-28  Alan Modra  <amodra@gmail.com>
6207         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
6209 2016-05-28  Alan Modra  <amodra@gmail.com>
6211         PR rtl-optimization/71275
6212         * ira.c (ira): Free dominance info.
6214 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
6216         * doc/sourcebuild.texi: New address for upstream Go repository.
6218 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6220         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
6221         (TARGET_ARM_V7M): Likewise.
6223 2016-05-26  Jeff Law  <law@redhat.com>
6225         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
6226         (thread_across_edge): Remove calls to find_jump_threads_backwards.
6227         * passes.def: Add jump threading passes before DOM/VRP.
6228         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
6229         argument to a basic block from an edge.  Remove tests which are
6230         handled elsewhere.
6231         (pass_data_thread_jumps, class pass_thread_jumps): New.
6232         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
6233         (make_pass_thread_jumps): Likewise.
6234         * tree-pass.h (make_pass_thread_jumps): Declare.
6236 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6238         * config/visium/visium-protos.h (split_double_move): Rename into...
6239         (visium_split_double_move): ...this.
6240         (visium_split_double_add): Declare.
6241         * config/visium/visium.c (split_double_move): Rename into...
6242         (visium_split_double_move): ...this.
6243         (visium_split_double_add): New function.
6244         (visium_expand_copysign): Renumber operands for consistency.
6245         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
6246         (DFmode move splitter): Likewise.
6247         (*addi3_insn): Split by means of visium_split_double_add.
6248         (*adddi3_insn_flags): Delete.
6249         (*plus_plus_sltu<subst_arith>): New insn.
6250         (*subdi3_insn): Split by means of visium_split_double_add.
6251         (subdi3_insn_flags): Delete.
6252         (*minus_minus_sltu<subst_arith>): New insn.
6253         (*negdi2_insn): Split by means of visium_split_double_add.
6254         (*negdi2_insn_flags): Delete.
6256 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
6258         * configure.ac: Treat a --with-headers option without argument
6259         the same as the default (i.e. consult sys-include directory).
6260         * configure: Regenerate.
6262 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6264         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
6265         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
6266         prototype.
6267         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
6268         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
6270 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
6272         PR target/63596
6273         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
6274         tree-stdarg analysis results.
6275         (aarch64_setup_incoming_varargs): Likewise.
6277 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
6279         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
6280         va_list_gpr_counter_field and va_list_fpr_counter_field.
6282 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
6284         PR67609
6285         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
6286         * config/aarch64/aarch64.c
6287         (aarch64_cannot_change_mode_class): Remove function.
6288         * config/aarch64/aarch64-protos.h
6289         (aarch64_cannot_change_mode_class): Remove.
6291 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6293         * cfgloop.c (record_niter_bound): Record likely upper bounds.
6294         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
6295         get_likely_max_loop_iterations_int): New.
6296         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
6297         any_likely_upper_bound.
6298         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
6299         Declare.
6300         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
6301         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
6302         upper bound.
6303         (unroll_loop_constant_iterations): Likewise.
6304         (unroll_loop_runtime_iterations): Likewise.
6305         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
6306         * lto-streamer-out.c (output_cfg): Likewise.
6307         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
6308         bounds.
6309         (canonicalize_loop_induction_variables): Dump likely upper bounds.
6310         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
6311         (likely_max_loop_iterations): New.
6312         (likely_max_loop_iterations_int): New.
6313         (likely_max_stmt_executions): New.
6314         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
6315         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
6316         likely_max_stmt_executions): Declare.
6318 2016-05-27  Marek Polacek  <polacek@redhat.com>
6320         PR middle-end/71308
6321         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
6323 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6325         * config/s390/s390.md (2x risbg splitters): Use
6326         reg_overlap_mentioned_p instead of rtx_equal_p.
6328 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6330         * combine.c (make_compound_operation): Take known zero bits into
6331         account when checking for possible zero_extend.
6333 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6335         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
6336         Use const_int_operand for operand 2 predicate.  Simplify expand code
6337         as a result.
6339 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
6341         PR middle-end/71279
6342         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
6343         into comparison.
6345 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6347         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
6348         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
6349         that returns CC_SESWPmode and CC_ZESWPmode.
6350         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
6351         and CC_SESWPmode.
6352         (aarch64_rtx_costs): Likewise.
6354 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6356         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
6357         for ISA 3.0 min/max support.
6358         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
6359         conditional move support.
6360         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
6361         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
6362         available.
6363         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
6364         conditional moves where the comparison type is different from move
6365         type.
6366         (fp_minmax): New code iterator for smin/smax.
6367         (minmax): New code attributes for min/max.
6368         (SMINMAX): Likewise.
6369         (smax<mode>3): Combine min, max insns into one insn using the
6370         fp_minmax code iterator.  Add support for ISA 3.0 min/max
6371         instructions that don't need -ffast-math.
6372         (s<minmax><mode>3): Likewise.
6373         (smax<mode>3_vsx): Likewise.
6374         (smin<mode>3): Likewise.
6375         (s<minmax><mode>3_vsx): Likewise.
6376         (smin<mode>3_vsx): Likewise.
6377         (pre-VSX min/max splitters): Likewise.
6378         (s<minmax><mode>3_fpr): Likewise.
6379         (movsfcc): Rewrite floating point conditional moves to combine
6380         SFmode/DFmode into a single insn.
6381         (mov<mode>cc): Likewise.
6382         (movdfcc): Likewise.
6383         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
6384         SFDF2 iterators to handle all combinations.
6385         (fseldfsf4): Likewise.
6386         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
6387         (fseldfdf4): Likewise.
6388         (fselsfdf4): Likewise.
6389         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
6390         comparison instructions that set a 0/-1 mask, and use it for
6391         floating point conditional move via XXSEL.
6392         (fpmask<mode>): Likewise.
6393         (xxsel<mode>): Likewise.
6394         * config/rs6000/predicates.md (min_max_operator): Delete, no
6395         longer used.
6396         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
6397         instructions that generate a 0/-1 mask for use with XXSEL.
6398         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
6399         say whether floating point min/max is available, either through
6400         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
6401         (TARGET_MINMAX_DF): Likewise.
6403 2016-05-27  Alan Modra  <amodra@gmail.com>
6405         PR rtl-optimization/71275
6406         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
6407         for update_equiv_regs and combine_and_move_insns.
6409 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
6411         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
6412         if_then_else or cond RTXes to calculate attribute value.
6413         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
6414         <attr "length_immediate>: Ditto.
6415         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
6416         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
6417         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
6418         <attr "type">: Ditto.
6419         <attr "prefix_data16">: Ditto.
6420         <attr "prefix_extra">: Ditto.
6421         <attr "length_immediate">: Ditto.
6422         <attr "prefix">: Ditto.
6423         (vec_set<mode>_0) <attr "isa">: Ditto.
6424         <attr "prefix_extra">: Ditto.
6425         <attr "length_immediate">: Ditto.
6426         <attr "prefix">: Ditto.
6427         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
6428         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
6429         (sse2_storelpd) <attr "prefix_data16">: Ditto.
6430         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
6431         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
6432         <attr "length_immediate">: Ditto.
6433         <attr "prefix">: Ditto.
6434         (sse2_movsd) <attr "length_immediate">: Ditto.
6435         <attr "prefix">: Ditto.
6436         (vec_concatv2df)  <attr "isa">: Ditto.
6437         <attr "prefix">: Ditto.
6438         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
6439         (*vec_extractv2di_1) <attr "isa">: Ditto.
6440         <attr "type">: Ditto.
6441         <attr "length_immediate">: Ditto.
6442         <attr "prefix_rex">: Ditto.
6443         <attr "prefix_extra">: Ditto.
6444         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
6445         <attr "prefix_extra">: Ditto.
6446         <attr "length_immediate">: Ditto.
6447         (vec_concatv2di) <attr "isa">: Ditto.
6448         <attr "prefix_extra">: Ditto.
6449         <attr "length_immediate">: Ditto.
6450         <attr "prefix">: Ditto.
6452 2016-05-26  Martin Liska  <mliska@suse.cz>
6454         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
6455         function.
6456         (operator+): Likewise.
6457         (operator-): Likewise.
6458         (comp_cost::operator+=): Likewise.
6459         (comp_cost::operator-=): Likewise.
6460         (comp_cost::operator/=): Likewise.
6461         (comp_cost::operator*=): Likewise.
6462         (operator<): Likewise.
6463         (operator==): Likewise.
6464         (operator<=): Likewise.
6465         (new_cost): Remove.
6466         (infinite_cost_p): Likewise.
6467         (add_costs): Likewise.
6468         (sub_costs): Likewise.
6469         (compare_costs): Likewise.
6470         (set_group_iv_cost): Use the newly introduced functions.
6471         (get_address_cost): Likewise.
6472         (get_shiftadd_cost): Likewise.
6473         (force_expr_to_var_cost): Likewise.
6474         (split_address_cost): Likewise.
6475         (ptr_difference_cost): Likewise.
6476         (difference_cost): Likewise.
6477         (get_computation_cost_at): Likewise.
6478         (determine_group_iv_cost_generic): Likewise.
6479         (determine_group_iv_cost_address): Likewise.
6480         (determine_group_iv_cost_cond): Likewise.
6481         (autoinc_possible_for_pair): Likewise.
6482         (determine_group_iv_costs): Likewise.
6483         (cheaper_cost_pair): Likewise.
6484         (iv_ca_recount_cost): Likewise.
6485         (iv_ca_set_no_cp): Likewise.
6486         (iv_ca_set_cp): Likewise.
6487         (iv_ca_cost): Likewise.
6488         (iv_ca_new): Likewise.
6489         (iv_ca_dump): Likewise.
6490         (iv_ca_narrow): Likewise.
6491         (iv_ca_prune): Likewise.
6492         (iv_ca_replace): Likewise.
6493         (try_add_cand_for): Likewise.
6494         (try_improve_iv_set): Likewise.
6495         (find_optimal_iv_set): Likewise.
6497 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
6499         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
6500         that internal functions will clobber all caller-saved registers.
6502 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
6504         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
6505         Return a better case_values_threshold when optimizing.
6507 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
6509         * config/aarch64/aarch64-simd.md (aarch64_combinez):
6510         Add ? to integer variant.
6511         (aarch64_combinez_be): Likewise.
6513 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
6515         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
6516         instead of x constraint.
6517         (vcvtps2ph256<mask_name>): Likewise.
6519         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
6520         alternative.  Formatting fix.
6522         * config/i386/sse.md
6523         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
6524         to ...
6525         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
6526         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
6527         maybe_evex prefix instead of vex.
6528         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
6529         EXT_REX_SSE_REG_P (op0) case in the splitter.
6531 2016-05-25  Jeff Law  <law@redhat.com>
6533         PR tree-optimization/71272
6534         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
6535         Update comments.  Add test for empty path.
6537 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
6539         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
6540         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
6541         special case builtin.
6542         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6543         code for ALTIVEC_BUILTIN_VEC_CMPNE.
6544         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6545         for __builtin_vec_cmpne.
6547 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6549         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
6550         redundant test and bail out if the type of the new operand is not
6551         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
6553 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
6555         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
6556         (x_ix86_target_flags_explicit): Remove.
6557         * config/i386/i386.c (ix86_function_specific_save): Do not copy
6558         x_ix86_target_flags_explicit.
6559         (ix86_function_specific_restore): Ditto.
6561 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
6562             H.J. Lu  <hongjiu.lu@intel.com>
6564         PR target/70738
6565         * common/config/i386/i386-common.c
6566         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6567         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6568         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6569         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6570         (-mgeneral-regs-only): Add new option.
6571         * config/i386/i386.c (ix86_option_override_internal): Don't enable
6572         x87 instructions if only general registers are allowed.
6573         (ix86_target_string): Add ix86_flags argument. Handle additional
6574         flags options through ix86_flags argument.  Update all callers.
6575         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6577 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6579         PR rtl-optimization/66940
6580         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6581         decrementing desired_val will not overflow before performing these
6582         operations.
6584 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
6586         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6587         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6588         * config/i386/i386.c (enum ix86_builtins): Add
6589         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6590         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6591         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6592         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6593         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6594         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6595         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6596         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6597         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6598         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6599         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6600         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6601         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6602         __builtin_ia32_cvtps2dq512_mask.
6603         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6604         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6605         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6606         * config/i386/sse.md
6607         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6608         Rename to ...
6609         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6610         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6611         to ...
6612         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6613         (avx512f_vec_pack_sfix_v8df): New define_expand.
6614         (avx512f_roundpd512): Rename to ...
6615         (avx512f_round<castmode>512): ... this.  Change iterator.
6616         (avx512f_roundps512_sfix): New define_expand.
6617         (round<mode>2_sfix): Change iterator.
6619 2016-05-25  Nick Clifton  <nickc@redhat.com>
6621         * config/msp430/msp430.c (msp430_attr): Produce an error if a
6622         static interrupt handler is detected.
6623         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6624         default linker script.
6625         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6626         the low part of a symbolic pointer.
6628 2016-05-25  Richard Biener  <rguenther@suse.de>
6630         PR tree-optimization/71261
6631         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6632         interesting stmt instead of immediate uses when looking
6633         for the use operand to replace.
6635 2016-05-25  Martin Liska  <mliska@suse.cz>
6637         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6639 2016-05-25  Richard Biener  <rguenther@suse.de>
6641         PR tree-optimization/71264
6642         * tree-vect-stmts.c (vect_init_vector): Properly deal with
6643         vector type val.
6645 2016-05-25  Martin Liska  <mliska@suse.cz>
6647         PR tree-optimization/71239
6648         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6649         if DECL_SIZE is NULL.
6651 2016-05-25  Richard Biener  <rguenther@suse.de>
6653         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6654         * tree-if-conv.c (pass_data_if_conversion): Use it.
6656 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6658         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6659         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6660         * varpool.c (varpool_node::get_availability): Likewise.
6662 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6664         * config/rs6000/altivec.md (VNEG iterator): New iterator for
6665         VNEGW/VNEGD instructions.
6666         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6667         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6668         support for ISA 3.0 VNEGW/VNEGD instructions.
6670 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
6672         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6673         pointers inside OACC_DATA regions.
6674         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6675         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6676         (gimplify_adjust_omp_clauses): Fix typo in comment.
6678 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6680         * config/rs6000/altivec.md (VParity): New mode iterator for vector
6681         parity built-in functions.
6682         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6683         zeros.
6684         (p9v_parity<mode>2): Likewise.
6685         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6686         parity.
6687         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6688         (parity<mode>2): ISA 3.0 expander for vector parity.
6689         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6690         power9 built-ins.
6691         (BU_P9_64BIT_MISC_0): Likewise.
6692         (BU_P9_MISC_0): Likewise.
6693         (BU_P9V_AV_1): Likewise.
6694         (BU_P9V_AV_2): Likewise.
6695         (BU_P9V_AV_3): Likewise.
6696         (BU_P9V_AV_P): Likewise.
6697         (BU_P9V_VSX_1): Likewise.
6698         (BU_P9V_OVERLOAD_1): Likewise.
6699         (BU_P9V_OVERLOAD_2): Likewise.
6700         (BU_P9V_OVERLOAD_3): Likewise.
6701         (VCTZB): Add vector count trailing zeros support.
6702         (VCTZH): Likewise.
6703         (VCTZW): Likewise.
6704         (VCTZD): Likewise.
6705         (VPRTYBD): Add vector parity support.
6706         (VPRTYBQ): Likewise.
6707         (VPRTYBW): Likewise.
6708         (VCTZ): Add overloaded vector count trailing zeros support.
6709         (VPRTYB): Add overloaded vector parity support.
6710         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6711         overloaded vector count trailing zeros and parity instructions.
6712         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6713         vector parity support.
6714         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6715         trailing zeros support.
6716         (vec_cntlz): Likewise.
6717         (vec_vctzb): Likewise.
6718         (vec_vctzd): Likewise.
6719         (vec_vctzh): Likewise.
6720         (vec_vctzw): Likewise.
6721         (vec_vprtyb): Add ISA 3.0 vector parity support.
6722         (vec_vprtybd): Likewise.
6723         (vec_vprtybw): Likewise.
6724         (vec_vprtybq): Likewise.
6725         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6726         the ISA 3.0 vector count trailing zeros and vector parity built-in
6727         functions.
6729 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6731         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6732         when there is stmt_to_insert.
6734 2016-05-24  Martin Sebor  <msebor@redhat.com>
6736         PR c++/71147
6737         * tree.h (complete_or_array_type_p): New inline function.
6739 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6741         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6742         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6743         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6745         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6746         Limit 1st alternative to noavx isa, split 2nd alternative into one
6747         noavx and one avx alternative, use *x and Bm in the former and
6748         x and m in the latter.
6750         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6751         of sse4 for the first alternative, drop %v from the template
6752         and d operand modifier.  Split second alternative into one sse4_noavx
6753         and one avx alternative, use *x instead of *v in the former and v
6754         instead of *v in the latter.
6755         (*sse4_1_extractps): Use noavx isa instead of * for the first
6756         alternative, drop %v from the template.  Split second alternative into
6757         one noavx and one avx alternative, use *x instead of *v in the
6758         former and v instead of *v in the latter.
6759         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6760         with noavx and the last one with avx.
6761         (sse4_1_phminposuw): Guard first alternative with noavx isa,
6762         split the second one into one noavx and one avx alternative,
6763         use *x and Bm in the former and x and m in the latter one.
6764         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6765         alternatives.
6767         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6768         first two alternatives to noavx, use *x instead of *v in the second
6769         one, add avx alternative without *.
6770         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6771         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6772         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6774 2016-05-24  Jeff Law  <law@redhat.com>
6776         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6777         New function, extracted from...
6778         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
6779         Allow simple copies and constant initializations in the SSA chain.
6781 2016-05-24  Marek Polacek  <polacek@redhat.com>
6783         PR c/71249
6784         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6785         scope.
6787 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6789         PR c++/71257
6790         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6791         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6792         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
6793         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6794         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6796 2016-05-24  Richard Biener  <rguenther@suse.de>
6798         PR tree-optimization/71240
6799         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6800         has integral type.
6802 2016-05-24  Richard Biener  <rguenther@suse.de>
6804         PR tree-optimization/71230
6805         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6807 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6809         * tree-vectorizer.h (vectorizable_comparison): Delete.
6810         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6811         PURE_SLP_STMT check.
6812         * tree-vect-stmts.c (vectorizable_call): Likewise.
6813         (vectorizable_simd_clone_call): Likewise.
6814         (vectorizable_conversion): Likewise.
6815         (vectorizable_assignment): Likewise.
6816         (vectorizable_shift): Likewise.
6817         (vectorizable_operation): Likewise.
6818         (vectorizable_load): Likewise.
6819         (vectorizable_condition): Likewise.
6820         (vectorizable_store): Likewise.  Assert that we don't have
6821         hybrid SLP.
6822         (vectorizable_comparison): Make static.  Remove redundant
6823         PURE_SLP_STMT check.
6824         (vect_transform_stmt): Assert that we always have an slp_node
6825         if PURE_SLP_STMT.
6827 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6829         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
6830         operands[2] against 1 with comparison against CONST1_RTX.
6831         (<shift>di3_neon): Likewise.
6832         * config/arm/predicates.md (const0_operand): Replace with comparison
6833         against CONST0_RTX.
6835 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6837         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6838         operands[2] against 1 with comparison against CONST1_RTX.
6839         (ashrdi3): Likewise.
6840         (lshrdi3): Likewise.
6841         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6842         UINTVAL.
6843         (ashrsi3): Likewise.
6844         (lshrsi3): Likewise.
6845         (rotrsi3): Likewise.
6846         (define_split above *compareqi_eq0): Likewise.
6847         (define_split above "prologue"): Likewise.
6848         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6849         * config/arm/predicates.md (shift_operator): Likewise.
6850         (shift_nomul_operator): Likewise.
6851         (sat_shift_operator): Likewise.
6852         (thumb1_cmp_operand): Likewise.
6853         (const_neon_scalar_shift_amount_operand): Replace manual range
6854         check with IN_RANGE.
6855         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6856         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6858 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6860         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6861         with HOST_WIDE_INT_1.
6862         (insv): Likewise.
6863         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6864         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6865         (arm_canonicalize_comparison): Likewise.
6866         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6867         HOST_WIDE_INT_1.
6868         (thumb1_size_rtx_costs): Likewise.
6869         (vfp_const_double_index): Replace cast of 1 to unsigned
6870         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6871         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6872         HOST_WIDE_INT_1.
6873         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6874         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6875         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6876         HOST_WIDE_INT with HOST_WIDE_INT_1.
6878 2016-05-24  Marek Polacek  <polacek@redhat.com>
6880         * tree-cfg.h (should_remove_lhs_p): New predicate.
6881         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6882         * gimplify.c (gimplify_modify_expr): Likewise.
6883         * tree-cfg.c (verify_gimple_call): Likewise.
6884         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6885         * gimple-fold.c: Include "tree-cfg.h".
6886         (gimple_fold_call): Use should_remove_lhs_p.
6888 2016-05-24  Richard Biener  <rguenther@suse.de>
6890         PR tree-optimization/71253
6891         * cfganal.h (control_dependences): Make robust against edge
6892         and BB removal.
6893         (control_dependences::control_dependences): Remove edge_list argument.
6894         (control_dependences::get_edge): Remove.
6895         (control_dependences::get_edge_src): Add.
6896         (control_dependences::get_edge_dest): Likewise.
6897         (control_dependences::m_el): Make a vector of edge src/dest index.
6898         * cfganal.c (control_dependences::find_control_dependence): Adjust.
6899         (control_dependences::control_dependences): Likewise.
6900         (control_dependences::~control_dependence): Likewise.
6901         (control_dependences::get_edge): Remove.
6902         (control_dependences::get_edge_src): Add.
6903         (control_dependences::get_edge_dest): Likewise.
6904         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6905         get_edge_src.
6906         (perform_tree_ssa_dce): Adjust.
6907         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6908         get_edge_src.
6909         (pass_loop_distribution::execute): Adjust.  Do loop destroying
6910         conditional on changed.
6912 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6914         PR target/69857
6915         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6916         return.  Reindent transformation comment and mention the ARM state
6917         behavior.
6919 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6921         PR middle-end/71252
6922         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6923         after build_and_add_sum creates new use stmt.
6925 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6927         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6928         load_lanes/grouped_load classification comes first.  Don't check
6929         whether the vectorization factor is a multiple of the group size
6930         for load_lanes.
6932 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6934         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6935         GROUP_GAP for single-element interleaving.
6936         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6937         variable.
6939 2016-05-24  Richard Biener  <rguenther@suse.de>
6941         PR middle-end/70434
6942         PR c/69504
6943         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6944         bases which are accessed with non-invariant indices.
6945         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6946         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6948 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6950         PR middle-end/71170
6951         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6952         (add_to_ops_vec): Add stmt_to_insert.
6953         (add_repeat_to_ops_vec): Init stmt_to_insert.
6954         (insert_stmt_before_use): New.
6955         (transform_add_to_multiply): Remove mult_stmt insertion and add it
6956         to ops vector.
6957         (get_ops): Init stmt_to_insert.
6958         (maybe_optimize_range_tests): Likewise.
6959         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6960         (rewrite_expr_tree_parallel): Likewise.
6961         (reassociate_bb): Likewise.
6963 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6965         PR target/71201
6966         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6967         ISA 3.0 xxperm fusion alternative.
6968         (altivec_vperm_v8hiv16qi): Likewise.
6969         (altivec_vperm_<mode>_uns_internal): Likewise.
6970         (vperm_v8hiv4si): Likewise.
6971         (vperm_v16qiv8hi): Likewise.
6973 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6974             Kelvin Nilsen  <kelvin@gcc.gnu.org>
6976         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6977         vpermr/xxpermr on ISA 3.0.
6978         (altivec_expand_vec_perm_le): Likewise.
6979         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6980         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6981         ISA 3.0.
6983 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
6985         * config/i386/i386.h (IS_STACK_MODE): Enable for
6986         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
6987         SSE_FLOAT_MODE_P macros.
6988         * config/i386/i386.c (ix86_preferred_reload_class): Use
6989         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6990         Cleanup regclass processing for CONST_DOUBLE_P.
6991         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6992         (ix86_rtx_costs): Remove redundant TARGET_80387 check
6993         with IS_STACK_MODE macro.
6994         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6995         with TARGET_SSE2.
6996         (*movdf_internal): Use IS_STACK_MODE macro.
6997         (*movsf_internal): Ditto.
6999 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
7001         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
7002         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
7004 2016-05-23  Jeff Law  <law@redhat.com>
7006         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
7007         extracted from ...
7008         (fsm_find_control_statement_thread_paths): Call it.
7010 2016-05-23  Martin Jambor  <mjambor@suse.cz>
7012         PR ipa/71234
7013         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
7014         from_global_constant if t is not NULL.
7016 2016-05-23  Marek Polacek  <polacek@redhat.com>
7018         PR c/49859
7019         * common.opt (Wswitch-unreachable): New option.
7020         * doc/invoke.texi: Document -Wswitch-unreachable.
7021         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
7022         warning.
7024 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
7026         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
7027         TMR_INDEX is non-NULL.
7029 2016-05-23  Richard Biener  <rguenther@suse.de>
7031         PR tree-optimization/71230
7032         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
7033         (try_special_add_to_ops): ... here.  Always test for single-use.
7035 2016-05-23  Martin Jambor  <mjambor@suse.cz>
7037         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
7038         default block if a PHI node in the original one would be resized.
7040 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7042         PR tree-optimization/58135
7043         * tree-vect-slp.c: When group size is not multiple
7044         of vector size, allow splitting of store group at
7045         vector boundary.
7047 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
7049         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
7051 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
7053         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
7054         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
7055         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
7056         of 64x2.
7058         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
7059         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
7060         v constraint instead of x and vinserti32x4 insn.
7062         * config/i386/sse.md (i128vldq): New mode iterator.
7063         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
7064         avx512dq and avx512vl alternatives.
7066         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
7067         constraint, use maybe_evex prefix instead of vex.
7068         (vec_dupv4sf): Use v constraint instead of x for output
7069         operand except for noavx alternative, use Yv constraint
7070         instead of x for input.  Use maybe_evex prefix instead of vex.
7071         (*vec_dupv4si): Likewise.
7072         (*vec_dupv2di): Likewise.
7074 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7076         PR middle-end/40921
7077         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
7078         (linearize_expr_tree): Call try_special_add_to_ops.
7079         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
7081 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7083         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
7084         to computed stack_usage.
7086 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7088         PR target/71103
7089         * config/avr/avr.md (define_expand "mov<mode>"): If the source
7090         operand is subreg (symbol_ref) then move the symbol ref to register.
7092 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
7094         * tree.c (array_at_struct_end_p): Look through MEM_REF.
7096 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
7098         PR middle-end/71179
7099         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
7100         VECTOR type.
7102 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7104         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
7105         ranges by calling get_single_symbol and tidy up.  Look more closely
7106         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
7108 2016-05-20  Jeff Law  <law@redhat.com>
7110         * bitmap.c (bitmap_find_bit): Remove useless test.
7112 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
7114         * function.c (thread_prologue_and_epilogue_insns): Commit the
7115         insertion of the epilogue.
7117 2016-05-20  Martin Jambor  <mjambor@suse.cz>
7119         PR tree-optimization/70884
7120         * tree-sra.c (initialize_constant_pool_replacements): Do not check
7121         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
7122         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
7123         of constant pool data as a reason for scalarization.
7125 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7127         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
7128         for naked functions.
7129         (thumb1_expand_prologue): Likewise.
7131 2016-05-20  Nathan Sidwell  <nathan@acm.org>
7133         * config/nvptx/nptx.c (nvptx_option_override): Only set
7134         flag_toplevel_reorder, if not explicitly specified.  Set
7135         flag_no_common, unless explicitly specified.
7137 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
7139         * calls.c (can_implement_as_sibling_call_p): Mark param
7140         reg_parm_stack_space with ATTRIBUTE_UNUSED.
7142 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
7144         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
7145         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
7146         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
7147         constants.
7148         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
7149         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
7150         and CASE_CONST_ANY.
7152 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
7154         * config/nvptx/nvptx.md (sincossf3): New pattern.
7156 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
7158         * calls.c (maybe_complain_about_tail_call): New function.
7159         (initialize_argument_information): Call
7160         maybe_complain_about_tail_call when clearing *may_tailcall.
7161         (can_implement_as_sibling_call_p): Call
7162         maybe_complain_about_tail_call when returning false.
7163         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
7164         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
7165         if tail-call optimization fails.
7166         * cfgexpand.c (expand_call_stmt): Initialize
7167         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
7168         * gimple-pretty-print.c (dump_gimple_call): Dump
7169         gimple_call_must_tail_p.
7170         * gimple.c (gimple_build_call_from_tree): Call
7171         gimple_call_set_must_tail with the value of
7172         CALL_EXPR_MUST_TAIL_CALL.
7173         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
7174         (gimple_call_set_must_tail): New function.
7175         (gimple_call_must_tail_p): New function.
7176         * print-tree.c (print_node): Update printing of TREE_STATIC
7177         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
7178         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
7179         trailing comment listing applicable flags.
7180         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
7182 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
7184         * calls.c (expand_call): Move "Rest of purposes for tail call
7185         optimizations to fail" to...
7186         (can_implement_as_sibling_call_p): ...this new function, and
7187         split into multiple "if" statements.
7189 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
7191         * cfgloop.h (expected_loop_iterations_unbounded,
7192         expected_loop_iterations): Unconstify.
7193         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
7194         profile with known upper bound; return 3 when profile is absent.
7195         (expected_loop_iterations): Update.
7197 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
7199         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
7200         and get_max_loop_iterations_int.
7202 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
7204         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
7205         realistic upper bounds here.
7207 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
7209         PR c++/71210
7210         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
7211         calls if the LHS is variable length or has addressable type.
7212         If targets[0]->decl is a noreturn call with void return type and
7213         zero arguments, adjust fntype and remove lhs in that case.
7215 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
7217         PR tree-optimization/71079
7218         PR tree-optimization/71206
7219         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
7221 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7223         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
7224         (get_vec_alignment_for_array_decl): Likewise.
7225         (get_vec_alignment_for_record_decl): Likewise.
7226         (increase_alignment::execute): Move code to find alignment to
7227         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
7228         (type_align_map): New hash_map.
7230 2016-05-20  Richard Guenther  <rguenther@suse.de>
7232         PR tree-optimization/29756
7233         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
7234         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
7235         * fold-const.c (operand_equal_p): Likewise.
7236         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
7237         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
7238         * tree-inline.c (estimate_operator_cost): Likewise.
7239         * tree-pretty-print.c (dump_generic_node): Likewise.
7240         * tree-ssa-operands.c (get_expr_operands): Likewise.
7241         * cfgexpand.c (expand_debug_expr): Likewise.
7242         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7243         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
7244         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
7245         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
7246         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
7247         (execute_update_addresses_taken): Do it.
7249 2016-05-20  Richard Biener  <rguenther@suse.de>
7251         PR tree-optimization/71185
7252         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
7253         register operations.
7255 2016-05-20  Richard Biener  <rguenther@suse.de>
7257         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
7258         gimple_seq_add_seq_without_update.
7259         (release_bb_predicate): Assert we have no operands to free.
7260         (if_convertible_loop_p_1): Calculate post dominators later.
7261         Do not free BB predicates here.
7262         (combine_blocks): Do not recompute BB predicates.
7263         (version_loop_for_if_conversion): Save BB predicates around
7264         loop versioning.
7266 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7268         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
7269         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
7270         code.  Ignore sibcalls on EDGE_IGNORE edges.
7271         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
7272         on edges for sibcalls that run without prologue.  The rest of the
7273         function is combined from...
7274         (fix_fake_fallthrough_edge): ... this, and ...
7275         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
7276         function argument, make it a local variable.
7278 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
7280         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
7281         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
7282         for 32-bit mode and SEH for 64-bit.
7283         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
7284         TARGET_64BIT_DEFAULT.
7286 2016-05-19  Ryan Burn  <contact@rnburn.com>
7288         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
7289         * gengtype.c (open_base_files): Add cilk.h to ifiles.
7291 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
7293         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
7294         force pending loads from memory.
7296 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7298         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
7299         (UNSPEC_DARN_32): New unspec constant.
7300         (UNSPEC_DARN_RAW): New unspec constant.
7301         (darn_32): New instruction.
7302         (darn_raw): New instruction.
7303         (darn): New instruction.
7304         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
7305         support and documentation for this macro.
7306         (BU_P9_MISC_1): New macro definition.
7307         (BU_P9_64BIT_MISC_0): New macro definition.
7308         (BU_P9_MISC_0): New macro definition.
7309         (darn_32): New builtin definition.
7310         (darn_raw): New builtin definition.
7311         (darn): New builtin definition.
7312         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
7313         RS6000_BUILTIN_0 directives to surround each occurrence of
7314         #include "rs6000-builtin.def".
7315         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
7316         RS6000_BTM_64BIT flags to the returned mask, depending on
7317         configuration.
7318         (def_builtin): Correct an error in the assignments made to the
7319         debugging variable attr_string.
7320         (rs6000_expand_builtin): Add support for no-operand built-in
7321         functions.
7322         (builtin_function_type): Remove fatal_error assertion that is no
7323         longer valid.
7324         (rs6000_common_init_builtins): Add support for no-operand built-in
7325         functions.
7326         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
7327         definition.
7328         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
7329         definition.
7330         (RS6000_BTM_64BIT): New macro definition.
7331         * doc/extend.texi: Document __builtin_darn (void),
7332         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
7333         functions.
7335 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
7337         * tree-vect-loop.c (vect_analyze_loop_2): Use also
7338         max_loop_iterations_int.
7340 2016-05-19  Marek Polacek  <polacek@redhat.com>
7342         PR tree-optimization/71031
7343         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
7344         condition and adjust the code a bit.
7346 2016-05-19  Martin Liska  <mliska@suse.cz>
7348         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
7349         auto_vec instead of vec.
7351 2016-05-19  Martin Liska  <mliska@suse.cz>
7353         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
7355 2016-05-19  Martin Liska  <mliska@suse.cz>
7357         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
7359 2016-05-19  Martin Liska  <mliska@suse.cz>
7361         * ipa-pure-const.c (set_function_state): Remove an existing
7362         funct_state.
7363         (remove_node_data): Do not free it as it's released
7364         in set_function_state.
7366 2016-05-19  Martin Liska  <mliska@suse.cz>
7368         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
7369         bitmap.
7371 2016-05-19  Martin Liska  <mliska@suse.cz>
7373         * omp-simd-clone.c (simd_clone_adjust): Release vector.
7375 2016-05-19  Martin Liska  <mliska@suse.cz>
7377         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
7378         an auto_vec instead of re-creating it.
7380 2016-05-19  Martin Liska  <mliska@suse.cz>
7382         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
7383         auto_vec instead of vec.
7385 2016-05-19  Martin Liska  <mliska@suse.cz>
7387         * lto-section-in.c (lto_get_section_data): Call
7388         lto_check_version with additional argument.
7389         * lto-streamer.c (lto_check_version): Add new argument.
7390         * lto-streamer.h (lto_check_version): Likewise.
7392 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7394         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
7395         Don't add cost of inner memory when handling sign-extended loads.
7397 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7399         PR rtl-optimization/71148
7400         * cse.c (cse_main): Free dominance info.
7401         (rest_of_handle_cse): Don't free dominance info.
7402         (rest_of_handle_cse2): Likewise.
7403         (rest_of_handle_cse_after_global_opts): Likewise.
7405 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7407         PR target/71056
7408         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
7409         NULL_TREE early if NEON is not available.  Remove now redundant check
7410         in ARM_CHECK_BUILTIN_MODE.
7412 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
7414         PR sanitizer/64354
7415         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
7416         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
7417         * doc/cpp.texi: Document new macros.
7419 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
7421         PR tree-optimization/69848
7422         * tree-vect-loop.c (vectorizable_reduction): Don't factor
7423         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
7425 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7427         * function.c (thread_prologue_and_epilogue_insn): Move the
7428         "goto epilogue_done" one block later.
7430 2016-05-19  Richard Biener  <rguenther@suse.de>
7432         PR tree-optimization/70729
7433         * passes.def: Move LIM pass before PRE.  Remove no longer
7434         required copyprop and move first DCE out of the loop pipeline.
7436 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
7438         PR driver/69265
7439         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
7440         (OBJS-libcommon-target): ...here.
7441         * opts-common.c: Include spellcheck.h.
7442         (cmdline_handle_error): Build a vec of valid options and use it
7443         to suggest provide hints for misspelled arguments.
7445 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7447         PR c++/71100
7448         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
7449         lhs if it has TREE_ADDRESSABLE type.
7451 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
7453         PR target/71145
7454         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
7455         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
7457 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7459         PR ipa/69708
7460         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
7461         input for NOP_EXPR pass-through functions.
7462         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
7463         aggregate global constant VAR_DECLs in constant jump functions.
7465 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7467         PR ipa/69708
7468         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
7469         from TREE_READONLY parameters.
7471 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7473         PR ipa/69708
7474         * cgraph.h (cgraph_indirect_call_info): New field
7475         guaranteed_unmodified.
7476         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
7477         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7478         appropriate.
7479         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
7480         pass the parameter value to ipa_find_agg_cst_for_param.
7481         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
7482         guaranteed_unmodified, store AA results there instead of bailing out
7483         if present.
7484         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
7485         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
7486         (find_constructor_constant_at_offset): New function.
7487         (ipa_find_agg_cst_from_init): Likewise.
7488         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
7489         static initializers of contants, report back through a new paameter
7490         from_global_constant if that was the case.
7491         (try_make_edge_direct_simple_call): Also pass parameter value to
7492         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7493         appropriate.
7494         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
7495         (ipa_read_indirect_edge_info): Likewise.
7496         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
7497         (ipa_load_from_parm_agg): Likewise.
7499 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
7501         PR rtl-optimization/71150
7502         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
7503         check.
7505 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7507         PR target/70915
7508         * config/rs6000/constraints.md (wE constraint): New constraint
7509         for a vector constant that can be loaded with XXSPLTIB.
7510         (wM constraint): New constraint for a vector constant of a 1's.
7511         (wS constraint): New constraint for a vector constant that can be
7512         loaded with XXSPLTIB and a vector sign extend instruction.
7513         * config/rs6000/predicates.md (xxspltib_constant_split): New
7514         predicates for wE/wS constraints.
7515         (xxspltib_constant_nosplit): Likewise.
7516         (easy_vector_constant): Add support for constants that can be
7517         loaded via XXSPLTIB.
7518         (all_ones_constant): New predicate for vector constant with all
7519         1's set.
7520         (splat_input_operand): Add support for ISA 3.0 word splat operations.
7521         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
7522         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
7523         instruction and possibly with a sign extension.
7524         (output_vec_const_move): Add support for XXSPLTIB. If we are
7525         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
7526         instead of XXLXOR/XXLORC.
7527         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
7528         operations.
7529         (rs6000_legitimize_reload_address): Likewise.
7530         (rs6000_output_move_128bit): Use output_vec_const_move to emit
7531         constants.
7532         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
7533         combine VSX_M and VSX_M2 into one iterator.
7534         (VSX_M2): Likewise.
7535         (VSINT_84): New iterators for loading constants with XXSPLTIB.
7536         (VSINT_842): Likewise.
7537         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
7538         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
7539         XXSPLTIB instruction.
7540         (xxspltib_<mode>_nosplit): Likewise.
7541         (xxspltib_<mode>_split): New insn to load up constants with
7542         XXSPLTIB and a sign extend instruction.
7543         (vsx_mov<mode>): Replace single move that handled all vector types
7544         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
7545         moves (when -mvsx-timode is in effect) into the main vector
7546         moves.  Eliminate separate moves for <VSr> <VSa>, where the
7547         preferred register class (<VSr>) is listed first, and the
7548         secondary register class (<VSa>) is listed second with a '?' to
7549         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
7550         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
7551         that if the register was involved in a slow operation, the
7552         clear/set operation does not wait for the slow operation to
7553         finish.  Adjust the length attributes for 32-bit mode.  Use
7554         rs6000_output_move_128bit and drop the use of the string
7555         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
7556         spacing so that the alternatives and attributes don't generate
7557         long lines, and put things in columns, so that it is easier to
7558         match up the operands and attributes with the insn alternatives.
7559         (vsx_mov<mode>_64bit): Likewise.
7560         (vsx_mov<mode>_32bit): Likewise.
7561         (vsx_movti_64bit): Fold movti into normal vector moves.
7562         (vsx_movti_32bit): Likewise.
7563         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
7564         splat instructions.
7565         (vsx_splat_v4si_internal): Likewise.
7566         (vsx_splat_v4sf_internal): Likewise.
7567         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7568         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7569         extend vector elements.
7570         (vsx_sign_extend_hi_<mode>): Likewise.
7571         (vsx_sign_extend_si_v2di): Likewise.
7572         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7573         declaration.
7574         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7575         constraints.  Add trailing period to wL documentation.
7577 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
7579         PR middle-end/71020
7580         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7581         * tree-dfa.c (replace_abnormal_ssa_names): New function.
7582         * tree-call-cdce.c: Include tree-dfa.h.
7583         (can_guard_call_p): New function, extracted from...
7584         (can_use_internal_fn): ...here.
7585         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7586         and return void.
7587         (shrink_wrap_one_built_in_call): Likewise.
7588         (use_internal_fn): Likewise.
7589         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7590         and return void.  Call replace_abnormal_ssa_names.
7591         (pass_call_cdce::execute): Check can_guard_call_p during the
7592         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
7593         will always change something.
7595 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7597         PR ipa/70646
7598         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7599         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7601 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7603         PR ipa/70646
7604         * ipa-inline.h (condition): New field size.
7605         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7606         for comaprison and store it into the new condition.
7607         (evaluate_conditions_for_known_args): Use condition size to check
7608         access sizes for all but CHANGED conditions.
7609         (unmodified_parm_1): New parameter size_p, store access size into it.
7610         (unmodified_parm): Likewise.
7611         (unmodified_parm_or_parm_agg_item): Likewise.
7612         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7613         (set_cond_stmt_execution_predicate): Extract access sizes and store
7614         them to conditions.
7615         (set_switch_stmt_execution_predicate): Likewise.
7616         (will_be_nonconstant_expr_predicate): Likewise.
7617         (will_be_nonconstant_predicate): Likewise.
7618         (inline_read_section): Stream condition size.
7619         (inline_write_summary): Likewise.
7621 2016-05-18  Richard Biener  <rguenther@suse.de>
7623         * tree-ssa-loop-im.c (determine_max_movement): Properly add
7624         condition cost to PHI cost instead of total_cost.
7626 2016-05-18  Martin Liska  <mliska@suse.cz>
7628         PR fortran/70856
7629         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7630         merged variables.
7632 2016-05-18  Richard Biener  <rguenther@suse.de>
7634         * lto-streamer.h (LTO_major_version): Bump to 6.
7636 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7638         * function.c (make_split_prologue_seq, make_prologue_seq,
7639         make_epilogue_seq): New functions, factored out from...
7640         (thread_prologue_and_epilogue_insns): Here.
7642 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7644         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7645         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7646         of before.  Add a comment.
7648 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
7650         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7651         expression pointer, not pointer to the pointer.
7653 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7655         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7656         (avx2_pbroadcast<mode>): Add another alternative with v instead
7657         of x constraints in it, using <pbroadcast_evex_isa> isa.
7658         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7660         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7661         constraint x instead of v in second alternative, add avx512bw
7662         alternative.
7664         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7665         constraint x instead of v in second alternative, add avx512bw
7666         alternative.
7668         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7669         constraint x instead of v in second alternative, add avx512bw
7670         alternative.
7672         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7673         avx512bw alternative.
7675 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7677         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7678         array to 128 chars.
7679         (define_insn "*andnottf3"): Ditto.
7680         (define_insn "*<code><mode>3"/any_logic): Ditto.
7681         (define_insn "*<code>tf3"/any_logic): Ditto.
7682         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7683         operand to block AVX-512VL insn variant emit when it is not enabled.
7685 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7687         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7688         constraint fot SF mode.
7690 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
7691             Kirill Yukhin  <kirill.yukhin@intel.com>
7693         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7694         modifiers.
7695         (define_insn "rsqrt14<mode>"): Ditto.
7696         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7697         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7698         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7699         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7700         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7701         Ditto.
7702         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7703         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7704         * config/i386/i386.c (ix86_print_operand): Expand check for size
7705         override codes for Intel syntax.
7707 2016-05-18  Richard Biener  <rguenther@suse.de>
7709         PR tree-optimization/71168
7710         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7711         initialization earlier.
7713 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
7715         * config/aarch64/aarch64-simd.md
7716         (aarch64_reduc_plus_internal<mode>): Rename to...
7717         (reduc_plus_scal): ...This, and remove previous implementation.
7719 2016-05-18  Richard Biener  <rguenther@suse.de>
7721         * passes.def: Put late dse and cd_dce in canonical order.
7723 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
7725         * ipa-inline-transform.c (preserve_function_body_p): Look for
7726         first non-thunk clone.
7727         (save_function_body): Save into first non-thunk.
7728         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7729         up call stmt id.
7730         (lto_output_node): Inline thunks don't need body in every
7731         partition.
7732         * lto-streamer-in.c: Do not fixup thunk clones.
7733         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7734         thunks.
7735         * tree-inline.c (copy_bb): Be prepared for target node to be new after
7736         folding suceeds.
7738 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7740         PR middle-end/63586
7741         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7742         (reassociate_bb): Call transform_add_to_multiply.
7744 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7746         * config/aarch64/aarch64.c (all_extensions): Removed unused
7747         static variable.
7749 2016-05-17  Nathan Sidwell  <nathan@acm.org>
7751         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7752         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7754 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
7756         PR tree-optimization/54579
7757         PR middle-end/55299
7758         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7760 2016-05-17  Marek Polacek  <polacek@redhat.com>
7762         PR ipa/71146
7763         * tree-inline.c (expand_call_inline): Call
7764         maybe_remove_unused_call_args.
7766 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
7768         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7769         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7770         * doc/md.texi (fmin@var{m}3): Likewise.
7772 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7774         * match.pd (X & C): New transformation.
7776 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7778         * match.pd (~X & Y): New transformation.
7780 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7782         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7783         information for new SSA_NAME.
7784         (simplify_conversion_using_ranges): Get range through get_range_info
7785         instead of get_value_range.
7787 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7789         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7790         Remove inline assembly.
7791         (vmvn_s16): Likewise.
7792         (vmvn_s32): Likewise.
7793         (vmvn_u8): Likewise.
7794         (vmvn_u16): Likewise.
7795         (vmvn_u32): Likewise.
7796         (vmvnq_s8): Likewise.
7797         (vmvnq_s16): Likewise.
7798         (vmvnq_s32): Likewise.
7799         (vmvnq_u8): Likewise.
7800         (vmvnq_u16): Likewise.
7801         (vmvnq_u32): Likewise.
7802         (vmvn_p8): Likewise.
7803         (vmvnq_p16): Likewise.
7805 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7807         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7808         Use builtin.
7809         (vmul_n_s16): Likewise.
7810         (vmul_n_s32): Likewise.
7811         (vmul_n_u16): Likewise.
7812         (vmul_n_u32): Likewise.
7813         (vmulq_n_f32): Likewise.
7814         (vmulq_n_f64): Likewise.
7815         (vmulq_n_s16): Likewise.
7816         (vmulq_n_s32): Likewise.
7817         (vmulq_n_u16): Likewise.
7818         (vmulq_n_u32): Likewise.
7820 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7822         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7823         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
7825 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7827         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7828         to *aarch64_fma4_elt_from_dup<mode>.
7829         (*aarch64_fnma4_elt_to_128df): Rename to
7830         *aarch64_fnma4_elt_from_dup<mode>.
7831         * config/aarch64/arm_neon.h (vfma_n_f64): New.
7832         (vfms_n_f32): Likewise.
7833         (vfms_n_f64): Likewise.
7834         (vfmsq_n_f32): Likewise.
7835         (vfmsq_n_f64): Likewise.
7837 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
7839         * wide-int.h: Change fixed_wide_int_storage from class to struct.
7841 2016-05-17  Richard Biener  <rguenther@suse.de>
7843         PR tree-optimization/71132
7844         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7845         Only add control dependences for blocks in the loop.
7846         (build_rdg): Adjust.
7847         (generate_code_for_partition): Return whether loop should
7848         be destroyed and delay that.
7849         (distribute_loop): Likewise.
7850         (pass_loop_distribution::execute): Record loops to be destroyed
7851         and perform delayed destroying of loops.
7853 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7855         PR target/70809
7856         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7858 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7860         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7862 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
7864         PR target/71114
7865         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7866         insertion point for instructions generated by validize_mem.
7868 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7870         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7871         in brackets.
7873 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7875         * config/aarch64/aarch64.c
7876         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7877         rather than a macro.
7879 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7881         * doc/invoke.texi (AArch64 Options): Various updates.
7883 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7885         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7886         into instrumentation thunks.
7887         * cif-code.def (CIF_CHKP): New.
7889 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
7891         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7893 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7895         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7896         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7898 2016-05-16  Marek Polacek  <polacek@redhat.com>
7900         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7901         commentary.
7903 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7905         PR hsa/70857
7906         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7907         the outlined kernel function.
7909 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7911         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7912         (ISA_HAS_DLSA): Ditto.
7914 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7916         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7918 2016-05-16  Nathan Sidwell  <nathan@acm.org>
7920         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7921         (nvptx_name_replacement): Restore.  Add comment.
7922         (write_fn_proto, write_fn_proto_from_insn,
7923         nvptx_output_call_insn): Restore
7924         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7926 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7928         * config/aarch64/aarch64.md
7929         (add<mode>3_compareC_cconly_imm): Remove use of %w.
7930         (add<mode>3_compareC_imm): Likewise.
7931         (<optab>si3_uxtw): Split into register and immediate variants.
7932         (andsi3_compare0_uxtw): Likewise.
7933         (and<mode>3_compare0): Likewise.
7934         (and<mode>3nr_compare0): Likewise.
7935         (stack_protect_test_<mode>): Don't use %x for memory operands.
7937 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7939         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7941 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7943         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7944         Split integer shifts into shift_reg and bfm.
7945         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7946         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7947         (ror<mode>3_insn): Likewise.
7948         (<optab>si3_insn_uxtw): Likewise.
7949         (<optab><mode>3_insn): Change to rotate_imm.
7950         (extr<mode>5_insn_alt): Likewise.
7951         (extrsi5_insn_uxtw): Likewise.
7952         (extrsi5_insn_uxtw_alt): Likewise.
7954 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7956         * doc/tm.texi: Regenerate.
7957         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7958         (TARGET_INVALID_RETURN_TYPE): Remove.
7959         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7960         TARGET_INVALID_RETURN_TYPE.
7961         * target.def (invalid_parameter_type): Remove.
7962         (invalid_return_type): Remove.
7964 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7966         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7967         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7968         calls from thunk.
7969         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7970         gimple body.
7971         (preserve_function_body_p): No need to preserve function body
7972         * cif-codes.def (CIF_THUNK): Remove.
7973         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7975 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7977         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7979 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7981         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7982         for thunks.
7984 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7986         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7987         (inline_small_functions): Do not look for function symbol when
7988         resetting caches.
7990 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7992         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7993         of inline thunks
7995 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7996             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7997             Jiong Wang  <jiong.wang@arm.com>
7999         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
8000         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
8001         Define __ARM_FP16_ARGS when appropriate.
8002         * config/arm/arm.c (arm_invalid_parameter_type): Remove
8003         declaration.
8004         (arm_invalid_return_type): Likewise.
8005         (TARGET_INVALID_PARAMETER_TYPE): Remove.
8006         (TARGET_INVALID_RETURN_TYPE): Remove.
8007         (aapcs_vfp_sub_candidate): Allow HFmode.
8008         (aapcs_vfp_allocate): Add comment.  Support HFmode.
8009         (aapcs_vfp_allocate_return_reg): Likewise.
8010         (struct aapcs_cp_arg_layout): Slightly reword comments for
8011         is_return_candidate and allocate_return_reg.
8012         (output_mov_vfp): Update assert.
8013         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
8014         condition.
8015         (arm_invalid_parameter_type): Remove.
8016         (amr_invalid_return_type): Remove.
8017         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
8018         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
8019         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
8021 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
8023         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8024         * config/aarch64/arch64-protos.h
8025         (aarch64_legitimize_reload_address): Remove.
8026         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8027         Remove.
8029 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8031         * configure.ac: Add ACX_NONCANONICAL_HOST.
8032         * configure: Regenerate.
8033         * Makefile.in: Set host_noncanonical.
8035 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
8037         PR target/71097
8038         * config/i386/i386.md (*movtf_internal): Before register allocation,
8039         do not allow FP constants for CM_MEDIUM memory model, allow only
8040         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
8041         (*movxf_internal): Ditto.
8042         (*movdf_internal): Ditto.
8043         (*movsf_internal): Ditto.
8045 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
8047         PR rtl-optimization/67483
8048         * combine.c (make_compound_operation): Don't call extract_left_shift
8049         with negative shift amounts.
8051 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
8053         PR bootstrap/71071
8054         * fold-const.c (fold_checksum_tree): Allow modification
8055         of TYPE_ALIAS_SET during folding.
8057         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
8058         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
8059         (ix86_split_to_parts): Likewise.  Fix up formatting.
8061 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8063         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
8064         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
8065         printf format.
8067 2016-05-13  Nathan Sidwell  <nathan@acm.org>
8069         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
8070         (nvptx_name_replacement): Delete.
8071         (write_fn_proto, write_fn_proto_from_insn,
8072         nvptx_output_call_insn): Remove nvptx_name_replacement call.
8073         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
8074         * langhooks.c (add_builtin_funcction_common): Call
8075         targetm.mangle_decl_assembler_name.
8077         * config/nvptx/nvptx.c (write_fn_proto): Handle
8078         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
8080 2016-05-13  Martin Liska  <mliska@suse.cz>
8082         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
8083         and PRIu64 in printf format.
8085 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8087         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
8088         comment.
8090 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8092         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8093         Change --param max-completely-peeled-times to
8094         --param max-completely-peel-times in dump file printing.
8096 2016-05-13  Richard Biener  <rguenther@suse.de>
8098         PR tree-optimization/42587
8099         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
8100         (find_bswap_or_nop_1): Likewise.
8101         (bswap_replace): Likewise.
8103 2016-05-13  Martin Liska  <mliska@suse.cz>
8105         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
8106         Initialize a variable with default value.
8108 2016-05-13  Martin Liska  <mliska@suse.cz>
8110         * doc/invoke.texi: Enhance explanation of error recovery
8111         of sanitizers.
8113 2016-05-13  Martin Liska  <mliska@suse.cz>
8115         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
8116         (struct cost_pair): Change inv_expr_id (int) to inv_expr
8117         (iv_inv_expr_ent *).
8118         (struct iv_inv_expr_ent): Comment struct fields.
8119         (sort_iv_inv_expr_ent): New function.
8120         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
8121         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
8122         a hash_map between iv_inv_expr_ent and number of usages.
8123         (niter_for_exit): Fix coding style.
8124         (tree_ssa_iv_optimize_init): Use renamed variable.
8125         (determine_base_object): Fix coding style.
8126         (alloc_iv): Likewise.
8127         (find_interesting_uses_outside): Likewise.
8128         (add_candidate_1): Likewise.
8129         (add_standard_iv_candidates): Likewise.
8130         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
8131         (prepare_decl_rtl): Fix coding style.
8132         (get_address_cost): Likewise.
8133         (get_shiftadd_cost): Likewise.
8134         (force_expr_to_var_cost): Likewise.
8135         (compare_aff_trees): Likewise.
8136         (get_expr_id): Restructure the function.
8137         (get_loop_invariant_expr_id): Renamed to
8138         get_loop_invariant_expr.
8139         (get_computation_cost_at): Replace usage of inv_expr_id with
8140         inv_expr.
8141         (get_computation_cost): Likewise.
8142         (determine_group_iv_cost_generic): Likewise.
8143         (determine_group_iv_cost_address): Likewise.
8144         (iv_period): Fix coding style.
8145         (iv_elimination_compare_lt): Likewise.
8146         (may_eliminate_iv): Likewise.
8147         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
8148         inv_expr.
8149         (determine_group_iv_costs): Dump invariant expressions.
8150         (iv_ca_recount_cost): Use the newly added hash_map.
8151         (iv_ca_set_remove_invariants): Fix coding style.
8152         (iv_ca_set_add_invariants): Fix coding style.
8153         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
8154         invariants.
8155         (iv_ca_set_cp): Likewise.
8156         (iv_ca_new): Initialize the newly added hash_map and remove
8157         initialization of fields.
8158         (iv_ca_free): Delete the hash_map.
8159         (iv_ca_dump): Dump invariant expressions.
8160         (iv_ca_extend): Fix coding style.
8161         (try_add_cand_for): Likewise.
8162         (create_new_ivs): Dump information about # of avg iterations and
8163         # of used invariant expressions.
8164         (rewrite_use_compare): Fix coding style.
8165         (free_loop_data): Set default value for max_inv_expr_id.
8167 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8169         * cse.c (rest_of_handle_cse): Use cleanup_cfg
8170         returned value cse_cfg_altered computation.
8171         (rest_of_handle_cse2): Likewise.
8172         (rest_of_handle_cse_after_global_opts): Likewise.
8174 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8176         PR target/53440
8177         * config/arm/arm.c (arm32_output_mi_thunk): New.
8178         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
8179         to split Thumb1 vs TARGET_32BIT functionality.
8180         (arm_thumb1_mi_thunk): New.
8182 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8184         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
8185         to true.
8187 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8189         PR target/71080
8190         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
8192 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8194         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
8195         (expand_builtin_trap): Emit a regular call.
8196         (set_builtin_user_assembler_name): Remove obsolete cases.
8197         * dse.c (scan_insn): Adjust.
8198         * except.c: Include calls.h.
8199         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
8200         emit a regular call to setjmp.
8201         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
8202         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
8203         (emit_block_move_via_libcall): Delete.
8204         (block_move_fn): Delete.
8205         (init_block_move_fn): Likewise.
8206         (emit_block_move_libcall_fn): Likewise.
8207         (emit_block_op_via_libcall): New function.
8208         (set_storage_via_libcall): Tidy up and use memset builtin.
8209         (block_clear_fn): Delete.
8210         (init_block_clear_fn): Likewise.
8211         (clear_storage_libcall_fn): Likewise.
8212         (expand_assignment): Call emit_block_move_via_libcall.
8213         Do not include gt-expr.h.
8214         * expr.h (emit_block_op_via_libcall): Declare.
8215         (emit_block_copy_via_libcall): New inline function.
8216         (emit_block_move_via_libcall): Likewise.
8217         (emit_block_comp_via_libcall): Likewise.
8218         (block_clear_fn): Delete.
8219         (init_block_move_fn): Likewise.
8220         (init_block_clear_fn): Likewise.
8221         (emit_block_move_via_libcall): Likewise.
8222         (set_storage_via_libcall): Add default parameter value.
8223         * libfuncs.h (enum libfunc_index): Remove obsolete values.
8224         (abort_libfunc): Delete.
8225         (memcpy_libfunc): Likewise.
8226         (memmove_libfunc): Likewise.
8227         (memcmp_libfunc): Likewise.
8228         (memset_libfunc): Likewise.
8229         (setbits_libfunc): Likewise.
8230         (setjmp_libfunc): Likewise.
8231         (longjmp_libfunc): Likewise.
8232         (profile_function_entry_libfunc): Likewise.
8233         (profile_function_exit_libfunc): Likewise.
8234         (gcov_flush_libfunc): Likewise.
8235         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
8236         and DECL_VISIBILITY on the declaration.
8237         (init_optabs): Do not initialize obsolete libfuncs.
8238         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
8239         * tree-core.h (ECF_RET1): Define.
8240         (ECF_TM_PURE): Adjust.
8241         (ECF_TM_BUILTIN): Likewise.
8242         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
8243         (build_common_builtin_nodes): Initialize abort builtin.
8244         Add ECF_RET1 on memcpy, memmove and memset builtins.
8245         Pass final flags for alloca and alloca_with_align builtins.
8246         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
8247         obsolete builtins.
8248         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
8249         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
8250         set_storage_via_libcall and call emit_block_copy_via_libcall.
8252 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
8254         * config/i386/i386.md (*call_got_x32): Change operand 0 to
8255         DImode before it is passed to ix86_output_call_operand.
8256         (*call_value_got_x32): Ditto for operand 1.
8258 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
8260         PR rtl-optimization/70904
8261         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
8262         reload for wide mode.
8264 2016-05-12  Marek Polacek  <polacek@redhat.com>
8266         PR c/70756
8267         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
8268         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
8269         * langhooks.h (incomplete_type_error): Likewise.
8270         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
8271         parameter, pass it down to incomplete_type_error.
8272         * tree.h (size_in_bytes): New inline overload.
8273         (size_in_bytes_loc): Renamed from size_in_bytes.
8275 2016-05-12  Richard Biener  <rguenther@suse.de>
8277         PR tree-optimization/71059
8278         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
8279         nary before looking up or entering the expression into the VN
8280         hashes.
8281         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
8282         Make sure to re-use NARYs without result as inserted by
8283         phi-translation.
8285 2016-05-12  Richard Biener  <rguenther@suse.de>
8287         PR tree-optimization/71062
8288         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
8289         field.
8290         * tree-ssa-structalias.c (set_uids_in_ptset): Set
8291         vars_contains_restrict if the var is a restrict tag.
8292         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
8293         do not disambiguate pointers against it.
8294         (dump_points_to_solution): Re-structure and adjust for new
8295         vars_contains_restrict flag.
8296         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8298 2016-05-12  Martin Liska  <mliska@suse.cz>
8300         * doc/invoke.texi: Explain connection between
8301         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
8303 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
8305         PR tree-optimization/71006
8306         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8307         consider COND_EXPR as a mask producer.
8309 2016-05-12  Marek Polacek  <polacek@redhat.com>
8311         PR driver/71063
8312         * opts.c (common_handle_option): Detect missing argument for --help^.
8314 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8316         PR target/70830
8317         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
8318         when popping the PC and within an interrupt handler routine.
8319         Add missing tab to output of "ldmfd".
8320         (output_return_instruction): Output LDMFD with SP update rather
8321         than POP when returning from interrupt handler.
8323 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
8325         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
8326         TARGET_64BIT && TARGET_AVX512DQ.
8327         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
8328         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
8329         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
8330         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
8331         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
8332         (*vec_extractv4si_zext): Add avx512dq alternative.
8333         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
8334         use v instead of x constraint in other alternatives where possible.
8336         * config/i386/sse.md (sse2_loadld): Use v instead of x
8337         constraint in alternatives 0,1,4.
8339         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
8340         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
8341         v constraints instead of x and <pinsr_evex_isa> isa attribute.
8343         PR target/71019
8344         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
8345         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
8346         is not emitted unless TARGET_AVX512BW.
8347         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
8348         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
8349         for the result operand.
8351         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
8352         constraint instead of x in avx alternatives.  Use maybe_evex instead
8353         of vex prefix.
8355         * config/i386/constraints.md (Yv): New constraint.
8356         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
8357         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
8358         * config/i386/i386.md (avx512fvecmode): New mode attr.
8359         (*pushtf): Use v constraint instead of x.
8360         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
8361         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
8362         (*absneg<mode>2): Use Yv constraint instead of x constraint.
8363         (*absnegtf2_sse): Likewise.
8364         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
8365         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
8366         avx512f alternatives.
8367         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
8369 2016-05-12  Richard Biener  <rguenther@suse.de>
8371         PR tree-optimization/71060
8372         * tree-data-ref.c (initialize_data_dependence_relation): Do not
8373         require exact match of DR_BASE_OBJECT but only matching address and
8374         type.
8376 2016-05-12  Richard Biener  <rguenther@suse.de>
8378         PR tree-optimization/70986
8379         * cfganal.c: Include cfgloop.h.
8380         (dfs_find_deadend): Prefer to take edges exiting loops.
8382 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8384         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
8385         compile and run time.
8387 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
8389         PR c/43651
8390         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
8392 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
8394         * config/i386/i386.c (legitimize_pic_address): Use
8395         copy_to_suggested_reg instead of gen_movsi.
8397 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8399         * config/rs6000/predicates.md (quad_memory_operand): Move most of
8400         the code into quad_address_p and call it to share code with
8401         vsx_quad_dform_memory_operand.
8402         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
8403         d-form support.
8404         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
8405         bit instead of being a separate word.  Split -mpower9-dform into
8406         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8407         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
8408         for the register class supporting 128-bit quad word memory offsets.
8409         (mode_supports_vsx_dform_quad): Helper function to return if the
8410         register class uses quad word memory offsets.
8411         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
8412         (rs6000_debug_reg_global): Always print if we are using LRA or not.
8413         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
8414         instructions are enabled, set up the appropriate addr_masks for
8415         128-bit types.
8416         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
8417         -mpower9-dform-scalar, instead of -mpower9-dform.
8418         (rs6000_option_override_internal): Split -mpower9-dform into two
8419         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
8420         -mpower9-dform switch sets or clears both.  If we are not using
8421         the LRA register allocator, do not enable -mpower9-dform-vector by
8422         default.  If we are using LRA, enable -mpower9-dform-vector and
8423         -mvsx-timode if it is appropriate.  Issue a warning if either
8424         -mpower9-dform-vector or -mvsx-timode are explicitly used without
8425         enabling LRA.
8426         (quad_address_offset_p): New helper function to return if the
8427         offset is legal for quad word memory instructions.
8428         (quad_address_p): New function to determin if GPR or vector
8429         register quad word memory addresses are legal.
8430         (mem_operand_gpr): Validate quad word address offsets.
8431         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
8432         d-form (register + offset) instructions.
8433         (offsettable_ok_by_alignment): Likewise.
8434         (rs6000_legitimate_offset_address_p): Likewise.
8435         (legitimate_lo_sum_address_p): Likewise.
8436         (rs6000_legitimize_address): Likewise.
8437         (rs6000_legitimize_reload_address): Add more debug statements for
8438         -mdebug=addr.
8439         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
8440         d-form instructions.
8441         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
8442         d-form instructions.  Distinguish different cases in debug
8443         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
8444         d-form instructions.
8445         (rs6000_preferred_reload_class): Likewise.
8446         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
8447         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
8448         of the ISA 2.06 indexed memory instructions.
8449         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
8450         use them to save/restore the saved vector registers instead of
8451         using Altivec instructions.
8452         (rs6000_emit_epilogue): Likewise.
8453         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
8454         (rs6000_opt_masks): Split -mpower9-dform into
8455         -mpower9-dform-scalar and -mpower9-dform-vector.
8456         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
8457         was not selected.
8458         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
8459         ISA 3.0 vector indexed memory instructions, and fold the code into
8460         the normal mov<mode> patterns.
8461         (p9_vecstore_<mode>): Likewise.
8462         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
8463         instructions.
8464         (vsx_movti_64bit): Likewise.
8465         (vsx_movti_32bit): Likewise.
8466         * config/rs6000/constraints.md (wO constraint): New constraint for
8467         ISA 3.0 vector d-form support.
8468         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
8469         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
8470         include -mpower9-dform-vector until we switch over to LRA.
8471         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
8472         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8473         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
8474         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8475         for -mpower9-dform and -mlra.
8476         * doc/md.texi (wO constraint): Document wO constraint.
8478 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
8480         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
8481         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
8482         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
8483         Move handling of non-insn arguments inline into the sole user:
8484         (output_trans_func): ...here.
8485         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
8486         in emitted function prototype.
8487         (output_internal_insn_latency_func): Ditto.  Simplify.
8488         (output_internal_maximal_insn_latency_func): Ditto.  Delete
8489         always-unused argument.
8490         (output_insn_latency_func): Ditto.
8491         (output_maximal_insn_latency_func): Ditto.
8493 2016-05-11  Richard Biener  <rguenther@suse.de>
8495         PR tree-optimization/71055
8496         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
8497         sth with precision not equal to access size verify we don't chop
8498         off bits.
8500 2016-05-11  Richard Biener  <rguenther@suse.de>
8502         PR debug/71057
8503         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
8504         (dwarf2out_finish): Move retry_incomplete_types call ...
8505         (dwarf2out_early_finish): ... here.
8507 2016-05-11  Richard Biener  <rguenther@suse.de>
8509         PR middle-end/71002
8510         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
8511         if the langhook insists on it.
8512         * fold-const.c (make_bit_field_ref): Add arg for the original
8513         reference and preserve its alias-set.
8514         (decode_field_reference): Take exp by reference and adjust it
8515         to the original memory reference.
8516         (optimize_bit_field_compare): Adjust callers.
8517         (fold_truth_andor_1): Likewise.
8518         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
8520 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
8522         PR middle-end/70807
8523         * cfgrtl.h (delete_insn_and_edges): Now return bool.
8524         * cfgrtl.c (delete_insn_and_edges): Likewise.
8525         * config/i386/i386.c (convert_scalars_to_vector): Remove
8526         redundant code.
8527         * cse.c (cse_insn): Compute cse_cfg_altered.
8528         (delete_trivially_dead_insns): Likewise.
8529         (cse_cc_succs): Likewise.
8530         (rest_of_handle_cse): Free dominance info if required.
8531         (rest_of_handle_cse2): Likewise.
8532         (rest_of_handle_cse_after_global_opts): Likewise.
8534 2016-05-11  Alan Modra  <amodra@gmail.com>
8536         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
8537         abi_v4_pass_in_fpr): New functions.
8538         (rs6000_function_arg_boundary): Exclude complex IBM long double
8539         from 64-bit alignment when ABI_V4.
8540         (rs6000_function_arg, rs6000_function_arg_advance_1,
8541         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
8543 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
8545         PR rtl-optimization/71028
8546         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
8547         jump with just a return in the fallthrough block if the branch
8548         block contains just a return as well.
8550 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
8552         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
8553         * match.pd ((X & Y) ^ Y): ... this.
8554         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
8555         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
8557 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8559         * read-md.c (require_char_ws): New function.
8560         (read_string): Simplify using require_char_ws.
8561         (handle_constants): Likewise.
8562         (handle_enum): Likewise.
8563         (handle_file): Likewise.
8564         * read-md.h (require_char_ws): New declaration.
8565         * read-rtl.c (read_conditions): Simplify using require_char_ws.
8566         (read_mapping): Likewise.
8567         (read_rtx_code): Likewise.
8568         (read_nested_rtx): Likewise.
8570 2016-05-10  James Norris  <jnorris@codesourcery.com>
8572         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8573         if offloading is enabled and -fopenacc or -fopenmp is specified.
8574         (CRTOFFLOADEND): Likewise.
8575         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8576         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8578 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
8580         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8581         gotoff_operand code paths.  Use copy_to_suggested_regs and
8582         expand_simple_binop where appropriate.  Cleanup.
8584 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8586         PR target/70799
8587         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8588         integer constants.
8589         (dimode_scalar_chain::vector_const_cost): New.
8590         (dimode_scalar_chain::compute_convert_gain): Handle constants.
8591         (dimode_scalar_chain::convert_op): Likewise.
8592         (dimode_scalar_chain::convert_insn): Likewise.
8594 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8596         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8597         unary operation, not a binary one.
8599 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8601         PR middle-end/70877
8602         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8603         calls with type casted fndecl.
8605 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8607         PR tree-optimization/70786
8608         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8609         * calls.c (initialize_argument_information): Bind bounds
8610         with corresponding args passed by reference.
8612 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
8614         PR target/70927
8615         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8616         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8617         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8618         accordingly.
8620 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8622         PR target/70963
8623         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8624         code for a zero scale factor.
8625         (vsx_xvcvdpuxds_scale): Likewise.
8627 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8629         * diagnostic-show-locus.c (layout::layout): Call show_ruler
8630         if show_ruler_p was set on the context.
8631         (layout::show_ruler): New method.
8632         * diagnostic.h (struct diagnostic_context): Add field
8633         "show_ruler_p".
8635 2016-05-10  Richard Biener  <rguenther@suse.de>
8637         PR tree-optimization/71039
8638         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8639         (chk_uses): New function.
8640         (propagate_with_phi): Verify we can safely replicate the lhs of an
8641         aggregate assignment on all incoming edges.
8643 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
8645         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8646         Forward declare.
8647         (rx_atomic_sequence): New class.
8648         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8649         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8650         non-inline.
8651         (rx_atomic_sequence::rx_atomic_sequence,
8652         rx_atomic_sequence::~rx_atomic_sequence): New functions.
8653         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8654         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8655         CTRLREG_INTB): New constants.
8656         (FETCHOP): New code iterator.
8657         (fethcop_name, fetchop_name2): New iterator code attributes.
8658         (QIHI): New mode iterator.
8659         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8660         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8661         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8663 2016-05-10  Martin Liska  <mliska@suse.cz>
8665         * tree-inline.c (remap_dependence_clique): Do not remap
8666         debugging statements.
8668 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8670         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8671         ("*fixuns_truncdfdi2_z13")
8672         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8673         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8674         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8676 2016-05-10  Richard Biener  <rguenther@suse.de>
8678         PR tree-optimization/70497
8679         PR tree-optimization/28367
8680         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8681         split out from ...
8682         (visit_reference_op_load): ... here.
8683         (vn_reference_lookup_3): Use it to handle subreg-like accesses
8684         with simplified BIT_FIELD_REFs.
8685         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8686         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8687         correctly.
8689 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8691         * dwarf2out.c (add_abstract_origin_attribute): Adjust
8692         documentation comment.  For BLOCK nodes, add a
8693         DW_AT_abstract_origin attribute that points to the DIE generated
8694         for the origin BLOCK.
8695         (gen_lexical_block_die): Call add_abstract_origin_attribute for
8696         blocks from inlined functions.
8698 2016-05-10  Alan Modra  <amodra@gmail.com>
8700         PR target/70947
8701         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8702         regrename modifying insns saving lr before __morestack call.
8703         * config/rs6000/rs6000.md (split_stack_return): Similarly for
8704         insns restoring lr after __morestack call.
8706 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
8708         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8709         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8710         expanders.
8711         * config/i386/sse.md (vec_interleave_high<mode>,
8712         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8713         <avx512>_vpermt2var<mode>3_maskz): Likewise.
8715 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8717         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8718         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8719         parallel reassociation for power8 and forward.
8721 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
8723         * config/i386/i386.md (absneg splitters with general regs): Use
8724         general_reg_operand predicate.
8725         (btsq peephole2): Use x86_64_immediate_operand to check if new
8726         value is suitable for immediate operand.  Generate emitted insn
8727         using RTL expressions.
8728         (btcq peephole2): Ditto.
8729         (btrq peephole2): Ditto.  Generate correct immediate operand
8730         for AND masking.
8732 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8734         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8735         bitpos.
8737 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8739         * tree-affine.c (wide_int_constant_multiple_p): Add missing
8740         pointer dereference.
8742 2016-05-09  Richard Biener  <rguenther@suse.de>
8744         PR tree-optimization/70985
8745         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8746         op0 isn't a gimple register.
8748 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
8750         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8751         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8752         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8753         (i6400_fpu_mult): New cpu units.
8754         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8755         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8756         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8757         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8758         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8759         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8760         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8761         (i6400_msa_long_float4, i6400_msa_long_float5)
8762         (i6400_msa_long_float8, i6400_msa_fdiv_df)
8763         (i6400_msa_fdiv_sf): New reservations.
8764         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8765         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8766         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8767         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8768         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8769         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8770         (msa_short_cmp, msa_short_float2, msa_short_logic3)
8771         (msa_short_store4, msa_long_load, msa_short_store)
8772         (msa_long_logic, msa_long_float2, msa_long_float4)
8773         (msa_long_float5, msa_long_float8, msa_long_mult)
8774         (msa_long_fdiv, msa_long_div): New reservations.
8776 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
8777             Sameera Deshpande  <sameera.deshpande@imgtec.com>
8778             Matthew Fortune  <matthew.fortune@imgtec.com>
8779             Graham Stott  <graham.stott@imgtec.com>
8780             Chao-ying Fu  <chao-ying.fu@imgtec.com>
8782         * config.gcc: Add MSA header file for mips*-*-* target.
8783         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8784         (Ubv8i, Urv8):  New constraints.
8785         * config/mips/mips-ftypes.def: Add function types for MSA
8786         builtins.
8787         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8788         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8789         * config/mips/mips-msa.md: New file.
8790         * config/mips/mips-protos.h
8791         (mips_split_128bit_const_insns): New prototype.
8792         (mips_msa_idiv_insns): Likewise.
8793         (mips_split_128bit_move): Likewise.
8794         (mips_split_128bit_move_p): Likewise.
8795         (mips_split_msa_copy_d): Likewise.
8796         (mips_split_msa_insert_d): Likewise.
8797         (mips_split_msa_fill_d): Likewise.
8798         (mips_expand_msa_branch): Likewise.
8799         (mips_const_vector_same_val_p): Likewise.
8800         (mips_const_vector_same_bytes_p): Likewise.
8801         (mips_const_vector_same_int_p): Likewise.
8802         (mips_const_vector_shuffle_set_p): Likewise.
8803         (mips_const_vector_bitimm_set_p): Likewise.
8804         (mips_const_vector_bitimm_clr_p): Likewise.
8805         (mips_msa_vec_parallel_const_half): Likewise.
8806         (mips_msa_output_division): Likewise.
8807         (mips_ldst_scaled_shift): Likewise.
8808         (mips_expand_vec_cond_expr): Likewise.
8809         * config/mips/mips.c (enum mips_builtin_type): Add
8810         MIPS_BUILTIN_MSA_TEST_BRANCH.
8811         (mips_gen_const_int_vector_shuffle): New prototype.
8812         (mips_const_vector_bitimm_set_p): New function.
8813         (mips_const_vector_bitimm_clr_p): Likewise.
8814         (mips_const_vector_same_val_p): Likewise.
8815         (mips_const_vector_same_bytes_p): Likewise.
8816         (mips_const_vector_same_int_p): Likewise.
8817         (mips_const_vector_shuffle_set_p): Likewise.
8818         (mips_symbol_insns): Forbid loading symbols via immediate for
8819         MSA.
8820         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8821         stores.
8822         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8823         MSA.
8824         (mips_lx_address_p): Add support load indexed address for MSA.
8825         (mips_address_insns): Add calculation of instructions needed for
8826         stores and loads for MSA.
8827         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
8828         CONST_VECTOR for MSA and let it fall through.
8829         (mips_ldst_scaled_shift): New function.
8830         (mips_subword_at_byte): Likewise.
8831         (mips_msa_idiv_insns): Likewise.
8832         (mips_legitimize_move): Validate MSA moves.
8833         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
8834         calculation of costs for MSA division.
8835         (mips_split_move_p): Check if MSA moves need splitting.
8836         (mips_split_move): Split MSA moves if necessary.
8837         (mips_split_128bit_move_p): New function.
8838         (mips_split_128bit_move): Likewise.
8839         (mips_split_msa_copy_d): Likewise.
8840         (mips_split_msa_insert_d): Likewise.
8841         (mips_split_msa_fill_d): Likewise.
8842         (mips_output_move): Handle MSA moves.
8843         (mips_expand_msa_branch): New function.
8844         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8845         Reinstate 'y' modifier.
8846         (mips_file_start): Add MSA .gnu_attribute.
8847         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8848         FPRs.
8849         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8850         (mips_class_max_nregs): Add register size for MSA supported mode.
8851         (mips_cannot_change_mode_class): Allow conversion between MSA
8852         vector modes and TImode.
8853         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8854         instruction.
8855         (mips_secondary_reload_class): Force MSA loads/stores via memory.
8856         (mips_preferred_simd_mode): Add preffered modes for MSA.
8857         (mips_vector_mode_supported_p): Add MSA supported modes.
8858         (mips_autovectorize_vector_sizes): New function.
8859         (mips_msa_output_division): Likewise.
8860         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8861         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8862         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8863         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8864         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8865         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8866         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8867         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8868         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8869         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8870         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8871         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8872         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8873         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8874         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8875         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8876         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8877         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8878         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8879         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8880         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8881         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8882         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8883         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8884         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8885         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8886         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8887         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8888         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8889         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8890         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8891         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8892         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8893         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8894         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8895         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8896         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8897         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8898         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8899         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8900         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8901         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8902         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8903         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8904         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8905         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8906         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8907         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8908         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8909         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8910         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8911         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8912         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8913         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8914         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8915         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8916         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8917         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8918         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8919         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8920         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8921         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8922         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8923         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8924         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8925         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8926         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8927         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8928         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8929         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8930         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8931         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8932         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8933         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8934         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8935         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8936         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8937         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8938         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8939         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8940         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8941         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8942         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8943         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8944         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8945         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8946         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8947         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8948         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8949         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8950         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8951         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8952         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8953         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8954         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8955         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8956         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8957         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8958         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8959         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8960         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8961         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8962         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8963         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8964         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8965         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8966         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8967         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8968         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8969         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8970         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8971         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8972         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8973         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8974         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8975         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8976         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8977         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8978         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8979         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8980         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8981         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8982         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8983         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8984         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8985         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8986         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8987         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8988         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8989         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8990         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8991         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8992         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8993         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8994         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8995         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8996         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8997         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8998         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8999         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
9000         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
9001         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
9002         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
9003         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
9004         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
9005         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
9006         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
9007         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
9008         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
9009         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
9010         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
9011         move_v builtins.
9012         (mips_get_builtin_decl_index): New array.
9013         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
9014         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
9015         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
9016         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
9017         (mips_init_builtins): Initialize mips_get_builtin_decl_index
9018         array.
9019         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9020         hook.
9021         (mips_expand_builtin_insn): Prepare operands for
9022         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
9023         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
9024         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
9025         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
9026         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
9027         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
9028         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
9029         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
9030         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
9031         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
9032         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
9033         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
9034         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
9035         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
9036         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
9037         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
9038         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
9039         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
9040         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
9041         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
9042         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
9043         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
9044         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
9045         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
9046         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
9047         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
9048         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
9049         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
9050         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
9051         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
9052         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
9053         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
9054         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
9055         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
9056         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
9057         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
9058         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
9059         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
9060         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
9061         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
9062         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
9063         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
9064         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
9065         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
9066         These are set implicitly and an error is reported if overridden.
9067         (mips_expand_builtin_msa_test_branch): New function.
9068         (mips_expand_msa_shuffle): Likewise.
9069         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
9070         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
9071         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
9072         (mips_expand_vec_unpack): Add support for MSA.
9073         (mips_expand_vector_init): Likewise.
9074         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
9075         instead of const0_rtx.
9076         (mips_msa_vec_parallel_const_half): New function.
9077         (mips_gen_const_int_vector): Likewise.
9078         (mips_gen_const_int_vector_shuffle): Likewise.
9079         (mips_expand_msa_cmp): Likewise.
9080         (mips_expand_vec_cond_expr): Likewise.
9081         * config/mips/mips.h
9082         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
9083         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
9084         specified.
9085         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
9086         (ISA_HAS_MSA): New macro.
9087         (UNITS_PER_MSA_REG): Likewise.
9088         (BITS_PER_MSA_REG): Likewise.
9089         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
9090         (MSA_REG_FIRST): New macro.
9091         (MSA_REG_LAST): Likewise.
9092         (MSA_REG_NUM): Likewise.
9093         (MSA_REG_P): Likewise.
9094         (MSA_REG_RTX_P): Likewise.
9095         (MSA_SUPPORTED_MODE_P): Likewise.
9096         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
9097         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
9098         * config/mips/mips.md: Include mips-msa.md.
9099         (alu_type): Add simd_add.
9100         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
9101         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
9102         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
9103         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
9104         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
9105         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
9106         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
9107         simd_move, simd_load, simd_store.  Choose "multi" for moves
9108         for "qword_mode".
9109         (qword_mode): New attribute.
9110         (insn_count): Add instruction count for quad moves.
9111         Increase the count for MIPS SIMD division.
9112         (UNITMODE): Add UNITMODEs for vector types.
9113         (addsub): New code iterator.
9114         * config/mips/mips.opt (mmsa): New option.
9115         * config/mips/msa.h: New file.
9116         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
9117         specified.
9118         * config/mips/mti-linux.h: Likewise.
9119         * config/mips/predicates.md
9120         (const_msa_branch_operand): New constraint.
9121         (const_uimm3_operand): Likewise.
9122         (const_uimm4_operand): Likewise.
9123         (const_uimm5_operand): Likewise.
9124         (const_uimm8_operand): Likewise.
9125         (const_imm5_operand): Likewise.
9126         (aq10b_operand): Likewise.
9127         (aq10h_operand): Likewise.
9128         (aq10w_operand): Likewise.
9129         (aq10d_operand): Likewise.
9130         (const_m1_operand): Likewise.
9131         (reg_or_m1_operand): Likewise.
9132         (const_exp_2_operand): Likewise.
9133         (const_exp_4_operand): Likewise.
9134         (const_exp_8_operand): Likewise.
9135         (const_exp_16_operand): Likewise.
9136         (const_vector_same_val_operand): Likewise.
9137         (const_vector_same_simm5_operand): Likewise.
9138         (const_vector_same_uimm5_operand): Likewise.
9139         (const_vector_same_uimm6_operand): Likewise.
9140         (const_vector_same_uimm8_operand): Likewise.
9141         (par_const_vector_shf_set_operand): Likewise.
9142         (reg_or_vector_same_val_operand): Likewise.
9143         (reg_or_vector_same_simm5_operand): Likewise.
9144         (reg_or_vector_same_uimm6_operand): Likewise.
9145         * doc/extend.texi (MIPS SIMD Architecture Functions): New
9146         section.
9147         * doc/invoke.texi (-mmsa): Document new option.
9149 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9151         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
9152         * configure: Regenerate.
9153         * config.in: Regenerate.
9154         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
9155         on -fvtable-verify.
9156         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
9157         (ENDFILE_VTV_SPEC): Define.
9159 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
9161         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
9162         registers in all interrupt handlers if necessary.
9163         (rl78_option_override): Add warning.
9164         (MUST_SAVE_MDUC_REGISTERS): New macro.
9165         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
9166         * config/rl78/rl78.c (check_mduc_usage): New function.
9167         (mduc_regs): New structure to hold MDUC register data.
9168         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
9169         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
9170         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
9171         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
9172         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
9173         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
9175 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
9177         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
9178         (tree-ssa-loop-niter.h): Ditto.
9179         (idx_within_array_bound, ref_within_array_bound): New functions.
9180         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
9181         Factor out check on writable base object to ...
9182         (base_object_writable): ... here.
9184 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9186         * config/arm/arm.md (probe_stack): Add modes to set source
9187         and destination.
9189 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
9191         * regrename.c (base_reg_class_for_rename): New static function.
9192         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
9194 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
9196         * cgraph.c (thunk_adjust): Export.
9197         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
9198         * cgraphunit.c (thunk_adjust): Export.
9199         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
9200         thunks.
9201         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
9202         inlinable.
9203         * tree-inline.c (expand_call_inline): Expand thunks inline.
9205 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
9207         PR target/70998
9208         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
9209         (*sse2_vd_cvtss2sd): Ditto.
9210         * config/i386/i386.md
9211         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
9212         Generate *sse2_vd_cvtsd2ss pattern.
9213         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
9214         Generate *sse2_vd_cvtss2sd pattern.
9216 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
9218         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
9219         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
9220         users.
9222 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
9224         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
9225         * config/sh/sh.c: Define and declare variables on first use throughout
9226         the file.
9227         (current_function_interrupt): Change to bool type.
9228         (frame_insn): Rename to emit_frame_insn and update users.
9229         (push_regs): Use bool for 'interrupt_handler' argument.
9230         (save_schedule_s): Remove.
9231         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
9232         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
9233         targetm.asm_out.unaligned_op.di.
9234         (gen_far_branch): Remove redundant forward declaration.
9235         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
9236         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
9237         (sh_set_return_address, sh_function_ok_for_sibcall,
9238         scavenge_reg): Update comments.
9239         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
9240         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
9241         (sh_attr_renesas_p): Remove unnecessary parentheses.
9242         (branch_dest): Simplify.
9243         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
9244         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
9245         (CUMULATIVE_ARGS): Change macro to typedef.
9246         (current_function_interrupt): Change to bool type.
9247         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
9248         Surround with __cplusplus ifdef.
9249         (sh_compare_op0, sh_compare_op1): Remove.
9250         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
9252 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
9254         * config/arm/arm.md: (arch): Add neon.
9255         (arch_enabled): Return yes for arch neon when TARGET_NEON.
9256         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
9257         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
9258         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
9259         attributes for alt renumbering.  Mark alt 3 as non-predicable.
9260         (thumb2_movdf_vfp): Likewise.
9262 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
9264         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
9265         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
9266         (*andqi_1): Add preferred_for_speed attribute to disparage
9267         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
9268         (*<code>qi_1): Ditto.
9269         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
9270         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
9271         (*ashlqi3_1): Ditto.
9272         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
9273         Add preferred_for_size attribute to disparage alternative 0 and
9274         preferred_for_speed attribute to disparage alternative 1 for
9275         TARGET_PARTIAL_REG_STALL targets.
9277 2016-05-07  Tom de Vries  <tom@codesourcery.com>
9279         PR tree-optimization/70956
9280         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
9281         def.
9283 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
9285         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
9286         * config/sh/sh.c (sh_cbranch_distance): Implement it.
9287         * config/sh/sh.md (branch_zero): Remove define_attr.
9288         (define_delay): Disable delay slot if branch distance is one insn.
9290 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9292         * config/i386/i386.md (LEAMODE): New mode attribute.
9293         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
9294         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
9295         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
9296         operand 2 predicate.
9297         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
9298         (*lea<mode>_general_3): Ditto.
9299         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
9301 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
9303         * genmddump.c (main): Convert argv from char ** to const char **.
9305 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9307         * coretypes.h (OVERRIDE): New macro.
9308         (FINAL): New macro.
9310 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
9312         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
9313         allow coalescing if the types are compatible.
9315 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9317         * pass_manager.h (pass_manager::register_pass_name): New method.
9318         (pass_manager::get_pass_by_name): New method.
9319         (pass_manager::create_pass_tab): New method.
9320         (pass_manager::m_name_to_pass_map): New field.
9321         * passes.c (name_to_pass_map): Delete global in favor of field
9322         "m_name_to_pass_map" of pass_manager.
9323         (register_pass_name): Rename from a function to...
9324         (pass_manager::register_pass_name): ...this method, updating
9325         for renaming of global "name_to_pass_map" to field
9326         "m_name_to_pass_map".
9327         (create_pass_tab): Rename from a function to...
9328         (pass_manager::create_pass_tab): ...this method, updating
9329         for renaming of global "name_to_pass_map" to field.
9330         (get_pass_by_name): Rename from a function to...
9331         (pass_manager::get_pass_by_name): ...this method.
9332         (enable_disable_pass): Convert use of get_pass_by_name to
9333         a method call, locating the pass_manager singleton.
9335 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9337         * genattr-common.c (main): Convert argv from char ** to const char **.
9338         * genattr.c (main): Likewise.
9339         * genattrtab.c (main): Likewise.
9340         * genautomata.c (initiate_automaton_gen): Likewise.
9341         (main): Likewise.
9342         * gencodes.c (main): Likewise.
9343         * genconditions.c (main): Likewise.
9344         * genconfig.c (main): Likewise.
9345         * genconstants.c (main): Likewise.
9346         * genemit.c (main): Likewise.
9347         * genenums.c (main): Likewise.
9348         * genextract.c (main): Likewise.
9349         * genflags.c (main): Likewise.
9350         * genmddeps.c (main): Likewise.
9351         * genopinit.c (main): Likewise.
9352         * genoutput.c (main): Likewise.
9353         * genpeep.c (main): Likewise.
9354         * genpreds.c (main): Likewise.
9355         * genrecog.c (main): Likewise.
9356         * gensupport.c (init_rtx_reader_args_cb): Likewise.
9357         (init_rtx_reader_args): Likewise.
9358         * gensupport.h (init_rtx_reader_args_cb): Likewise.
9359         (init_rtx_reader_args): Likewise.
9360         * gentarget-def.c (main): Likewise.
9361         * read-md.c (read_md_files): Likewise.
9362         * read-md.h (read_md_files): Likewise.
9364 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9366         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
9367         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
9368         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
9369         Remove unused predicate.
9370         (register_and_not_fp_reg_operand): Ditto.
9372 2016-05-06  Martin Liska  <mliska@suse.cz>
9374         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
9375         instead of vec as the vector is local to the function.
9377 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
9379         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
9380         avx512bw alternative.
9382         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
9383         before the ashr<mode>3 pattern.
9385         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
9386         v instead of x in vex or maybe_vex alternatives, use
9387         maybe_evex instead of vex in prefix.
9389         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
9390         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
9391         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
9392         in vex or maybe_vex alternatives, use maybe_evex instead of vex
9393         in prefix.
9395         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
9396         v instead of x in vex or maybe_vex alternatives, use
9397         maybe_evex instead of vex in prefix.
9399         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
9400         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
9401         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
9402         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
9403         alternatives, use maybe_evex instead of vex in prefix.
9405         * config/i386/sse.md (vec_interleave_lowv4sf,
9406         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
9407         v instead of x in vex or maybe_vex alternatives, use
9408         maybe_evex instead of vex in prefix.
9410         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
9411         v instead of x in vex or maybe_vex alternatives, use
9412         maybe_evex instead of vex in prefix.
9414         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
9415         v constraint instead of x.
9417 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
9419         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
9420         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
9421         equality first.
9423 2016-05-06  Richard Biener  <rguenther@suse.de>
9425         PR tree-optimization/70948
9426         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9427         Properly clobber all fields of va_list for __builtin_va_start.
9429 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
9431         PR debug/70935
9432         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
9433         loop latch destination.
9435 2016-05-06  Martin Liska  <mliska@suse.cz>
9437         * tree-ssa-uninit.c: Apply manual changes
9438         to the GNU coding style.
9439         (prune_uninit_phi_opnds): Rename from
9440         prune_uninit_phi_opnds_in_unrealizable_paths.
9442 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9444         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
9445         mspace): Remove deprecated options.
9446         * doc/invoke.texi (SH options): Remove -mspace.
9448 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9450         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
9452 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9454         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
9455         corresponding combine split pattern.
9457 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9459         PR target/58219
9460         * config/sh/predicates.md (long_displacement_mem_operand): New.
9461         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
9462         Add movi20, movi20s alternatives.  Adjust length attribute for
9463         alternatives.
9464         (movsi_ie): Allow for any FPU.  Adjust length attribute for
9465         alternatives.
9466         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
9467         attribute for alternatives.
9468         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
9469         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
9470         length attribute for alternatives.
9472 2016-05-06  Richard Biener  <rguenther@suse.de>
9474         PR tree-optimization/70960
9475         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
9477 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9479         PR target/52933
9480         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
9481         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
9483 2016-05-06  Marek Polacek  <polacek@redhat.com>
9485         PR sanitizer/70875
9486         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
9488 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9490         PR target/54089
9491         * config/sh/sh.md (*rotcr): Add another variant.
9493 2016-05-06  Richard Biener  <rguenther@suse.de>
9495         PR middle-end/70931
9496         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
9498 2016-05-06  Richard Biener  <rguenther@suse.de>
9500         PR middle-end/70941
9501         * fold-const.c (split_tree): Always convert to the original type
9502         before negating.
9504 2016-05-06  Richard Biener  <rguenther@suse.de>
9506         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
9507         (fwprop_addr): Likewise.
9509 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9511         PR target/70873
9512         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
9513         New prototype.
9514         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
9515         * config/i386/i386.md (push mem splitter): Use find_constant_src in
9516         the splitter condition.
9517         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
9518         the splitter condition.
9519         (FP float_extend load splitter): Ditto.
9521 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
9523         * config/i386/i386.md (peehole2 patterns): Change true_regnum
9524         to REGNO in all peephole2 patterns.
9525         (post-reload splitters): Change true_regnum to REGNO in
9526         post-reload splitters.
9527         (zero_extend splitters): Use general_reg_operand and
9528         nonimmediate_gr_operand predicates.
9530 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
9532         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
9533         v constraint instead of x.
9535 2016-05-05  Alan Modra  <amodra@gmail.com>
9537         PR target/68662
9538         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
9539         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
9540         TARGET_NO_FP_IN_TOC for -mrelocatable.
9541         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
9542         TARGET_RELOCATABLE test.
9543         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9544         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9545         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9546         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9547         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9548         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9549         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9550         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9551         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9552         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9553         Likewise.
9554         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
9555         (rs6000_stack_info): Likewise.
9556         (rs6000_elf_asm_out_constructor): Likewise.
9557         (rs6000_elf_asm_out_destructor): Likewise.
9558         (rs6000_elf_declare_function_name): Likewise.
9559         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
9560         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
9561         Don't define.
9563 2016-05-05  Alan Modra  <amodra@gmail.com>
9565         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9567 2016-05-05  Alan Modra  <amodra@gmail.com>
9569         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9570         out-of-line gpr restore for one or two regs if that would add
9571         a save of lr.
9573 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
9575         PR target/70873
9576         * config/i386/i386.md
9577         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9578         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
9579         as operand 0 predicate.
9580         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9581         Ditto.
9582         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9583         Ditto.  Emit the pattern using RTX.
9585         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9586         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
9587         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
9588         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9589         Ditto.
9590         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9591         sse_reg_operand as operand 0 predicate.
9593         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9594         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
9595         instead of gen_rtx_REG.
9596         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9597         Ditto.
9599 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9601         * function.c (emit_use_return_register_into_block): Delete.
9602         (gen_return_pattern): Delete.
9603         (emit_return_into_block): Delete.
9604         (active_insn_between): Delete.
9605         (convert_jumps_to_returns): Delete.
9606         (emit_return_for_exit): Delete.
9607         (thread_prologue_and_epilogue_insns): Delete all code dealing with
9608         simple_return for shrink-wrapped blocks.
9609         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9610         end of blocks that need one.
9611         (get_unconverted_simple_return): Delete.
9612         (convert_to_simple_return): Delete.
9613         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9614         (convert_to_simple_return): Ditto.
9616 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9618         * cfgcleanup.c (bb_is_just_return): New function.
9619         (try_optimize_cfg): Simplify jumps to return, branches to return,
9620         and branches around return.
9622 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9624         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9625         branch to a return.
9627 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9629         PR c++/70906
9630         PR c++/70933
9631         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9632         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9633         assert flags & OEP_HASH_CHECK, instead of asserting it
9634         never happens.  Handle TARGET_EXPR.
9635         * fold-const.c (operand_equal_p): For hash verification,
9636         or in OEP_HASH_CHECK into flags.
9638 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9640         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9641         comment.
9642         (compute_samebase_partition_bases): Fix typo.
9644 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9646         * config/i386/sse.md (vec_interleave_highv8sf,
9647         vec_interleave_lowv8sf, vec_interleave_highv4df,
9648         vec_interleave_lowv4df): Remove constraints from expanders.
9650         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9652 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9654         * tree-inline.c (expand_call_inline): Fix path dealing with
9655         making lhs of call statement undefined.
9657 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9659         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9660         Check availability on NODE, too.
9661         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9662         (cgraph_node::call_for_symbol_and_aliases): Likewise.
9663         (varpool_node::call_for_symbol_and_aliase): Likewise.
9664         * ipa-pure-const.c (add_new_function): Analyze all bodies.
9665         (propagate_pure_const): Propagate across interposable functions, too.
9666         (skip_function_for_local_pure_const): Do not skip interposable bodies
9667         with aliases.
9668         (pass_local_pure_const::execute): Update.
9670 2016-05-04  Marek Polacek  <polacek@redhat.com>
9672         * doc/invoke.texi: Document -Wdangling-else.
9674 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9676         * config.gcc: Error out when conflicting multilib is detected.  Do not
9677         loop over multilibs since no combination is legal.
9679 2016-05-04  Alan Modra  <amodra@gmail.com>
9681         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9682         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9683         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9684         Align .toc.
9686 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
9688         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9689         Clean up p5600 comments.
9691 2016-05-04  Richard Biener  <rguenther@suse.de>
9693         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9694         constructor simplifications.
9695         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9697 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
9699         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9700         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9701         result.set_rtx is null instead of aborting.
9702         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9703         Always enable.
9704         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9705         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9706         *mov<mode>_store_postinc): New patterns.
9708 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
9710         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
9711         as commutative.  Check both conversions are NOP.
9712         ((A & B) OP (C & B)): Remove.
9714 2016-05-04  Alan Modra  <amodra@gmail.com>
9716         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9718 2016-05-04  Alan Modra  <amodra@gmail.com>
9720         PR target/70866
9721         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9722         when cr2,3,4 are all fixed regs.
9724 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
9726         PR rtl-optimization/57193
9727         * opts.c (default_options_table): Revert OPT_frename_registers change.
9728         * doc/invoke.texi (-frename-registers, -O2): Likewise.
9730 2016-05-03  Martin Sebor  <msebor@redhat.com>
9732         PR c++/66561
9733         * builtins.c (fold_builtin_FILE): New function.
9734         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9735         (fold_builtin_0): Call them.
9736         * gimplify.c (gimplify_call_expr): Remove the handling of
9737         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9739         PR c++/66561
9740         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9741         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9742         constants.
9744         PR c++/66639
9745         * doc/extend.texi (Function Names as Strings): Update __func__,
9746         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9747         constants.
9749 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9750             Richard Biener  <rguenther@suse.de>
9752         PR tree-optimization/70916
9753         * tree-if-conv.c: Include cfganal.h.
9754         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9755         and remove_fake_exit_edges around the optimization pass.
9757 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
9759         * cgraph.c (symbol_table::create_edge): Set inline_failed.
9760         (cgraph_edge::make_direct): Likewise.
9761         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9762         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9763         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9764         (CIF_THUNK): New code.
9765         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9766         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9767         (compute_inline_parameters): Set inline_failed for thunks.
9768         (inline_analyze_function): Cleanup.
9769         * ipa-inline.c (can_inline_edge_p): Do not deal with
9770         call_stmt_cannot_inline_p.
9771         (can_early_inline_edge_p): Likewise.
9772         (early_inliner): Initialize inline_failed.
9773         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9775 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
9777         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9778         from nonimm_ssenomem_operand.
9779         (nonimm_ssenomem_operand): New predicate.
9780         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9781         as operand 0 predicate.
9782         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9783         Disable unsupported alternatives using "enabled" attribute.
9784         Use register_ssemem_operand as operand 0 predicate.
9785         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9787 2016-05-03  Marek Polacek  <polacek@redhat.com>
9789         PR c/70859
9790         * input.c (expansion_point_location): New function.
9791         * input.h (expansion_point_location): Declare.
9793 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9795         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9796         occurence with frame_offset_ ones.
9798 2016-05-03  Alan Modra  <amodra@gmail.com>
9800         PR rtl-optimization/70890
9801         * ira.c (combine_and_move_insns): When moving def_insn, remove
9802         equivs on use_insn.
9804 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9806         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9807         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9808         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9809         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9811 2016-05-03  Alan Modra  <amodra@gmail.com>
9813         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9814         for SAVE_MULTIPLE/STORE_MULTIPLE.
9816 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9818         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9819         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9821 2016-05-03  Richard Biener  <rguenther@suse.de>
9823         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9824         default true.
9825         (gimplify_arg): Likewise.
9826         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9827         re-writing the result to a decl if required.
9828         (internal_get_tmp_var): Add allow_ssa parameter
9829         and override into_ssa with it.
9830         (get_formal_tmp_var): Adjust.
9831         (get_initialized_tmp_var): Add allow_ssa parameter.
9832         (gimplify_arg): Add allow_ssa parameter and avoid generating
9833         SSA names for the result false.
9834         (gimplify_call_expr): If the call may return twice do not
9835         gimplify parameters into SSA.
9836         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9837         (gimplify_modify_expr): Adjust assert.  For noreturn calls
9838         with a SSA name LHS adjust its def.
9839         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9840         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9841         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9842         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9843         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
9844         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
9845         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9846         (optimize_target_teams): Do not allow SSA names for clause operands.
9847         (gimplify_expr): Likewise for where we mark the result addressable.
9848         * passes.def (pass_init_datastructures): Remove.
9849         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9850         (rewrite_stmt): Likewise.
9851         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9852         (replace_locals_op): Replace SSA names.
9853         (copy_gimple_seq_and_replace_locals): Init src_cfun.
9854         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9855         * cgraph.c (release_function_body): Free CFG annotations only
9856         when we have a CFG.  Simplify.
9857         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9858         force_gimple_operand instead of get_initialized_tmp_var.
9859         * tree-pass.h (make_pass_init_datastructures): Remove.
9860         * tree-ssa.c (execute_init_datastructures): Remove.
9861         (pass_data_init_datastructures): Likewise.
9862         (class pass_init_datastructures): Likewise.
9863         (make_pass_init_datastructures): Likewise.
9864         * omp-low.c (create_omp_child_function): Init SSA data structures.
9865         (grid_expand_target_grid_body): Likewise.
9866         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9867         name before adding it to names_to_release.
9868         (remove_bb): Always release SSA defs.
9869         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9870         before dereferencing it.
9871         * cgraphunit.c (init_lowered_empty_function): Always
9872         int SSA data structures.
9873         * tree-ssanames.c (release_defs): Remove assert that we are in
9874         SSA form.
9875         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9877 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9878             Uros Bizjak  <ubizjak@gmail.com>
9880         PR rtl-optimization/70467
9881         * config/i386/predicates.md (x86_64_hilo_int_operand,
9882         x86_64_hilo_general_operand): New predicates.
9883         * config/i386/constraints.md (Wd): New constraint.
9884         * config/i386/i386.md (mode attr di): Use Wd instead of e.
9885         (general_hilo_operand): New mode attr.
9886         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9887         instead of <general_operand>.
9888         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9889         x86_64_hilo_general_operand instead of <general_operand>.
9891 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9893         PR tree-optimization/70916
9894         * tree-if-conv.c (constant_or_ssa_name): Removed.
9895         (fold_build_cond_expr): Use is_gimple_val instead of
9896         constant_or_ssa_name.
9898         PR tree-optimization/70916
9899         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9900         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9902         PR target/49244
9903         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9904         (optimize_atomic_bit_test_and): New function.
9905         (pass_fold_builtins::execute): Use it.
9906         * optabs.def (atomic_bit_test_and_set_optab,
9907         atomic_bit_test_and_complement_optab,
9908         atomic_bit_test_and_reset_optab): New optabs.
9909         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9910         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9911         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9912         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9913         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9914         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9915         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9916         * doc/md.texi (atomic_bit_test_and_set@var{mode},
9917         atomic_bit_test_and_complement@var{mode},
9918         atomic_bit_test_and_reset@var{mode}): Document.
9919         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9920         atomic_bit_test_and_complement<mode>,
9921         atomic_bit_test_and_reset<mode>): New expanders.
9922         (atomic_bit_test_and_set<mode>_1,
9923         atomic_bit_test_and_complement<mode>_1,
9924         atomic_bit_test_and_reset<mode>_1): New insns.
9926 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
9928         PR rtl-optimization/70687
9929         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
9930         instead of unsigned HOST_WIDE_INT.
9932 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
9934         PR rtl-optimization/44281
9935         * hard-reg-set.h (struct target_hard_regs): New field
9936         x_fixed_nonglobal_reg_set.
9937         (fixed_nonglobal_reg_set): New macro.
9938         * reginfo.c (init_reg_sets_1): Initialize it.
9939         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9940         of fixed_reg_set.
9941         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9943 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9945         PR tree-optimization/56541
9946         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9947         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9948         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9949         (any_complicated_phi): new static variable.
9950         (aggressive_if_conv): delete.
9951         (if_convertible_phi_p): support phis with more than two arguments.
9952         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9953         critical pred edges.
9954         (ifcvt_split_critical_edges): support phis with more than two
9955         arguments by checking new parameter.  only split critical edges
9956         if needed.
9957         (tree_if_conversion): handle simd pragma marked loop using new
9958         local variable aggressive_if_conv.  check any_complicated_phi.
9960 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9962         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9963         before using it.
9965 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9967         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9968         cbase.
9970 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9972         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9973         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9974         define_insn_and_split.
9975         (mulsi3_i): New define_insn_and_split.
9976         (mulsi3_call): Convert to define_insn.
9977         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9978         Remove constraints.
9980 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9982         * machmode.h (mode_complex): Add support to give the complex mode
9983         for a given mode.
9984         (GET_MODE_COMPLEX_MODE): Likewise.
9985         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9986         stored by build_complex_type and gfc_build_complex_type instead of
9987         trying to figure out the appropriate mode based on the size. Raise
9988         an assertion error, if the type was not set.
9989         * genmodes.c (struct mode_data): Add field for the complex type of
9990         the given type.
9991         (blank_mode): Likewise.
9992         (make_complex_modes): Remember the complex mode created in the
9993         base type.
9994         (emit_mode_complex): Write out the mode_complex array to map a
9995         type mode to the complex version.
9996         (emit_insn_modes_c): Likewise.
9997         * tree.c (build_complex_type): Set the complex type to use before
9998         calling layout_type.
9999         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
10000         support for __float128 complex datatypes.
10001         (rs6000_hard_regno_mode_ok): Likewise.
10002         (rs6000_setup_reg_addr_masks): Likewise.
10003         (rs6000_complex_function_value): Likewise.
10004         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
10005         __float128 and __ibm128 complex.
10006         (FLOAT128_IBM_P): Likewise.
10007         (ALTIVEC_ARG_MAX_RETURN): Likewise.
10008         * doc/extend.texi (Additional Floating Types): Document that
10009         -mfloat128 must be used to enable __float128.  Document complex
10010         __float128 and __ibm128 support.
10012 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
10014         PR target/49244
10015         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
10016         char/short arguments promoted to int because of promote_prototypes.
10018 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
10020         * config/i386/predicates.md (register_ssemem_operand): New predicate.
10021         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
10022         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
10023         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
10024         alternatives using "enabled" attribute.  Use register_ssemem_operand
10025         as operand 1 predicate.
10026         (*cmpi<unord>xf_i387): Split XFmode pattern from
10027         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
10028         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
10029         *absneg<mode>2_i387.  Disable unsupported alternatives using
10030         "enabled" attribute.
10031         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
10033 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10035         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
10036         marker.
10037         (oacc_loop_process): Check mask for loop termination.
10039 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
10041         * cif-code.def (CIF_THUNK): Add.
10042         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
10043         accidental change.
10045 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
10047         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
10048         (dump_inline_summary): Dump it.
10049         (fp_expression_p): New predicate.
10050         (estimate_function_body_sizes): Use it.
10051         (inline_merge_summary): Merge fp_expressions.
10052         (inline_read_section): Read fp_expressions.
10053         (inline_write_summary): Write fp_expressions.
10054         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
10055         codegen boundary if either caller or callee is !fp_expressions.
10056         * ipa-inline.h (inline_summary): Add fp_expressions.
10057         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
10058         to fp_expressions be sure the fp generation flags are updated.
10060 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
10062         PR rtl-optimization/70467
10063         * cse.c (cse_insn): Handle no-op MEM moves after folding.
10065         PR rtl-optimization/70467
10066         * ipa-pure-const.c (check_call): Handle internal calls even in
10067         ipa mode like in local mode.
10069 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10071         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
10073 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
10075         * match.pd (X u< X, X u> X): New transformations.
10077 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
10079         * flag-types.h (enum warn_strict_overflow_code): Move ...
10080         * coretypes.h: ... here.
10081         * fold-const.h (fold_overflow_warning): Declare.
10082         * fold-const.c (fold_overflow_warning): Make non-static.
10083         (fold_comparison): Move the transformation of X +- C1 CMP C2
10084         into X CMP C2 -+ C1 ...
10085         * match.pd: ... here.
10086         * gimple-fold.c (fold_stmt_1): Protect with
10087         fold_defer_overflow_warnings.
10089 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10091         * omp-low.c (struct oacc_loop): Add 'inner' field.
10092         (new_oacc_loop_raw): Initialize it to zero.
10093         (oacc_loop_fixed_partitions): Initialize it.
10094         (oacc_loop_auto_partitions): Partition outermost loop to outermost
10095         available partitioning.
10097 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
10099         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
10100         register_operand.
10101         (umulsidi3): Likewise.
10102         (indirect_jump): Fix jump instruction assembly patterns.
10104 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
10106         PR target/70860
10107         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
10108         (nvptx_function_value): Assert non-NULL cfun.
10110 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
10112         PR rtl-optimization/70886
10113         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
10115         * cselib.h (rtx_equal_for_cselib_1): Declare.
10116         (rtx_equal_for_cselib_p: New inline function.
10117         * cselib.c (rtx_equal_for_cselib_p): Delete.
10118         (rtx_equal_for_cselib_1): Make public.
10120 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
10122         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
10123         (register_mixssei387nonimm_operand): Remove predicate.
10124         * config/i386/i386.md (*fop_<mode>_comm): Merge from
10125         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
10126         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
10127         for TARGET_MIX_SSE_I387 alternatives.
10128         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
10129         Disable unsupported alternatives using "enabled" attribute.  Use
10130         nonimm_ssenomem_operand as operand 1 predicate.  Also check
10131         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
10133 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10135         * tree.c (cst_and_fits_in_hwi): Simplify.
10137 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10139         * tree.h (wi::to_wide): New function.
10140         * expr.c (expand_expr_real_1): Use wi::to_wide.
10141         * fold-const.c (int_const_binop_1): Likewise.
10142         (extract_muldiv_1): Likewise.
10144 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10146         * wide-int.h: Update offset_int and widest_int documentation.
10147         (WI_SIGNED_SHIFT_RESULT): New macro.
10148         (wi::binary_shift): Define signed_shift_result_type for
10149         shifts on offset_int- and widest_int-like types.
10150         (generic_wide_int): Support <<= and >>= if << and >> are supported.
10151         * tree.h (int_bit_position): Use shift operators instead of wi::
10152          shifts.
10153         * alias.c (adjust_offset_for_component_ref): Likewise.
10154         * expr.c (get_inner_reference): Likewise.
10155         * fold-const.c (fold_comparison): Likewise.
10156         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
10157         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
10158         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10159         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
10160         (stmt_kills_ref_p): Likewise.
10161         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
10162         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
10163         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10164         (ao_ref_init_from_vn_reference): Likewise.
10166 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10168         * wide-int.h: Update offset_int and widest_int documentation.
10169         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
10170         (wi::binary_traits): Allow ordered comparisons between offset_int and
10171         offset_int, between widest_int and widest_int, and between either
10172         of these types and basic C types.
10173         (operator <, <=, >, >=): Define for the same combinations.
10174         * tree.h (tree_int_cst_lt): Use comparison operators instead
10175         of wi:: comparisons.
10176         (tree_int_cst_le): Likewise.
10177         * gimple-fold.c (fold_array_ctor_reference): Likewise.
10178         (fold_nonarray_ctor_reference): Likewise.
10179         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
10180         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
10181         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
10182         * tree-sra.c (completely_scalarize): Likewise.
10183         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
10184         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
10185         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
10186         (check_for_binary_op_overflow): Likewise.
10187         (search_for_addr_array): Likewise.
10188         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
10190 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
10192         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
10193         (arc_save_restore): Likewise.
10194         (arc_dwarf_register_span): Likewise.
10195         (arc_output_pic_addr_const): Initialize suffix variable.
10197 2016-05-02  Martin Liska  <mliska@suse.cz>
10199         * symbol-summary.h (function_summary::function_summary):
10200         Remove checking assert for all cgraph nodes.
10201         (function_summary::get): Check summary_uid.
10202         (symtab_insertion): Check summary_uid.
10204 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
10206         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
10207         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
10208         bmaskn instruction.
10209         (arc_dwarf_register_span): Remove enum keyword.
10210         (compact_memory_operand_p): New function.
10211         * config/arc/arc.h (reg_class): Add code density register classes.
10212         (REG_CLASS_NAMES): Likewise.
10213         (REG_CLASS_CONTENTS): Likewise.
10214         * config/arc/arc.md (*movqi_insn): Add code density instructions.
10215         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
10216         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
10217         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
10218         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
10219         constraints.
10220         (h, Rcd, Rsd, Rzd): New register constraints.
10221         (T): Use compact_memory_operand_p function.
10222         * config/arc/predicates.md (compact_load_memory_operand): Remove.
10224 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
10226         * config/sh/sh.md (*negnegt, *movtt): Remove.
10228 2016-05-02  Marek Polacek  <polacek@redhat.com>
10229             Tom de Vries  <tom@codesourcery.com>
10231         PR tree-optimization/70700
10232         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
10233         bigger than FIRST_REF_NODE.
10235 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
10237         PR target/52898
10238         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
10239         TARGET_CMPEQDI_T.
10240         (prepare_cbranch_operands): Don't use scratch register.  Assume that
10241         function is used when pseudos can be created.
10242         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
10243         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
10244         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
10245         define_expand.  Allow it only when pseudos can be created.
10246         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
10248 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
10250         * config/i386/constraints.md (BC): Only allow -1 operands.
10251         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
10252         Add "enabled" attribute.  Update XI mode attribute calculation.
10253         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
10254         (*movoi_internal_avx): Update XI mode attribute calculation.
10255         (*movti_internal): Ditto.
10257 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10259         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
10260         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
10262 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
10264         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
10265         statement on instruction code.  Remove trailing spaces.
10266         (altivec_expand_stv_builtin): Likewise.
10268 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10270         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
10271         (TARGET_FPU_DOUBLE): Simplify.
10272         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
10273         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
10274         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
10275         with 'TARGET_FPU_DOUBLE'.
10276         * config/sh/sh.md: Likewise.
10278 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
10280         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
10281         SH_DIV_STR_FOR_SIZE): Remove.
10282         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
10283         SH_DIV_STR_FOR_SIZE): Remove.
10285 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10287         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
10288         logical_reg_operand): Delete.
10289         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
10290         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
10291         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
10292         match_operand and match_test.
10293         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
10294         variables on their first use.  Return bool values.
10295         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
10296         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
10297         arith_reg_operand for input operand.  Remove empty constraints.
10298         (xorsi3): Delete.
10299         (*xorsi3_compact): Rename to xorsi3.
10300         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
10301         (*zero_extend<mode>si2_disp_mem): Update comment.
10302         (mov_nop): Delete.
10304 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
10306         * config/sh/t-sh: Remove SH5 support.
10307         * config.gcc: Likewise.
10308         * configure: Likewise.
10310 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10312         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
10314 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
10316         * config/sh/sh.c (register_sh_passes, sh_option_override,
10317         sh_print_operand, prepare_move_operands,
10318         sh_can_follow_jump): Remove TARGET_SH1 checks.
10319         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
10320         PROMOTE_MODE): Likewise.
10321         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
10322         movdi): Likewise.
10324 2016-04-30  Alan Modra  <amodra@gmail.com>
10326         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
10327         restoring when fixed_reg_p, but allow out-of-line or stmw save.
10328         Check for user regs later to avoid unnecessary looping over regs.
10329         Merge user reg check with non-saved reg check.  Don't force
10330         inline VR restore when static chain used.
10331         (rs6000_frame_related): Omit eh_frame info for user regs when
10332         saving.
10333         (fixed_regs_p): Delete.
10335 2016-04-30  Alan Modra  <amodra@gmail.com>
10337         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
10338         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
10339         Update all uses.
10341 2016-04-30  Alan Modra  <amodra@gmail.com>
10343         PR target/69645
10344         * config/rs6000/rs6000.c (fixed_reg_p): New function.
10345         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
10346         Update all uses.
10348 2016-04-30  Alan Modra  <amodra@gmail.com>
10350         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10351         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
10352         flag_pic test for Darwin.
10354 2016-04-30  Alan Modra  <amodra@gmail.com>
10356         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
10357         throw_calls_crossed.
10358         (REG_FREQ_CALLS_CROSSED): Delete.
10359         (REG_N_THROWING_CALLS_CROSSED): Delete.
10360         * regstat.c (regstat_bb_compute_ri): Don't calculate
10361         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
10362         (dump_reg_info): Don't print call cross frequency.
10363         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
10364         and REG_N_THROWING_CALLS_CROSSED.
10366 2016-04-30  Alan Modra  <amodra@gmail.com>
10368         * regs.h (struct reg_info_t): Delete live_length.
10369         (REG_LIVE_LENGTH): Delete macro.
10370         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
10371         local_live, local_processed and local_live_last_luid params.
10372         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
10373         Formatting fixes.
10374         (regstat_compute_ri): Adjust for above.  Don't set
10375         REG_LIVE_LENGTH.
10376         (dump_reg_info): Don't print live length.
10377         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
10378         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
10379         Localize loop_depth var.
10381 2016-04-30  Alan Modra  <amodra@gmail.com>
10383         * ira.c (enum valid_equiv): New.
10384         (validate_equiv_mem): Return enum.
10385         (update_equiv_mem): Create replacement in more cases.
10386         (add_store_equivs): Update validate_equiv_mem call.
10388 2016-04-30  Alan Modra  <amodra@gmail.com>
10390         * ira.c (combine_and_move_insns): Rather than scanning insns,
10391         use DF infrastucture to find use and def insns.
10393 2016-04-30  Alan Modra  <amodra@gmail.com>
10395         ira.c (combine_and_move_insns): Move invariant conditions..
10396         (ira.c): ..to here.  Call combine_and_move_insns before
10397         add_store_equivs.  Call grow_reg_equivs later.  Allocate
10398         req_equiv later using max_reg_num() rather than global max_regno.
10399         (contains_replace_regs): Delete.
10400         (add_store_equivs): Remove contains_replace_regs test.
10402 2016-04-30  Alan Modra  <amodra@gmail.com>
10404         * ira.c (struct equiv_mem_data): New.
10405         (equiv_mem, equiv_mem_modified): Delete static vars.
10406         (validate_equiv_mem_from_store): Use "data" param to communicate..
10407         (validate_equiv_mem): ..from here.
10409 2016-04-30  Alan Modra  <amodra@gmail.com>
10411         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
10412         split out from..
10413         (update_reg_equivs): ..here.  Move allocation and freeing of
10414         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
10415         end_alias_analysis to..
10416         (ira): ..here.
10418 2016-04-30  Alan Modra  <amodra@gmail.com>
10420         * ira.c (pdx_subregs): Delete.
10421         (struct equivalence): Add pdx_subregs field.
10422         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
10423         pdx_subregs access.
10424         (update_equiv_regs): Don't create or free pdx_subregs.  Update
10425         pdx_subregs access.
10427 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10429         * config/rs6000/altivec.h: Change definitions of vec_xl and
10430         vec_xst.
10431         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
10432         (LD_ELEMREV_V2DI): New.
10433         (LD_ELEMREV_V4SF): New.
10434         (LD_ELEMREV_V4SI): New.
10435         (LD_ELEMREV_V8HI): New.
10436         (LD_ELEMREV_V16QI): New.
10437         (ST_ELEMREV_V2DF): New.
10438         (ST_ELEMREV_V2DI): New.
10439         (ST_ELEMREV_V4SF): New.
10440         (ST_ELEMREV_V4SI): New.
10441         (ST_ELEMREV_V8HI): New.
10442         (ST_ELEMREV_V16QI): New.
10443         (XL): New.
10444         (XST): New.
10445         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10446         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
10447         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
10448         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
10449         (altivec_expand_builtin): Add handling for
10450         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
10451         (rs6000_invalid_builtin): Add error-checking for
10452         RS6000_BTM_P9_VECTOR.
10453         (altivec_init_builtins): Define builtins used to implement vec_xl
10454         and vec_xst.
10455         (rs6000_builtin_mask_names): Define power9-vector.
10456         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
10457         (RS6000_BTM_P9_VECTOR): Define.
10458         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
10459         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
10460         (vsx_ld_elemrev_v2df): Likewise.
10461         (vsx_ld_elemrev_v4sf): Likewise.
10462         (vsx_ld_elemrev_v4si): Likewise.
10463         (vsx_ld_elemrev_v8hi): Likewise.
10464         (vsx_ld_elemrev_v16qi): Likewise.
10465         (vsx_st_elemrev_v2df): Likewise.
10466         (vsx_st_elemrev_v2di): Likewise.
10467         (vsx_st_elemrev_v4sf): Likewise.
10468         (vsx_st_elemrev_v4si): Likewise.
10469         (vsx_st_elemrev_v8hi): Likewise.
10470         (vsx_st_elemrev_v16qi): Likewise.
10471         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
10472         grammar.
10474 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
10476         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
10477         out into ...
10478         (simplify_control_stmt_condition_1): ... here.  Recurse into
10479         BIT_AND_EXPRs and BIT_IOR_EXPRs.
10481 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
10483         PR target/69810
10484         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
10485         (zero_extendqi<mode>2_dot): Revert earlier conversion from
10486         define_insn_and_split to define_insn.
10487         (zero_extendqi<mode>2_dot2): Same.
10488         (extendqi<mode>2_dot): Same.
10489         (extendqi<mode>2_dot2): Same.
10491 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10493         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
10494         (probe_stack): New expander.
10495         (probe_stack_<mode>): New insn pattern.
10497 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10499         * config/i386/i386.md
10500         (operations with memory inputs setting flags peephole2):
10501         Remove uneeded REG_P checks.  Cleanup pattern generation.
10503 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10505         * tree-vect-loop.c (vect_transform_loop): Fix
10506         nb_iterations_upper_bound computation for vectorized loop.
10508 2016-04-29  Marek Polacek  <polacek@redhat.com>
10509             Jakub Jelinek  <jakub@redhat.com>
10511         PR sanitizer/70342
10512         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
10513         TARGET_EXPR_SLOT as a base.
10515 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
10517         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
10518         with 'rCm2' constraints to limit possible immediate size.
10519         (*load_zeroextendqisi_update): Likewise.
10520         (*load_signextendqisi_update): Likewise.
10521         (*loadhi_update): Likewise.
10522         (*load_zeroextendhisi_update): Likewise.
10523         (*load_signextendhisi_update): Likewise.
10524         (*loadsi_update): Likewise.
10525         (*loadsf_update): Likewise.
10527 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10529         * config/i386/predicates.md (constm1_operand): Fix comparison.
10531 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10533         * testsuite/gcc.target/arc/ieee_eq.c: New test.
10535 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
10537         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
10538         remaining SH5 related settings.
10539         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
10540         shmedia_prepare_call_address): Delete.
10541         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
10542         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
10543         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
10544         UNSUPPORTED_SH2A): Remove m5 checks.
10545         (sh_divide_strategy_e): Remove SH5 division strategies.
10546         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
10547         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
10549 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10551         * config/s390/s390.c (s390_rtx_costs): Update documentation.
10553 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10555         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
10556         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
10557         Change lder to ldr.
10558         * config/s390/vector.md ("mov<mode>"): Likewise.
10560 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
10562         * config/s390/constraints.md ("U", "W"): Invoke
10563         s390_mem_constraint with "ZR" and "ZT".
10564         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
10565         addresses when using LRA.  Accept also short displacements for S
10566         and T constraints.  Do not check for long displacement target for
10567         S and T constraints.
10568         (s390_mem_constraint): Remove handling of U and W constraints.
10569         * config/s390/s390.md (various patterns): Remove the short
10570         displacement constraints (Q and R) if a long displacement
10571         constraint is present.  Add longdisp as required CPU capability.
10572         * config/s390/vector.md: Likewise.
10573         * config/s390/vx-builtins.md: Likewise.
10575 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10577         PR target/60040
10578         * reload1.c (reload): Call finish_spills before
10579         restarting reload loop. Skip select_reload_regs
10580         if update_eliminables_and_spill returns true.
10582 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10584         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10585         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10586         (umulhisi3_imm): Update predicates and constraint letters.
10587         (umulhisi3_reg): Declare instruction as commutative.
10588         * config/arc/constraints.md (J12, J16): New constraints.
10589         * config/arc/predicates.md (short_unsigned_const_operand): New
10590         predicate.
10591         (arc_short_operand): Likewise.
10592         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10594 2016-04-29  Richard Biener  <rguenther@suse.de>
10596         PR tree-optimization/13962
10597         PR tree-optimization/65686
10598         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10599         * tree-ssa-alias.c (ptrs_compare_unequal): New function
10600         using PTA to compare pointers.
10601         * match.pd: Add pattern for pointer equality compare simplification
10602         using ptrs_compare_unequal.
10604 2016-04-29  Richard Biener  <rguenther@suse.de>
10606         * stor-layout.c (layout_type): Do not build a pointer-to-element
10607         type for arrays.
10609 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10611         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10612         Use SWI mode iterator.  Use general_reg_operand predicate.
10613         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10614         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
10615         predicates.
10617 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
10619         PR middle-end/70843
10620         * fold-const.c (operand_equal_p): Don't verify hash value equality
10621         if arg0 == arg1.
10622         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
10623         and OMP_CLAUSE.
10625 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10627         PR target/70858
10628         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10629         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10630         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10631         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10632         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10634 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10636         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10637         to info.  Don't initialize separate fields to 0.  Clean up
10638         formatting a bit.
10640 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10642         * config/i386/i386.md (peephole2s for operations with memory inputs):
10643         Use SWI mode iterator.
10644         (peephole2s for operations with memory outputs): Ditto.
10645         Do not check for stack checking probe.
10647         (probe_stack): Remove expander.
10649 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10650             Andrew Burgess  <andrew.burgess@embecosm.com>
10652         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10653         operands as 32-bits.
10655 2016-04-28  Jason Merrill  <jason@redhat.com>
10657         * gdbinit.in: Skip line-map.h.
10659 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10660             Andrew Burgess  <andrew.burgess@embecosm.com>
10662         * config/arc/arc.c (arc_conditional_register_usage): Take
10663         TARGET_RRQ_CLASS into account.
10664         (arc_print_operand): Support printing 'p' and 's' operands.
10665         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10666         as 0.
10667         (TARGET_RRQ_CLASS): Define.
10668         (IS_POWEROF2_OR_0_P): Define.
10669         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10670         alternatives.
10671         (*tst_movb): New define_insn.
10672         (*tst): Avoid recognition if it could prevent '*tst_movb'
10673         combination; replace c/CnL with c/Chs alternative.
10674         (*tst_bitfield_tst): New define_insn.
10675         (*tst_bitfield_asr): New define_insn.
10676         (*tst_bitfield): New define_insn.
10677         (andsi3_i): Add Rrq variant.
10678         (extzv): New define_expand.
10679         (insv): New define_expand.
10680         (*insv_i): New define_insn.
10681         (*movb): New define_insn.
10682         (*movb_signed): New define_insn.
10683         (*movb_high): New define_insn.
10684         (*movb_high_signed): New define_insn.
10685         (*movb_high_signed + 1): New define_split pattern.
10686         (*mrgb): New define_insn.
10687         (*mrgb + 1): New define_peephole2 pattern.
10688         (*mrgb + 2): New define_peephole2 pattern.
10689         * config/arc/arc.opt (mbitops): New option for nps400, uses
10690         TARGET_NPS_BITOPS_DEFAULT.
10691         * config/arc/constraints.md (q): Make register class conditional.
10692         (Rrq): New register constraint.
10693         (Chs): New constraint.
10694         (Clo): New constraint.
10695         (Chi): New constraint.
10696         (Cbf): New constraint.
10697         (Cbn): New constraint.
10698         (C18): New constraint.
10699         (Cbi): New constraint.
10701 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10703         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10704         dst->popcount.
10705         (bitmap_intersection_of_preds): Ditto.
10706         (bitmap_union_of_succs): Ditto.
10707         (bitmap_union_of_preds): Ditto.
10708         * sbitmap.c (do_popcount): Delete.
10709         (BITMAP_DEBUGGING): Delete.
10710         (sbitmap_verify_popcount): Delete.
10711         (sbitmap_alloc): Don't initialize the popcount field.
10712         (sbitmap_alloc_with_popcount): Delete.
10713         (sbitmap_resize): Don't resize the popcount array.
10714         (sbitmap_vector_alloc): Don't initialize the popcount field.
10715         (bitmap_copy): Don't copy the popcount array.
10716         (bitmap_clear): Don't clear the popcount array.
10717         (bitmap_clear): Delete the popcount array handling.
10718         (bitmap_ior_and_compl): Delete the popcount assert.
10719         (bitmap_not): Ditto.
10720         (bitmap_and_compl): Ditto.
10721         (bitmap_and): Delete the popcount array handling.
10722         (bitmap_xor): Ditto.
10723         (bitmap_ior): Ditto.
10724         (bitmap_or_and): Delete the popcount assert.
10725         (bitmap_and_or): Ditto.
10726         (popcount_table): Delete.
10727         (sbitmap_elt_popcount): Delete.
10728         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10729         (bitmap_set_bit): Delete the popcount assert.
10730         (bitmap_clear_bit): Ditto.
10731         (sbitmap_free): Don't free the popcount array.
10732         (sbitmap_alloc_with_popcount): Delete declaration.
10733         (sbitmap_popcount): Ditto.
10735 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10736             Andrew Burgess  <andrew.burgess@embecosm.com>
10738         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10739         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10740         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10741         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10742         * config/arc/arc.opt (mcmem): New option.
10743         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10744         supply length for r/m alternative.
10745         (*extendqisi2_ac): Likewise.
10746         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10747         r/Uex alternative.
10748         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10749         (movhi_insn): Likewise.
10750         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10751         (*zero_extendqihi2_i): Add r/Ucm alternative.
10752         (*zero_extendqisi2_ac): Likewise.
10753         (*zero_extendhisi2_i): Likewise.
10754         * config/arc/constraints.md (Uex): New memory constraint.
10755         (Ucm): New define_constraint.
10756         * config/arc/predicates.md (long_immediate_loadstore_operand):
10757         Return 0 for MEM with cmem_address address.
10758         (cmem_address_0): New predicates.
10759         (cmem_address_1): Likewise.
10760         (cmem_address_2): Likewise.
10761         (cmem_address): Likewise.
10763 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10765         * config/rs6000/rs6000.c (machine_function): Rename
10766         insn_chain_scanned_p to spe_insn_chain_scanned_p.
10767         (rs6000_stack_info): Adjust.
10769 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10770             Andrew Burgess  <andrew.burgess@embecosm.com>
10772         * config/arc/constraints.md (Usd): Convert to define_constraint.
10773         (Us<): Likewise.
10774         (Us>): Likewise.
10776 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10778         PR target/70821
10779         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10780         Add new peephole2 where the first insn is *mov<mode>_or instead of
10781         *mov<mode>_internal.
10783 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
10785         * tracer.c (bb_seen): Make static.
10787 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
10789         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10790         support, setup defaults.
10791         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10792         * config/arc/arc.c (arc_init): Add NPS400 support.
10793         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10794         (TARGET_ARC700): NPS400 is also an ARC700.
10795         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10797 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10799         PR target/70668
10800         * config/nds32/nds32.md (casesi): Don't access the operands array
10801         out of bounds.
10803 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10805         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10806         (or $-1,reg peephole2): Ditto.
10807         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10809 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10811         * doc/extend.texi (Common Function Attributes) [optimize]:
10812         Discourage use of the optimize attribute.
10814 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
10816         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10817         special case builtin.
10818         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10819         ALTIVEC_BUILTIN_VEC_ADDE.
10820         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10821         support for ALTIVEC_BUILTIN_VEC_ADDE.
10822         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10823         for __builtin_vec_adde.
10825 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10827         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10828         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10830 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10832         PR testsuite/70595
10833         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10834         attributes): Document cilkplus_runtime.
10836 2016-04-28  Martin Jambor  <mjambor@suse.cz>
10838         * tree-cfg.c (verify_expr): Verify that local declarations belong to
10839         this function.  Call verify_expr on MEM_REFs and bases of other
10840         handled_components.
10842 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10844         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10845         for WORD_REGISTER_OPERATIONS to runtime check.
10847 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10849         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10851 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10853         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10854         big-endian compilation.
10855         * config/arc/arc.md (addf3): Likewise.
10856         (subdf3): Likewise.
10857         (muldf3): Likewise.
10859 2016-04-28  Richard Biener  <rguenther@suse.de>
10861         PR tree-optimization/70840
10862         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10863         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10864         Mark x * pow(x,c) -> pow(x,c+1) commutative.
10865         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10867 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10869         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10870         and explain why in a comment.
10872 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10874         * config/arc/arc.md (cpu_facility): Add fpx variant.
10875         (subdf3): Prohibit use reverse sub when assist operations option
10876         is enabled.
10877         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10878         instructions only when FPX is enabled.
10879         * testsuite/gcc.target/arc/trsub.c: New test.
10881 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10883         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10884         mult_operator when calculating "type" attribute.
10885         (*fop_<mode>_1_i387): Ditto.
10886         (*fop_xf_1_i387): Ditto.
10887         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10888         Use std::swap to swap operands.  Use RTL expressions to generate
10889         converted pattern.
10891 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10892             Joern Rennecke  <joern.rennecke@embecosm.com>
10894         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10895         declaration.
10896         (emit_pic_move): Remove.
10897         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10898         * config/arc/arc.c (emit_pic_move): Removed.
10899         (TARGET_HAVE_TLS): Define.
10900         (arc_conditional_register_usage): Test for arc_tp_regno.
10901         (arc_print_operand, arc_print_operand_address): Handle TLS
10902         unspecs.
10903         (arc_needs_pcl_p): New function.
10904         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10905         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10906         (arc_raw_symbolic_reference_mentioned_p): Likewise.
10907         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10908         (arc_legitimize_tls_address): Likewise.
10909         (DTPOFF_ZERO_SYM): Define.
10910         (arc_legitimize_pic_address): Make it static, handle TLS cases.
10911         (arc_output_pic_addr_const): Print TLS unspecs.
10912         (prepare_pic_move): New function, replaces emit_pic_move.
10913         (arc_legitimate_constant_p): Handle TLS unspecs.
10914         (arc_legitimate_address_p): Likewise.
10915         (arc_rewrite_small_data_p): Use assert for TLS constants.
10916         (prepare_move_operands): Use prepare_pic_move.
10917         (arc_legitimize_address): Legitimize tls addresses.
10918         (arc_epilogue_uses): Check for arc_tp_regno.
10919         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10920         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10921         Define.
10922         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10923         Likewise.
10924         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10925         %(arc_tls_extra_start_spec).
10926         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10927         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10928         (EH_USES): Define.
10929         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10930         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10931         (UNSPEC_TLS_OFF): Add.
10932         (R10_REG): Define.
10933         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10934         (get_thread_pointersi): New patterns.
10935         * config/arc/arc.opt (mtp-regno): New option.
10936         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10937         (move_dest_operand): Likewise.
10938         * configure: Regenerate.
10939         * configure.ac: Add arc*-*-* case to test for tls.
10940         * doc/invoke.texi (ARC options): Document mtp-regno.
10942 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10944         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10945         the new ARC HS SIMD instructions.
10946         (arc_preferred_simd_mode): New function.
10947         (arc_autovectorize_vector_sizes): Likewise.
10948         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10949         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10950         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10951         (arc_init_builtins): Add new SIMD builtin types.
10952         (arc_split_move): Handle 64 bit vector moves.
10953         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10954         (TARGET_PLUS_QMACW): Define.
10955         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10956         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10957         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10958         (VSUBADD4H): New builtins.
10959         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10960         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10962 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
10963             Matthias Klose  <doko@debian.org>
10965         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10967 2016-04-28  Richard Biener  <rguenther@suse.de>
10969         PR middle-end/70777
10970         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10971         canonicalization.
10973 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
10975         * common/config/sh/sh-common.c: Remove SH5 support.
10976         * config/sh/constraints.md: Likewise.
10977         * config/sh/config/sh/elf.h: Likewise.
10978         * config/sh/linux.h: Likewise.
10979         * config/sh/netbsd-elf.h: Likewise.
10980         * config/sh/predicates.md: Likewise.
10981         * config/sh/sh-c.c: Likewise.
10982         * config/sh/sh-protos.h: Likewise.
10983         * config/sh/sh.c: Likewise.
10984         * config/sh/sh.h: Likewise.
10985         * config/sh/sh.md: Likewise.
10986         * config/sh/sh.opt: Likewise.
10987         * config/sh/sync.md: Likewise.
10988         * config/sh/sh64.h: Delete.
10989         * config/sh/shmedia.h: Likewise.
10990         * config/sh/shmedia.md: Likewise.
10991         * config/sh/sshmedia.h: Likewise.
10992         * config/sh/t-netbsd-sh5-64: Likewise.
10993         * config/sh/t-sh64: Likewise.
10994         * config/sh/ushmedia.h: Likewise.
10996 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10998         * config/i386/i386.md (sign_extend to memory peephole2s): Use
10999         general_reg_operand instead of register_operand predicate.
11001 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11003         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
11005 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
11007         * match.pd (A - B > A, A + B < A): New transformations.
11009 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
11011         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
11012         which defaults to true.  Emit an outer pair of parentheses only if
11013         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
11014         don't emit parentheses for the right-hand operand.
11016 2016-04-27  Jeff Law  <law@redhat.com>
11018         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
11020 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11022         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
11023         (altivec_lvx_<mode>_internal): Document.
11024         (altivec_lvx_<mode>_2op): New define_insn.
11025         (altivec_lvx_<mode>_1op): Likewise.
11026         (altivec_lvx_<mode>_2op_si): Likewise.
11027         (altivec_lvx_<mode>_1op_si): Likewise.
11028         (altivec_stvx_<mode>): Remove.
11029         (altivec_stvx_<mode>_internal): Document.
11030         (altivec_stvx_<mode>_2op): New define_insn.
11031         (altivec_stvx_<mode>_1op): Likewise.
11032         (altivec_stvx_<mode>_2op_si): Likewise.
11033         (altivec_stvx_<mode>_1op_si): Likewise.
11034         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11035         Expand vec_ld and vec_st during parsing.
11036         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
11037         changes.
11038         (altivec_expand_stvx_be): Likewise.
11039         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
11040         address-masking behavior in RTL.
11041         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
11042         address-masking behavior in RTL.
11043         (altivec_expand_builtin): Change builtin code arguments for calls
11044         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
11045         (insn_is_swappable_p): Avoid incorrect swap optimization in the
11046         presence of lvx/stvx patterns.
11047         (alignment_with_canonical_addr): New function.
11048         (alignment_mask): Likewise.
11049         (find_alignment_op): Likewise.
11050         (recombine_lvx_pattern): Likewise.
11051         (recombine_stvx_pattern): Likewise.
11052         (recombine_lvx_stvx_patterns): Likewise.
11053         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
11054         stvx patterns from expand.
11055         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
11056         expansions.
11057         (vector_altivec_store_<mode>): Likewise.
11059 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
11061         * config/aarch64/aarch64.md
11062         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
11063         remove the "fp" attributes.
11064         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
11065         add the "simd" attributes.
11066         (*movdf_aarch64): Likewise.
11067         (*movtf_aarch64): Remove the "fp" attributes.
11068         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
11069         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
11071 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11073         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
11074         rtx to rtx_code_label *.
11075         * rtl.h (maybe_set_first_label_num): Likewise.
11077 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11079         * df-core.c (df_add_problem): Make the problem param be const.
11080         (df_remove_problem): Make local "problem" be const.
11081         * df-problems.c (problem_RD): Make const.
11082         (problem_LR): Likewise.
11083         (problem_LIVE): Likewise.
11084         (problem_MIR): Likewise.
11085         (problem_CHAIN): Likewise.
11086         (problem_WORD_LR): Likewise.
11087         (problem_NOTE): Likewise.
11088         (problem_MD): Likewise.
11089         * df-scan.c (problem_SCAN): Likewise.
11090         * df.h (struct df_problem): Make field "dependent_problem" be
11091         const.
11092         (struct dataflow): Likewise for field "problem".
11093         (df_add_problem): Make param const.
11095 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
11097         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
11098         inter-unit moves to/from vector registers are enabled.  Do not disable
11099         for TARGET_MMX.
11101 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11103         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
11104         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
11105         #define to...
11106         (enum df_problem_id): ...this new enum.
11107         (struct df_problem): Convert field "id" from "int" to
11108         enum df_problem_id.
11110 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11112         * rtl.def: Update comment for "things in the instruction chain" to
11113         reflect the removal of the leading "i" field for INSN_UID in
11114         r210360.  Fix bogus apostrophe.
11116 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
11118         * config/i386/i386.md
11119         (lea arith with mem operand + setcc peephole2): Set operator mode.
11121 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
11123         PR target/70155
11124         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
11125         (dimode_scalar_to_vector_candidate_p): This.
11126         (timode_scalar_to_vector_candidate_p): New function.
11127         (scalar_to_vector_candidate_p): Likewise.
11128         (timode_check_non_convertible_regs): Likewise.
11129         (timode_remove_non_convertible_regs): Likewise.
11130         (remove_non_convertible_regs): Likewise.
11131         (remove_non_convertible_regs): Renamed to ...
11132         (dimode_remove_non_convertible_regs): This.
11133         (scalar_chain::~scalar_chain): Make it virtual.
11134         (scalar_chain::compute_convert_gain): Make it pure virtual.
11135         (scalar_chain::mark_dual_mode_def): Likewise.
11136         (scalar_chain::convert_insn): Likewise.
11137         (scalar_chain::convert_registers): Likewise.
11138         (scalar_chain::add_to_queue): Make it protected.
11139         (scalar_chain::emit_conversion_insns): Likewise.
11140         (scalar_chain::replace_with_subreg): Likewise.
11141         (scalar_chain::replace_with_subreg_in_insn): Likewise.
11142         (scalar_chain::convert_op): Likewise.
11143         (scalar_chain::convert_reg): Likewise.
11144         (scalar_chain::make_vector_copies): Likewise.
11145         (scalar_chain::convert_registers): New pure virtual function.
11146         (class dimode_scalar_chain): New class.
11147         (class timode_scalar_chain): Likewise.
11148         (scalar_chain::mark_dual_mode_def): Renamed to ...
11149         (dimode_scalar_chain::mark_dual_mode_def): This.
11150         (timode_scalar_chain::mark_dual_mode_def): New function.
11151         (timode_scalar_chain::convert_insn): Likewise.
11152         (dimode_scalar_chain::convert_registers): Likewise.
11153         (scalar_chain::compute_convert_gain): Renamed to ...
11154         (dimode_scalar_chain::compute_convert_gain): This.
11155         (scalar_chain::replace_with_subreg): Renamed to ...
11156         (dimode_scalar_chain::replace_with_subreg): This.
11157         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
11158         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
11159         (scalar_chain::make_vector_copies): Renamed to ...
11160         (dimode_scalar_chain::make_vector_copies): This.
11161         (scalar_chain::convert_reg): Renamed to ...
11162         (dimode_scalar_chain::convert_reg ): This.
11163         (scalar_chain::convert_op): Renamed to ...
11164         (dimode_scalar_chain::convert_op): This.
11165         (scalar_chain::convert_insn): Renamed to ...
11166         (dimode_scalar_chain::convert_insn): This.
11167         (scalar_chain::convert): Call convert_registers.
11168         (convert_scalars_to_vector): Change to scalar_chain pointer to
11169         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
11170         in 32-bit mode.  Delete scalar_chain pointer.  Call
11171         free_dominance_info in 64-bit mode.
11172         (pass_stv::gate): Remove TARGET_64BIT check.
11173         (ix86_option_override): Put the 64-bit STV pass before the CSE
11174         pass.
11176 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
11178         * dwarf2out.h (struct dw_loc_descr_node): Remove the
11179         dw_loc_frame_offset field.
11180         * dwarf2out.c (new_loc_descr): Likewise.
11181         (resolve_args_picking_1): Turn the VISITED hash set into a
11182         FRAME_OFFSET hash map. Use it to associate a frame offset to
11183         visited nodes. Remove uses of the CHECKING_P macro.
11184         (resolve_args_picking): Update call to resolve_args_picking_1.
11186 2016-04-27  Martin Liska  <mliska@suse.cz>
11188         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
11189         (free_loop_data): Release vuses of groups.
11191 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
11193         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
11194         instead of redundant use_id and boolean have_use_for.
11195         (struct iv_use): Change sub_id into group_id.  Remove field next.
11196         Move fields: related_cands, n_map_members, cost_map and selected
11197         to ...
11198         (struct iv_group): ... here.  New structure.
11199         (struct iv_common_cand): Use structure declaration directly.
11200         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
11201         (MAX_CONSIDERED_USES): Rename macro to ...
11202         (MAX_CONSIDERED_GROUPS): ... here.
11203         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
11204         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
11205         (dump_uses): Rename to ...
11206         (dump_groups): ... here.  Update all uses.
11207         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
11208         (find_induction_variables): Refactor format of dump information.
11209         (record_sub_use): Delete.
11210         (record_use): Update all uses.
11211         (record_group): New function.
11212         (record_group_use, find_interesting_uses_op): Call above functions.
11213         Update all uses.
11214         (find_interesting_uses_cond): Ditto.
11215         (group_compare_offset): New function.
11216         (split_all_small_groups): Rename to ...
11217         (split_small_address_groups_p): ... here.  Update all uses.
11218         (split_address_groups):  Update all uses.
11219         (find_interesting_uses): Refactor format of dump information.
11220         (add_candidate_1): Update all uses.  Remove redundant check on iv,
11221         base and step.
11222         (add_candidate, record_common_cand): Remove redundant assert.
11223         (add_iv_candidate_for_biv): Update use.
11224         (add_iv_candidate_derived_from_uses): Update all uses.
11225         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
11226         (alloc_use_cost_map): Ditto.
11227         (set_use_iv_cost, get_use_iv_cost): Rename to ...
11228         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
11229         (determine_use_iv_cost_generic): Ditto.
11230         (determine_group_iv_cost_generic): Ditto.
11231         (determine_use_iv_cost_address): Ditto.
11232         (determine_group_iv_cost_address): Ditto.
11233         (determine_use_iv_cost_condition): Ditto.
11234         (determine_group_iv_cost_cond): Ditto.
11235         (determine_use_iv_cost): Ditto.
11236         (determine_group_iv_cost): Ditto.
11237         (set_autoinc_for_original_candidates): Update all uses.
11238         (find_iv_candidates): Update all uses.  Refactor dump information.
11239         (determine_use_iv_costs): Ditto.
11240         (determine_iv_costs): Ditto.
11241         (iv_ca_cand_for_use): Rename to ...
11242         (iv_ca_cand_for_group): ... here.  Update all uses.
11243         (iv_ca_add_use, iv_ca_add_group): Ditto.
11244         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
11245         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
11246         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
11247         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
11248         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
11249         (create_new_iv, adjust_iv_update_pos): Ditto.
11250         (rewrite_use_address): Delete.
11251         (rewrite_use_address_1): Rename to ...
11252         (rewrite_use_address): ... here.
11253         (rewrite_use_compare): Update all uses.
11254         (rewrite_use): Delete.
11255         (rewrite_uses): Rename to ...
11256         (rewrite_groups): ... here.  Update all uses.
11257         (remove_unused_ivs, free_loop_data): Update all uses.
11258         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
11260 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11262         * rtlanal.c (nonzero_bits1): Convert preprocessor check
11263         for WORD_REGISTER_OPERATIONS to runtime check.
11265 2016-04-27  Richard Biener  <rguenther@suse.de>
11267         PR ipa/70760
11268         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
11269         aggregate_value_p to determine if a function result is
11270         returned by reference.
11271         (ipa_pta_execute): Functions having their address taken are
11272         not automatically nonlocal.
11274 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
11276         PR sanitizer/70683
11277         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
11278         * fold-const.c (operand_equal_p): If flag_checking and
11279         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
11280         and if it returns non-zero, assert iterative_hash_expr on both
11281         args is the same.
11283 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
11285         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
11287 2016-04-27  Nick Clifton  <nickc@redhat.com>
11289         PR middle-end/49889
11290         * varasm.c (merge_weak): Generate an error if an attempt is made
11291         to convert a non-weak static function into a weak, public function.
11293 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11295         * params.def (MAX_PARTITION_SIZE): New param.
11296         * doc/invoke.texi: Document lto-max-partition.
11298 2016-04-27  Richard Biener  <rguenther@suse.de>
11300         PR ipa/70785
11301         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
11302         function cummulating used_from_other_partition, externally_visible
11303         and force_output from aliases.
11304         (refered_from_nonlocal_var): Likewise.
11305         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
11306         node flags properly.
11308 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
11310         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
11311         (-Wmemset-elt-size): New item.
11313 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11315         PR ada/70759
11316         * stor-layout.h (internal_reference_types): Delete.
11317         * stor-layout.c (reference_types_internal): Likewise.
11318         (internal_reference_types): Likewise.
11319         (layout_type) <REFERENCE_TYPE>: Adjust.
11321 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
11323         PR sanitizer/70683
11324         * tree.h (inchash::add_expr): Add FLAGS argument.
11325         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
11326         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
11327         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
11328         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
11329         if swap_tree_comparison (code) is smaller than code, hash that
11330         and arguments in the other order.  Hash CONVERT_EXPR the same
11331         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
11332         of ADDR_EXPR of decl as the decl itself.  Add or remove
11333         OEP_ADDRESS_OF from recursive flags as needed.  For
11334         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
11335         operands commutatively and only the third one normally.
11336         For internal CALL_EXPR hash in CALL_EXPR_IFN.
11338 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11340         * config/rtems.h (LIB_SPEC): Add -latomic.
11342 2016-04-27  Joel Sherrill  <joel@rtems.org>
11344         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
11345         xilink.ld and flags not relevant to RTEMS.
11347 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11349         * toplev.c (backend_init_target): Avoid calling init_reload when using
11350         LRA.
11352 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
11354         * reorg.c (try_merge_delay_insns): Declare i and j inside the
11355         for loops rather than one for the whole function.
11357 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
11359         * match.pd (X + CST CMP X): New transformation.
11361 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
11363         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
11364         * fold-const.c (fold_binary_loc): Remove 2 transformations
11365         superseded by match.pd.
11366         * match.pd (x+x -> x*2): Generalize to integers.
11368 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
11370         * config/i386/i386.md (operation on memory peephole): Duplicate an
11371         existing peephole and adapt it to match lea rather than an operation
11372         that clobbers CC.
11374         PR rtl-optimization/57193
11375         * opts.c (default_options_table): Add OPT_frename_registers at -O2
11376         and above.
11377         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
11379 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
11381         * tree-if-conv.c (any_pred_load_store): New static variable.
11382         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
11383         any_pred_load_store instead of and_mask_load_store.
11384         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
11385         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
11386         (combine_blocks, tree_if_conversion): Ditto.
11388 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
11390         PR tree-optimization/70771
11391         PR tree-optimization/70775
11392         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
11393         virtual PHI nodes.  Delete parameter.
11394         (if_convertible_loop_p_1): Delete argument to above function.
11395         (predicate_all_scalar_phis): Delete code handling single-argument
11396         PHIs.
11397         (tree_if_conversion): Mark and update virtual SSA.
11399 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11401         PR target/61821
11402         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
11403         (x86_elf_aligned_common): Rename to ...
11404         (x86_elf_aligned_decl_common): ... this.
11405         Add decl arg.  Switch to .lbss for largecomm object.  Use
11406         LARGECOMM_SECTION_ASM_OP.
11407         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
11408         renaming.
11409         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
11410         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
11411         Pass new decl arg.
11412         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11413         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
11415 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11417         PR target/59407
11418         * config/i386/i386.c (SECTION_LARGE): Define.
11419         (x86_64_elf_select_section): Set it for large data/bss sections.
11420         Only clear SECTION_WRITE for .lrodata.
11421         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
11422         data/bss sections.
11423         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
11424         * varasm.c (default_elf_asm_named_section): Grow flagchars.
11425         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
11426         SECTION_MACH_DEP.
11427         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
11428         * doc/tm.texi: Regenerate.
11430 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
11432         PR bootstrap/70704
11433         * configure.ac (--enable-checking): Document extra flag, for
11434         non-release builds default to --enable-checking=yes,extra.
11435         If misc checking and extra checking, define CHECKING_P to 2 instead
11436         of 1.
11437         * common.opt (fchecking=): Add.
11438         * doc/invoke.texi (-fchecking=): Document.
11439         * doc/install.texi: Document --enable-checking changes.
11440         * configure: Regenerated.
11441         * config.in: Regenerated.
11443 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11445         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
11446         attribute instead of which_alternative.
11447         * config/i386/sse.md (*mov<mode>_internal): Ditto.
11448         Use EXT_REX_SSE_REG_P where appropriate.
11450 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11452         * config/i386/predicates.md (const0_operand): Do not match
11453         const_wide_int code.
11454         (const1_operand): Ditto.
11456 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11458         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
11459         for SSE constm1 operands and TARGET_AVX512VL.
11460         (*movti_internal): Ditto.
11461         (*mov<mode>_or): Use constm1_operand predicate.
11462         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
11463         for SSE vector_all_ones operands and TARGET_AVX512VL.
11464         * config/i386/predicates.md (constm1_operand): New predicate.
11465         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
11466         emission of constant -1 load.
11468 2016-04-25  Jason Merrill  <jason@redhat.com>
11470         * gdbinit.in: Skip is-a.h.
11472         * attribs.c (register_scoped_attributes): Fix logic.
11473         * attribs.h: Declare register_scoped_attributes.
11475 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11477         * config/rs6000/rs6000-builtin.def: Correct pasto error for
11478         stxvd2x and stxvw4x built-in functions.
11480 2016-04-25  DJ Delorie  <dj@redhat.com>
11482         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
11483         (ashrhi3): Likewise.
11484         (lshrhi3): Likewise.
11486 2016-04-25  Richard Biener  <rguenther@suse.de>
11488         PR tree-optimization/70780
11489         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
11490         wasn't visited yet.
11491         (compute_antic): Mark blocks with abnormal preds as visited as
11492         they have a final empty antic-in solution already.
11494 2016-04-25  Michael Collison  <michael.collison@linaro.org>
11496         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
11498 2016-04-25  Michael Collison  <michael.collison@linaro.org>
11500         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
11501         mode is VQI to improve mixed mode vectorization.
11502         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
11503         define_insn to match low half of signed vaddw.
11504         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
11505         define_insn to match high half of signed vaddw.
11506         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
11507         define_insn to match low half of unsigned vaddw.
11508         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
11509         define_insn to match high half of unsigned vaddw.
11510         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
11511         (arm_simd_check_vect_par_cnst_half_p): Likewise.
11512         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
11513         for new function.
11514         (arm_simd_check_vect_par_cnst_half_p): Likewise.
11515         * config/arm/predicates.md (vect_par_constant_high): Support
11516         big endian and simplify by calling
11517         arm_simd_check_vect_par_cnst_half
11518         (vect_par_constant_low): Likewise.
11520 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11522         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
11523         predicate for operand 2.
11525 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
11526             H.J. Lu  <hongjiu.lu@intel.com>
11528         * config/i386/i386-protos.h (standard_sse_constant_p): Add
11529         machine_mode argument.
11530         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
11531         constm1_rtx operands.  For VOIDmode constants, get mode from
11532         pred_mode.  Check mode size if the mode is supported by ABI.
11533         (standard_sse_constant_opcode): Do not use standard_constant_p.
11534         Strictly check ABI support for all-ones operands.
11535         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
11536         immediates. Update calls to standard_sse_constant_p.
11537         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
11538         (ix86_rtx_costs): Ditto.
11539         * config/i386/i386.md (*movxi_internal_avx512f): Use
11540         nonimmediate_or_sse_const_operand instead of vector_move_operand.
11541         Use (v,BC) alternative instead of (v,C). Use register_operand
11542         checks instead of MEM_P.
11543         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
11544         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
11545         isa attribute.  Use register_operand checks instead of MEM_P.
11546         (*movti_internal): Use nonimmediate_or_sse_const_operand for
11547         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
11548         alternative and corresponding sse2 isa attribute.
11549         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
11550         to standard_sse_constant_p.
11551         (FP constant splitters): Ditto.
11552         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
11553         (C): Ditto.
11554         * config/i386/predicates.md (constm1_operand): Remove.
11555         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
11556         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
11557         vector_all_ones_operand instead of constm1_operand.
11559 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11561         * print-rtl.c (print_rtx_insn_vec): New function.
11562         * print-rtl.h: New prototype.
11563         * store-motion.c (struct st_expr): Make avail_stores a vector.
11564         (st_expr_entry): Adjust.
11565         (free_st_expr_entry): Likewise.
11566         (print_store_motion_mems): Likewise.
11567         (find_moveable_store): Likewise.
11568         (compute_store_table): Likewise.
11569         (delete_store): Likewise.
11570         (build_store_vectors): Likewise.
11572 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11574         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11576 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11578         * vec.h (vec_safe_contains): New function.
11579         (vec::contains): Likewise.
11580         (vec::begin): Likewise.
11581         (vec::end): Likewise.
11583 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
11585         PR sanitizer/70712
11586         * cfgexpand.c (expand_stack_vars): Fix typo.
11588 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11590         * system.h (list, map, set, vector): Include conditionally.
11591         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11592         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11593         * ipa-icf.c (INCLUDE_LIST): Define.
11594         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11595         * config/sh/sh.c (INCLUDE_VECTOR): Define.
11596         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11597         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11598         * cp/logic.cc (INCLUDE_LIST): Define.
11599         * fortran/trans-common.c (INCLUDE_MAP): Define.
11601 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11603         * auto-profile.c: Remove <string.h> include.
11604         * ipa-icf-gimple.c: Remove <list> include.
11605         * diagnostic.c: Remove <new> include.
11606         * genmatch.c: Likewise.
11607         * pretty-print.c: Likewise.
11608         * toplev.c: Likewise
11609         * c/c-objc-common.c: Likewise.
11610         * cp/error.c: Likewise.
11611         * fortran/error.c: Likewise.
11613 2016-04-22  Richard Biener  <rguenther@suse.de>
11615         * lto-streamer-in.c (input_ssa_names): Do not allocate
11616         GIMPLE_NOP for all SSA names.
11617         * lto-streamer-out.c (output_ssa_names): Do not output
11618         SSA names that should have been released.
11620 2016-04-22  Richard Biener  <rguenther@suse.de>
11622         PR tree-optimization/70740
11623         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11624         VDEF.
11626 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
11628         PR target/70750
11629         * config/i386/predicates.md (call_insn_operand): Replace
11630         sibcall_memory_operand with memory_operand.
11632 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
11634         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11635         has_single_use() tests.
11636         (register_edge_assert_for_1): Likewise.
11637         (find_assert_locations_1): Check the liveness bitmap instead of
11638         checking has_single_use().
11640 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11642         PR target/70728
11643         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11644         Extract AVX-512BW constraint from AVX.
11646 2016-04-21  Richard Biener  <rguenther@suse.de>
11648         PR tree-optimization/70725
11649         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11650         for phi_convertible_by_degenerating_args.
11651         (predicate_all_scalar_phis): Handle single-argument PHIs.
11653 2016-04-21  Richard Biener  <rguenther@suse.de>
11655         PR middle-end/70747
11656         * fold-const.c (fold_comparison): Return properly typed
11657         constant boolean.
11659 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
11661         PR tree-optimization/70715
11662         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11663         after expanding BASE using expand_simple_operations.
11665 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11667         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11668         New transformations.
11670 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11672         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11674 2016-04-20  Jan Hubicka  <jh@suse.cz>
11676         * ipa-inline.c (can_inline_edge_p): Pass caller info to
11677         ultiimate_alias_target.
11678         (update_callee_keys): Likewise.
11679         (lookup_recursive_calls): Likewise.
11680         (speculation_useful_p): Likewise.
11682 2016-04-20  Jan Hubicka  <jh@suse.cz>
11684         PR ipa/70018
11685         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11686         (set_nothrow_flag_1): ... this; handle interposition correctly;
11687         recurse on aliases and thunks.
11688         (cgraph_node::set_nothrow_flag): New.
11689         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11690         functions compiled with non-call exceptions that binds to current
11691         def.
11692         (propagate_nothrow): Be safe WRT interposition.
11693         * cgraph.h (set_nothrow_flag): Update prototype.
11695 2016-04-18  Jan Hubicka  <jh@suse.cz>
11697         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11698         max_loop_iterations_int.
11699         (tree_unswitch_outer_loop): Likewise.
11701 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11703         PR tree-optimization/69489
11704         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11705         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11706         Revise dump message.
11707         (if_convertible_bb_p): Remove check on edge count of basic block's
11708         predecessors.
11710 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11712         PR tree-optimization/56625
11713         PR tree-optimization/69489
11714         * tree-data-ref.h (DR_INNERMOST): New macro.
11715         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11716         hashing struct innermost_loop_behavior.
11717         (ref_DR_map): Remove.
11718         (innermost_DR_map): New map.
11719         (baseref_DR_map): Revise comment.
11720         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11721         to innermost_DR_map accroding to its innermost loop behavior.
11722         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11723         to its innermost loop behavior.
11724         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11725         Add initialization for innermost_DR_map.  Record memory reference
11726         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11727         have innermost loop behavior.
11728         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
11729         innermost_DR_map.
11731 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
11733         * config/i386/i386.md (*lea<mode>_general_1): Rename from
11734         *lea_general_1.  Use explicit SWI12 mode interator.
11735         (*lea<mode>_general_2): Rename from *lea_general_2.
11736         Use explicit SWI12 mode interator.
11737         (*lea<mode>_general_3): Rename from *lea_general_3.
11738         Use explicit SWI12 mode interator.
11739         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11740         Use explicit SWI12 mode interator.
11741         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11742         Use explicit SWI48 mode interator.
11744 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11746         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11747         Short-cut unaligned load and store cases.  Handle all integer
11748         vector modes.
11749         (ix86_expand_vector_move_misalign): Short-cut unaligned load
11750         and store cases.  Call ix86_avx256_split_vector_move_misalign
11751         directly without checking mode class.
11753 2016-04-20  Andrew Pinski  <apinski@cavium.com>
11754             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11756         PR target/64971
11757         * config/aarch64/aarch64.md (sibcall): Force call
11758         address to be DImode for ILP32.
11759         (sibcall_value): Likewise.
11761 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11763         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11765 2016-04-20  Richard Biener  <rguenther@suse.de>
11767         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11768         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11769         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11770         (maybe_push_res_to_seq): Adjust.
11771         * gimple-fold.c (maybe_build_generic_op): Likewise.
11773 2016-04-20  Marek Polacek  <polacek@redhat.com>
11775         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11776         rather than true.
11778 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
11780         * config/i386/sse.md (vec_unpacks_lo_hi): Always
11781         use kmovw to support AVX512F target.
11783 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11785         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11787 2016-04-20  Marek Polacek  <polacek@redhat.com>
11789         PR tree-optimization/70725
11790         * tree-if-conv.c (is_false_predicate): New function.
11791         (predicate_mem_writes): Use it.
11793 2016-04-20  Richard Biener  <rguenther@suse.de>
11795         PR tree-optimization/70726
11796         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11797         shift amounts from a pattern stmt operand.
11799 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11801         PR target/70674
11802         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11803         stack_restore_from_fpr pattern when restoring r15.
11804         (s390_optimize_prologue): Strip away the memory barrier in the
11805         parallel when trying to get rid of restore insns.
11806         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11807         definition for loading the stack pointer from an FPR.  Compared to
11808         the normal move insn this pattern includes a full memory barrier.
11810 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
11812         PR middle-end/70680
11813         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11814         implicitly linear or lastprivate iterator on the outer context.
11816 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11818         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11819         alignment check.
11820         * config/i386/i386.md (ssememalign): Removed.
11821         * config/i386/sse.md: Remove ssememalign attribute from patterns.
11823 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11825         PR target/69201
11826         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11827         const short * to __builtin_ia32_loaddquhi512_mask.
11828         (_mm512_maskz_loadu_epi16): Likewise.
11829         (_mm512_mask_storeu_epi16): Pass short * to
11830         __builtin_ia32_storedquhi512_mask.
11831         (_mm512_mask_loadu_epi8): Pass const char * to
11832         __builtin_ia32_loaddquqi512_mask.
11833         (_mm512_maskz_loadu_epi8): Likewise.
11834         (_mm512_mask_storeu_epi8): Pass char * to
11835         __builtin_ia32_storedquqi512_mask.
11836         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11837         const double * to __builtin_ia32_loadupd512_mask.
11838         (_mm512_mask_loadu_pd): Likewise.
11839         (_mm512_maskz_loadu_pd): Likewise.
11840         (_mm512_storeu_pd): Pass double * to
11841         __builtin_ia32_storeupd512_mask.
11842         (_mm512_mask_storeu_pd): Likewise.
11843         (_mm512_loadu_ps): Pass const float * to
11844         __builtin_ia32_loadups512_mask.
11845         (_mm512_mask_loadu_ps): Likewise.
11846         (_mm512_maskz_loadu_ps): Likewise.
11847         (_mm512_storeu_ps): Pass float * to
11848         __builtin_ia32_storeups512_mask.
11849         (_mm512_mask_storeu_ps): Likewise.
11850         (_mm512_mask_loadu_epi64): Pass const long long * to
11851         __builtin_ia32_loaddqudi512_mask.
11852         (_mm512_maskz_loadu_epi64): Likewise.
11853         (_mm512_mask_storeu_epi64): Pass long long *
11854         to __builtin_ia32_storedqudi512_mask.
11855         (_mm512_loadu_si512): Pass const int * to
11856         __builtin_ia32_loaddqusi512_mask.
11857         (_mm512_mask_loadu_epi32): Likewise.
11858         (_mm512_maskz_loadu_epi32): Likewise.
11859         (_mm512_storeu_si512): Pass int * to
11860         __builtin_ia32_storedqusi512_mask.
11861         (_mm512_mask_storeu_epi32): Likewise.
11862         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11863         char * to __builtin_ia32_storedquqi256_mask.
11864         (_mm_mask_storeu_epi8): Likewise.
11865         (_mm256_mask_loadu_epi16): Pass const short * to
11866         __builtin_ia32_loaddquhi256_mask.
11867         (_mm256_maskz_loadu_epi16): Likewise.
11868         (_mm_mask_loadu_epi16): Pass const short * to
11869         __builtin_ia32_loaddquhi128_mask.
11870         (_mm_maskz_loadu_epi16): Likewise.
11871         (_mm256_mask_loadu_epi8): Pass const char * to
11872         __builtin_ia32_loaddquqi256_mask.
11873         (_mm256_maskz_loadu_epi8): Likewise.
11874         (_mm_mask_loadu_epi8): Pass const char * to
11875         __builtin_ia32_loaddquqi128_mask.
11876         (_mm_maskz_loadu_epi8): Likewise.
11877         (_mm256_mask_storeu_epi16): Pass short * to.
11878         __builtin_ia32_storedquhi256_mask.
11879         (_mm_mask_storeu_epi16): Pass short * to.
11880         __builtin_ia32_storedquhi128_mask.
11881         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11882         const double * to __builtin_ia32_loadupd256_mask.
11883         (_mm256_maskz_loadu_pd): Likewise.
11884         (_mm_mask_loadu_pd): Pass onst double * to
11885         __builtin_ia32_loadupd128_mask.
11886         (_mm_maskz_loadu_pd): Likewise.
11887         (_mm256_mask_storeu_pd): Pass double * to
11888         __builtin_ia32_storeupd256_mask.
11889         (_mm_mask_storeu_pd): Pass double * to
11890         __builtin_ia32_storeupd128_mask.
11891         (_mm256_mask_loadu_ps): Pass const float * to
11892         __builtin_ia32_loadups256_mask.
11893         (_mm256_maskz_loadu_ps): Likewise.
11894         (_mm_mask_loadu_ps): Pass const float * to
11895         __builtin_ia32_loadups128_mask.
11896         (_mm_maskz_loadu_ps): Likewise.
11897         (_mm256_mask_storeu_ps): Pass float * to
11898         __builtin_ia32_storeups256_mask.
11899         (_mm_mask_storeu_ps): ass float * to
11900         __builtin_ia32_storeups128_mask.
11901         (_mm256_mask_loadu_epi64): Pass const long long * to
11902         __builtin_ia32_loaddqudi256_mask.
11903         (_mm256_maskz_loadu_epi64): Likewise.
11904         (_mm_mask_loadu_epi64): Pass const long long * to
11905         __builtin_ia32_loaddqudi128_mask.
11906         (_mm_maskz_loadu_epi64): Likewise.
11907         (_mm256_mask_storeu_epi64): Pass long long * to
11908         __builtin_ia32_storedqudi256_mask.
11909         (_mm_mask_storeu_epi64): Pass long long * to
11910         __builtin_ia32_storedqudi128_mask.
11911         (_mm256_mask_loadu_epi32): Pass const int * to
11912         __builtin_ia32_loaddqusi256_mask.
11913         (_mm256_maskz_loadu_epi32): Likewise.
11914         (_mm_mask_loadu_epi32): Pass const int * to
11915         __builtin_ia32_loaddqusi128_mask.
11916         (_mm_maskz_loadu_epi32): Likewise.
11917         (_mm256_mask_storeu_epi32): Pass int * to
11918         __builtin_ia32_storedqusi256_mask.
11919         (_mm_mask_storeu_epi32): Pass int * to
11920         __builtin_ia32_storedqusi128_mask.
11921         * config/i386/i386-builtin-types.def (PCSHORT): New.
11922         (PINT64): Likewise.
11923         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11924         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11925         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11926         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11927         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11928         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11929         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11930         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11931         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11932         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11933         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11934         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11935         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11936         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11937         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11938         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11939         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11940         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11941         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11942         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11943         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11944         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11945         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11946         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11947         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11948         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11949         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11950         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11951         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11952         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11953         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11954         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11955         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11956         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11957         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11958         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11959         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11960         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11961         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11962         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11963         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11964         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11965         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11966         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11967         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11968         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11969         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11970         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11971         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11972         use UNSPEC_STOREU.
11973         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11974         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11975         load nor store.
11976         (ix86_expand_vector_move_misalign): Likewise.
11977         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11978         to scalar function prototype for unaligned load/store builtins.
11979         (ix86_expand_special_args_builtin): Updated.
11980         * config/i386/sse.md (UNSPEC_LOADU): Removed.
11981         (UNSPEC_STOREU): Likewise.
11982         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11983         (VI_ULOADSTORE_F_AVX512VL): Likewise.
11984         (ssescalarsize): Handle V4TI, V2TI and V1TI.
11985         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11986         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11987         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11988         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11989         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11990         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11991         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11992         (<avx512>_storedqu<mode>_mask): Likewise.
11993         (*sse4_2_pcmpestr_unaligned): Likewise.
11994         (*sse4_2_pcmpistr_unaligned): Likewise.
11995         (*mov<mode>_internal): Renamed to ...
11996         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
11997         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11998         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11999         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
12001 2016-04-19  Richard Biener  <rguenther@suse.de>
12003         PR tree-optimization/70171
12004         * tree-ssa-phiprop.c: Include stor-layout.h.
12005         (phiprop_insert_phi): Handle the aggregate copy case.
12006         (propagate_with_phi): Likewise.
12008 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
12010         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
12011         instead of simplify_gen_subreg (... , 0).
12012         (ix86_delegitimize_address): Ditto.
12013         (ix86_split_divmod): Ditto.
12014         (ix86_split_copysign_const): Ditto.
12015         (ix86_split_copysign_var): Ditto.
12016         (ix86_expand_args_builtin): Ditto.
12017         (ix86_expand_round_builtin): Ditto.
12018         (ix86_expand_special_args_builtin): Ditto.
12019         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
12020         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
12021         (udivmodqi4): Ditto.
12022         (absneg splitters): Ditto.
12023         (*jcc_bt<mode>_1): Ditto.
12025 2016-04-19  Richard Biener  <rguenther@suse.de>
12027         PR tree-optimization/70724
12028         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
12029         restoring out from ...
12030         (free_scc_vn): ... here.
12031         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
12032         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
12033         tail merging.
12034         (pass_fre::execute): Restore SSA info.
12036 2016-04-19  Richard Biener  <rguenther@suse.de>
12038         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
12039         * gimple-walk.c (walk_gimple_op): Initialize it.
12040         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
12041         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
12042         remapping SSA names of defs.
12043         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
12044         adjustment.
12046 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
12048         PR middle-end/70689
12049         * lra-constraints.c (equiv_substition_p): New.
12050         (process_alt_operands): Use it.
12051         (swap_operands): Swap it.
12052         (curr_insn_transform): Update it.
12054 2016-04-18  Michael Matz  <matz@suse.de>
12056         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
12057         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
12058         * tree-core.h (tree_type_common.align): Use bit-field.
12059         (tree_type_common.spare): New.
12060         (tree_decl_common.off_align): Make smaller.
12061         (tree_decl_common.align): Use bit-field.
12063         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
12064         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
12065         (scan_sharing_clauses): Ditto.
12066         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
12067         (omp_finish_file): Ditto.
12068         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
12069         (layout_decl): Ditto.
12070         (relayout_decl): Ditto.
12071         (finalize_record_size): Use SET_TYPE_ALIGN.
12072         (finalize_type_size): Ditto.
12073         (finish_builtin_struct): Ditto.
12074         (layout_type): Ditto.
12075         (initialize_sizetypes): Ditto.
12076         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
12077         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
12078         (lookup_field_for_decl): Use SET_DECL_ALIGN.
12079         (get_chain_field): Ditto.
12080         (get_trampoline_type): Ditto.
12081         (get_nl_goto_field): Ditto.
12082         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12083         SET_DECL_ALIGN.
12084         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
12085         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
12086         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
12087         (build_qualified_type): Use SET_TYPE_ALIGN.
12088         (build_aligned_type, build_range_type_1): Ditto.
12089         (build_atomic_base): Ditto.
12090         (build_common_tree_nodes): Ditto.
12091         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
12092         (expand_one_stack_var_at): Ditto.
12093         * coverage.c (build_var): Use SET_DECL_ALIGN.
12094         * except.c (init_eh): Ditto.
12095         * function.c (assign_parm_setup_block): Ditto.
12096         * symtab.c (increase_alignment_1): Ditto.
12097         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
12098         * tree-vect-stmts.c (ensure_base_align): Ditto.
12099         * varasm.c (align_variable): Ditto.
12100         (assemble_variable): Ditto.
12101         (build_constant_desc): Ditto.
12102         (output_constant_def_contents): Ditto.
12104         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
12105         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
12106         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
12107         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
12108         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
12110 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
12112         PR target/70708
12113         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
12114         replace %vmovsd with "%vmovq".
12115         (vec_concatv2df): Likewise.
12117 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
12119         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
12120         (*vec_extractv2si_0): Ditto.
12121         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
12122         (zero_extended_scalar_load_operand splitters): Ditto.
12123         (vec_extract splitters): Ditto.
12124         (*vec_extractv4si_0_zext): Ditto.
12125         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
12126         and lowpart_subreg.
12127         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
12128         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
12129         (*sse4_1_extractps): Use lowpart_subreg.
12130         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
12132 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12134         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
12135         gld requirements.
12136         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
12137         Mention Solaris 11 packaging changes.
12138         Update gas and gld requirements.
12139         Remove reference to pre-Solaris 10 bug.
12140         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
12141         systems and bugs.
12142         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
12143         with cc.
12145 2016-04-17  Jan Hubicka  <jh@suse.cz>
12147         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
12148         max_loop_iterations_int.
12150 2016-04-18  Richard Biener  <rguenther@suse.de>
12152         PR tree-optimization/43434
12153         * tree-ssa-structalias.c (struct vls_data): New.
12154         (visit_loadstore): Handle all pointer-based accesses.
12155         (compute_dependence_clique): Compute a bitmap of restrict tags
12156         assigned bases and pass it to visit_loadstore.
12158 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
12160         PR target/70711
12161         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
12162         armv8.1-a and armv8.1-a+crc.
12164 2016-04-18  Richard Biener  <rguenther@suse.de>
12166         PR tree-optimization/70701
12167         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
12168         references after translating through a memcpy.
12170 2016-04-18  Richard Biener  <rguenther@suse.de>
12172         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
12173         (compute_antic): ... here.  For partial antic use regular
12174         postorder and scrap iteration.
12175         (compute_partial_antic_aux): Remove unused return value.
12176         (init_pre): Do not allocate postorder.
12177         (fini_pre): Do not free postorder.
12179 2016-04-18  Richard Biener  <rguenther@suse.de>
12181         PR middle-end/37870
12182         * expmed.c (extract_bit_field_1): Remove broken case
12183         using a wider MODE_INT mode.
12185 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
12187         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
12188         unless compiling with at least GCC-4.8.
12190 2016-04-17  Jan Hubicka  <jh@suse.cz>
12192         PR bootstrap/70706
12193         * graphite.c (graphite_finalize): Update call to
12194         tree_estimate_probability.
12195         * predict.h (tree_estimate_probability): Update prototype.
12197 2016-04-17  Jan Hubicka  <jh@suse.cz>
12199         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
12200         (tree_estimate_probability): Likewise.
12201         (pass_profile::execute): Update.
12202         (report_predictor_hitrates): New function.
12203         * profile.c (compute_branch_probabilities): Use it.
12204         * predict.h (report_predictor_hitrates): Declare.
12206 2016-04-17  Jan Hubicka  <jh@suse.cz>
12208         PR ipa/70018
12209         * cgraph.h (cgraph_node::set_const_flag,
12210         cgraph_node::set_pure_flag): Update prototype to return bool;
12211         update comment.
12212         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
12213         of interposable symbol are interposable, too.
12214         (cgraph_set_const_flag_1): Rename to ...
12215         (set_const_flag_1): ... this one; change to self recursive function
12216         instead of call_for_symbol_thunks_and_aliases. Handle correctly
12217         clearnig the flag in all variants and also virtual thunks of const
12218         functions are pure; track if any change was done.
12219         (cgraph_node::set_const_flag): Update.
12220         (struct set_pure_flag_info): New struct.
12221         (cgraph_set_pure_flag_1): Rename to ...
12222         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
12223         rather than pointer encoded flags; track if any changes was done;
12224         handle correctly clearning flag and setting flag of aliases already
12225         declared const.
12226         (cgraph_node::set_pure_flag): Update.
12227         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
12229 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12231         PR other/70433
12232         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
12233         backslash in label.
12235 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12237         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
12238         '{}<> ' as escape-for-record.
12240 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12242         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
12243         structure.
12245 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12247         PR other/70185
12248         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
12249         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
12250         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
12251         * passes.c (finish_optimization_passes): Only call
12252         finish_graph_dump_file if dfi->graph_dump_initialized.
12253         (execute_function_dump, pass_init_dump_file): Use
12254         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
12256 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12258         PR tree-optimization/70256
12259         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
12260         (debug_varmap): New function.
12262 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12264         PR other/70183
12265         * passes.c (pass_manager::register_pass): Propagate pflags.
12267 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12269         PR other/68875
12270         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
12271         * passes.c (pass_manager::pass_manager): Declare and init p_start in
12272         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
12273         check if it's equal to p_start.
12274         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
12276 2016-04-15  Jan Hubicka  <jh@suse.cz>
12278         PR ipa/70018
12279         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
12280         function does not bind to current def.
12281         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
12282         handle conservatively calls to functions that does not need to bind
12283         to current def.
12284         (check_call): Update call of worse_state.
12285         (ignore_edge_for_nothrow): Update.
12286         (ignore_edge_for_pure_const): Likewise.
12287         (propagate_pure_const): Update calls to worse_state.
12288         (skip_function_for_local_pure_const): Reformat comments.
12290 2016-04-15  Jan Hubicka  <jh@suse.cz>
12292         PR ipa/70018
12293         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
12294         (cgraph_node::function_symbol): Likewise.
12295         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12296         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
12297         (symtab_node::ultimate_alias_target): Add REF parameter.
12298         (symtab_node::binds_to_current_def_p): Declare.
12299         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
12300         (cgraph_node::function_symbol): Likewise.
12301         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12302         (cgraph_node::get_availability): Likewise.
12303         (cgraph_edge::binds_to_current_def_p): New inline function.
12304         (varpool_node::get_availability): Add REF parameter.
12305         (varpool_node::ultimate_alias_target): Likewise.
12306         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
12307         (symtab_node::binds_to_current_def_p): Likewise.
12308         * varpool.c (varpool_node::get_availability): Likewise.
12310 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
12312         PR target/70662
12313         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
12314         Fix mode size check.
12316 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
12318         * BASE-VER: Set to 7.0.0.
12320 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
12322         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
12324 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12326         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
12327         architecture revisions.
12329 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
12331         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
12332         * config/i386/i386.c (ix86_using_red_zone): No longer static.
12333         * config/i386/i386.md (stack decrement to push peepholes): Guard
12334         with !x86_using_red_zone ().
12336 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
12338         PR c++/70675
12339         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
12340         to dump_generic_node.
12341         (NIY): Pass also flags to do_niy.
12343 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
12345         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
12346         (simd_clone_vector_of_formal_parm_types)
12347         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
12348         (simd_clone_mangle, simd_clone_create)
12349         (simd_clone_adjust_return_type, create_tmp_simd_array)
12350         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
12351         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
12352         (ipa_simd_modify_function_body, simd_clone_linear_addend)
12353         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
12354         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
12355         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
12356         * omp-simd-clone.c: ... this new file.
12357         (simd_clone_vector_of_formal_parm_types): Make it static.
12358         * Makefile.in (OBJS): Add omp-simd-clone.o.
12360 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
12362         PR target/70662
12363         * config/i386/sse.md: Use proper memory operand modifiers.
12366 2016-04-15  Richard Biener  <rguenther@suse.de>
12367         Alan Modra  <amodra@gmail.com>
12369         PR tree-optimization/70130
12370         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
12371         when alignment stays not the same and no not use the realign
12372         scheme then.
12374 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12376         PR target/70669
12377         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12378         direct move handlers for KFmode. Change TFmode handlers test from
12379         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
12381 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
12383         PR c++/70594
12384         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
12385         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
12386         (inlined_polymorphic_ctor_dtor_block_p): Use it.
12387         * tree-ssa-live.c (remove_unused_scope_block_p): When
12388         in_ctor_dtor_block, avoid discarding not just BLOCKs with
12389         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
12390         block_ultimate_origin is FUNCTION_DECL.
12391         (remove_unused_locals): If current_function_decl is
12392         polymorphic_ctor_dtor_p, pass initial true to
12393         remove_unused_scope_block_p' is_ctor_dtor_block.
12395 2016-04-14  Martin Sebor  <msebor@redhat.com>
12397         PR c++/69517
12398         PR c++/70019
12399         PR c++/70588
12400         * doc/extend.texi (Variable Length): Revert.
12402 2016-04-14  Marek Polacek  <polacek@redhat.com>
12403             Jan Hubicka  <hubicka@ucw.cz>
12405         PR c++/70029
12406         * tree.c (verify_type): Disable the canonical type of main variant
12407         check.
12409 2016-04-14  Jason Merrill  <jason@redhat.com>
12411         * cfgexpand.c, expr.c: Revert previous change.
12413 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12415         PR middle-end/70643
12416         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
12417         when building a mem ref for the incoming reduction variable.
12419 2016-04-14  Richard Biener  <rguenther@suse.de>
12421         PR tree-optimization/70614
12422         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
12423         loop if the evolution dropped to chrec_dont_know.
12424         (interpret_condition_phi): Likewise.
12426 2016-04-14  Richard Biener  <rguenther@suse.de>
12428         PR tree-optimization/70623
12429         * tree-ssa-pre.c (changed_blocks): Make global ...
12430         (compute_antic): ... local here.  Move and fix worklist
12431         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
12432         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
12433         worklist handling, dump when ANTIC_IN changed.
12434         (compute_partial_antic_aux): Remove worklist handling.
12435         (init_pre): Do not compute post dominators.  Add a comment about
12436         the CFG order chosen.
12437         (fini_pre): Do not free post dominators.
12439 2016-04-13  Martin Sebor  <msebor@redhat.com>
12441         PR c++/69517
12442         PR c++/70019
12443         PR c++/70588
12444         * doc/extend.texi (Variable Length): Document C++ specifics.
12446 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
12448         PR c++/70641
12449         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
12450         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
12451         eh edges have been purged.
12453         PR c++/70594
12454         * tree-sra.c (create_access_replacement,
12455         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
12456         gets fancy name.
12457         * tree-pretty-print.c (dump_fancy_name): New function.
12458         (dump_decl_name, dump_generic_node): Use it.
12460 2016-04-13  Jason Merrill  <jason@redhat.com>
12462         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
12463         * expr.c (expand_expr_real_1): Likewise.
12465 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12467         * config/i386/i386.md (kunpckhi): Swap operands.
12468         (kunpcksi): Likewise.
12469         (kunpckdi): Likewise.
12470         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
12471         (vec_pack_trunc_<mode>): Likewise.
12473 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
12475         PR debug/70628
12476         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
12478         PR middle-end/70633
12479         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
12480         gimplification turns some element into non-constant.
12482         PR debug/70628
12483         * rtl.h (convert_memory_address_addr_space_1): New prototype.
12484         * explow.c (convert_memory_address_addr_space_1): No longer static,
12485         add NO_EMIT argument and don't call convert_modes if true, pass
12486         it down recursively, remove break after return.
12487         (convert_memory_address_addr_space): Adjust caller.
12488         * simplify-rtx.c (simplify_unary_operation_1): Call
12489         convert_memory_address_addr_space_1 instead of convert_memory_address,
12490         if it returns NULL, don't simplify.
12492 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12494         PR target/70630
12495         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
12497 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12499         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12500         Bump the upper SIMDLEN limits, so that if the return type or
12501         characteristic type if the return type is void can be passed in
12502         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
12503         allowed.
12505 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12507         PR target/70640
12508         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
12509         Do not use "=" constraint on an input constraint.
12510         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12511         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12512         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
12513         generates (neg (abs ...)) instead of (abs ...).
12515 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12517         PR rtl-optimization/70596
12518         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
12519         just invalidate LRA data and reset them.  Adjust dump wording.
12521 2016-04-12  Martin Liska  <mliska@suse.cz>
12523         Revert
12524         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12526         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12527         estimates here.
12528         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12529         max_loop_iterations_int.
12530         (tree_unswitch_outer_loop): Likewise.
12531         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12532         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12534 2016-04-12  Tom de Vries  <tom@codesourcery.com>
12536         PR tree-optimization/68756
12537         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
12538         instead of new_name.
12540 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12542         PR tree-optimization/70602
12543         * tree-sra.c (generate_subtree_copies): Don't write anything into
12544         constant pool decls.
12546         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
12547         regardless whether there are depend clauses or not.
12549 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12551         PR target/70381
12552         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
12553         target attribute and pragma from changing the -mfloat128
12554         and -mfloat128-hardware options.
12556         * doc/extend.texi (Additional Floating Types): Document PowerPC
12557         __float128 restrictions.
12559 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12561         PR target/70133
12562         * config/aarch64/driver-aarch64.c
12563         (aarch64_get_extension_string_for_isa_flags): New.
12564         (arch_extension): Rename to...
12565         (aarch64_arch_extension): ...This.
12566         (ext_to_feat_string): Rename to...
12567         (aarch64_extensions): ...This.
12568         (aarch64_core_data): Keep track of architecture extension flags.
12569         (cpu_data): Rename to...
12570         (aarch64_cpu_data): ...This.
12571         (aarch64_arch_driver_info): Keep track of architecture extension
12572         flags.
12573         (get_arch_name_from_id): Rename to...
12574         (get_arch_from_id): ...This, change return type.
12575         (host_detect_local_cpu): Update and reformat for renames, handle
12576         extensions through common infrastructure.
12578 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12580         PR target/70133
12581         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12582         track of a canonical flag name.
12583         (all_extensions): Likewise.
12584         (arch_to_arch_name): Also track extension flags enabled by the arch.
12585         (all_architectures): Likewise.
12586         (aarch64_parse_extension): Move to here.
12587         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12588         rework.
12589         (aarch64_rewrite_selected_cpu): Update for above change.
12590         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12591         are handled, such that the single explicit value enabled by an
12592         extension is kept seperate from the implicit values it also enables.
12593         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12594         to here.
12595         (aarch64_parse_extension): New.
12596         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12597         here to config/aarch64/aarch64-protos.h.
12598         (aarch64_parse_extension): Move from here to
12599         common/config/aarch64/aarch64-common.c.
12600         (aarch64_option_print): Update.
12601         (aarch64_declare_function_name): Likewise.
12602         (aarch64_start_file): Likewise.
12603         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12604         the canonical flag for extensions.
12605         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12606         flags.
12608 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12610         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12611         AARCH64_FL_CRC.
12613 2016-04-09  Tom de Vries  <tom@codesourcery.com>
12615         PR tree-optimization/68953
12616         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12617         first to last subscript.
12619 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
12621         PR tree-optimization/70586
12622         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12623         for any calls.
12625 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12627         PR lto/70289
12628         PR ipa/70348
12629         PR tree-optimization/70373
12630         PR middle-end/70533
12631         PR middle-end/70534
12632         PR middle-end/70535
12633         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12634         clauses for acc parallel reductions as necessary.  Error on those
12635         that are private.
12636         * omp-low.c (scan_sharing_clauses): Don't install variables which
12637         are used in acc parallel reductions.
12638         (lower_rec_input_clauses): Remove dead code.
12639         (lower_oacc_reductions): Add support for reference reductions.
12640         (lower_reduction_clauses): Remove dead code.
12641         (lower_omp_target): Don't remap variables appearing in acc parallel
12642         reductions.
12643         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12645 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
12647         PR middle-end/70593
12648         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12649         with multiple SSA_NAME defs, force the outputs other than first
12650         to be live before calling live_track_process_def on each output.
12652         PR rtl-optimization/70574
12653         * fwprop.c (forward_propagate_and_simplify): Don't add
12654         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12655         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12656         paradoxical subregs within *loc.
12658 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
12660         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12661         -ftree-parallelize-loops={0,1}.
12662         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12663         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12664         * config/ia64/hpux.h (LIB_SPEC): Likewise.
12665         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12666         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12668 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
12670         PR sanitizer/70541
12671         * asan.c (instrument_derefs): If we get unknown location, extract it
12672         with EXPR_LOCATION.
12673         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12675 2016-04-08  Tom de Vries  <tom@codesourcery.com>
12677         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12678         implicit firstprivate clause.
12680 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12682         PR target/70566
12683         * config/arm/thumb2.md (tst + branch-> lsls + branch
12684         peephole below *orsi_not_shiftsi_si): Require that condition
12685         register is dead after the peephole.
12686         (second peephole after the above): Likewise.
12688 2016-04-08  Alan Modra  <amodra@gmail.com>
12690         PR target/70117
12691         * builtins.c (fold_builtin_classify): For IBM extended precision,
12692         look at just the high-order double to test for NaN.
12693         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
12694         test just the high double for Inf but both doubles for subnormal
12695         limit.
12697 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
12699         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12700         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12701         node->simdclone->mask_mode != VOIDmode masks.
12702         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
12703         earlier, use it instead of node->simdclone.
12704         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12705         Set clonei->mask_mode.
12707 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12709         PR c/70436
12710         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12711         Pass it through to cp_parser_already_scoped_statement.
12712         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
12713         it through to cp_parser_statement.
12714         (cp_parser_statement): Pass IF_P through to
12715         cp_parser_iteration_statement.
12716         (cp_parser_pragma): Adjust call to
12717         cp_parser_iteration_statement.
12719 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12721         PR c/70436
12722         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12723         resolve a future -Wparentheses warning.
12724         * omp-low.c (scan_sharing_clauses): Likewise.
12725         * tree-parloops.c (eliminate_local_variables): Likewise.
12727 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
12729         PR rtl-optimization/70398
12730         * lra-constraints.c (process_address_1): Check zero scale and code
12731         for reloading with zero scale.
12733 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
12735         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12736         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12738 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
12740         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12741         Add support for AVX512F clones, include them by default for
12742         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
12743         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12744         up to 128.
12746         PR middle-end/70550
12747         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12748         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12749         firstprivate clauses.
12750         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12751         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12752         (lower_omp_target): Set TREE_NO_WARNING for
12753         non-addressable possibly uninitialized vars which are copied into
12754         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12756 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
12758         * config/pa/predicates.md (integer_store_memory_operand): Accept
12759         REG+D operands with a large offset when reload_in_progress is true.
12760         (floating_point_store_memory_operand): Likewise.
12762 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12764         PR c++/70336
12765         * match.pd (nested int casts): Limit to GIMPLE.
12767 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
12769         PR ipa/66223
12770         * ipa-devirt.c (maybe_record_node): Fix comment; use
12771         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12773 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12775         PR rtl-optimization/70542
12776         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12777         if there are any uses other than insn or debug insns.
12779 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
12780             Jakub Jelinek  <jakub@redhat.com>
12782         PR tree-optimization/70509
12783         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12784         Shift HOST_WIDE_INT_1U instead of 1.
12786 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
12788         PR tree-optimization/70509
12789         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12790         of the vector base type for index.
12792 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
12794         PR target/70510
12795         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12797 2016-04-05  Richard Biener  <rguenther@suse.de>
12799         PR tree-optimization/70526
12800         * tree-sra.c (build_ref_for_offset): Use prev_base to
12801         extract the alias pointer type.
12803 2016-04-05  Richard Biener  <rguenther@suse.de>
12805         * dse.c (struct store_info): Remove alias_set member.
12806         (struct read_info_type): Likewise.
12807         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12808         spill_deleted, clear_alias_set_lookup): Remove.
12809         (get_group_info): Remove dead base == NULL_RTX case.
12810         (dse_step0): Remove initialization of removed variables.
12811         (delete_dead_store_insn): Reomve alias set dumping.
12812         (free_read_records): Remove alias_set handling.
12813         (canon_address): Remove alias_set_out parameter.
12814         (record_store): Remove spill_alias_set, it's always zero.
12815         (check_mem_read_rtx): Likewise.
12816         (dse_step2): Rename from ...
12817         (dse_step2_nospill): ... this.  Adjust.
12818         (scan_stores): Rename from ...
12819         (scan_stores_nospill): ... this.
12820         (scan_reads): Rename from ...
12821         (scan_reads_nospill): ... this.
12822         (scan_stores_spill, scan_reads_spill): Remove.
12823         (dse_step3_scan): Remove for_spills argument which is always false.
12824         (dse_step3): Likewise.
12825         (dse_step5): Rename from ...
12826         (dse_step5_nospill): ... this.  Remove alias_set handling.
12827         (rest_of_handle_dse): Adjust.
12829 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12831         PR target/70525
12832         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12833         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12834         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12835         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12837 2016-04-05  Richard Biener  <rguenther@suse.de>
12839         PR middle-end/70499
12840         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12841         non-register type temporaries into SSA.
12843 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
12845         PR ipa/66223
12846         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12847         calls when sanitizing.
12848         (possible_polymorphic_call_target_p): Fix formatting.
12850 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12851             Jakub Jelinek <jakub@redhat.com>
12853         PR middle-end/70457
12854         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12855         to ensure a call statement is compatible with a built-in's
12856         prototype.
12857         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12858         Likewise.
12860 2016-04-04  Richard Biener  <rguenther@suse.de>
12862         PR rtl-optimization/70484
12863         * rtl.h (canon_output_dependence): Declare.
12864         * alias.c (canon_output_dependence): New function.
12865         * dse.c (record_store): Use canon_output_dependence rather
12866         than canon_true_dependence.
12868 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12870         PR ipa/68881
12871         * cgraph.h (symtab_node::copy_visibility_from): New function.
12872         * symtab.c (symtab_node::copy_visibility_from): New function.
12873         * ipa-visibility.c (optimize_weakref): New function.
12874         (function_and_variable_visibility): Use it.
12876 2016-04-04  Martin Liska  <mliska@suse.cz>
12878         PR hsa/70402
12879         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12880         value that is really in range handled by SBR instruction.
12881         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12882         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12883         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12885 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
12887         PR target/70416
12888         PR target/67391
12889         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12890         set, but not for SP_REG operands.
12892 2016-04-02  Martin Sebor  <msebor@redhat.com>
12894         PR c++/67376
12895         * fold-const.c (maybe_nonzero_address): New function.
12896         (fold_comparison): Call it.  Fold equality and relational
12897         expressions involving null pointers.
12898         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12900 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
12902         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12903         the "Y" constraint (scalar FP 0.0 immediate).
12905         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12906         Add the "const_double" to the list of operand constraints.
12908 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
12910         PR rtl-optimization/70467
12911         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12912         If low word of the last operand is 0, just emit addition/subtraction
12913         for the high word.
12915 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12917         PR target/70404
12918         * config/s390/s390.c (s390_expand_insv): Check for everything
12919         constant instead of just VOIDmode stuff.
12921 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12923         PR target/70496
12924         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12926 2016-04-01  Nathan Sidwell  <nathan@acm.org>
12928         * tree.def (TRY_CATCH_EXPR): Correct documentation.
12930 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
12932         PR rtl-optimization/70461
12933         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12934         is necessary.
12936 2016-03-31  Martin Liska  <mliska@suse.cz>
12938         PR hsa/70399
12939         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12940         a tree value or an immediate integer value to a buffer
12941         that is eventually copied to a BRIG section.
12942         (emit_immediate_operand): Call the function here.
12943         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12944         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12945         of class' fields that are removed.
12946         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12947         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12948         m_brig_repr_size fields.
12950 2016-03-31  Martin Liska  <mliska@suse.cz>
12952         PR hsa/70391
12953         * hsa-gen.c (hsa_function_representation::update_dominance): New
12954         function.
12955         (convert_addr_to_flat_segment): Likewise.
12956         (gen_hsa_memory_set): New alignment argument.
12957         (gen_hsa_ctor_assignment): Likewise.
12958         (gen_hsa_insns_for_single_assignment): Provide alignment
12959         to gen_hsa_ctor_assignment.
12960         (gen_hsa_insns_for_direct_call): Add new argument.
12961         (expand_lhs_of_string_op): New function.
12962         (expand_string_operation_builtin): Likewise.
12963         (expand_memory_copy): New function.
12964         (expand_memory_set): New function.
12965         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12966         (convert_switch_statements): Change signature.
12967         (generate_hsa): Use a return value of the function.
12968         (pass_gen_hsail::execute): Do not call
12969         convert_switch_statements here.
12970         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12971         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12972         (hsa_function_representation::update_dominance): New function.
12974 2016-03-31  Martin Liska  <mliska@suse.cz>
12976         PR hsa/70391
12977         * hsa-brig.c (emit_directive_variable): Emit alignment
12978         according to hsa_symbol::m_align.
12979         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12980         (dump_hsa_symbol): Dump alignment of HSA symbols.
12981         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12982         (gen_hsa_addr_with_align): New function.
12983         (hsa_bitmemref_alignment): Use newly added function.
12984         (gen_hsa_insns_for_load): Likewise.
12985         (gen_hsa_insns_for_store): Likewise.
12986         (gen_hsa_memory_copy): New argument added.
12987         (gen_hsa_insns_for_single_assignment): Respect
12988         alignment for assignments processed via gen_hsa_memory_copy.
12989         (gen_hsa_insns_for_direct_call): Likewise.
12990         (gen_hsa_insns_for_return): Likewise.
12991         (gen_function_def_parameters): Set default alignment.
12992         * hsa.c (hsa_object_alignment): New function.
12993         (hsa_byte_alignment): Pasted function.
12994         * hsa.h (hsa_symbol::m_align): New field.
12996 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12998         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12999         scratch field for goto case.
13001 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
13003         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
13005 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
13007         PR target/70442
13008         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
13009         (scalar_chain::convert_insn): Call convert_op for reg
13010         moves to handle undefined registers.
13012 2016-03-31  Nathan Sidwell  <nathan@acm.org>
13014         PR c++/70393
13015         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
13016         Assert we don't want to move backwards.
13018 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
13020         PR target/70453
13021         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
13023 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
13025         PR rtl-optimization/70460
13026         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
13027         with operand from REG_LABEL_OPERAND, instead substitute
13028         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
13029         Don't do anything for REG_NON_LOCAL_GOTO jumps.
13031 2016-03-31  Martin Liska  <mliska@suse.cz>
13033         * passes.c (execute_one_pass): Do not call
13034         todo_after for a discarded function.
13036 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
13038         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
13039         (no_cost, infinite_cost): Initialize the new field.
13040         (get_computation_cost_at): Record setup cost.
13041         (determine_use_iv_cost_address): Skip cost computation for sub
13042         uses if we can estimate it without losing accuracy.
13044 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
13046         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
13047         estimates here.
13048         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13049         max_loop_iterations_int.
13050         (tree_unswitch_outer_loop): Likewise.
13051         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
13052         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
13054 2016-03-30  Richard Biener  <rguenther@suse.de>
13056         PR middle-end/70450
13057         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
13059 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
13061         PR target/70421
13062         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
13063         in gen_blendm expander.
13065 2016-03-30  Nick Clifton  <nickc@redhat.com>
13067         PR target/62254
13068         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
13069         case where we are already provided with an SImode SUBREG.
13071 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
13073         PR target/70439
13074         * config/i386/i386.c (ix86_expand_epilogue): Properly check
13075         conflict between DRAP register and __builtin_eh_return.
13077 2016-03-30  Michael Matz  <matz@suse.de>
13078             Richard Biener  <rguenther@suse.de>
13080         PR ipa/12392
13081         * ipa-polymorphic-call.c (struct type_change_info): Change
13082         speculative to an unsigned allowing to limit the work we do.
13083         (csftc_abort_walking_p): New inline function..
13084         (check_stmt_for_type_change): Limit the number of may-defs
13085         skipped for speculative devirtualization to
13086         max-speculative-devirt-maydefs.
13087         * params.def (max-speculative-devirt-maydefs): New param.
13088         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
13090 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
13092         PR target/63890
13093         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
13094         and TARGET_MACHO.
13096 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
13098         PR tree-optimization/59124
13099         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
13100         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
13102 2016-03-29  Jeff Law  <law@redhat.com>
13104         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
13106 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13108         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
13109         to HOST_WIDE_INT.
13111 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13113         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
13114         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
13115         gcrt0.o if linking dynamically.
13117 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13119         PR ipa/70283
13120         * ipa-devirt.c (methods_equal_p): New function.
13121         (compare_virtual_tables): Use it.
13122         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
13123         * cgraphclones.c (clone_function_name_1): Use
13124         symbol_table::symbol_suffix_separator.
13125         * coverage.c (build_var): Likewise.
13126         * symtab.c (symbol_table::symbol_suffix_separator): New.
13128 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
13130         PR rtl-optimization/70429
13131         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
13132         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
13133         mode != result_mode.
13135         PR c++/70353
13136         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
13138         PR tree-optimization/70405
13139         * ssa-iterators.h (num_imm_uses): Add missing braces.
13141 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
13143         PR rtl-optimization/68695
13144         * ira-color.c (allocno_copy_cost_saving): New.
13145         (improve_allocation): Use it.
13147 2016-03-29  Richard Henderson  <rth@redhat.com>
13149         PR middle-end/70355
13150         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
13152 2016-03-29  Richard Biener  <rguenther@suse.de>
13154         PR middle-end/70424
13155         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
13156         use alignment returned by get_pointer_alignment_1 if it is
13157         bigger than BITS_PER_UNIT.
13158         * builtins.c (get_pointer_alignment_1): Do not return true
13159         for alignment extracted from SSA info.
13161 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
13163         * config/ft32/ft32.opt (mnodiv): New.
13164         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
13165         * doc/invoke.texi (FT32 Options -mnodiv): New.
13167 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
13169         PR target/70406
13170         * config/i386/i386.md (define_split, andn): Fix modes.
13172 2016-03-26  Richard Biener  <rguenther@suse.de>
13173             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13175         PR ipa/70366
13176         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
13177         instead of
13178         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
13179         as 2nd argument to cl_optimization_restore().
13181 2016-03-25  Richard Henderson  <rth@redhat.com>
13183         PR target/70120
13184         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
13185         * config/aarch64/aarch64-protos.h: Declare it.
13186         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
13188 2016-03-25  Alan Modra  <amodra@gmail.com>
13190         PR target/70052
13191         * config/rs6000/constraints.md (j): Simplify.
13192         * config/rs6000/predicates.md (easy_fp_constant): Exclude
13193         decimal float 0.D.
13194         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
13195         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
13196          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
13197         in all constraint alternatives.
13198         (movtd_64bit_nodm): Delete "j" constraint alternative.
13200 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
13202         * tree-ssa-propagate.c: Enhance docs for
13203         SSA_PROP_NOT_INTERESTING.
13205 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
13207         * doc/extend.texi: Fix typo in documentation to pure attribute.
13209 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
13211         PR target/70319
13212         * config/pa/pa.md (bswapdi2): Use a scratch register.
13214 2016-03-24  Richard Henderson  <rth@redhat.com>
13216         PR middle-end/69845
13217         * fold-const.c (extract_muldiv_1): Correct test for multiplication
13218         overflow.
13220 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
13222         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
13223         using ix86_expand_binary_operator instead of gen_andsi3.
13225 2016-03-24  Richard Biener  <rguenther@suse.de>
13227         PR tree-optimization/70396
13228         * tree-vect-stmts.c (vectorizable_comparison): Use
13229         get_vectype_for_scalar_type.
13231 2016-03-24  Richard Biener  <rguenther@suse.de>
13233         PR middle-end/70370
13234         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
13235         with register bases.
13237 2016-03-24  Richard Biener  <rguenther@suse.de>
13239         PR tree-optimization/70372
13240         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
13241         build_all_ones_cst to also handle vector types correctly.
13243 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13245         PR target/70381
13246         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
13247         -mfloat128 here.
13249 2016-03-23  Marek Polacek  <polacek@redhat.com>
13251         PR c++/69884
13252         * doc/invoke.texi: Document -Wignored-attributes.
13254 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
13256         PR tree-optimization/69042
13257         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
13258         parameter from 30 to 40.
13260 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
13262         PR tree-optimization/69042
13263         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
13264         for use with constant offset stripped in base.
13266 2016-03-23  Richard Biener  <rguenther@suse.de>
13268         PR middle-end/70251
13269         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
13270         mode compatibility check.
13271         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13273 2016-03-23  Jeff Law  <law@redhat.com>
13275         PR tree-optimization/64058
13276         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
13277         CONFLICT_COUNT.
13278         (struct ssa_conflicts): Move up earlier in the file.
13279         (conflicts_, var_map_): New static variables.
13280         (initialize_conflict_count): New function to initialize the
13281         CONFLICT_COUNT field for each conflict pair.
13282         (compare_pairs): Lazily initialize the conflict count and use it
13283         as the first tie-breaker.
13284         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
13285         and wipe conflicts_ and map_ around the call to qsort.  Remove
13286         special case for 2 coalesce pairs.
13287         * bitmap.c (bitmap_count_unique_bits): New function.
13288         (bitmap_count_bits_in_word): New function, extracted from
13289         bitmap_count_bits.
13290         (bitmap_count_bits): Use bitmap_count_bits_in_word.
13291         * bitmap.h (bitmap_count_unique_bits): Declare it.
13293 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
13295         PR target/69917
13296         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
13297         transparent alias chain for decl assembler name.
13298         * config/sol2.c (solaris_assemble_visibility): Likewise.
13300 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13302         * config/arm/arm1020e.md (1020call_op): Reduce reservation
13303         duration.
13304         (v10_fdivs): Likewise.
13305         (v10_fdivd): Likewise.
13307 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13309         PR driver/70132
13310         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
13311         to not call fclose twice on file.
13313 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13315         PR tree-optimization/70354
13316         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13317         oprnd0 is wider than oprnd1 and there is a cast from the wider
13318         type to oprnd1, mask it with the mask of the narrower type.
13320         PR target/70321
13321         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
13322         Optimize TARGET_STV splitters, if high or low word of last argument
13323         is 0 or -1.
13325 2016-03-22  Jeff Law  <law@redhat.com>
13327         PR target/70232
13328         tree-ssa-threadbackward.c
13329         (fsm_find_control_statement_thread_paths): Correctly distinguish
13330         between old style jump threads vs FSM jump threads.
13332 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
13334         PR target/70302
13335         * config/i386/i386.c (scalar_chain::convert_op): Support
13336         uninitialized register usage case.
13338 2016-03-22  Richard Biener  <rguenther@suse.de>
13340         PR middle-end/70251
13341         * genmatch.c (gen_transform): Adjust last parameter to a three-state
13342         int...
13343         (capture::gen_transform): ... to change behavior when substituting
13344         a condition into cond or not-cond expr context.
13345         (dt_simplify::gen_1): Adjust.
13346         * gimple-match-head.c: Include gimplify.h for unshare_expr.
13347         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
13348         last change and instead change to
13349         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
13350         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13352 2016-03-22  Anthony Green  <green@moxielogic.com>
13354         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
13355         issue for moxiebox targets.
13356         (CC1PLUS_SPEC): Ditto.
13358 2016-03-22  Richard Biener  <rguenther@suse.de>
13360         PR middle-end/70333
13361         * fold-const.c (extract_muldiv_1): Properly perform multiplication
13362         in the wide type.
13364 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13366         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
13368 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13370         PR target/70325
13371         * config/i386/i386.c (def_builtin): Handle
13372         OPTION_MASK_ISA_AVX512VL to be and-ed with other
13373         bits.
13374         (const struct builtin_description bdesc_special_args[]):
13375         Remove duplicate ISA bits.
13377 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
13379         PR target/70329
13380         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
13381         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
13382         in a way that works also for AVX512BW.
13384         PR target/70300
13385         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
13386         instead of source if operands[1] is xmm16 and above and
13387         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
13388         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
13390         PR c++/70295
13391         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
13392         on assign if (*from_p) is a comparison, set it to
13393         TREE_NO_WARNING (*from_p).
13395 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
13397         PR middle-end/70326
13398         * lra.c (restore_scratches): Ignore deleted insns.
13400 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
13401             Jakub Jelinek  <jakub@redhat.com>
13403         PR tree-optimization/70317
13404         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
13405         to HONOR_NANS.
13407 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
13409         PR target/70327
13410         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
13411         of ix86_expand_move.
13412         (movoi): Ditto.
13413         (movti): Use general_operand for operand 1 predicate.
13415 2016-03-21  Martin Liska  <mliska@suse.cz>
13417         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
13418         insns.
13419         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
13421 2016-03-21  Martin Liska  <mliska@suse.cz>
13423         PR ipa/70306
13424         * ipa-icf.c (sem_function::parse): Skip static
13425         constructors and destructors.
13427 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
13429         PR target/70296
13430         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
13431         function-like macro, peek following token(s) if it is followed
13432         by CPP_OPEN_PAREN token with optional padding in between, and
13433         if not, don't treat it like a macro.
13435 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13436             Alexander Monakov  <amonakov@ispras.ru>
13438         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
13439         for the stabs debug format.
13441 2016-03-21  Richard Biener  <rguenther@suse.de>
13443         PR tree-optimization/70310
13444         * tree-vect-generic.c (expand_vector_condition): Fold the built
13445         condition.
13447 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
13449         PR target/70293
13450         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
13451         Block third alternative for AVX-512VL target,
13453 2016-03-21  Martin Liska  <mliska@suse.cz>
13455         PR hsa/70234
13456         * hsa-brig.c (emit_function_directives): Mark unemitted
13457         global variables for emission.
13458         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
13459         (get_symbol_for_decl): Likewise.
13460         * hsa.h (struct hsa_symbol): New flag.
13462 2016-03-21  Richard Biener  <rguenther@suse.de>
13464         PR tree-optimization/70288
13465         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
13466         we do not estimate unsimplified all-constant conditionals or
13467         switches as optimized away.
13469 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
13471         PR rtl-optimization/69102
13472         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
13473         when we have a readonly dependency context.
13475 2016-03-18  Jeff Law  <law@redhat.com>
13477         PR rtl-optimization/70263
13478         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
13479         (update_equiv_regs): When trying to move a store to after the insn
13480         that sets the source of the store, make sure the store occurs after
13481         the insn that sets the source of the store.  When successful note
13482         the REG_EQUIV note created in the dump file.
13484 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
13485             Bernd Schmidt  <bschmidt@redhat.com>
13487         * doc/extend.texi: Document more potential problems with basic asms.
13489 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
13491         PR rtl-optimization/70278
13492         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
13493         VOIDmode.
13495 2016-03-18  Jason Merrill  <jason@redhat.com>
13497         * calls.c (load_register_parameters): Fix zero size sibcall logic.
13499 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13501         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
13502         values to 128b regs.
13504 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13506         PR tree-optimization/70252
13507         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
13508         boolean vector has a proper number of elements.
13509         (supportable_narrowing_operation): Likewise.
13511 2016-03-18  Tom de Vries  <tom@codesourcery.com>
13513         PR ipa/70269
13514         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
13516 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
13518         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
13519         instead of replace_rtx for DEBUG_INSNs.
13521 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13523         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
13524         load type reservations.
13526 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
13528         PR target/70188
13529         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
13530         define_constraint for "Q" and "T" constraints.
13532 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
13534         Tweak the pipeline model for Exynos M1
13536         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
13537         model.
13539 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
13541         PR c/70264
13542         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
13543         where one or both locations aren't within a line_map.
13545 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13547         PR driver/70192
13548         * opts.c (finish_options): Don't set flag_pie to the default if
13549         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
13550         if it is -1.
13552 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
13554         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
13555         true as ALL_REGS argument to replace_rtx.
13557 2016-03-17  Richard Biener  <rguenther@suse.de>
13559         PR debug/70271
13560         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
13561         last.
13563 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13565         PR target/70245
13566         * rtl.h (replace_rtx): Add ALL_REGS argument.
13567         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
13568         equality and assert mode is the same, instead of just rtx pointer
13569         equality.
13570         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13571         true as ALL_REGS argument to replace_rtx.
13573 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
13575         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13576         for boolean vector with vector mode only.
13577         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13579 2016-03-17  Nick Clifton  <nickc@redhat.com>
13581         PR target/70162
13582         * config/rx/rx.c (rx_print_integer): Print negative constants in
13583         decimal.
13585 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13587         PR target/70261
13588         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13590 2016-03-16  Richard Henderson  <rth@redhat.com>
13591             Richard Biener  <rguenth@suse.de>
13593         PR middle-end/70240
13594         PR middle-end/68215
13595         PR tree-opt/68714
13596         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13597         first operand as is_gimple_condexpr.
13599         PR middle-end/70240
13600         PR middle-end/68215
13601         Revert r231575
13602         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
13603         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13604         Do not gimplify the result.
13605         (do_unop): Adjust call to tree_vec_extract.
13606         (do_binop): Likewise.
13607         (do_compare): Likewise.
13608         (do_plus_minus): Likewise.
13609         (do_negate): Likewise.
13610         (expand_vector_condition): Likewise.
13611         (do_cond): Likewise.
13613 2016-03-16  Richard Henderson  <rth@redhat.com>
13615         PR target/70048
13616         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13617         (aarch64_classify_address): Use it.
13618         (aarch64_legitimize_address): Force all subexpressions of PLUS
13619         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
13621 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
13622             Richard Biener  <rguenth@suse.de>
13624         PR target/70245
13625         * rtlanal.c (replace_rtx): For REG, if from is a REG,
13626         return to even if only REGNO is equal, and assert
13627         mode is the same.
13629 2016-03-11  Jeff Law  <law@redhat.com>
13631         PR rtl-optimization/70224
13632         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13634 2016-03-16  Richard Henderson  <rth@redhat.com>
13636         PR middle-end/70199
13637         * function.h (struct function): Add has_forced_label_in_static.
13638         * gimplify.c (force_labels_r): Set it.
13639         * lto-streamer-in.c (input_struct_function_base): Read it.
13640         * lto-streamer-out.c (output_struct_function_base): Write it.
13641         * tree-inline.c (has_label_address_in_static_1): Remove.
13642         (copy_forbidden): Remove fndecl parameter; test
13643         has_forced_label_in_static.
13644         (inline_forbidden_p): Update call to copy_forbidden.
13645         (tree_versionable_function_p): Likewise.
13646         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13647         (chkp_versioning): Likewise.
13648         * tree-inline.h (copy_forbidden): Update decl.
13650 2016-03-16  Marek Polacek  <polacek@redhat.com>
13652         PR c/70093
13653         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13654         function being thunked if the result type doesn't have fixed size.
13655         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13656         doesn't have fixed size.
13658 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
13660         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13661         reporting malformed loop nest.
13663 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13665         PR lto/70187
13666         * ipa-devirt.c (possible_polymorphic_call_targets): Move
13667         nodes.length () == 1 test to before first nodes[0] access.
13669 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13671         PR tree-optimization/68715
13672         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13673         single_pred_p test.
13675 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13677         PR tree-optimization/68809
13678         * graphite-scop-detection.c (same_close_phi_node): Test if result types
13679         are the same.
13681 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
13682             Sandra Loosemore  <sandra@codesourcery.com>
13684         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13685         on leaf attribute. Mention ELF interposition problems.
13687 2016-03-16  Alan Modra  <amodra@gmail.com>
13689         PR rtl-optimization/69195
13690         PR rtl-optimization/47992
13691         * ira.c (indirect_jump_optimize): Ignore artificial defs.
13692         Add comments.
13694 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
13696         PR bootstrap/69513
13697         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13699 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13701         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13703 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
13705         PR rtl-optimization/70222
13706         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13707         optimization if mode is different from result_mode, queue up masking
13708         of the result in outer_op.  Formatting fix.
13710         PR middle-end/70239
13711         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13712         of safe_grow.
13714 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13716         PR rtl-optimization/69032
13717         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13718         looping backwards over basic block insns.
13720 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13722         PR target/66660
13723         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13724         to non-speculative when propagating trap bits.
13726 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13728         PR rtl-optimization/63384
13729         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13730         DEBUG_INSN_P insns.
13732 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13734         PR target/64411
13735         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13736         factored out from ...
13737         (sched_analyze_insn): ... here.
13738         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13739         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13740         get_implicit_reg_pending_clobbers in it.
13741         (setup_id_reg_sets): Use setup_id_implicit_regs.
13742         (deps_init_id): Ditto.
13744 2016-03-15  Tom de Vries  <tom@codesourcery.com>
13746         PR ipa/70161
13747         * cgraph.c (cgraph_node::get_body): Save, reset and restore
13748         dump_file_name.
13749         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13750         execute_function_dump.
13751         (execute_one_pass): Don't dump function if it will be dumped after ipa
13752         transform.
13754 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
13756         * genrecog.c (match_pattern_2): If pred is NULL don't call
13757         safe_predicate_mode on it.
13759 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
13761         PR middle-end/70219
13762         * lra-constraints.c (delete_move_and_clobber): Change assertion
13763         to also allow dregno == 0.
13765 2016-03-14  Richard Henderson  <rth@redhat.com>
13767         PR tree-opt/68714
13768         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13769         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13770         (reassociate_bb): Use optimize_vec_cond_expr; avoid
13771         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13772         on vectors.
13774 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
13776         PR target/70083
13777         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13778         regs.
13779         (lra_create_live_ranges_1): initialize hard register biggest_mode to
13780         VOIDmode.
13781         * lra-constraints.c (split_reg): For hard regs, try to find the
13782         biggest single-register mode used in the function.
13784 2016-03-14  Richard Biener  <rguenther@suse.de>
13786         PR tree-optimization/56365
13787         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13788         constants to compare against.
13790 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
13792         PR target/70098
13793         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13794         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13795         (define_split for the GPR case): Use int_reg_operand instead of
13796         gpc_reg_operand for the output.
13798 2016-03-14  Tom de Vries  <tom@codesourcery.com>
13800         PR tree-optimization/70045
13801         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13802         create_empty_if_region_on_edge argument.
13804 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
13806         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13807         (STACK_CHECK_PROTECT): Likewise.
13808         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13809         (STACK_CHECK_PROTECT): Likewise.
13810         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13811         (STACK_CHECK_PROTECT): Likewise.
13812         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13813         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13814         (STACK_CHECK_PROTECT): Likewise.
13816 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
13818         PR rtl-optimization/69307
13819         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13820         registers in modes that span more than one register.
13822 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
13824         PR target/69614
13825         * lra-constraints.c (delete_move_and_clobber): New.
13826         (remove_inheritance_pseudos): Use it.
13828 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
13830         PR ada/70017
13831         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13832         the libcall is LCT_THROW.
13833         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13834         for the checking routine.
13836 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13838         PR target/70131
13839         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13840         optimization if we have direct move.
13841         (roundu32<mode>2_fprs): Likewise.
13843 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
13845         PR target/70123
13846         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13847         be rematerialized.
13848         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13849         Arguments swapped.  All callers changed.  Take reg_renumber into
13850         account, and Calculate and compare register ranges for hard regs.
13852 2016-03-11  Jeff Law  <law@redhat.com>
13854         PR tree-optimization/70190
13855         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13856         Handle cases where we can not extract the taken edge, even though we
13857         found a constant value.
13859         PR tree-optimization/64058
13860         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13861         (num_coalesce_pairs): Move up earlier in file.
13862         (find_coalesce_pair): Initialize the INDEX field for each pair
13863         discovered.
13864         (compare_pairs): No longer sort on the elements in each pair.
13865         Instead break ties with the index of the coalesce pair.
13867 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13869         PR target/70002
13870         * config/aarch64/aarch64-protos.h
13871         (aarch64_save_restore_target_globals): New prototype.
13872         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13873         Call the above when popping pragma.
13874         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13875         New function.
13876         (aarch64_set_current_function): Rewrite using the above.
13878 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13880         PR tree-optimization/70177
13881         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13882         (extract_ops_from_tree): ... this.  In the 2 argument
13883         overload remove _1 suffix.
13884         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13885         (extract_ops_from_tree): ... this.
13886         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13887         Adjust callers.
13888         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13889         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13890         extract_ops_from_tree instead of 2 operand one.
13892 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
13894         PR tree-optimization/70013
13895         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13896         for constant-pool entries.
13898 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13900         PR rtl-optimization/70174
13901         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13902         followed by gen_lowpart on force_reg instead of just gen_lowpart.
13904         PR tree-optimization/70169
13905         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13906         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
13907         for unknown codes.
13909 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
13910             Jakub Jelinek  <jakub@redhat.com>
13912         PR target/70160
13913         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13914         of uninitialized values.
13916 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13918         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13919         define_expand.
13920         ("*trunctddd2"): New pattern definition.
13921         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13922         TD->DD truncation.
13924 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13926         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13927         definitions for BFP and DFP rounding modes.
13928         ("fixuns_truncdddi2", "fixuns_trunctddi2")
13929         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13930         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13931         ("fix_trunctf<mode>2"): Use the new constants instead of magic
13932         numbers.
13934 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13936         * config/s390/constraints.md: Adjust comment.
13937         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
13938         s390_decompose_addrstyle_without_index.
13939         * config/s390/predicates.md (shift_count_or_setmem_operand):
13940         Rename to setmem_operand.
13941         * config/s390/s390-protos.h
13942         (s390_decompose_shift_count): Rename to
13943         s390_decompose_addrstyle_without_index.
13944         * config/s390/s390.c (s390_decompose_shift_count)
13945         (s390_mem_constraint, print_shift_count_operand)
13946         (print_operand_address, print_operand): Rename
13947         s390_decompose_shift_count to
13948         s390_decompose_addrstyle_without_index and rename
13949         print_shift_count_operand to print_addrstyle_operand troughout the
13950         file.
13951         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13952         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13953         Rename shift_count_or_setmem_operand to setmem_operand.
13954         * config/s390/vx-builtins.md ("vec_insert<mode>")
13955         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13956         nonmemory_operand.
13958 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13960         PR target/70168
13961         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13962         Handle overlapping retval and newval.
13964 2016-03-10  Nick Clifton  <nickc@redhat.com>
13966         PR target/7044
13967         * config/aarch64/aarch64.c
13968         (aarch64_override_options_after_change_1): When forcing
13969         flag_omit_frame_pointer to be true, use a special value that can
13970         be detected if this function is called again, thus preventing
13971         flag_omit_leaf_frame_pointer from being forced to be false.
13973 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13975         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13976         Set x_flag_omit_leaf_frame_pointer when handling
13977         -momit-leaf-frame-pointer.
13979 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13981         PR lto/69589
13982         * cgraph.c (cgraph_node::dump): Dump split_part and
13983         indirect_call_target.
13984         * cgraph.h (cgraph_node): Add indirect_call_target flag.
13985         * ipa.c (has_addr_references_p): Cleanup.
13986         (is_indirect_call_target_p): New.
13987         (walk_polymorphic_call_targets): Do not mark virtuals that may be
13988         called indirectly as local.
13989         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13991 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13993         PR ipa/69630
13994         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13995         on cxa_pure_virtual.
13997 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13999         PR lto/69589
14000         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
14002 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
14004         PR lto/69589
14005         * tree.c (need_assembler_name_p): Only record main variant type names.
14007 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
14009         PR target/70113.
14010         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
14011         Always define to 0 or 1.
14012         (TARGET_FIX_ERR_A53_843419): New macro.
14013         * config/aarch64/aarch64-elf-raw.h
14014         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
14015         * config/aarch64/aarch64-linux.h: Likewise.
14016         * config/aarch64/aarch64.c
14017         (aarch64_override_options_after_change_1): Do not default
14018         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
14019         843419 is on.
14020         (aarch64_attributes): Handle fix-cortex-a53-843419.
14021         (aarch64_can_inline_p): Likewise.
14022         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
14024 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
14025         Jakub Jelinek <jakub@redhat.com>
14027         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
14028         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
14029         DECL_COMMONS if flag_unconstrained_commons is set.
14030         * tree-dfa.c (get_ref_base_and_extent): Likewise.
14031         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
14032         (funconstrained-commons): Document.
14034 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
14036         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
14037         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
14039 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
14041         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
14042         has a proper number of elements.
14044 2016-03-10  Alan Modra  <amodra@gmail.com>
14046         PR rtl-optimization/69195
14047         PR rtl-optimization/47992
14048         * ira.c (recorded_label_ref): Delete.
14049         (update_equiv_regs): Return void.
14050         (indirect_jump_optimize): New function.
14051         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
14052         before regstat_compute_ri.  Don't rebuild_jump_labels here.
14053         Delete update_regstat.
14055 2016-03-10  Richard Biener  <rguenther@suse.de>
14057         PR tree-optimization/70128
14058         * tree-ssa-structalias.c (set_uids_in_ptset): Set
14059         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
14061 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
14063         PR tree-optimization/70152
14064         * tree-sra.c (replace_removed_params_ssa_names): Copy over
14065         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
14067         PR target/70086
14068         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
14069         instead of gen_sse2_loadlpd.
14070         * config/i386/sse.md (*vec_concatv2df): Rename to...
14071         (vec_concatv2df): ... this.
14073         PR tree-optimization/70127
14074         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
14076 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
14078         PR c/68473
14079         PR c++/70105
14080         * diagnostic-show-locus.c (compatible_locations_p): New function.
14081         (layout::layout): Sanitize ranges using compatible_locations_p.
14083 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
14085         PR c/68473
14086         PR c++/70105
14087         * diagnostic-show-locus.c (layout_range::layout_range): Replace
14088         location_range param with three const expanded_locations * and a
14089         bool.
14090         (layout::layout): Replace call to
14091         rich_location::lazily_expand_location with get_expanded_location.
14092         Extract the range and perform location expansion here, passing
14093         the results to the layout_range ctor.
14094         * diagnostic.c (source_range::debug): Delete.
14095         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
14096         of rich_location::get_expanded_location.
14097         * gcc-rich-location.c (get_range_for_expr): Delete.
14098         (gcc_rich_location::add_expr): Reimplement to avoid the
14099         rich_location::add_range overload that took a location_range,
14100         passing a location_t instead.
14102 2016-03-09  Richard Biener  <rguenther@suse.de>
14103         Jakub Jelinek  <jakub@redhat.com>
14105         PR tree-optimization/70138
14106         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
14107         Also skip vect_double_reduction_def.
14109 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
14111         PR target/70049
14112         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
14113         if the operand is "m".
14115 2016-03-09  Nathan Sidwell  <nathan@acm.org>
14117         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
14119 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14121         * config/i386/i386.c (processor_target_table): Fix cost table
14122         intialization order for znver1.
14124 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
14126         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
14127         - becuase -> because.
14128         * ipa-reference.c (ignore_module_statics): Likewise.
14129         * cgraph.c (cgraph_node::get_body): Likewise.
14130         * ipa-inline.c (early_inliner): Likewise.
14131         * ipa-devirt.c (types_same_for_odr): Likewise.
14132         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
14133         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
14135 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14137         * tree-ssa-math-opts.c: Fix typo in comment.
14139 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
14141         PR target/70110
14142         * config/i386/i386.c (scalar_chain::make_vector_copies,
14143         scalar_chain::convert_reg): Call end_sequence in between
14144         get_insns and emit_conversion_insns rather than after both
14145         calls.
14147 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
14149         PR target/70064
14150         * config/i386/i386.h (machine_function): Add
14151         pc_thunk_call_expanded flag.
14152         (ix86_pc_thunk_call_expanded): New define.
14153         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
14154         (*set_got): Rename insn pattern from set_got.
14155         (*set_got_labelled): Rename inst pattern from set_got_labelled.
14156         * config/i386/i386.c (ix86_compute_frame_layout): Use
14157         ix86_pc_thunk_call_expanded to prevent red-zone.
14159 2016-03-07  Martin Jambor  <mjambor@suse.cz>
14161         * hsa.h (hsa_get_ctor_statements): Declare.
14162         (hsa_get_dtor_statements): Likewise.
14163         (hsa_get_kernel_dispatch_type): Likewise.
14164         * hsa.c (hsa_get_ctor_statements): New function.
14165         (hsa_get_dtor_statements): Likewise.
14166         (hsa_get_kernel_dispatch_type): Likewise.
14167         * hsa-brig.c (hsa_cdtor_statements): Removed.
14168         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
14169         hsa_get_dtor_statements.
14170         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
14171         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
14173 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14175         * config/arm/arm-cores.def (cortex-r8): New.
14176         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
14177         * config/arm/arm-tune.md: Likewise.
14178         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
14180 2016-03-07  Martin Sebor  <msebor@redhat.com>
14182         PR rtl-optimization/19705
14183         * doc/invoke.texi (Options That Control Optimization): Clarify
14184         -fno-branch-count-reg.
14186 2016-02-26  Richard Biener  <rguenther@suse.de>
14187             Jeff Law  <law@redhat.com>
14189         PR tree-optimization/69740
14190         * cfghooks.c (remove_edge): Request loop fixups if we delete
14191         an edge that might turn an irreducible loop into a natural
14192         loop.
14193         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
14194         Move after definition of loops_state_clear.
14196 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
14198         PR rtl-optimization/69052
14199         * rtlanal.c (commutative_operand_precedence): Set higher precedence
14200         to CONST_WIDE_INT.
14202 2016-03-07  Tom de Vries  <tom@codesourcery.com>
14204         PR tree-optimization/70116
14205         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
14206         is_tm_ending stmts and ubsan/asan internal functions.
14207         (find_duplicate): Use it.  Don't test is_tm_ending here.
14209 2016-03-07  Richard Biener  <rguenther@suse.de>
14211         PR tree-optimization/70115
14212         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
14213         (propagate_constants_for_unrolling): Use replace_uses_by.
14215 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
14217         PR middle-end/69916
14218         * omp-low.c (struct oacc_loop): Add ifns.
14219         (new_oacc_loop_raw): Initialize it.
14220         (finish_oacc_loop): Clear mask & flags if no ifns.
14221         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
14222         (oacc_loop_xform_loop): Add ifns arg & adjust.
14223         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
14225 2016-03-07  Richard Henderson  <rth@redhat.com>
14227         PR rtl-opt/70061
14228         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
14229         (insert_value_copy_on_edge): Likewise.
14231 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14233         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
14235 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14237         PR target/62281
14238         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
14240 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
14242         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
14244 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
14246         Fix sseimul type attribute.
14247         * config/i386/znver1.md
14248         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
14249         znver1_sseimul_avx256_load) : Fix the type attribute.
14250         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
14251         pipe usage and latency.
14253 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
14255         PR c++/70084
14256         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
14257         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
14258         to the right type.
14260 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
14262         PR c/69973
14263         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
14265         PR rtl-optimization/69941
14266         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
14267         the reg share its mode.
14269 2016-03-04  Jeff Law  <law@redhat.com>
14271         PR tree-optimization/69196
14272         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14273         If the both SSA_NAMEs are anonymous, then consider them unassociated
14274         and include the PHI in the statement count.
14276 2016-03-05  Tom de Vries  <tom@codesourcery.com>
14278         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
14279         construct in oacc routine.  Check for oacc region in oacc routine.
14281 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
14283         PR target/70062
14284         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
14285         2016-02-22 changes, instead don't recurse if RECUR is already true.
14286         Don't change *dynamic_check if RECUR.  Adjust recursive caller
14287         to pass true to the new argument.
14288         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
14290         PR target/70059
14291         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14292         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
14293         fixes.
14294         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
14296 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
14298         PR rtl-optimization/57676
14299         * lra-assigns.c (lra_assign): Guard test for maximum iterations
14300         with flag_checking.
14302 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
14304         * tree-vect-patterns.c (search_type_for_mask): Handle
14305         comparison of booleans.
14307 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
14309         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
14310         Fix @xref usage.
14312         PR debug/69947
14313         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
14314         all other ops that have dw_val_class_die_ref operands,
14315         and DW_OP_GNU_entry_value.
14317 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14319         PR rtl-optimization/69904
14320         * config/arm/arm.c (arm_cannot_copy_insn_p):
14321         Return true for load-exclusive instructions.
14323 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
14325         PR target/70021
14326         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
14327         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
14328         the pattern no matter if it is used just by non-pattern, pattern
14329         or mix thereof.
14330         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
14331         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14332         oprnd1 def_stmt is in pattern, don't look through it.
14334 2016-03-03  Marek Polacek  <polacek@redhat.com>
14336         PR middle-end/70050
14337         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
14339 2016-03-03  Martin Liska  <mliska@suse.cz>
14341         PR tree-optimization/70043
14342         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
14343         previous statement if we see a debug statement.
14345 2016-03-03  Richard Biener  <rguenther@suse.de>
14347         PR tree-optimization/55936
14348         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
14349         parameter and guard unsafe equivalence use.
14350         (vrp_evaluate_conditional_warnv_with_ops): Always use
14351         safe equivalences but not via the quadratic compare_names
14352         helper.
14354 2016-03-03  Michael Collison  <michael.collison@linaro.org>
14356         PR target/70014
14357         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
14358         for operand 1 to s_register_operand. Change predicate for operand
14359         2 to arm_not_immediate_operand.
14361 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
14363         * doc/tm.texi: Regenerated.
14365 2016-03-02  Richard Henderson  <rth@redhat.com>
14367         PR rtl-opt/67145
14368         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
14369         simplification when all args are positive non-fixed registers.
14371 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14373         * target.def (lra_p): Specify that new ports should use LRA.
14375 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14377         PR libgomp/69555
14378         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
14379         gimplify_type_sizes the type they refer to.
14380         (omp_notice_variable): Handle reference vars to VLAs.
14381         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
14382         reference to VLA decls in the second pass instead of first pass.
14384 2016-03-02  Tom de Vries  <tom@codesourcery.com>
14386         PR tree-optimization/68659
14387         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
14388         new_expr == NULL_TREE.
14389         (get_new_name): Handle ADDR_EXPR.
14391 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
14393         PR rtl-optimization/69052
14394         * loop-invariant.c (canonicalize_address): New function.
14395         (inv_can_prop_to_addr_use): Check validity of address expression
14396         which is canonicalized by above function.
14398 2016-03-02  Alan Modra  <amodra@gmail.com>
14400         PR ipa/69990
14401         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
14402         larger alignment.
14404 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14406         PR target/70028
14407         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
14408         (*movhi_internal): Put mask moves from and to memory separately
14409         from moves from/to GPRs.
14411 2016-03-02  Richard Biener  <rguenther@suse.de>
14413         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
14414         GENERIC expressions in GIMPLE.
14416 2016-03-02  Richard Biener  <rguenther@suse.de>
14418         * config/i386/i386.c (type_natural_mode): Fix typo.
14420 2016-03-02  Nick Clifton  <nickc@redhat.com>
14422         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
14424 2016-03-02  Richard Biener  <rguenther@suse.de>
14425             Uros Bizjak  <ubizjak@gmail.com>
14427         PR target/67278
14428         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
14430 2016-03-02  Richard Biener  <rguenther@suse.de>
14432         PR middle-end/67278
14433         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
14435 2016-03-02  Marek Polacek  <polacek@redhat.com>
14437         PR c/67854
14438         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
14439         "is promoted to" warning.
14441 2016-03-01  DJ Delorie  <dj@redhat.com>
14443         * config.gcc: Deprecate mep-*.
14445 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
14447         PR middle-end/70025
14448         * lra-constraints.c (regno_val_use_in): New.
14449         (match_reload): Use it instead of regno_use_in.
14451 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14453         PR rtl-optimization/70007
14454         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
14455         references present in REG_EQUAL notes attached to non-SET patterns.
14457 2016-03-01  Jeff Law  <law@redhat.com>
14459         PR tree-optimization/69196
14460         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14461         Appropriately clamp the number of statements to copy when the
14462         thread path does not traverse a loop backedge.
14464         PR tree-optimization/69196
14465         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14466         Do count some PHIs in the thread path against the insn count.  Decrease
14467         final statement count by one as the control statement in the last
14468         block will get removed.  Remove special cased code for handling PHIs
14469         in the last block.
14471 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
14473         PR target/70027
14474         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
14475         asm dialect alternatives to explicit GOTPCREL calls.
14477 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14479         PR ada/70017
14480         * ira.c (do_reload): Issue warning for generic stack checking here...
14481         * reload1.c (reload): ...instead of here and streamline it.
14483 2016-03-01  Nick Clifton  <nickc@redhat.com>
14485         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
14487 2016-03-01  Richard Biener  <rguenther@suse.de>
14489         PR tree-optimization/69983
14490         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
14491         types and fall back to operand_equal_p.
14493 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14495         Revert
14496         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14498         * config/s390/constraints.md ("jm8"): New constraint.
14499         * config/s390/predicates.md ("const_int_8bitset_operand"): New
14500         predicate.
14501         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
14502         into ...
14503         ("*setmem_long<setmem_and>"): New pattern.
14504         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
14505         into ...
14506         ("*setmem_long_31z<setmem_and>"): New pattern.
14507         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
14508         New substitution rules with the required attributes.
14511 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14513         Revert
14514         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14516         * gensupport.c (process_substs_on_one_elem): Split loop to
14517         complete mark_operands_used_in_match_dup on all expressions in the
14518         vector first.
14519         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14520         and remove function.
14522 2016-03-01  Richard Biener  <rguenther@suse.de>
14524         PR middle-end/70022
14525         * fold-const.c (fold_indirect_ref_1): Fix range checking for
14526         vector BIT_FIELD_REF extract.
14528 2016-03-01  Richard Biener  <rguenther@suse.de>
14530         PR tree-optimization/69994
14531         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
14533 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
14535         PR tree-optimization/69956
14536         * tree-vect-stmts.c (supportable_widening_operation): Support
14537         multi-step conversion of boolean vectors.
14538         (supportable_narrowing_operation): Likewise.
14540 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14542         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
14543         anymore.
14545 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14547         * config/s390/subst.md (DSI_VI): New mode iterator.
14548         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
14549         * config/s390/vector.md ("vec_set<mode>"): Move expander before
14550         the insn definition.
14551         ("*vec_set<mode>"): Change predicate and add alternative to
14552         support only either register or const_int operands as element
14553         selector.
14554         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
14555         operands.
14556         ("vec_extract<mode>"): New expander.
14557         ("*vec_extract<mode>"): New insn definition supporting reg and
14558         const_int element selectors.
14559         ("*vec_extract<mode>_plus"): New insn definition supporting
14560         reg+const_int element selectors.
14561         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
14562         following expander+insn definition.
14563         ("<vec_shifts_name><mode>3"): New expander.
14564         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
14566 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14568         * config/s390/s390.md ("*tabort_1"): Change predicate to
14569         nonmemory_operand.  Add a second alternative to cover
14570         register as well as const int operands.
14571         ("*tabort_1_plus"): New pattern definition.
14573 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14575         * config/s390/s390.md ("*ashrdi3_cc_31")
14576         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14577         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14578         Merge insn definitions into ...
14579         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14580         New pattern definition.
14581         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14582         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14583         ("*ashr<mode>3_and"): Merge insn definitions into ...
14584         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14585         New pattern definition.
14586         * config/s390/subst.md ("addr_style_op_cc_subst")
14587         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14588         substitutions patterns plus attributes.
14589         Add ashiftrt to SUBST iterator.
14591 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14593         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14594         op2 to nonmemory_operand.
14595         ("*<shift>di3_31", "*<shift>di3_31_and"):
14596         Merge into single pattern definition ...
14597         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14598         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14599         pattern definition ...
14600         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14601         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14602         iterator.
14604 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14606         * config/s390/predicates.md (const_int_6bitset_operand): New
14607         predicate.
14608         * config/s390/s390.md: Include subst.md.
14609         ("rotl<mode>3"): New expander.
14610         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14611         ...
14612         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14613         * config/s390/subst.md: New file.
14615 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14617         * config/s390/s390.md ("op_type", "atype", "length" attributes):
14618         Remove RRR type.  It doesn't really exist.
14619         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14620         attributes.
14621         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14622         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14623         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14624         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14625         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14626         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14627         `enabled' attribute.
14629 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14631         * gensupport.c (process_substs_on_one_elem): Split loop to
14632         complete mark_operands_used_in_match_dup on all expressions in the
14633         vector first.
14634         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14635         and remove function.
14637 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14639         PR target/69706
14640         * config/sparc/sparc.c (NWORDS_UP): Rename to...
14641         (CEIL_NWORDS): ...this.  Use CEIL macro.
14642         (compute_fp_layout): Adjust to above renaming.
14643         (function_arg_union_value): Likewise.
14644         (sparc_arg_partial_bytes): Likewise.
14645         (sparc_function_arg_advance): Likewise.
14647 2016-02-29  Jeff Law  <law@redhat.com>
14649         PR tree-optimization/70005
14650         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14651         where an object with a boolean range is compared against a value
14652         outside [0..1].
14654         PR tree-optimization/69999
14655         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14656         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14657         loop cleanups.
14659 2016-02-29  Richard Biener  <rguenther@suse.de>
14661         PR tree-optimization/69994
14662         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14663         (get_unary_op): Look through nop conversions.
14664         (ops_equal_values_p): New function, look for equality diregarding
14665         nop conversions.
14666         (eliminate_plus_minus_pair): Use ops_equal_values_p
14667         (repropagate_negates): Do not use get_unary_op here.
14669 2016-02-29  Martin Liska  <mliska@suse.cz>
14671         * system.h: Poison ENABLE_CHECKING macro.
14673 2016-02-29  Martin Liska  <mliska@suse.cz>
14675         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14676         is presented in dump flags.
14677         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14678         (hsa_regalloc): Likewise.
14680 2016-02-19  Richard Biener  <rguenther@suse.de>
14682         PR tree-optimization/69980
14683         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14684         permutation of those we need to keep.
14686 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14688         PR target/69706
14689         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14690         (NWORDS_UP): ...this
14691         (init_cumulative_args): Minor tweaks.
14692         (sparc_promote_function_mode): Likewise.
14693         (scan_record_type): Delete.
14694         (traverse_record_type): New function template.
14695         (classify_data_t): New structure type.
14696         (classify_registers): New inline function.
14697         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14698         exhausted.  Instantiate traverse_record_type on classify_registers and
14699         deal with the case of a structure passed in slot #15 with no FP field
14700         in the first word.
14701         (assign_data_t): New structure type.
14702         (compute_int_layout): New static function.
14703         (compute_fp_layout): Likewise.
14704         (count_registers): New inline function.
14705         (assign_int_registers): New static function.
14706         (assign_fp_registers): Likewise.
14707         (assign_registers): New inline function.
14708         (function_arg_record_value_1): Delete.
14709         (function_arg_record_value_2): Likewise.
14710         (function_arg_record_value_3): Likewise.
14711         (function_arg_record_value): Adjust to above changes.  Instantiate
14712         traverse_record_type on count_registers to first count the number of
14713         registers to be used and then on assign_registers to assign them.
14714         (function_arg_union_value): Adjust to above renaming.
14715         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
14716         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
14717         case of a structure passed in slot #15
14718         (sparc_function_arg_advance): Likewise.
14719         (function_arg_padding): Minor tweak.
14721 2016-02-29  Richard Biener  <rguenther@suse.de>
14723         PR tree-optimization/69720
14724         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14725         the adjustment_def path for possibly vectorized defs.
14726         (vect_create_epilog_for_reduction): Handle vectorized initial
14727         defs properly.
14729 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
14731         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14733 2016-02-27  Jeff Law  <law@redhat.com>
14735         Revert
14736         2016-02-26  Richard Biener  <rguenther@suse.de>
14737                     Jeff Law  <law@redhat.com>
14739         PR tree-optimization/69740
14740         * cfghooks.c (remove_edge): Request loop fixups if we delete
14741         an edge that might turn an irreducible loop into a natural
14742         loop.
14744 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
14746         PR rtl-optimization/69896
14747         * tree-vect-generic.c (get_compute_type): Avoid single element
14748         vector types.
14750 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
14752         Rename the AArch64 tuning option and related functions to enable the
14753         Newton series for the reciprocal square root to reflect its
14754         approximative characteristic.
14756         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14757         function to "aarch64_emit_approx_rsqrt".
14758         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14759         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14760         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14761         (xgene1_tunings): Likewise.
14762         (use_rsqrt_p): Likewise.
14763         (aarch64_emit_swrsqrt): Use new function name.
14764         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14765         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14766         text explaining this option.
14767         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14769 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14771         PR target/69969
14772         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14773         complain about -mallow-movmisalign without -mvsx if
14774         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14776 2016-02-26  Joel Sherrill  <joel@rtems.org>
14778         * config.gcc: Add x86_64-*-rtems*.
14779         * config/i386/rtems-64.h: New file.
14781 2016-02-26  Joel Sherrill  <joel@rtems.org>
14783         * config.gcc: Add aarch64-*-rtems*.
14784         * config/aarch64/rtems.h: New file.
14786 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
14788         PR target/69946
14789         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14790         shift amount using %h.  Add comment.
14792 2016-02-26  Richard Biener  <rguenther@suse.de>
14793             Jeff Law  <law@redhat.com>
14795         PR tree-optimization/69740
14796         * cfghooks.c (remove_edge): Request loop fixups if we delete
14797         an edge that might turn an irreducible loop into a natural
14798         loop.
14800 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14802         PR middle-end/69920
14803         * tree-sra.c (sra_modify_assign): Do not remove loads of
14804         uninitialized aggregates to SSA_NAMEs.
14806 2016-02-26  Richard Henderson  <rth@redhat.com>
14808         PR target/69709
14809         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14810         pseudo in case the target rtx matches the source of the left
14811         shift.
14813 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14815         PR hsa/69568
14816         * hsa.h (hsa_type_packed_p): Declare.
14817         * hsa.c (hsa_type_packed_p): New function.
14818         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14819         loads.
14820         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14821         * hsa-brig.c (emit_basic_insn): Likewise.
14823 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14825         pr hsa/69674
14826         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14827         pointers.
14828         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14830 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14832         * hsa.h (is_a_helper): New overload for hsa_op_immed for
14833         hsa_op_with_type operands.
14834         (hsa_unsigned_type_for_type): Declare.
14835         * hsa.c (hsa_unsigned_type_for_type): New function.
14836         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14837         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14838         the finalizer.  Do not emit extra move.
14840 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14842         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14843         atomic operations in private segment.
14845 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14847         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14848         statements to wi->info.  Also disallow omp simd constructs.
14849         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14850         for not gridifying.  Dump special string for omp_for.
14852 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14854         PR target/69245
14855         * config/aarch64/aarch64.c (aarch64_set_current_function):
14856         Save/restore target globals when switching to
14857         target_option_default_node.
14859 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14861         PR target/69613
14862         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14863         Return 0 if !SHIFT_COUNT_TRUNCATED.
14865 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14866             Eric Botcazou  <ebotcazou@adacore.com>
14868         PR rtl-optimization/69891
14869         * dse.c (scan_insn): If we can't figure out memset arguments
14870         or they are non-constant, call clear_rhs_from_active_local_stores.
14872 2016-02-26  Martin Liska  <mliska@suse.cz>
14874         * doc/extend.texi: Mention clog10, clog10f an clog10l
14875         in Builtins section.
14877 2016-02-26  Martin Liska  <mliska@suse.cz>
14879         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14880         CHECKING_P.
14881         (resolve_args_picking_1): Likewise.
14882         * dwarf2out.h (struct GTY): Likewise.
14884 2016-02-26  Martin Liska  <mliska@suse.cz>
14886         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14887         with flag_checking.
14888         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14890 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14891             Martin Liska  <mliska@suse.cz>
14893         * doc/install.texi: Mention --enable-valgrind-annotations.
14895 2016-02-26  Richard Biener  <rguenther@suse.de>
14897         PR tree-optimization/69551
14898         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14899         looking through aliases adjust DECL_PT_UID to refer to the
14900         ultimate alias target.
14902 2016-02-25  Martin Liska  <mliska@suse.cz>
14904         PR middle-end/69919
14905         * alloc-pool.c (after_memory_report): New variable.
14906         * alloc-pool.h (base_pool_allocator ::release): Do not use
14907         the infrastructure if after_memory_report.
14908         * toplev.c (toplev::main): Mark after memory report.
14910 2016-02-25  Richard Biener  <rguenther@suse.de>
14912         PR tree-optimization/48795
14913         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14915 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
14917         PR driver/68463
14918         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
14919         offloading is enabled and -fopenacc or -fopenmp is specified.
14920         (CRTOFFLOADEND): Likewise.
14921         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14922         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14923         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14924         (offload_objects_file_name): New static var.
14925         (tool_cleanup): Remove offload_objects_file_name file.
14926         (find_offloadbeginend): Replace with ...
14927         (find_crtoffloadtable): ... this.
14928         (run_gcc): Remove offload_argc and offload_argv.
14929         Get offload_objects_file_name from -foffload-objects=... option.
14930         Read names of object files with offload from this file, pass them to
14931         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
14932         don't pass offloadbegin and offloadend to the linker.  Don't pass
14933         offload non-LTO files to the linker, because now they're not claimed.
14935 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
14937         PR ipa/69630
14938         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14939         on builtin_unreachable.
14941 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
14943         PR rtl-optimization/69896
14944         * regcprop.c: Include cfgrtl.h.
14945         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14946         than remembered mode, either delete it (if noop_move_p), or
14947         treat like copy_p but not noop_p instruction.
14949 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14951         PR debug/69705
14952         * dwarf2out.c (gen_variable_die): Work around buggy LTO
14953         - allow NULL decl for Fortran DW_TAG_common_block variables.
14955 2016-02-24  Jason Merrill  <jason@redhat.com>
14957         * common.opt (flifetime-dse): Add -flifetime-dse=1.
14959 2016-02-24  Richard Biener  <rguenther@suse.de>
14960             Jakub Jelinek  <jakub@redhat.com>
14962         PR middle-end/69760
14963         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14964         conditionally executed ops to well-defined overflow behavior.
14966 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14968         PR middle-end/69915
14969         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14970         elements.
14972 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14974         PR rtl-optimization/69886
14975         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14976         argument.  Use it when checking validity of set instructions.
14977         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14978         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14979         callsite.
14980         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14981         * store-motion.c (find_moveable_store): Update
14982         can_assign_to_reg_without_clobbers_p callsite.
14984 2016-02-24  Richard Biener  <rguenther@suse.de>
14986         PR middle-end/68963
14987         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14988         bogus check.
14989         (record_nonwrapping_iv): Do not fall back to the low/high bound
14990         for non-constant IV bases if the stmt is not always executed.
14992 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14994         * config/arm/arm-cores.def (cortex-a32): New entry.
14995         * config/arm/arm-tables.opt: Regenerate.
14996         * config/arm/arm-tune.md: Regenerate.
14997         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14998         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14999         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
15000         for -mcpu and -mtune.
15002 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15004         PR target/69875
15005         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
15006         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
15007         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
15008         (atomic_loaddi_1): Delete.
15009         (atomic_loaddi): Rewrite expander using the above changes.
15011 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
15013         PR c/69918
15014         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
15015         2 to 3.
15017 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
15018             Richard Biener  <rguenth@suse.de>
15020         PR middle-end/69909
15021         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
15022         set_mem_attributes if tem is SSA_NAME which got expanded
15023         as a MEM.
15025 2016-02-24  Richard Biener  <rguenther@suse.de>
15027         PR tree-optimization/69907
15028         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
15029         end of permutations for BB vectorization.
15031 2016-02-24  Christian Bruel  <christian.bruel@st.com>
15033         * config/arm/arm-c.c (arm_option_override): Initialize
15034         target_option_current_node.
15035         * config/arm/arm.c (arm_pragma_target_parse): Replace
15036         build_target_option_node call by target_option_current_node.
15037         Set target_option_current_node.
15038         Fix comments.
15040 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
15042         PR target/69810
15043         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
15044         define_insn_and_split to define_insn.
15045         (zero_extendqi<mode>2_dot2): Same.
15046         (extendqi<mode>2_dot): Same.
15047         (extendqi<mode>2_dot2): Same.
15049 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
15051         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
15052         and add bypass for AES{D,E} and AESMC pairs.
15053         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
15054         and AESMC pairs.
15056 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
15058         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
15059         series for reciprocal square root in Exynos M1.
15061 2016-02-23  Martin Sebor  <msebor@redhat.com>
15063         PR c/69759
15064         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
15065         __builtin_alloca_with_align.
15067 2016-02-23  Richard Henderson  <rth@redhat.com>
15069         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
15070         (ix86_register_pragmas): Remove __seg_tls.
15071         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
15072         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
15073         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
15074         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
15075         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
15076         * doc/extend.texi (__seg_tls): Remove item.
15078 2016-02-23  Richard Biener  <rguenther@suse.de>
15080         * alloc-pool.h (struct allocation_object): Make id member
15081         conditional on CHECKING_P again.
15082         (get_instance): Adjust.
15083         (base_pool_allocator): Likewise.
15085 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
15087         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
15088         (parallelize_loops): In OpenACC kernels mode, set n_threads to
15089         zero.
15090         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
15091         flag_openacc.
15092         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
15094 2016-02-23  Richard Biener  <rguenther@suse.de>
15096         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
15097         * bitmap.h (struct bitmap_usage): Likewise.
15098         (bitmap_move): Declare.
15099         * bitmap.c (register_overhead): Take size_t argument.
15100         (bitmap_move): New function.
15101         * df-problems.c (df_rd_transfer_function): Use bitmap_move
15102         to properly account overhead.
15103         * tree.c (free_node): Use tree_size.
15105 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
15107         PR c++/69902
15108         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
15109         when inverting comparison.
15111         PR c/69900
15112         * common.opt (Wunreachable-code): Add Warning flag.
15114 2016-02-23  Mark Wielaard  <mjw@redhat.com>
15115             Jakub Jelinek  <jakub@redhat.com>
15117         PR c/69911
15118         * cgraphunit.c (check_global_declaration): Check main_input_filename
15119         and DECL_SOURCE_FILE are not NULL.
15121 2016-02-23  Martin Jambor  <mjambor@suse.cz>
15123         PR tree-optimization/69666
15124         * tree-sra.c (sra_modify_assign): Do not attempt to create
15125         default_def replacements for unscalarizable regions.
15127 2016-02-20  Mark Wielaard  <mjw@redhat.com>
15129         PR c/28901
15130         * cgraphunit.c (check_global_declaration): Check level of
15131         warn_unused_const_variable and main_input_filename.
15132         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
15133         (-Wunused-variable): For C implies -Wunused-const-variable=1.
15134         (-Wunused-const-variable): Explain levels 1 and 2.
15136 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
15138         PR target/69888
15139         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
15140         identical arguments.  Formatting and spelling fixes.
15142         PR target/69885
15143         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
15144         be specified.
15146         PR target/69894
15147         PR target/69895
15148         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
15149         and m68k-devices.def.
15150         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
15151         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
15153 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
15155         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
15156         and HImode registers.
15158 2016-02-22  Richard Biener  <rguenther@suse.de>
15160         PR tree-optimization/69882
15161         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
15162         preserve permutations present because of gaps.
15163         (vect_supported_load_permutation_p): Always continue checking
15164         permutations after vect_attempt_slp_rearrange_stmts.
15166 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
15168         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
15169         min_profitable_estimate, rather than min_profitable_iters.
15171 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
15173         PR target/69885
15174         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
15175         SImode for last match_operand.
15177 2016-02-22  Martin Liska  <mliska@suse.cz>
15179         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
15180         return bitsize - 1 as the return value.
15182 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
15184         PR target/69806
15185         PR target/54089
15186         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
15187         Handle negative shift counts.
15188         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
15189         force_reg on the shift constant.
15190         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
15191         (lshrsi3_d): Handle negative shift counts.
15193 2016-02-22  Richard Biener  <rguenther@suse.de>
15194             Tom de Vries  <tom@codesourcery.com>
15196         * graph.c: Include dumpfile.h.
15197         (print_graph_cfg): Split into three overloads.
15198         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
15200 2016-02-22  Tom de Vries  <tom@codesourcery.com>
15202         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
15203         dump-fn.
15205 2016-02-22  Richard Biener  <rguenther@suse.de>
15207         PR ipa/37448
15208         * ipa-inline-transform.c (inline_call): When not updating
15209         overall summaries adjust self size by the growth estimate.
15210         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
15211         hash-set, do not update overall summaries here.  Renamed from ...
15212         (inline_to_all_callers): ... this which is now wrapping the
15213         above and performing delayed overall summary update.
15214         (early_inline_small_functions): Delay updating of the overall
15215         summary.
15217 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15219         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
15220         variable.
15222 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
15224         PR driver/69805
15225         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
15226         :%* in %:gt() argument.
15227         (greater_than_spec_func): Adjust for expecting only numbers,
15228         if there are more than two numbers, compare the last two.
15230 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
15232         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
15233         -Wnarrowing with -std.
15235 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
15237         PR c++/69851
15238         * expr.c (store_field): Don't use bit-field path if exp is
15239         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
15240         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
15241         and the assignment can be performed by bitwise copy.  Formatting
15242         fix.
15244         PR middle-end/69838
15245         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
15246         call copy_reg_eh_region_note_forward on before and/or after sequences
15247         and remove note from insn if it no longer can throw.
15249         PR target/69820
15250         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
15251         if TARGET_AVX512BW.
15253 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15255         * config/s390/vector.md: Add missing commutative operand markers
15256         to the patterns which qualify for one.
15257         * config/s390/vx-builtins.md: Likewise.
15259 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15261         * config/s390/vector.md (VI, VI_QHS): Add single element vector
15262         types to mode iterators.
15263         (vec_double): ... and mode attribute.
15264         * config/s390/vx-builtins.md (non_vec_int): Likewise.
15266 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15268         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
15269         Change the predicate of op2 from nonimmediate to general and let
15270         reload fix it if necessary.
15272 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15274         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
15276 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15278         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
15279         mode.
15281 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15283         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
15284         * config/s390/s390.c (s390_expand_vec_movstr): New function.
15285         * config/s390/s390.md ("movstr<P:mode>"): Call
15286         s390_expand_vec_movstr.
15288 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15290         * config/s390/s390.md: Add missing output modifier for operand 1
15291         to print it as address properly.
15293 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15295         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
15296         * config/s390/2964.md: New file.
15297         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
15298         of insn grouping attributes depending on the CPU level.
15299         (s390_get_unit_mask): New function.
15300         (s390_sched_score): Remove the OOO from the scheduling macros.
15301         Add loop to calculate a score for the instruction mix.
15302         (s390_sched_reorder): Likewise plus improve debug output.
15303         (s390_sched_variable_issue): Rename macros as above.  Calculate
15304         the unit distances after actually scheduling an insn.  Improve
15305         debug output.
15306         (s390_sched_init): Clear last_scheduled_unit_distance array.
15307         * config/s390/s390.md: Include 2964.md.
15309 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
15311         PR target/69671
15312         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
15313         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
15314         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
15315         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
15316         *avx512f_<code>v8div16qi2_mask_1): New insns.
15318 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15320         PR target/68404
15321         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
15322         2016-02-09 change.
15324         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
15325         earlyclobber from target.  Use wF constraint for fused memory
15326         address.
15327         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
15329 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
15330             Martin Liska  <mliska@suse.cz>
15332         PR sanitizer/69863
15333         * cfgexpand.c (asan_sanitize_stack_p): New function.
15334         (partition_stack_vars): Use the function.
15335         (expand_stack_vars): Likewise.
15336         (defer_stack_allocation): Likewise.
15337         (expand_used_vars): Likewise.
15339 2016-02-18  Richard Biener  <rguenther@suse.de>
15341         PR middle-end/69553
15342         * fold-const.c (operand_equal_p): Properly compare offsets for
15343         IMAGPART_EXPR and ARRAY_REF.
15345 2016-02-18  Nick Clifton  <nickc@redhat.com>
15347         PR target/62254
15348         PR target/69610
15349         * config/arm/arm.c (arm_option_override_internal): Disable
15350         interworking if the target does not support thumb instructions.
15351         (arm_reload_in_hi): Handle the case where a register to register
15352         move needs reloading because there is no simple pattern to handle
15353         it.
15354         (arm_reload_out_hi): Likewise.
15356 2016-02-18  Richard Biener  <rguenther@suse.de>
15358         PR middle-end/69854
15359         * match.pd: Don't use fold_binary or fold_unary for folding
15360         constants.
15362 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
15364         PR c++/69850
15365         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
15366         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
15367         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
15368         warn on gimple_no_warning_p statements.
15370 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
15372         * doc/extend.texi (C++ Attributes): Correct description of
15373         warn_unused type attribute.
15375 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15377         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
15378         correct instruction.
15380 2016-02-17  Richard Biener  <rguenther@suse.de>
15382         PR rtl-optimization/69609
15383         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
15384         (find_traces_1_round): When ending a trace update cached priority
15385         of successors.
15386         (bb_to_key): Use cached priority when available.
15387         (copy_bb): Initialize cached priority.
15388         (reorder_basic_blocks_software_trace_cache): Likewise.
15390 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15392         PR target/69161
15393         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
15394         New predicate.
15395         (aarch64_comparison_operator): Break overly long line into two.
15396         (aarch64_comparison_operation): Likewise.
15397         * config/aarch64/aarch64.md (cstorecc4): Use
15398         aarch64_comparison_operator_mode instead of
15399         aarch64_comparison_operator.
15400         (cstore<mode>4): Likewise.
15401         (aarch64_cstore<mode>): Likewise.
15402         (*cstoresi_insn_uxtw): Likewise.
15403         (cstore<mode>_neg): Likewise.
15404         (*cstoresi_neg_uxtw): Likewise.
15406 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15408         PR target/69161
15409         * config/arm/predicates.md (arm_comparison_operator_mode):
15410         New predicate.
15411         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
15412         instead of arm_comparison_operator.
15413         (*mov_negscc): Likewise.
15414         (*mov_notscc): Likewise.
15415         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
15416         (*thumb2_mov_negscc): Likewise.
15417         (*thumb2_mov_negscc_strict_it): Likewise.
15418         (*thumb2_mov_notscc): Likewise.
15419         (*thumb2_mov_notscc_strict_it): Likewise.
15421 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
15423         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
15424         Add missing return.
15426 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
15428         * config/visium/visium.c (machine_libfunc_index): New enum.
15429         (machine_libfuncs): New structure.
15430         (visium_libfuncs): New static variable.
15431         (TARGET_INIT_LIBFUNCS): Define to...
15432         (visium_init_libfuncs): ...this.  New function.
15433         (expand_block_move_4): Use the appropriate libfunc.
15434         (expand_block_move_2): Likewise.
15435         (expand_block_move_1): Likewise.
15436         (expand_block_set_4): Likewise.
15437         (expand_block_set_2): Likewise.
15438         (expand_block_set_1): Likewise.
15439         (visium_trampoline_init): Likewise.
15441 2016-02-17  Nick Clifton  <nickc@redhat.com>
15443         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
15444         TI's devices.csv file as of March 2016.
15446 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15448         PR Target/48344
15449         * opts-global.c (handle_common_deferred_options): Introduce and
15450         initialize two global variables to remember command-line options
15451         specifying a stack-limiting register.
15452         * opts.h: Add extern declarations of the two new global variables.
15453         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
15454         variable based on the values of the two new global variables.
15456 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15458         PR c/69835
15459         * common.opt (Wnonnull-compare): New warning.
15460         * doc/invoke.texi (-Wnonnull): Remove text about comparison
15461         of arguments against NULL.
15462         (-Wnonnull-compare): Document.
15463         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
15464         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
15465         * passes.def (pass_warn_nonnull_compare): Add.
15466         * gimple-ssa-nonnull-compare.c: New file.
15468 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15470         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
15471         AARCH64_EXTRA_TUNE_RECIP_SQRT.
15473 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15475         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
15476         reciprocal sqrt for -mlow-precision-recip-sqrt.
15478 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15479             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15481         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
15482         always use lane loads to construct non-constant vectors.
15484 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15486         * config/aarch64/aarch64.md
15487         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
15488         constraints for operand 3.
15489         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
15491 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15492             Richard Biener  <rguenther@suse.de>
15494         PR tree-optimization/69820
15495         * tree-vect-patterns.c (type_conversion_p): Return false if
15496         *orig_type is unsigned single precision or boolean.
15497         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
15498         Formatting fix.
15500 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15502         PR rtl-optimization/69764
15503         PR rtl-optimization/69771
15504         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
15505         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
15507 2016-02-16  Richard Biener  <rguenther@suse.de>
15509         PR tree-optimization/69776
15510         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
15511         sets from caller.
15512         (indirect_refs_may_alias_p): Likewise.
15513         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
15514         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
15515         according to tbaa_p.
15516         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
15517         (optimize_stmt): For redundant store discovery do not allow tbaa.
15519 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
15521         PR tree-optimization/69714
15522         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
15523         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
15525 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
15527         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
15528         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
15529         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
15530         * config/arc/arc.c (arc_init): Check FPU options.
15531         (get_arc_condition_code): Handle new CC_FPU* modes.
15532         (arc_select_cc_mode): Likewise.
15533         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
15534         register pair only. Allow access for ARCv2 accumulator.
15535         (gen_compare_reg): Whenever we have FPU support use FPU compare
15536         instructions.
15537         (arc_reorg): Don't generate brcc insns when FPU compare
15538         instructions are involved.
15539         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
15540         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
15541         floating point emulation.
15542         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
15543         (REVERSE_CONDITION): Add new CC_FPU* modes.
15544         (TARGET_FP_SP_BASE): Define.
15545         (TARGET_FP_DP_BASE): Likewise.
15546         (TARGET_FP_SP_FUSED): Likewise.
15547         (TARGET_FP_DP_FUSED): Likewise.
15548         (TARGET_FP_SP_CONV): Likewise.
15549         (TARGET_FP_DP_CONV): Likewise.
15550         (TARGET_FP_SP_SQRT): Likewise.
15551         (TARGET_FP_DP_SQRT): Likewise.
15552         (TARGET_FP_DP_AX): Likewise.
15553         * config/arc/arc.md (ARCV2_ACC): New constant.
15554         (type): New fpu type attribute.
15555         (SDF): Conditional iterator.
15556         (cstore<mode>, cbranch<mode>): Change expand condition.
15557         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
15558         handles FPU/FPX cases as well.
15559         * config/arc/arc.opt (mfpu): New option.
15560         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
15561         Renamed.
15562         (adddf3, muldf3, subdf3): Removed.
15563         * config/arc/predicates.md (proper_comparison_operator): Recognize
15564         CC_FPU* modes.
15565         * config/arc/fpu.md: New file.
15566         * doc/invoke.texi (ARC Options): Document mfpu option.
15568 2016-02-16  Richard Biener  <rguenther@suse.de>
15570         PR rtl-optimization/69291
15571         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15572         noce_operand_ok check.
15574 2016-02-16  Tom de Vries  <tom@codesourcery.com>
15576         PR lto/67709
15577         * omp-low.c (simd_clone_create): Remove call to
15578         symtab->call_cgraph_insertion_hooks.
15580 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15582         PR tree-optimization/69802
15583         * tree-ssa-reassoc.c (update_range_test): If op is
15584         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15585         op == 1 test of precision 1 integral op, otherwise handle
15586         that case as op itself.  Fix up formatting.
15587         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15588         up formatting.
15590 2016-02-16  Richard Biener  <rguenther@suse.de>
15592         PR tree-optimization/69586
15593         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15594         types for conversion sources.
15596 2016-02-16  Richard Biener  <rguenther@suse.de>
15598         PR middle-end/69801
15599         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15600         mask OEP_ADDRESS_OF.
15602 2016-02-16  Alan Modra  <amodra@gmail.com>
15604         PR target/68973
15605         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15606         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15607         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15608         (p8_mtvsrwz): New.
15609         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15610         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15611         (p8_fmrgow_<mode>): Likewise.
15612         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
15613         changes.
15614         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15615         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15616         to use movdi_internal64.  Remove op0_di.
15617         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15619 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
15621         Add support for the FCCMP insn types
15623         * config/aarch64/aarch64.md (fccmp): Change insn type.
15624         (fccmpe): Likewise.
15625         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15626         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15627         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15628         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15629         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15630         * config/arm/types.md (fccmps): Add new insn type.
15631         (fccmpd): Likewise.
15633 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15635         * alias.c (get_alias_set): Fix a typo in comment.
15637 2016-02-15  Richard Biener  <rguenther@suse.de>
15639         PR tree-optimization/69595
15640         * match.pd: Complete range test simplification to true.
15642 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
15644         PR rtl-optimization/69648
15645         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15646         pic_offset_table_rtx.
15648         PR rtl-optimization/69752
15649         * ira.c (update_equiv_regs): When looking for more than a single SET,
15650         also take other side effects into account.
15652 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15654         * config/s390/s390.c (s390_function_profiler): Add a new sequence
15655         for z900+ CPUs in 31-bit mode.
15657 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15659         * common/config/s390/s390-common.c (s390_supports_split_stack):
15660         New function.
15661         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15662         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15663         * config/s390/s390.c (struct machine_function): New field
15664         split_stack_varargs_pointer.
15665         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15666         in s390_emit_prologue.
15667         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15668         vararg pointer.
15669         (morestack_ref): New global.
15670         (SPLIT_STACK_AVAILABLE): New macro.
15671         (s390_expand_split_stack_prologue): New function.
15672         (s390_live_on_entry): New function.
15673         (s390_va_start): Use split-stack vararg pointer if appropriate.
15674         (s390_asm_file_end): Emit the split-stack note sections.
15675         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15676         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15677         (UNSPECV_SPLIT_STACK_CALL): New unspec.
15678         (UNSPECV_SPLIT_STACK_DATA): New unspec.
15679         (split_stack_prologue): New expand.
15680         (split_stack_space_check): New expand.
15681         (split_stack_data): New insn.
15682         (split_stack_call): New expand.
15683         (split_stack_call_*): New insn.
15684         (split_stack_cond_call): New expand.
15685         (split_stack_cond_call_*): New insn.
15687 2016-02-15  Richard Biener  <rguenther@suse.de>
15689         PR tree-optimization/69783
15690         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15691         Add trivially correct cases.
15693 2016-02-15  Tom de Vries  <tom@codesourcery.com>
15695         PR lto/69655
15696         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15697         do_force_output.
15698         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15700 2016-02-15  Richard Biener  <rguenther@suse.de>
15702         PR tree-optimization/69776
15703         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15704         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15705         indicate whether we can use TBAA to disambiguate against stores.
15706         Use alias-set zero if not.
15707         (visit_reference_op_store): Do not use TBAA when looking up
15708         redundant stores.
15709         * tree-ssa-pre.c (compute_avail): Use TBAA here.
15710         (eliminate_dom_walker::before_dom_children): But not when looking
15711         up redundant stores.
15713 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
15715         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15717 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15719         *  config/i386/znver1.md
15720         (znver1_pop, znver1_pop_mem,
15721         znver1_load_imov_double_store,
15722         znver1_load_imov_direct_store,
15723         znver1_load_imov_direct_load,
15724         znver1_load_imov_double_load): Add new.
15725         (znver1_insn, znver1_insn_load): Add icmov type.
15726         (znver1_sseavx_fma,
15727         znver1_sseavx_fma_load,
15728         znver1_avx256_fma,
15729         znver1_avx256_fma_load): Fix pipe usage.
15731 2016-02-14  Alan Modra  <amodra@gmail.com>
15733         PR target/68973
15734         * reload.c (find_reloads_address_1): For pre/post-inc/dec
15735         with an invalid hard reg, reload just the reg not the entire
15736         pre/post-inc/dec address expression.
15738 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15740         PR target/67260
15741         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15742         fixed R1_REG scratch reg.
15743         (sibcall_value_pcrel_fdpic): Likewise.
15745 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15747         PR target/67636
15748         PR target/64345
15749         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15751 2016-02-12  Walter Lee  <walt@tilera.com>
15753         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15754         * config/tilegx/t-tilegx: Likewise.
15756 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15758         PR other/69554
15759         * diagnostic-show-locus.c (struct line_span): New struct.
15760         (layout::get_first_line): Delete.
15761         (layout::get_last_line): Delete.
15762         (layout::get_num_line_spans): New member function.
15763         (layout::get_line_span): Likewise.
15764         (layout::print_heading_for_line_span_index_p): Likewise.
15765         (layout::get_expanded_location): Likewise.
15766         (layout::calculate_line_spans): Likewise.
15767         (layout::m_first_line): Delete.
15768         (layout::m_last_line): Delete.
15769         (layout::m_line_spans): New field.
15770         (layout::layout): Update comment.  Replace m_first_line and
15771         m_last_line with m_line_spans, replacing their initialization
15772         with a call to calculate_line_spans.
15773         (diagnostic_show_locus): When printing source lines and
15774         annotations, rather than looping over a single span
15775         of lines, instead loop over each line_span within
15776         the layout, with an inner loop over the lines within them.
15777         Call the context's start_span callback when changing line spans.
15778         * diagnostic.c (diagnostic_initialize): Initialize start_span.
15779         (diagnostic_build_prefix): Break out the building of the location
15780         part of the string into...
15781         (diagnostic_get_location_text): ...this new function, rewriting
15782         it from nested ternary expressions to a sequence of "if"
15783         statements.
15784         (default_diagnostic_start_span_fn): New function.
15785         * diagnostic.h (diagnostic_start_span_fn): New typedef.
15786         (diagnostic_context::start_span): New field.
15787         (default_diagnostic_start_span_fn): New prototype.
15789 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15791         PR driver/69779
15792         * gcc.c (driver::finalize): Fix cleanup of "specs".
15794 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15796         PR driver/69265
15797         PR driver/69453
15798         * gcc.c (driver::driver): Initialize m_option_suggestions.
15799         (driver::~driver): Clean up m_option_suggestions.
15800         (suggest_option): Convert to...
15801         (driver::suggest_option): ...this, and split out into
15802         driver::build_option_suggestions and find_closest_string.
15803         (driver::build_option_suggestions): New function, from
15804         first half of suggest_option.  Special-case
15805         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15806         the sanitizer_opts array.  For options of enum types, add the
15807         various enum values to the candidate strings.
15808         (driver::handle_unrecognized_options): Remove "const".
15809         * gcc.h (driver::handle_unrecognized_options): Likewise.
15810         (driver::build_option_suggestions): New decl.
15811         (driver::suggest_option): New decl.
15812         (driver::m_option_suggestions): New field.
15813         * opts-common.c (add_misspelling_candidates): New function.
15814         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15815         and make non-static.
15816         * opts.h (sanitizer_opts): New array decl.
15817         (add_misspelling_candidates): New function decl.
15818         * spellcheck.c (find_closest_string): New function.
15819         * spellcheck.h (find_closest_string): New function decl.
15821 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15823         PR rtl-optimization/69764
15824         PR rtl-optimization/69771
15825         * optabs.c (expand_binop_directly): For shift_optab_p, force
15826         convert_modes with VOIDmode if xop1 has VOIDmode.
15828 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
15830         PR target/69729
15831         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15832         to correctly determine instrumentation thunks.
15834 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15836         PR ipa/69241
15837         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15838         type by reference, force lhs on the call.
15840         PR ipa/68672
15841         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15842         Compute retval and retbnd early in all cases if split_part_return_p
15843         and return_bb is not EXIT.  Remove all clobber stmts and reset
15844         all debug stmts that refer to SSA_NAMEs defined in split part,
15845         except if it is retval, in that case replace the old retval with the
15846         lhs of the call to the split part.
15848 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15850         revert:
15851         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15853         PR middle-end/66726
15854         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15855         whose result is used in PHI.
15856         (maybe_optimize_range_tests): Likewise.
15857         (final_range_test_p): Likweise.
15859 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15861         PR middle-end/66726
15862         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15863         whose result is used in PHI.
15864         (maybe_optimize_range_tests): Likewise.
15865         (final_range_test_p): Likweise.
15867 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15869         * cgraph.c: Spelling fixes - behaviour -> behavior and
15870         neighbour -> neighbor.
15871         * target.def: Likewise.
15872         * sel-sched.c: Likewise.
15873         * config/mips/mips.c: Likewise.
15874         * config/arc/arc.md: Likewise.
15875         * config/arm/cortex-a57.md: Likewise.
15876         * config/arm/arm.c: Likewise.
15877         * config/arm/neon.md: Likewise.
15878         * config/arm/arm-c.c: Likewise.
15879         * config/vms/vms-c.c: Likewise.
15880         * config/s390/s390.c: Likewise.
15881         * config/i386/znver1.md: Likewise.
15882         * config/i386/i386.c: Likewise.
15883         * config/ia64/hpux-unix2003.h: Likewise.
15884         * config/msp430/msp430.md: Likewise.
15885         * config/rx/rx.c: Likewise.
15886         * config/rx/rx.md: Likewise.
15887         * config/aarch64/aarch64-simd.md: Likewise.
15888         * config/aarch64/aarch64.c: Likewise.
15889         * config/nvptx/nvptx.c: Likewise.
15890         * config/bfin/bfin.c: Likewise.
15891         * config/cris/cris.opt: Likewise.
15892         * config/rs6000/rs6000.c: Likewise.
15893         * target.h: Likewise.
15894         * spellcheck.c: Likewise.
15895         * ira-build.c: Likewise.
15896         * tree-inline.c: Likewise.
15897         * builtins.c: Likewise.
15898         * lra-constraints.c: Likewise.
15899         * explow.c: Likewise.
15900         * hwint.h: Likewise.
15901         * targhooks.c: Likewise.
15902         * tree-vect-data-refs.c: Likewise.
15903         * expr.c: Likewise.
15904         * doc/tm.texi: Likewise.
15905         * doc/extend.texi: Likewise.
15906         * doc/install.texi: Likewise.
15907         * doc/md.texi: Likewise.
15908         * tree-ssa-tail-merge.c: Likewise.
15909         * sched-int.h: Likewise.
15910         * match.pd: Likewise.
15911         * sched-ebb.c: Likewise.
15912         * target.def (omit_struct_return_reg): Likewise.
15913         * gimple-ssa-isolate-paths.c: Likewise.
15914         (find_implicit_erroneous_behaviour): Renamed to...
15915         (find_implicit_erroneous_behavior): ... this.
15916         (find_explicit_erroneous_behaviour): Renamed to...
15917         (find_explicit_erroneous_behavior): ... this.
15918         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15920 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
15922         PR rtl-optimization/64682
15923         PR rtl-optimization/69567
15924         PR rtl-optimization/69737
15925         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15926         in I2 as well, just lose it.
15928 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15930         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15931         New variable.
15932         (aarch64_last_printed_tune_string): Likewise.
15933         (aarch64_declare_function_name): Only output .arch assembler
15934         directive if it will be different from the previously output
15935         directive.  Same for .tune comment but only if -dA is set.
15936         (aarch64_start_file): New function.
15937         (TARGET_ASM_FILE_START): Define.
15939 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
15941         PR plugins/69758
15942         * Makefile.in (PLUGIN_HEADERS): Add params.list.
15944 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
15946         PR target/65313
15947         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15948         -Wmaybe-uninitialized warning.
15950 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
15952         PR target/69713
15953         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15955 2016-02-11  Richard Biener  <rguenther@suse.de>
15957         PR rtl-optimization/69291
15958         * ifcvt.c (noce_try_store_flag_constants): Do not allow
15959         subexpressions affected by changing the result.
15961 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
15963         PR target/69148
15964         * lra-constraints.c (curr_insn_transform): Find in/out operands
15965         for secondary memory moves.  Update dups.
15967 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
15969         PR tree-optimization/69652
15970         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15971         to nested loop, did source re-formatting, skip debug statements,
15972         add check on statement with volatile operand, remove dead scalar
15973         statements.
15975 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
15976             Patrick Palka  <ppalka@gcc.gnu.org>
15978         PR ipa/69241
15979         PR c++/69649
15980         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15981         calls if the return type is TREE_ADDRESSABLE.
15982         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15983         * ipa-split.c (split_function): Fix doubled "we" in comment.
15984         Use void return type for the split part even if
15985         !split_point->split_part_set_retval.
15987 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
15989         PR tree-optimization/68021
15990         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15991         when computing the value of biv cand by itself.
15993 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15995         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15996         (cortexa57_tunings): Likewise.
15997         (cortexa72_tunings): Likewise.
15998         (arch_macro_fusion_pair_p): Add support for AES fusion.
15999         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
16000         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
16001         Allow virtual registers before reload so early scheduling works.
16002         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
16003         correct latency and pipeline.
16004         (cortex_a57_crypto_complex): Likewise.
16005         (cortex_a57_crypto_xor): Likewise.
16006         (define_bypass): Add AES bypass.
16008 2016-02-10  Richard Biener  <rguenther@suse.de>
16010         PR tree-optimization/69726
16011         * passes.def: Add DCE pass before late uninit.
16012         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
16013         really fixup if-conversions job.
16015 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
16017         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
16018         (arm_cortex_a57_tune): Likewise.
16019         (aarch_macro_fusion_pair_p): Add support for AES fusion.
16020         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
16022 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
16024         * timevar.def (TV_PHASE_DBGINFO): Delete.
16025         (TV_PHASE_CHECK_DBGINFO): Likewise.
16026         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
16028 2016-02-10  Richard Biener  <rguenther@suse.de>
16030         PR tree-optimization/69719
16031         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16032         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
16034 2016-02-09  Andrew Pinski  <apinski@cavium.com>
16036         PR tree-opt/69282
16037         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
16038         get_vcond_mask_icode returns false.
16040 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16042         PR target/68404
16043         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
16044         an ADDIS that adds a pointer to a large constant that sets the
16045         upper16 bits with a load operation.
16047 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
16049         PR target/68532
16050         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
16051         order.
16052         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
16053         endian.
16054         (vzipq_s16): Likewise.
16055         (vzipq_s32): Likewise.
16056         (vzipq_f32): Likewise.
16057         (vzipq_u8): Likewise.
16058         (vzipq_u16): Likewise.
16059         (vzipq_u32): Likewise.
16060         (vzipq_p8): Likewise.
16061         (vzipq_p16): Likewise.
16063 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
16065         PR target/68532
16066         * config/arm/arm.c (neon_endian_lane_map): New function.
16067         (neon_vector_pair_endian_lane_map): New function.
16068         (arm_evpc_neon_vuzp): Allow for big endian lane order.
16069         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
16070         endian.
16071         (vuzpq_s16): Likewise.
16072         (vuzpq_s32): Likewise.
16073         (vuzpq_f32): Likewise.
16074         (vuzpq_u8): Likewise.
16075         (vuzpq_u16): Likewise.
16076         (vuzpq_u32): Likewise.
16077         (vuzpq_p8): Likewise.
16078         (vuzpq_p16): Likewise.
16080 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
16082         PR target/69634
16083         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
16084         debug insns.
16086 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
16088         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
16089         truncate const_int operand 1 to QImode.
16091 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
16093         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
16094         corresponding to an abnormal edge.
16096 2016-02-09  Tom de Vries  <tom@codesourcery.com>
16098         PR tree-optimization/69599
16099         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
16100         function.
16101         (find_func_aliases_for_builtin_call, find_func_clobbers)
16102         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
16103         partition.
16105 2016-02-09  Richard Biener  <rguenther@suse.de>
16107         PR tree-optimization/69715
16108         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
16109         LHS on calls as non-rewritable.
16111 2016-02-09  Tom de Vries  <tom@codesourcery.com>
16113         PR lto/69707
16114         * lto-wrapper.c (append_diag_options): New function.
16115         (compile_offload_image): Call append_diag_options.
16117 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
16119         PR other/69722
16120         * doc/extend.texi (Flag Output Operands): Correct sectioning.
16121         Minor copy-edit to fix verb tenses.
16123 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
16125         PR tree-optimization/69209
16126         * ipa-split.c (split_function): If split part is not
16127         returning retval, retval has gimple type but is not
16128         gimple value, force it into a SSA_NAME first.
16130 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
16132         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
16133         outdated section.
16135 2016-02-08  Jason Merrill  <jason@redhat.com>
16137         PR c++/69631
16138         * convert.c (convert_to_integer_1): Check dofold on truncation
16139         distribution.
16140         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
16141         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
16142         Rename from *_nofold.
16143         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
16144         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
16146 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
16148         PR target/60410
16149         * tree.c (build_common_tree_nodes): Remove short_double argument.
16150         All callers changed.
16151         * tree.h (build_common_tree_nodes): Adjust declaration.
16152         * doc/invoke.texi (-fshort-double): Remove documentation.
16153         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16154         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
16155         * lto-wrapper.c (merge_and_complain, append_compiler_options)
16156         (append_linker_options): Don't handle OPT_fshort_double.
16158         PR rtl-optimization/68730
16159         * lra-remat.c (insn_to_cand_activation): New static variable.
16160         (lra_remat): Allocate and free it.
16161         (create_cand): New arg activation. Initialize a field in
16162         insn_to_cand_activation if it is nonnull.
16163         (create_cands): Pass the activation insn to create_cand when making
16164         a candidate involving an output reload.  Reorganize code a little.
16165         (do_remat): Keep track of active status of candidates in a separate
16166         bitmap.
16168 2016-02-08  Richard Biener  <rguenther@suse.de>
16170         PR tree-optimization/69719
16171         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16172         Properly use absolute of the difference of the two offsets to
16173         compare or adjust the segment length.
16175 2016-02-08  Richard Biener  <rguenther@suse.de>
16176             Jeff Law  <law@redhat.com>
16178         PR target/68273
16179         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
16180         types for anonymous SSA names.
16182 2016-02-08   Richard Biener  <rguenther@suse.de>
16184         PR rtl-optimization/69274
16185         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
16187 2016-02-08  Jeff Law  <law@redhat.com>
16189         PR tree-optimization/65917
16190         * tree-ssa-dom.c (record_temporary_equivalences): Record both
16191         equivalences from if (x == y) style conditionals.
16192         (loop_depth_of_name): Remove.
16193         (record_equality): Remove loop depth check.
16194         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
16195         (const_and_copies::record_const_or_copy_raw): New member function.
16196         * tree-ssa-scopedtables.c
16197         (const_and_copies::record_const_or_copy_raw): New, factored out of
16198         (const_and_copies::record_const_or_copy): Call new member function.
16200 2016-02-05  Jeff Law  <law@redhat.com>
16202         PR tree-optimization/68541
16203         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
16204         (count_stmts_in_block): New function.
16205         (poor_ifcvt_candidate_code): Likewise.
16206         (is_feasible_trace): Add some heuristics to determine when path
16207         splitting is profitable.
16208         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
16209         is a diamond with a single exit.
16211 2016-02-05  Martin Sebor  <msebor@redhat.com>
16213         PR c++/69662
16214         * doc/invoke.texi: Update -Wplacement-new to take an optional
16215         argument.
16217 2016-02-06  Richard Henderson  <rth@redhat.com>
16219         PR c/69643
16220         * tree.c (tree_nop_conversion_p): Do not strip casts into or
16221         out of non-standard address spaces.
16223 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
16225         PR rtl-optimization/69691
16226         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
16228 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
16230         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
16231         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
16232         (*ieee128_mfvsrd_64bit): Likewise.
16233         (*ieee128_mfvsrd_32bit): Likewise.
16235 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
16237         PR target/69369
16238         Revert r232560:
16239         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16241         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16242         instrumented_version.
16244 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
16246         * doc/invoke.texi (Optimize Options): In table of --param options
16247         rename second occurrence of tracer-min-branch-ratio to
16248         tracer-min-branch-probability, rename
16249         tracer-min-branch-ratio-feedback to
16250         tracer-min-branch-probability-feedback and clarify description,
16251         rename sched-spec-state-edge-prob-cutoff to
16252         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
16253         to selsched-insns-to-rename, rename lto-minpartition to
16254         lto-min-partition, delete reorder-blocks-duplicate and
16255         reorder-blocks-duplicate-feedback.
16257 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16259         * config/s390/s390.c (s390_register_info_set_ranges): Remove
16260         superfluous loops.
16262 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16264         * doc/extend.texi: S/390: Correct some typos.
16266 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16268         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
16270 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16272         PR target/69625
16273         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
16274         (s390_register_info_gprtofpr): Use new macros above.
16275         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
16276         its name.
16277         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
16278         its name.  Adjust restore and save gpr ranges.
16279         (s390_register_info_set_ranges): New function.
16280         (s390_register_info): Use new macros above.  Call
16281         s390_register_info_set_ranges.
16282         (s390_optimize_register_info): Likewise.
16283         (s390_hard_regno_rename_ok): Use new macros.
16284         (s390_hard_regno_scratch_ok): Likewise.
16285         (s390_emit_epilogue): Likewise.
16286         (s390_can_use_return_insn): Likewise.
16287         (s390_optimize_prologue): Likewise.
16288         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
16290 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
16292         PR bootstrap/69677
16293         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
16294         alignment fixes.
16295         (ix86_option_override_internal): Disable TARGET_STV even for
16296         -m{incoming,preferred}-stack-boundary=3.
16298 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16300         * config.gcc: Mark deprecated rtems targets as obsolete.
16302 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
16304         PR rtl-optimization/64682
16305         PR rtl-optimization/69567
16306         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
16307         before I2 only if the register is both used and set in I2.
16309 2016-02-04  DJ Delorie  <dj@redhat.com>
16311         * config/msp430/msp430.c (msp430_start_function): Add function type.
16313 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
16315         PR fortran/69368
16316         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
16318 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
16320         PR rtl-optimization/69577
16321         Revert:
16322         2015-10-29  Richard Henderson  <rth@redhat.com>
16324         PR target/68124
16325         PR rtl-opt/67609
16326         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
16327         sse check to the exact conditions of PR 67609.
16329 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16331         PR target/69667
16332         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
16333         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
16334         not allowed into the traditional Altivec registers.
16335         (movtd_64bit_nodm): Likewise.
16336         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16338 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
16340         * config/aarch64/cortex-a57-fma-steering.c
16341         (aarch64_register_fma_steering): Remove "static" from arguments
16342         to register_pass.
16344 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
16346         PR target/69619
16347         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
16348         twice when complex.
16350 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
16352         * doc/invoke.texi: Delete -mno-fma4.
16354 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
16356         PR rtl-optimization/69577
16357         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
16358         (find_subregs_of_mode): Update accordingly.  Iterate over partial
16359         definitions.
16361 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
16363         * config/arm/arm-protos.h (neon_reinterpret): Remove.
16364         * config/arm/arm.c (neon_reinterpret): Remove.
16365         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
16366         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
16367         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
16368         vreinterpretti): Remove.
16369         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
16370         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16371         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
16372         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
16373         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
16374         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
16375         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
16376         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
16377         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
16378         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
16379         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
16380         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
16381         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
16382         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
16383         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
16384         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
16385         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
16386         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
16387         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
16388         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
16389         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
16390         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
16391         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
16392         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
16393         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
16394         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
16395         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
16396         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
16397         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
16398         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
16399         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
16400         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
16401         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
16402         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
16403         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
16404         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
16405         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
16406         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
16407         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
16408         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
16409         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
16410         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
16411         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
16412         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
16413         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
16414         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
16415         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
16416         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
16417         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
16418         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
16419         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
16420         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
16421         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
16422         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
16423         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
16424         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
16425         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
16426         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
16427         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
16428         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
16429         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
16430         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
16431         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
16432         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
16433         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
16434         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
16435         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
16436         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
16437         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
16438         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
16439         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
16440         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
16441         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
16442         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
16443         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
16444         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
16445         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
16446         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
16447         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
16448         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
16449         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
16450         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
16451         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
16452         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
16453         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
16454         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
16455         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
16456         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
16457         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
16458         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
16459         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
16460         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
16461         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
16462         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
16463         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
16464         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
16465         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
16466         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
16467         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
16468         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
16469         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
16470         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
16471         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
16473 2016-02-04  Martin Liska  <mliska@suse.cz>
16475         PR sanitizer/69276
16476         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
16477         that are gimple_store_p.
16478         (maybe_instrument_call): Likewise.
16480 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
16482         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
16483         register scaling out of memory reference and comment why.
16485 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16487         PR target/65932
16488         PR target/67714
16489         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
16490         folding the source of a SET.
16492 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16494         PR target/65932
16495         PR target/67714
16496         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
16497         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
16499 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
16501         PR target/65932
16502         PR target/67714
16503         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
16504         HImode.
16506 2016-02-04  Christian Bruel  <christian.bruel@st.com>
16508         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
16509         * config/arm/arm.c (arm_set_current_function): Likewise.
16511 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
16512             Ilya Enkovich  <enkovich.gnu@gmail.com>
16513             H.J. Lu  <hongjiu.lu@intel.com>
16515         PR target/69454
16516         * config/i386/i386.c (convert_scalars_to_vector): Remove
16517         stack alignment fixes.
16518         (ix86_option_override_internal): Disable TARGET_STV if stack
16519         might not be aligned enough.
16520         (ix86_minimum_alignment): Assert that TARGET_STV is false.
16522 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
16524         * config/i386/x86-tune.def: Disable default prefetching
16525         for -march=znver1.
16527 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16528             Vladimir Makarov  <vmakarov@redhat.com>
16530         PR target/69461
16531         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
16532         in validating fused toc addresses.
16534 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
16536         PR c/69627
16537         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
16538         range->m_caret fields if range->m_show_caret_p is false.
16540         PR target/69644
16541         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16542         Force oldval into register if it does not satisfy reg_or_short_operand
16543         predicate.  Fix up formatting.
16545 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16546             Alexandre Oliva  <aoliva@redhat.com>
16548         PR target/69461
16549         * lra-constraints.c (simplify_operand_subreg): Check additionally
16550         address validity after potential reloading.
16551         (process_address_1): Check insns validity.  In case of failure do
16552         nothing.
16554 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
16556         PR target/69118
16557         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
16558         Fix target.
16560 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
16562         * wide-int.cc (canonize_uhwi): New function.
16563         (wi::divmod_internal): Use it.
16565 2016-02-02  James Norris  <jnorris@codesourcery.com
16567         * gimplify.c (omp_notice_variable): Add usage check.
16569 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
16571         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16572         like LE, GE, LT, GT when emitting relational operator.
16574 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16576         * ira-costs.c (find_costs_and_classes): Add extra argument.
16577         * target.def (ira_change_pseudo_allocno_class): Add parameter.
16578         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16579         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16580         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16581         Add best_class parameter, and return it if not ALL_REGS.
16582         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16583         Add parameter.
16584         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16585         Update target hook.
16587 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16589         * config/aarch64/aarch64.c
16590         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16591         (aarch64_ira_change_pseudo_allocno_class): New function.
16593 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
16595         PR target/67032
16596         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16598 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16600         * config/avr/avr.c (avr_option_override): Set
16601         PARAM_ALLOW_STORE_DATA_RACES to 1.
16603 2016-02-02  Richard Biener  <rguenther@suse.de>
16605         PR tree-optimization/69595
16606         * match.pd: Add range test simplifications to true/false.
16608 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
16610         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16611         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16612         instead.
16614 2016-02-02  Richard Biener  <rguenther@suse.de>
16616         PR tree-optimization/69606
16617         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16618         info on the result before moving a stmt.
16620 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
16622         PR middle-end/68542
16623         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16624         branch with vector comparison.
16625         * config/i386/sse.md (VI48_AVX): New mode iterator.
16626         (define_expand "cbranch<mode>4): Add support for conditional branch
16627         with vector comparison.
16628         * tree-vect-loop.c (optimize_mask_stores): New function.
16629         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16630         has_mask_store field of vect_info.
16631         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16632         vectorized loops having masked stores after vec_info destroy.
16633         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16634         correspondent macros.
16635         (optimize_mask_stores): Add prototype.
16637 2016-02-02  Alan Modra  <amodra@gmail.com>
16639         PR target/69548
16640         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16641         allow subregs.
16643 2016-02-02  Alan Modra  <amodra@gmail.com>
16645         PR target/68662
16646         * config/rs6000/rs6000.c (need_toc_init): New var, set it
16647         whenever toc_label_name used.
16648         (rs6000_file_start): Don't set up toc section here,
16649         (rs6000_output_function_epilogue): do so here instead,
16650         (rs6000_xcoff_file_start): and here.
16651         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16652         (load_toc_aix_di): Likewise.
16654 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16656         PR rtl-optimization/69592
16657         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16658         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16659         (num_sign_bit_copies_binary_arith_p): New inline function.
16660         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16662 2016-02-01  Jeff Law  <law@redhat.com>
16664         PR tree-optimization/69580
16665         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16666         * tree-ssa-threadbackward.c
16667         (fsm_find_control_statement_thread_paths): Do not try to walk
16668         through large PHI nodes.
16670 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16672         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16673         when count is incremented above limit, don't analyze further
16674         insns afterwards.
16676         * omp-low.c (oacc_parse_default_dims): Avoid
16677         -Wsign-compare warning, make sure value fits into int
16678         rather than just unsigned int.
16680 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
16682         PR tree-optimization/67921
16683         * fold-const.c (split_tree): New parameters.  Convert pointer
16684         type variable part to proper type before negating.
16685         (fold_binary_loc): Pass new arguments to split_tree.
16687 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
16689         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16690         (nvptx_goacc_validate_dims): Extend to handle global defaults.
16691         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16692         * doc/tm.texti: Rebuilt.
16693         * doc/invoke.texi (fopenacc-dim): Document.
16694         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16695         (append_compiler_options): Likewise.
16696         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16697         (oacc_parse_default_dims): New.
16698         (oacc_validate_dims): Add USED arg.  Select non-unity default when
16699         possible.
16700         (oacc_loop_fixed_partitions): Return mask of used partitions.
16701         (oacc_loop_auto_partitions): Emit dump info.
16702         (oacc_loop_partition): Return mask of used partitions.
16703         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
16704         loop partitioning and validation calls.
16706 2016-02-01  Richard Biener  <rguenther@suse.de>
16708         PR middle-end/69556
16709         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16711 2016-02-01  Richard Biener  <rguenther@suse.de>
16713         PR tree-optimization/69574
16714         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16715         of asserting return chrec_dont_know.
16717 2016-02-01  Martin Liska  <mliska@suse.cz>
16719         * mem-stats-traits.h: Add copyright header.
16720         * mem-stats.h: Likewise.
16722 2016-02-01  Richard Biener  <rguenther@suse.de>
16724         PR tree-optimization/69579
16725         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16726         Do not propagate through abnormal PHI results.
16728 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
16730         * postreload.c (reload_cse_simplify): Remove dead code.
16732 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16734         PR rtl-optimization/69570
16735         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16736         if there is more than one set, not if there is a single set.
16738 2016-02-01  Richard Henderson  <rth@redhat.com>
16740         PR rtl-opt/69535
16741         * combine.c (make_compound_operation): When looking through a
16742         subreg, make sure to re-extend to the width of the outer mode.
16744 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
16746         PR tree-optimization/69546
16747         * wide-int.cc (wi::divmod_internal): For unsigned division
16748         where both operands fit into uhwi, if o1 is 1 and o0 has
16749         msb set, if divident_prec is larger than bits per hwi,
16750         clear another quotient word and return 2 instead of 1.
16751         Similarly for remainder with msb in HWI set, if dividend_prec
16752         is larger than bits per hwi.
16754 2016-01-29  Martin Jambor  <mjambor@suse.cz>
16756         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16757         Use short lowercase names.
16758         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
16759         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16760         acq_rel one.  Protect warning agains segfaults if
16761         get_memory_order_name returns NULL.
16762         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16763         with release semantics.  Do not warn if get_memory_order already did.
16764         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16765         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
16766         if get_memory_order already did.
16768 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
16770         * doc/install.texi: Document that isl-0.16 is supported.
16772 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
16774         PR target/69299
16775         * config/i386/constraints.md (Bm): Describe as special memory
16776         constraint.
16777         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16778         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16779         * genpreds.c (struct constraint_data): Add is_special_memory.
16780         (have_special_memory_constraints, special_memory_start): New
16781         static vars.
16782         (special_memory_end): Ditto.
16783         (add_constraint): Add new arg is_special_memory.  Add code to
16784         process its true value.  Update have_special_memory_constraints.
16785         (process_define_constraint): Pass the new arg.
16786         (process_define_register_constraint): Ditto.
16787         (choose_enum_order): Process special memory.
16788         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16789         function insn_extra_special_memory_constraint.
16790         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16791         * gensupport.c (process_rtx): Process
16792         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16793         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16794         * ira-lives.c (single_reg_class): Use
16795         insn_extra_special_memory_constraint.
16796         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16797         * lra-constraints.c (process_alt_operands): Ditto.
16798         (curr_insn_transform): Use insn_extra_special_memory_constraint.
16799         * recog.c (asm_operand_ok, preprocess_constraints): Process
16800         CT_SPECIAL_MEMORY.
16801         * reload.c (find_reloads): Ditto.
16802         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16803         * stmt.c (parse_input_constraint): Use
16804         insn_extra_special_memory_constraint.
16806 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16808         PR target/69530
16809         * lra-splill.c (lra_final_code_change): Revert r229087 by
16810         removing all sub-registers.
16812 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
16814         PR target/65604
16815         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16817 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
16819         PR target/69551
16820         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16821         SSE1, copy target into the temporary reg first before recursing
16822         on it.
16824 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16826         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16827         with vm.
16829 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16831         * ginclude/stdarg.h: Test __cplusplus instead of
16832         __GXX_EXPERIMENTAL_CXX0X__.
16834 2016-01-29  Richard Biener  <rguenther@suse.de>
16836         PR tree-optimization/69547
16837         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16838         Do not mark clobbers necessary.
16839         (mark_all_reaching_defs_necessary_1): Likewise.
16841 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16843         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16844         declaration name with %qs and print it in both error messages.
16845         Also fix indentation.
16847 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16849         PR other/69006
16850         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16851         trailing blank line from error message.
16853 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16855         PR c++/69462
16856         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16857         for C++-11.
16859 2016-01-29  Richard Biener  <rguenther@suse.de>
16861         PR middle-end/69537
16862         * match.pd: Allow all integral types when simplifying a
16863         widening or sign-changing conversion.
16865 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16867         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16868         back to setting codegen_error to fail codegen.
16870 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
16872         PR target/69459
16873         * config/i386/constraints.md (C): Only accept constant zero operand.
16874         (BC): New constraint.
16875         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16876         instead of C constraint.
16877         * doc/md.texi (Machine Constraints): Update description
16878         of C constraint.
16880 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
16882         PR target/68400
16883         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16885 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
16887         PR middle-end/69542
16888         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16889         non-debug insns.
16891 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
16893         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16894         branches if using guessed profile.
16896 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
16898         * graphite-optimize-isl.c (optimize_isl): Fix dump.
16900 2016-01-28  Richard Henderson  <rth@redhat.com>
16902         PR target/69305
16903         * config/aarch64/aarch64-modes.def (CC_Cmode): New
16904         * config/aarch64/aarch64-protos.h: Update.
16905         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16906         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16907         (aarch64_get_condition_code_1): Handle CC_Cmode.
16908         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16909         (*add<mode>3_compareC_cconly_imm): New.
16910         (*add<mode>3_compareC_cconly): New.
16911         (*add<mode>3_compareC_imm): New.
16912         (add<mode>3_compareC): New.
16913         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16914         to be first.  Use aarch64_carry_operation.
16915         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16916         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16917         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16918         (subti3): Use subdi3_compare1.
16919         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16920         (sub<mode>3_compare1): New.
16921         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16922         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16923         (*subsi3_carryin_uxtw): Likewise.
16924         (*ngc<mode>, *ngcsi_uxtw): Likewise.
16925         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16926         * config/aarch64/iterators.md (DWI): New.
16927         * config/aarch64/predicates.md (aarch64_carry_operation): New.
16928         (aarch64_borrow_operation): New.
16930 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16932         * graphite-optimize-isl.c (optimize_isl): Print a different debug
16933         message when isl does not return a valid schedule.
16935 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16937         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16938         Remove comments from class declarations: they are already in the code
16939         close by the defs.
16941 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16943         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16944         codegen_error_p.
16945         (ternary_op_to_tree): Same.
16946         (unary_op_to_tree): Same.
16947         (nary_op_to_tree): Same.
16948         (gcc_expression_from_isl_expr_op): Same.
16949         (gcc_expression_from_isl_expression): Same.
16950         (graphite_create_new_loop): Same.
16951         (graphite_create_new_loop_guard): Same.
16952         (build_iv_mapping): Same.
16953         (graphite_create_new_guard): Same.
16954         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16955         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16957 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16959         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16960         instead of setting codegen_error to fail codegen.
16962 2016-01-28  Jason Merrill  <jason@redhat.com>
16964         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16966 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16968         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16969         Remove CONST_INT_P check in CCMP cost calculation.
16971 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16973         * config/aarch64/aarch64.c (generic_vector_cost):
16974         Set vec_permute_cost.
16975         (cortexa57_vector_cost): Likewise.
16976         (exynosm1_vector_cost): Likewise.
16977         (xgene1_vector_cost): Likewise.
16978         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16979         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16980         Add vec_permute_cost entry.
16982 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16984         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16985         immediate as %1.
16986         (add<mode>3_compare0): Likewise.
16987         (addsi3_compare0_uxtw): Likewise.
16988         (add<mode>3nr_compare0): Likewise.
16989         (compare_neg<mode>): Likewise.
16990         (<optab><mode>3): Likewise.
16992 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
16994         * tree-vect-stmts.c (vectorizable_comparison): Add
16995         NULL check for vectype.
16997 2016-01-28  Richard Biener  <rguenther@suse.de>
16999         PR tree-optimization/69466
17000         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
17001         Account for PHIs we couldn't duplicate.
17003 2016-01-28  Martin Liska  <mliska@suse.cz>
17005         PR pch/68758
17006         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
17007         instead of ENABLE_VALGRIND_CHECKING.
17009 2016-01-27  Richard Henderson  <rth@redhat.com>
17011         PR rtl-opt/69447
17012         * lra-remat.c (subreg_regs): New.
17013         (dump_candidates_and_remat_bb_data): Dump it.
17014         (operand_to_remat): Reject if operand in subreg_regs.
17015         (set_bb_regs): Collect subreg_regs.
17016         (lra_remat): Init and free subreg_regs.  Compute
17017         calculate_local_reg_remat_bb_data before create_cands.
17019 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
17021         PR target/68986
17022         * config/i386/i386.c (ix86_update_stack_boundary): Don't
17023         change stack_alignment_needed for __tls_get_addr call.
17025 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
17027         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
17029 2016-01-27  Jeff Law  <law@redhat.com>
17031         PR tree-optimization/68398
17032         PR tree-optimization/69196
17033         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
17034         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
17035         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17036         Only count PHIs in the last block in the path.  The others will
17037         const/copy propagate away.  Add heuristic to allow more irreducible
17038         subloops to be created when it is likely profitable to do so.
17040         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17041         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
17042         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
17044 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
17046         PR lto/69254
17047         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
17048         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
17049         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
17050         * tree-streamer-in.c: Include asan.h.
17051         (streamer_get_builtin_tree): For builtins in sanitizer
17052         range call initialize_sanitizer_builtins and retry.
17054 2016-01-27  Ian Lance Taylor  <iant@google.com>
17056         * common.opt (fkeep-gc-roots-live): New undocumented option.
17057         * tree-ssa-loop-ivopts.c (add_candidate_1): If
17058         -fkeep-gc-roots-live, skip pointers.
17059         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
17060         NULL.
17062 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
17064         PR target/69512
17065         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
17066         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
17068 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
17070         PR target/68380
17071         * configure.ac: NetBSD provides SSP in its C library.
17072         * configure: Updated.
17074 2016-01-27  Richard Biener  <rguenther@suse.de>
17076         PR tree-optimization/69166
17077         * tree-vect-loop.c (vect_is_simple_reduction): Always check
17078         reduction code for commutativity / associativity.
17080 2016-01-27  Martin Jambor  <mjambor@suse.cz>
17082         PR tree-optimization/69355
17083         * tree-sra.c (analyze_access_subtree): Correct hole detection when
17084         total_scalarization fails.
17086 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
17088         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
17089         power9.
17091 2016-01-27  Christian Bruel  <christian.bruel@st.com>
17093         PR target/69245
17094         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
17095         Move arm_reset_previous_fndecl and set_target_option_current_node in
17096         the conditional part.  Call save_restore_target_globals.
17097         * config/arm/arm.c (arm_set_current_function):
17098         Refactor to better support #pragma target and attribute mix.
17099         Call save_restore_target_globals.
17100         * config/arm/arm-protos.h (save_restore_target_globals): New function.
17102 2016-01-27  Martin Liska  <mliska@suse.cz>
17104         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
17105         reference for an HSA kernel and its host function.
17107 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
17109         PR tree-optimization/69399
17110         * wide-int.h (wi::lrshift): For larger precisions, only
17111         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
17113 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
17115         * config/arc/predicates.md (proper_comparison_operator): Reject
17116         constant-constant comparison.
17118 2016-01-26  Tom de Vries  <tom@codesourcery.com>
17120         PR tree-optimization/69110
17121         * tree-data-ref.c (initialize_data_dependence_relation): Handle
17122         DR_NUM_DIMENSIONS == 0.
17124 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
17125             Sebastian Pop  <s.pop@samsung.com>
17127         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
17128         isl_ast_op_cond and isl_ast_op_select.
17129         (gcc_expression_from_isl_expr_op): Same.
17131 2016-01-26  Jason Merrill  <jason@redhat.com>
17133         PR c++/68782
17134         * tree.c (recompute_constructor_flags): Split out from
17135         build_constructor.
17136         (verify_constructor_flags): New.
17137         * tree.h: Declare them.
17139 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
17141         PR rtl-optimization/69217
17142         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
17143         are no TYPE_FIELDS set for the record type.
17145 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17147         PR target/68662
17148         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
17149         toc_label_name unconditionally.
17150         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
17151         SYMBOL_REF string.  Use toc_label_name instead of constructing
17152         LCTOC1.
17153         (rs6000_elf_declare_function_name): Use toc_label_name instead of
17154         constructing LCTOC1.
17156 2016-01-26  Martin Sebor  <msebor@redhat.com>
17158         PR other/69477
17159         * doc/extend.texi (Common Type Attributes): Move text that talks about
17160         attribute packed from attribute aligned to the section discussing
17161         the former attribute for clarity.
17163 2016-01-26  Richard Henderson  <rth@redhat.com>
17165         PR middle-end/60908
17166         * trans-mem.c (tm_region_init): Mark entry block as visited.
17168 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
17170         PR other/69006
17171         * diagnostic-show-locus.c (layout::print_source_line): Replace
17172         call to pp_newline with call to layout::print_newline.
17173         (layout::print_annotation_line): Likewise.
17174         (layout::move_to_column): Likewise.
17175         (layout::print_any_fixits): After printing any fixits, print a
17176         trailing newline, if necessary.
17177         (layout::print_newline): New method, resetting any colorization
17178         before a newline.
17179         (diagnostic_show_locus): Move the pp_newline to before the
17180         early bailout.  Remove dummy block enclosing the layout instance.
17181         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
17182         of pp_newline_and_flush with pp_flush.
17183         (diagnostic_append_note): Delete use of pp_newline.
17184         (diagnostic_append_note_at_rich_loc): Delete.
17185         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
17186         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
17187         when newline characters are added to the buffer.
17189 2016-01-26  Michael Matz  <matz@suse.de>
17191         * configure.ac (ac_cv_std_swap_in_utility): New test.
17192         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
17193         * configure: Regenerate.
17194         * config.in: Regenerate.
17196 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
17198         * config/arc/arc.md (cstoresi4): Force operand into register.
17199         (arcset<code>): Fix predicate.
17200         (arcsetltu): Likewise.
17201         (arcsetgeu): Likewise.
17202         (arcsethi): Likewise.
17203         (arcsetls): Likewise.
17205 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17207         PR tree-optimization/69483
17208         * gimple-fold.c (canonicalize_constructor_val): Return NULL
17209         if base has error_mark_node type.
17211 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
17213         PR target/68620
17214         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
17215         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
17216         New helper macros.
17217         (vget_lane_f16): Handle big-endian.
17218         (vgetq_lane_f16): Likewise.
17219         (vset_lane_f16): Likewise.
17220         (vsetq_lane_f16): Likewise.
17221         * config/arm/iterators.md (VQXMOV): Add V8HF.
17222         (VDQ): Add V4HF and V8HF.
17223         (V_reg): Handle V4HF and V8HF.
17224         (Is_float_mode): Likewise.
17225         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
17226         neon_vdup_nv8hf): New patterns.
17227         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
17228         Use VD_LANE iterator.
17229         (neon_vld1_dup<mode>): Use VQ2 iterator.
17231 2016-01-26  Nathan Sidwell  <nathan@acm.org>
17233         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
17234         (set_oacc_fn_attrib): Add IS_KERNEL arg.
17235         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
17236         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
17237         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
17238         (oacc_validate_dims): Add LEVEL arg, don't return level.
17239         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
17240         oacc_validate_dims.
17241         (execute_oacc_device_lower): Adjust, add more dump output.
17242         * tree-ssa-loop.c (gate_oacc_kernels): Use
17243         oacc_fn_attrib_kernels_p.
17244         * tree-parloops.c (create_parallel_loop): Adjust
17245         set_oacc_fn_attrib call.
17247 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17249         PR lto/69254
17250         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
17251         (append_compiler_options): Handle -fcilkplus.
17252         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
17254 2016-01-26  Nick Clifton  <nickc@redhat.com>
17256         PR target/66655
17257         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
17258         been marked as DECL_ONE_ONLY but we do not the means to make it
17259         so, then do not allow it to bind locally.
17261 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17263         PR lto/69254
17264         * opts.h (parse_sanitizer_options): New prototype.
17265         * opts.c (sanitizer_opts): New array.
17266         (parse_sanitizer_options): New function.
17267         (common_handle_option): Use parse_sanitizer_options.
17269 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17271         PR target/68986
17272         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
17273         alignment adjustment to ...
17274         (ix86_update_stack_boundary): Here.  Don't over-align stack for
17275         __tls_get_addr.
17276         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
17277         if __tls_get_addr is called.
17279 2016-01-26  Christian Bruel  <christian.bruel@st.com>
17281         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
17283 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17285         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
17287 2016-01-26  Richard Biener  <rguenther@suse.de>
17289         PR middle-end/69467
17290         * match.pd: Guard X * CST CMP 0 pattern with single_use.
17292 2016-01-26  Richard Biener  <rguenther@suse.de>
17294         PR tree-optimization/69452
17295         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
17296         (move_computations_dom_walker::before_dom_children): Rename
17297         to ...
17298         (move_computations_worker): This.
17299         (move_computations): Perform an RPO rather than a DOM walk.
17301 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17303         PR target/69442
17304         * combine.c (combine_instructions): For REG_EQUAL note with
17305         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
17306         to the underlying register.
17307         * doc/rtl.texi (REG_EQUAL): Document the behavior of
17308         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
17310 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
17312         PR target/67896
17313         * config/aarch64/aarch64-builtins.c
17314         (aarch64_init_simd_builtin_types): Do not set structural
17315         equality to __Poly{8,16,64,128}_t types.
17317 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
17319         PR tree-optimization/69400
17320         * wide-int.cc (wi_pack): Take the precision as argument and
17321         perform canonicalization here rather than in the callers.
17322         Use the main loop to handle all full-width HWIs.  Add a
17323         zero HWI if in_len isn't a full result.
17324         (wi::divmod_internal): Update accordingly.
17325         (wi::mul_internal): Likewise.  Simplify.
17327 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
17328             Sebastian Pop  <s.pop@samsung.com>
17330         * graphite-poly.c (apply_poly_transforms): Simplify.
17331         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
17332         (print_isl_map): Same.
17333         (print_isl_union_map): Same.
17334         (print_isl_schedule): New.
17335         (debug_isl_schedule): New.
17336         * graphite-dependences.c (scop_get_reads): Do not call
17337         isl_union_map_add_map that is undocumented isl functionality.
17338         (scop_get_must_writes): Same.
17339         (scop_get_may_writes): Same.
17340         (scop_get_original_schedule): Remove.
17341         (scop_get_dependences): Do not call isl_union_map_compute_flow that
17342         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
17343         (compute_deps): Remove.
17344         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
17345         (debug_schedule_ast): New.
17346         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
17347         set_separate_option.
17348         (graphite_regenerate_ast_isl): Add dump.
17349         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
17350         from scop->transformed_schedule.
17351         (graphite_regenerate_ast_isl): Add more dump.
17352         * graphite-optimize-isl.c (optimize_isl): Set
17353         scop->transformed_schedule.  Check whether schedules are equal.
17354         (apply_poly_transforms): Move here.
17355         * graphite-poly.c (apply_poly_transforms): ... from here.
17356         (free_poly_bb): Static.
17357         (free_scop): Static.
17358         (pbb_number_of_iterations_at_time): Remove.
17359         (print_isl_ast): New.
17360         (debug_isl_ast): New.
17361         (debug_scop_pbb): New.
17362         * graphite-scop-detection.c (print_edge): Move.
17363         (print_sese): Move.
17364         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
17365         (build_scop_scattering): Remove.
17366         (create_pw_aff_from_tree): Assert instead of bailing out.
17367         (add_condition_to_pbb): Remove unused code, do not fail.
17368         (add_conditions_to_domain): Same.
17369         (add_conditions_to_constraints): Remove.
17370         (build_scop_context): New.
17371         (add_iter_domain_dimension): New.
17372         (build_iteration_domains): Initialize pbb->iterators.
17373         Call add_conditions_to_domain.
17374         (nested_in): New.
17375         (loop_at): New.
17376         (index_outermost_in_loop): New.
17377         (index_pbb_in_loop): New.
17378         (outermost_pbb_in): New.
17379         (add_in_sequence): New.
17380         (add_outer_projection): New.
17381         (outer_projection_mupa): New.
17382         (add_loop_schedule): New.
17383         (build_schedule_pbb): New.
17384         (build_schedule_loop): New.
17385         (embed_in_surrounding_loops): New.
17386         (build_schedule_loop_nest): New.
17387         (build_original_schedule): New.
17388         (build_poly_scop): Call build_original_schedule.
17389         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
17390         (free_poly_dr): Remove.
17391         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
17392         (free_poly_bb): Remove.
17393         (debug_loop_vec): Remove.
17394         (print_isl_ast): Declare.
17395         (debug_isl_ast): Declare.
17396         (scop_do_interchange): Remove.
17397         (scop_do_strip_mine): Remove.
17398         (scop_do_block): Remove.
17399         (flatten_all_loops): Remove.
17400         (optimize_isl): Remove.
17401         (pbb_number_of_iterations_at_time): Remove.
17402         (debug_scop_pbb): Declare.
17403         (print_schedule_ast): Declare.
17404         (debug_schedule_ast): Declare.
17405         (struct scop): Remove schedule.  Add original_schedule,
17406         transformed_schedule.
17407         (free_gimple_poly_bb): Remove.
17408         (print_generated_program): Remove.
17409         (debug_generated_program): Remove.
17410         (unify_scattering_dimensions): Remove.
17411         * sese.c (print_edge): ... here.
17412         (print_sese): ... here.
17413         (debug_edge): ... here.
17414         (debug_sese): ... here.
17415         * sese.h (print_edge): Declare.
17416         (print_sese): Declare.
17417         (dump_edge): Declare.
17418         (dump_sese): Declare.
17420 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
17421             Sebastian Pop  <s.pop@samsung.com>
17423         * Makefile.in: Set ISLVER in site.exp.
17425 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
17427         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
17428         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
17429         through DECL_VALUE_EXPR for expansion.
17431 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17433         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
17434         the frame info after reload completed.
17436 2016-01-25  Jeff Law  <law@redhat.com>
17438         PR tree-optimization/69196
17439         PR tree-optimization/68398
17440         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
17441         tree-ssa-threadupdate.c.
17442         (determine_bb_domination_status): Prototype
17443         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
17444         (determine_bb_domination_status): No longer static.
17445         (valid_jump_thread_path): Remove code to detect characteristics
17446         of the jump thread path not associated with correctness.
17447         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
17448         Correct test for thread path length.  Count PHIs for real operands as
17449         statements that need to be copied.  Do not count ASSERT_EXPRs.
17450         Look at all the blocks in the thread path.  Compute and selectively
17451         filter thread paths based on threading through the latch, threading
17452         a multiway branch or crossing a multiway branch.
17454 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17456         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
17457         decl with __attribute__ ((unused)) annotation.
17459 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
17461         PR target/69421
17462         * tree-vect-stmts.c (vectorizable_condition): Check vectype
17463         of operands is compatible with a statement vectype.
17465 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
17467         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
17468         improve wording for mixed storage order support.
17470 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
17472         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
17473         (vcvt_u64_f64): Likewise.
17474         (vcvta_s64_f64): Likewise.
17475         (vcvta_u64_f64): Likewise.
17476         (vcvtm_s64_f64): Likewise.
17477         (vcvtm_u64_f64): Likewise.
17478         (vcvtn_s64_f64): Likewise.
17479         (vcvtn_u64_f64): Likewise.
17480         (vcvtp_s64_f64): Likewise.
17481         (vcvtp_u64_f64): Likewise.
17483 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
17485         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
17486         (arc_init): Check validity mll64 option.
17487         (arc_save_restore): Use double load/store instruction.
17488         (arc_expand_movmem): Likewise.
17489         (arc_split_move): Don't split if we have double load/store
17490         instructions. Returns a boolean.
17491         (arc_process_double_reg_moves): Change function to return boolean
17492         instead of a sequence of instructions.
17493         (arc_dwarf_register_span): New function.
17494         * config/arc/arc-protos.h (arc_split_move): Change prototype.
17495         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
17496         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
17497         (*movdf_insn): Likewise.
17498         * config/arc/arc.opt (mll64): New option.
17499         * config/arc/predicates.md (even_register_operand): New predicate.
17500         * doc/invoke.texi (ARC Options): Add mll64 documentation.
17502 2016-01-25  Richard Biener  <rguenther@suse.de>
17504         PR lto/69393
17505         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
17506         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
17507         DECL_NAMELESS.
17508         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
17510 2016-01-25  Richard Biener  <rguenther@suse.de>
17512         PR tree-optimization/69376
17513         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
17514         flag.
17515         (VN_INFO_ANTI_RANGE_P): New inline.
17516         (VN_INFO_RANGE_TYPE): Likewise.
17517         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
17518         SSA_NAME_ANTI_RANGE_P.
17519         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
17520         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17521         Properly query VN_INFO_RANGE_TYPE.
17523 2016-01-25  Nick Clifton  <nickc@redhat.com>
17525         PR target/66655
17526         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
17528 2016-01-23  Tom de Vries  <tom@codesourcery.com>
17530         PR tree-optimization/69426
17531         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
17532         removed clobber.
17534 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
17536         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
17537         "the the" with "the" in the comments.
17538         * ipa-devirt.c (build_type_inheritance_graph,
17539         update_type_inheritance_graph): Likewise.
17540         * tree.c (build_function_type_list_1): Likewise.
17541         * cfgloopmanip.c (scale_loop_profile): Likewise.
17542         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
17543         * gimple-ssa-split-paths.c
17544         (find_block_to_duplicate_for_splitting_paths): Likewise.
17545         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
17546         * expr.c (convert_move): Likewise.
17547         * var-tracking.c (vt_stack_adjustments): Likewise.
17548         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17549         * tree-vrp.c (test_for_singularity): Likewise.
17551         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
17552         directly instead of building a temporary tree.
17554         PR bootstrap/69434
17555         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
17556         remove <algorithm> include.
17558 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17560         PR target/69432
17561         * config/i386/i386.c: Include dojump.h.
17562         (expand_small_movmem_or_setmem,
17563         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
17564         fixes.
17565         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
17566         if dynamic_check != -1.
17568 2016-01-21  Jeff Law  <law@redhat.com>
17570         PR middle-end/69347
17571         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17572         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
17573         into dominated_by_p.
17574         (cprop_into_successor_phis): Avoid unnecessary tests.
17576 2016-01-22  Richard Henderson  <rth@redhat.com>
17578         PR target/69416
17579         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17580         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17582 2016-01-22  Michael Matz  <matz@suse.de>
17584         * system.h (string, algorithm): Include only conditionally.
17585         (new): Include always under C++.
17586         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17587         * final.c (toplevel): Ditto.
17588         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17589         * genconditions.c (write_header): Make gencondmd.c define
17590         INCLUDE_STRING.
17591         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17593         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17594         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17596 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17598         PR target/68674
17599         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17601 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17603         PR target/69403
17604         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17605         define_insn_and_split.  Ensure operands[1] and operands[0] do not
17606         get assigned the same register.
17608 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17610         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17612 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17614         * config/arm/arm-c.c (arm_pragma_target_parse):
17615         Remove warn_builtin_macro_redefined overwrite.
17617 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17619         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17620         flag_non_call_exceptions compatibility.
17622 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17624         PR debug/66668
17625         * dwarf2out.c (add_child_die_after): New function.
17626         (dwarf_qual_info_t): New type.
17627         (dwarf_qual_info): New variable.
17628         (qualified_die_p): New function.
17629         (modified_type_die): For -fdebug-types-section, ensure
17630         canonical order of qualifiers.  Put qualified DIEs adjacent
17631         to the corresponding non-qualified type DIE and search there
17632         for existing qualified DIEs.
17634 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17636         * doc/extend.texi (scalar_storage_order type attribute): Document
17637         restriction on type punning and aliasing, and remove future tense.
17639 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
17641         PR target/69252
17642         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17643         first stage.
17645 2016-01-21  Jeff Law  <law@redhat.com>
17647         PR middle-end/69347
17648         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17649         useless call to record_temporary_equivalences.
17650         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17651         allocate 10 slots in the bb_path vector and let it grow as needed.
17652         (fsm_find_control_statement_thread_paths): Similarly for the next_path
17653         vector.
17655 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17657         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17658         Detangle.
17659         * configure: Regenerate.
17661 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
17663         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17664         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17666 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
17668         PR middle-end/66178
17669         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17670         drop EXPAND_INITIALIZER.
17671         * rtl.h (contains_symbolic_reference_p): Declare.
17672         * rtlanal.c (contains_symbolic_reference_p): New function.
17673         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17674         a subtraction into a NOT if symbolic constants are involved.
17676 2016-01-21  Anton Blanchard  <anton@samba.org>
17677             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17679         PR target/63354
17680         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17681         #define.
17682         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17683         function.
17685 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17687         * config/microblaze/microblaze.c
17688         (get_branch_target): New.
17689         (insert_wic_for_ilb_runout): New.
17690         (insert_wic): New.
17691         (microblaze_machine_dependent_reorg): New.
17692         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17693         * config/microblaze/microblaze.md
17694         (UNSPEC_IPREFETCH): Define.
17695         (iprefetch): New pattern
17696         * config/microblaze/microblaze.opt
17697         (mxl-prefetch): New flag.
17699 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17701         * config/microblaze/microblaze.h
17702         (FIXED_REGISTERS): Update in macro.
17703         (CALL_USED_REGISTERS): Update in macro.
17705 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
17707         PR rtl-optimization/68920
17708         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17709         moves.
17711 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17713         PR rtl-optimization/68990
17714         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17715         pseudo instead of inheritance ones.
17717 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17718             Nick Clifton  <nickc@redhat.com>
17720         PR target/69129
17721         PR target/69012
17722         * config/mips/mips.c (mips_compute_frame_info): Initialise
17723         args_size and hard_frame_pointer_offset fields of the frame
17724         structure before calling mips_global_pointer.
17726 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17728         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17729         label reference.
17730         * configure: Regenerate.
17732 2016-01-21  Richard Biener  <rguenther@suse.de>
17734         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17736 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17738         * config/s390/s390.c (s390_asm_declare_function_size): Add code
17739         to actually emit the .size directive.
17741 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
17742              Jakub Jelinek  <jakub@redhat.com>
17744         PR target/69187
17745         PR target/65624
17746         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17747         args array size by one to avoid buffer overflow.
17749 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17751         * config/s390/s390.md (pool_section_start): Use switch_to_section
17752         to select proper read-only data section instead of hardcoding
17753         .rodata.
17754         (pool_section_end): Use switch_to_section to match the above.
17756 2016-01-21  Richard Biener  <rguenther@suse.de>
17758         PR tree-optimization/69378
17759         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17760         (set_ssa_val_to): Use it for dominance checks taking into
17761         account not executable edges.
17763 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17765         PR c++/69355
17766         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17767         for bitsize instead of GET_MODE_PRECISION (mode).
17769 2016-01-20  Martin Sebor  <msebor@redhat.com>
17771         PR c/52291
17772         * extend.texi (__sync Builtins): Clarify the semantics of
17773         __sync_fetch_and_OP built-ins on pointers.
17774         (__atomic Builtins): Same.
17776 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17777             Sebastian Pop  <s.pop@samsung.com>
17779         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17780         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17781         (is_valid_rename): Same.
17782         (translate_isl_ast_to_gimple::get_rename): Same.
17783         (translate_isl_ast_to_gimple::rename_all_uses): Same.
17784         (translate_isl_ast_to_gimple::rename_uses): Same.
17785         (get_new_name): Check for close_phi nodes.
17786         (copy_loop_phi_args): Use phi_node_kind.
17787         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17788         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17790 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17791             Sebastian Pop  <s.pop@samsung.com>
17793         Revert commit r229783.
17794         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17795         Remove use of parameter_rename_map.
17796         (copy_def): Remove.
17797         (copy_internal_parameters): Remove.
17798         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17799         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17800         (free_sese_info): Do not free parameter_rename_map.
17801         (set_rename): Do not use parameter_rename_map.
17802         (rename_uses): Update call to set_rename.
17803         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17804         * sese.h (parameter_rename_map_t): Remove.
17805         (struct sese_info_t): Remove field parameter_rename_map.
17807 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17808             Sebastian Pop  <s.pop@samsung.com>
17810         * graphite-isl-ast-to-gimple.c: Fix comment.
17811         * graphite-scop-detection.c (defined_in_loop_p): New.
17812         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17813         names defined in loop.
17815 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17816             Sebastian Pop  <s.pop@samsung.com>
17818         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17819         Discard unstructured if-then-else regions.
17821 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17822             Sebastian Pop  <s.pop@samsung.com>
17824         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17825         (cleanup_loop_iter_dom): Remove.
17826         (build_loop_iteration_domains): Remove.
17827         (build_scop_context): Remove.
17828         (build_scop_iteration_domain): Remove.
17829         (add_loop_constraints): New.
17830         (build_iteration_domains): New.
17831         (build_poly_scop): Call build_iteration_domains.
17833 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17834             Sebastian Pop  <s.pop@samsung.com>
17836         * graphite-scop-detection.c
17837         (scop_detection::harmful_loop_in_region): Free dom and loops.
17838         (scop_detection::loop_body_is_valid_scop): Free bbs.
17840 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17841             Sebastian Pop  <s.pop@samsung.com>
17843         * graphite-scop-detection.c (record_loop_in_sese): New.
17844         (gather_bbs::before_dom_children): Call record_loop_in_sese.
17845         (build_scops): Remove call to build_sese_loop_nests.
17846         * sese.c (sese_record_loop): Remove.
17847         (build_sese_loop_nests): Remove.
17848         (new_sese_info): Remove region->loops.
17849         (free_sese_info): Same.
17850         * sese.h (sese_contains_loop): Same.
17851         (build_sese_loop_nests): Remove.
17852         (sese_contains_loop): Remove.
17854 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17855             Sebastian Pop  <s.pop@samsung.com>
17857         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17858         loop_is_valid_in_scop.
17859         (scop_detection::harmful_stmt_in_region): Renamed
17860         harmful_loop_in_region.
17861         Call loop_is_valid_in_scop.
17863 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17864             Sebastian Pop  <s.pop@samsung.com>
17866         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17867         isl_ast_node_mark.
17869 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17870             Sebastian Pop  <s.pop@samsung.com>
17872         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17873         * graphite.h (struct poly_bb): Remove field is_reduction.
17874         (PBB_IS_REDUCTION): Remove.
17876 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17877             Sebastian Pop  <s.pop@samsung.com>
17879         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17880         (add_pdr_constraints): Same.
17881         (scop_get_reads): Same.
17882         (scop_get_must_writes): Same.
17883         (scop_get_may_writes): Same.
17884         (scop_get_original_schedule): Same.
17885         (extend_schedule): Same.
17886         (apply_schedule_on_deps): Same.
17887         (carries_deps): Same.
17888         (compute_deps): Same.
17889         (scop_get_dependences): Same.
17890         * graphite-isl-ast-to-gimple.c
17891         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17892         * graphite-optimize-isl.c (get_schedule_for_band): Same.
17893         (get_schedule_for_band_list): Same.
17894         (get_schedule_map): Same.
17895         (apply_schedule_map_to_scop): Same.
17896         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17897         (build_loop_iteration_domains): Same.
17898         (add_condition_to_pbb): Same.
17899         (add_param_constraints): Same.
17900         (pdr_add_memory_accesses): Same.
17901         (pdr_add_data_dimensions): Same.
17903 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17905         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17906         requirements.
17908 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17910         * common.opt (feliminate-dwarf2-dups): Replace references to
17911         "DWARF 2" with just "DWARF".
17912         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17913         * doc/extend.texi: Likewise.
17914         * doc/cpp.texi: Likewise.
17915         * doc/invoke.texi: Likewise.
17916         (Option Summary): Add -gdwarf to list of Debugging Options.
17917         (Debugging Options): Document -gdwarf.
17918         * doc/contrib.texi: Spell "DWARF" like that.
17920 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17922         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17923         warning.  Fix up formatting.
17925         PR middle-end/67653
17926         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17927         attempt to mark memory input operand addressable and
17928         call prepare_gimple_addressable in that case.  Don't adjust
17929         input_location for diagnostics, use error_at instead.
17931 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
17933         * config/rs6000/ppc-auxv.h: New file.
17934         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17935         (cpu_is): Likewise.
17936         (cpu_supports): Likewise.
17937         * config/rs6000/rs6000.c: include "ppc-auxv.h".
17938         (cpu_is_info): New variable.
17939         (cpu_supports_info): Likewise.
17940         (tcb_verification_symbol): Likewise.
17941         (cpu_builtin_p): Likewise.
17942         (cpu_expand_builtin): New function.
17943         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17944         (rs6000_init_builtins): Likewise.
17945         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17946         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17947         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17948         * configure: Regenerate.
17949         * config.in: Likewise.
17950         * doc/extend.texi (PowerPC Built-in Functions): Document
17951         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17953 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
17955         PR target/68609
17956         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17957         domain check.
17958         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17959         for V4SFmode.
17961 2016-01-20  Richard Henderson  <rth@redhat.com>
17963         PR bootstrap/69343
17964         PR bootstrap/69339
17965         PR tree-opt/68964
17966         Revert:
17967         * tree.c (tm_define_builtin): New.
17968         (find_tm_vector_type): New.
17969         (build_tm_vector_builtins): New.
17970         (build_common_builtin_nodes): Call it.
17972 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
17974         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17975         (arm_fp_ok): Likewise.
17976         (arm_fp): Likewise.
17977         (arm_crypto): Likewise.
17979 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
17980             Richard Biener  <rguenther@suse.de>
17982         PR tree-optimization/69328
17983         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17984         vectors have same number of elements.
17985         (vectorizable_condition): Fix masked version recognition.
17987 2016-01-20  Richard Biener  <rguenther@suse.de>
17989         PR tree-optimization/69345
17990         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17991         (VN_INFO_PTR_INFO): Likewise.
17992         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17993         info when it is equal between non-dominating SSA names.
17994         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17995         Make sure to look at original SSA infos.
17997 2016-01-20  Jeff Law  <law@redhat.com>
17999         PR target/25114
18000         * config/m68k/predicates.md (pow2_m1_operand): New predicate
18001         extracted from ...
18002         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
18003         (pc_or_label_operand): New predicate.
18004         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
18005         tests for small integers that are 2^n - 1.
18007 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
18009         * doc/invoke.texi (Options Summary): Add '.' after @xref.
18011 2016-01-19  Jeff Law  <law@redhat.com>
18013         PR middle-end/69347
18014         * tree-ssa-threadbackwards.c
18015         (fsm_find_control_statement_thread_paths): Do not try to lookup
18016         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
18018 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
18020         * doc/lto.texi: Remove text that says only Gold has linker plugin
18021         support.
18023 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
18025         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
18026         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
18027         the DIE accordingly.
18028         (modified_type_die): Add REVERSE parameter and pass it recursively,
18029         as well as to base_type_die.  Adjust presence check accordingly.
18030         (base_type_for_mode): Adjust call to modified_type_die.
18031         (add_type_attribute): Add REVERSE parameter and pass it to
18032         modified_type_die.
18033         (generic_parameter_die): Adjust call to add_type_attribute.
18034         (add_scalar_info): Likewise.
18035         (add_subscript_info): Likewise.
18036         (gen_array_type_die): Likewise.
18037         (gen_descr_array_type_die): Likewise.
18038         (gen_entry_point_die): Likewise.
18039         (gen_enumeration_type_die): Likewise.
18040         (gen_formal_parameter_die): Likewise.
18041         (gen_subprogram_die): Likewise.
18042         (gen_variable_die ): Likewise.
18043         (gen_const_die): Likewise.
18044         (gen_field_die): Likewise.
18045         (gen_pointer_type_die): Likewise.
18046         (gen_reference_type_die): Likewise.
18047         (gen_ptr_to_mbr_type_die): Likewise.
18048         (gen_inheritance_die): Likewise.
18049         (gen_subroutine_type_die): Likewise.
18050         (gen_typedef_die): Likewise.
18051         (force_type_die): Adjust call to modified_type_die.
18053 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
18055         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
18056         flow throughout the file.  Fix broken link to Objective-C 2.0
18057         documentation.
18058         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
18059         errors.
18061 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18063         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
18065 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18067         PR ipa/66223
18068         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
18069         (maybe_record_node): Record cxa_pure_virtual as the only possible
18070         target if there are not ohter candidates.
18071         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
18073 2016-01-19  Richard Biener  <rguenther@suse.de>
18075         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
18076         (get_memory_order): Likewise.
18078 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
18080         * tree-vect-stmts.c (vectorizable_store): Check
18081         rhs vectype.
18083 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
18085         PR jit/68446
18086         * gcc.c (driver::decode_argv): Add call to
18087         init_opts_obstack before init_options_struct.
18088         * opts.c (init_opts_obstack): Remove idempotency.
18089         (init_options_struct): Replace call to init_opts_obstack
18090         with a gcc_assert to verify that it has already been called.
18091         * toplev.c (toplev::main): Add call to init_opts_obstack before
18092         calls to init_options_struct.
18093         (toplev::finalize): Move cleanup of opts_obstack next to
18094         cleanup of save_decoded_options, clearing the latter, and
18095         save_decoded_options_count.
18097 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18099         PR target/69135
18100         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
18101         attribute to unconditional.  Remove %? from output template.
18103 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18104             Jiong Wang  <jiong.wang@arm.com>
18106         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
18107         generated from different expand order.
18109 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18111         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
18112         Add support for CCMP costing.
18114 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18116         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
18117         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
18118         (fccmpe<mode>): Likewise.
18119         (fcmp): Rename to fcmp and globalize pattern.
18120         (fcmpe): Likewise.
18121         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
18122         (aarch64_gen_ccmp_next): Add FP support.
18124 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18126         * target.def (gen_ccmp_first): Update documentation.
18127         (gen_ccmp_next): Likewise.
18128         * doc/tm.texi (gen_ccmp_first): Update documentation.
18129         (gen_ccmp_next): Likewise.
18130         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
18131         expand_ccmp_expr_1.  Improve comments.
18132         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
18133         (ccmp_ior<mode>): Remove pattern.
18134         (cmp<mode>): Remove expand.
18135         (cmp): Globalize pattern.
18136         (cstorecc4): Use cc_register.
18137         (mov<mode>cc): Remove ccmp_cc_register check.
18138         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
18139         Simplify after removal of CC_DNE/* modes.
18140         (aarch64_ccmp_mode_to_code): Remove.
18141         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
18142         In 'k' case use integer as condition.
18143         (aarch64_nzcv_codes): Remove inverted cases.
18144         (aarch64_code_to_ccmode): Remove.
18145         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
18146         comparison with CC register to be used in folowing CCMP/branch/CSEL.
18147         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
18148         pattern.  Return the comparison with CC register.  Invert conditions
18149         when bitcode is OR.
18150         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
18151         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
18153 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18155         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
18156         instrumented_version.
18158 2016-01-19  Richard Biener  <rguenther@suse.de>
18160         PR tree-optimization/69336
18161         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
18162         handled components with get_ref_base_and_extent.
18163         (equal_mem_array_ref_p): Adjust.
18165 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
18167         PR debug/65779
18168         * shrink-wrap.c: Include valtrack.h.
18169         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
18170         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
18171         in between insn and where it will be moved to.  Call
18172         dead_debug_insert_temp.
18173         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
18174         first and dead_debug_local_finish at the end.
18175         For uses and defs bitmap, handle all regs in between REGNO and
18176         END_REGNO, not just the first one.
18178 2016-01-19  Richard Biener  <rguenther@suse.de>
18180         PR tree-optimization/69352
18181         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
18182         (equal_mem_array_ref_p): Constrain size and max size properly.
18183         Compare the reverse flag.
18185 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
18187         * ira.c (ira): Update regstat data if we deleted insns.
18189 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
18191         PR rtl-optimization/68955
18192         PR rtl-optimization/64557
18193         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
18194         here.  Fix up formatting.
18195         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
18197 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18199         PR lto/69133
18200         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
18201         assume that the node has body.
18202         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
18203         check.
18205 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18207         * lto-streamer-out.c (lto_output): Do not stream instrumentation
18208         thunks.
18210 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18212         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
18213         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
18215 2016-01-19  Martin Jambor  <mjambor@suse.cz>
18216             Martin Liska  <mliska@suse.cz>
18217             Michael Matz  <matz@suse.de>
18219         * Makefile.in (OBJS): Add new source files.
18220         (GTFILES): Add hsa.c.
18221         * common.opt (disable_hsa): New variable.
18222         (-Whsa): New warning.
18223         * config.in (ENABLE_HSA): New.
18224         * configure.ac: Treat hsa differently from other accelerators.
18225         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
18226         $enable_offloading.
18227         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
18228         * doc/install.texi (Configuration): Document --with-hsa-runtime,
18229         --with-hsa-runtime-include, --with-hsa-runtime-lib and
18230         --with-hsa-kmt-lib.
18231         * doc/invoke.texi (-Whsa): Document.
18232         (hsa-gen-debug-stores): Likewise.
18233         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
18234         to invoke offload compiler for hsa acclerator.
18235         * opts.c (common_handle_option): Determine whether HSA offloading
18236         should be performed.
18237         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
18238         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
18239         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
18240         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
18241         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
18242         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
18243         GF_OMP_FOR_KIND_GRID_LOOP.
18244         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
18245         (pp_gimple_stmt_1): Likewise.
18246         * gimple-walk.c (walk_gimple_stmt): Likewise.
18247         * gimple.c (gimple_build_omp_grid_body): New function.
18248         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
18249         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
18250         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
18251         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
18252         GF_OMP_TEAMS_GRID_PHONY.
18253         (gimple_statement_omp_single_layout): Updated comments.
18254         (gimple_build_omp_grid_body): New function.
18255         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
18256         (gimple_omp_for_grid_phony): New function.
18257         (gimple_omp_for_set_grid_phony): Likewise.
18258         (gimple_omp_parallel_grid_phony): Likewise.
18259         (gimple_omp_parallel_set_grid_phony): Likewise.
18260         (gimple_omp_teams_grid_phony): Likewise.
18261         (gimple_omp_teams_set_grid_phony): Likewise.
18262         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
18263         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
18264         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
18265         (BUILT_IN_GOMP_TARGET): Updated type.
18266         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
18267         (adjust_for_condition): New function.
18268         (get_omp_for_step_from_incr): Likewise.
18269         (extract_omp_for_data): Moved parts to adjust_for_condition and
18270         get_omp_for_step_from_incr.
18271         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
18272         (fixup_child_record_type): Bail out if receiver_decl is NULL.
18273         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
18274         (scan_omp_parallel): Do not create child functions for phony
18275         constructs.
18276         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
18277         (scan_omp_1_op): Checking assert we are not remapping to
18278         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
18279         (parallel_needs_hsa_kernel_p): New function.
18280         (expand_parallel_call): Register apprpriate parallel child
18281         functions as HSA kernels.
18282         (grid_launch_attributes_trees): New type.
18283         (grid_attr_trees): New variable.
18284         (grid_create_kernel_launch_attr_types): New function.
18285         (grid_insert_store_range_dim): Likewise.
18286         (grid_get_kernel_launch_attributes): Likewise.
18287         (get_target_argument_identifier_1): Likewise.
18288         (get_target_argument_identifier): Likewise.
18289         (get_target_argument_value): Likewise.
18290         (push_target_argument_according_to_value): Likewise.
18291         (get_target_arguments): Likewise.
18292         (expand_omp_target): Call get_target_arguments instead of looking
18293         up for teams and thread limit.
18294         (grid_expand_omp_for_loop): New function.
18295         (grid_arg_decl_map): New type.
18296         (grid_remap_kernel_arg_accesses): New function.
18297         (grid_expand_target_kernel_body): New function.
18298         (expand_omp): Call it.
18299         (lower_omp_for): Do not emit phony constructs.
18300         (lower_omp_taskreg): Do not emit phony constructs but create for them
18301         a temporary variable receiver_decl.
18302         (lower_omp_taskreg): Do not emit phony constructs.
18303         (lower_omp_teams): Likewise.
18304         (lower_omp_grid_body): New function.
18305         (lower_omp_1): Call it.
18306         (grid_reg_assignment_to_local_var_p): New function.
18307         (grid_seq_only_contains_local_assignments): Likewise.
18308         (grid_find_single_omp_among_assignments_1): Likewise.
18309         (grid_find_single_omp_among_assignments): Likewise.
18310         (grid_find_ungridifiable_statement): Likewise.
18311         (grid_target_follows_gridifiable_pattern): Likewise.
18312         (grid_remap_prebody_decls): Likewise.
18313         (grid_copy_leading_local_assignments): Likewise.
18314         (grid_process_kernel_body_copy): Likewise.
18315         (grid_attempt_target_gridification): Likewise.
18316         (grid_gridify_all_targets_stmt): Likewise.
18317         (grid_gridify_all_targets): Likewise.
18318         (execute_lower_omp): Call grid_gridify_all_targets.
18319         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
18320         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
18321         (tree_omp_clause): Added union field dimension.
18322         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
18323         * tree.c (omp_clause_num_ops): Added number of arguments of
18324         OMP_CLAUSE__GRIDDIM_.
18325         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
18326         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
18327         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
18328         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
18329         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
18330         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
18331         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
18332         * tree-pass.h (make_pass_gen_hsail): Declare.
18333         (make_pass_ipa_hsa): Likewise.
18334         * ipa-hsa.c: New file.
18335         * lto-section-in.c (lto_section_name): Add hsa section name.
18336         * lto-streamer.h (lto_section_type): Add hsa section.
18337         * timevar.def (TV_IPA_HSA): New.
18338         * hsa-brig-format.h: New file.
18339         * hsa-brig.c: New file.
18340         * hsa-dump.c: Likewise.
18341         * hsa-gen.c: Likewise.
18342         * hsa.c: Likewise.
18343         * hsa.h: Likewise.
18344         * toplev.c (compile_file): Call hsa_output_brig.
18345         * hsa-regalloc.c: New file.
18347 2016-01-18  Jeff Law  <law@redhat.com>
18349         PR tree-optimization/69320
18350         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
18351         ranged object, do nothing if the RHS constant is not [0..1].
18352         (optimize_stmt): Comparing a boolean ranged object against a
18353         constant outside [0..1] results in a compile-time constant.
18355         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
18356         test.
18358 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
18360         * doc/invoke.texi (Invoking GCC): Add new section to menu.
18361         (Option Summary): Update to reflect new section and moved options.
18362         (C++ Dialect Options): Move -fstats to new section.
18363         (Debugging Options): Move all dump, statistics, and other GCC
18364         developer options to new section.  Rewrite section introduction
18365         and re-order remaining options to put the more basic ones first.
18366         (Optimization Options): Move -fira-verbose and -flto-report* to
18367         new section.
18368         (Developer Options): New section incorporating moved options.
18369         * doc/cppopts.texi (-dM): Update cross-reference.
18371 2016-01-18  Richard Henderson  <rth@redhat.com>
18373         PR target/69176
18374         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
18375         operands to pseudo only if CSE is expected.  Split long immediate
18376         operands only after reload, and for the stack pointer.
18377         (*add<GPI>3_pluslong): Remove.
18378         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
18379         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
18380         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
18381         (*add<GPI>3 peepholes): New.
18382         (*add<GPI>3 splitters): New.
18383         * config/aarch64/constraints.md (Upl): New.
18384         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
18386 2016-01-18  Richard Biener  <rguenther@suse.de>
18388         PR tree-optimization/69297
18389         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
18390         stmt at most once.
18391         (vect_bb_vectorization_profitable_p): Clear visited flag again.
18393 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18395         PR middle-end/68542
18396         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
18397         of mixind vector and scalar types.
18398         (fold_relational_const): Add handling of vector
18399         comparison with boolean result.
18400         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
18401         comparison of vector operands with boolean result for EQ/NE only.
18402         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
18403         (verify_gimple_cond): Likewise.
18404         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
18405         valid type of VAL.
18407 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
18409         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
18410         !TARGET_OCTEON.
18412 2016-01-18  Richard Biener  <rguenther@suse.de>
18414         PR middle-end/69308
18415         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
18417 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18419         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
18421 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18423         * omp-low.c (set_oacc_fn_attrib): Make extern.
18424         * omp-low.h (set_oacc_fn_attrib): Declare.
18425         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
18426         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
18427         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
18428         Add and handle function parameter oacc_kernels_p.
18429         (find_reduc_addr, get_omp_data_i_param): New function.
18430         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
18431         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
18432         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
18433         Calculate dominance info.  Skip loops that are not in a kernels region
18434         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
18435         (pass_parallelize_loops::execute): Call parallelize_loops with
18436         oacc_kernels_p argument.
18437         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
18438         New member function.
18439         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
18440         * passes.def: Add argument to pass_parallelize_loops instantation.
18442 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18444         * tree-parloops.c (pass_parallelize_loops::execute): Allow
18445         pass_parallelize_loops to be run outside the loop pipeline.
18447 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18449         * tree-scalar-evolution.c (follow_copies_to_constant): New.
18450         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
18452 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18454         PR target/63679
18455         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
18456         using get_ref_base_and_extent.
18457         (equal_mem_array_ref_p): New.
18458         (hashable_expr_equal_p): Add call to previous.
18460 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18462         PR target/63679
18463         * tree-sra.c (disqualified_constants, constant_decl_p): New.
18464         (sra_initialize): Allocate disqualified_constants.
18465         (sra_deinitialize): Free disqualified_constants.
18466         (disqualify_candidate): Update disqualified_constants when appropriate.
18467         (create_access): Scan for constant-pool entries as we go along.
18468         (scalarizable_type_p): Add check against type_contains_placeholder_p.
18469         (maybe_add_sra_candidate): Allow constant-pool entries.
18470         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
18471         (initialize_constant_pool_replacements): New.
18472         (sra_modify_assign): Avoid mangling assignments created by previous,
18473         and don't generate writes into constant pool.
18474         (sra_modify_function_body): Call initialize_constant_pool_replacements.
18476 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18478         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
18479         andnot instruction.
18480         (scalar_chain::convert_op): Likewise.
18481         * config/i386/i386.md (*andndi3_doubleword): New.
18483 2016-01-18  Richard Biener  <rguenther@suse.de>
18485         PR tree-optimization/69170
18486         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
18487         building a vector from scalar results of a pattern stmt.
18489 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
18491         * haifa-sched.c (autopref_multipass_init): Work around
18492         -Wmaybe-uninitialized warning.
18494 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18496         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
18497         against the constant 0.
18499 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18501         PR tree-optimization/68799
18502         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
18503         look up phi candidates in the statement-candidate map.
18504         (phi_add_costs): Likewise.
18505         (record_phi_increments): Likewise.
18506         (phi_incr_cost): Likewise.
18507         (ncd_with_phi): Likewise.
18508         (all_phi_incrs_profitable): Likewise.
18510 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
18512         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
18513         -Wmaybe-uninitialized warning.
18515 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
18517         * doc/invoke.texi (Invoking GCC): Add new section to menu.
18518         (Option Summary): Update to reflect new section and moved options.
18519         (C++ Dialect Options): Move -fvtable-verify and related options.
18520         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
18521         and profiling-related options.
18522         (Optimization Options): Move profile generation options and
18523         -fstack-protector and related options.
18524         (Instrumentation Options): New section incorporating moved options.
18525         (Code Generation Options): Move -finstrument-functions and
18526         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
18528 2016-01-16  Tom de Vries  <tom@codesourcery.com>
18530         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
18532 2016-01-16  Tom de Vries  <tom@codesourcery.com>
18534         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
18536 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
18538         * hash-table.h (hash_table::empty): Turn into an inline wrapper
18539         that checks whether the table is already empty.  Rename the
18540         original implementation to...
18541         (hash_table::empty_slot): ...this new private function.
18543 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
18545         PR diagnostic/68899
18546         * diagnostic-show-locus.c (layout::print_source_line): Move x
18547         offset of line until after call to
18548         get_line_width_without_trailing_whitespace.
18550 2016-01-15  Jeff Law  <law@redhat.com>
18552         PR tree-optimization/69270
18553         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
18554         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
18555         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
18556         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
18557         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18558         ssa_name_has_boolean_range and constant_boolean_node.
18560 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
18562         PR rtl-optimization/69030
18563         * lra-spills.c (remove_pseudos): Check nrefs and make the function
18564         returning bool.
18565         (spill_pseudos): Delete debug insn for dead pseudo.
18566         (lra_spill): Initiate spill_hard_reg and slots memory separately.
18568 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
18570         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18571         New.
18572         (TYPES_UNOPUS): Likewise.
18573         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18574         builtin type, from UNOP to UNOPUS.
18575         (lbtruncuv4sf): Likewise.
18576         (lbtruncuv2df): Likewise.
18577         (lrounduv2sf): Likewise.
18578         (lrounduv4sf): Likewise.
18579         (lrounduv2df): Likewise.
18580         (lroundusf): Likewise.
18581         (lroundusf): Likewise.
18582         (lceiluv2sf): Likewise.
18583         (lceiluv4sf): Likewise.
18584         (lceiluv2df): Likewise.
18585         (lceilusf): Likewise.
18586         (lceiludf): Likewise.
18587         (lflooruv2sf): Likewise.
18588         (lflooruv4sf): Likewise.
18589         (lflooruv2df): Likewise.
18590         (lfloorusf): Likewise.
18591         (lfloorudf): Likewise.
18592         (lfrintnuv2sf): Likewise.
18593         (lfrintnuv4sf): Likewise.
18594         (lfrintnuv2df): Likewise.
18595         (lfrintnusf): Likewise.
18596         (lfrintnudf): Likewise.
18597         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18598         conversion.
18599         (vcvtq_u32_f32): Likewise.
18600         (vcvtq_u64_f64): Likewise.
18601         (vcvta_u32_f32): Likewise.
18602         (vcvtaq_u32_f32): Likewise.
18603         (vcvtaq_u64_f64): Likewise.
18604         (vcvtm_u32_f32): Likewise.
18605         (vcvtmq_u32_f32): Likewise.
18606         (vcvtmq_u64_f64): Likewise.
18607         (vcvtn_u32_f32): Likwise.
18608         (vcvtnq_u32_f32): Likewise.
18609         (vcvtnq_u64_f64): Likewise.
18610         (vcvtp_u32_f32): Likewise.
18611         (vcvtpq_u32_f32): Likewise.
18612         (vcvtpq_u64_f64): Likewise.
18613         (vcvtmd_u64_f64): Likewise.
18614         (vcvtms_u32_f32): Likewise.
18615         (vcvtad_u64_f64): Likewise.
18616         (vcvtas_u32_f32): Likewise.
18617         (vcvtnd_u64_f64): Likewise.
18618         (vcvtns_u32_f32): Likewise.
18619         (vcvtpd_u64_f64): Likewise.
18620         (vcvtps_u32_f32): Likewise.
18622 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18624         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18625         CSEL of zero_extended registers.
18627 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18629         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18630         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18632 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18634         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18635         false when argument string is not found in the attributes table
18636         at all.
18638 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
18640         PR target/68609
18641         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18642         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18643         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18644         precision estimate.
18646 2016-01-15  Richard Biener  <rguenther@suse.de>
18648         PR tree-optimization/66856
18649         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18650         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18651         (vect_create_new_slp_node): Increment stmt reference count.
18652         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18653         an SLP tree before swapping operands.
18654         (vect_build_slp_tree): Likewise.
18655         (destroy_bb_vec_info): Free stmt info after SLP instances.
18656         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18657         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18658         (STMT_VINFO_NUM_SLP_USES): New macro.
18660 2016-01-15  Richard Biener  <rguenther@suse.de>
18662         PR debug/69137
18663         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18664         (add_linkage_name): ... here.
18665         (gen_typedef_die): Use add_linkage_name_raw instead of
18666         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18667         if necessary.
18669 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
18671         * gimplify.c (oacc_default_clause): Decode reference and pointer
18672         types for both kernels and parallel regions.
18674 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18676         PR middle-end/69246
18677         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18679 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18681         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18682         (convert_scalars_to_vector): Likewise.
18684 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
18686         * doc/extend.texi (Type Traits): Fix grammar.
18688 2016-01-15  Martin Jambor  <mjambor@suse.cz>
18690         * tree-inline.c (remap_decl): Use existing dclarations if
18691         remapping a type and prevent_decl_creation_for_types.
18692         (replace_locals_stmt): Do an initial remapping of non-VLA typed
18693         decls first.  Do real remapping with
18694         prevent_decl_creation_for_types set.
18695         * tree-inline.h (copy_body_data): New field
18696         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18697         padding.
18699 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18701         * config/s390/s390.opt (mmvcle): More verbose help text.
18703 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18705         * config/s390/s390.opt: Add period to -mzvector option text.
18707 2016-01-15  Richard Biener  <rguenther@suse.de>
18709         PR tree-optimization/68961
18710         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18711         of invariants in stores again.
18713 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18715         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18717 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18719         * config/i386/i386.c (ix86_expand_branch): Don't split
18720         DI mode xor instruction to SI mode.
18722 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18724         PR ipa/68148
18725         * ipa-icf.c (sem_function::merge): Virtual functions may become
18726         reachable even if they address is not taken and there are no
18727         idrect calls.
18729 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18731         * lto-streamer-out.c (subtract_estimated_size): New function.
18732         (get_symbol_initial_value): Use it.
18734 2016-01-15  Christian Bruel  <christian.bruel@st.com>
18736         PR target/65837
18737         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18738         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18739         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18740         use add_builtin_function_ext_scope instead of add_builtin_function.
18741         (neon_set_p, neon_crypto_set_p): Remove.
18742         (arm_init_builtins): Always call arm_init_neon_builtins and
18743         arm_init_crypto_builtins.
18744         (arm_expand_builtin): Check that builtins are allowed for the arch.
18745         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18746         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18747         arm_init_neon_builtins call.
18749 2016-01-15  Richard Biener  <rguenther@suse.de>
18751         PR tree-optimization/69117
18752         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18753         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18754         of the leader conservatively.
18755         (free_scc_vn): Restore original SSA name infos.
18757 2016-01-14  Jeff Law  <law@redhat.com>
18759         PR tree-optimization/69270
18760         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18761         single bit of precision, verify it's also unsigned.
18762         (record_edge_info): Use constant_boolean_node rather than fold_convert
18763         to convert boolean_true/boolean_false to the right type.
18765 2016-01-14  Richard Henderson  <rth@redhat.com>
18767         PR rtl-opt/69014
18768         * loop-doloop.c (record_reg_sets): New.
18769         (doloop_optimize): Reject the transform if the sequence
18770         clobbers registers live at the end of the loop block.
18771         (doloop_optimize_loops): Enable df_live if needed.
18773 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18775         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18776         * config/rs6000/rs6000.c: Likewise.
18777         * config/rs6000/rs6000.h: Likewise.
18778         * config/rs6000/rs6000.md: Likewise.
18779         * doc/extend.texi: Likewsie.
18781 2016-01-14  Jeff Law  <law@redhat.com>
18783         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18784         typo.
18786 2016-01-14  Richard Henderson  <rth@redhat.com>
18788         PR c/69272
18789         PR tree-opt/68964
18790         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18791         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18792         instead of builtin_decl_declared_p to test for declaration.
18794 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
18796         * doc/loop.texi (Loop Analysis and Representation): Document
18797         loop_depth function.
18799 2016-01-14  Tom de Vries  <tom@codesourcery.com>
18801         PR tree-optimization/68773
18802         * omp-low.c (expand_omp_target): Don't set force_output.
18803         * varpool.c (varpool_node::get_create): Same.
18804         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18805         offload_funcs with force_output.
18807 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18809         PR debug/69244
18810         * lra-eliminations.c (move_plus_up): Don't change anything if either
18811         the outer or inner subreg mode is not MODE_INT.
18812         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18813         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18815 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18817         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18818         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18819         reduc_uplus_@var{m}): Remove.
18820         * expr.c (expand_expr_real_2): Remove expansion path for
18821         reduc_[us](min|max|plus) optabs.
18822         * optabs-tree.c (scalar_reduc_to_vector): Remove.
18823         * optabs-tree.h (scalar_reduc_to_vector): Remove.
18824         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18825         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18826         * tree-vect-loop.c (vectorizable_reduction): Remove test for
18827         reduc_[us](min|max|plus) optabs.
18829 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18831         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18832         (reduc_plus_scal_v2sf): New.
18833         (reduc_smax_v2sf): Rename to...
18834         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18835         (reduc_smin_v2sf): Rename to...
18836         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18838 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
18840         * alias.c (compare_base_symbol_refs): New function.
18841         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18842         it.
18844 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18846         PR middle-end/68146
18847         PR tree-optimization/69155
18848         * tree-complex.c: Include cfganal.h.
18849         (phis_to_revisit): New variable.
18850         (extract_component): Add phiarg_p argument.  Assert that returned
18851         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18852         (update_phi_components): Partly rewrite to use loop over real/imag
18853         components instead of code duplication.  If extract_component returns
18854         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18855         create_tmp_reg into the PHI node instead, and mention the phi triplet
18856         in phis_to_revisit.
18857         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
18858         in phis_to_revisit at the end.
18860 2016-01-14  Richard Biener  <rguenther@suse.de>
18862         PR tree-optimization/68060
18863         * tree-vect-loop.c (vect_is_simple_reduction): Check the
18864         outer loop reduction is only used in the inner loop before
18865         detecting a double reduction.
18867 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18869         PR target/68269
18870         * combine.c (expand_field_assignment): Punt if compute_mode is
18871         unsupported scalar mode.
18873 2016-01-14  Richard Biener  <rguenther@suse.de>
18875         PR tree-optimization/66856
18876         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18877         SLP node only if it built successfully.
18878         (vect_analyze_slp_instance): Adjust.
18880 2016-01-14  Jeff Law  <law@redhat.com>
18882         PR tree-optimization/69270
18883         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18884         (record_edge_info): Use it.  Convert boolean_{true,false}_node
18885         to the type of op0.
18887 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
18889         PR ipa/66487
18890         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18891         use block_ultimate_origin
18892         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18894 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18896         * doc/invoke.texi (Submodel Options): Rename section to
18897         "Machine-Dependent Options" to better reflect its content.
18898         Rewrite introductory text to remove archaic CPU names.
18899         Update references.
18901 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18903         * doc/invoke.texi (Code Gen Options): Move section up in file,
18904         before target-specific options.  Update menu and option summary
18905         to reflect the new section ordering.
18907 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18909         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18910         (C++ Dialect Options): Add cross-reference to -std option.
18911         * doc/standards.texi (C++ Language): Document C++14 support.
18913 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18915         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18916         for pack/unpack functions for __ibm128.
18917         (PACK_IF): Likewise.
18918         (UNPACK_IF): Likewise.
18920         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18921         support for __ibm128 pack/unpack functions.
18922         (rs6000_invalid_builtin): Likewise.
18923         (rs6000_init_builtins): Likewise.
18924         (rs6000_opt_masks): Likewise.
18926         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18927         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18928         functions
18929         (RS6000_BTM_COMMON): Likewise.
18931         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18932         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18933         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18934         128-bit floating point.  Add support for the double values to be
18935         in Altivec registers for TF/IF packing and unpacking, but restrict
18936         TD packing sub-fields to be FPR registers.  Don't allow overlapped
18937         register support for packing.  Allow pack inputs to be memory
18938         locations.  Don't build generator functions for unpack<mode>_dm
18939         and unpack<mode>_nodm.
18940         (unpack<mode>_dm): Likewise.
18941         (unpack<mode>_nodm): Likewise.
18942         (pack<mode>): Likewise.
18944         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18945         built-in functions to pack/unpack explicit __ibm128 values.
18946         (__builtin_unpack_ibm128): Likewise.
18948         * doc/extend.texi (PowerPC Built-in Functions): Document
18949         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18951 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
18953         PR c/66208
18954         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18955         Add new arg loc and pass it down as context.
18956         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18957         to the location to use for the warning.
18958         (check_function_arguments): New arg loc.  All callers changed.  Pass
18959         it to check_function_nonnull.
18960         * c-common.h (check_function_arguments): Adjust declaration.
18962 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
18964         PR tree-optimization/69156
18965         * gimple.c (validate_type): Removed.
18966         (gimple_builtin_call_types_compatible_p): Use
18967         useless_type_conversion_p instead of validate_type.
18968         * value-prof.c (gimple_stringop_fixed_value): Fold
18969         icall_size to correct type.
18971 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18973         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18974         effects.
18976 2016-01-13  Richard Henderson  <rth@redhat.com>
18978         PR tree-opt/68964
18979         * target.def (builtin_tm_load, builtin_tm_store): Remove.
18980         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18981         (ix86_builtin_tm_store): Remove.
18982         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18983         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18984         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18985         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18986         * doc/tm.texi: Rebuild.
18988         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18989         (BUILT_IN_TM_MEMCPY_RTWN): New.
18990         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18991         fallback from vector to integer helpers.
18992         (build_tm_load): Handle vector types directly, instead of
18993         via target hook.
18994         (build_tm_store): Likewise.
18995         (expand_assign_tm): Prepare for register types not handled by
18996         the above.  Copy them to memory and use memcpy.
18997         * tree.c (tm_define_builtin): New.
18998         (find_tm_vector_type): New.
18999         (build_tm_vector_builtins): New.
19000         (build_common_builtin_nodes): Call it.
19002 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
19004         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
19005         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
19007 2016-01-13  Tom de Vries  <tom@codesourcery.com>
19009         PR tree-optimization/69169
19010         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
19011         handled_struct_type param.
19012         (create_variable_info_for, intra_create_variable_infos): Call
19013         create_variable_info_for_1 with extra arg.
19015 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
19017         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
19018         and "armv8.1-a+crc" entries.
19020 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
19022         PR target/69228
19023         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
19024         Change first operand predicate from register_or_constm1_operand
19025         to register_operand.
19026         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
19027         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
19028         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
19029         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
19030         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
19031         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
19032         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
19033         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
19034         comparison with constm1_rtx from vec_prefetch_gen part.
19036 2016-01-13  Richard Biener  <rguenther@suse.de>
19038         PR tree-optimization/69013
19039         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
19040         Exchange assert for a test.
19042 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19044         PR target/69247
19045         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
19047 2016-01-13  Richard Biener  <rguenther@suse.de>
19049         PR tree-optimization/69242
19050         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
19051         assert with a check.
19053 2016-01-13  Richard Biener  <rguenther@suse.de>
19055         PR tree-optimization/69186
19056         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19057         Properly guard vect_update_misalignment_for_peel call.
19059 2016-01-12  Jeff Law  <law@redhat.com>
19061         PR tree-optimization/pr67755
19062         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
19063         "need_profile_correction".
19064         (thread_block_1): Initialize new field to false by default.  If we
19065         have multiple thread paths through a common joiner to different
19066         final targets, then set new field to true.
19067         (compute_path_counts): Only do count adjustment when it's really
19068         needed.
19070 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19072         * doc/invoke.texi (Spec Files): Move section down in file, past
19073         all command-line option descriptions.
19075 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19077         PR middle-end/54809
19078         * doc/gty.texi: Remove documentation of mark_hook.
19079         * gengtype.c (struct write_types_data): Remove code to support
19080         mark_hook attribute.
19081         (walk_type): Likewise.
19082         (write_func_for_structure): Likewise.
19084 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19086         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
19087         Directory Options, and -specs= to Overall Options.
19088         (Overall Options): Adjust similarly.  Reorder to group related
19089         options together.  Make -specs= cross-reference the spec file details.
19090         (Directory Options): Adjust similarly.
19092 2016-01-12  Jeff Law  <law@redhat.com>
19094         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
19096 2016-01-12  Olivier Hainque  <hainque@adacore.com>
19098         * gcc.c (spec_undefvar_allowed): New global.
19099         (process_command): Set to true when running for --version or --help,
19100         alone or together.
19101         (getenv_spec_function): When the variable is not defined, use the
19102         variable name as the variable value if we're allowed not to issue
19103         a fatal error.
19105 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
19107         PR tree-optimization/68911
19108         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
19109         information computed for expression "init + nit * step".
19111 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19113         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
19114         about name of GCC executable.  Remove deleted node from menu.
19115         (Directory Options) <-B>: Remove cross-reference to deleted node.
19116         (Target Options): Delete section.
19118 2016-01-12  Christian Bruel  <christian.bruel@st.com>
19120         PR target/69180
19121         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
19122         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
19124 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
19126         PR target/69198
19127         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
19128         aligned_mem is properly set for AVX512-VL floating point masked
19129         stores.
19131         PR target/69175
19132         * ifcvt.c (cond_exec_process_if_block): When removing the last
19133         insn from then_bb, remove also any possible barriers that follow it.
19135 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
19137         PR target/68456
19138         PR target/69226
19139         * config/i386/iamcu.h (SIZE_TYPE): New macro.
19140         (PTRDIFF_TYPE): Likewise.
19141         (WCHAR_TYPE): Likewise.
19142         (WCHAR_TYPE_SIZE): Likewise.
19143         (STDINT_LONG32): Likewise.
19145 2016-01-12  Richard Biener  <rguenther@suse.de>
19147         PR tree-optimization/69053
19148         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
19149         convert initial value for cond reductions.
19151 2016-01-12  Richard Biener  <rguenther@suse.de>
19153         PR tree-optimization/69007
19154         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
19155         widen_sum after dot_prod and sad.
19157 2016-01-12  Richard Biener  <rguenther@suse.de>
19159         PR tree-optimization/69168
19160         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
19161         pattern stmt SLP type.
19162         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
19163         end up unused so cope with that case.
19165 2016-01-12  Richard Biener  <rguenther@suse.de>
19167         PR tree-optimization/69157
19168         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
19169         stmts def type only during analyze phase.
19170         (vectorizable_call): Likewise.
19171         (vectorizable_simd_clone_call): Likewise.
19172         (vectorizable_conversion): Likewise.
19173         (vectorizable_assignment): Likewise.
19174         (vectorizable_shift): Likewise.
19175         (vectorizable_operation): Likewise.
19176         (vectorizable_store): Likewise.
19177         (vectorizable_load): Likewise.
19179 2016-01-12  Richard Biener  <rguenther@suse.de>
19181         PR tree-optimization/69174
19182         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
19183         space.
19184         (vectorizable_load): Properly compute the number of loads needed
19185         for permuted strided SLP loads and do not spuriously assign
19186         to SLP_TREE_VEC_STMTS.
19188 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
19190         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
19191         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
19192         (MD_EXEC_PREFIX): Remove.
19193         (MD_STARTFILE_PREFIX) Removee.
19194         (FILE_NAME_ABSOLUTE_P): Remove.
19195         (CPP_SPEC): Do not read macros from sys/version.h.
19196         (LINK_COMMAND_SPEC): Remove.
19197         (LOCAL_INCLUDE_DIR): Remove.
19198         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
19199         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
19200         (POST_LINK_SPEC): Define to invoke stubify after linker
19201         (LIBSTDCXX): Remove define
19202         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
19203         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
19204         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
19205         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
19206         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
19207         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
19208         (i386_djgpp_asm_named_section): Add propotype of new procedure
19210         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
19211         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
19212         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
19213         in config/i386/djgpp.h).
19214         (STANDARD_STARTFILE_PREFIX_2): Define identical to
19215         STANDARD_STARTFILE_PREFIX_1.
19216         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
19217         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
19218         installation errors.
19219         (MAX_OFILE_ALIGNMENT): Define to 128.
19220         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
19222         * config/i386/djgpp.c: New file. Add implementation of
19223         i386_djgpp_asm_named_section.
19225         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
19227         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
19228         Add rule for building djgpp.o.
19230 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19232         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
19233         (rtx_is_swappable_p): Reductions are swappable.
19234         (insn_is_swappable_p): V2DF reductions are swappable.
19236 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
19238         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
19239         reloads for other unsupported memory operands.
19241 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19242             Jim Wilson  <jim.wilson@linaro.org>
19244         PR target/69194
19245         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
19246         copy_to_mode_reg instead of force_reg.
19248 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
19250         PR target/69225
19251         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
19252         TARGET_80387 is true.
19254 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
19256         PR target/69071
19257         * lra-eliminations.c (move_plus_up): Only move plus up
19258         if subreg of the constant can be simplified into constant
19259         and use the simplified subreg of the constant instead of
19260         the original constant.
19262         * fold-const.c (fold_convertible_p): Don't return true
19263         for conversion of VECTOR_TYPE to same sized integral type.
19264         (fold_convert_loc): Fix up formatting.  Fold conversion of
19265         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
19266         instead of NOP_EXPR.
19268         PR tree-optimization/69214
19269         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
19270         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19271         Formatting fix.
19273         PR tree-optimization/69207
19274         * tree-vect-slp.c (vect_get_constant_vectors): For
19275         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
19276         fold_convertible_p to vector_type's element type, and always
19277         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
19279 2016-01-11  Richard Biener  <rguenther@suse.de>
19281         PR tree-optimization/69173
19282         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
19283         fixup the cycle if all stmts are in a pattern.
19285 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
19287         PR middle-end/68999
19288         * alias.c (base_alias_check): Move check for addresses with
19289         alignment ANDs before the call for compare_base_decls.
19290         (memrefs_conflict_p): Return -1 for different decls
19291         that went through alignment adjustments.
19293 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19295         PR rtl-optimization/68796
19296         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
19297         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
19298         and QImode comparisons against zero with CC_NZmode.
19299         * config/aarch64/iterators.md (short_mask): New mode_attr.
19301 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
19303         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
19304         (<avx512>_store<mode>_mask): Likewise.
19306 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
19307             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19309         PR rtl-optimization/68841
19310         * ifcvt.c (struct noce_if_info): Add orig_x field.
19311         (bbs_ok_for_cmove_arith): Add to_rename parameter.
19312         Don't record conflicts on to_rename if it's present.
19313         Allow memory destinations in sets.
19314         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
19315         blocks, passing orig_x to the checks.
19316         (noce_process_if_block): Set if_info->orig_x appropriately.
19318 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19320         PR tree-optimization/69069
19321         * tree-parloops.c (create_parallel_loop): Add missing phi args.
19323 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
19325         PR rtl-optimization/68920
19326         * config/i386/i386.c (ix86_option_override_internal): Restrict number
19327         of conditional moves for  RTL if-conversion to 1 for
19328         TARGET_ONE_IF_CONV_INSN.
19329         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
19330         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
19331         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
19332         parameter to restirct number of conditional moves for
19333         RTL if-conversion.
19334         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
19335         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
19336         conditionl moves.
19338 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
19340         PR bootstrap/69123
19341         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
19342         onepart vars.  Fix typo in comment.  Fix reversed condition in
19343         unshare test.
19344         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
19346         PR bootstrap/69123
19347         * var-tracking.c (dump_onepart_variable_differences): New.
19348         (dataflow_set_different): If a detailed dump is requested,
19349         delay early returns and dump differences between onepart
19350         variables present before and after, and added variables.
19352 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19354         PR target/69010
19355         * expr.c (expand_expr_real_1): For boolean vector constants
19356         with a scalar mode use const_scalar_mask_from_tree.
19357         (const_scalar_mask_from_tree): New.
19358         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
19359         assigned to a mask type to handle constants.
19361 2016-01-11  Martin Jambor  <mjambor@suse.cz>
19363         PR ipa/69044
19364         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
19365         useless parameters if we cannot change function signature.
19367 2016-01-11  Martin Jambor  <mjambor@suse.cz>
19369         PR ipa/66616
19370         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
19371         flag.
19373 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19375         PR tree-optimization/69109
19376         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
19377         latch with phi.
19379 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19381         PR tree-optimization/69108
19382         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
19383         res is not used in a phi.
19385 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
19387         PR 67425
19388         * common.opt (frandom-seed): Fix parameter name.
19389         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
19391 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19393         PR tree-optimization/69058
19394         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
19395         not supported.
19397 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
19399         * config/arc/arc.opt (mdiv-rem): Add period to the end.
19400         (mcode-density): Likewise.
19402 2016-01-10  Tom de Vries  <tom@codesourcery.com>
19404         PR tree-optimization/69062
19405         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
19406         (parallelize_loops): Don't paralelize loop that has phi with address
19407         arg.
19409 2016-01-10  Tom de Vries  <tom@codesourcery.com>
19411         PR tree-optimization/69039
19412         * tree-parloops.c (try_create_reduction_list): Only allow single exit
19413         phi for reduction.
19415 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
19417         PR middle-end/68743
19418         * match.pd: Require target has function_c99_misc before doing
19419         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
19421 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
19423         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
19424         use GMPINC.
19425         * configure: Regenerate.
19427 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
19429         PR middle-end/50865
19430         PR tree-optimization/69097
19431         * fold-const.h (expr_not_equal_to): New prototype.
19432         * fold-const.c: Include stringpool.h and tree-ssanames.h.
19433         (expr_not_equal_to): New function.
19434         * match.pd (X % -Y is the same as X % Y): Don't optimize
19435         unless X is known not to be equal to minimum or Y is known
19436         not to be equal to -1.
19437         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
19438         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
19439         (simplify_stmt_using_ranges): Adjust caller.
19440         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
19441         substitute_and_fold.
19443 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
19445         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
19446         w/o DECL_NAME.
19448 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19450         PR tree-optimization/69167
19451         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
19452         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
19453         ops[0] comparison.
19454         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
19456 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
19457             Richard Biener  <rguenther@suse.de>
19459         PR tree-optimization/68707
19460         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
19461         instances that can be handled via vect_load_lanes.
19463 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
19465         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
19466         if we can't determine address equivalence.
19467         * alias.c (compare_base_decl): Update for changed return value of
19468         symtab_node::equal_address_to.
19470 2016-01-08  Jason Merrill  <jason@redhat.com>
19472         PR c++/68983
19473         PR c++/67557
19474         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
19475         * expr.c (store_field): Not here.
19476         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
19477         call with TREE_ADDRESSABLE type.
19478         * tree-cfg.c (verify_gimple_call): Adjust.
19480 2016-01-08  Olivier Hainque  <hainque@adacore.com>
19482         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
19483         libc_internal.
19485 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
19487         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
19488         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
19489         (reduc_smin_v2sf): Rename to...
19490         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
19491         (reduc_splus_v2sf): Rename to...
19492         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
19494 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19496         PR tree-optimization/69162
19497         * gimplify.c (gimplify_va_arg_expr): Encode original type of
19498         valist argument in another argument.
19499         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
19500         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
19501         to determine the va_list type, build a MEM_REF instead of
19502         build_fold_indirect_ref.
19504         PR tree-optimization/69172
19505         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
19506         gimple_build.
19508 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19510         PR tree-optimization/67781
19511         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
19512         and cmpnop in two steps: first the ones not accessed in original
19513         gimple expression in a endian independent way and then the ones not
19514         accessed in the final result in an endian-specific way.
19516 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19518         PR tree-optimization/69083
19519         * tree-vect-slp.c (vect_get_constant_vectors): For
19520         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
19521         element type.  If op is fold_convertible_p to vector_type's element
19522         type, use NOP_EXPR instead of VCE.
19524 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
19526         PR rtl-optimization/67778
19527         PR rtl-optimization/68634
19528         PR rtl-optimization/68909
19529         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
19530         block from the stack until done with it.  Remove a superfluous
19531         bitmap set.  Remove a superfluous bitmap test.
19533 2016-01-07  Martin Sebor  <msebor@redhat.com>
19535         PR c/68966
19536         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
19537         constraint on the type of arguments.
19539 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
19541         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
19542         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
19543         unaligned_access on the gcc_options set.
19544         * config/arm/arm.c (arm_option_override_internal): Use
19545         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
19547 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
19549         PR target/69140
19550         * config/i386/i386.c (ix86_frame_pointer_required): Enable
19551         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
19553 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
19555         Revert
19556         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19558         PR target/69140
19559         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19560         depending on frame_pointer_needed before remaining integer and SSE
19561         registers are saved.
19563 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
19565         PR 1078
19566         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19568 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19570         PR target/69171
19571         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19572         Use the "xBm" constraint.
19573         (float<sseintvecmodelower><mode>2<mask_name><round_name):
19574         Likewise.
19575         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19576         (sse_cvtsi2ssq<round_name>): Likewise.
19577         (sse_cvtss2si<round_name>): Likewise.
19578         (sse_cvtss2siq<round_name>): Likewise.
19579         (sse2_cvtsi2sdq<round_name>): Likewise.
19580         (sse2_cvtsd2si<round_name>): Likewise.
19581         (sse2_cvtsd2siq<round_name>): Likewise.
19582         * config/i386/subst.md (round_nimm_scalar_predicate): New
19583         predicate.
19585 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
19587         PR middle-end/67639
19588         * varasm.c (make_decl_rtl): Mark invalid register vars as
19589         DECL_EXTERNAL.
19591         PR rtl-optimization/66206
19592         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19593         All callers changed.
19595 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
19597         PR tree-optimization/69141
19598         * tree-ssa-pre.c: Include langhooks.h.
19599         (eliminate_dom_walker::before_dom_children): Use
19600         lang_hooks.decl_printable_name instead of
19601         cgraph_node::get ()->name ().
19603         PR middle-end/68960
19604         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19605         it and DECL_ALIGN too.
19607 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
19609         * config/mips/mips-ftypes.def: Sort to lexicographical order.
19611 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19613         PR target/69140
19614         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19615         depending on frame_pointer_needed before remaining integer and SSE
19616         registers are saved.
19618 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19620         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19621         mode iterator with VSX_M2.
19622         (*p9_vecstore_<mode>): Likewise.
19623         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19624         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19625         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19626         (define_split for VSX_LE128 stores): Likewise.
19627         (define_peephole2 for TImode LE swaps): Likewise.
19628         (define_split for VSX_LE128 post-reload stores): Likewise.
19630 2016-01-06  Marek Polacek  <polacek@redhat.com>
19632         PR sanitizer/69099
19633         * convert.c (convert_to_integer_1): Adjust call to
19634         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
19635         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
19636         EXPR instead of ARG.
19637         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19639 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19641         PR 1078
19642         * doc/extend.texi (RL78 Variable Attributes): New section.
19644 2016-01-05  Marek Polacek  <polacek@redhat.com>
19646         PR c/69104
19647         * builtins.c (get_memmodel): Use expansion point location rather than
19648         the input location.  Call warning_at rather than warning.
19649         (expand_builtin_atomic_compare_exchange): Likewise.
19650         (expand_builtin_atomic_load): Likewise.
19651         (expand_builtin_atomic_store): Likewise.
19652         (expand_builtin_atomic_clear): Likewise.
19654 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19656         PR target/68991
19657         * config/i386/i386.c (ix86_expand_vector_logical_operator):
19658         Replace nonimmediate_operand with vector_operand.
19659         * config/i386/predicates.md (vector_operand): New predicate.
19660         (general_vector_operand): Replace nonimmediate_operand with
19661         vector_operand.
19662         * config/i386/sse.md: Replace nonimmediate_operand with
19663         vector_operand and m constraint with Bm constraint on SSE
19664         patterns with 16-byte memory operand.
19665         * config/i386/subst.md (round_nimm_predicate): Replace
19666         nonimmediate_operand with vector_operand.
19667         (round_saeonly_nimm_predicate): Likewise.
19668         (round_saeonly_nimm_scalar_predicate): New.
19670 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19672         PR target/68991
19673         * config/i386/constraints.md (Bm): New constraint.
19674         * config/i386/predicates.md (vector_memory_operand): New
19675         predicate.
19676         * config/i386/sse.md: Replace xm with xBm in plusminus and
19677         any_logic patterns.
19679 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19681         PR 1078
19682         * doc/extend.texi (V850 Function Attributes): New section.
19683         (V850 Variable Attributes): New section.
19685 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19687         PR 1078
19688         * doc/extend.texi (MicroBlaze Function Attributes): Document
19689         interrupt_handler and fast_interrupt attributes.
19691 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
19693         PR other/60465
19694         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19695         for local symbolic operands.
19696         * config/ia64/predicates.md (local_symbolic_operand64): New
19697         predicate.
19699 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19701         PR rtl-optimization/68651
19702         * combine.c (combine_simplify_rtx): Canonicalize x + x into
19703         x << 1.
19705 2016-01-05  Nathan Sidwell  <nathan@acm.org>
19707         * alias.c (compare_base_decls): Use symtab_node::get.
19709 2016-01-05  Nick Clifton  <nickc@redhat.com>
19711         PR target/68770
19712         * ira-costs.c (copy_cost): Initialise the t_icode field of the
19713         secondary_reload_info structure.
19715         PR target/66655
19716         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19717         decls if weak support is available.
19719 2016-01-04  Martin Sebor  <msebor@redhat.com>
19721         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19723 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
19725         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19726         OPTION_MASK_P9_DFORM.
19728         * config/rs6000/constraints.md (wo constraint): New constraint for
19729         ISA 3.0 (power9).
19731         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19732         for wo constraint.
19733         (rs6000_init_hard_regno_mode_ok): Likewise.
19735         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19736         wo constraint.
19738         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19739         expanders not to have constraints.  Add support for ISA 3.0 xxperm
19740         instruction.  Add support for fusing xxlor with xxperm.
19741         (altivec_vperm_<mode>_internal): Likewise.
19742         (altivec_vperm_v8hiv16qi): Likewise.
19743         (altivec_vperm_<mode>v16q): Likewise.
19744         (altivec_vperm_<mode>_uns): Likewise.
19745         (vperm_v8hiv4si): Likewise.
19746         (vperm_v16qiv8hi): Likewise.
19748         * doc/md.texi (RS/6000 constraints): Document wo constraint.
19750 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
19752         Update copyright years.
19754         * gcc.c (process_command): Update copyright notice dates.
19755         * gcov-dump.c (print_version): Ditto.
19756         * gcov.c (print_version): Ditto.
19757         * gcov-tool.c (print_version): Ditto.
19758         * gengtype.c (create_file): Ditto.
19759         * doc/cpp.texi: Bump @copying's copyright year.
19760         * doc/cppinternals.texi: Ditto.
19761         * doc/gcc.texi: Ditto.
19762         * doc/gccint.texi: Ditto.
19763         * doc/gcov.texi: Ditto.
19764         * doc/install.texi: Ditto.
19765         * doc/invoke.texi: Ditto.
19767 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19769         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19770         modes larger than TImode as TImode if NEON is not enabled.
19772 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19774         PR target/69100
19775         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19776         mode for %f0-%f31 only if TARGET_FPU.
19778 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19780         PR target/69072
19781         * config/sparc/sparc.c (scan_record_type): Take into account subfields
19782         to compute the PACKED_P predicate.
19783         (function_arg_record_value): Minor tweaks.
19785 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19787         * doc/install.texi (--with-multilib-list): Describe the meaning of the
19788         option for arm*-*-* targets.
19790 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19792         * doc/extend.texi (Common Function Attributes): Move docs for
19793         MSP430-specific attributes to....
19794         (MSP430 Function Attributes): ...here.  Delete the redundant
19795         entries and copy-edit the remaining text.
19796         (MSP430 Variable Attributes): Use uniform format for index
19797         entries and add a cross-reference to the corresponding function
19798         attribute docs.
19800 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
19802         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19803         -finite-math typo.
19804         (x86 Options): Likewise.
19806 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19808         PR 1078
19810         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19811         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19812         to corresponding attribute.
19814 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19816         * doc/extend.texi (Common Function Attributes) <noplt>: Move
19817         to correct alphabetization of table.  Copy-edit and correct
19818         markup.
19819         <stack_protect>: Likewise.
19820         <target_clones>: Likewise.
19821         <simd>: Likewise.
19822         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19823         Correct punctuation.
19824         (Code Gen Options) <-fno-plt>: Copy-edit.
19826 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19828         PR target/68917
19829         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19830         SI values.  Explicitly convert SI to DI and vice-versa.
19832 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
19834         PR tree-optimization/69070
19835         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19836         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19838         PR sanitizer/69055
19839         * ubsan.c (ubsan_instrument_float_cast): Call
19840         initialize_sanitizer_builtins.
19842         PR target/69015
19843         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19845 Copyright (C) 2016 Free Software Foundation, Inc.
19847 Copying and distribution of this file, with or without modification,
19848 are permitted in any medium without royalty provided the copyright
19849 notice and this notice are preserved.