Cherry-pick fprofile-generate-atomic from google/gcc-4_9
[official-gcc.git] / gcc / ChangeLog
blobcdf8b7740bd498c2352acbcddc683b5bd29603c3
1 2016-08-10  Martin Liska  <mliska@suse.cz>
3         Cherry picked (and modified) from google-4_7 branch
4         2012-12-26  Rong Xu  <xur@google.com>
5         * common.opt (fprofile-update): Add new flag.
6         * coretypes.h: Define enum profile_update.
7         * doc/invoke.texi: Document -fprofile-update.
8         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
9         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
10         * tree-profile.c (gimple_init_edge_profiler): Generate
11         also atomic profiler update.
12         (gimple_gen_edge_profiler): Likewise.
14 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
16         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
17         stack_usage_file to NULL after fclose calls.
19 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21         PR target/71873
22         * reload.c (push_reload): Compute subreg_in_class for
23         subregs of constants and plus expressions. Remove special
24         handling of SYMBOL_REFs.
26 2016-08-10  Alan Modra  <amodra@gmail.com>
28         PR target/71680
29         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
30         SImode for TARGET_E500_DOUBLE when given SImode.
32 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
34         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
35         unused variable __O.
37 2016-08-09  Martin Liska  <mliska@suse.cz>
39         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
40         _gcov_reset to __gcov_reset.
41         * doc/gcov-tool.texi: Fix typo.
43 2016-08-09  Martin Liska  <mliska@suse.cz>
45         * value-prof.c (gimple_divmod_values_to_profile): Do not
46         instrument MOD histogram if a value is not a SSA name.
48 2016-08-09  Martin Liska  <mliska@suse.cz>
50         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
51         values.
53 2016-08-09  Renlin Li  <renlin.li@arm.com>
55         PR middle-end/64971
56         * calls.c (prepare_call_address): Convert funexp to Pmode when
57         necessary.
58         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
59         (sibcall_value): Likewise.
61 2016-08-09  Marek Polacek  <polacek@redhat.com>
63         PR c/7652
64         * cselib.c (cselib_expand_value_rtx_1): Add return.
65         * gengtype.c (dbgprint_count_type_at): Likewise.
66         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
67         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
69 2016-08-09  Martin Jambor  <mjambor@suse.cz>
71         PR ipa/71981
72         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
73         if instance is a MEM_REF.
75 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
77         PR target/72843
78         * config/i386/i386.md (*movtf_internal): Use
79         lra_in_progress || reload_completed instead of !can_create_pseudo_p
80         in the insn constraint.
81         (*movxf_internal): Ditto.
82         (*movdf_internal): Ditto.
83         (*movsf_internal): Ditto.
85 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
87         PR tree-optimization/72772
88         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
89         for expanded base.
91 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
93         PR tree-optimization/72772
94         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
95         parameter STOP.
96         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
97         parameter STOP and update calls.  Move expand_simple_operations
98         function call from here...
99         (simplify_using_initial_conditions): ...to here.  Delete parameter
100         STOP.
101         (tree_simplify_using_condition): Delete parameter STOP.
102         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
103         simplify_using_initial_conditions.
105 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
107         PR c/65345
108         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
109         Use create_tmp_var_raw instead of create_tmp_var.
111 2016-08-09  Richard Biener  <rguenther@suse.de>
113         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
114         Treat same SSA names related.
116 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
118         PR tree-optimization/72824
119         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
120         real_zerop is not negative.
122 2016-08-09  Richard Biener  <rguenther@suse.de>
124         PR tree-optimization/71802
125         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
126         all merge opportunities with the predecessor.
128 2016-08-09  Richard Biener  <rguenther@suse.de>
130         PR ipa/68273
131         * ipa-prop.c (ipa_modify_formal_parameters): Build
132         parameter types with natural alignment also for the
133         over-aligned case.
135 2016-08-08  Andi Kleen  <ak@linux.intel.com>
137         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
139 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
141         PR c/64955
142         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
143         do-nothing langhook.
144         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
145         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
146         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
147         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
149 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
151         PR bootstrap/72844
152         * input.c: Ensure that HAVE_ICONV is defined.
154 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
156         PR middle-end/72781
157         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
158         private vars for lastprivate and for linear iterator.
160         PR middle-end/68762
161         * omp-simd-clone.c: Include varasm.h.
162         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
163         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
164         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
165         update function name.
167 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
169         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
170         (avr_diagnose_devicespecs_error): Remove.
171         (avr_devicespecs_file): Remove composing absolute path for specfile
172         and its verbose info. Remove conditions to check specs-file,
174 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
176         PR rtl-optimization/72821
177         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
178         just return false for them.
180 2016-08-08  Alan Modra  <amodra@gmail.com>
182         PR target/72771
183         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
184         toc refs created during reload.  Update function comment.
186 2016-08-08  Alan Modra  <amodra@gmail.com>
188         PR target/72802
189         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
190         alternatives.  Put loads first, then stores, and reg/reg moves
191         within same class later.  Delete attr length.
193 2016-08-08  Alan Modra  <amodra@gmail.com>
195         PR target/72802
196         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
197         (mem_operand_ds_form): New predicate.
198         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
199         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
200         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
201         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
202         (extendsfdf2_fpr): Replace o constraint with wY.
204 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
206         * tree-ssa-threadbackward.c: Include tree-inline.h
207         (profitable_jump_thread_path): Use estimate_num_insns to estimate
208         size of copied block; for cold paths reduce duplication.
209         (find_jump_threads_backwards): Remove redundant tests.
210         (pass_thread_jumps::gate): Enable for -Os.
212 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
214         PR c/72816
215         * stor-layout.c (layout_decl): Fix up formatting.
216         (relayout_decl): Allow DECL to be FIELD_DECL.
218 2016-08-07  Alan Modra  <amodra@gmail.com>
220         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
222 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
224         * data-streamer-in.c (streamer_read_wide_int): New.
225         (streamer_read_widest_int): Renamed function.
226         * data-streamer-out.c (streamer_write_wide_int): New
227         (streamer_write_widest_int): Renamed function.
228         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
229         data-stream-in.c.
230         (input_cfg): Call renamed function.
231         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
232         data-stream-out.c.
233         (output_cfg): Call renamed function.
234         * data-streamer.h: Add declarations.
236 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
238         * tree-ssa-ccp.c (extend_mask): New param sgn.
239         Remove ORing with wi::mask.
240         (get_default_value): Adjust call to extend_mask to pass sign.
241         (evaluate_stmt): Likewise.
243 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
245         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
246         INT64_MAX.
248 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
250         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
251         transform if operand's type is pointer to function or method.
253 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
255         PR tree-optimization/18046
256         * tree-ssa-threadedge.c: Include cfganal.h.
257         (simplify_control_statement_condition): If simplifying a
258         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
259         with the dominating ASSERT_EXPR before handing it off to VRP.
260         Mention that a CASE_LABEL_EXPR may be returned.
261         (thread_around_empty_blocks): Adjust to handle
262         simplify_control_statement_condition() returning a
263         CASE_LABEL_EXPR.
264         (thread_through_normal_block): Likewise.
265         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
266         a switch statement by trying to determine which case label
267         will be taken.
269 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
271         PR rtl-optimization/69847
272         * lra-constraints.c (process_invariant_for_inheritance): Save
273         pattern instead of src.
274         (remove_inheritance_pseudos): Use the pattern.  Add assert.
276 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
278         * input.c (string_concat::string_concat): New constructor.
279         (string_concat_db::string_concat_db): New constructor.
280         (string_concat_db::record_string_concatenation): New method.
281         (string_concat_db::get_string_concatenation): New method.
282         (string_concat_db::get_key_loc): New method.
283         (class auto_cpp_string_vec): New class.
284         (get_substring_ranges_for_loc): New function.
285         (get_source_range_for_substring): New function.
286         (get_num_source_ranges_for_substring): New function.
287         (class selftest::lexer_test_options): New class.
288         (struct selftest::lexer_test): New struct.
289         (class selftest::ebcdic_execution_charset): New class.
290         (selftest::ebcdic_execution_charset::s_singleton): New variable.
291         (selftest::lexer_test::lexer_test): New constructor.
292         (selftest::lexer_test::~lexer_test): New destructor.
293         (selftest::lexer_test::get_token): New method.
294         (selftest::assert_char_at_range): New function.
295         (ASSERT_CHAR_AT_RANGE): New macro.
296         (selftest::assert_num_substring_ranges): New function.
297         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
298         (selftest::assert_has_no_substring_ranges): New function.
299         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
300         (selftest::test_lexer_string_locations_simple): New function.
301         (selftest::test_lexer_string_locations_ebcdic): New function.
302         (selftest::test_lexer_string_locations_hex): New function.
303         (selftest::test_lexer_string_locations_oct): New function.
304         (selftest::test_lexer_string_locations_letter_escape_1): New function.
305         (selftest::test_lexer_string_locations_letter_escape_2): New function.
306         (selftest::test_lexer_string_locations_ucn4): New function.
307         (selftest::test_lexer_string_locations_ucn8): New function.
308         (selftest::uint32_from_big_endian): New function.
309         (selftest::test_lexer_string_locations_wide_string): New function.
310         (selftest::uint16_from_big_endian): New function.
311         (selftest::test_lexer_string_locations_string16): New function.
312         (selftest::test_lexer_string_locations_string32): New function.
313         (selftest::test_lexer_string_locations_u8): New function.
314         (selftest::test_lexer_string_locations_utf8_source): New function.
315         (selftest::test_lexer_string_locations_concatenation_1): New
316         function.
317         (selftest::test_lexer_string_locations_concatenation_2): New
318         function.
319         (selftest::test_lexer_string_locations_concatenation_3): New
320         function.
321         (selftest::test_lexer_string_locations_macro): New function.
322         (selftest::test_lexer_string_locations_stringified_macro_argument):
323         New function.
324         (selftest::test_lexer_string_locations_non_string): New function.
325         (selftest::test_lexer_string_locations_long_line): New function.
326         (selftest::test_lexer_char_constants): New function.
327         (selftest::input_c_tests): Call the new test functions once per
328         case within the line_table test matrix.
329         * input.h (struct string_concat): New struct.
330         (struct location_hash): New struct.
331         (class string_concat_db): New class.
332         * substring-locations.h: New header.
334 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
336         PR tree-optimization/72810
337         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
338         the type of the case labels when truncating.
340 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
342         PR Target/72819
343         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
344         (aarch64_fp16_ptr_type_node): Likewise.
345         * config/aarch64/aarch64-simd-builtins.c
346         (aarch64_fp16_ptr_type_node): Define.
347         (aarch64_init_fp16_types): New, refactored out of...
348         (aarch64_init_builtins): ...here, update to call
349         aarch64_init_fp16_types.
350         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
351         HFmode.
352         (aapcs_vfp_sub_candidate): Likewise.
354 2016-08-05  Martin Liska  <mliska@suse.cz>
356             Joshua Cranmer  <Pidgeot18@gmail.com>
358         * gcov.c (line_t::has_block): New function.
359         (enum loop_type): New enum.
360         (handle_cycle): New function.
361         (unblock): Likewise.
362         (circuit): Likewise.
363         (get_cycles_count): Likewise.
364         (accumulate_line_counts): Use new loop detection algorithm.
366 2016-08-05  Martin Liska  <mliska@suse.cz>
368         * gcov.c (output_intermediate_file): Rename
369         function_info::line_next to next_file_fn.
370         (process_file): Likewise.
371         (read_graph_file): Likewise.
372         (accumulate_line_counts): Likewise.
373         (output_lines): Likewise.
375 2016-08-05  Richard Biener  <rguenther@suse.de>
377         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
378         restriction on threading to a loop header.
380 2016-08-05  Richard Biener  <rguenther@suse.de>
382         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
383         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
384         adjust loop info accordingly.
386 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
388         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
389         before folding call to __builtin_constant_p with parameters to false.
391 2016-08-05  Alan Modra  <amodra@gmail.com>
393         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
394         code accidentally committed 2016-05-02 providing class when given
395         NO_REGS.
397 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
399         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
400         the case label ranges that partially overlap with OP's value
401         range.
403 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
405         PR target/72805
406         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
407         Cast builtin function result to __mmask16 instead of __mmask8.
408         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
409         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
410         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
412 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
414         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
415         (ASSERT_TRUE_AT): New macro.
416         (ASSERT_FALSE): Reimplement in terms of...
417         (ASSERT_FALSE_AT): New macro.
418         (ASSERT_STREQ_AT): Fix typo in comment.
420 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
422         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
423         labels are exhaustive, designate the label with the widest
424         range to be the default label.
426 2016-08-04  Andrew Pinski  <apinski@cavium.com>
428         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
429         (thunderx_tunings): Use thunderx_vector_cost instead of
430         generic_vector_cost.
432 2016-08-04  Martin Liska  <mliska@suse.cz>
434         * gcov.c (main): Fix GNU coding style.
435         (output_intermediate_file): Likewise.
436         (process_file): Likewise.
437         (generate_results): Likewise.
438         (release_structures): Likewise.
439         (create_file_names): Likewise.
440         (find_source): Likewise.
441         (read_graph_file): Likewise.
442         (find_exception_blocks): Likewise.
443         (canonicalize_name): Likewise.
444         (make_gcov_file_name): Likewise.
445         (mangle_name): Likewise.
446         (accumulate_line_counts): Likewise.
447         (output_branch_count): Likewise.
448         (read_line): Likewise.
450 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
452         PR rtl-optimization/71779
453         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
454         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
455         or if it was truncated.
457         PR rtl-optimization/70903
458         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
460 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
462         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
463         accessing SSA_NAME_PTR_INFO.
465 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
467         PR 70677
468         * common/config/avr/avr-common.c (avr_option_optimization_table)
469         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
471 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
473         PR 55181
474         * config/avr/avr.md: New pattern to work around do_store_flag
475         generating shift instructions for bit extractions.
477 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
479         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
480         BITMAP_ALLOC.
481         (add_equivalence): Likewise.
482         (get_value_range): Allocate value range with vrp_value_range_pool.
483         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
484         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
486 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
488         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
489         the default for the rs6000 port.
491 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
493         PR middle-end/71876
494         * calls.c (special_function_p): Remove special handling of
495         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
496         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
497         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
499 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
501         PR middle-end/72778
502         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
503         Don't stop on regular insns.
505 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
507         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
508         size to DImode boundary.
509         (nvptx_propagate): Likewise.
511 2016-08-03  Alan Modra  <amodra@gmail.com>
513         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
514         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
515         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
516         from -mefficient-unaligned-vector.  Note that this affects fp too.
518 2016-08-03  Alan Modra  <amodra@gmail.com>
520         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
521         cost more.
523 2016-08-03  Alan Modra  <amodra@gmail.com>
525         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
526         to a reg.  Localize vars.
528 2016-08-03  Alan Modra  <amodra@gmail.com>
530         * config/rs6000/rs6000.opt: Remove negatives from help strings
531         and comments.
533 2016-08-03  Alan Modra  <amodra@gmail.com>
535         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
536         Delete duplicated code.
538 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
540         PR middle-end/72778
541         * lra-spills.c (regno_in_use_p): New.
542         (lra_final_code_change): Use it.
544 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
546         PR rtl-optimization/69847
547         * lra-int.h (struct lra-reg): Use restore_rtx instead of
548         restore_regno.
549         (lra_rtx_hash): New.
550         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
551         of restore_regno.
552         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
553         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
554         * lra-spills.c (lra_final_code_change): Don't delete insn when the
555         next insn is USE with the same reg as the current insn source.
556         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
557         of restore_regno.
558         (lra_constraints_init): Call initiate_invariants.
559         (lra_constraints_finish): Call finish_invariants.
560         (struct invariant, invariant_t, invariant_ptr_t): New.
561         (const_invariant_ptr_t, invariants, invariants_pool): New.
562         (invariant_table, invariant_hash, invariant_eq_p): New.
563         (insert_invariant, initiate_invariants, finish_invariants): New.
564         (clear_invariants, invalid_invariant_regs): New.
565         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
566         instead of restore_regno.
567         (invariant_p, process_invariant_for_inheritance): New.
568         (inherit_in_ebb): Implement invariant inheritance.
569         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
570         (remove_inheritance_pseudos): Implement undoing invariant
571         inheritance.
572         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
573         instead of restore_regno.
574         * lra-assigns.c (regno_live_length): New.
575         (reload_pseudo_compare_func): Use regno_live_length.
576         (assign_by_spills): Use restore_rtx instead of restore_regno.
577         (lra_assign): Ditto.  Initiate regno_live_length.
579 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
581         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
582         __builtin_aarch64_fmindf.
584 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
586         PR tree-optimization/34114
587         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
588         information for more control IVs.
590 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
592         PR tree-optimization/34114
593         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
594         PLUS_EXPR case.  Handle SSA_NAME case.
596 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
598         * config/aarch64/aarch64-simd-builtins.def
599         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
600         (__builtin_aarch64_fmaxdf): Likewise.
601         (__builtin_aarch64_smin_nandf): Likewise.
602         (__builtin_aarch64_smax_nandf): Likewise.
603         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
604         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
605         (<fmaxmin><mode>3): ...this.
606         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
607         (vminnm_f64): Likewise.
608         (vmin_f64): Likewise.
609         (vmax_f64): Likewise.
610         * config/aarch64/iterators.md (FMAXMIN): Merge with...
611         (FMAXMIN_UNS): ...this.
612         (fmaxmin): Merged with
613         (fmaxmin_op): ...this...
614         (maxmin_uns_op): ...in to this.
616 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
618         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
619         Add support for vec_extract on vector float, vector int, vector
620         short, and vector char vector types.
621         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
622         vector float, vector int, vector short, and vector char
623         optimizations on 64-bit ISA 2.07 systems for both constant and
624         variable element numbers.
625         (rs6000_split_vec_extract_var): Likewise.
626         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
627         Altivec registers on ISA 2.07 and above.
628         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
629         which never was matched due to the split occuring before register
630         allocation (and the code would not have worked on little endian
631         systems if it did match).  Allow extracts to go to the Altivec
632         registers if ISA 2.07 (power8).  Change from using "" around the
633         C++ code to using {}'s.
634         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
635         vec_extracts when the vector is in memory.
636         (vsx_extract_v4sf_var): New insn to optimize vector float
637         vec_extracts when the element number is variable on 64-bit ISA
638         2.07 systems.
639         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
640         for 64-bit ISA 2.07 as well as ISA 3.0.
641         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
642         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
643         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
644         optimize vector int, vector short, and vector char vec_extracts
645         when the vector is in memory.
646         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
647         optimize vector int, vector short, and vector char vec_extracts
648         when the element number is variable.
650 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
652         PR target/71948
653         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
654         does not overlap with other symbol flags.
656 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
658         * config/aarch64/aarch64.h (aarch64_frame):
659         Remove padding0 and hardfp_offset.  Add locals_offset,
660         initial_adjust, callee_adjust, callee_offset and final_adjust.
661         * config/aarch64/aarch64.c (aarch64_layout_frame):
662         Remove unused padding0 and hardfp_offset initializations.
663         Choose frame layout and set frame variables accordingly.
664         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
665         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
666         (aarch64_pop_regs): Likewise.
667         (aarch64_expand_prologue): Remove all decision code, just emit
668         prolog according to frame variables.
669         (aarch64_expand_epilogue): Remove all decision code, just emit
670         epilog according to frame variables.
671         (aarch64_initial_elimination_offset): Use offset to local/arg area.
673 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
675         PR target/72748
676         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
677         fix_debug_reg_uses after changing source register mode to
678         V1TImode if source register is undefined.
680 2015-08-01  Alan Hayward <alan.hayward@arm.com>
682         PR tree-optimization/71818
683         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
684         with non invariant evolutions
686 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
688         PR target/72767
689         * config/avr/avr.md (length) [branch]: Correct insn length
690         attribute for forward branches.
692 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
694         * doc/extend.texi (AVR Built-in Functions): Document
695         __builtin_avr_nops.
696         * config/avr/builtins.def (NOPS): New.
697         * config/avr/avr.c (avr_expand_nops): New static function.
698         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
700 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
702         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
703         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
704         addresses.
706 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
708         * config/aarch64/aarch64.c (vulcan_tunings): Update
709         vulcan L1 cache_line_size.
711 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
713         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
714         function that takes a vector memory address, a hard register, an
715         element number and a temporary base register, and recreates an
716         address that points to the appropriate element within the vector.
717         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
718         (rs6000_split_vec_extract_var): Add support for the target of a
719         vec_extract with variable element number being a scalar memory
720         location.
721         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
722         swappable.
723         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
724         vsx_extract_<mode>_load insn with a new insn that optimizes
725         storing either element to a memory location, using scratch
726         registers to pick apart the vector and reconstruct the address.
727         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
728         (vsx_extract_<mode>_store): Rework alternatives to more correctly
729         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
730         store instruction.
731         (vsx_extract_<mode>_var): Add support for extracting a variable
732         element number from memory.
734 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
736         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
737         when testing for compares against constants of the form 0xabab.
739 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
741         PR tree-optimization/57558
742         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
743         function.
744         (vect_loop_versioning): Support versioning with niter assumptions.
745         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
746         (vect_get_loop_niters): New parameter.  Reimplement to support
747         assumptions in loop niter info.
748         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
749         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
750         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
751         Support loop versioning for niters.
752         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
753         (vect_free_loop_info_assumptions): New function.
754         (vectorize_loops): Free loop niter info for loops with flag
755         LOOP_F_ASSUMPTIONS set if vectorization failed.
756         * tree-vectorizer.h (struct _loop_vec_info): New field
757         num_iters_assumptions.
758         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
759         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
760         (LOOP_REQUIRES_VERSIONING): New macro.
761         (vect_free_loop_info_assumptions): New decl.
763 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
765         * cfgloop.h (struct loop): New field constraints.
766         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
767         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
768         functions.
769         * cfgloop.c (alloc_loop): Initialize new field.
770         * cfgloopmanip.c (copy_loop_info): Copy constraints.
771         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
772         Adjust niter analysis wrto loop constraints.
773         * doc/loop.texi (@node Number of iterations): Add description for loop
774         constraints.
776 2016-07-29  Marek Polacek  <polacek@redhat.com>
778         PR c/7652
779         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
780         (ix86_expand_round_builtin): Likewise.
782 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
783             Georg-Johann Lay  <avr@gjlay.de>
785         PR rtl-optimization/71976
786         * combine.c (get_last_value): Return 0 if the argument for which
787         the function is called has a wider mode than the recorded value.
789 2016-07-29  Marek Polacek  <polacek@redhat.com>
791         PR c/7652
792         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
793         (altivec_expand_st_builtin): Likewise.
795 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
797         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
798         introduced in r238381.
800 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
802         PR middle-end/68217
803         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
804         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
806 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
808         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
809         New declaration.
810         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
811         Add support for vec_extract of vector double or vector long having
812         a variable element number on 64-bit ISA 2.07 systems or newer.
813         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
814         Likewise.
815         (rs6000_split_vec_extract_var): New function to split a
816         vec_extract built-in function with variable element number.
817         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
818         swappable.
819         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
820         (UNSPEC_VSX_EXTRACT): Likewise.
821         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
822         direct move instructions to be generated on 64-bit ISA 2.07
823         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
824         instruction.
825         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
826         arguments for vec_extract variable element.
827         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
828         vec_extract with variable element on V2DFmode and V2DImode
829         vectors.
830         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
831         -mupper-regs-df requirement, since it isn't needed.
832         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
833         do direct moves on 64-bit systems, which allows optimization of
834         vec_extract on 64-bit ISA 2.07 systems and newer.
836 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
837 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
839          * config/aarch64/aarch64.md
840         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
841         statement and type.
842         (<optab>qihi2_aarch64): Likewise, and split into two.
843         (extendqihi2_aarch64): New.
844         (zero_extendqihi2_aarch64): New.
845         * config/aarch64/iterators.md (ldrxt): Remove.
846         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
847         uxtb/uxth.
849 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
851         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
853 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
855         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
856         (aarch64_push_reg): New function to push 1 or 2 registers.
857         (aarch64_pop_reg): New function to pop 1 or 2 registers.
858         (aarch64_expand_prologue): Use aarch64_push_regs.
859         (aarch64_expand_epilogue): Use aarch64_pop_regs.
861 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
863         PR tree-optimization/71734
864         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
865         attribute instead of REF_LOOP and use it.
866         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
867         set it for Loops having non-zero safelen attribute.
868         (ref_indep_loop_p): Pass zero as initial value for safelen.
870 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
872         PR middle-end/72657
873         PR target/72683
874         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
875         call using chkp_gimple_call_builtin_p.
876         (chkp_copy_bounds_for_assign): Likewise.
878 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
880         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
881         * config/arm/arm-protos.h (struct tune_params): Likewise.
882         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
883         (cortex_a9_sched_adjust_cost): Likewise.
884         (fa726te_sched_adjust_cost): Likewise.
885         (arm_adjust_cost): Likewise.
886         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
887         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
888         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
889         * config/i386/i386.c (ix86_adjust_cost): Likewise.
890         * config/ia64/ia64.c: Likewise.
891         * config/m68k/m68k.c: Likewise.
892         * config/mep/mep.c (mep_adjust_cost): Likewise.
893         * config/microblaze/microblaze.c (microblaze_adjust_cost):
894         * Likewise.
895         * config/mips/mips.c (mips_adjust_cost): Likewise.
896         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
897         * Likewise.
898         * config/pa/pa.c (pa_adjust_cost): Likewise.
899         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
900         (rs6000_debug_adjust_cost): Likewise.
901         * config/sh/sh.c (sh_adjust_cost): Likewise.
902         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
903         (hypersparc_adjust_cost): Likewise.
904         (sparc_adjust_cost): Likewise.
905         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
906         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
907         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
908         * Likewise.
909         * config/visium/visium.c (visium_adjust_cost): Likewise.
910         * doc/tm.texi: Regenerate.
911         * haifa-sched.c (dep_cost_1): Adjust.
912         * target.def: Merge adjust_cost and adjust_cost_2.
914 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
916         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
918 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
920         * store-motion.c (struct st_expr): Make pattern_regs a vector.
921         (extract_mentioned_regs): Append to a vector instead of
922         returning a rtx_expr_list.
923         (st_expr_entry): Adjust.
924         (free_st_expr_entry): Likewise.
925         (store_ops_ok): Likewise.
926         (store_killed_in_insn): Likewise.
927         (find_moveable_store): Likewise.
929 2016-07-28  Martin Liska  <mliska@suse.cz>
931         PR gcov-profile/68025
932         * tree-profile.c (tree_profiling): Respect
933         no_profile_instrument_function attribute.
934         * doc/extend.texi: Document no_profile_instrument_function
935         attribute.
937 2016-07-28  Martin Liska  <mliska@suse.cz>
939         PR rtl-optimization/70944
940         * combine.c (make_compound_operation):
941         Do not allow make_compound_operation for vector mode
943 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
945         PR middle-end/71994
946         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
947          before calling get_ops.
949 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
951         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
952         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
953         (BITS_PER_UNIT_LOG): Remove.
954         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
955         * expr.c (expand_assignment): Likewise.
956         * stor-layout.c (initialize_sizetypes): Likewise.
958 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
960         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
961         signature of rs6000_expand_vector_extract so that the element
962         number is a RTX instead of a constant integer.
963         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
964         Likewise.
965         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
966         (altivec_expand_vec_ext_builtin): Likewise.
967         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
968         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
969         MFVSRLD instruction.
971 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
973         * input.c (get_pure_location): Move here from tree.c.
974         (make_location): Likewise.  Add header comment.
975         (selftest::test_accessing_ordinary_linemaps): Verify
976         pure_location_p, make_location, get_location_from_adhoc_loc and
977         get_range_from_loc.
978         * input.h (get_pure_location): Move declaration here from tree.h.
979         (get_finish): Likewise for inline function.
980         (make_location): Likewise for declaration.
981         * tree.c (get_pure_location): Move to input.c.
982         (make_location): Likewise.
983         * tree.h (get_pure_location): Move declaration to tree.h.
984         (get_finish): Likewise for inline function.
985         (make_location): Likewise for declaration.
987 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
989         PR middle-end/71078
990         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
992 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
994         * system.h (STATIC_ASSERT): Use static_assert if building
995         with C++11 onwards.
997 2016-07-27  Richard Biener  <rguenther@suse.de>
999         PR tree-optimization/72517
1000         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1001         Revert change to not compute read-read dependences.
1003 2016-07-27  Richard Biener  <rguenther@suse.de>
1005         * predict.c (set_even_probabilities): Make nedges unsigned.
1007 2016-07-27  Martin Liska  <mliska@suse.cz>
1009         * predict.c (set_even_probabilities): Handle unlikely edges.
1010         (combine_predictions_for_bb): Likewise.
1012 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1014         PR target/71869
1015         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
1016         __float128 support when we don't have hardware support, so that
1017         the IEEE built-in functions like isgreater, first call __unordkf3
1018         to make sure neither operand is a NaN, and if both operands are
1019         ordered, do the normal comparison.
1021 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
1023         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
1024         name.
1025         (extract_code_and_val_from_cond_with_ops): Verify that name is
1026         either cond_op0 or cond_op1.
1028 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
1030         PR tree-optimization/18046
1031         * genmodes.c (emit_mode_size_inline): Emit an assert that
1032         verifies that mode is a valid array index.
1033         (emit_mode_nuinits_inline): Likewise.
1034         (emit_mode_inner_inline): Likewise.
1035         (emit_mode_unit_size_inline): Likewise.
1036         (emit_mode_unit_precision_inline): Likewise.
1037         * tree-vrp.c: Include params.h.
1038         (find_switch_asserts): Register edge assertions for the default
1039         label which correspond to the anti-ranges of each case label.
1040         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
1041         * doc/invoke.texi: Document it.
1043 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1045         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
1046         and unnecessary call to gimple_bb.
1048 2016-07-26  Richard Biener  <rguenther@suse.de>
1050         PR rtl-optimization/71984
1051         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
1052         for VOIDmode.
1054 2016-07-26  Richard Biener  <rguenther@suse.de>
1056         PR middle-end/72517
1057         * expmed.c (extract_bit_field_1): Constrain the vector mode
1058         with element size matching the extraction mode size when
1059         choosing a better vector mode to do the extraction from.
1061 2016-07-26  Richard Biener  <rguenther@suse.de>
1062             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1064         PR middle-end/70920
1065         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
1066         pattern.
1068 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1070         * tree-ssa-structalias.c (struct scc_info): Change types of
1071         members to auto_sbitmap and auto_vec.
1072         (scc_info::scc_info): New constructor.
1073         (scc_info::~scc_info): New destructor.
1074         (init_scc_info): Remove.
1075         (free_scc_info): Remove.
1076         (find_indirect_cycles): Adjust.
1077         (perform_var_substitution): Likewise.
1078         (free_var_substitution_info): Likewise.
1080 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1082         * tree-outof-ssa.c (struct elim_graph): Change type of members
1083         to auto_vec and auto_sbitmap.
1084         (elim_graph::elim_graph): New constructor.
1085         (delete_elim_graph): Remove.
1086         (expand_phi_nodes): Adjust.
1088 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1090         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
1091         (new_elim_graph): Adjust.
1092         (clear_elim_graph): Likewise.
1093         (delete_elim_graph): Likewise.
1094         (elim_graph_size): Likewise.
1095         (elim_graph_add_node): Likewise.
1096         (elim_graph_add_edge): Likewise.
1097         (elim_graph_remove_succ_edge): Likewise.
1098         (eliminate_name): Likewise.
1099         (eliminate_build): Likewise.
1100         (elim_forward): Likewise.
1101         (elim_unvisited_predecessor): Likewise.
1102         (elim_backward): Likewise.
1103         (elim_create): Likewise.
1104         (eliminate_phi): Likewise.
1105         (expand_phi_nodes): Likewise.
1107 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1109         * bt-load.c (compute_out): Use auto_sbitmap class.
1110         (link_btr_uses): Likewise.
1111         * cfganal.c (mark_dfs_back_edges): Likewise.
1112         (post_order_compute): Likewise.
1113         (inverted_post_order_compute): Likewise.
1114         (pre_and_rev_post_order_compute_fn): Likewise.
1115         (single_pred_before_succ_order): Likewise.
1116         * cfgexpand.c (pass_expand::execute): Likewise.
1117         * cfgloop.c (verify_loop_structure): Likewise.
1118         * cfgloopmanip.c (fix_bb_placements): Likewise.
1119         (remove_path): Likewise.
1120         (update_dominators_in_loop): Likewise.
1121         * cfgrtl.c (break_superblocks): Likewise.
1122         * ddg.c (check_sccs): Likewise.
1123         (create_ddg_all_sccs): Likewise.
1124         * df-core.c (df_worklist_dataflow): Likewise.
1125         * dse.c (dse_step3): Likewise.
1126         * except.c (eh_region_outermost): Likewise.
1127         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1128         * gcse.c (prune_expressions): Likewise.
1129         (prune_insertions_deletions): Likewise.
1130         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
1131         * graph.c (draw_cfg_nodes_no_loops): Likewise.
1132         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
1133         * lcm.c (compute_earliest): Likewise.
1134         (compute_farthest): Likewise.
1135         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
1136         (unroll_loop_runtime_iterations): Likewise.
1137         (unroll_loop_stupid): Likewise.
1138         * lower-subreg.c (decompose_multiword_subregs): Likewise.
1139         * lra-lives.c: Likewise.
1140         * lra.c (lra): Likewise.
1141         * modulo-sched.c (schedule_reg_moves): Likewise.
1142         (optimize_sc): Likewise.
1143         (get_sched_window): Likewise.
1144         (sms_schedule_by_order): Likewise.
1145         (check_nodes_order): Likewise.
1146         (order_nodes_of_sccs): Likewise.
1147         (order_nodes_in_scc): Likewise.
1148         * recog.c (split_all_insns): Likewise.
1149         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
1150         * reload1.c (reload): Likewise.
1151         * sched-rgn.c (haifa_find_rgns): Likewise.
1152         (split_edges): Likewise.
1153         (compute_trg_info): Likewise.
1154         * sel-sched.c (init_seqno): Likewise.
1155         * store-motion.c (remove_reachable_equiv_notes): Likewise.
1156         * tree-into-ssa.c (update_ssa): Likewise.
1157         * tree-ssa-live.c (live_worklist): Likewise.
1158         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
1159         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1160         * Likewise.
1161         (try_peel_loop): Likewise.
1162         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
1163         * Likewise.
1164         * tree-ssa-pre.c (compute_antic): Likewise.
1165         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1166         * tree-stdarg.c (reachable_at_most_once): Likewise.
1167         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
1168         * var-tracking.c (vt_find_locations): Likewise.
1170 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1172         * sbitmap.h (auto_sbitmap): New class.
1174 2016-07-26  Alan Modra  <amodra@gmail.com>
1176         PR target/72103
1177         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
1178         sri->t_icode.
1180 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
1182         * input.c (selftest::temp_source_file::temp_source_file): Fix
1183         missing "%s" in fprintf.
1185 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
1187         PR middle-end/71732
1188         * cselib.c (cselib_process_insn): Invalidate argument slots for
1189         const/pure calls.
1191 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1193         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
1194         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
1195         vmulxh_lane_f16, vmulxh_laneq_f16): New.
1197 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1199         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1200         * config/aarch64/aarch64.md (fma, fnma): Support HF.
1201         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
1203 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1205         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1206         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
1207         New.
1208         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
1209         (add<mode>3): Likewise.
1210         (sub<mode>3): Likewise.
1211         (mul<mode>3): Likewise.
1212         (div<mode>3): Likewise.
1213         (*div<mode>3): Likewise.
1214         (<fmaxmin><mode>3): Extend to HF.
1215         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
1216         (fabd<mode>3): Likewise.
1217         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
1218         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
1219         (aarch64_fmulx<mode>): Likewise.
1220         (aarch64_fac<optab><mode>): Likewise.
1221         (aarch64_frecps<mode>): Likewise.
1222         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
1223         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
1224         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
1225         (VSDQ_HSDI): Support HI.
1226         (fcvt_target, FCVT_TARGET): Likewise.
1227         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
1228         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
1229         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
1230         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
1231         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
1232         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
1233         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
1234         vrsqrtsh_f16): New.
1236 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1238         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
1239         * config/aarch64/aarch64-builtins.c (hi_UP): New.
1240         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1241         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
1242         mode.
1243         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
1244         (aarch64_cm<optab><mode>): Likewise.
1245         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
1246         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
1247         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
1248         (sqrt<mode>2): Likewise.
1249         (*sqrt<mode>2): Likewise.
1250         (abs<mode>2): Likewise.
1251         (<optab><mode>hf2): New pattern for HF mode.
1252         (<optab>hihf2): Likewise.
1253         * config/aarch64/arm_neon.h: Include arm_fp16.h.
1254         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
1255         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
1256         Support HF mode.
1257         * config/aarch64/arm_fp16.h: New file.
1258         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
1259         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
1260         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
1261         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
1262         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
1263         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
1264         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
1265         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
1266         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
1267         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
1268         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
1269         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
1270         vsqrth_f16): New.
1272 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1274         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
1275         reduc_smin_scal_): Use VDQIF_F16.
1276         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
1277         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
1278         Use VHSDF.
1279         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
1280         * config/aarch64/iterators.md (VDQIF_F16): New.
1281         (vp): Support HF modes.
1282         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
1283         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
1285 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1287         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
1288         "*aarch64_mulx_elt_from_dup<mode>".
1289         (*aarch64_mul3_elt<mode>): Update schedule type.
1290         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
1291         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
1292         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1293         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
1294         (f, fp): Support HF modes.
1295         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
1296         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
1297         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
1298         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
1299         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
1300         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
1302 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1304         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1305         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
1306         modes.
1307         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
1308         vfmsq_f16): New.
1310 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1312         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1313         * config/aarch64/aarch64-simd.md
1314         (aarch64_rsqrts<mode>): Extend to HF modes.
1315         (fabd<mode>3): Likewise.
1316         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
1317         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
1318         (aarch64_<maxmin_uns>p<mode>): Likewise.
1319         (<su><maxmin><mode>3): Likewise.
1320         (<maxmin_uns><mode>3): Likewise.
1321         (<fmaxmin><mode>3): Likewise.
1322         (aarch64_faddp<mode>): Likewise.
1323         (aarch64_fmulx<mode>): Likewise.
1324         (aarch64_frecps<mode>): Likewise.
1325         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
1326         (add<mode>3): Extend to HF modes.
1327         (sub<mode>3): Likewise.
1328         (mul<mode>3): Likewise.
1329         (div<mode>3): Likewise.
1330         (*div<mode>3): Likewise.
1331         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
1332         HF, V4HF and V8HF.
1333         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
1334         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
1335         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
1336         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
1337         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
1338         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
1339         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
1340         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
1341         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
1342         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
1343         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
1344         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
1345         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
1346         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
1348 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1350         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
1351         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1352         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
1353         (neg<mode>2): Likewise.
1354         (abs<mode>2): Likewise.
1355         (<frint_pattern><mode>2): Likewise.
1356         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
1357         (<optab><VDQF:mode><fcvt_target>2): Likewise.
1358         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
1359         (ftrunc<VDQF:mode>2): Likewise.
1360         (<optab><fcvt_target><VDQF:mode>2): Likewise.
1361         (sqrt<mode>2): Likewise.
1362         (*sqrt<mode>2): Likewise.
1363         (aarch64_frecpe<mode>): Likewise.
1364         (aarch64_cm<optab><mode>): Likewise.
1365         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
1366         HF, V4HF and V8HF.
1367         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
1368         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
1369         (stype): New.
1370         * config/aarch64/arm_neon.h (vdup_n_f16): New.
1371         (vdupq_n_f16): Likewise.
1372         (vld1_dup_f16): Use vdup_n_f16.
1373         (vld1q_dup_f16): Use vdupq_n_f16.
1374         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
1375         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
1376         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
1377         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
1378         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
1379         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
1380         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
1381         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
1382         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
1383         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
1384         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
1385         vsqrt_f16, vsqrtq_f16): New.
1387 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1389         * config/aarch64/aarch64-simd.md
1390         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
1391         (aarch64_ext<mode>): Likewise.
1392         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
1393         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
1394         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
1395         and V8HFmode.
1396         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
1397         float16x8_t.
1398         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
1399         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
1400         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
1401         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
1402         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
1403         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
1404         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
1405         New.
1406         (vmov_n_f16): Reimplement using vdup_n_f16.
1407         (vmovq_n_f16): Reimplement using vdupq_n_f16..
1409 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1411         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
1412         "frame_related_p".  Generate CFA annotation when it's necessary.
1413         (aarch64_expand_prologue): Use aarch64_add_constant.
1414         (aarch64_expand_epilogue): Likewise.
1415         (aarch64_output_mi_thunk): Pass "false" when calling
1416         aarch64_add_constant.
1418 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1420         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
1421         sequences.
1423 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
1425         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
1426         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
1427         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
1428         (aarch64_build_constant): Delete.
1430 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
1432         Revert
1433         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
1435         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1436         flag_toplevel_reorder.
1438 2016-07-25  Richard Biener  <rguenther@suse.de>
1440         * cgraph.c (cgraph_node::verify_node): Compare against builtin
1441         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
1442         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
1443         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
1444         (streamer_get_builtin_tree): Likewise.
1445         (streamer_write_builtin): Likewise.
1446         * lto-streamer.h (LTO_builtin_decl): Remove.
1447         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
1448         (lto_input_scc): Remove LTO_builtin_decl handling.
1449         (lto_input_tree_1): Liekwise.
1450         * lto-streamer-out.c (lto_output_tree_1): Remove special
1451         handling of builtins.
1452         (DFS::DFS): Likewise.
1453         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
1454         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
1455         assert.
1456         (streamer_write_builtin): Remove.
1458 2016-07-25  Martin Liska  <mliska@suse.cz>
1460         * lto-cgraph.c (input_symtab): Don't call get_working_sets
1461         if flag_auto_profile is set to true.
1463 2016-07-25  Martin Liska  <mliska@suse.cz>
1465         PR gcov-profile/71868
1466         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
1467         have a function with multiple latches, count them all.
1469 2016-07-25  Martin Liska  <mliska@suse.cz>
1471         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
1473 2016-07-25  Martin Liska  <mliska@suse.cz>
1475         PR tree-optimization/71987
1476         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
1477         just for SSA_NAMEs. Fix GNU coding style.
1479 2016-07-25  Martin Liska  <mliska@suse.cz>
1481         PR gcov-profile/64874
1482         * gcov-io.h: Update command about file format.
1483         * gcov-iov.c (main): Adapt the numbering scheme.
1485 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
1487         PR middle-end/66726
1488         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
1489         whose result is used in PHI.
1490         (final_range_test_p): Likewise.
1491         (maybe_optimize_range_tests): Likewise.
1493 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1495         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1496         Reformat two multi-line strings.
1498 2016-07-22 Martin Sebor  <msebor@redhat.com>
1500         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
1502 2016-07-22 Martin Sebor  <msebor@redhat.com>
1504         PR c/71560
1505         * doc/extend.texi (Compound Literals): Correct and clarify.
1506         (Cast to Union): Same.
1508 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1510         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1511         comments to explain why certain error messages make mention of
1512         undocumented options.
1513         (rs6000_invalid_builtin): Change error messages to replace mention
1514         of undocumented options with mention of the -mcpu=power9 option
1515         that enables those undocumented options.
1516         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
1517         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
1518         definition of this macro to correct an existing error.
1519         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
1520         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
1521         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
1522         descriptions of built-in functions so that they depend on
1523         -mcpu=power9 instead of on the corresponding undocumented flags.
1524         * doc/invoke.texi (Option Summary):  Remove all mention of newly
1525         undocumented flags.
1526         (IBM RS/6000 and PowerPC Options): Likewise.
1527         * doc/md.texi (Constraints for Particuliar Machines): Remove all
1528         mention of newly undocumented flags.
1530 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
1532         * ipa-cp.c (determine_versionability): Do not create constprop clones,
1533         when target_clones attribute is set.
1535 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
1537         * common.opt (funsafe-loop-optimizations): Mark ignore.
1538         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
1539         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
1540         related code.
1541         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
1542         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
1544 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
1546         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1547         Parameter.
1548         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1549         Parameter.
1550         (number_of_iterations_exit): Warn missed loop optimization for
1551         possible infinite loops.
1553 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
1555         PR target/71216
1556         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1557         when to emit a ".machine" pseudo-op.
1559 2016-07-22  Martin Liska  <mliska@suse.cz>
1561         PR gcov-profile/69028
1562         PR gcov-profile/62047
1563         * coverage.c (coverage_compute_lineno_checksum): Do not
1564         calculate checksum for fns w/o xloc.file.
1565         (coverage_compute_profile_id): Likewise.
1567 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
1569         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
1570         (avr_secondary_reload): ...and implementation.
1571         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
1572         * config/avr/avr.md (reload_in<mode>): Remove insns.
1573         (adjust_len) [lpm]: Remove insn attribute value.
1574         * config/avr/predicates.md (flash_operand): Remove insn predicate.
1576 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1578         PR middle-end/71876
1579         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
1580         attribute.
1581         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
1582         * calls.c (special_function_p): Remove the special handling of the
1583         "__builtin_" prefix.
1585 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1587         PR middle-end/71876
1588         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
1589         if STMT may be an alloca call.
1590         (gimple_alloca_call_p, alloca_call_p): Return only true for the
1591         builtin alloca call.
1592         * calls.h (gimple_maybe_alloca_call_p): New function.
1593         * tree-inline.c (inline_forbidden_p_stmt): Use
1594         gimple_maybe_alloca_call_p here.
1596 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
1598         * spellcheck-tree.c (best_macro_match::best_macro_match):
1599         Explictly specify the template arguments when invoking the base
1600         class constructor, to help older C++ compilers.
1602 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1604         PR sanitizer/71953
1605         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1606         before builtin_decl_implicit.
1608 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1610         * optabs.c (emit_condiitonal_move): Short circuit for identical
1611         sources.
1613 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1615         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
1616         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
1617         (noce_conversion_profitable_p): New.
1618         (noce_try_store_flag_constants): Use it.
1619         (noce_try_addcc): Likewise.
1620         (noce_try_store_flag_mask): Likewise.
1621         (noce_try_cmove): Likewise.
1622         (noce_try_cmove_arith): Likewise.
1623         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
1624         overwriting it.
1625         (noce_convert_multiple_sets): Move cost model to here, from...
1626         (bb_ok_for_noce_convert_multiple_sets) ...here.
1627         (noce_process_if_block): Update calls for above changes.
1628         (noce_find_if_block): Record new noce_if_info parameters.
1630 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
1632         * target.def (max_noce_ifcvt_seq_cost): New.
1633         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
1634         * doc/tm.texi: Regenerate.
1635         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
1636         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
1637         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
1638         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
1639         * doc/invoke.texi: Document new params.
1641 2016-07-21  Richard Biener  <rguenther@suse.de>
1643         PR tree-optimization/71947
1644         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
1645         ranges have useful limit_vr information.
1647 2016-07-21  Richard Biener  <rguenther@suse.de>
1649         * function-tests.c (build_trivial_generic_function): Set
1650         BLOCK_SUPERCONTEXT of DECL_INITIAL.
1651         * omp-low.c (create_omp_child_function): Likewise.
1652         (grid_expand_target_grid_body): Likewise.
1653         * cgraphunit.c (init_lowered_empty_function): Likewise.
1654         (cgraph_node::expand_thunk): Likewise.
1655         * tree-parloops.c (create_loop_fn): Likewise.
1656         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
1658 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1660         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
1661         in comment.
1663 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
1665         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
1666         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
1667         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
1668         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
1669         values for insn attribute.
1670         * config/avr/avr.c (avr_out_insert_notbit): New function.
1671         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
1672         ADJUST_LEN_INSV_NOTBIT_0/_7.
1673         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
1675 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1677         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
1678         (chrec_convert_1, chrec_convert): Ditto.
1679         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
1680         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
1681         * tree-vrp.c (adjust_range_with_scev): Ditto.
1682         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
1683         (scev_var_range_cant_overflow): New function.
1684         (scev_probably_wraps_p): New parameter.  Call above function.
1685         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
1687 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1689         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
1690         by removing computation of may_be_zero.
1692 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
1694         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1696 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
1698         Improving concepts performance and diagnostics.
1699         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1700         for constraint satisfaction and subsumption.
1701         * timevar.h (auto_timevar): New constructor that matches the push/pop
1702         pattern of usage in pt.c.
1704 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
1706         * hwint.h (HOST_WIDE_INT_0): New define.
1707         (HOST_WIDE_INT_0U): Ditto.
1708         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
1709         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
1710         * simplify-rtx.c: Ditto.
1711         * tree-object-size.c: Ditto.
1713 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1715         * config/s390/s390.c (s390_encode_section_info): Remove mode size
1716         check.
1718 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
1720         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
1721         * combine.c: Use HOST_WIDE_INT_M1U instead of
1722         ~(unsigned HOST_WIDE_INT) 0.
1723         * double-int.h: Ditto.
1724         * dse.c: Ditto.
1725         * dwarf2asm.c:Ditto.
1726         * expmed.c: Ditto.
1727         * genmodes.c: Ditto.
1728         * match.pd: Ditto.
1729         * read-rtl.c: Ditto.
1730         * tree-ssa-loop-ivopts.c: Ditto.
1731         * tree-ssa-loop-prefetch.c: Ditto.
1732         * tree-vect-generic.c: Ditto.
1733         * tree-vect-patterns.c: Ditto.
1734         * tree.c: Ditto.
1736 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1738         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
1739         constant addresses outside [0,0xc0] into a register.
1740         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
1741         cases where the base address register is unused after.
1742         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
1743         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
1744         (avr_out_store_psi_reg_disp_tiny): Same.
1746 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1748         Implement attribute progmem on reduced Tiny cores by adding
1749         flash offset 0x4000 to respective symbols.
1751         PR target/71948
1752         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
1753         documentation how it works on reduced Tiny cores.
1754         (AVR Named Address Spaces): No support for reduced Tiny.
1755         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
1756         (avr_address_tiny_pm_p): New static function.
1757         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
1758         if the address is in progmem.
1759         (avr_assemble_integer): Same.
1760         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
1761         for symbol_ref in progmem.
1762         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
1763         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
1764         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
1766 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
1768         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
1769         * configure: Regenerate.
1770         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
1771         (USE_THIN_ARCHIVES): New variable.
1772         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
1773         this archive as a thin archive.
1775 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1777         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
1778         same location as last time, don't skip if we have fix-it hints.
1779         Clarify the skipping logic by converting it from one "if" clause
1780         to repeated "if" clauses.
1781         * spellcheck-tree.c: Include "cpplib.h".
1782         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
1783         (best_macro_match::best_macro_match): New constructor.
1784         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
1785         Move here from c/c-decl.c.
1786         (class best_macro_match): Move here from c/c-decl.c, converting
1787         from a typedef to a subclass, gaining a ctor.
1789 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1791         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
1792         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
1793         define...
1794         (avr_addr_space_diagnose_usage): ...and implementation.
1795         (avr_addr_space_supported_p): New function.
1796         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
1797         report bad address space usage if that space is supported.
1798         (avr_insert_attributes): Same.  No more complain about unsupported
1799         address spaces.
1800         * config/avr/avr-c.c (tm_p.h): Include it.
1801         (avr_cpu_cpp_builtins): Only define addr-space related built-in
1802         macro if avr_addr_space_supported_p.
1804 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
1806         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1807         flag_toplevel_reorder.
1809 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
1811         * gcc-rich-location.c
1812         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
1813         a const char *.
1814         * gcc-rich-location.h
1815         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
1817 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
1819         * target.def (addr_space): Add new diagnose_usage to hook vector.
1820         * targhooks.c (default_addr_space_diagnose_usage): Add default
1821         implementation and...
1822         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
1823         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
1824         is some address space, call targetm.addr_space.diagnose_usage.
1825         * doc/tm.texi.in (Named Address Spaces): Add anchor for
1826         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
1827         * doc/tm.texi: Regenerate.
1829 2016-07-20  Martin Liska  <mliska@suse.cz>
1831         PR middle-end/71898
1832         * graphite-isl-ast-to-gimple.c (later_of_the_two):
1833         Properly handly PHI stmts.
1835 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
1837         PR tree-optimization/71503
1838         PR tree-optimization/71683
1839         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1840         and break.
1842 2016-07-20  Martin Liska  <mliska@suse.cz>
1844         * doc/invoke.texi (-fipa-ra): Document when the option is
1845         disabled. Fix a typo.
1847 2016-07-20  Martin Liska  <mliska@suse.cz>
1849         * Makefile.in: Include fibonacci_heap.c
1850         * fibonacci_heap.c: New file.
1851         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1852         (fibonacci_heap::union_with): Fix deletion of the second heap.
1853         * selftest-run-tests.c (selftest::run_tests): Incorporate
1854         fibonacci heap tests.
1855         * selftest.h: Declare fibonacci_heap_c_tests.
1857 2016-07-20  Martin Liska  <mliska@suse.cz>
1859         * selftest-run-tests.c (selftest::run_tests): New function.
1860         * selftest.h (sreal_c_tests): Declare.
1861         * sreal.c (sreal_verify_basics): New function.
1862         (verify_aritmetics): Likewise.
1863         (sreal_verify_arithmetics): Likewise.
1864         (verify_shifting): Likewise.
1865         (sreal_verify_shifting): Likewise.
1866         (void sreal_c_tests): Likewise.
1868 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1870         PR rtl-optimization/71916
1871         * cfgrtl.c (contains_no_active_insn_p): Return false also for
1872         bb which have a single succ fake edge.
1874 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
1876         PR debug/71855
1877         * dwarf2out.c (gen_subprogram_die): Only call
1878         gen_unspecified_parameters_die while dumping early dwarf.
1880 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1882         PR middle-end/71874
1883         * gimple-fold.c (fold_builtin_memory_op): Use
1884         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1886 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
1888         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1889         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1890         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1891         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1892         * combine.c: Ditto.
1893         * cse.c: Ditto.
1894         * dojump.c: Ditto.
1895         * double-int.c: Ditto.
1896         * dse.c: Ditto.
1897         * dwarf2out.c: Ditto.
1898         * expmed.c: Ditto.
1899         * expr.c: Ditto.
1900         * fold-const.c: Ditto.
1901         * function.c: Ditto.
1902         * fwprop.c: Ditto.
1903         * genmodes.c: Ditto.
1904         * hwint.c: Ditto.
1905         * hwint.h: Ditto.
1906         * ifcvt.c: Ditto.
1907         * loop-doloop.c: Ditto.
1908         * loop-invariant.c: Ditto.
1909         * loop-iv.c: Ditto.
1910         * match.pd: Ditto.
1911         * optabs.c: Ditto.
1912         * real.c: Ditto.
1913         * reload.c: Ditto.
1914         * rtlanal.c: Ditto.
1915         * simplify-rtx.c: Ditto.
1916         * stor-layout.c: Ditto.
1917         * toplev.c: Ditto.
1918         * tree-ssa-loop-ivopts.c: Ditto.
1919         * tree-vect-generic.c: Ditto.
1920         * tree-vect-patterns.c: Ditto.
1921         * tree.c: Ditto.
1922         * tree.h: Ditto.
1923         * ubsan.c: Ditto.
1924         * varasm.c: Ditto.
1925         * wide-int-print.cc: Ditto.
1926         * wide-int.cc: Ditto.
1927         * wide-int.h: Ditto.
1929 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1931         * selftest.c (selftest::assert_streq): Handle NULL values of
1932         val_actual and val_expected.
1934 2016-07-19  Martin Jambor  <mjambor@suse.cz>
1936         PR fortran/71688
1937         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1938         rather than cgraph_create_node to get a call graph node.
1940 2016-07-19  Richard Biener  <rguenther@suse.de>
1942         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1943         handle all tcc_constant bases and valueize SSA names.
1944         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1945         tcc_constant bases.
1947 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1949         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1950         the flags of the exit block and bb2, not just the entry block.
1952 2016-07-19  Richard Biener  <rguenther@suse.de>
1954         PR tree-optimization/71901
1955         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1956         align member, group stuff with the bitfield.
1957         (vn_ref_op_align_unit): New inline.
1958         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1959         record element alignment and operand 3 unchanged.
1960         (ao_ref_init_from_vn_reference): Adjust.
1961         (valueize_refs_1): Likewise.
1962         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1964 2016-07-19  Richard Biener  <rguenther@suse.de>
1966         PR tree-optimization/71908
1967         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1968         symbolic constants in a more reliable way.
1970 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
1972         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1973         comment.
1974         (vect_update_inits_of_drs): Likewise.
1975         (vect_create_cond_for_alias_checks): Likewise.
1976         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1978 2016-07-19  Richard Biener  <rguenther@suse.de>
1980         PR lto/71907
1981         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1982         with an abstract origin that is not an inlined function outer
1983         scope add a self-reference as abstract origin.
1984         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1986 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1988         PR target/71493
1989         * config/rs6000/rs6000.c (rs6000_function_value): Fix
1990         unintentional System V.4 structure return breakage for structures
1991         with a single floating point element.
1993 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
1995         PR tree-optimization/71734
1996         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1997         contains REF, use it to check safelen, assume that safelen value
1998         must be greater 1, fix style.
1999         (ref_indep_loop_p_2): Add REF_LOOP argument.
2000         (ref_indep_loop_p): Pass LOOP as additional argument to
2001         ref_indep_loop_p_2.
2003 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2005         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
2006         allocation in the prologue.
2007         * explow.c (get_dynamic_stack_base): New function to return an address
2008         expression for the dynamic stack base.
2009         (get_dynamic_stack_size): New function to do the required dynamic stack
2010         space size calculations.
2011         (allocate_dynamic_stack_space): Use new functions.
2012         (align_dynamic_address): Move some code from
2013         allocate_dynamic_stack_space to new function.
2014         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
2016 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2018         * config/s390/s390.c (s390_encode_section_info): Always set
2019         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
2020         found.
2022 2016-07-18  Richard Biener  <rguenther@suse.de>
2024         PR tree-optimization/71893
2025         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
2026         for sizetype cast added by array_ref_element_size.
2027         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2029 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
2031         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
2032         register parameters.  Remove code to initialize argument pointer
2033         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
2034         using a pc-relative branch.  Cleanup conditional code.
2035         * config/pa/pa.md (call_mcount): New expander.
2036         (call_mcount_nonpic): New insn.
2037         (call_mcount_pic): New insn and split.
2038         (call_mcount_pic_post_reload): New insn.
2039         (call_mcount_64bit): New insn and split.
2040         (call_mcount_64bit_post_reload): New insn.
2042 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
2044         * config/avr/predicates.md (const_m255_to_m1_operand): New.
2045         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
2046         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
2047         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
2048         (*usum_widenqihi3, *udiff_widenqihi3)
2049         (*addhi3_zero_extend.const): New combiner insns.
2050         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
2051         just 1 bit is affected.
2052         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
2053         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
2055 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
2057         * omp-low.c (lower_omp_target): Mark data clauses with
2058         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
2059         zero-length subarrays.
2061 2016-07-15  Richard Biener  <rguenther@suse.de>
2063         PR tree-optimization/71881
2064         * tree-loop-distribution.c (destroy_loop): Remove blocks in
2065         reverse DOM order to make debug temp generation happy.
2067 2016-07-15  Richard Biener  <rguenther@suse.de>
2069         PR tree-optimization/71887
2070         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
2071         verify it is not zero for division / modulo handling.
2072         (value_replacement): Adjust.
2074 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
2075             Julian Brown  <julian@codesourcery.com>
2077         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
2078         * config/aarch64/aarch64-cost-tables.h
2079         (vulcan_extra_costs): New variable.
2080         * config/aarch64/aarch64.c
2081         (vulcan_addrcost_table): Likewise.
2082         (vulcan_regmove_cost): Likewise.
2083         (vulcan_vector_cost): Likewise.
2084         (vulcan_branch_cost): Likewise.
2085         (vulcan_tunings): Likewise.
2087 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
2089         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
2090         (output_in_order): Loop over undefined variables too.  Output them
2091         via assemble_undefined_decl.  Skip variables that correspond to hard
2092         registers or have value-exprs.
2093         * varpool.c (symbol_table::output_variables): Handle undefined
2094         variables together with defined ones.
2096 2016-07-15  Richard Biener  <rguenther@suse.de>
2098         * tree-ssa-pre.c (get_representative_for): Make sure to return
2099         the value number of SSA names.
2100         (phi_translate_1): get_representative_for cannot return NULL.
2101         (do_pre_regular_insertion): Remove redundant call to
2102         fully_constant_expression.
2103         (do_pre_partial_partial_insertion): Likewise.
2105 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
2107         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
2108         (derive_simple_iv_with_niters): New function.
2109         (simple_iv): Rewrite using simple_iv_with_niters.
2110         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
2111         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
2112         function.
2113         (number_of_iterations_exit): Rewrite using above function.
2114         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
2115         Decl.
2117 2016-07-15  Richard Biener  <rguenther@suse.de>
2119         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
2120         vec_construct cost.
2122 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
2124         PR tree-optimization/71872
2125         * tree-data-ref.c (get_references_in_stmt): Ignore references
2126         with is_gimple_constant get_base_address.
2128 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2130         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
2131         (TARGET_HAVE_LDACQD): New macro.
2132         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
2133         than TARGET_HAVE_LDACQ.
2134         (arm_load_acquire_exclusivedi): Likewise.
2135         (arm_store_release_exclusivedi): Likewise.
2137 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2139         PR rtl-optimization/71878
2140         * lra-constraints.c (match_reload): Pass information about other
2141         output operands.  Create new unique register value if matching input
2142         operand shares same register value as output operand being considered.
2143         (curr_insn_transform): Record output operands already processed.
2145 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2147         PR target/65951
2148         PR tree-optimization/70923
2149         * tree-vect-patterns.c: Include mult-synthesis.h.
2150         (target_supports_mult_synth_alg): New function.
2151         (synth_lshift_by_additions): Likewise.
2152         (apply_binop_and_append_stmt): Likewise.
2153         (vect_synth_mult_by_constant): Likewise.
2154         (target_has_vecop_for_code): Likewise.
2155         (vect_recog_mult_pattern): Use above functions to synthesize vector
2156         multiplication by integer constants.
2158 2016-07-14  Alan Modra  <amodra@gmail.com>
2160         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
2161         gpr alternatives.  Correct '*' placement on Y,r alternative.
2162         Add '*' on operand 1 of r,r alternative.
2164 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2166         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
2167         * expmed.h: ... Here.
2169 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
2171         * gimple.h (stmt_can_terminate_bb_p): New function.
2172         * tree-cfg.c (need_fake_edge_p): Rename to ...
2173         (stmt_can_terminate_bb_p): ... this; return true if stmt can
2174         throw external; handle const and pure calls.
2175         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
2177 2016-07-14  Richard Biener  <rguenther@suse.de>
2179         PR tree-optimization/71866
2180         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
2181         (do_hoist_insertion): Avoid endless recursion when we
2182         didn't insert anything because we managed to simplify
2183         things down to a constant or SSA name.
2184         (fully_constant_expression): Re-write in terms of ...
2185         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
2186         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
2187         vn_nary_build_or_lookup_1.
2188         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
2189         (vn_nary_build_or_lookup): ... this which now wraps it.
2191 2016-07-14  Alan Modra  <amodra@gmail.com>
2193         PR target/71733
2194         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
2195         with p9_vector override before power9-dform override.
2197 2016-07-13  Andi Kleen  <ak@linux.intel.com>
2199         * value-prof.c (gimple_value_profile_transformations): Don't run
2200         when auto_profile is on.
2202 2016-07-13  Andi Kleen  <ak@linux.intel.com>
2204         * auto-profile.c (update_inlined_ind_target,
2205         afdo_indirect_call): Print information to dump file.
2207 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
2209         * genrecog.c (special_predicate_operand_p): New function.
2210         (predicate_name): Move function.
2211         (validate_pattern): Don't warn about missing mode for all
2212         define_special_predicate predicates.
2214 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
2216         * tree-vect-data-refs.c (vect_no_alias_p): New function.
2217         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
2218         resolve alias checks which are known at compilation time.
2219         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
2220         alias checks are resolved.  Move dump info for too many runtime
2221         alias checks to here...
2222         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
2224 2016-07-13  Richard Biener  <rguenther@suse.de>
2226         PR tree-optimization/24574
2227         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
2228         position and add shift, rotate, divison and modulo support
2229         for left zero.
2230         (value_replacement): Pass in argument position to absorbing_element_p.
2232 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2234         PR ipa/71633
2235         * ipa-inline-transform.c (inline_call): Support
2236         instrumented thunks.
2238 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2240         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
2241         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
2242         divide feature.
2243         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
2244         Baseline.  Make initial alternative TARGET_32BIT only.
2245         (udivsi3): Likewise.
2246         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
2247         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
2248         target.
2250 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2252         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
2253         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
2254         availability with TARGET_HAVE_MOVT.
2255         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
2256         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
2257         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
2258         UINTVAL.
2259         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
2260         extra instruction if MOVW is available.  Use a cost variable
2261         incremented by COSTS_N_INSNS (1) when the condition match rather than
2262         returning an arithmetic expression based on COSTS_N_INSNS.  Make
2263         constant with bottom half word zero cost 2 instruction if MOVW is
2264         available.
2265         * config/arm/arm.md (define_attr "arch"): Add v8mb.
2266         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
2267         target is ARMv8-M Baseline.
2268         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
2269         (arm_movtas_ze): Likewise.
2270         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
2271         alternative for constants satisfying j constraint.
2272         (thumb1_movsi_insn): Likewise.
2273         (movsi splitter for K alternative): Tighten condition to not trigger
2274         if movt is available and j constraint is satisfied.
2275         (Pe immediate splitter): Likewise.
2276         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
2277         constant fitting in an halfword to use MOVW.
2278         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
2279         effective target.
2281 2016-07-13  Richard Biener  <rguenther@suse.de>
2283         PR middle-end/71104
2284         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
2285         gimplifying the LHS.  Make sure to gimplify a returning twice
2286         call LHS without using SSA names.
2288 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2290         * tree-data-ref.c (find_data_references_in_stmt): Remove
2291         unnecessary call to vec::release.
2292         (graphite_find_data_references_in_stmt): Likewise.
2293         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
2294         * tree-vect-stmts.c (vectorizable_condition): Likewise.
2296 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2298         * cfgexpand.c (expand_used_vars): Make the type of a local
2299         variable auto_vec.
2300         * genmatch.c (lower_for): Likewise.
2301         * haifa-sched.c (haifa_sched_init): Likewise.
2302         (add_to_speculative_block): Likewise.
2303         (create_check_block_twin): Likewise.
2304         * predict.c (handle_missing_profiles): Likewise.
2305         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
2306         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
2307         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
2308         Likewise.
2309         (maybe_lower_iteration_bound): Likewise.
2310         * tree-ssa-sccvn.c (DFS): Likewise.
2311         * tree-stdarg.c (reachable_at_most_once): Likewise.
2312         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
2313         (vectorizable_store): Likewise.
2315 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2317         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
2318         (sccvn_dom_walker): make cond_stack an auto_vec.
2320 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2322         * ree.c (struct ext_state): Make type of members auto_vec.
2323         (find_and_remove_re): Adjust.
2325 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2327         * cfgexpand.c (struct stack_vars_data): Make type of fields
2328         auto_vec.
2329         (expand_used_vars): Adjust.
2331 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2333         * ipa.c (record_cdtor_fn): Adjust.
2334         (build_cdtor_fns): Likewise.
2335         (ipa_cdtor_merge): Make static_ctors and static_dtors local
2336         variables.
2338 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2340         * genextract.c (struct accum_extract): Add constructor and make
2341         members auto_vec.
2342         (gen_insn): Adjust.
2344 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2346         * tree.c (struct free_lang_data_d): Add constructor and change
2347         types of members to ones that automatically manage resources.
2348         (fld_worklist_push): Adjust.
2349         (find_decls_types): Likewise.
2350         (find_decls_types_in_eh_region): Likewise.
2351         (free_lang_data_in_cgraph): Stop manually creating and
2352         destroying members of free_lang_data_d.
2354 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
2356         PR rtl-optimization/68961
2357         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
2358         peephole variant.  Use sse_reg_operand predicates.
2360 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
2362         * config/i386/predicates.md (x86_64_immediate_operand)
2363         <case CONST_INT>: Remove unneeded truncation to DImode.
2364         <case CONST>: Ditto.
2365         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
2367 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2369         PR target/71805
2370         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
2371         The xxperm and xxpermr instructions require that the 2nd input
2372         operand overlap with the output operand, and not the 1st.
2373         (altivec_vperm_v8hiv16qi): Likewise.
2374         (altivec_vperm_<mode>_uns_internal): Likewise.
2375         (altivec_vpermr_<mode>_internal): Likewise.
2376         (vperm_v8hiv4si): Likewise.
2377         (vperm_v16qiv8hi): Likewise.
2379 2016-07-12  Nathan Sidwell  <nathan@acm.org>
2381         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
2382         when -mno-pic-data-is-text-relative is in effect, by default.
2383         * doc/invoke.texi (mpic-data-is-text-relative): Document new
2384         behavior and clarify.
2386 2016-07-12  Martin Liska  <mliska@suse.cz>
2388         * params.def: Add avg-loop niter.
2389         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
2390         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2391         * doc/invoke.texi: Document the new parameter.
2393 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2395         PR middle-end/71700
2396         * expr.c (store_constructor): Mask sign-extended bits when widening
2397         sub-word constructor element at the start of a word.
2399 2016-07-12  Martin Liska  <mliska@suse.cz>
2401         * Makefile.in: Append rule for params-options.h.
2402         * params-options.h: New file.
2404 2016-07-12  Martin Liska  <mliska@suse.cz>
2406         * ira-build.c (mark_loops_for_removal): Properly iterate
2407         loops.
2409 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
2410             Richard Biener  <rguenther@suse.de>
2412         PR tree-optimization/23286
2413         PR tree-optimization/70159
2414         * doc/invoke.texi: Document -fcode-hoisting.
2415         * common.opt (fcode-hoisting): New flag.
2416         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
2417         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
2418         (do_regular_insertion): Rename to ...
2419         (do_pre_regular_insertion): ... this and amend general comments
2420         on insertion strathegy.
2421         (do_partial_partial_insertion): Rename to ...
2422         (do_pre_partial_partial_insertion): ... this.
2423         (do_hoist_insertion): New function.
2424         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
2425         and call do_hoist_insertion properly.
2426         (insert): Adjust.
2427         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
2428         (pass_pre::execute): Register hoist_insert stats.
2430 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
2432         PR middle-end/71716
2433         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
2434         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
2435         is different from mode's bitsize.  Small cleanup.
2437 2016-07-12  Richard Biener  <rguenther@suse.de>
2439         PR rtl-optimization/68961
2440         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
2441         to simplify to a non-constant.
2443 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
2445         PR middle-end/71758
2446         * omp-low.c (expand_omp_target): Gimplify device.
2448         PR tree-optimization/71823
2449         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
2450         to get vec_oprnds2 from op2.
2452 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
2454         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
2455         Hoist common subexpressions.
2456         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
2458 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
2460         PR target/71800
2461         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
2462         prevent generation of 'stxsiwx' on pre Power8 hardware.
2464 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
2466         * input.c: Include cpplib.h.
2467         (selftest::temp_source_file): New class.
2468         (selftest::temp_source_file::temp_source_file): New ctor.
2469         (selftest::temp_source_file::~temp_source_file): New dtor.
2470         (selftest::should_have_column_data_p): New function.
2471         (selftest::test_should_have_column_data_p): New function.
2472         (selftest::temp_line_table): New class.
2473         (selftest::temp_line_table::temp_line_table): New ctor.
2474         (selftest::temp_line_table::~temp_line_table): New dtor.
2475         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
2476         it to create a temp_line_table.
2477         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
2478         locations that are known to have column data.
2479         (selftest::line_table_case): New struct.
2480         (selftest::test_reading_source_line): Move tempfile handling
2481         to class temp_source_file.
2482         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
2483         (selftest::assert_token_loc_eq): New function.
2484         (ASSERT_TOKEN_LOC_EQ): New macro.
2485         (selftest::test_lexer): New function.
2486         (selftest::boundary_locations): New array.
2487         (selftest::input_c_tests): Call test_should_have_column_data_p.
2488         Loop over a test matrix of interesting values of location and
2489         default_range_bits, calling test_lexer on each case in the matrix.
2490         Move call to test_accessing_ordinary_linemaps into the matrix.
2491         * selftest.h (ASSERT_EQ): Reimplement in terms of...
2492         (ASSERT_EQ_AT): New macro.
2494 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
2496         PR target/71801
2497         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2498         Don't convert TImode in debug insn.
2500 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2502         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
2503         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
2504         (tree_type_common::lang_flag_7): New.
2505         (tree_type_common::spare): Reduce size.
2506         * tree.h (TYPE_ALIGN_OK): Remove.
2507         (TYPE_LANG_FLAG_7): New.
2508         (get_inner_reference): Adjust header.
2509         * print-tree.c (print_node): Adjust.
2510         * expr.c (get_inner_reference): Remove parameter keep_aligning.
2511         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
2512         calls to get_inner_reference.
2513         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
2514         handling of TYPE_ALIGN_OK.
2515         * builtins.c (get_object_alignment_2): Adjust call to
2516         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
2517         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
2518         TYPE_ALIGN_OK.
2519         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
2520         * cfgexpand.c (expand_debug_expr): Likewise.
2521         * dbxout.c (dbxout_expand_expr): Likewise.
2522         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
2523         loc_list_from_tree, fortran_common): Likewise.
2524         * fold-const.c (optimize_bit_field_compare,
2525         decode_field_reference, fold_unary_loc, fold_comparison,
2526         split_address_to_core_and_offset): Likewise.
2527         * gimple-laddress.c (execute): Likewise.
2528         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
2529         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
2530         * hsa-gen.c (gen_hsa_addr): Likewise.
2531         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
2532         * tsan.c (instrument_expr): Likewise.
2533         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
2534         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
2535         * tree-affine.c (tree_to_aff_combination,
2536         get_inner_reference_aff): Adjust calls to get_inner_reference.
2537         * tree-data-ref.c (split_constant_offset_1,
2538         dr_analyze_innermost): Likewise.
2539         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
2540         * tree-sra.c (ipa_sra_check_caller): Likewise.
2541         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
2542         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
2543         bswap_replace): Likewise.
2544         * tree-vect-data-refs.c (vect_check_gather,
2545         vect_analyze_data_refs): Likewise.
2546         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
2547         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
2548         TYPE_ALIGN_OK.
2550 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
2552         * Makefile.in (selftest-valgrind): New phony target.
2553         * function-tests.c (selftest::build_cfg): Delete pass instances
2554         created by the test.
2555         (selftest::convert_to_ssa): Likewise.
2556         (selftest::test_expansion_to_rtl): Likewise.
2557         * tree-cfg.c (selftest::test_linear_chain): Release dominator
2558         vectors.
2559         (selftest::test_diamond): Likewise.
2561 2016-07-11  Richard Biener  <rguenther@suse.de>
2563         PR tree-optimization/71816
2564         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
2565         than replacing all of its operands.
2567 2016-07-11  Alan Modra  <amodra@gmail.com>
2569         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2570         (ctr<mode>): Add unspec.
2571         (ctr<mode>_internal*): Likewise.
2573 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
2575         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
2576         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
2578 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
2580         PR rtl-optimization/71621
2581         * lra-constraints.c (process_alt_operands): Check combination of
2582         reg class and mode.
2584 2016-07-08  Jason Merrill  <jason@redhat.com>
2585             Richard Biener  <rguenther@suse.de>
2587         P0145: Refining Expression Order for C++.
2588         * gimplify.c (initial_rhs_predicate_for): New.
2589         (gimplfy_modify_expr): Gimplify RHS before LHS.
2591 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2593         PR target/71297
2594         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2595         Allow standard error handling to take over when a wrong number
2596         of arguments is presented to __builtin_vec_ld () or
2597         __builtin_vec_st ().
2599 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2601         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2602         variants.
2603         (smin): Likewise.
2604         (fmax): New entry.
2605         (fmin): Likewise.
2606         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2607         __builtin_aarch64_fmaxv2sf.
2608         (vmaxnmq_f32): Likewise.
2609         (vmaxnmq_f64): Likewise.
2610         (vminnm_f32): Likewise.
2611         (vminnmq_f32): Likewise.
2612         (vminnmq_f64): Likewise.
2614 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2616         PR target/71806
2617         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2618         enable -mfloat128-hardware by default.
2619         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2620         that IEEE 128-bit hardware support needs.
2621         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2622         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2623         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2624         floating point requires.
2625         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2626         -mfloat128 and -mfloat128-hardware changes.
2628 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
2630         PR tree-optimization/71667
2631         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
2633 2016-07-08  Martin Liska  <mliska@suse.cz>
2635         PR middle-end/71606
2636         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2637         folding produces SAVE_EXPRs, thus return false for the type.
2639 2016-07-07  Martin Liska  <mliska@suse.cz>
2641         * file-find.c (remove_prefix): New function.
2642         * file-find.h (remove_prefix): Declare the function.
2643         * gcc-ar.c (main): Skip a folder of the wrapper if
2644         a wrapped binary would point to the same file.
2646 2016-07-07  Jan Hubicka  <jh@suse.cz>
2648         * tree-scalar-evolution.c (iv_can_overflow_p): export.
2649         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
2650         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
2652 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2654         PR ipa/71624
2655         * ipa-inline-analysis.c (compute_inline_parameters): Set
2656         local.can_change_signature to false for intrumentation
2657         thunk callees.
2659 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2661         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
2662         with TARGET_HAVE_MOVT.
2663         (TARGET_HAVE_MOVT): Define.
2664         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
2665         availability with TARGET_HAVE_MOVT.
2666         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
2667         availability.
2668         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
2669         TARGET_THUMB2.
2670         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
2671         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
2672         * config/arm/constraints.md (define_constraint "j"): Use
2673         TARGET_HAVE_MOVT to check MOVT availability.
2675 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2677         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
2679 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2681         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
2682         (armv8-m.main): Likewise.
2683         (armv8-m.main+dsp): Likewise.
2684         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
2685         (FL_FOR_ARCH8M_MAIN): Likewise.
2686         * config/arm/arm-tables.opt: Regenerate.
2687         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
2688         armv8-m.main+dsp to BE8_LINK_SPEC.
2689         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
2690         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
2691         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
2692         Baseline and Mainline.
2693         (arm_option_override_internal): Also disable arm_restrict_it when
2694         !arm_arch_notm.  Update comment for -munaligned-access to also cover
2695         ARMv8-M Baseline.
2696         (arm_file_start): Increase buffer size for printing architecture name.
2697         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
2698         and armv8-m.main+dsp.
2699         (mno-unaligned-access): Clarify that this is disabled by default for
2700         ARMv8-M Baseline architectures as well.
2702 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2704         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
2705         decide whether to prevent some libgcc routines being included for some
2706         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
2707         link between this condition and the one in
2708         libgcc/config/arm/lib1func.S.
2710 2016-07-07  Richard Biener  <rguenther@suse.de>
2712         * tree-ssa-pre.c: Include alias.h.
2713         (compute_avail): If we have multiple VN_REFERENCEs with the
2714         same hashtable entry adjust that to make it a valid replacement
2715         for all of them with respect to alignment and aliasing
2716         when doing insertion.
2717         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
2718         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
2720 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
2722         PR target/70098
2723         PR target/71763
2724         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2725         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2726         constraint.
2728 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2730         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
2731         (adjust_mems): Adjust.
2732         (adjust_insn): Likewise.
2733         (prepare_call_arguments): Likewise.
2735 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2737         * gcse.c (struct ls_expr): Make stores field a vector.
2738         (ldst_entry): Adjust.
2739         (free_ldst_entry): Likewise.
2740         (print_ldst_list): Likewise.
2741         (compute_ld_motion_mems): Likewise.
2742         (update_ld_motion_stores): Likewise.
2744 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2746         * gcse.c (struct ls_expr): Remove loads field.
2747         (ldst_entry): Adjust.
2748         (free_ldst_entry): Likewise.
2749         (print_ldst_list): Likewise.
2750         (compute_ld_motion_mems): Likewise.
2752 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2754         * store-motion.c (struct st_expr): Make antic_stores a vector.
2755         (st_expr_entry): Adjust.
2756         (free_st_expr_entry): Likewise.
2757         (print_store_motion_mems): Likewise.
2758         (find_moveable_store): Likewise.
2759         (compute_store_table): Likewise.
2760         (remove_reachable_equiv_notes): Likewise.
2761         (replace_store_insn): Likewise.
2762         (build_store_vectors): Likewise.
2764 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2766         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
2767         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
2769 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2771         PR tree-optimization/71518
2772         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2773         misalign also for outer loops with negative step.
2775 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
2777         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
2778         (cortex_a53_shift): Add mov_shift.
2779         (cortex_a53_shift_reg): Add new reservation for register shifts.
2780         (cortex_a53_alu): Remove bfm.
2781         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
2782         (cortex_a53_alu_extr): Add new reservation for EXTR.
2783         (bypasses): Improve bypass modelling.
2785 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2787         PR target/50739
2788         * config/avr/avr.c (avr_asm_select_section): Strip off
2789         SECTION_DECLARED from flags when calling get_section.
2791 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2793         * tree-vectorizer.h (vect_memory_access_type): Add
2794         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
2795         * tree-vect-stmts.c (compare_step_with_zero): New function.
2796         (perm_mask_for_reverse): Move further up file.
2797         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
2798         step is negative.
2799         (get_negative_load_store_type): New function.
2800         (get_load_store_type): Call it.  Add an ncopies argument.
2801         (vectorizable_mask_load_store): Update call accordingly and
2802         remove tests for negative steps.
2803         (vectorizable_store, vectorizable_load): Likewise.  Handle new
2804         memory_access_types.
2806 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2808         * tree-vectorizer.h (vect_memory_access_type): New enum.
2809         (_stmt_vec_info): Add a memory_access_type field.
2810         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
2811         (vect_model_store_cost): Take an access type instead of a boolean.
2812         (vect_model_load_cost): Likewise.
2813         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
2814         vect_model_store_cost and vect_model_load_cost.
2815         * tree-vect-stmts.c (vec_load_store_type): New enum.
2816         (vect_model_store_cost): Take an access type instead of a
2817         store_lanes_p boolean.  Simplify tests.
2818         (vect_model_load_cost): Likewise, but for load_lanes_p.
2819         (get_group_load_store_type, get_load_store_type): New functions.
2820         (vectorizable_store): Use get_load_store_type.  Record the access
2821         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
2822         (vectorizable_load): Likewise.
2823         (vectorizable_mask_load_store): Likewise.  Replace is_store
2824         variable with vls_type.
2826 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2828         * tree-vectorizer.h (vect_grouped_load_supported): Add a
2829         single_element_p parameter.
2830         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2831         Check the PR65518 case here rather than in vectorizable_load.
2832         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
2833         * tree-vect-stmts.c (vectorizable_load): Likewise.
2835 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2837         * tree-vectorizer.h (gather_scatter_info): New structure.
2838         (vect_check_gather_scatter): Return a bool rather than a decl.
2839         Replace return-by-pointer arguments with a single
2840         gather_scatter_info *.
2841         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2842         (vect_analyze_data_refs): Update call accordingly.
2843         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2844         (vectorizable_mask_load_store): Likewise.  Also record the
2845         offset dt and vectype in the gather_scatter_info.
2846         (vectorizable_store): Likewise.
2847         (vectorizable_load): Likewise.
2849 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2851         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2852         strided groups, use the cost of N scalar accesses instead
2853         of ncopies vector accesses.
2854         (vect_model_load_cost): Likewise.
2856 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2858         * tree-vect-stmts.c (vect_cost_group_size): Delete.
2859         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
2860         variable to indicate when once-per-group costs are being used.
2861         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
2863 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2865         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2866         peeling-for-gaps condition.
2868 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2870         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2871         element to register if it doesn't match general_operand.
2873 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2874             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2876         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2877         prototype.
2878         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2879         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2880         (SIGNBIT): New mode iterator.
2881         (Fsignbit): New mode attribute.
2882         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2883         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2884         when direct moves are available.
2885         (signbit<mode>2_dm): New define_insn_and_split).
2886         (signbit<mode>2_dm2): New define_insn.
2888 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2890         PR rtl-optimization/71594
2891         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2892         into subregs of appropriate mode before trying to emit a conditional
2893         move.
2895 2016-07-05  Jan Hubicka  <jh@suse.cz>
2897         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2898         (simple_iv): Use it.
2900 2016-07-05  Jan Hubicka  <jh@suse.cz>
2902         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2904 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
2906         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2907         "offmemok".
2909 2016-07-05  Jan Hubicka  <jh@suse.cz>
2911         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2912         IV can overflow.
2914 2016-07-05  Richard Biener  <rguenther@suse.de>
2916         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2917         Handle empty else block.
2918         (is_feasible_trace): Likewise.
2919         (split_paths): Likewise.
2921 2016-07-05  Richard Biener  <rguenther@suse.de>
2923         * tree-loop-distribution.c (distribute_loop): Fix issue with
2924         the cost model loop.
2926 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
2928         * config/arm/neon-testgen.ml: Delete.
2929         * config/arm/neon.ml: Delete.
2931 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2933         PR c++/71739
2934         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2935         directly using TREE_PURPOSE.
2937 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
2939         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2940         * config/aarch64/aarch64_neon.h: Likewise.
2941         * config/aarch64/arm_neon.h: Likewise.
2942         * config/aarch64/atomics.md: Likewise.
2943         * config/aarch64/aarch64-simd-builtins.def: Likewise.
2944         * doc/invoke.texi: Likewise.
2946 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2948         * config/s390/s390.md: Add "z13" cpu_facility.
2949         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2950         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2951         condition" type instructions.
2953 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2954             Jeff Law  <law@redhat.com>
2956         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2957         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2959 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
2961         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2962         permutation for TARGET_AVX512F.
2963         (ix86_expand_vec_one_operand_perm_avx512): New function.
2964         (expand_vec_perm_1): Invoke introduced function.
2965         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2966         it may be not valid after vectorization.
2968 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2970         PR target/63874
2971         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2972         typo in comment.  Only force to memory if it is a weak
2973         external reference.
2975 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
2976             Jiong Wang  <jiong.wang@arm.com>
2978         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2979         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2980         (AARCH64_FL_F16): New.
2981         (AARCH64_FL_FOR_ARCH8_2): New.
2982         (AARCH64_ISA_8_2): New.
2983         (AARCH64_ISA_F16): New.
2984         (TARGET_FP_F16INST): New.
2985         (TARGET_SIMD_F16INST): New.
2986         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2987         ("fp"): Disabling "fp" also disables "fp16".
2988         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2989         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2990         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2991         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2993 2016-07-04  Jan Beulich  <jbeulich@suse.com>
2995         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2997 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2999         PR target/71720
3000         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
3001         the insns, use an insn form that does not adjust the offset on
3002         little endian systems.
3004 2016-07-01  Jan Beulich  <jbeulich@suse.com>
3006         * varasm.c (get_variable_section): Validate initializer in
3007         named .bss-like sections.
3009 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3011         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
3012         Exchange the order of the second and third operands in the vpermr
3013         instruction tmeplate.
3015 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3017         PR target/71698
3018         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
3019         Disallow TDmode values.
3021 2016-07-01  Alan Modra  <amodra@gmail.com>
3023         PR rtl-optimization/71709
3024         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
3025         being set, not referenced.
3027 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
3029         PR tree-optimization/70729
3030         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
3031         of loop since it can be not valid after transformation.
3033 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3035         * config/arm/arm.c (thumb_reload_in_hi): Delete.
3036         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
3038 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3040         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
3041         for NULL decl.
3043 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
3045         PR target/71677
3046         * config/rs6000/constraints.md (wY constraint): New constraint to
3047         match the requirements for the LXSD and STXSD instructions.
3048         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
3049         predicate to match the requirements for the LXSD and STXSD
3050         instructions.
3051         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
3052         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
3053         to make sure that the bottom 2 bits of offset are 0, the address
3054         form is offsettable, and no updating is done in the address mode.
3055         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
3056         (movdi_internal32): Likewise
3057         (movdi_internal64): Likewise.
3059 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
3061         PR tree-optimization/71707
3062         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
3063         strinfo even for ADDR_EXPR ptr.
3065 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3067         * config/rs6000/altivec.md (darn_32): Change the condition to
3068         TARGET_P9_MISC instead of TARGET_MODULO.
3069         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
3070         condition expression.
3071         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
3072         condition expression.
3073         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
3074         (DFP_TEST): New code iterator.
3075         (dfptstsfi_<code>_mode>): New define_expand.
3076         (*dfp_sgnfcnc_<mode>): New define_insn.
3077         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
3078         definition next to BU_P9_MISC_1 definition and change the MASK
3079         value to RS6000_BTM_P9_MISC.
3080         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
3081         (BU_P9_64BIT_MISC_0): Likewise.
3082         (BU_P9_DFP_MISC_0): New macro definition.
3083         (BU_P9_DFP_MISC_1): New macro definition.
3084         (BU_P9_DFP_MISC_2): New macro definition.
3085         (BU_P9_DFP_OVERLOAD_1): New macro definition.
3086         (BU_P9_DFP_OVERLOAD_2): New macro definition.
3087         (BU_P9_DFP_OVERLOAD_3): New macro definition.
3088         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
3089         (TSTSFI_LT_TD): Likewise.
3090         (TSTSFI_EQ_DD): Likewise.
3091         (TSTSFI_EQ_TD): Likewise.
3092         (TSTSFI_GT_DD): Likewise.
3093         (TSTSFI_GT_TD): Likewise.
3094         (TSTSFI_OV_DD): Likewise.
3095         (TSTSFI_OV_TD): Likewise.
3096         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
3097         (TSTSFI_LT_DD): Likewise.
3098         (TSTSFI_LT_TD): Likewise.
3099         (TSTSFI_EQ): Likewise.
3100         (TSTSFI_EQ_DD): Likewise.
3101         (TSTSFI_EQ_TD): Likewise.
3102         (TSTSFI_GT): Likewise.
3103         (TSTSFI_GT_DD): Likewise.
3104         (TSTSFI_GT_TD): Likewise.
3105         (TSTSFI_OV): Likewise.
3106         (TSTSFI_OV_DD): Likewise.
3107         (TSTSFI_OV_TD): Likewise.
3108         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3109         overloaded test significance functions.
3110         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3111         OPTION_MASK_P9_MISC into the representation of this mask.
3112         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
3113         of this mask.
3114         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
3115         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
3116         non-zero.
3117         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
3118         argument is a 6-bit unsigned literal value if the icode argument
3119         represents a DFP test significance built-in call.
3120         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
3121         flag used independently and in combination with the
3122         RS6000_BTM_64BIT flag.
3123         (rs6000_opt_masks): Add entry for power9-misc command-line option.
3124         (rs6000_builtin_mask_names): Add entry for power9-misc
3125         command-line option.
3126         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
3127         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
3128         RS6000_BTM_P9_MISC macros.
3129         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
3130         option and change the description of the -mpower9-vector option to
3131         enable only vector instructions, removing its erroneously claimed
3132         support for scalar instructions.
3133         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3134         the ISA 3.0 digital floating point test significance built-in
3135         functions.
3137 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
3139         * config/aarch64/aarch64.c (cortexa35_tunings):
3140         Enable AES fusion.  Use cortexa57_branch_cost.
3141         (cortexa53_tunings): Use cortexa57_branch_cost.
3142         (cortexa72_tunings): Use cortexa57_branch_cost.
3143         Use AUTOPREFETCHER_WEAK.
3144         (cortexa73_tunings): Use cortexa57_branch_cost.
3146 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3147             James Greenhalgh  <james.greenhalgh@arm.com>
3149         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
3150         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
3151         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
3152         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
3153         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
3154         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
3155         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
3156         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
3157         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
3158         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
3159         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
3160         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
3161         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
3162         New intrinsics.
3164 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
3165             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3167         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
3168         New define_insn.
3169         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
3171 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3173         PR driver/71651
3174         * gcc.c (driver::build_option_suggestions): Pass "option" to
3175         add_misspelling_candidates.
3176         * opts-common.c (add_misspelling_candidates): Add "option" param;
3177         use it to avoid adding negated forms for options marked with
3178         RejectNegative.
3179         * opts.h (add_misspelling_candidates): Add "option" param.
3181 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
3183         PR middle-end/71693
3184         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
3185         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
3186         first when permuting bitwise operation with rotate.  Cast
3187         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
3189 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
3191         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
3192         for misspelled param names.
3193         * params.c: Include spellcheck.h.
3194         (find_param_fuzzy): New function.
3195         * params.h (find_param_fuzzy): New prototype.
3196         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
3197         * spellcheck.h (struct edit_distance_traits<const char *>):
3198         ...here.
3200 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3202         * config/rs6000/predicates.md (const_0_to_7_operand): New
3203         predicate, recognize 0..7.
3204         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3205         support for doing extracts from V16QImode, V8HImode, V4SImode
3206         under ISA 3.0.
3207         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
3208         vector extract support.
3209         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
3210         for ISA 3.0 vector extract.
3211         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
3212         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
3213         extracts of a constant element number from small integer vectors
3214         on 64-bit ISA 3.0 systems.
3215         (vsx_extract_<mode>_di): Likewise.
3216         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
3217         say when we can do ISA 3.0 vector extracts.
3218         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
3219         registers, using the stxsiwx instruction.
3221 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
3223         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
3224         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
3225         qdf24xx_regmove_cost, qdf24xx_tunings): New.
3226         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
3227         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
3228         * config/arm/arm.c (arm_qdf24xx_tune): New.
3230 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
3232         * config/aarch64/aarch64.c (cortexa53_tunings):
3233         Increase loop alignment to 8.  Set function alignment to 16.
3234         (cortexa35_tunings): Likewise.
3235         (cortexa57_tunings): Increase loop alignment to 8.
3236         (cortexa72_tunings): Likewise.
3237         (cortexa73_tunings): Likewise.
3239 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
3241         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
3242         for arm_fp16_ok and arm_fp16_hw.
3243         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
3244         arm_fp16_alternative.
3246 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3248         PR tree-optimization/71655
3249         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
3250         types when swapping operands.
3252 2016-06-29  Martin Liska  <mliska@suse.cz>
3254         PR middle-end/71585
3255         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
3256         * ipa-inline-transform.c (inline_call): Remove unnecessary call
3257         of build_optimization_node.
3259 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
3261         PR tree-optimization/70729
3262         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
3263         independent in loops having positive safelen value.
3264         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
3265         it may be not valid after vectorization.
3267 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
3269         PR tree-optimization/71625
3270         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
3271         is sorted by ascending list->offset.  If PTR is non-NULL and there is
3272         previous strinfo, call get_stridx_plus_constant.
3273         (get_stridx): Pass exp as second argument to get_addr_stridx.
3274         (addr_stridxptr): Add missing list = list->next, so that there can be
3275         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
3276         the list is sorted by ascending list->offset.
3277         (get_stridx_plus_constant): Adjust so that it can be also called with
3278         ADDR_EXPR instead of SSA_NAME as PTR.
3279         (handle_char_store): Pass NULL_TREE as second argument to
3280         get_addr_stridx.
3282 2016-06-29  Richard Biener  <rguenther@suse.de>
3284         PR rtl-optimization/68961
3285         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
3287 2016-06-29  Richard Biener  <rguenther@suse.de>
3289         PR middle-end/71002
3290         * alias.c (component_uses_parent_alias_set_from): Handle
3291         type punning through union accesses by using the union alias set.
3292         * gimple.c (gimple_get_alias_set): Remove union type punning case.
3294 2016-07-29  Richard Biener  <rguenther@suse.de>
3296         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
3297         precision not matching mode precision.
3299 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
3301         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
3302         pa_output_arg_descriptor.
3303         (call_val_symref_64bit_post_reload): Likewise.
3304         (call_val_powf_64bit_post_reload): Likewise.
3305         (sibcall_internal_symref_64bit): Likewise.
3306         (sibcall_value_internal_symref_64bit): Likewise.
3308 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
3310         PR middle-end/71626
3311         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
3312         a constant, force its SUBREG_REG into memory or register instead
3313         of whole op1.
3315 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3317         PR target/58655
3318         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
3319         * doc/invoke.texi (AVR Options): Document it.
3321 2016-06-28  Walter Lee  <walt@tilera.com>
3323         * config/tilegx/linux.h: Do not include arch/icache.h
3324         (CLEAR_INSN_CACHE): Provide inlined definition directly.
3325         * config/tilepro/linux.h: Do not include arch/icache.h
3326         (CLEAR_INSN_CACHE): Provide inlined definition directly.
3328 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
3330         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
3331         for big-endian BIT_FIELD_REF.
3333 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
3335         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
3336         ('size' attribute): Add '128'.
3337         Include power9.md.
3338         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
3339         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
3340         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
3341         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
3342         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
3343         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
3344         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
3345         *trunc<mode>df2_odd): Set size attribute to '128'.
3346         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
3347         * config/rs6000/power6.md (power6-fp): Include dfp type.
3348         * config/rs6000/power7.md (power7-fp): Likewise.
3349         * config/rs6000/power8.md (power8-fp): Likewise.
3350         * config/rs6000/power9.md: New file.
3351         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
3352         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
3353         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
3354         htmsimple.
3355         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
3356         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
3357         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
3358         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
3359         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
3360         dfp_dscri_<mode>): Change type attribute to dfp.
3361         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
3362         attribute to vecsimple.
3363         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
3364         and prefetch streams.
3365         (rs6000_option_override_internal): Remove temporary code setting
3366         tuning to power8.  Don't set rs6000_sched_groups for power9.
3367         (last_scheduled_insn): Change to rtx_insn *.
3368         (divide_cnt, vec_load_pendulum): New variables.
3369         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
3370         (rs6000_issue_rate): Set issue rate for Power9.
3371         (is_power9_pairable_vec_type): New.
3372         (power9_sched_reorder2): New.
3373         (rs6000_sched_reorder2): Call new function for Power9 specific
3374         reordering.
3375         (insn_must_be_first_in_group): Remove Power9.
3376         (insn_must_be_last_in_group): Likewise.
3377         (force_new_group): Likewise.
3378         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
3379         Initialize divide_cnt/vec_load_pendulum.
3380         (_rs6000_sched_context, rs6000_init_sched_context,
3381         rs6000_set_sched_context): Handle context save/restore of new
3382         variables.
3384 2016-06-28  Richard Biener  <rguenther@suse.de>
3386         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3387         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
3388         COMPONENT_REF operand.
3389         (nonoverlapping_component_refs_p): Likewise.
3390         * stor-layout.c (start_bitfield_representative): Mark
3391         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
3393 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
3395         * Makefile.in: Don't cat ../stage_current if it does not exist.
3397         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
3398         last argument is a bit-field.
3400         PR rtl-optimization/71673
3401         * internal-fn.c (expand_arith_overflow_result_store): Use
3402         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
3403         expand_simple_binop.
3405         PR middle-end/66867
3406         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
3407         expand_ifn_atomic_compare_exchange): New functions.
3408         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
3409         * tree.h (build_call_expr_internal_loc): Rename to ...
3410         (build_call_expr_internal_loc_array): ... this.  Fix up type of
3411         last argument.
3412         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
3413         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
3414         ATOMIC_COMPARE_EXCHANGE result.
3415         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
3416         * gimple-fold.h (optimize_atomic_compare_exchange_p,
3417         fold_builtin_atomic_compare_exchange): New prototypes.
3418         * gimple-fold.c (optimize_atomic_compare_exchange_p,
3419         fold_builtin_atomic_compare_exchange): New functions..
3420         * tree-ssa.c (execute_update_addresses_taken): If
3421         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
3422         of call when finding addressable vars, and if such var becomes
3423         non-addressable, call fold_builtin_atomic_compare_exchange.
3425 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
3427         PR target/71670
3428         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
3429         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
3431 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
3433         * config/rs6000/rs6000.md ('type' attribute): Add
3434         veclogical,veccmpfx,vecexts,vecmove insn types.
3435         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
3436         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
3437         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
3438         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
3439         *nabs<mode>2_hw): Change type to vecmove.
3440         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
3441         *boolcc<mode>3_internal, *eqv<mode>3_internal,
3442         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
3443         *ieee_128bit_vsx_abs<mode>2_internal,
3444         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
3445         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
3446         *ieee128_mtvsrd_32bit): Change type to veclogical.
3447         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
3448         *movdi_internal32, *movdi_internal64): Update insn types.
3449         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
3450         vsx_extract_<mode>): Change type to veclogical.
3451         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
3452         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
3453         *vsx_sign_extend_si_v2di): Change type to vecexts.
3454         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
3455         type to veclogical.
3456         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
3457         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
3458         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
3459         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
3460         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
3461         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
3462         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
3463         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
3464         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
3465         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
3466         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
3467         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
3468         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
3469         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
3470         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
3471         (ppc7450-vecsimple): Add veclogical, vecmove.
3472         (ppc7450-veccmp): Add veccmpfx.
3473         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
3474         vecmove.
3475         (ppc8540_vector_compare): Add veccmpfx.
3476         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
3477         * config/rs6000/cell.md (cell-fp): Add fpsimple.
3478         (cell-vecsimple): Add veclogical, vecmove.
3479         (cell-veccmp): Add veccmpfx.
3480         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
3481         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
3482         veccmpfx.
3483         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
3484         * config/rs6000/power4.md (power4-fp): Add fpsimple.
3485         (power4-vecsimple): Add veclogical, vecmove.
3486         (power4-veccmp): Add veccmpfx.
3487         * config/rs6000/power5.md (power5-fp): Add fpsimple.
3488         * config/rs6000/power6.md (power6-fp): Add fpsimple.
3489         (power6-vecsimple): Add veclogical, vecmove.
3490         (power6-veccmp): Add veccmpfx.
3491         * config/rs6000/power7.md (power7-fp): Add fpsimple.
3492         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
3493         * config/rs6000/power8.md (power8-fp): Add fpsimple.
3494         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
3495         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
3496         * config/rs6000/titan.md (titan_fp): Add fpsimple.
3497         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
3498         fpsimple.
3499         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
3501 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
3503         PR target/71656
3504         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3505         OPTION_MASK_P9_DFORM_VECTOR.
3506         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
3507         disable -mpower9-dform-vector when using reload.
3508         (quad_address_p): Remove 'gpr_p' argument and all associated code.
3509         New 'strict' argument.  Update all callers.  Add strict addressing
3510         support.
3511         (rs6000_legitimate_offset_address_p): Remove call to
3512         virtual_stack_registers_memory_p.
3513         (rs6000_legitimize_reload_address): Add quad address support.
3514         (rs6000_legitimate_address_p): Move call to quad_address_p above
3515         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
3516         to account for new strict usage.
3517         (rs6000_output_move_128bit): Adjust quad_address_p args to account
3518         for new strict usage.
3519         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
3521 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
3523         PR target/70902
3524         PR target/71453
3525         PR target/71555
3526         PR target/71596
3527         PR target/71657
3528         * config/i386/i386.c (ix86_spill_class): Disable condition to
3529         always return NO_REGS.
3531 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
3533         * predict.c: Include gimple-pretty-print.h
3534         (predicted_by_loop_heuristics_p): Check also
3535         PRED_LOOP_EXIT_WITH_RECURSION
3536         (predict_loops): Find self recursive calls and use special purpose
3537         predictors for them; dump log about decisions.
3538         (pass_profile::execute): Dump info about #of iterations.
3539         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
3540         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
3542 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
3544         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
3545         output_asm_insn calls and shorten long lines.  Output .CALL
3546         argument descriptor using pa_output_arg_descriptor.  Add various
3547         inline $$dyncall and other optimizations.
3548         (pa_attr_length_indirect_call): Adjust ordering and lengths.
3550 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
3552         PR tree-optimization/71643
3553         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
3554         EH preds.
3556         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
3557         leak a bitmap if dep_bb is NULL.
3559         PR tree-optimization/71631
3560         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
3561         to rewrite_expr_tree even if negate_result, move new_lhs var
3562         declaration and initialization earlier, for powi_result set afterwards
3563         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
3564         if new_lhs != lhs, and don't shadow gsi var.
3566 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
3568         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
3569         Add in_loop parameter.
3570         (predict_loops): Add loop guard heuristics.
3571         * predict.def (PRED_LOOP_GUARD): New heuristics.
3573 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
3575         * predict.c: Include ipa-utils.h
3576         (tree_bb_level_prediction): Predict recursive calls.
3577         (tree_estimate_probability_bb): Skip inexpensive calls for call
3578         predictor.
3579         * predict.def (PRED_RECURSIVE_CALL): New.
3581 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3583         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
3584         (BU_FLOAT128_1): Likewise.
3585         (FABSQ): Likewise.
3586         (COPYSIGNQ): Likewise.
3587         (RS6000_BUILTIN_NANQ): Likewise.
3588         (RS6000_BUILTIN_NANSQ): Likewise.
3589         (RS6000_BUILTIN_INFQ): Likewise.
3590         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
3591         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
3592         (TARGET_FOLD_BUILTIN): New #define.
3593         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
3594         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
3595         (rs6000_fold_builtin): New target hook implementation, handling
3596         folding of 128-bit NaNs and infinities.
3597         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
3598         entries are filled in to avoid problems during bootstrap
3599         self-test; define builtins for 128-bit NaNs and infinities.
3600         (rs6000_opt_mask): Add entry for float128.
3601         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
3602         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
3603         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3604         (const_str_type_node): New #define.
3605         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3606         to a define_expand that dispatches to either copysign<mode>3_soft
3607         or copysign<mode>3_hard.
3608         (copysign<mode>3_hard): Rename from copysign<mode>3.
3609         (copysign<mode>3_soft): New define_insn.
3610         * doc/extend.texi: Document new builtins.
3612 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3614         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
3615         PRIu64 instead of lu.
3617 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3619         PR debug/71642
3620         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
3621         copy the type name.
3623 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3625         PR tree-optimization/71647
3626         * omp-low.c (lower_rec_input_clauses): Convert
3627         omp_clause_aligned_alignment (c) to size_type_node for the
3628         last argument of __builtin_assume_aligned.
3630 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3632         * configure.ac (calling ___tls_get_addr via GOT): New
3633         assembler/linker check.
3634         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
3635         assembler and linker supports calling ___tls_get_addr via GOT.
3636         Otherise, defined to 0.
3637         * config.in: Regenerated.
3638         * configure: Likewise.
3639         * config/i386/constraints.md (Yb): New constraint.
3640         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
3641         (REG_CLASS_NAMES): Likewise.
3642         (REG_CLASS_CONTENTS): Likewise.
3643         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
3644         the b constraint with the Yb constraint.  Call ___tls_get_addr
3645         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
3646         is 1.
3647         (*tls_local_dynamic_base_32_gnu): Likewise.
3648         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
3649         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
3650         (*tls_local_dynamic_base_64_<mode>): Likewise.
3652 2016-06-24  Martin Liska  <mliska@suse.cz>
3654         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
3655         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
3656         few functions.
3657         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
3658         argument to true if the expected number of iterations is
3659         loop-based.
3661 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
3663         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
3664         assemble for 32bit target.
3665         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
3666         and $ld_ix86_gld_32_opt to link for 32bit target.
3667         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
3668         * configure: Regenerate.
3670 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3672         * config/arm/arm.c (int_log2): Delete definition and prototype.
3673         (shift_op): Use exact_log2 instead of int_log2.
3674         (vfp3_const_double_for_fract_bits): Likewise.
3676 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3678         * internal-fn.c (expand_arith_set_overflow): New function.
3679         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3680         Use it.
3681         (expand_arith_overflow_result_store): Likewise.  Handle precision
3682         smaller than mode precision.
3683         * tree-vrp.c (extract_range_basic): For imag part, handle
3684         properly signed 1-bit precision result.
3685         * doc/extend.texi (__builtin_add_overflow): Document that last
3686         argument can't be pointer to enumerated or boolean type.
3687         (__builtin_add_overflow_p): Document that last argument can't
3688         have enumerated or boolean type.
3690 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3691             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3693         * config/rs6000/predicates.md (splat_input_operand): Rework.
3694         Don't allow constants, since the insns that use this predicate
3695         don't support constants.  Constants are handled by other insns
3696         that are created via combine.  During and after register
3697         allocation, only allow indexed or indirect addresses, and not
3698         general addresses.  Only allow modes supported by the hardware.
3699         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
3700         comment.  Move check for using VSPLTIS<x> to a common location,
3701         instead of doing it in two different places.
3703 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
3705         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3706         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
3707         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
3708         signature_CENTAUR_ebx.
3710 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3712         PR target/66232
3713         PR target/67400
3714         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
3715         (as_ix86_gas_32_opt): This.
3716         (ld_ix86_tls_ldm_opt): Renamed to ...
3717         (ld_ix86_gld_32_opt): This.
3718         (R_386_TLS_LDM reloc): Updated.
3719         (R_386_GOT32X reloc): New assembler/linker check.
3720         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
3721         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
3722         defined to 0.
3723         * config.in: Regenerated.
3724         * configure: Likewise.
3725         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
3726         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
3727         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
3728         if ix86_force_load_from_GOT_p returns true.
3729         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
3730         ix86_force_load_from_GOT_p returns true.
3731         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
3732         the external function address via the GOT slot.
3733         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
3734         HAVE_AS_IX86_GOT32X before returning false.
3735         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
3736         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
3738 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
3740         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
3742 2016-06-23  Andi Kleen  <ak@linux.intel.com>
3744         * Makefile.in: Regenerate.
3745         * doc/install.texi: Document autoprofiledbootstrap.
3747 2016-06-23  Andi Kleen  <ak@linux.intel.com>
3749         * config/i386/gcc-auto-profile: New file.
3751 2016-06-23  Martin Liska  <mliska@suse.cz>
3753         PR middle-end/71619
3754         * predict.c (predict_loops): Revert the hunk that was removed
3755         in r237103.
3757 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
3759         * config.gcc: Add support for arm*-*-phoenix* targets.
3760         * config/arm/t-phoenix: New.
3761         * config/phoenix.h: New.
3763 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
3764             H.J. Lu  <hongjiu.lu@intel.com>
3766         PR target/67400
3767         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
3768         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
3769         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
3770         ix86_force_load_from_GOT_p returns true.
3771         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
3772         ix86_force_load_from_GOT_p returns true.
3773         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
3774         ix86_force_load_from_GOT_p returns true.
3775         (ix86_expand_move): Load the external function address via the
3776         GOT slot if ix86_force_load_from_GOT_p returns true.
3777         * config/i386/predicates.md (x86_64_immediate_operand): Return
3778         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
3779         (x86_64_zext_immediate_operand): Ditto.
3781 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
3783         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
3785 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3787         PR c/70339
3788         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
3789         * diagnostic.c (pedwarn_at_rich_loc): New function.
3790         * spellcheck.h (best_match::best_match): Add a
3791         "best_distance_so_far" optional parameter.
3792         (best_match::set_best_so_far): New method.
3793         (best_match::get_best_distance): New accessor.
3794         (best_match::get_best_candidate_length): New accessor.
3796 2016-06-22  Nick Clifton  <nickc@redhat.com>
3798         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
3799         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
3800         modes are accepted as well.
3801         (ucompare_loc_descriptor): Likewise.
3802         (minmax_loc_descriptor): Likewise.
3803         (clz_loc_descriptor): Likewise.
3804         (popcount_loc_descriptor): Likewise.
3805         (bswap_loc_descriptor): Likewise.
3806         (rotate_loc_descriptor): Likewise.
3807         (mem_loc_descriptor): Likewise.
3808         (loc_descriptor): Likewise.
3810 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
3812         * common.opt (fdiagnostics-parseable-fixits): New option.
3813         * diagnostic.c: Include "selftest.h".
3814         (print_escaped_string): New function.
3815         (print_parseable_fixits): New function.
3816         (diagnostic_report_diagnostic): Call print_parseable_fixits.
3817         (selftest::assert_print_escaped_string): New function.
3818         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
3819         (selftest::test_print_escaped_string): New function.
3820         (selftest::test_print_parseable_fixits_none): New function.
3821         (selftest::test_print_parseable_fixits_insert): New function.
3822         (selftest::test_print_parseable_fixits_remove): New function.
3823         (selftest::test_print_parseable_fixits_replace): New function.
3824         (selftest::diagnostic_c_tests): New function.
3825         * diagnostic.h (struct diagnostic_context): Add field
3826         "parseable_fixits_p".
3827         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3828         -fdiagnostics-parseable-fixits.
3829         (-fdiagnostics-parseable-fixits): New option.
3830         * opts.c (common_handle_option): Handle
3831         -fdiagnostics-parseable-fixits.
3832         * selftest-run-tests.c (selftest::run_tests): Call
3833         selftest::diagnostic_c_tests.
3834         * selftest.h (selftest::diagnostic_c_tests): New prototype.
3836 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
3838         PR tree-optimization/71488
3839         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3840         comparison of boolean vectors.
3841         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3842         of boolean vectors using bitwise operations.
3844 2016-06-22  Andreas Schwab  <schwab@suse.de>
3846         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3847         Remove declaration.
3849 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3851         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3853 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3855         * config/i386/i386.c (print_reg): Emit an error message on attempt to
3856         print FLAGS_REG.
3858 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3860         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3861         * config/arm/arm-cores.def (cortex-a73): New entry.
3862         (cortex-a73.cortex-a35): Likewise.
3863         (cortex-a73.cortex-a53): Likewise.
3864         * config/arm/arm-tables.opt: Regenerate.
3865         * config/arm/arm-tune.md: Likewise.
3866         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3867         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3868         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3869         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3870         * doc/invoke.texi (ARM Options): Document cortex-a73,
3871         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3873 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3875         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3876         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3877         (cortex-a73.cortex-a35): Likewise.
3878         (cortex-a73.cortex-a53): Likewise.
3879         * config/aarch64/aarch64-tune.md: Regenerate.
3880         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3881         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3882         -mcpu and -mtune.
3884 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3886         * configure.ac (gcc_cv_as_compress_debug): Remove
3887         --compress-debug-sections as extra as switch.
3888         Handle gas --compress-debug-sections=type.
3889         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3890         Handle gld --compress-debug-sections=type.
3891         * configure: Regenerate.
3893 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3895         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3897 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
3899         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3900         (do_rewrite): likewise.
3902 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3904         * common/config/mep/mep-common.c: Remove.
3905         * config.gcc: Remove mep-* support.
3906         * config/mep/constraints.md: Remove.
3907         * config/mep/default.h: Remove.
3908         * config/mep/intrinsics.h: Remove.
3909         * config/mep/intrinsics.md: Remove.
3910         * config/mep/ivc2-template.h: Remove.
3911         * config/mep/mep-c5.cpu: Remove.
3912         * config/mep/mep-core.cpu: Remove.
3913         * config/mep/mep-default.cpu: Remove.
3914         * config/mep/mep-ext-cop.cpu: Remove.
3915         * config/mep/mep-intrin.h: Remove.
3916         * config/mep/mep-ivc2.cpu: Remove.
3917         * config/mep/mep-pragma.c: Remove.
3918         * config/mep/mep-protos.h: Remove.
3919         * config/mep/mep.c: Remove.
3920         * config/mep/mep.cpu: Remove.
3921         * config/mep/mep.h: Remove.
3922         * config/mep/mep.md: Remove.
3923         * config/mep/mep.opt: Remove.
3924         * config/mep/predicates.md: Remove.
3925         * config/mep/t-mep: Remove.
3926         * doc/install.texi: Remove mep-* documentation.
3927         * doc/md.texi: Likewise.
3929 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3931         * config.gcc: Remove support for avr-rtems.
3932         * config/avr/gen-avr-mmcu-specs.c: Likewise.
3933         * config/avr/rtems.h: Remove.
3934         * config/avr/t-rtems: Remove.
3936 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3938         * config.gcc: Remove m32r-rtems support.
3939         * config/m32r/rtems.h: Remove.
3941 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3943         * config.gcc: Remove h8300-rtems support.
3944         * config/h8300/rtems.h: Remove.
3945         * config/h8300/t-rtems: Remove.
3947 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3949         * config.gcc: Remove support for knetbsd.
3950         * configure.ac: Likewise.
3951         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
3952         * config/knetbsd-gnu.h: Remove.
3953         * configure: Regenerate.
3955 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3957         * config.gcc: Remove support for openbsd 2 and 3.
3958         * config/openbsd-oldgas.h: Remove.
3960 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3962         * config.gcc: Remove interix support.
3963         * config/i386/i386-interix.h: Remove.
3964         * config/i386/interix.opt: Remove.
3965         * config/i386/t-interix: Remove.
3966         * configure: Regenerate.
3967         * configure.ac: Remove interix support.
3968         * doc/install.texi: Remove interix documentation.
3970 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3972         * config/rs6000/rs6000.h: Add conditional preprocessing directives
3973         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3974         not defined.
3976 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3978         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3979         they are both PLACEHOLDER_EXPRs.
3981 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3983         * stor-layout.c (layout_type): Move setting complex MODE to
3984         layout_type, instead of setting it ahead of time by the caller.
3985         * tree.c (build_complex_type): Likewise.
3987 2016-06-21  Martin Liska  <mliska@suse.cz>
3989         * predict.c (force_edge_cold): Replace imposisble with
3990         impossible.
3992 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3994         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3995         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3997 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3999         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
4001 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4002             Ilya Enkovich  <ilya.enkovich@intel.com>
4004         PR target/71549
4005         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
4006         New member function to convert V1TImode register to SUBREG
4007         TImode in debug insn.
4008         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
4009         after changing register mode to V1TImode.
4011 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
4013         * config/aarch64/aarch64-cores.def (vulcan): New core.
4014         * config/aarch64/aarch64-tune.md: Regenerate.
4015         * doc/invoke.texi: Document vulcan as an available option.
4017 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
4019         * cse.c (canon_asm_operands): New function extracted from...
4020         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
4021         either standalone or member of a PARALLEL.
4023 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
4025         PR target/30417
4026         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
4027         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
4028         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
4030 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
4032         PR target/71103
4033         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
4034         constant addresses if can_create_pseudo_p.
4036 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
4038         PR tree-optimization/71588
4039         * tree-ssa-strlen.c (valid_builtin_call): New function.
4040         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
4041         it.
4043 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
4045         PR middle-end/71581
4046         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
4047         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
4048         for conversion of scalar user var to complex type and use the
4049         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
4050         punt.
4052         PR rtl-optimization/71591
4053         * toplev.c (toplev::run_self_tests): If no_backend, complain and
4054         don't run any tests.
4056 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
4058         PR target/71571
4059         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
4060         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
4061         space for PIC with non-v32 and the common non-PIC "jump".
4063 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
4065         PR target/71559
4066         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
4067         returned values and add UN*/LTGT/*ORDERED cases with values matching
4068         D operand modifier on vcmp for AVX.
4070 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
4072         * config/aarch64/aarch64.opt
4073         (mpc-relative-literal-loads): Rename internal option name.
4074         * config/aarch64/aarch64.c
4075         (aarch64_nopcrelative_literal_loads): Rename to
4076         aarch64_pcrelative_literal_loads.
4077         (aarch64_expand_mov_immediate): Likewise.
4078         (aarch64_secondary_reload): Likewise.
4079         (aarch64_can_use_per_function_literal_pools_p): Likewise.
4080         (aarch64_override_options_after_change_1): Rename and simplify logic.
4081         (aarch64_classify_symbol): Merge large model checks into switch,
4082         remove pc-relative load check.
4084 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4086         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
4087         costs relative to the cost of a register move.
4089 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4091         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
4092         (vcvt_n_f64_u64): Likewise.
4093         (vcvt_n_s64_f64): Likewise.
4094         (vcvt_n_u64_f64): Likewise.
4095         (vcvt_f64_s64): Likewise.
4096         (vrecpe_f64): Likewise.
4097         (vcvt_f64_u64): Likewise.
4098         (vrecps_f64): Likewise.
4100 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4102         * config/aarch64/aarch64.md
4103         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
4104         iterators.
4105         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
4106         attributes.
4107         * config/aarch64/aarch64-builtins.c
4108         (aarch64_types_binop_uss_qualifiers): Delete.
4109         (TYPES_BINOP_USS): Likewise.
4110         (aarch64_types_binop_sus_qualifiers): Likewise.
4111         (TYPES_BINOP_SUS): Likewise.
4112         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
4113         (TYPES_FCVTIMM_SUS): Likewise.
4114         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
4115         rather than BINOP.
4116         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
4117         (fcvtzs): Use SHIFTIMM rather than BINOP.
4118         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
4120 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4122         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
4123         costs relative to the cost of a register move.
4125 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
4127         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
4128         Allow scalar/single vector modes to be tieable.
4130 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
4132         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
4134 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4136         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
4137         "alignement".
4138         * tree.h (TYPE_ALIGN): Likewise.
4140 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
4142         PR target/71103
4143         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
4145 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
4147         * config/avr/avr.c (avr_print_operand): Fix "format not a string
4148         literal" build warnings.
4149         (avr_print_operand_address): Dito.
4151 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
4153         PR target/71375
4154         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
4155         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
4157 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
4159         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
4161 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4163         PR bootstrap/71435
4164         * reload1.c (reload): Pass 0 to finish_spills when called because
4165         update_eliminables_and_spill returns true and remove did_spill.
4166         (finish_spills): Adjust comment and document GLOBAL parameter.
4168 2016-06-17  DJ Delorie  <dj@redhat.com>
4170         PR target/71338
4171         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
4172         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
4173         (umulqihi3_virt): Likewise.
4174         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
4175         (umulqihi3_real): Likewise.
4177 2016-06-17  Martin Liska  <mliska@suse.cz>
4179         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
4181 2016-06-17  Martin Liska  <mliska@suse.cz>
4183         * predict.def: PRED_LOOP_EXIT from 92 to 85.
4185 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
4187         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
4188         __FAST_MATH__.
4189         (vaddq_f32): Likewise.
4190         (vmul_f32): Likewise.
4191         (vmulq_f32): Likewise.
4192         (vsub_f32): Likewise.
4193         (vsubq_f32): Likewise.
4195 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
4197         PR tree-optimization/71347
4198         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
4199         cost for all uses in group.
4201 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
4203         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4204         insert gimple seq if it's not empty.
4206 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
4208         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
4209         member OFFSET.
4210         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
4211         rather than OFFSET.
4212         (comp_dr_with_seg_len_pair): Ditto.
4213         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
4214         struct dr_with_seg_len_pair against DR_OFFSET.
4215         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
4216         DR_OFFSET directly.
4218 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4220         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
4222 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
4224         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
4225         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
4226         (pa_output_millicode_call): Likewise.
4227         (pa_output_call): Likewise.
4228         (pa_output_indirect_call): Likewise.
4229         (pa_asm_output_mi_thunk): Likewise.
4231 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4233         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
4235 2016-06-16  Martin Liska  <mliska@suse.cz>
4237         * predict.c (combine_predictions_for_insn): When we find a first
4238         match predictor, we should consider just predictors with
4239         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
4240         DS theory predictor.
4241         (combine_predictions_for_bb): Likewise.
4243 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
4245         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
4246         with base of reference to struct.
4248 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
4250         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
4252 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4254         PR target/71151
4255         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
4256         progmem_swtable_section.
4257         (progmem_swtable_section): Remove.
4258         (avr_asm_function_rodata_section): Remove.
4259         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
4260         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
4262 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
4264         * config/i386/driver-i386.c (host_detect_local_cpu): Set
4265         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
4266         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
4267         signature_CENTAUR_ebx.
4268         * config/i386/i386.c (ix86_option_override_internal): Add
4269         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
4270         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
4271         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
4273 2016-06-16  Martin Liska  <mliska@suse.cz>
4275         * predict.def: Add fortran loop preheader predictor.
4276         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
4277         fold IFN_BUILTIN_EXPECT with a known constant argument.
4279 2016-06-16  Martin Liska  <mliska@suse.cz>
4281         * predict.def: Add 'Fortran' to display text of all
4282         PRED_FORTRAN_* predictors.
4284 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
4286         PR target/71242
4287         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
4288         [IA64_BUILTIN_NANSQ]: Ditto.
4289         (ia64_fold_builtin): New function.
4290         (TARGET_FOLD_BUILTIN): New define.
4291         (ia64_init_builtins) Declare const_string_type node.
4292         Add __builtin_nanq and __builtin_nansq builtin functions.
4293         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
4295 2016-06-16  Nick Clifton  <nickc@redhat.com>
4297         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
4298         MSP430_HWMULT_ prefix to enum values.
4299         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
4300         * config/msp430/msp430.c: Update use of enum values.
4301         * config/msp430/msp430.md: Likewise.
4302         * config/msp430/msp430.opt: Likewise.
4304 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
4306         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
4307         of comparsions in the last iteration.
4309 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
4310             Joern Rennecke  <joern.rennecke@embecosm.com>
4312         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
4313         addresses.
4314         (arc_needs_pcl_p): Add GOTOFFPC.
4315         (arc_legitimate_pic_addr_p): Likewise.
4316         (arc_output_pic_addr_const): Likewise.
4317         (arc_legitimize_pic_address): Generate a pc-relative address using
4318         GOTOFFPC.
4319         (arc_output_libcall): Use @pcl syntax.
4320         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
4321         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
4322         (*movsi_insn): Use @pcl syntax.
4323         (doloop_begin_i): Likewise.
4325 2016-06-16  Martin Liska  <mliska@suse.cz>
4327         * predict.def: Define a new predictor.
4329 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
4331         * config/arc/arc.opt (mtp-regno): Update text.
4333 2016-06-16  Renlin Li  <renlin.li@arm.com>
4335         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
4337 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
4339         PR target/71554
4340         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
4341         (setcc + and peephole2): Likewise.
4343         PR rtl-optimization/71532
4344         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
4345         memory slots.
4347 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4349         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
4350         DImode constants with XXSPLTIB in vector registers.
4351         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
4352         vsx_extract_<mode>_internal{1,2} into a single insn that handles
4353         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
4354         extraction of the element at the top of the register as a scalar
4355         value.
4356         (vsx_extract_<mode>_internal1): Likewise.
4357         (vsx_extract_<mode>_internal2): Likewise.
4358         * config/rs6000/constraints.md (wi constraint): Remove a comment
4359         about DImode not being allowed in Altivec registers.
4360         (wB constraint): New constraint for constants that can be
4361         generated in Altivec registers with VSPLTISW/VUPKHSW.
4362         * config/rs6000/predicates.md (xxspltib_constant_split): Update
4363         comments.
4364         (xxspltib_constant_nosplit): Likewise.
4365         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
4366         support for -mupper-regs-di to enable DImode to go into Altivec
4367         registers.
4368         (POWERPC_MASKS): Likewise.
4369         (power7 cpu): Likewise.
4370         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
4371         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
4372         for DImode being allowed in Altivec registers.  Update wi/wj
4373         constraints.  Set scalar_in_vmx_p flag.
4374         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
4375         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
4376         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
4377         (rs6000_opt_masks): Add -mupper-regs-di.
4378         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
4379         direct move to use wi and not wj.
4380         (lfiwzx): Likewise.
4381         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
4382         alternative.
4383         (floatunssi<mode>2_lfiwzx_mem): Likewise.
4384         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
4385         any VSX register, instead of just Altivec registers, to allow
4386         either operand to be an Altivec register or both.
4387         (fixuns_trunc<mode>di2_fctiduz): Likewise.
4388         (movdi_internal32): Add support for -mupper-regs-di.  Add support
4389         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
4390         the alternatives and attributes to be lined up to be easier to
4391         read.
4392         (movdi_internal64): Likewise.
4393         (64-bit DImode splitters): Change predicates to only split loading
4394         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
4395         load constants in ISA 3.0 or ISA 2.07 respectively.
4396         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4397         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
4398         mention -mcpu=power9 sets these options.
4399         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
4400         wB constraint.
4402 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4404         PR target/67353
4405         * config/avr/avr.c (avr_set_current_function): Warn misspelled
4406         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
4407         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
4408         by default to warn misspelled interrupt/ signal handler.
4409         * doc/invoke.texi (AVR Options): Document it. Update description
4410         for -nodevicelib option.
4412 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4414         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
4415         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
4416         (aarch64_<sur>shll2_n<mode>): Likewise.
4418 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
4420         PR middle-end/71529
4421         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
4422         DECL_CONTEXT for copied arguments.
4424 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
4426         PR tree-optimization/71483
4427         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
4428         for slp
4430 2016-06-15  Martin Liska  <mliska@suse.cz>
4432         * predict.c (tree_predict_by_opcode): Call predict_edge_def
4433         instead of predict_edge w/o a probability.
4435 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
4437         PR tree-optimization/71439
4438         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
4439         live PHIs.
4441 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4443         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
4444         register subregs in SET_SRC.
4446 2016-06-15  Richard Biener  <rguenther@suse.de>
4448         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
4449         store restrictions.
4451 2016-06-15  Richard Biener  <rguenther@suse.de>
4453         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
4454         not consider dependences between accesses that belong to the
4455         same group.
4456         (vect_analyze_data_ref_dependences): Do not analyze read-read
4457         or self-dependences.
4459 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4461         * spellcheck-tree.c: Include spellcheck-tree.h rather than
4462         spellcheck.h.
4463         (find_closest_identifier): Reimplement in terms of
4464         best_match<tree,tree>.
4465         * spellcheck-tree.h: New file.
4466         * spellcheck.c (struct edit_distance_traits<const char *>): New
4467         struct.
4468         (find_closest_string): Reimplement in terms of
4469         best_match<const char *, const char *>.
4470         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
4471         overload to spellcheck-tree.h.
4472         (find_closest_identifier): Likewise.
4473         (struct edit_distance_traits<T>): New template.
4474         (class best_match): New class.
4476 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4478         * selftest-run-tests.c (selftest::run_tests): Call
4479         selftest::spellcheck_tree_c_tests.
4480         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
4481         * spellcheck-tree.c: Include selftest.h and stringpool.h.
4482         (selftest::test_find_closest_identifier): New function.
4483         (selftest::spellcheck_tree_c_tests): New function.
4484         * spellcheck.c (selftest::test_find_closest_string): Verify that
4485         the order of the vec does not affect the results for this case.
4486         (selftest::test_data): New array.
4487         (selftest::test_metric_conditions): New function.
4488         (selftest::spellcheck_c_tests): Add a test of case-comparison.
4489         Call selftest::test_metric_conditions.
4491 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4493         * config/rs6000/rs6000-builtin.def (commentary): Typo.
4494         (BU_P9_MISC_1): Likewise.
4495         (BU_P9_64BIT_MISC_0): Likewise.
4496         (BU_P9_MISC_0): Likewise.
4498 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
4500         * gcc-rich-location.c
4501         (gcc_rich_location::add_fixit_misspelled_id): New method.
4502         * gcc-rich-location.h
4503         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
4505 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
4507         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
4508         FreeBSD 11 and above.
4510 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
4512         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
4514 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4516         * expmed.h: Close parenthesis in "at your option" in copyright
4517         boilerplate.
4518         * lower-subreg.h: Likewise.
4520 2016-06-14  Richard Biener  <rguenther@suse.de>
4522         PR middle-end/71526
4523         * genmatch.c (expr::gen_transform): Use in_type for comparisons
4524         if available.
4526 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4528         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
4529         New function.
4530         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
4531         mask+shift version.
4532         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
4533         New prototype.
4534         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
4535         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
4537 2016-06-14  Richard Biener  <rguenther@suse.de>
4539         PR tree-optimization/71522
4540         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
4541         copying into float copying.
4543 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
4545         PR tree-optimization/71520
4546         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
4547         (replace_block_by): Move user labels from bb1 to bb2.
4549 2016-06-14  Richard Biener  <rguenther@suse.de>
4551         PR middle-end/71310
4552         PR bootstrap/71510
4553         * expr.h (get_bit_range): Declare.
4554         * expr.c (get_bit_range): Export.
4555         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
4556         word_mode again to constrain the bitfield access.
4558 2016-06-14  Richard Biener  <rguenther@suse.de>
4560         PR tree-optimization/71521
4561         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
4562         division int_const_binop against zero divisor.
4564 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4566         * config/i386/i386.md (signbittf2): New expander.
4567         * config/i386/sse.md (ptesttf2): New insn pattern.
4569 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4571         PR bootstrap/71481
4572         * input.c (selftest::test_reading_source_line): Avoid reading from
4573         __FILE__ by creating a tempfile with known content and reading
4574         from that instead.
4576 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4578         * pretty-print.c (assert_pp_format_colored): Skip the test if
4579         GCC_COLORS is set.
4580         (test_pp_format): Remove comment about GCC_COLORS.
4582 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4584         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
4585         * pretty-print.c (assert_pp_format_va): Add location param and use
4586         it with ASSERT_STREQ_AT.
4587         (assert_pp_format): Add location param and pass it to
4588         assert_pp_format_va.
4589         (assert_pp_format_colored): Likewise.
4590         (ASSERT_PP_FORMAT_1): New.
4591         (ASSERT_PP_FORMAT_2): New.
4592         (ASSERT_PP_FORMAT_3): New.
4593         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
4594         explicitly, or implicitly via the above macros.
4595         * selftest.c (selftest::pass): Use a selftest::location rather
4596         than file and line.
4597         (selftest::fail): Likewise.  Print the function name.
4598         (selftest::fail_formatted): Likewise.
4599         (selftest::assert_streq): Use a selftest::location rather than
4600         file and line.
4601         * selftest.h (selftest::location): New struct.
4602         (SELFTEST_LOCATION): New macro.
4603         (selftest::pass): Accept a const location & rather than file
4604         and line.
4605         (selftest::fail): Likewise.
4606         (selftest::fail_formatted): Likewise.
4607         (selftest::assert_streq): Likewise.
4608         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
4609         (ASSERT_FALSE): Likewise.
4610         (ASSERT_EQ): Likewise.
4611         (ASSERT_NE): Likewise.
4612         (ASSERT_STREQ): Likewise.
4613         (ASSERT_PRED1): Likewise.
4614         (ASSERT_STREQ_AT): New macro.
4616 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
4618         * selftest.c (selftest::fail_formatted): New function.
4619         (selftest::assert_streq): New function.
4620         * selftest.h (selftests::fail_formatted): New decl.
4621         (selftest::assert_streq): New decl.
4622         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
4624 2016-06-13  Jeff Law  <law@redhat.com>
4626         PR tree-optimization/71403
4627         * tree-ssa-threadbackward.c
4628         (convert_and_register_jump_thread_path): No longer accept reference
4629         to path.  Do not pop items off the path anymore.
4630         (fsm_find_control_statement_thread_paths): Do not allow threading
4631         to a deeper loop nest.  Pop the last item off the path here rather
4632         than in convert_and_register_jump_thread_path.
4634 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4635             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
4637         [AArch64] Emit division using the Newton series
4639         * config/aarch64/aarch64-protos.h
4640         (cpu_approx_modes): Add new member "division".
4641         (aarch64_emit_approx_div): Declare new function.
4642         * config/aarch64/aarch64.c
4643         (generic_approx_modes): New member "division".
4644         (exynosm1_approx_modes): Likewise.
4645         (xgene1_approx_modes): Likewise.
4646         (aarch64_emit_approx_div): Define new function.
4647         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
4648         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
4649         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
4650         * doc/invoke.texi (-mlow-precision-div): Describe new option.
4652 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4653             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4655         [AArch64] Emit square root using the Newton series
4657         * config/aarch64/aarch64-protos.h
4658         (aarch64_emit_approx_rsqrt): Replace with new function
4659         "aarch64_emit_approx_sqrt".
4660         (cpu_approx_modes): New member "sqrt".
4661         * config/aarch64/aarch64.c
4662         (generic_approx_modes): New member "sqrt".
4663         (exynosm1_approx_modes): Likewise.
4664         (xgene1_approx_modes): Likewise.
4665         (aarch64_emit_approx_rsqrt): Replace with new function
4666         "aarch64_emit_approx_sqrt".
4667         (aarch64_override_options_after_change_1): Handle new option.
4668         * config/aarch64/aarch64-simd.md
4669         (rsqrt<mode>2): Use new function instead.
4670         (sqrt<mode>2): New expansion and insn definitions.
4671         * config/aarch64/aarch64.md: Likewise.
4672         * config/aarch64/aarch64.opt
4673         (mlow-precision-sqrt): Add new option description.
4674         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
4676 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
4678         [AArch64] Add more choices for the reciprocal square root approximation
4680         Allow a target to prefer such operation depending on the operation mode.
4682         * config/aarch64/aarch64-protos.h
4683         (AARCH64_APPROX_MODE): New macro.
4684         (AARCH64_APPROX_{NONE,ALL}): Likewise.
4685         (cpu_approx_modes): New structure.
4686         (tune_params): New member "approx_modes".
4687         * config/aarch64/aarch64-tuning-flags.def
4688         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
4689         * config/aarch64/aarch64.c
4690         (generic_approx_modes): New core "cpu_approx_modes" structure.
4691         (exynosm1_approx_modes): Likewise.
4692         (xgene1_approx_modes): Likewise.
4693         (generic_tunings): New member "approx_modes".
4694         (cortexa35_tunings): Likewise.
4695         (cortexa53_tunings): Likewise.
4696         (cortexa57_tunings): Likewise.
4697         (cortexa72_tunings): Likewise.
4698         (exynosm1_tunings): Likewise.
4699         (thunderx_tunings): Likewise.
4700         (xgene1_tunings): Likewise.
4701         (use_rsqrt_p): New argument for the mode and use new member from
4702         "tune_params".
4703         (aarch64_builtin_reciprocal): Devise mode from builtin.
4704         (aarch64_optab_supported_p): New argument for the mode.
4705         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
4707 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4709         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
4710         RS6000_BTM_MODULO flag into the set of flags that are considered
4711         to be part of the common configuration.
4713 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4715         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
4716         difference unsigned.
4717         (vec_absdb): New macro for vector absolute difference unsigned
4718         byte.
4719         (vec_absdh): New macro for vector absolute difference unsigned
4720         half-word.
4721         (vec_absdw): New macro for vector absolute difference unsigned word.
4722         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
4723         (vadu<mode>3): New insn.
4724         (*p9_vadu<mode>3): New insn.
4725         * config/rs6000/rs6000-builtin.def (vadub): New built-in
4726         definition.
4727         (vaduh): New built-in definition.
4728         (vaduw): New built-in definition.
4729         (vadu): New overloaded built-in definition.
4730         (vadub): New overloaded built-in definition.
4731         (vaduh): New overloaded built-in definition.
4732         (vaduw): New overloaded built-in definition.
4733         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4734         overloaded vector absolute difference unsigned functions.
4735         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4736         the ISA 3.0 vector absolute difference unsigned built-in functions.
4738 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4740         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
4741         update shared_lookup_references only once after changing operands.
4743 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
4745         PR middle-end/71373
4746         * tree-nested.c (convert_nonlocal_omp_clauses)
4747         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
4749         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
4750         * tree.def (CASE_LABEL_EXPR): Likewise.
4752 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4754         PR bootstrap/71481
4755         * input.c (test_builtins): Fix an assertion.
4757 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4759         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
4760         (paritysi2): Ditto.
4761         (isinfxf2): Ditto.
4762         (isinf<mode>2): Ditto.
4764 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
4766         * ggc-tests.c (test_finalization): Only test need_finalization_p
4767         for GCC_VERSION >= 4003.
4769 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4771         * config/s390/vecintrin.h: Fix file description in comment.
4773 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4775         * config/s390/s390-builtin-types.def: Change builtin type naming
4776         scheme to match builtin-types.def.
4778 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
4780         * fold-const.c (optimize_minmax_comparison): Remove.
4781         (fold_comparison): Remove call to the above.
4782         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
4783         New transformations.
4785 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
4787         PR tree-optimization/71416
4788         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
4789         multiple entries
4791 2016-06-13  Martin Liska  <mliska@suse.cz>
4793         * predict.c (enum predictor_reason): Prefix enum with REASON_.
4794         (combine_predictions_for_insn): Likewise.
4795         (prune_predictions_for_bb): Likewise.
4796         (combine_predictions_for_bb): Likewise.
4798 2016-06-13  Richard Biener  <rguenther@suse.de>
4800         PR tree-optimization/71505
4801         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
4802         assert match comment.
4804 2016-06-13  Marek Polacek  <polacek@redhat.com>
4806         PR middle-end/71476
4807         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
4808         gimplify_switch_expr.
4809         (warn_switch_unreachable_r): New function.
4811 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4813         PR target/71379
4814         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
4815         one.
4817 2016-06-13  Richard Biener  <rguenther@suse.de>
4819         PR middle-end/64516
4820         * fold-const.c (fold_unary_loc): Preserve alignment when
4821         folding a VIEW_CONVERT_EXPR into a MEM_REF.
4823 2016-06-13  Martin Liska  <mliska@suse.cz>
4825         PR sanitizer/71458
4826         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
4827         w/ -fsanitize=bounds.
4829 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4831         * config/i386/i386.c (ix86_init_builtins): Calculate
4832         FLOAT128_FTYPE_CONST_STRING function type only once.
4833         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
4834         built-in functions are available for x86-32 and x86-64 targets.
4836 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4838         PR target/71241
4839         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4840         New primitive type.
4841         (FLOAT128_FTYPE_CONST_STRING): New function type.
4842         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4843         [IX86_BUILTIN_NANSQ]: Ditto.
4844         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4845         (ix86_init_builtin_types): Declare const_string_type_node.
4846         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4847         builtin functions.
4848         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4849         * doc/extend.texi (x86 Built-in Functions): Document
4850         __builtin_nanq and __builtin_nansq.
4852 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
4854         PR target/71061
4855         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4856         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4857         length for pop patterns.
4858         (arm_attr_length_push_multi): Update comments.
4859         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4860         attribute.
4861         (*pop_multiple_with_writeback_and_return): Likewise.
4862         (*pop_multiple_with_return): Likewise.
4864 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
4866         PR middle-end/71310
4867         * fold-const.c (optimize_bit_field_compare): Don't try to use
4868         word_mode unconditionally for reading the bit field, look at
4869         DECL_BIT_FIELD_REPRESENTATIVE instead.
4871 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
4873         PR middle-end/71478
4874         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4875         vector integer type.
4877 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
4879         PR middle-end/71494
4880         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4881         without LABEL_DECL, set *handled_ops_p to false instead of true.
4883 2016-06-10  Martin Sebor  <msebor@redhat.com>
4885         PR c/71392
4886         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4887         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4888         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4889         them.
4890         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4891         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4892         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4893         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4894         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4895         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4896         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4897         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4899 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4901         * config/arm/arm.h (pool_vector_label,
4902         return_used_this_function): Remove.
4904 2016-06-10  Jeff Law  <law@redhat.com>
4906         PR tree-optimization/71335
4907         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4908         zero length paths here.
4909         (convert_and_register_jump_thread_path): Remove hacks related to
4910         duplicated blocks in the jump thread path.
4911         (fsm_find_control_statement_thread_paths): Avoid putting the same
4912         block on the thread path twice, but ensure the thread path is
4913         unchanged from the caller's point of view.
4915 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4917         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4918         * predict.def (PRED_LOOP_BRANCH): Remove.
4920 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
4922         * Makefile.in (OBJS): Add ggc-tests.o.
4923         (GTFILES): Add ggc-tests.c.
4924         * ggc-tests.c: New file.
4925         * selftest-run-tests.c (selftest::run_tests): Call
4926         selftest::ggc_tests_c_tests.
4927         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4929 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
4931         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4933 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
4935         PR sanitizer/71480
4936         * varasm.c (place_block_symbol): Adjust alignment for asan protected
4937         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4939 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4941         * profile.c: Include cfgloop.h.
4942         (branch_prob): Compute estimated number of iterations.
4943         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4944         recompute estimate number of iterations from profile.
4946 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4948         PR inline-asm/68843
4949         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4950         must be grouped on top of stack.  Don't force early clobber
4951         on ordinary reg outputs.
4953 2016-06-10  Richard Biener  <rguenther@suse.de>
4955         * targhooks.c (default_builtin_vectorization_cost): Adjust
4956         vec_construct cost.
4958 2016-06-10  Richard Biener  <rguenther@suse.de>
4960         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4961         to fold the RHS to a constant if possible.
4963 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4965         PR middle-end/71373
4966         * tree-nested.c (convert_nonlocal_omp_clauses)
4967         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4968         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4969         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4971         * gimplify.c (gimplify_adjust_omp_clauses): Discard
4972         OMP_CLAUSE_TILE.
4973         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4975         * omp-low.c (scan_sharing_clauses): Don't expect
4976         OMP_CLAUSE__CACHE_.
4978 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
4980         PR tree-optimization/71407
4981         PR tree-optimization/71416
4982         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4983         BIT_FIELD_REF type.
4985 2016-06-10  Richard Biener  <rguenther@suse.de>
4987         PR middle-end/71477
4988         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4990 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4992         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4994 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
4995             Jiong Wang  <jiong.wang@arm.com>
4997         PR rtl-optimization/70751
4998         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4999         spilled into memory.
5001 2016-06-09  Jonathan Yong  <10walls@gmail.com>
5003         Revert:
5004         2015-09-21  Jonathan Yong  <10walls@gmail.com>
5006         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5007         sysroot/usr/lib/32api for additional win32 libraries,
5008         fixes failing Cygwin bootstrapping.
5010 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
5012         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
5013         Delete.
5015 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
5017         PR bootstrap/71471
5018         * pretty-print.c (pp_indent): Specify that %p is printed in a
5019         host-dependent manner.
5020         (test_pp_format): Remove the test for %p.
5022 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
5024         * config/mips/mips.c (mips_output_jump): Fix formatting.
5026 2016-06-09  Richard Biener  <rguenther@suse.de>
5028         PR tree-optimization/71462
5029         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
5030         removed blocks.
5032 2016-06-09  Martin Liska  <mliska@suse.cz>
5034         * predict.c (dump_prediction): Add new argument.
5035         (enum predictor_reason): New enum.
5036         (struct predictor_hash): New struct.
5037         (predictor_hash::hash): New function.
5038         (predictor_hash::equal): Likewise.
5039         (not_removed_prediction_p): New function.
5040         (prune_predictions_for_bb): Likewise.
5041         (combine_predictions_for_bb): Prune predictions.
5043 2016-06-09  Martin Liska  <mliska@suse.cz>
5045         * predict.c (filter_predictions): New function.
5046         (remove_predictions_associated_with_edge): Use the filter
5047         function.
5048         (equal_edge_p): New function.
5050 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
5052         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
5053         Correct usage of @samp vs @option, add @samp where appropriate.
5054         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
5055         Add armv6s-m and document it, as it is no official ARM name.
5057 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5059         * ifcvt.c (struct noce_if_info): Add transform_name field.
5060         (noce_try_move): Set if_info->transform_name to the function name.
5061         (noce_try_ifelse_collapse): Likewise.
5062         (noce_try_store_flag): Likewise.
5063         (noce_try_inverse_constants): Likewise.
5064         (noce_try_store_flag_constants): Likewise.
5065         (noce_try_addcc): Likewise.
5066         (noce_try_store_flag_mask): Likewise.
5067         (noce_try_cmove): Likewise.
5068         (noce_try_cmove_arith): Likewise.
5069         (noce_try_minmax): Likewise.
5070         (noce_try_abs): Likewise.
5071         (noce_try_sign_mask): Likewise.
5072         (noce_try_bitop): Likewise.
5073         (noce_convert_multiple_sets): Likewise.
5074         (noce_process_if_block): Print if_info->transform_name to
5075         dump_file if transformation succeeded.
5077 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5079         * config/arm/cortex-a57.md (cortex_a57_alu):
5080         Handle csel type.
5082 2016-06-08  Martin Sebor  <msebor@redhat.com>
5083             Jakub Jelinek  <jakub@redhat.com>
5085         PR c++/70507
5086         PR c/68120
5087         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
5088         BUILT_IN_MUL_OVERFLOW_P): New builtins.
5089         * builtins.c: Include gimple-fold.h.
5090         (fold_builtin_arith_overflow): Handle
5091         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
5092         (fold_builtin_3): Likewise.
5093         * doc/extend.texi (Integer Overflow Builtins): Document
5094         __builtin_{add,sub,mul}_overflow_p.
5096 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
5098         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
5099         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
5101 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
5103         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
5104         Rewrite, looking one level down for records and arrays.
5106 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
5108         * pretty-print.c: Include "selftest.h".
5109         (pp_format): Fix comment.
5110         (identifier_to_locale): Likewise.
5111         (selftest::test_basic_printing): New function.
5112         (selftest::assert_pp_format): New function.
5113         (selftest::test_pp_format): New function.
5114         (selftest::pretty_print_c_tests): New function.
5115         * selftest-run-tests.c (selftest::run_tests): Call
5116         selftest::pretty_print_c_tests.
5117         * selftest.h (pretty_print_c_tests): New declaration.
5119 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5121         * invoke.texi (max-loop-headers-insns): Document.
5122         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
5123         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
5124         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
5126 2016-06-08  Richard Biener  <rguenther@suse.de>
5128         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
5129         on strided SLP loads and fall back to scalar loads in case
5130         we can't chunk them.
5132 2016-06-08  Richard Biener  <rguenther@suse.de>
5134         PR tree-optimization/71452
5135         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
5136         type used for the SSA rewrite has enough precision to cover
5137         the dynamic type of the location.
5139 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
5140             Richard Biener  <rguenther@suse.de>
5142         PR c++/71448
5143         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
5144         the same as DECL_P (base0) for indirect_base0.  Use equality_code
5145         in one further place.
5147 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
5149         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
5150         to one word if the field is known to overlap other words.
5151         (extract_bit_field_1): Likewise.
5152         (store_split_bit_field): Remove compensating code.
5153         (extract_split_bit_field): Likewise.
5155 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
5157         PR debug/71432
5158         PR ada/71413
5159         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
5161 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
5163         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
5164         VDQF.
5165         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
5166         (arch64_addpv4sf): Delete.
5167         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
5168         "gen_aarch64_addpv4sf".
5169         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
5170         builtin.
5171         (vpadds_f32): Likewise.
5172         (vpaddq_f32): Likewise.
5173         (vpaddq_f64): Likewise.
5175 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
5177         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
5178         VALLF.
5179         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
5180         to VALLF.  Rename to "fabd<mode>3".
5181         "*fabd_scalar<mode>3): Delete.
5182         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
5183         Use builtin.
5184         (vabdd_f64): Likewise.
5185         (vabd_f32): Likewise.
5186         (vabd_f64): Likewise.
5187         (vabdq_f32): Likewise.
5188         (vabdq_f64): Likewise.
5190 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
5192         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
5193         VALLF.
5194         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
5195         "aarch64_rsqrts<mode>".
5196         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
5197         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
5198         builtin.
5199         (vrsqrtsd_f64): Likewise.
5200         (vrsqrts_f32): Likewise.
5201         (vrsqrts_f64): Likewise.
5202         (vrsqrtsq_f32): Likewise.
5203         (vrsqrtsq_f64): Likewise.
5205 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
5207         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
5208         VALLF.
5209         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
5210         "aarch64_rsqrte<mode>".
5211         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
5212         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
5213         builtin.
5214         (vrsqrted_f64): Likewise.
5215         (vrsqrte_f32): Likewise.
5216         (vrsqrte_f64): Likewise.
5217         (vrsqrteq_f32): Likewise.
5218         (vrsqrteq_f64): Likewise.
5220 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
5222         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
5223         (ucvtf): Likewise.
5224         (fcvtzs): Likewise.
5225         (fcvtzu): Likewise.
5226         * config/aarch64/aarch64-simd.md
5227         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
5228         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
5229         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
5230         Use builtin.
5231         (vcvt_n_f32_u32): Likewise.
5232         (vcvt_n_s32_f32): Likewise.
5233         (vcvt_n_u32_f32): Likewise.
5234         (vcvtq_n_f32_s32): Likewise.
5235         (vcvtq_n_f32_u32): Likewise.
5236         (vcvtq_n_f64_s64): Likewise.
5237         (vcvtq_n_f64_u64): Likewise.
5238         (vcvtq_n_s32_f32): Likewise.
5239         (vcvtq_n_s64_f64): Likewise.
5240         (vcvtq_n_u32_f32): Likewise.
5241         (vcvtq_n_u64_f64): Likewise.
5242         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
5243         (VSDQ_SDI): Likewise.
5244         (fcvt_target): Support V4DI, V4SI and V2SI.
5245         (FCVT_TARGET): Likewise.
5247 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
5249         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
5250         (TYPES_BINOP_SUS): Likewise.
5251         (aarch64_simd_builtin_data): Update include file name.
5252         (aarch64_builtins): Likewise.
5253         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
5254         for conversion between scalar float-point and fixed-point.
5255         (ucvtf): Likewise.
5256         (fcvtzs): Likewise.
5257         (fcvtzu): Likewise.
5258         * config/aarch64/aarch64.md
5259         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
5260         pattern for conversion between scalar float to fixed-pointer.
5261         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
5262         (UNSPEC_FCVTZS): New UNSPEC enumeration.
5263         (UNSPEC_FCVTZU): Likewise.
5264         (UNSPEC_SCVTF): Likewise.
5265         (UNSPEC_UCVTF): Likewise.
5266         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
5267         Use builtin.
5268         (vcvtd_n_f64_u64): Likewise.
5269         (vcvtd_n_s64_f64): Likewise.
5270         (vcvtd_n_u64_f64): Likewise.
5271         (vcvtd_n_f32_s32): Likewise.
5272         (vcvts_n_f32_u32): Likewise.
5273         (vcvtd_n_s32_f32): Likewise.
5274         (vcvts_n_u32_f32): Likewise.
5275         * config/aarch64/iterators.md (fcvt_target): Support integer to float
5276         mapping.
5277         (FCVT_TARGET): Likewise.
5278         (FCVT_FIXED2F): New iterator.
5279         (FCVT_F2FIXED): Likewise.
5280         (fcvt_fixed_insn): New define_int_attr.
5282 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5284         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
5285         some statements was removed.
5287 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
5289         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
5290         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
5291         (vect_can_advance_ivs_p): likewise.
5292         (vect_update_ivs_after_vectorizer): likewise.
5293         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
5294         (vect_analyze_scalar_cycles_1): likewise.
5295         (vect_analyze_loop_operations): likewise.
5296         (report_vect_op): likewise.
5297         (vect_is_slp_reduction): likewise.
5298         (vect_is_simple_reduction): likewise.
5299         (get_initial_def_for_induction): likewise.
5300         (vect_transform_loop): likewise.
5301         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
5302         (vect_recog_sad_pattern): likewise.
5303         (vect_recog_widen_sum_pattern): likewise.
5304         (vect_recog_widening_pattern): likewise.
5305         (vect_recog_divmod_pattern): likewise.
5306         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
5307         (vect_analyze_slp_instance): likewise.
5308         (vect_transform_slp_perm_load): likewise.
5309         (vect_schedule_slp_instance): likewise.
5311 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5313         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
5314         (return_prediction): PRED_CONST_RETURN predict return as not taken.
5315         * predict.def (PRED_CONTINUE): Change hitrate 50->67
5316         (PRED_LOOP_BRANCH): Document predictor as broken.
5317         (PRED_LOOP_EXIT): Change hitrate 91->92.
5318         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
5319         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
5320         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
5321         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
5322         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
5323         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
5324         (PRED_CALL): Chane hitrate 71->67.
5325         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
5326         (PRED_GOTO): Document as unused right now.
5327         (PRED_CONST_RETURN): Change hitrate 67->69
5328         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
5329         (PRED_NULL_RETURN): Change hitrate 91->90.
5330         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
5331         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
5332         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
5334 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
5336         * config/rs6000/altivec.h: Add __builtin_vec_mul.
5337         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
5338         special case Altivec builtin.
5339         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
5340         VSX_BUILTIN_VEC_MUL (replaced with special case code).
5341         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5342         code for ALTIVEC_BUILTIN_VEC_MUL.
5343         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5344         for __builtin_vec_mul.
5346 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
5348         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
5349         -mno-htm.
5351 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
5353         * spellcheck.c (selftest::test_find_closest_string): New function.
5354         (spellcheck_c_tests): Call the above.
5356 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5358         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
5360 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
5362         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
5363         Yv=Yv,C alternatives.
5365 2016-06-07  Richard Biener  <rguenther@suse.de>
5367         PR c/61564
5368         * common.opt (ffast-math): Make Optimization.
5370 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
5371             Prachi Godbole  <prachi.godbole@imgtec.com>
5373         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
5374         `fabs' and `fneg' type attributes.
5375         (p5600_fpu_fabs): Add `fmove' to the comment.
5377 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
5379         * gimple.c: Include builtins.h
5380         (gimple_inexpensive_call_p): New function.
5381         * gimple.h (gimple_inexpensive_call_p): Declare.
5382         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
5383         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
5384         fix formatting.
5386 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
5388         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
5389         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
5390         warning_at_rich_loc, warning_n, pedwarn, permerror,
5391         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
5392         sorry, fatal_error, internal_error, internal_error_no_backtrace):
5393         Use the above.
5395 2016-06-07  Richard Biener  <rguenther@suse.de>
5397         PR tree-optimization/71428
5398         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
5399         BIT_FIELD_REF op vs. load.
5401 2016-06-07  Richard Biener  <rguenther@suse.de>
5403         PR middle-end/71423
5404         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
5405         for signed ops.
5407 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
5409         * config/pa/pa.md (call): Generate indirect long calls to non-local
5410         functions on TARGET_64BIT.
5411         (call_value): Likewise.
5413 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
5415         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
5416         pattern and subsequent splitters.
5417         (call_val_reg_64bit_post_reload): Likewise.
5419 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5421         PR middle-end/71408
5422         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
5423         propagate_op_to_single_use.
5425 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5427         PR middle-end/71281
5428         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
5430 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
5432         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
5433         (enum x86_dirflag_state): New enum.
5434         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
5435         (machine_function): Remove needs_cld.
5436         (ix86_current_function_needs_cld): Remove.
5437         * config/i386/i386.c (ix86_set_func_type): Set
5438         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
5439         (ix86_expand_prologue): Do not emit CLD here.
5440         (ix86_dirflag_mode_needed): New function.
5441         (ix86_dirflag_mode_entry): Ditto.
5442         (ix86_mode_needed): Handle X86_DIRFLAG entity.
5443         (ix86_mode_after): Ditto.
5444         (ix86_mode_entry): Ditto.
5445         (ix86_mode_exit): Ditto.
5446         (ix86_emit_mode_set): Ditto.
5447         * config/i386/i386.md (strmov_singleop): Set
5448         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
5449         Do not set ix86_current_function_needs_cld.
5450         (rep_mov): Ditto.
5451         (strset_singleop): Ditto.
5452         (rep_stos): Ditto.
5453         (cmpstrnqi_nz_1): Ditto.
5454         (cmpstrnqi_1): Ditto.
5455         (strlenqi_1): Ditto.
5457 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
5459         PR tree-optimization/71259
5460         * tree-vect-slp.c (vect_get_constant_vectors): For
5461         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
5462         one for constant op, and use COND_EXPR for non-constant.
5464 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
5466         * Makefile.in (OBJS): Add function-tests.o,
5467         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
5468         selftest-run-tests.o.
5469         (OBJS-libcommon): Add selftest.o.
5470         (OBJS-libcommon-target): Add selftest.o.
5471         (all.internal): Add "selftest".
5472         (all.cross): Likewise.
5473         (selftest): New phony target.
5474         (s-selftest): New target.
5475         (selftest-gdb): New phony target.
5476         (COLLECT2_OBJS): Add selftest.o.
5477         * bitmap.c: Include "selftest.h".
5478         (selftest::test_gc_alloc): New function.
5479         (selftest::test_set_range): New function.
5480         (selftest::test_clear_bit_in_middle): New function.
5481         (selftest::test_copying): New function.
5482         (selftest::test_bitmap_single_bit_set_p): New function.
5483         (selftest::bitmap_c_tests): New function.
5484         * common.opt (fself-test): New.
5485         * diagnostic-show-locus.c: Include "selftest.h".
5486         (make_range): New function.
5487         (test_range_contains_point_for_single_point): New function.
5488         (test_range_contains_point_for_single_line): New function.
5489         (test_range_contains_point_for_multiple_lines): New function.
5490         (assert_eq): New function.
5491         (test_get_line_width_without_trailing_whitespace): New function.
5492         (selftest::diagnostic_show_locus_c_tests): New function.
5493         * et-forest.c: Include "selftest.h".
5494         (selftest::test_single_node): New function.
5495         (selftest::test_simple_tree): New function.
5496         (selftest::test_disconnected_nodes): New function.
5497         (selftest::et_forest_c_tests): New function.
5498         * fold-const.c: Include "selftest.h".
5499         (selftest::assert_binop_folds_to_const): New function.
5500         (selftest::assert_binop_folds_to_nonlvalue): New function.
5501         (selftest::test_arithmetic_folding): New function.
5502         (selftest::fold_const_c_tests): New function.
5503         * function-tests.c: New file.
5504         * gimple.c: Include "selftest.h".
5505         Include "gimple-pretty-print.h".
5506         (selftest::verify_gimple_pp): New function.
5507         (selftest::test_assign_single): New function.
5508         (selftest::test_assign_binop): New function.
5509         (selftest::test_nop_stmt): New function.
5510         (selftest::test_return_stmt): New function.
5511         (selftest::test_return_without_value): New function.
5512         (selftest::gimple_c_tests): New function.
5513         * hash-map-tests.c: New file.
5514         * hash-set-tests.c: New file.
5515         * input.c: Include "selftest.h".
5516         (selftest::assert_loceq): New function.
5517         (selftest::test_accessing_ordinary_linemaps): New function.
5518         (selftest::test_unknown_location): New function.
5519         (selftest::test_builtins): New function.
5520         (selftest::test_reading_source_line): New function.
5521         (selftest::input_c_tests): New function.
5522         * rtl-tests.c: New file.
5523         * selftest-run-tests.c: New file.
5524         * selftest.c: New file.
5525         * selftest.h: New file.
5526         * spellcheck.c: Include "selftest.h".
5527         (selftest::levenshtein_distance_unit_test_oneway): New function,
5528         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
5529         (selftest::levenshtein_distance_unit_test): Likewise.
5530         (selftest::spellcheck_c_tests): Likewise.
5531         * toplev.c: Include selftest.h.
5532         (toplev::run_self_tests): New.
5533         (toplev::main): Handle -fself-test.
5534         * toplev.h (toplev::run_self_tests): New.
5535         * tree.c: Include "selftest.h".
5536         (selftest::test_integer_constants): New function.
5537         (selftest::test_identifiers): New function.
5538         (selftest::test_labels): New function.
5539         (selftest::tree_c_tests): New function.
5540         * tree-cfg.c: Include "selftest.h".
5541         (selftest::push_fndecl): New function.
5542         (selftest::test_linear_chain): New function.
5543         (selftest::test_diamond): New function.
5544         (selftest::test_fully_connected): New function.
5545         (selftest::tree_cfg_c_tests): New function.
5546         * vec.c: Include "selftest.h".
5547         (selftest::safe_push_range): New function.
5548         (selftest::test_quick_push): New function.
5549         (selftest::test_safe_push): New function.
5550         (selftest::test_truncate): New function.
5551         (selftest::test_safe_grow_cleared): New function.
5552         (selftest::test_pop): New function.
5553         (selftest::test_safe_insert): New function.
5554         (selftest::test_ordered_remove): New function.
5555         (selftest::test_unordered_remove): New function.
5556         (selftest::test_block_remove): New function.
5557         (selftest::reverse_cmp): New function.
5558         (selftest::test_qsort): New function.
5559         (selftest::vec_c_tests): New function.c.
5560         * wide-int.cc: Include selftest.h and wide-int-print.h.
5561         (selftest::from_int <wide_int>): New function.
5562         (selftest::from_int <offset_int>): New function.
5563         (selftest::from_int <widest_int>): New function.
5564         (selftest::assert_deceq): New function.
5565         (selftest::assert_hexeq): New function.
5566         (selftest::test_printing <VALUE_TYPE>): New function template.
5567         (selftest::test_ops <VALUE_TYPE>): New function template.
5568         (selftest::test_comparisons <VALUE_TYPE>): New function template.
5569         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
5570         template.
5571         (selftest::wide_int_cc_tests): New function.
5573 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5575         PR middle-end/37780
5576         * ifcvt.c (noce_try_ifelse_collapse): New function.
5577         Declare prototype.
5578         (noce_process_if_block): Call noce_try_ifelse_collapse.
5579         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
5580         (simplify_ternary_operation): Use the above to simplify
5581         conditional CLZ/CTZ expressions.
5583 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5585         PR middle-end/37780
5586         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
5587         define_insn_and_split.
5589 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5591         PR middle-end/37780
5592         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
5594 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5596         PR c/24414
5597         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
5598         Implicitly clobber memory for basic asm with non-empty assembler
5599         string.  Use targetm.md_asm_adjust also here.
5600         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
5601         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
5602         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
5603         non-empty assembler string.
5604         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
5605         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
5606         (decode_asm_operands): Handle basic asm in PARALLEL block.
5607         (extract_insn): Handle basic asm in PARALLEL block.
5608         * doc/extend.texi: Mention new behavior of basic asm.
5609         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
5610         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
5611         branch_needs_nop_p): Use asm_noperands.
5613 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
5615         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
5616         Include the M7 SPARC DFA scheduler.
5617         New attribute v3pipe.
5618         Annotate insns with v3pipe where appropriate.
5619         Define cpu_feature vis4.
5620         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
5621         Add (V8QI "8") to vbits.
5622         Add insns {add,sub}v8qi3
5623         Add insns ss{add,sub}v8qi3
5624         Add insns us{add,sub}{v8qi,v4hi}3
5625         Add insns {min,max}{v8qi,v4hi,v2si}3
5626         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
5627         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
5628         * config/sparc/niagara4.md: Add a comment explaining the
5629         discrepancy between the documented latenty numbers and the
5630         implemented ones.
5631         * config/sparc/niagara7.md: New file.
5632         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
5633         supports SPARC5 and VIS 4.0 instructions.
5634         * configure: Regenerate.
5635         * config.in: Likewise.
5636         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
5637         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
5638         TARGET_CPU_niagara7.
5639         (ASM_CPU64_DEFAULT_SPEC): Likewise.
5640         (CPP_CPU_SPEC): Handle niagara7.
5641         (ASM_CPU_SPEC): Likewise.
5642         * config/sparc/sparc-opts.h (processor_type): Add
5643         PROCESSOR_NIAGARA7.
5644         (mvis4): New option.
5645         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
5646         (AS_NIAGARA7_FLAG): Define.
5647         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
5648         (CPP_CPU64_DEFAULT_SPEC): Likewise.
5649         (CPP_CPU_SPEC): Handle niagara7.
5650         (ASM_CPU_SPEC): Likewise.
5651         * config/sparc/sparc.c (niagara7_costs): Define.
5652         (sparc_option_override): Handle niagara7 and adjust cache-related
5653         parameters with better values for niagara cpus.  Also support VIS4.
5654         (sparc32_initialize_trampoline): Likewise.
5655         (sparc_use_sched_lookahead): Likewise.
5656         (sparc_issue_rate): Likewise.
5657         (sparc_register_move_cost): Likewise.
5658         (dump_target_flag_bits): Support VIS4.
5659         (sparc_vis_init_builtins): Likewise.
5660         (sparc_builtins): Likewise.
5661         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
5662         VIS4 4.0.
5663         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
5664         UltraSparc M7.
5665         * config/sparc/sparc.opt (sparc_processor_type): New value
5666         niagara7.
5667         * config/sparc/visintrin.h (__attribute__): Prototypes for the
5668         VIS4 builtins.
5669         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
5670         -mvis4.
5671         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5672         VIS4 builtins.
5674 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
5676         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
5678 2016-06-06  Richard Biener  <rguenther@suse.de>
5680         PR tree-optimization/71398
5681         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
5682         remove edges.
5684 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
5686         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
5687         ft32_expand_prolog, ft32_expand_epilogue):
5688         Handle pretend_args.
5689         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
5690         * config/ft32/ft32.md: Add pretend_returner.
5692 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
5694         PR target/71389
5695         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5696         Copy op1 RTX to avoid invalid sharing.
5697         (ix86_expand_vector_move_misalign): Ditto.
5699 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
5701         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
5702         ATTRIBUTE_UNUSED.
5704 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
5706         * predict.c (predicted_by_loop_heuristics_p): New function.
5707         (predict_iv_comparison): Use it.
5708         (predict_loops): Walk from innermost loops; do not predict edges
5709         leaving multiple loops multiple times; implement
5710         PRED_LOOP_ITERATIONS_MAX heuristics.
5711         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
5713 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
5715         * cfg.c (check_bb_profile): Do not report mismatched profiles when
5716         only edges out of BB are EH edges.
5718 2016-06-04  Martin Sebor  <msebor@redhat.com>
5719             Marcin Baczyński  <marbacz@gmail.com>
5721         PR c/48116
5722         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
5723         a void expression in a void function.
5725 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
5727         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
5728         aux; dump reasons of decisions.
5729         (should_duplicate_loop_header_p): Likewise.
5730         (do_while_loop_p): Likewise.
5731         (ch_base::copy_headers): Dump asi num insns duplicated.
5733 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
5735         PR tree-optimization/71405
5736         * tree-ssa.c (execute_update_addresses_taken): For clobber with
5737         incompatible type, build a new clobber with the right type instead
5738         of building a VIEW_CONVERT_EXPR around it.
5740 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
5742         PR tree-optimization/52171
5743         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
5744         by_pieces_ninsns instead of move_by_pieces_ninsns.
5746 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
5748         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
5749         for reg+reg addressing mode.
5751 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5753         * rs6000-c.c (c/c-tree.h): Add #include.
5754         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
5755         in C++ when found in the base position of vec_ld or vec_st.
5757 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
5759         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
5760         use of profile unless profile status is PROFILE_READ.
5761         * profile.c (compute_branch_probabilities): Set profile status
5762         only after reporting predictor hitrates.
5764 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
5766         PR target/71276
5767         PR target/71277
5768         * common.opt (ffp-int-builtin-inexact): New option.
5769         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
5770         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
5771         (ceil@var{m}2): Document dependence on this option.
5772         * ipa-inline-transform.c (inline_call): Handle
5773         flag_fp_int_builtin_inexact.
5774         * ipa-inline.c (can_inline_edge_p): Likewise.
5775         * config/i386/i386.md (rintxf2): Do not test
5776         flag_unsafe_math_optimizations.
5777         (rint<mode>2_frndint): New define_insn.
5778         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
5779         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
5780         for 387 instead of extending and truncating.
5781         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
5782         !flag_trapping_math instead of flag_unsafe_math_optimizations.
5783         Change to frndint<mode>2_<rounding>.
5784         (frndintxf2_<rounding>_i387): Likewise.  Change to
5785         frndint<mode>2_<rounding>_i387.
5786         (<rounding_insn>xf2): Likewise.
5787         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
5788         !flag_trapping_math instead of flag_unsafe_math_optimizations for
5789         x87.  Test TARGET_ROUND || !flag_trapping_math ||
5790         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
5791         SSE.  Use ROUND_NO_EXC in constant operand of
5792         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
5793         for 387 instead of extending and truncating.
5795 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5796             Julia Koval  <julia.koval@intel.com>
5798         PR target/66960
5799         PR target/67630
5800         PR target/67634
5801         PR target/67841
5802         PR target/68037
5803         PR target/68618
5804         PR target/68661
5805         PR target/69575
5806         PR target/69596
5807         PR target/69734
5808         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
5809         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
5810         all registers, except for function return registers if there are
5811         no caller-saved registers.
5812         (ix86_set_func_type): New function.
5813         (ix86_set_current_function): Call ix86_set_func_type to set
5814         no_caller_saved_registers and func_type.  Call reinit_regs if
5815         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
5816         nor x87 instructions in interrupt handler nor function with
5817         no_caller_saved_registers attribute.
5818         (ix86_function_ok_for_sibcall): Return false if there are no
5819         caller-saved registers.
5820         (type_natural_mode): Don't warn ABI change for MMX in interrupt
5821         handler.
5822         (ix86_function_arg_advance): Skip for callee in interrupt handler.
5823         (ix86_function_arg): Return special arguments in interrupt handler.
5824         (ix86_promote_function_mode): Promote pointer to word_mode only
5825         for normal functions.
5826         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
5827         interrupt handler.
5828         (ix86_epilogue_uses): New function.
5829         (ix86_hard_regno_scratch_ok): Likewise.
5830         (ix86_save_reg): Preserve all registers in interrupt handler
5831         after reload.  Preserve all registers, except for function return
5832         registers, if there are no caller-saved registers after reload.
5833         (find_drap_reg): Always use callee-saved register if there are
5834         no caller-saved registers.
5835         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5836         for interrupt handler.
5837         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5838         Emit cld instruction if stringops are used in interrupt handler
5839         or interrupt handler isn't a leaf function.
5840         (ix86_expand_epilogue): Generate interrupt return for interrupt
5841         handler and pop the 'ERROR_CODE' off the stack before interrupt
5842         return in exception handler.
5843         (ix86_expand_call): Disallow calling interrupt handler directly.
5844         If there are no caller-saved registers, mark all registers that
5845         are clobbered by the call which returns as clobbered.
5846         (ix86_handle_no_caller_saved_registers_attribute): New function.
5847         (ix86_handle_interrupt_attribute): Likewise.
5848         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5849         attributes.
5850         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5851         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5852         accumulation in interrupt function if stack may be realigned to
5853         avoid DRAP.
5854         (EPILOGUE_USES): New.
5855         (function_type): New enum.
5856         (machine_function): Add func_type and no_caller_saved_registers.
5857         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5858         (interrupt_return): New pattern.
5859         * doc/extend.texi: Document x86 interrupt and
5860         no_caller_saved_registers attributes.
5862 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
5864         PR tree-optimization/52171
5865         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5866         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
5867         Look for constant strings.  Move some code to emit_block_cmp_hints
5868         and use it.
5869         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5870         * defaults.h (COMPARE_MAX_PIECES): New macro.
5871         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5872         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5873         (clear_by_pieces_1): Don't declare.  Move definition before use.
5874         (can_do_by_pieces): New static function.
5875         (can_move_by_pieces): Use it.  Return bool.
5876         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
5877         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
5878         (class pieces_addr); New.
5879         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5880         pieces_addr::adjust, pieces_addr::increment_address,
5881         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5882         functions for it.
5883         (class op_by_pieces_d): New.
5884         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5885         functions for it.
5886         (class move_by_pieces_d, class compare_by_pieces_d,
5887         class store_by_pieces_d): New subclasses of op_by_pieces_d.
5888         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5889         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5890         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5891         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5892         compare_by_pieces_d::finish_mode): New member functions.
5893         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5894         functions.
5895         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5896         (emit_block_cmp_hints): New function.
5897         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5898         use the newly defined classes.
5899         * expr.h (by_pieces_constfn): New typedef.
5900         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5901         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5902         (move_by_pieces_ninsns): Don't declare.
5903         (can_move_by_pieces): Change return value to bool.
5904         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5905         (compare_by_pieces_branch_ratio): New hook.
5906         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5907         (by_pieces_ninsns): Declare.
5908         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5909         COMPARE_BY_PIECES.
5910         (default_compare_by_pieces_branch_ratio): New function.
5911         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5912         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5913         * doc/tm.texi: Regenerate.
5914         * tree-ssa-strlen.c: Include "builtins.h".
5915         (handle_builtin_memcmp): New static function.
5916         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5917         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5919 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5921         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5922         relevant stmts which are simple and invariant.
5923         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5924         instead of simple and invariant
5926 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5928         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5929         (vectorizable_reduction): Check for new relevant state.
5930         (vectorizable_live_operation): vectorize live stmts using
5931         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
5932         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5933         (vect_stmt_relevant_p): Check for stmts which are only used live.
5934         (process_use): Use of a stmt does not inherit it's live value.
5935         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5936         (vect_analyze_stmt): Check for new relevant state.
5937         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5938         outside the loop, but not inside it.
5940 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5942         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5943         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5944         (vect_get_vec_def_for_operand): Split out code.
5946 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5948         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5950 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5952         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5954 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5956         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5958 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
5960         PR middle-end/71387
5961         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5962         to noreturn e->callee->decl that has void return type and void
5963         arguments, adjust gimple_call_fntype and remove lhs even if it had
5964         previously addressable type.
5966 2016-06-02  Jeff Law  <law@redhat.com>
5968         PR tree-optimization/71328
5969         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5970         error when checking for a jump back onto the copied path.
5972 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
5974         * config/microblaze/microblaze.c (get_branch_target): Add return
5975         NULL_RTX for the non-CALL_P case.
5976         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5977         (insert_wic): Remove unused local "j".
5979 2016-06-02  Martin Liska  <mliska@suse.cz>
5981         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5983 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
5984             Julia Koval  <julia.koval@intel.com>
5986         * function.c (assign_parm_setup_stack): Force source into a
5987         register if needed.
5988         * target.def (function_incoming_arg): Update documentation to
5989         allow arbitrary address computation based on hard register.
5990         * doc/tm.texi: Regenerated.
5992 2016-06-02  Martin Liska  <mliska@suse.cz>
5994         * predict.c (combine_predictions_for_bb): Fix first match in
5995         cases where a first predictor contains more than one occurence
5996         in list of predictors.  Take the best value in such case.
5998 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6000         PR rtl-optimization/71295
6001         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
6002         offset would go over the size of the inner mode reject it.
6004 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
6006         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
6007         x=x,x and v=v,m instead of x=x,m.
6009         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
6010         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
6011         alternative to v=rm,C.
6013         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
6014         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
6015         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
6016         instead of vex for the last two above mentioned alternatives.
6018 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6020         PR target/70830
6021         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
6023 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
6025         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
6027 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
6029         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
6030         from int to unsigned.
6032 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
6034         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
6035         alternatives, eliminating preferred register class.  Add support
6036         for the MTVSRDD instruction in ISA 3.0.
6037         (vsx_splat_v4si_internal): Use splat_input_operand instead of
6038         reg_or_indexed_operand.
6039         (vsx_splat_v4sf_internal): Likewise.
6041 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
6043         PR target/71186
6044         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
6045         for loading up all 0's or all 1's.
6047 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6049         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
6051 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
6053         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
6054         extension.
6055         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
6056         * gcc.c (set_source_date_epoch_envvar): New function, sets
6057         the SOURCE_DATE_EPOCH environment variable to the current time.
6059 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
6061         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
6062         the factor for live Phi nodes.
6064 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
6066         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
6067         * tree-parloops.c (parallelize_loops): likewise.
6068         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
6069         tree_unswitch_outer_loop): likewise.
6071 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
6073         PR middle-end/71371
6074         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
6075         around creation of the temporary.
6077 2016-06-01  Richard Biener  <rguenther@suse.de>
6079         PR tree-optimization/71366
6080         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
6081         (unloop_loops): Move removing edges here ...
6082         (try_unroll_loop_completely): ... from here.
6083         (try_peel_loop): ... and here.
6084         (tree_unroll_loops_completely_1): Track parent loops via
6085         bitmap of header BBs.
6086         (tree_unroll_loops_completely): Adjust for that.
6088 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6090         * config/rs6000/altivec.h (vec_slv): New macro.
6091         (vec_srv): New macro.
6092         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
6093         (UNSPEC_VSRV): New value.
6094         (vslv): New insn.
6095         (vsrv): New insn.
6096         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
6097         (vsrv): New builtin definition.
6098         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
6099         define argument types for new builtin.
6100         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
6101         new builtin.
6102         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
6103         functions.
6105 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
6106             Jocelyn Mayer  <l_indien@magic.fr>
6108         PR target/67310
6109         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
6110         detect processor family for signature_CENTAUR_ebx.
6111         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
6112         signature_CENTAUR_ebx.
6113         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
6114         <default>: Pass x86-64 for has_longmode.
6116 2016-06-01  Nathan Sidwell  <nathan@acm.org>
6118         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
6119         undefined weak.
6121 2016-06-01  Richard Biener  <rguenther@suse.de>
6123         PR tree-optimization/71261
6124         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
6125         of stmts successfully put in the bool pattern.  Remove
6126         single-use restriction.
6127         (adjust_bool_pattern_cast): Add cast at the use site via the
6128         pattern def sequence.
6129         (adjust_bool_pattern): Remove recursion, maintain a hash-map
6130         of patterned defs.  Use the pattern def seqence instead of
6131         multiple independent patterns.
6132         (sort_after_uid): New qsort compare function.
6133         (adjust_bool_stmts): New function to process stmts in the bool
6134         pattern in IL order.
6135         (vect_recog_bool_pattern): Adjust.
6136         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
6137         (ifcvt_walk_pattern_tree): Likewise.
6138         (stmt_is_root_of_bool_pattern): Likewise.
6139         (ifcvt_repair_bool_pattern): Likewise.
6140         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
6142 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
6144         * loop-unroll.c (decide_unroll_constant_iterations,
6145         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
6146         likely upper bounds.
6147         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
6149 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
6151         * tree-core.h (enum omp_clause_code): Remove
6152         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
6154 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6156         * config/arm/sync.md (arm_store_exclusive<mode>):
6157         Use 'H' output modifier on operands[2] rather than creating a new
6158         entry in out-of-bounds memory of the operands array.
6159         (arm_store_release_exclusivedi): Likewise.
6161 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6163         * config/arm/arm.c (arm_fusion_enabled_p): New function.
6164         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
6165         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
6166         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
6168 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
6170         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
6171         into account live statements for mask producers.
6173 2016-06-01  Richard Biener  <rguenther@suse.de>
6175         PR tree-optimization/71311
6176         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
6177         restrict to non-INTEGER_CST @0.
6179 2016-06-01  Richard Biener  <rguenther@suse.de>
6181         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
6182         (relational patterns): Use :c to avoid pattern duplications.
6184 2016-06-01  Richard Biener  <rguenther@suse.de>
6186         * genmatch.c (comparison_code_p): New predicate.
6187         (swap_tree_comparison): New function.
6188         (commutate): Add for_vec parameter to append new for entries.
6189         Support commutating relational operators by swapping it alongside
6190         operands.
6191         (lower_commutative): Adjust.
6192         (dt_simplify::gen): Do not pass artificial operators to gen
6193         functions.
6194         (decision_tree::gen): Do not add artificial operators as parameters.
6195         (parser::parse_expr): Verify operator commutativity when :c is
6196         applied.  Allow :C to override this.
6197         * match.pd: Adjust patterns to use :C instead of :c where required.
6199 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
6201         PR tree-optimization/71077
6202         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
6203         the combining step, use boolean_false_node and boolean_true_node
6204         as the designated false/true return values.
6206 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
6208         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
6209         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
6210         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
6211         PRED_LOOP_EXIT.
6213 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
6215         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
6216         of flags impliying the register renaming.
6217         * toplev.c (process_options): Do not imply flag_rename_registers with
6218         loop peeling.
6220 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
6222         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
6223         default implementation.
6225 2016-05-31  Nathan Sidwell  <nathan@acm.org>
6227         * dwarf2out.c (cur_line_info_table): Add GTY marker.
6229 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
6231         * config/sh/constraints.md (b): Remove constraint.
6232         * config/sh/predicates.md (arith_reg_operand): Remove
6233         TARGET_REGISTER_P.
6234         * config/sh/sh-modes.def (PDI): Remove.
6235         * config/sh/sh.c (sh_target_reg_class,
6236         sh_optimize_target_register_callee_saved): Remove functions.
6237         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
6238         (sh_expand_epilogue): Update comment.
6239         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
6240         sh_secondary_reload): Remove TARGET_REGS related code.
6241         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
6242         TARGET_REGISTER_P): Remove macros.
6243         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
6244         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
6245         TR1_REG, TR2_REG): Remove constants.
6246         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
6248 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
6250         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
6251         define_expand patterns.
6252         (adddi3_compact): Rename to adddi3.
6253         (subdi3_compact): Rename to subdi3.
6254         (*negdi2): Rename to negdi2.
6255         (*abs<mode>2): Rename to abs<mode>2.
6257 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
6259         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
6260         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
6261         (atomic_sub_fetchsi): ... this new pattern.
6262         (mvtc): Add CC_REG clobber.
6264 2016-05-31  Marek Polacek  <polacek@redhat.com>
6266         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
6268 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6270         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
6271         aarch64_fusion_enabled_p to check for fusion capabilities.
6273 2016-05-31  Richard Biener  <rguenther@suse.de>
6275         PR tree-optimization/71352
6276         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
6277         minus one and a negate.
6279 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6281         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
6282         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6283         Delete prototype.
6284         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
6285         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
6286         Remove use of aarch64_simd_attr_length_move, set length attribute
6287         directly.
6288         (*aarch64_be_movoi): Likewise.
6289         (*aarch64_be_movci): Likewise.
6290         (*aarch64_be_movxi): Likewise.
6292 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
6294         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
6295         It no longer does that.
6296         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
6298 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
6300         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
6301         attribute __unused__.
6303 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6305         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
6306         * config/arm/arm.c (arm_arch_thumb1): Define.
6307         (arm_option_override): Initialize arm_arch_thumb1.
6308         * config/arm/arm.h (arm_arch_thumb1): Declare.
6309         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
6310         support Thumb-1 ISA.
6312 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
6314         PR target/71346
6315         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
6316         `Yv' for scalar operand.
6318 2016-05-31  Tom de Vries  <tom@codesourcery.com>
6320         PR tree-optimization/69068
6321         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
6322         phis with more than two args.
6324 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
6326         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
6327         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
6328         target.
6330 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
6332         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
6333         tune_64.
6334         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
6335         support on SPARC.
6336         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
6337         cpu_32, cpu_64, tune_32 and tune_64.
6338         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
6340 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
6342         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
6344 2016-05-30  Andi Kleen  <ak@linux.intel.com>
6346         * auto-profile.c (read_profile): Replace asserts with errors
6347         when file does not exist.
6348         * gcov-io.c (gcov_read_words): Dito.
6350 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6352         * tree-cfg.c (print_loop): Print likely upper bounds.
6354 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6356         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
6357         * opts.c (default_options): Enable peel loops at -O3.
6358         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
6359         (try_peel_loop): Do not re-peel already peeled loops;
6360         use likely upper bounds; fix profile updating.
6361         (pass_complete_unroll::execute): Initialize peeled_loops.
6363 2016-05-30  Martin Liska  <mliska@suse.cz>
6365         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
6366         computed costs by frequency of BB they belong to.
6367         (get_scaled_computation_cost_at): New function.
6369 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
6370             Marc Glisse  <marc.glisse@inria.fr>
6372         PR tree-optimization/71289
6373         * match.pd (-1 / B < A, A > -1 / B): New transformations.
6375 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6377         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
6379 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6381         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
6382         for peeled copies; avoid underflow when updating estimates; correctly
6383         scale loop profile.
6385 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
6387         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
6388         r236875. Corrected oe3 to oe2 as obvious.
6390 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
6392         PR middle-end/71269
6393         PR middle-end/71252
6394         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
6395         that inserted stmt will not dominate stmts that defines its operand.
6396         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
6397         (rewrite_expr_tree_parallel): Likewise.
6399 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
6401         PR middle-end/71252
6402         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
6403         all fields including stmt_to_insert are swapped.
6405 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6407         * predict.h (force_edge_cold): Declare.
6408         * predict.c (force_edge_cold): New function.
6409         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
6410         updating.
6411         (canonicalize_loop_induction_variables): Fix formating.
6413 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6415         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
6416         (visium_expand_copysign): Use gen_int_mode directly.
6417         (visium_compute_frame_size): Minor tweaks.
6419 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
6421         * tree-vect-loop.c (vect_analyze_loop_2): Use
6422         likely_max_stmt_executions_int.
6424 2016-05-30  Tom de Vries  <tom@codesourcery.com>
6426         PR tree-optimization/69067
6427         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
6429 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
6431         PR target/71245
6432         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
6433         New peepholes to remove unneeded fild/fistp pairs.
6434         (define_peephole2 atomic_loaddi_fpu): Ditto.
6436 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6438         * predict.c (maybe_hot_frequency_p): Avoid division.
6440 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
6442         * doc/install.texi: Use https for shop.fsf.org.
6444 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6446         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
6447         likely_max_stmt_executions_int.
6449 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6451         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
6452         likely_max_stmt_executions_int.
6454 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6456         * profile.c (compute_branch_probabilities): Do not report hitrates
6457         here.
6458         (branch_prob): Report hitrates here.
6459         * predict.c (gimple_predict_edge): Do not assert profile status;
6460         fix formatting issues.
6462 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6464         * predict.c (edge_predicted_by_p): New function.
6465         (predict_paths_for_bb): Do not put multiple predictions of the same type
6466         on one edge.
6468 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6470         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
6471         commit.
6473 2016-05-28  Alan Modra  <amodra@gmail.com>
6475         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
6477 2016-05-28  Alan Modra  <amodra@gmail.com>
6479         PR rtl-optimization/71275
6480         * ira.c (ira): Free dominance info.
6482 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
6484         * doc/sourcebuild.texi: New address for upstream Go repository.
6486 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6488         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
6489         (TARGET_ARM_V7M): Likewise.
6491 2016-05-26  Jeff Law  <law@redhat.com>
6493         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
6494         (thread_across_edge): Remove calls to find_jump_threads_backwards.
6495         * passes.def: Add jump threading passes before DOM/VRP.
6496         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
6497         argument to a basic block from an edge.  Remove tests which are
6498         handled elsewhere.
6499         (pass_data_thread_jumps, class pass_thread_jumps): New.
6500         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
6501         (make_pass_thread_jumps): Likewise.
6502         * tree-pass.h (make_pass_thread_jumps): Declare.
6504 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6506         * config/visium/visium-protos.h (split_double_move): Rename into...
6507         (visium_split_double_move): ...this.
6508         (visium_split_double_add): Declare.
6509         * config/visium/visium.c (split_double_move): Rename into...
6510         (visium_split_double_move): ...this.
6511         (visium_split_double_add): New function.
6512         (visium_expand_copysign): Renumber operands for consistency.
6513         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
6514         (DFmode move splitter): Likewise.
6515         (*addi3_insn): Split by means of visium_split_double_add.
6516         (*adddi3_insn_flags): Delete.
6517         (*plus_plus_sltu<subst_arith>): New insn.
6518         (*subdi3_insn): Split by means of visium_split_double_add.
6519         (subdi3_insn_flags): Delete.
6520         (*minus_minus_sltu<subst_arith>): New insn.
6521         (*negdi2_insn): Split by means of visium_split_double_add.
6522         (*negdi2_insn_flags): Delete.
6524 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
6526         * configure.ac: Treat a --with-headers option without argument
6527         the same as the default (i.e. consult sys-include directory).
6528         * configure: Regenerate.
6530 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6532         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
6533         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
6534         prototype.
6535         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
6536         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
6538 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
6540         PR target/63596
6541         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
6542         tree-stdarg analysis results.
6543         (aarch64_setup_incoming_varargs): Likewise.
6545 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
6547         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
6548         va_list_gpr_counter_field and va_list_fpr_counter_field.
6550 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
6552         PR67609
6553         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
6554         * config/aarch64/aarch64.c
6555         (aarch64_cannot_change_mode_class): Remove function.
6556         * config/aarch64/aarch64-protos.h
6557         (aarch64_cannot_change_mode_class): Remove.
6559 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
6561         * cfgloop.c (record_niter_bound): Record likely upper bounds.
6562         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
6563         get_likely_max_loop_iterations_int): New.
6564         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
6565         any_likely_upper_bound.
6566         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
6567         Declare.
6568         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
6569         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
6570         upper bound.
6571         (unroll_loop_constant_iterations): Likewise.
6572         (unroll_loop_runtime_iterations): Likewise.
6573         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
6574         * lto-streamer-out.c (output_cfg): Likewise.
6575         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
6576         bounds.
6577         (canonicalize_loop_induction_variables): Dump likely upper bounds.
6578         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
6579         (likely_max_loop_iterations): New.
6580         (likely_max_loop_iterations_int): New.
6581         (likely_max_stmt_executions): New.
6582         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
6583         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
6584         likely_max_stmt_executions): Declare.
6586 2016-05-27  Marek Polacek  <polacek@redhat.com>
6588         PR middle-end/71308
6589         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
6591 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6593         * config/s390/s390.md (2x risbg splitters): Use
6594         reg_overlap_mentioned_p instead of rtx_equal_p.
6596 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6598         * combine.c (make_compound_operation): Take known zero bits into
6599         account when checking for possible zero_extend.
6601 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6603         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
6604         Use const_int_operand for operand 2 predicate.  Simplify expand code
6605         as a result.
6607 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
6609         PR middle-end/71279
6610         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
6611         into comparison.
6613 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6615         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
6616         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
6617         that returns CC_SESWPmode and CC_ZESWPmode.
6618         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
6619         and CC_SESWPmode.
6620         (aarch64_rtx_costs): Likewise.
6622 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6624         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
6625         for ISA 3.0 min/max support.
6626         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
6627         conditional move support.
6628         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
6629         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
6630         available.
6631         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
6632         conditional moves where the comparison type is different from move
6633         type.
6634         (fp_minmax): New code iterator for smin/smax.
6635         (minmax): New code attributes for min/max.
6636         (SMINMAX): Likewise.
6637         (smax<mode>3): Combine min, max insns into one insn using the
6638         fp_minmax code iterator.  Add support for ISA 3.0 min/max
6639         instructions that don't need -ffast-math.
6640         (s<minmax><mode>3): Likewise.
6641         (smax<mode>3_vsx): Likewise.
6642         (smin<mode>3): Likewise.
6643         (s<minmax><mode>3_vsx): Likewise.
6644         (smin<mode>3_vsx): Likewise.
6645         (pre-VSX min/max splitters): Likewise.
6646         (s<minmax><mode>3_fpr): Likewise.
6647         (movsfcc): Rewrite floating point conditional moves to combine
6648         SFmode/DFmode into a single insn.
6649         (mov<mode>cc): Likewise.
6650         (movdfcc): Likewise.
6651         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
6652         SFDF2 iterators to handle all combinations.
6653         (fseldfsf4): Likewise.
6654         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
6655         (fseldfdf4): Likewise.
6656         (fselsfdf4): Likewise.
6657         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
6658         comparison instructions that set a 0/-1 mask, and use it for
6659         floating point conditional move via XXSEL.
6660         (fpmask<mode>): Likewise.
6661         (xxsel<mode>): Likewise.
6662         * config/rs6000/predicates.md (min_max_operator): Delete, no
6663         longer used.
6664         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
6665         instructions that generate a 0/-1 mask for use with XXSEL.
6666         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
6667         say whether floating point min/max is available, either through
6668         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
6669         (TARGET_MINMAX_DF): Likewise.
6671 2016-05-27  Alan Modra  <amodra@gmail.com>
6673         PR rtl-optimization/71275
6674         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
6675         for update_equiv_regs and combine_and_move_insns.
6677 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
6679         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
6680         if_then_else or cond RTXes to calculate attribute value.
6681         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
6682         <attr "length_immediate>: Ditto.
6683         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
6684         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
6685         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
6686         <attr "type">: Ditto.
6687         <attr "prefix_data16">: Ditto.
6688         <attr "prefix_extra">: Ditto.
6689         <attr "length_immediate">: Ditto.
6690         <attr "prefix">: Ditto.
6691         (vec_set<mode>_0) <attr "isa">: Ditto.
6692         <attr "prefix_extra">: Ditto.
6693         <attr "length_immediate">: Ditto.
6694         <attr "prefix">: Ditto.
6695         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
6696         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
6697         (sse2_storelpd) <attr "prefix_data16">: Ditto.
6698         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
6699         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
6700         <attr "length_immediate">: Ditto.
6701         <attr "prefix">: Ditto.
6702         (sse2_movsd) <attr "length_immediate">: Ditto.
6703         <attr "prefix">: Ditto.
6704         (vec_concatv2df)  <attr "isa">: Ditto.
6705         <attr "prefix">: Ditto.
6706         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
6707         (*vec_extractv2di_1) <attr "isa">: Ditto.
6708         <attr "type">: Ditto.
6709         <attr "length_immediate">: Ditto.
6710         <attr "prefix_rex">: Ditto.
6711         <attr "prefix_extra">: Ditto.
6712         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
6713         <attr "prefix_extra">: Ditto.
6714         <attr "length_immediate">: Ditto.
6715         (vec_concatv2di) <attr "isa">: Ditto.
6716         <attr "prefix_extra">: Ditto.
6717         <attr "length_immediate">: Ditto.
6718         <attr "prefix">: Ditto.
6720 2016-05-26  Martin Liska  <mliska@suse.cz>
6722         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
6723         function.
6724         (operator+): Likewise.
6725         (operator-): Likewise.
6726         (comp_cost::operator+=): Likewise.
6727         (comp_cost::operator-=): Likewise.
6728         (comp_cost::operator/=): Likewise.
6729         (comp_cost::operator*=): Likewise.
6730         (operator<): Likewise.
6731         (operator==): Likewise.
6732         (operator<=): Likewise.
6733         (new_cost): Remove.
6734         (infinite_cost_p): Likewise.
6735         (add_costs): Likewise.
6736         (sub_costs): Likewise.
6737         (compare_costs): Likewise.
6738         (set_group_iv_cost): Use the newly introduced functions.
6739         (get_address_cost): Likewise.
6740         (get_shiftadd_cost): Likewise.
6741         (force_expr_to_var_cost): Likewise.
6742         (split_address_cost): Likewise.
6743         (ptr_difference_cost): Likewise.
6744         (difference_cost): Likewise.
6745         (get_computation_cost_at): Likewise.
6746         (determine_group_iv_cost_generic): Likewise.
6747         (determine_group_iv_cost_address): Likewise.
6748         (determine_group_iv_cost_cond): Likewise.
6749         (autoinc_possible_for_pair): Likewise.
6750         (determine_group_iv_costs): Likewise.
6751         (cheaper_cost_pair): Likewise.
6752         (iv_ca_recount_cost): Likewise.
6753         (iv_ca_set_no_cp): Likewise.
6754         (iv_ca_set_cp): Likewise.
6755         (iv_ca_cost): Likewise.
6756         (iv_ca_new): Likewise.
6757         (iv_ca_dump): Likewise.
6758         (iv_ca_narrow): Likewise.
6759         (iv_ca_prune): Likewise.
6760         (iv_ca_replace): Likewise.
6761         (try_add_cand_for): Likewise.
6762         (try_improve_iv_set): Likewise.
6763         (find_optimal_iv_set): Likewise.
6765 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
6767         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
6768         that internal functions will clobber all caller-saved registers.
6770 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
6772         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
6773         Return a better case_values_threshold when optimizing.
6775 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
6777         * config/aarch64/aarch64-simd.md (aarch64_combinez):
6778         Add ? to integer variant.
6779         (aarch64_combinez_be): Likewise.
6781 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
6783         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
6784         instead of x constraint.
6785         (vcvtps2ph256<mask_name>): Likewise.
6787         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
6788         alternative.  Formatting fix.
6790         * config/i386/sse.md
6791         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
6792         to ...
6793         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
6794         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
6795         maybe_evex prefix instead of vex.
6796         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
6797         EXT_REX_SSE_REG_P (op0) case in the splitter.
6799 2016-05-25  Jeff Law  <law@redhat.com>
6801         PR tree-optimization/71272
6802         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
6803         Update comments.  Add test for empty path.
6805 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
6807         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
6808         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
6809         special case builtin.
6810         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6811         code for ALTIVEC_BUILTIN_VEC_CMPNE.
6812         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6813         for __builtin_vec_cmpne.
6815 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6817         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
6818         redundant test and bail out if the type of the new operand is not
6819         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
6821 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
6823         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
6824         (x_ix86_target_flags_explicit): Remove.
6825         * config/i386/i386.c (ix86_function_specific_save): Do not copy
6826         x_ix86_target_flags_explicit.
6827         (ix86_function_specific_restore): Ditto.
6829 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
6830             H.J. Lu  <hongjiu.lu@intel.com>
6832         PR target/70738
6833         * common/config/i386/i386-common.c
6834         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6835         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6836         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6837         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6838         (-mgeneral-regs-only): Add new option.
6839         * config/i386/i386.c (ix86_option_override_internal): Don't enable
6840         x87 instructions if only general registers are allowed.
6841         (ix86_target_string): Add ix86_flags argument. Handle additional
6842         flags options through ix86_flags argument.  Update all callers.
6843         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6845 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6847         PR rtl-optimization/66940
6848         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6849         decrementing desired_val will not overflow before performing these
6850         operations.
6852 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
6854         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6855         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6856         * config/i386/i386.c (enum ix86_builtins): Add
6857         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6858         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6859         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6860         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6861         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6862         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6863         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6864         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6865         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6866         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6867         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6868         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6869         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6870         __builtin_ia32_cvtps2dq512_mask.
6871         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6872         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6873         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6874         * config/i386/sse.md
6875         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6876         Rename to ...
6877         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6878         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6879         to ...
6880         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6881         (avx512f_vec_pack_sfix_v8df): New define_expand.
6882         (avx512f_roundpd512): Rename to ...
6883         (avx512f_round<castmode>512): ... this.  Change iterator.
6884         (avx512f_roundps512_sfix): New define_expand.
6885         (round<mode>2_sfix): Change iterator.
6887 2016-05-25  Nick Clifton  <nickc@redhat.com>
6889         * config/msp430/msp430.c (msp430_attr): Produce an error if a
6890         static interrupt handler is detected.
6891         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6892         default linker script.
6893         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6894         the low part of a symbolic pointer.
6896 2016-05-25  Richard Biener  <rguenther@suse.de>
6898         PR tree-optimization/71261
6899         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6900         interesting stmt instead of immediate uses when looking
6901         for the use operand to replace.
6903 2016-05-25  Martin Liska  <mliska@suse.cz>
6905         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6907 2016-05-25  Richard Biener  <rguenther@suse.de>
6909         PR tree-optimization/71264
6910         * tree-vect-stmts.c (vect_init_vector): Properly deal with
6911         vector type val.
6913 2016-05-25  Martin Liska  <mliska@suse.cz>
6915         PR tree-optimization/71239
6916         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6917         if DECL_SIZE is NULL.
6919 2016-05-25  Richard Biener  <rguenther@suse.de>
6921         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6922         * tree-if-conv.c (pass_data_if_conversion): Use it.
6924 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6926         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6927         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6928         * varpool.c (varpool_node::get_availability): Likewise.
6930 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6932         * config/rs6000/altivec.md (VNEG iterator): New iterator for
6933         VNEGW/VNEGD instructions.
6934         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6935         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6936         support for ISA 3.0 VNEGW/VNEGD instructions.
6938 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
6940         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6941         pointers inside OACC_DATA regions.
6942         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6943         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6944         (gimplify_adjust_omp_clauses): Fix typo in comment.
6946 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6948         * config/rs6000/altivec.md (VParity): New mode iterator for vector
6949         parity built-in functions.
6950         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6951         zeros.
6952         (p9v_parity<mode>2): Likewise.
6953         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6954         parity.
6955         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6956         (parity<mode>2): ISA 3.0 expander for vector parity.
6957         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6958         power9 built-ins.
6959         (BU_P9_64BIT_MISC_0): Likewise.
6960         (BU_P9_MISC_0): Likewise.
6961         (BU_P9V_AV_1): Likewise.
6962         (BU_P9V_AV_2): Likewise.
6963         (BU_P9V_AV_3): Likewise.
6964         (BU_P9V_AV_P): Likewise.
6965         (BU_P9V_VSX_1): Likewise.
6966         (BU_P9V_OVERLOAD_1): Likewise.
6967         (BU_P9V_OVERLOAD_2): Likewise.
6968         (BU_P9V_OVERLOAD_3): Likewise.
6969         (VCTZB): Add vector count trailing zeros support.
6970         (VCTZH): Likewise.
6971         (VCTZW): Likewise.
6972         (VCTZD): Likewise.
6973         (VPRTYBD): Add vector parity support.
6974         (VPRTYBQ): Likewise.
6975         (VPRTYBW): Likewise.
6976         (VCTZ): Add overloaded vector count trailing zeros support.
6977         (VPRTYB): Add overloaded vector parity support.
6978         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6979         overloaded vector count trailing zeros and parity instructions.
6980         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6981         vector parity support.
6982         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6983         trailing zeros support.
6984         (vec_cntlz): Likewise.
6985         (vec_vctzb): Likewise.
6986         (vec_vctzd): Likewise.
6987         (vec_vctzh): Likewise.
6988         (vec_vctzw): Likewise.
6989         (vec_vprtyb): Add ISA 3.0 vector parity support.
6990         (vec_vprtybd): Likewise.
6991         (vec_vprtybw): Likewise.
6992         (vec_vprtybq): Likewise.
6993         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6994         the ISA 3.0 vector count trailing zeros and vector parity built-in
6995         functions.
6997 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6999         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
7000         when there is stmt_to_insert.
7002 2016-05-24  Martin Sebor  <msebor@redhat.com>
7004         PR c++/71147
7005         * tree.h (complete_or_array_type_p): New inline function.
7007 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
7009         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
7010         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
7011         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
7013         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
7014         Limit 1st alternative to noavx isa, split 2nd alternative into one
7015         noavx and one avx alternative, use *x and Bm in the former and
7016         x and m in the latter.
7018         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
7019         of sse4 for the first alternative, drop %v from the template
7020         and d operand modifier.  Split second alternative into one sse4_noavx
7021         and one avx alternative, use *x instead of *v in the former and v
7022         instead of *v in the latter.
7023         (*sse4_1_extractps): Use noavx isa instead of * for the first
7024         alternative, drop %v from the template.  Split second alternative into
7025         one noavx and one avx alternative, use *x instead of *v in the
7026         former and v instead of *v in the latter.
7027         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
7028         with noavx and the last one with avx.
7029         (sse4_1_phminposuw): Guard first alternative with noavx isa,
7030         split the second one into one noavx and one avx alternative,
7031         use *x and Bm in the former and x and m in the latter one.
7032         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
7033         alternatives.
7035         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
7036         first two alternatives to noavx, use *x instead of *v in the second
7037         one, add avx alternative without *.
7038         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
7039         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
7040         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
7042 2016-05-24  Jeff Law  <law@redhat.com>
7044         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
7045         New function, extracted from...
7046         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
7047         Allow simple copies and constant initializations in the SSA chain.
7049 2016-05-24  Marek Polacek  <polacek@redhat.com>
7051         PR c/71249
7052         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
7053         scope.
7055 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
7057         PR c++/71257
7058         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
7059         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7060         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
7061         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
7062         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
7064 2016-05-24  Richard Biener  <rguenther@suse.de>
7066         PR tree-optimization/71240
7067         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
7068         has integral type.
7070 2016-05-24  Richard Biener  <rguenther@suse.de>
7072         PR tree-optimization/71230
7073         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
7075 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
7077         * tree-vectorizer.h (vectorizable_comparison): Delete.
7078         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
7079         PURE_SLP_STMT check.
7080         * tree-vect-stmts.c (vectorizable_call): Likewise.
7081         (vectorizable_simd_clone_call): Likewise.
7082         (vectorizable_conversion): Likewise.
7083         (vectorizable_assignment): Likewise.
7084         (vectorizable_shift): Likewise.
7085         (vectorizable_operation): Likewise.
7086         (vectorizable_load): Likewise.
7087         (vectorizable_condition): Likewise.
7088         (vectorizable_store): Likewise.  Assert that we don't have
7089         hybrid SLP.
7090         (vectorizable_comparison): Make static.  Remove redundant
7091         PURE_SLP_STMT check.
7092         (vect_transform_stmt): Assert that we always have an slp_node
7093         if PURE_SLP_STMT.
7095 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7097         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
7098         operands[2] against 1 with comparison against CONST1_RTX.
7099         (<shift>di3_neon): Likewise.
7100         * config/arm/predicates.md (const0_operand): Replace with comparison
7101         against CONST0_RTX.
7103 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7105         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
7106         operands[2] against 1 with comparison against CONST1_RTX.
7107         (ashrdi3): Likewise.
7108         (lshrdi3): Likewise.
7109         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
7110         UINTVAL.
7111         (ashrsi3): Likewise.
7112         (lshrsi3): Likewise.
7113         (rotrsi3): Likewise.
7114         (define_split above *compareqi_eq0): Likewise.
7115         (define_split above "prologue"): Likewise.
7116         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
7117         * config/arm/predicates.md (shift_operator): Likewise.
7118         (shift_nomul_operator): Likewise.
7119         (sat_shift_operator): Likewise.
7120         (thumb1_cmp_operand): Likewise.
7121         (const_neon_scalar_shift_amount_operand): Replace manual range
7122         check with IN_RANGE.
7123         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
7124         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
7126 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7128         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
7129         with HOST_WIDE_INT_1.
7130         (insv): Likewise.
7131         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
7132         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
7133         (arm_canonicalize_comparison): Likewise.
7134         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
7135         HOST_WIDE_INT_1.
7136         (thumb1_size_rtx_costs): Likewise.
7137         (vfp_const_double_index): Replace cast of 1 to unsigned
7138         HOST_WIDE_INT with HOST_WIDE_INT_1U.
7139         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
7140         HOST_WIDE_INT_1.
7141         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
7142         HOST_WIDE_INT with HOST_WIDE_INT_1U.
7143         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
7144         HOST_WIDE_INT with HOST_WIDE_INT_1.
7146 2016-05-24  Marek Polacek  <polacek@redhat.com>
7148         * tree-cfg.h (should_remove_lhs_p): New predicate.
7149         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
7150         * gimplify.c (gimplify_modify_expr): Likewise.
7151         * tree-cfg.c (verify_gimple_call): Likewise.
7152         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
7153         * gimple-fold.c: Include "tree-cfg.h".
7154         (gimple_fold_call): Use should_remove_lhs_p.
7156 2016-05-24  Richard Biener  <rguenther@suse.de>
7158         PR tree-optimization/71253
7159         * cfganal.h (control_dependences): Make robust against edge
7160         and BB removal.
7161         (control_dependences::control_dependences): Remove edge_list argument.
7162         (control_dependences::get_edge): Remove.
7163         (control_dependences::get_edge_src): Add.
7164         (control_dependences::get_edge_dest): Likewise.
7165         (control_dependences::m_el): Make a vector of edge src/dest index.
7166         * cfganal.c (control_dependences::find_control_dependence): Adjust.
7167         (control_dependences::control_dependences): Likewise.
7168         (control_dependences::~control_dependence): Likewise.
7169         (control_dependences::get_edge): Remove.
7170         (control_dependences::get_edge_src): Add.
7171         (control_dependences::get_edge_dest): Likewise.
7172         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
7173         get_edge_src.
7174         (perform_tree_ssa_dce): Adjust.
7175         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
7176         get_edge_src.
7177         (pass_loop_distribution::execute): Adjust.  Do loop destroying
7178         conditional on changed.
7180 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7182         PR target/69857
7183         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
7184         return.  Reindent transformation comment and mention the ARM state
7185         behavior.
7187 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
7189         PR middle-end/71252
7190         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
7191         after build_and_add_sum creates new use stmt.
7193 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
7195         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
7196         load_lanes/grouped_load classification comes first.  Don't check
7197         whether the vectorization factor is a multiple of the group size
7198         for load_lanes.
7200 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
7202         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
7203         GROUP_GAP for single-element interleaving.
7204         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
7205         variable.
7207 2016-05-24  Richard Biener  <rguenther@suse.de>
7209         PR middle-end/70434
7210         PR c/69504
7211         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
7212         bases which are accessed with non-invariant indices.
7213         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
7214         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
7216 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
7218         PR middle-end/71170
7219         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
7220         (add_to_ops_vec): Add stmt_to_insert.
7221         (add_repeat_to_ops_vec): Init stmt_to_insert.
7222         (insert_stmt_before_use): New.
7223         (transform_add_to_multiply): Remove mult_stmt insertion and add it
7224         to ops vector.
7225         (get_ops): Init stmt_to_insert.
7226         (maybe_optimize_range_tests): Likewise.
7227         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
7228         (rewrite_expr_tree_parallel): Likewise.
7229         (reassociate_bb): Likewise.
7231 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7233         PR target/71201
7234         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
7235         ISA 3.0 xxperm fusion alternative.
7236         (altivec_vperm_v8hiv16qi): Likewise.
7237         (altivec_vperm_<mode>_uns_internal): Likewise.
7238         (vperm_v8hiv4si): Likewise.
7239         (vperm_v16qiv8hi): Likewise.
7241 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7242             Kelvin Nilsen  <kelvin@gcc.gnu.org>
7244         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
7245         vpermr/xxpermr on ISA 3.0.
7246         (altivec_expand_vec_perm_le): Likewise.
7247         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
7248         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
7249         ISA 3.0.
7251 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
7253         * config/i386/i386.h (IS_STACK_MODE): Enable for
7254         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
7255         SSE_FLOAT_MODE_P macros.
7256         * config/i386/i386.c (ix86_preferred_reload_class): Use
7257         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
7258         Cleanup regclass processing for CONST_DOUBLE_P.
7259         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
7260         (ix86_rtx_costs): Remove redundant TARGET_80387 check
7261         with IS_STACK_MODE macro.
7262         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
7263         with TARGET_SSE2.
7264         (*movdf_internal): Use IS_STACK_MODE macro.
7265         (*movsf_internal): Ditto.
7267 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
7269         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
7270         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
7272 2016-05-23  Jeff Law  <law@redhat.com>
7274         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
7275         extracted from ...
7276         (fsm_find_control_statement_thread_paths): Call it.
7278 2016-05-23  Martin Jambor  <mjambor@suse.cz>
7280         PR ipa/71234
7281         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
7282         from_global_constant if t is not NULL.
7284 2016-05-23  Marek Polacek  <polacek@redhat.com>
7286         PR c/49859
7287         * common.opt (Wswitch-unreachable): New option.
7288         * doc/invoke.texi: Document -Wswitch-unreachable.
7289         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
7290         warning.
7292 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
7294         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
7295         TMR_INDEX is non-NULL.
7297 2016-05-23  Richard Biener  <rguenther@suse.de>
7299         PR tree-optimization/71230
7300         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
7301         (try_special_add_to_ops): ... here.  Always test for single-use.
7303 2016-05-23  Martin Jambor  <mjambor@suse.cz>
7305         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
7306         default block if a PHI node in the original one would be resized.
7308 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7310         PR tree-optimization/58135
7311         * tree-vect-slp.c: When group size is not multiple
7312         of vector size, allow splitting of store group at
7313         vector boundary.
7315 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
7317         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
7319 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
7321         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
7322         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
7323         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
7324         of 64x2.
7326         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
7327         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
7328         v constraint instead of x and vinserti32x4 insn.
7330         * config/i386/sse.md (i128vldq): New mode iterator.
7331         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
7332         avx512dq and avx512vl alternatives.
7334         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
7335         constraint, use maybe_evex prefix instead of vex.
7336         (vec_dupv4sf): Use v constraint instead of x for output
7337         operand except for noavx alternative, use Yv constraint
7338         instead of x for input.  Use maybe_evex prefix instead of vex.
7339         (*vec_dupv4si): Likewise.
7340         (*vec_dupv2di): Likewise.
7342 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7344         PR middle-end/40921
7345         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
7346         (linearize_expr_tree): Call try_special_add_to_ops.
7347         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
7349 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7351         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
7352         to computed stack_usage.
7354 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7356         PR target/71103
7357         * config/avr/avr.md (define_expand "mov<mode>"): If the source
7358         operand is subreg (symbol_ref) then move the symbol ref to register.
7360 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
7362         * tree.c (array_at_struct_end_p): Look through MEM_REF.
7364 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
7366         PR middle-end/71179
7367         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
7368         VECTOR type.
7370 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7372         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
7373         ranges by calling get_single_symbol and tidy up.  Look more closely
7374         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
7376 2016-05-20  Jeff Law  <law@redhat.com>
7378         * bitmap.c (bitmap_find_bit): Remove useless test.
7380 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
7382         * function.c (thread_prologue_and_epilogue_insns): Commit the
7383         insertion of the epilogue.
7385 2016-05-20  Martin Jambor  <mjambor@suse.cz>
7387         PR tree-optimization/70884
7388         * tree-sra.c (initialize_constant_pool_replacements): Do not check
7389         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
7390         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
7391         of constant pool data as a reason for scalarization.
7393 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7395         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
7396         for naked functions.
7397         (thumb1_expand_prologue): Likewise.
7399 2016-05-20  Nathan Sidwell  <nathan@acm.org>
7401         * config/nvptx/nptx.c (nvptx_option_override): Only set
7402         flag_toplevel_reorder, if not explicitly specified.  Set
7403         flag_no_common, unless explicitly specified.
7405 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
7407         * calls.c (can_implement_as_sibling_call_p): Mark param
7408         reg_parm_stack_space with ATTRIBUTE_UNUSED.
7410 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
7412         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
7413         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
7414         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
7415         constants.
7416         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
7417         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
7418         and CASE_CONST_ANY.
7420 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
7422         * config/nvptx/nvptx.md (sincossf3): New pattern.
7424 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
7426         * calls.c (maybe_complain_about_tail_call): New function.
7427         (initialize_argument_information): Call
7428         maybe_complain_about_tail_call when clearing *may_tailcall.
7429         (can_implement_as_sibling_call_p): Call
7430         maybe_complain_about_tail_call when returning false.
7431         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
7432         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
7433         if tail-call optimization fails.
7434         * cfgexpand.c (expand_call_stmt): Initialize
7435         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
7436         * gimple-pretty-print.c (dump_gimple_call): Dump
7437         gimple_call_must_tail_p.
7438         * gimple.c (gimple_build_call_from_tree): Call
7439         gimple_call_set_must_tail with the value of
7440         CALL_EXPR_MUST_TAIL_CALL.
7441         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
7442         (gimple_call_set_must_tail): New function.
7443         (gimple_call_must_tail_p): New function.
7444         * print-tree.c (print_node): Update printing of TREE_STATIC
7445         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
7446         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
7447         trailing comment listing applicable flags.
7448         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
7450 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
7452         * calls.c (expand_call): Move "Rest of purposes for tail call
7453         optimizations to fail" to...
7454         (can_implement_as_sibling_call_p): ...this new function, and
7455         split into multiple "if" statements.
7457 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
7459         * cfgloop.h (expected_loop_iterations_unbounded,
7460         expected_loop_iterations): Unconstify.
7461         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
7462         profile with known upper bound; return 3 when profile is absent.
7463         (expected_loop_iterations): Update.
7465 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
7467         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
7468         and get_max_loop_iterations_int.
7470 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
7472         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
7473         realistic upper bounds here.
7475 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
7477         PR c++/71210
7478         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
7479         calls if the LHS is variable length or has addressable type.
7480         If targets[0]->decl is a noreturn call with void return type and
7481         zero arguments, adjust fntype and remove lhs in that case.
7483 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
7485         PR tree-optimization/71079
7486         PR tree-optimization/71206
7487         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
7489 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7491         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
7492         (get_vec_alignment_for_array_decl): Likewise.
7493         (get_vec_alignment_for_record_decl): Likewise.
7494         (increase_alignment::execute): Move code to find alignment to
7495         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
7496         (type_align_map): New hash_map.
7498 2016-05-20  Richard Guenther  <rguenther@suse.de>
7500         PR tree-optimization/29756
7501         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
7502         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
7503         * fold-const.c (operand_equal_p): Likewise.
7504         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
7505         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
7506         * tree-inline.c (estimate_operator_cost): Likewise.
7507         * tree-pretty-print.c (dump_generic_node): Likewise.
7508         * tree-ssa-operands.c (get_expr_operands): Likewise.
7509         * cfgexpand.c (expand_debug_expr): Likewise.
7510         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7511         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
7512         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
7513         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
7514         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
7515         (execute_update_addresses_taken): Do it.
7517 2016-05-20  Richard Biener  <rguenther@suse.de>
7519         PR tree-optimization/71185
7520         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
7521         register operations.
7523 2016-05-20  Richard Biener  <rguenther@suse.de>
7525         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
7526         gimple_seq_add_seq_without_update.
7527         (release_bb_predicate): Assert we have no operands to free.
7528         (if_convertible_loop_p_1): Calculate post dominators later.
7529         Do not free BB predicates here.
7530         (combine_blocks): Do not recompute BB predicates.
7531         (version_loop_for_if_conversion): Save BB predicates around
7532         loop versioning.
7534 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7536         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
7537         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
7538         code.  Ignore sibcalls on EDGE_IGNORE edges.
7539         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
7540         on edges for sibcalls that run without prologue.  The rest of the
7541         function is combined from...
7542         (fix_fake_fallthrough_edge): ... this, and ...
7543         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
7544         function argument, make it a local variable.
7546 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
7548         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
7549         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
7550         for 32-bit mode and SEH for 64-bit.
7551         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
7552         TARGET_64BIT_DEFAULT.
7554 2016-05-19  Ryan Burn  <contact@rnburn.com>
7556         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
7557         * gengtype.c (open_base_files): Add cilk.h to ifiles.
7559 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
7561         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
7562         force pending loads from memory.
7564 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7566         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
7567         (UNSPEC_DARN_32): New unspec constant.
7568         (UNSPEC_DARN_RAW): New unspec constant.
7569         (darn_32): New instruction.
7570         (darn_raw): New instruction.
7571         (darn): New instruction.
7572         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
7573         support and documentation for this macro.
7574         (BU_P9_MISC_1): New macro definition.
7575         (BU_P9_64BIT_MISC_0): New macro definition.
7576         (BU_P9_MISC_0): New macro definition.
7577         (darn_32): New builtin definition.
7578         (darn_raw): New builtin definition.
7579         (darn): New builtin definition.
7580         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
7581         RS6000_BUILTIN_0 directives to surround each occurrence of
7582         #include "rs6000-builtin.def".
7583         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
7584         RS6000_BTM_64BIT flags to the returned mask, depending on
7585         configuration.
7586         (def_builtin): Correct an error in the assignments made to the
7587         debugging variable attr_string.
7588         (rs6000_expand_builtin): Add support for no-operand built-in
7589         functions.
7590         (builtin_function_type): Remove fatal_error assertion that is no
7591         longer valid.
7592         (rs6000_common_init_builtins): Add support for no-operand built-in
7593         functions.
7594         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
7595         definition.
7596         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
7597         definition.
7598         (RS6000_BTM_64BIT): New macro definition.
7599         * doc/extend.texi: Document __builtin_darn (void),
7600         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
7601         functions.
7603 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
7605         * tree-vect-loop.c (vect_analyze_loop_2): Use also
7606         max_loop_iterations_int.
7608 2016-05-19  Marek Polacek  <polacek@redhat.com>
7610         PR tree-optimization/71031
7611         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
7612         condition and adjust the code a bit.
7614 2016-05-19  Martin Liska  <mliska@suse.cz>
7616         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
7617         auto_vec instead of vec.
7619 2016-05-19  Martin Liska  <mliska@suse.cz>
7621         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
7623 2016-05-19  Martin Liska  <mliska@suse.cz>
7625         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
7627 2016-05-19  Martin Liska  <mliska@suse.cz>
7629         * ipa-pure-const.c (set_function_state): Remove an existing
7630         funct_state.
7631         (remove_node_data): Do not free it as it's released
7632         in set_function_state.
7634 2016-05-19  Martin Liska  <mliska@suse.cz>
7636         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
7637         bitmap.
7639 2016-05-19  Martin Liska  <mliska@suse.cz>
7641         * omp-simd-clone.c (simd_clone_adjust): Release vector.
7643 2016-05-19  Martin Liska  <mliska@suse.cz>
7645         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
7646         an auto_vec instead of re-creating it.
7648 2016-05-19  Martin Liska  <mliska@suse.cz>
7650         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
7651         auto_vec instead of vec.
7653 2016-05-19  Martin Liska  <mliska@suse.cz>
7655         * lto-section-in.c (lto_get_section_data): Call
7656         lto_check_version with additional argument.
7657         * lto-streamer.c (lto_check_version): Add new argument.
7658         * lto-streamer.h (lto_check_version): Likewise.
7660 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7662         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
7663         Don't add cost of inner memory when handling sign-extended loads.
7665 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7667         PR rtl-optimization/71148
7668         * cse.c (cse_main): Free dominance info.
7669         (rest_of_handle_cse): Don't free dominance info.
7670         (rest_of_handle_cse2): Likewise.
7671         (rest_of_handle_cse_after_global_opts): Likewise.
7673 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7675         PR target/71056
7676         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
7677         NULL_TREE early if NEON is not available.  Remove now redundant check
7678         in ARM_CHECK_BUILTIN_MODE.
7680 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
7682         PR sanitizer/64354
7683         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
7684         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
7685         * doc/cpp.texi: Document new macros.
7687 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
7689         PR tree-optimization/69848
7690         * tree-vect-loop.c (vectorizable_reduction): Don't factor
7691         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
7693 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7695         * function.c (thread_prologue_and_epilogue_insn): Move the
7696         "goto epilogue_done" one block later.
7698 2016-05-19  Richard Biener  <rguenther@suse.de>
7700         PR tree-optimization/70729
7701         * passes.def: Move LIM pass before PRE.  Remove no longer
7702         required copyprop and move first DCE out of the loop pipeline.
7704 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
7706         PR driver/69265
7707         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
7708         (OBJS-libcommon-target): ...here.
7709         * opts-common.c: Include spellcheck.h.
7710         (cmdline_handle_error): Build a vec of valid options and use it
7711         to suggest provide hints for misspelled arguments.
7713 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7715         PR c++/71100
7716         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
7717         lhs if it has TREE_ADDRESSABLE type.
7719 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
7721         PR target/71145
7722         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
7723         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
7725 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7727         PR ipa/69708
7728         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
7729         input for NOP_EXPR pass-through functions.
7730         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
7731         aggregate global constant VAR_DECLs in constant jump functions.
7733 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7735         PR ipa/69708
7736         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
7737         from TREE_READONLY parameters.
7739 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7741         PR ipa/69708
7742         * cgraph.h (cgraph_indirect_call_info): New field
7743         guaranteed_unmodified.
7744         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
7745         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7746         appropriate.
7747         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
7748         pass the parameter value to ipa_find_agg_cst_for_param.
7749         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
7750         guaranteed_unmodified, store AA results there instead of bailing out
7751         if present.
7752         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
7753         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
7754         (find_constructor_constant_at_offset): New function.
7755         (ipa_find_agg_cst_from_init): Likewise.
7756         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
7757         static initializers of contants, report back through a new paameter
7758         from_global_constant if that was the case.
7759         (try_make_edge_direct_simple_call): Also pass parameter value to
7760         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7761         appropriate.
7762         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
7763         (ipa_read_indirect_edge_info): Likewise.
7764         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
7765         (ipa_load_from_parm_agg): Likewise.
7767 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
7769         PR rtl-optimization/71150
7770         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
7771         check.
7773 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7775         PR target/70915
7776         * config/rs6000/constraints.md (wE constraint): New constraint
7777         for a vector constant that can be loaded with XXSPLTIB.
7778         (wM constraint): New constraint for a vector constant of a 1's.
7779         (wS constraint): New constraint for a vector constant that can be
7780         loaded with XXSPLTIB and a vector sign extend instruction.
7781         * config/rs6000/predicates.md (xxspltib_constant_split): New
7782         predicates for wE/wS constraints.
7783         (xxspltib_constant_nosplit): Likewise.
7784         (easy_vector_constant): Add support for constants that can be
7785         loaded via XXSPLTIB.
7786         (all_ones_constant): New predicate for vector constant with all
7787         1's set.
7788         (splat_input_operand): Add support for ISA 3.0 word splat operations.
7789         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
7790         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
7791         instruction and possibly with a sign extension.
7792         (output_vec_const_move): Add support for XXSPLTIB. If we are
7793         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
7794         instead of XXLXOR/XXLORC.
7795         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
7796         operations.
7797         (rs6000_legitimize_reload_address): Likewise.
7798         (rs6000_output_move_128bit): Use output_vec_const_move to emit
7799         constants.
7800         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
7801         combine VSX_M and VSX_M2 into one iterator.
7802         (VSX_M2): Likewise.
7803         (VSINT_84): New iterators for loading constants with XXSPLTIB.
7804         (VSINT_842): Likewise.
7805         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
7806         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
7807         XXSPLTIB instruction.
7808         (xxspltib_<mode>_nosplit): Likewise.
7809         (xxspltib_<mode>_split): New insn to load up constants with
7810         XXSPLTIB and a sign extend instruction.
7811         (vsx_mov<mode>): Replace single move that handled all vector types
7812         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
7813         moves (when -mvsx-timode is in effect) into the main vector
7814         moves.  Eliminate separate moves for <VSr> <VSa>, where the
7815         preferred register class (<VSr>) is listed first, and the
7816         secondary register class (<VSa>) is listed second with a '?' to
7817         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
7818         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
7819         that if the register was involved in a slow operation, the
7820         clear/set operation does not wait for the slow operation to
7821         finish.  Adjust the length attributes for 32-bit mode.  Use
7822         rs6000_output_move_128bit and drop the use of the string
7823         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
7824         spacing so that the alternatives and attributes don't generate
7825         long lines, and put things in columns, so that it is easier to
7826         match up the operands and attributes with the insn alternatives.
7827         (vsx_mov<mode>_64bit): Likewise.
7828         (vsx_mov<mode>_32bit): Likewise.
7829         (vsx_movti_64bit): Fold movti into normal vector moves.
7830         (vsx_movti_32bit): Likewise.
7831         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
7832         splat instructions.
7833         (vsx_splat_v4si_internal): Likewise.
7834         (vsx_splat_v4sf_internal): Likewise.
7835         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7836         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7837         extend vector elements.
7838         (vsx_sign_extend_hi_<mode>): Likewise.
7839         (vsx_sign_extend_si_v2di): Likewise.
7840         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7841         declaration.
7842         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7843         constraints.  Add trailing period to wL documentation.
7845 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
7847         PR middle-end/71020
7848         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7849         * tree-dfa.c (replace_abnormal_ssa_names): New function.
7850         * tree-call-cdce.c: Include tree-dfa.h.
7851         (can_guard_call_p): New function, extracted from...
7852         (can_use_internal_fn): ...here.
7853         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7854         and return void.
7855         (shrink_wrap_one_built_in_call): Likewise.
7856         (use_internal_fn): Likewise.
7857         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7858         and return void.  Call replace_abnormal_ssa_names.
7859         (pass_call_cdce::execute): Check can_guard_call_p during the
7860         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
7861         will always change something.
7863 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7865         PR ipa/70646
7866         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7867         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7869 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7871         PR ipa/70646
7872         * ipa-inline.h (condition): New field size.
7873         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7874         for comaprison and store it into the new condition.
7875         (evaluate_conditions_for_known_args): Use condition size to check
7876         access sizes for all but CHANGED conditions.
7877         (unmodified_parm_1): New parameter size_p, store access size into it.
7878         (unmodified_parm): Likewise.
7879         (unmodified_parm_or_parm_agg_item): Likewise.
7880         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7881         (set_cond_stmt_execution_predicate): Extract access sizes and store
7882         them to conditions.
7883         (set_switch_stmt_execution_predicate): Likewise.
7884         (will_be_nonconstant_expr_predicate): Likewise.
7885         (will_be_nonconstant_predicate): Likewise.
7886         (inline_read_section): Stream condition size.
7887         (inline_write_summary): Likewise.
7889 2016-05-18  Richard Biener  <rguenther@suse.de>
7891         * tree-ssa-loop-im.c (determine_max_movement): Properly add
7892         condition cost to PHI cost instead of total_cost.
7894 2016-05-18  Martin Liska  <mliska@suse.cz>
7896         PR fortran/70856
7897         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7898         merged variables.
7900 2016-05-18  Richard Biener  <rguenther@suse.de>
7902         * lto-streamer.h (LTO_major_version): Bump to 6.
7904 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7906         * function.c (make_split_prologue_seq, make_prologue_seq,
7907         make_epilogue_seq): New functions, factored out from...
7908         (thread_prologue_and_epilogue_insns): Here.
7910 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7912         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7913         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7914         of before.  Add a comment.
7916 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
7918         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7919         expression pointer, not pointer to the pointer.
7921 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7923         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7924         (avx2_pbroadcast<mode>): Add another alternative with v instead
7925         of x constraints in it, using <pbroadcast_evex_isa> isa.
7926         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7928         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7929         constraint x instead of v in second alternative, add avx512bw
7930         alternative.
7932         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7933         constraint x instead of v in second alternative, add avx512bw
7934         alternative.
7936         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7937         constraint x instead of v in second alternative, add avx512bw
7938         alternative.
7940         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7941         avx512bw alternative.
7943 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7945         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7946         array to 128 chars.
7947         (define_insn "*andnottf3"): Ditto.
7948         (define_insn "*<code><mode>3"/any_logic): Ditto.
7949         (define_insn "*<code>tf3"/any_logic): Ditto.
7950         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7951         operand to block AVX-512VL insn variant emit when it is not enabled.
7953 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7955         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7956         constraint fot SF mode.
7958 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
7959             Kirill Yukhin  <kirill.yukhin@intel.com>
7961         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7962         modifiers.
7963         (define_insn "rsqrt14<mode>"): Ditto.
7964         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7965         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7966         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7967         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7968         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7969         Ditto.
7970         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7971         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7972         * config/i386/i386.c (ix86_print_operand): Expand check for size
7973         override codes for Intel syntax.
7975 2016-05-18  Richard Biener  <rguenther@suse.de>
7977         PR tree-optimization/71168
7978         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7979         initialization earlier.
7981 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
7983         * config/aarch64/aarch64-simd.md
7984         (aarch64_reduc_plus_internal<mode>): Rename to...
7985         (reduc_plus_scal): ...This, and remove previous implementation.
7987 2016-05-18  Richard Biener  <rguenther@suse.de>
7989         * passes.def: Put late dse and cd_dce in canonical order.
7991 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
7993         * ipa-inline-transform.c (preserve_function_body_p): Look for
7994         first non-thunk clone.
7995         (save_function_body): Save into first non-thunk.
7996         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7997         up call stmt id.
7998         (lto_output_node): Inline thunks don't need body in every
7999         partition.
8000         * lto-streamer-in.c: Do not fixup thunk clones.
8001         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
8002         thunks.
8003         * tree-inline.c (copy_bb): Be prepared for target node to be new after
8004         folding suceeds.
8006 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
8008         PR middle-end/63586
8009         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
8010         (reassociate_bb): Call transform_add_to_multiply.
8012 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
8014         * config/aarch64/aarch64.c (all_extensions): Removed unused
8015         static variable.
8017 2016-05-17  Nathan Sidwell  <nathan@acm.org>
8019         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
8020         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
8022 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
8024         PR tree-optimization/54579
8025         PR middle-end/55299
8026         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
8028 2016-05-17  Marek Polacek  <polacek@redhat.com>
8030         PR ipa/71146
8031         * tree-inline.c (expand_call_inline): Call
8032         maybe_remove_unused_call_args.
8034 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
8036         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
8037         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
8038         * doc/md.texi (fmin@var{m}3): Likewise.
8040 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
8042         * match.pd (X & C): New transformation.
8044 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
8046         * match.pd (~X & Y): New transformation.
8048 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
8050         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
8051         information for new SSA_NAME.
8052         (simplify_conversion_using_ranges): Get range through get_range_info
8053         instead of get_value_range.
8055 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
8057         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
8058         Remove inline assembly.
8059         (vmvn_s16): Likewise.
8060         (vmvn_s32): Likewise.
8061         (vmvn_u8): Likewise.
8062         (vmvn_u16): Likewise.
8063         (vmvn_u32): Likewise.
8064         (vmvnq_s8): Likewise.
8065         (vmvnq_s16): Likewise.
8066         (vmvnq_s32): Likewise.
8067         (vmvnq_u8): Likewise.
8068         (vmvnq_u16): Likewise.
8069         (vmvnq_u32): Likewise.
8070         (vmvn_p8): Likewise.
8071         (vmvnq_p16): Likewise.
8073 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
8075         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
8076         Use builtin.
8077         (vmul_n_s16): Likewise.
8078         (vmul_n_s32): Likewise.
8079         (vmul_n_u16): Likewise.
8080         (vmul_n_u32): Likewise.
8081         (vmulq_n_f32): Likewise.
8082         (vmulq_n_f64): Likewise.
8083         (vmulq_n_s16): Likewise.
8084         (vmulq_n_s32): Likewise.
8085         (vmulq_n_u16): Likewise.
8086         (vmulq_n_u32): Likewise.
8088 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
8090         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
8091         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
8093 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
8095         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
8096         to *aarch64_fma4_elt_from_dup<mode>.
8097         (*aarch64_fnma4_elt_to_128df): Rename to
8098         *aarch64_fnma4_elt_from_dup<mode>.
8099         * config/aarch64/arm_neon.h (vfma_n_f64): New.
8100         (vfms_n_f32): Likewise.
8101         (vfms_n_f64): Likewise.
8102         (vfmsq_n_f32): Likewise.
8103         (vfmsq_n_f64): Likewise.
8105 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
8107         * wide-int.h: Change fixed_wide_int_storage from class to struct.
8109 2016-05-17  Richard Biener  <rguenther@suse.de>
8111         PR tree-optimization/71132
8112         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
8113         Only add control dependences for blocks in the loop.
8114         (build_rdg): Adjust.
8115         (generate_code_for_partition): Return whether loop should
8116         be destroyed and delay that.
8117         (distribute_loop): Likewise.
8118         (pass_loop_distribution::execute): Record loops to be destroyed
8119         and perform delayed destroying of loops.
8121 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8123         PR target/70809
8124         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
8126 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
8128         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
8130 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
8132         PR target/71114
8133         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
8134         insertion point for instructions generated by validize_mem.
8136 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
8138         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
8139         in brackets.
8141 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
8143         * config/aarch64/aarch64.c
8144         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
8145         rather than a macro.
8147 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
8149         * doc/invoke.texi (AArch64 Options): Various updates.
8151 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
8153         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
8154         into instrumentation thunks.
8155         * cif-code.def (CIF_CHKP): New.
8157 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
8159         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
8161 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8163         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
8164         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
8166 2016-05-16  Marek Polacek  <polacek@redhat.com>
8168         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
8169         commentary.
8171 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8173         PR hsa/70857
8174         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
8175         the outlined kernel function.
8177 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
8179         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
8180         (ISA_HAS_DLSA): Ditto.
8182 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
8184         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
8186 2016-05-16  Nathan Sidwell  <nathan@acm.org>
8188         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
8189         (nvptx_name_replacement): Restore.  Add comment.
8190         (write_fn_proto, write_fn_proto_from_insn,
8191         nvptx_output_call_insn): Restore
8192         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
8194 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
8196         * config/aarch64/aarch64.md
8197         (add<mode>3_compareC_cconly_imm): Remove use of %w.
8198         (add<mode>3_compareC_imm): Likewise.
8199         (<optab>si3_uxtw): Split into register and immediate variants.
8200         (andsi3_compare0_uxtw): Likewise.
8201         (and<mode>3_compare0): Likewise.
8202         (and<mode>3nr_compare0): Likewise.
8203         (stack_protect_test_<mode>): Don't use %x for memory operands.
8205 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
8207         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
8209 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
8211         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
8212         Split integer shifts into shift_reg and bfm.
8213         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8214         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
8215         (ror<mode>3_insn): Likewise.
8216         (<optab>si3_insn_uxtw): Likewise.
8217         (<optab><mode>3_insn): Change to rotate_imm.
8218         (extr<mode>5_insn_alt): Likewise.
8219         (extrsi5_insn_uxtw): Likewise.
8220         (extrsi5_insn_uxtw_alt): Likewise.
8222 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
8224         * doc/tm.texi: Regenerate.
8225         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
8226         (TARGET_INVALID_RETURN_TYPE): Remove.
8227         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
8228         TARGET_INVALID_RETURN_TYPE.
8229         * target.def (invalid_parameter_type): Remove.
8230         (invalid_return_type): Remove.
8232 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
8234         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
8235         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
8236         calls from thunk.
8237         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
8238         gimple body.
8239         (preserve_function_body_p): No need to preserve function body
8240         * cif-codes.def (CIF_THUNK): Remove.
8241         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
8243 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
8245         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
8247 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
8249         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
8250         for thunks.
8252 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
8254         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
8255         (inline_small_functions): Do not look for function symbol when
8256         resetting caches.
8258 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
8260         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
8261         of inline thunks
8263 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
8264             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8265             Jiong Wang  <jiong.wang@arm.com>
8267         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
8268         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
8269         Define __ARM_FP16_ARGS when appropriate.
8270         * config/arm/arm.c (arm_invalid_parameter_type): Remove
8271         declaration.
8272         (arm_invalid_return_type): Likewise.
8273         (TARGET_INVALID_PARAMETER_TYPE): Remove.
8274         (TARGET_INVALID_RETURN_TYPE): Remove.
8275         (aapcs_vfp_sub_candidate): Allow HFmode.
8276         (aapcs_vfp_allocate): Add comment.  Support HFmode.
8277         (aapcs_vfp_allocate_return_reg): Likewise.
8278         (struct aapcs_cp_arg_layout): Slightly reword comments for
8279         is_return_candidate and allocate_return_reg.
8280         (output_mov_vfp): Update assert.
8281         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
8282         condition.
8283         (arm_invalid_parameter_type): Remove.
8284         (amr_invalid_return_type): Remove.
8285         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
8286         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
8287         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
8289 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
8291         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8292         * config/aarch64/arch64-protos.h
8293         (aarch64_legitimize_reload_address): Remove.
8294         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8295         Remove.
8297 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8299         * configure.ac: Add ACX_NONCANONICAL_HOST.
8300         * configure: Regenerate.
8301         * Makefile.in: Set host_noncanonical.
8303 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
8305         PR target/71097
8306         * config/i386/i386.md (*movtf_internal): Before register allocation,
8307         do not allow FP constants for CM_MEDIUM memory model, allow only
8308         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
8309         (*movxf_internal): Ditto.
8310         (*movdf_internal): Ditto.
8311         (*movsf_internal): Ditto.
8313 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
8315         PR rtl-optimization/67483
8316         * combine.c (make_compound_operation): Don't call extract_left_shift
8317         with negative shift amounts.
8319 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
8321         PR bootstrap/71071
8322         * fold-const.c (fold_checksum_tree): Allow modification
8323         of TYPE_ALIAS_SET during folding.
8325         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
8326         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
8327         (ix86_split_to_parts): Likewise.  Fix up formatting.
8329 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8331         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
8332         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
8333         printf format.
8335 2016-05-13  Nathan Sidwell  <nathan@acm.org>
8337         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
8338         (nvptx_name_replacement): Delete.
8339         (write_fn_proto, write_fn_proto_from_insn,
8340         nvptx_output_call_insn): Remove nvptx_name_replacement call.
8341         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
8342         * langhooks.c (add_builtin_funcction_common): Call
8343         targetm.mangle_decl_assembler_name.
8345         * config/nvptx/nvptx.c (write_fn_proto): Handle
8346         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
8348 2016-05-13  Martin Liska  <mliska@suse.cz>
8350         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
8351         and PRIu64 in printf format.
8353 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8355         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
8356         comment.
8358 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8360         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8361         Change --param max-completely-peeled-times to
8362         --param max-completely-peel-times in dump file printing.
8364 2016-05-13  Richard Biener  <rguenther@suse.de>
8366         PR tree-optimization/42587
8367         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
8368         (find_bswap_or_nop_1): Likewise.
8369         (bswap_replace): Likewise.
8371 2016-05-13  Martin Liska  <mliska@suse.cz>
8373         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
8374         Initialize a variable with default value.
8376 2016-05-13  Martin Liska  <mliska@suse.cz>
8378         * doc/invoke.texi: Enhance explanation of error recovery
8379         of sanitizers.
8381 2016-05-13  Martin Liska  <mliska@suse.cz>
8383         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
8384         (struct cost_pair): Change inv_expr_id (int) to inv_expr
8385         (iv_inv_expr_ent *).
8386         (struct iv_inv_expr_ent): Comment struct fields.
8387         (sort_iv_inv_expr_ent): New function.
8388         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
8389         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
8390         a hash_map between iv_inv_expr_ent and number of usages.
8391         (niter_for_exit): Fix coding style.
8392         (tree_ssa_iv_optimize_init): Use renamed variable.
8393         (determine_base_object): Fix coding style.
8394         (alloc_iv): Likewise.
8395         (find_interesting_uses_outside): Likewise.
8396         (add_candidate_1): Likewise.
8397         (add_standard_iv_candidates): Likewise.
8398         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
8399         (prepare_decl_rtl): Fix coding style.
8400         (get_address_cost): Likewise.
8401         (get_shiftadd_cost): Likewise.
8402         (force_expr_to_var_cost): Likewise.
8403         (compare_aff_trees): Likewise.
8404         (get_expr_id): Restructure the function.
8405         (get_loop_invariant_expr_id): Renamed to
8406         get_loop_invariant_expr.
8407         (get_computation_cost_at): Replace usage of inv_expr_id with
8408         inv_expr.
8409         (get_computation_cost): Likewise.
8410         (determine_group_iv_cost_generic): Likewise.
8411         (determine_group_iv_cost_address): Likewise.
8412         (iv_period): Fix coding style.
8413         (iv_elimination_compare_lt): Likewise.
8414         (may_eliminate_iv): Likewise.
8415         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
8416         inv_expr.
8417         (determine_group_iv_costs): Dump invariant expressions.
8418         (iv_ca_recount_cost): Use the newly added hash_map.
8419         (iv_ca_set_remove_invariants): Fix coding style.
8420         (iv_ca_set_add_invariants): Fix coding style.
8421         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
8422         invariants.
8423         (iv_ca_set_cp): Likewise.
8424         (iv_ca_new): Initialize the newly added hash_map and remove
8425         initialization of fields.
8426         (iv_ca_free): Delete the hash_map.
8427         (iv_ca_dump): Dump invariant expressions.
8428         (iv_ca_extend): Fix coding style.
8429         (try_add_cand_for): Likewise.
8430         (create_new_ivs): Dump information about # of avg iterations and
8431         # of used invariant expressions.
8432         (rewrite_use_compare): Fix coding style.
8433         (free_loop_data): Set default value for max_inv_expr_id.
8435 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8437         * cse.c (rest_of_handle_cse): Use cleanup_cfg
8438         returned value cse_cfg_altered computation.
8439         (rest_of_handle_cse2): Likewise.
8440         (rest_of_handle_cse_after_global_opts): Likewise.
8442 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8444         PR target/53440
8445         * config/arm/arm.c (arm32_output_mi_thunk): New.
8446         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
8447         to split Thumb1 vs TARGET_32BIT functionality.
8448         (arm_thumb1_mi_thunk): New.
8450 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8452         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
8453         to true.
8455 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8457         PR target/71080
8458         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
8460 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8462         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
8463         (expand_builtin_trap): Emit a regular call.
8464         (set_builtin_user_assembler_name): Remove obsolete cases.
8465         * dse.c (scan_insn): Adjust.
8466         * except.c: Include calls.h.
8467         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
8468         emit a regular call to setjmp.
8469         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
8470         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
8471         (emit_block_move_via_libcall): Delete.
8472         (block_move_fn): Delete.
8473         (init_block_move_fn): Likewise.
8474         (emit_block_move_libcall_fn): Likewise.
8475         (emit_block_op_via_libcall): New function.
8476         (set_storage_via_libcall): Tidy up and use memset builtin.
8477         (block_clear_fn): Delete.
8478         (init_block_clear_fn): Likewise.
8479         (clear_storage_libcall_fn): Likewise.
8480         (expand_assignment): Call emit_block_move_via_libcall.
8481         Do not include gt-expr.h.
8482         * expr.h (emit_block_op_via_libcall): Declare.
8483         (emit_block_copy_via_libcall): New inline function.
8484         (emit_block_move_via_libcall): Likewise.
8485         (emit_block_comp_via_libcall): Likewise.
8486         (block_clear_fn): Delete.
8487         (init_block_move_fn): Likewise.
8488         (init_block_clear_fn): Likewise.
8489         (emit_block_move_via_libcall): Likewise.
8490         (set_storage_via_libcall): Add default parameter value.
8491         * libfuncs.h (enum libfunc_index): Remove obsolete values.
8492         (abort_libfunc): Delete.
8493         (memcpy_libfunc): Likewise.
8494         (memmove_libfunc): Likewise.
8495         (memcmp_libfunc): Likewise.
8496         (memset_libfunc): Likewise.
8497         (setbits_libfunc): Likewise.
8498         (setjmp_libfunc): Likewise.
8499         (longjmp_libfunc): Likewise.
8500         (profile_function_entry_libfunc): Likewise.
8501         (profile_function_exit_libfunc): Likewise.
8502         (gcov_flush_libfunc): Likewise.
8503         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
8504         and DECL_VISIBILITY on the declaration.
8505         (init_optabs): Do not initialize obsolete libfuncs.
8506         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
8507         * tree-core.h (ECF_RET1): Define.
8508         (ECF_TM_PURE): Adjust.
8509         (ECF_TM_BUILTIN): Likewise.
8510         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
8511         (build_common_builtin_nodes): Initialize abort builtin.
8512         Add ECF_RET1 on memcpy, memmove and memset builtins.
8513         Pass final flags for alloca and alloca_with_align builtins.
8514         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
8515         obsolete builtins.
8516         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
8517         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
8518         set_storage_via_libcall and call emit_block_copy_via_libcall.
8520 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
8522         * config/i386/i386.md (*call_got_x32): Change operand 0 to
8523         DImode before it is passed to ix86_output_call_operand.
8524         (*call_value_got_x32): Ditto for operand 1.
8526 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
8528         PR rtl-optimization/70904
8529         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
8530         reload for wide mode.
8532 2016-05-12  Marek Polacek  <polacek@redhat.com>
8534         PR c/70756
8535         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
8536         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
8537         * langhooks.h (incomplete_type_error): Likewise.
8538         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
8539         parameter, pass it down to incomplete_type_error.
8540         * tree.h (size_in_bytes): New inline overload.
8541         (size_in_bytes_loc): Renamed from size_in_bytes.
8543 2016-05-12  Richard Biener  <rguenther@suse.de>
8545         PR tree-optimization/71059
8546         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
8547         nary before looking up or entering the expression into the VN
8548         hashes.
8549         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
8550         Make sure to re-use NARYs without result as inserted by
8551         phi-translation.
8553 2016-05-12  Richard Biener  <rguenther@suse.de>
8555         PR tree-optimization/71062
8556         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
8557         field.
8558         * tree-ssa-structalias.c (set_uids_in_ptset): Set
8559         vars_contains_restrict if the var is a restrict tag.
8560         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
8561         do not disambiguate pointers against it.
8562         (dump_points_to_solution): Re-structure and adjust for new
8563         vars_contains_restrict flag.
8564         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8566 2016-05-12  Martin Liska  <mliska@suse.cz>
8568         * doc/invoke.texi: Explain connection between
8569         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
8571 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
8573         PR tree-optimization/71006
8574         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8575         consider COND_EXPR as a mask producer.
8577 2016-05-12  Marek Polacek  <polacek@redhat.com>
8579         PR driver/71063
8580         * opts.c (common_handle_option): Detect missing argument for --help^.
8582 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8584         PR target/70830
8585         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
8586         when popping the PC and within an interrupt handler routine.
8587         Add missing tab to output of "ldmfd".
8588         (output_return_instruction): Output LDMFD with SP update rather
8589         than POP when returning from interrupt handler.
8591 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
8593         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
8594         TARGET_64BIT && TARGET_AVX512DQ.
8595         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
8596         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
8597         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
8598         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
8599         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
8600         (*vec_extractv4si_zext): Add avx512dq alternative.
8601         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
8602         use v instead of x constraint in other alternatives where possible.
8604         * config/i386/sse.md (sse2_loadld): Use v instead of x
8605         constraint in alternatives 0,1,4.
8607         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
8608         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
8609         v constraints instead of x and <pinsr_evex_isa> isa attribute.
8611         PR target/71019
8612         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
8613         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
8614         is not emitted unless TARGET_AVX512BW.
8615         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
8616         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
8617         for the result operand.
8619         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
8620         constraint instead of x in avx alternatives.  Use maybe_evex instead
8621         of vex prefix.
8623         * config/i386/constraints.md (Yv): New constraint.
8624         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
8625         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
8626         * config/i386/i386.md (avx512fvecmode): New mode attr.
8627         (*pushtf): Use v constraint instead of x.
8628         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
8629         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
8630         (*absneg<mode>2): Use Yv constraint instead of x constraint.
8631         (*absnegtf2_sse): Likewise.
8632         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
8633         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
8634         avx512f alternatives.
8635         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
8637 2016-05-12  Richard Biener  <rguenther@suse.de>
8639         PR tree-optimization/71060
8640         * tree-data-ref.c (initialize_data_dependence_relation): Do not
8641         require exact match of DR_BASE_OBJECT but only matching address and
8642         type.
8644 2016-05-12  Richard Biener  <rguenther@suse.de>
8646         PR tree-optimization/70986
8647         * cfganal.c: Include cfgloop.h.
8648         (dfs_find_deadend): Prefer to take edges exiting loops.
8650 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8652         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
8653         compile and run time.
8655 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
8657         PR c/43651
8658         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
8660 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
8662         * config/i386/i386.c (legitimize_pic_address): Use
8663         copy_to_suggested_reg instead of gen_movsi.
8665 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8667         * config/rs6000/predicates.md (quad_memory_operand): Move most of
8668         the code into quad_address_p and call it to share code with
8669         vsx_quad_dform_memory_operand.
8670         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
8671         d-form support.
8672         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
8673         bit instead of being a separate word.  Split -mpower9-dform into
8674         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8675         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
8676         for the register class supporting 128-bit quad word memory offsets.
8677         (mode_supports_vsx_dform_quad): Helper function to return if the
8678         register class uses quad word memory offsets.
8679         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
8680         (rs6000_debug_reg_global): Always print if we are using LRA or not.
8681         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
8682         instructions are enabled, set up the appropriate addr_masks for
8683         128-bit types.
8684         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
8685         -mpower9-dform-scalar, instead of -mpower9-dform.
8686         (rs6000_option_override_internal): Split -mpower9-dform into two
8687         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
8688         -mpower9-dform switch sets or clears both.  If we are not using
8689         the LRA register allocator, do not enable -mpower9-dform-vector by
8690         default.  If we are using LRA, enable -mpower9-dform-vector and
8691         -mvsx-timode if it is appropriate.  Issue a warning if either
8692         -mpower9-dform-vector or -mvsx-timode are explicitly used without
8693         enabling LRA.
8694         (quad_address_offset_p): New helper function to return if the
8695         offset is legal for quad word memory instructions.
8696         (quad_address_p): New function to determin if GPR or vector
8697         register quad word memory addresses are legal.
8698         (mem_operand_gpr): Validate quad word address offsets.
8699         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
8700         d-form (register + offset) instructions.
8701         (offsettable_ok_by_alignment): Likewise.
8702         (rs6000_legitimate_offset_address_p): Likewise.
8703         (legitimate_lo_sum_address_p): Likewise.
8704         (rs6000_legitimize_address): Likewise.
8705         (rs6000_legitimize_reload_address): Add more debug statements for
8706         -mdebug=addr.
8707         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
8708         d-form instructions.
8709         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
8710         d-form instructions.  Distinguish different cases in debug
8711         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
8712         d-form instructions.
8713         (rs6000_preferred_reload_class): Likewise.
8714         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
8715         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
8716         of the ISA 2.06 indexed memory instructions.
8717         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
8718         use them to save/restore the saved vector registers instead of
8719         using Altivec instructions.
8720         (rs6000_emit_epilogue): Likewise.
8721         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
8722         (rs6000_opt_masks): Split -mpower9-dform into
8723         -mpower9-dform-scalar and -mpower9-dform-vector.
8724         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
8725         was not selected.
8726         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
8727         ISA 3.0 vector indexed memory instructions, and fold the code into
8728         the normal mov<mode> patterns.
8729         (p9_vecstore_<mode>): Likewise.
8730         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
8731         instructions.
8732         (vsx_movti_64bit): Likewise.
8733         (vsx_movti_32bit): Likewise.
8734         * config/rs6000/constraints.md (wO constraint): New constraint for
8735         ISA 3.0 vector d-form support.
8736         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
8737         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
8738         include -mpower9-dform-vector until we switch over to LRA.
8739         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
8740         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8741         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
8742         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8743         for -mpower9-dform and -mlra.
8744         * doc/md.texi (wO constraint): Document wO constraint.
8746 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
8748         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
8749         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
8750         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
8751         Move handling of non-insn arguments inline into the sole user:
8752         (output_trans_func): ...here.
8753         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
8754         in emitted function prototype.
8755         (output_internal_insn_latency_func): Ditto.  Simplify.
8756         (output_internal_maximal_insn_latency_func): Ditto.  Delete
8757         always-unused argument.
8758         (output_insn_latency_func): Ditto.
8759         (output_maximal_insn_latency_func): Ditto.
8761 2016-05-11  Richard Biener  <rguenther@suse.de>
8763         PR tree-optimization/71055
8764         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
8765         sth with precision not equal to access size verify we don't chop
8766         off bits.
8768 2016-05-11  Richard Biener  <rguenther@suse.de>
8770         PR debug/71057
8771         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
8772         (dwarf2out_finish): Move retry_incomplete_types call ...
8773         (dwarf2out_early_finish): ... here.
8775 2016-05-11  Richard Biener  <rguenther@suse.de>
8777         PR middle-end/71002
8778         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
8779         if the langhook insists on it.
8780         * fold-const.c (make_bit_field_ref): Add arg for the original
8781         reference and preserve its alias-set.
8782         (decode_field_reference): Take exp by reference and adjust it
8783         to the original memory reference.
8784         (optimize_bit_field_compare): Adjust callers.
8785         (fold_truth_andor_1): Likewise.
8786         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
8788 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
8790         PR middle-end/70807
8791         * cfgrtl.h (delete_insn_and_edges): Now return bool.
8792         * cfgrtl.c (delete_insn_and_edges): Likewise.
8793         * config/i386/i386.c (convert_scalars_to_vector): Remove
8794         redundant code.
8795         * cse.c (cse_insn): Compute cse_cfg_altered.
8796         (delete_trivially_dead_insns): Likewise.
8797         (cse_cc_succs): Likewise.
8798         (rest_of_handle_cse): Free dominance info if required.
8799         (rest_of_handle_cse2): Likewise.
8800         (rest_of_handle_cse_after_global_opts): Likewise.
8802 2016-05-11  Alan Modra  <amodra@gmail.com>
8804         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
8805         abi_v4_pass_in_fpr): New functions.
8806         (rs6000_function_arg_boundary): Exclude complex IBM long double
8807         from 64-bit alignment when ABI_V4.
8808         (rs6000_function_arg, rs6000_function_arg_advance_1,
8809         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
8811 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
8813         PR rtl-optimization/71028
8814         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
8815         jump with just a return in the fallthrough block if the branch
8816         block contains just a return as well.
8818 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
8820         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
8821         * match.pd ((X & Y) ^ Y): ... this.
8822         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
8823         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
8825 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8827         * read-md.c (require_char_ws): New function.
8828         (read_string): Simplify using require_char_ws.
8829         (handle_constants): Likewise.
8830         (handle_enum): Likewise.
8831         (handle_file): Likewise.
8832         * read-md.h (require_char_ws): New declaration.
8833         * read-rtl.c (read_conditions): Simplify using require_char_ws.
8834         (read_mapping): Likewise.
8835         (read_rtx_code): Likewise.
8836         (read_nested_rtx): Likewise.
8838 2016-05-10  James Norris  <jnorris@codesourcery.com>
8840         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8841         if offloading is enabled and -fopenacc or -fopenmp is specified.
8842         (CRTOFFLOADEND): Likewise.
8843         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8844         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8846 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
8848         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8849         gotoff_operand code paths.  Use copy_to_suggested_regs and
8850         expand_simple_binop where appropriate.  Cleanup.
8852 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8854         PR target/70799
8855         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8856         integer constants.
8857         (dimode_scalar_chain::vector_const_cost): New.
8858         (dimode_scalar_chain::compute_convert_gain): Handle constants.
8859         (dimode_scalar_chain::convert_op): Likewise.
8860         (dimode_scalar_chain::convert_insn): Likewise.
8862 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8864         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8865         unary operation, not a binary one.
8867 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8869         PR middle-end/70877
8870         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8871         calls with type casted fndecl.
8873 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8875         PR tree-optimization/70786
8876         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8877         * calls.c (initialize_argument_information): Bind bounds
8878         with corresponding args passed by reference.
8880 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
8882         PR target/70927
8883         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8884         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8885         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8886         accordingly.
8888 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8890         PR target/70963
8891         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8892         code for a zero scale factor.
8893         (vsx_xvcvdpuxds_scale): Likewise.
8895 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8897         * diagnostic-show-locus.c (layout::layout): Call show_ruler
8898         if show_ruler_p was set on the context.
8899         (layout::show_ruler): New method.
8900         * diagnostic.h (struct diagnostic_context): Add field
8901         "show_ruler_p".
8903 2016-05-10  Richard Biener  <rguenther@suse.de>
8905         PR tree-optimization/71039
8906         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8907         (chk_uses): New function.
8908         (propagate_with_phi): Verify we can safely replicate the lhs of an
8909         aggregate assignment on all incoming edges.
8911 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
8913         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8914         Forward declare.
8915         (rx_atomic_sequence): New class.
8916         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8917         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8918         non-inline.
8919         (rx_atomic_sequence::rx_atomic_sequence,
8920         rx_atomic_sequence::~rx_atomic_sequence): New functions.
8921         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8922         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8923         CTRLREG_INTB): New constants.
8924         (FETCHOP): New code iterator.
8925         (fethcop_name, fetchop_name2): New iterator code attributes.
8926         (QIHI): New mode iterator.
8927         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8928         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8929         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8931 2016-05-10  Martin Liska  <mliska@suse.cz>
8933         * tree-inline.c (remap_dependence_clique): Do not remap
8934         debugging statements.
8936 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8938         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8939         ("*fixuns_truncdfdi2_z13")
8940         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8941         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8942         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8944 2016-05-10  Richard Biener  <rguenther@suse.de>
8946         PR tree-optimization/70497
8947         PR tree-optimization/28367
8948         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8949         split out from ...
8950         (visit_reference_op_load): ... here.
8951         (vn_reference_lookup_3): Use it to handle subreg-like accesses
8952         with simplified BIT_FIELD_REFs.
8953         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8954         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8955         correctly.
8957 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8959         * dwarf2out.c (add_abstract_origin_attribute): Adjust
8960         documentation comment.  For BLOCK nodes, add a
8961         DW_AT_abstract_origin attribute that points to the DIE generated
8962         for the origin BLOCK.
8963         (gen_lexical_block_die): Call add_abstract_origin_attribute for
8964         blocks from inlined functions.
8966 2016-05-10  Alan Modra  <amodra@gmail.com>
8968         PR target/70947
8969         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8970         regrename modifying insns saving lr before __morestack call.
8971         * config/rs6000/rs6000.md (split_stack_return): Similarly for
8972         insns restoring lr after __morestack call.
8974 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
8976         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8977         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8978         expanders.
8979         * config/i386/sse.md (vec_interleave_high<mode>,
8980         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8981         <avx512>_vpermt2var<mode>3_maskz): Likewise.
8983 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8985         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8986         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8987         parallel reassociation for power8 and forward.
8989 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
8991         * config/i386/i386.md (absneg splitters with general regs): Use
8992         general_reg_operand predicate.
8993         (btsq peephole2): Use x86_64_immediate_operand to check if new
8994         value is suitable for immediate operand.  Generate emitted insn
8995         using RTL expressions.
8996         (btcq peephole2): Ditto.
8997         (btrq peephole2): Ditto.  Generate correct immediate operand
8998         for AND masking.
9000 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
9002         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
9003         bitpos.
9005 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
9007         * tree-affine.c (wide_int_constant_multiple_p): Add missing
9008         pointer dereference.
9010 2016-05-09  Richard Biener  <rguenther@suse.de>
9012         PR tree-optimization/70985
9013         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
9014         op0 isn't a gimple register.
9016 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
9018         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
9019         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
9020         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
9021         (i6400_fpu_mult): New cpu units.
9022         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
9023         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
9024         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
9025         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
9026         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
9027         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
9028         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
9029         (i6400_msa_long_float4, i6400_msa_long_float5)
9030         (i6400_msa_long_float8, i6400_msa_fdiv_df)
9031         (i6400_msa_fdiv_sf): New reservations.
9032         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
9033         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
9034         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
9035         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
9036         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
9037         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
9038         (msa_short_cmp, msa_short_float2, msa_short_logic3)
9039         (msa_short_store4, msa_long_load, msa_short_store)
9040         (msa_long_logic, msa_long_float2, msa_long_float4)
9041         (msa_long_float5, msa_long_float8, msa_long_mult)
9042         (msa_long_fdiv, msa_long_div): New reservations.
9044 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
9045             Sameera Deshpande  <sameera.deshpande@imgtec.com>
9046             Matthew Fortune  <matthew.fortune@imgtec.com>
9047             Graham Stott  <graham.stott@imgtec.com>
9048             Chao-ying Fu  <chao-ying.fu@imgtec.com>
9050         * config.gcc: Add MSA header file for mips*-*-* target.
9051         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
9052         (Ubv8i, Urv8):  New constraints.
9053         * config/mips/mips-ftypes.def: Add function types for MSA
9054         builtins.
9055         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
9056         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
9057         * config/mips/mips-msa.md: New file.
9058         * config/mips/mips-protos.h
9059         (mips_split_128bit_const_insns): New prototype.
9060         (mips_msa_idiv_insns): Likewise.
9061         (mips_split_128bit_move): Likewise.
9062         (mips_split_128bit_move_p): Likewise.
9063         (mips_split_msa_copy_d): Likewise.
9064         (mips_split_msa_insert_d): Likewise.
9065         (mips_split_msa_fill_d): Likewise.
9066         (mips_expand_msa_branch): Likewise.
9067         (mips_const_vector_same_val_p): Likewise.
9068         (mips_const_vector_same_bytes_p): Likewise.
9069         (mips_const_vector_same_int_p): Likewise.
9070         (mips_const_vector_shuffle_set_p): Likewise.
9071         (mips_const_vector_bitimm_set_p): Likewise.
9072         (mips_const_vector_bitimm_clr_p): Likewise.
9073         (mips_msa_vec_parallel_const_half): Likewise.
9074         (mips_msa_output_division): Likewise.
9075         (mips_ldst_scaled_shift): Likewise.
9076         (mips_expand_vec_cond_expr): Likewise.
9077         * config/mips/mips.c (enum mips_builtin_type): Add
9078         MIPS_BUILTIN_MSA_TEST_BRANCH.
9079         (mips_gen_const_int_vector_shuffle): New prototype.
9080         (mips_const_vector_bitimm_set_p): New function.
9081         (mips_const_vector_bitimm_clr_p): Likewise.
9082         (mips_const_vector_same_val_p): Likewise.
9083         (mips_const_vector_same_bytes_p): Likewise.
9084         (mips_const_vector_same_int_p): Likewise.
9085         (mips_const_vector_shuffle_set_p): Likewise.
9086         (mips_symbol_insns): Forbid loading symbols via immediate for
9087         MSA.
9088         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
9089         stores.
9090         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
9091         MSA.
9092         (mips_lx_address_p): Add support load indexed address for MSA.
9093         (mips_address_insns): Add calculation of instructions needed for
9094         stores and loads for MSA.
9095         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
9096         CONST_VECTOR for MSA and let it fall through.
9097         (mips_ldst_scaled_shift): New function.
9098         (mips_subword_at_byte): Likewise.
9099         (mips_msa_idiv_insns): Likewise.
9100         (mips_legitimize_move): Validate MSA moves.
9101         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
9102         calculation of costs for MSA division.
9103         (mips_split_move_p): Check if MSA moves need splitting.
9104         (mips_split_move): Split MSA moves if necessary.
9105         (mips_split_128bit_move_p): New function.
9106         (mips_split_128bit_move): Likewise.
9107         (mips_split_msa_copy_d): Likewise.
9108         (mips_split_msa_insert_d): Likewise.
9109         (mips_split_msa_fill_d): Likewise.
9110         (mips_output_move): Handle MSA moves.
9111         (mips_expand_msa_branch): New function.
9112         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
9113         Reinstate 'y' modifier.
9114         (mips_file_start): Add MSA .gnu_attribute.
9115         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
9116         FPRs.
9117         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
9118         (mips_class_max_nregs): Add register size for MSA supported mode.
9119         (mips_cannot_change_mode_class): Allow conversion between MSA
9120         vector modes and TImode.
9121         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
9122         instruction.
9123         (mips_secondary_reload_class): Force MSA loads/stores via memory.
9124         (mips_preferred_simd_mode): Add preffered modes for MSA.
9125         (mips_vector_mode_supported_p): Add MSA supported modes.
9126         (mips_autovectorize_vector_sizes): New function.
9127         (mips_msa_output_division): Likewise.
9128         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
9129         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
9130         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
9131         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
9132         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
9133         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
9134         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
9135         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
9136         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
9137         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
9138         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
9139         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
9140         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
9141         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
9142         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
9143         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
9144         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
9145         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
9146         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
9147         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
9148         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
9149         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
9150         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
9151         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
9152         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
9153         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
9154         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
9155         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
9156         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
9157         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
9158         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
9159         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
9160         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
9161         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
9162         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
9163         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
9164         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
9165         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
9166         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
9167         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
9168         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
9169         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
9170         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
9171         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
9172         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
9173         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
9174         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
9175         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
9176         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
9177         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
9178         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
9179         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
9180         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
9181         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
9182         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
9183         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
9184         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
9185         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
9186         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
9187         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
9188         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
9189         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
9190         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
9191         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
9192         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
9193         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
9194         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
9195         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
9196         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
9197         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
9198         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
9199         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
9200         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
9201         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
9202         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
9203         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
9204         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
9205         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
9206         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
9207         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
9208         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
9209         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
9210         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
9211         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
9212         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
9213         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
9214         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
9215         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
9216         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
9217         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
9218         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
9219         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
9220         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
9221         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
9222         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
9223         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
9224         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
9225         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
9226         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
9227         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
9228         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
9229         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
9230         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
9231         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
9232         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
9233         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
9234         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
9235         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
9236         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
9237         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
9238         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
9239         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
9240         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
9241         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
9242         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
9243         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
9244         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
9245         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
9246         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
9247         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
9248         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
9249         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
9250         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
9251         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
9252         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
9253         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
9254         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
9255         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
9256         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
9257         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
9258         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
9259         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
9260         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
9261         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
9262         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
9263         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
9264         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
9265         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
9266         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
9267         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
9268         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
9269         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
9270         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
9271         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
9272         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
9273         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
9274         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
9275         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
9276         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
9277         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
9278         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
9279         move_v builtins.
9280         (mips_get_builtin_decl_index): New array.
9281         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
9282         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
9283         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
9284         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
9285         (mips_init_builtins): Initialize mips_get_builtin_decl_index
9286         array.
9287         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9288         hook.
9289         (mips_expand_builtin_insn): Prepare operands for
9290         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
9291         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
9292         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
9293         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
9294         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
9295         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
9296         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
9297         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
9298         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
9299         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
9300         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
9301         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
9302         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
9303         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
9304         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
9305         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
9306         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
9307         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
9308         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
9309         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
9310         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
9311         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
9312         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
9313         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
9314         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
9315         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
9316         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
9317         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
9318         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
9319         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
9320         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
9321         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
9322         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
9323         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
9324         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
9325         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
9326         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
9327         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
9328         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
9329         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
9330         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
9331         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
9332         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
9333         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
9334         These are set implicitly and an error is reported if overridden.
9335         (mips_expand_builtin_msa_test_branch): New function.
9336         (mips_expand_msa_shuffle): Likewise.
9337         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
9338         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
9339         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
9340         (mips_expand_vec_unpack): Add support for MSA.
9341         (mips_expand_vector_init): Likewise.
9342         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
9343         instead of const0_rtx.
9344         (mips_msa_vec_parallel_const_half): New function.
9345         (mips_gen_const_int_vector): Likewise.
9346         (mips_gen_const_int_vector_shuffle): Likewise.
9347         (mips_expand_msa_cmp): Likewise.
9348         (mips_expand_vec_cond_expr): Likewise.
9349         * config/mips/mips.h
9350         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
9351         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
9352         specified.
9353         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
9354         (ISA_HAS_MSA): New macro.
9355         (UNITS_PER_MSA_REG): Likewise.
9356         (BITS_PER_MSA_REG): Likewise.
9357         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
9358         (MSA_REG_FIRST): New macro.
9359         (MSA_REG_LAST): Likewise.
9360         (MSA_REG_NUM): Likewise.
9361         (MSA_REG_P): Likewise.
9362         (MSA_REG_RTX_P): Likewise.
9363         (MSA_SUPPORTED_MODE_P): Likewise.
9364         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
9365         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
9366         * config/mips/mips.md: Include mips-msa.md.
9367         (alu_type): Add simd_add.
9368         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
9369         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
9370         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
9371         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
9372         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
9373         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
9374         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
9375         simd_move, simd_load, simd_store.  Choose "multi" for moves
9376         for "qword_mode".
9377         (qword_mode): New attribute.
9378         (insn_count): Add instruction count for quad moves.
9379         Increase the count for MIPS SIMD division.
9380         (UNITMODE): Add UNITMODEs for vector types.
9381         (addsub): New code iterator.
9382         * config/mips/mips.opt (mmsa): New option.
9383         * config/mips/msa.h: New file.
9384         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
9385         specified.
9386         * config/mips/mti-linux.h: Likewise.
9387         * config/mips/predicates.md
9388         (const_msa_branch_operand): New constraint.
9389         (const_uimm3_operand): Likewise.
9390         (const_uimm4_operand): Likewise.
9391         (const_uimm5_operand): Likewise.
9392         (const_uimm8_operand): Likewise.
9393         (const_imm5_operand): Likewise.
9394         (aq10b_operand): Likewise.
9395         (aq10h_operand): Likewise.
9396         (aq10w_operand): Likewise.
9397         (aq10d_operand): Likewise.
9398         (const_m1_operand): Likewise.
9399         (reg_or_m1_operand): Likewise.
9400         (const_exp_2_operand): Likewise.
9401         (const_exp_4_operand): Likewise.
9402         (const_exp_8_operand): Likewise.
9403         (const_exp_16_operand): Likewise.
9404         (const_vector_same_val_operand): Likewise.
9405         (const_vector_same_simm5_operand): Likewise.
9406         (const_vector_same_uimm5_operand): Likewise.
9407         (const_vector_same_uimm6_operand): Likewise.
9408         (const_vector_same_uimm8_operand): Likewise.
9409         (par_const_vector_shf_set_operand): Likewise.
9410         (reg_or_vector_same_val_operand): Likewise.
9411         (reg_or_vector_same_simm5_operand): Likewise.
9412         (reg_or_vector_same_uimm6_operand): Likewise.
9413         * doc/extend.texi (MIPS SIMD Architecture Functions): New
9414         section.
9415         * doc/invoke.texi (-mmsa): Document new option.
9417 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9419         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
9420         * configure: Regenerate.
9421         * config.in: Regenerate.
9422         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
9423         on -fvtable-verify.
9424         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
9425         (ENDFILE_VTV_SPEC): Define.
9427 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
9429         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
9430         registers in all interrupt handlers if necessary.
9431         (rl78_option_override): Add warning.
9432         (MUST_SAVE_MDUC_REGISTERS): New macro.
9433         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
9434         * config/rl78/rl78.c (check_mduc_usage): New function.
9435         (mduc_regs): New structure to hold MDUC register data.
9436         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
9437         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
9438         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
9439         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
9440         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
9441         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
9443 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
9445         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
9446         (tree-ssa-loop-niter.h): Ditto.
9447         (idx_within_array_bound, ref_within_array_bound): New functions.
9448         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
9449         Factor out check on writable base object to ...
9450         (base_object_writable): ... here.
9452 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9454         * config/arm/arm.md (probe_stack): Add modes to set source
9455         and destination.
9457 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
9459         * regrename.c (base_reg_class_for_rename): New static function.
9460         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
9462 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
9464         * cgraph.c (thunk_adjust): Export.
9465         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
9466         * cgraphunit.c (thunk_adjust): Export.
9467         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
9468         thunks.
9469         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
9470         inlinable.
9471         * tree-inline.c (expand_call_inline): Expand thunks inline.
9473 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
9475         PR target/70998
9476         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
9477         (*sse2_vd_cvtss2sd): Ditto.
9478         * config/i386/i386.md
9479         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
9480         Generate *sse2_vd_cvtsd2ss pattern.
9481         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
9482         Generate *sse2_vd_cvtss2sd pattern.
9484 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
9486         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
9487         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
9488         users.
9490 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
9492         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
9493         * config/sh/sh.c: Define and declare variables on first use throughout
9494         the file.
9495         (current_function_interrupt): Change to bool type.
9496         (frame_insn): Rename to emit_frame_insn and update users.
9497         (push_regs): Use bool for 'interrupt_handler' argument.
9498         (save_schedule_s): Remove.
9499         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
9500         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
9501         targetm.asm_out.unaligned_op.di.
9502         (gen_far_branch): Remove redundant forward declaration.
9503         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
9504         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
9505         (sh_set_return_address, sh_function_ok_for_sibcall,
9506         scavenge_reg): Update comments.
9507         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
9508         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
9509         (sh_attr_renesas_p): Remove unnecessary parentheses.
9510         (branch_dest): Simplify.
9511         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
9512         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
9513         (CUMULATIVE_ARGS): Change macro to typedef.
9514         (current_function_interrupt): Change to bool type.
9515         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
9516         Surround with __cplusplus ifdef.
9517         (sh_compare_op0, sh_compare_op1): Remove.
9518         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
9520 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
9522         * config/arm/arm.md: (arch): Add neon.
9523         (arch_enabled): Return yes for arch neon when TARGET_NEON.
9524         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
9525         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
9526         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
9527         attributes for alt renumbering.  Mark alt 3 as non-predicable.
9528         (thumb2_movdf_vfp): Likewise.
9530 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
9532         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
9533         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
9534         (*andqi_1): Add preferred_for_speed attribute to disparage
9535         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
9536         (*<code>qi_1): Ditto.
9537         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
9538         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
9539         (*ashlqi3_1): Ditto.
9540         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
9541         Add preferred_for_size attribute to disparage alternative 0 and
9542         preferred_for_speed attribute to disparage alternative 1 for
9543         TARGET_PARTIAL_REG_STALL targets.
9545 2016-05-07  Tom de Vries  <tom@codesourcery.com>
9547         PR tree-optimization/70956
9548         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
9549         def.
9551 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
9553         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
9554         * config/sh/sh.c (sh_cbranch_distance): Implement it.
9555         * config/sh/sh.md (branch_zero): Remove define_attr.
9556         (define_delay): Disable delay slot if branch distance is one insn.
9558 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9560         * config/i386/i386.md (LEAMODE): New mode attribute.
9561         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
9562         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
9563         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
9564         operand 2 predicate.
9565         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
9566         (*lea<mode>_general_3): Ditto.
9567         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
9569 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
9571         * genmddump.c (main): Convert argv from char ** to const char **.
9573 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9575         * coretypes.h (OVERRIDE): New macro.
9576         (FINAL): New macro.
9578 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
9580         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
9581         allow coalescing if the types are compatible.
9583 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9585         * pass_manager.h (pass_manager::register_pass_name): New method.
9586         (pass_manager::get_pass_by_name): New method.
9587         (pass_manager::create_pass_tab): New method.
9588         (pass_manager::m_name_to_pass_map): New field.
9589         * passes.c (name_to_pass_map): Delete global in favor of field
9590         "m_name_to_pass_map" of pass_manager.
9591         (register_pass_name): Rename from a function to...
9592         (pass_manager::register_pass_name): ...this method, updating
9593         for renaming of global "name_to_pass_map" to field
9594         "m_name_to_pass_map".
9595         (create_pass_tab): Rename from a function to...
9596         (pass_manager::create_pass_tab): ...this method, updating
9597         for renaming of global "name_to_pass_map" to field.
9598         (get_pass_by_name): Rename from a function to...
9599         (pass_manager::get_pass_by_name): ...this method.
9600         (enable_disable_pass): Convert use of get_pass_by_name to
9601         a method call, locating the pass_manager singleton.
9603 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
9605         * genattr-common.c (main): Convert argv from char ** to const char **.
9606         * genattr.c (main): Likewise.
9607         * genattrtab.c (main): Likewise.
9608         * genautomata.c (initiate_automaton_gen): Likewise.
9609         (main): Likewise.
9610         * gencodes.c (main): Likewise.
9611         * genconditions.c (main): Likewise.
9612         * genconfig.c (main): Likewise.
9613         * genconstants.c (main): Likewise.
9614         * genemit.c (main): Likewise.
9615         * genenums.c (main): Likewise.
9616         * genextract.c (main): Likewise.
9617         * genflags.c (main): Likewise.
9618         * genmddeps.c (main): Likewise.
9619         * genopinit.c (main): Likewise.
9620         * genoutput.c (main): Likewise.
9621         * genpeep.c (main): Likewise.
9622         * genpreds.c (main): Likewise.
9623         * genrecog.c (main): Likewise.
9624         * gensupport.c (init_rtx_reader_args_cb): Likewise.
9625         (init_rtx_reader_args): Likewise.
9626         * gensupport.h (init_rtx_reader_args_cb): Likewise.
9627         (init_rtx_reader_args): Likewise.
9628         * gentarget-def.c (main): Likewise.
9629         * read-md.c (read_md_files): Likewise.
9630         * read-md.h (read_md_files): Likewise.
9632 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9634         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
9635         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
9636         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
9637         Remove unused predicate.
9638         (register_and_not_fp_reg_operand): Ditto.
9640 2016-05-06  Martin Liska  <mliska@suse.cz>
9642         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
9643         instead of vec as the vector is local to the function.
9645 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
9647         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
9648         avx512bw alternative.
9650         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
9651         before the ashr<mode>3 pattern.
9653         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
9654         v instead of x in vex or maybe_vex alternatives, use
9655         maybe_evex instead of vex in prefix.
9657         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
9658         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
9659         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
9660         in vex or maybe_vex alternatives, use maybe_evex instead of vex
9661         in prefix.
9663         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
9664         v instead of x in vex or maybe_vex alternatives, use
9665         maybe_evex instead of vex in prefix.
9667         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
9668         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
9669         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
9670         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
9671         alternatives, use maybe_evex instead of vex in prefix.
9673         * config/i386/sse.md (vec_interleave_lowv4sf,
9674         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
9675         v instead of x in vex or maybe_vex alternatives, use
9676         maybe_evex instead of vex in prefix.
9678         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
9679         v instead of x in vex or maybe_vex alternatives, use
9680         maybe_evex instead of vex in prefix.
9682         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
9683         v constraint instead of x.
9685 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
9687         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
9688         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
9689         equality first.
9691 2016-05-06  Richard Biener  <rguenther@suse.de>
9693         PR tree-optimization/70948
9694         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9695         Properly clobber all fields of va_list for __builtin_va_start.
9697 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
9699         PR debug/70935
9700         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
9701         loop latch destination.
9703 2016-05-06  Martin Liska  <mliska@suse.cz>
9705         * tree-ssa-uninit.c: Apply manual changes
9706         to the GNU coding style.
9707         (prune_uninit_phi_opnds): Rename from
9708         prune_uninit_phi_opnds_in_unrealizable_paths.
9710 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9712         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
9713         mspace): Remove deprecated options.
9714         * doc/invoke.texi (SH options): Remove -mspace.
9716 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9718         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
9720 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9722         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
9723         corresponding combine split pattern.
9725 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9727         PR target/58219
9728         * config/sh/predicates.md (long_displacement_mem_operand): New.
9729         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
9730         Add movi20, movi20s alternatives.  Adjust length attribute for
9731         alternatives.
9732         (movsi_ie): Allow for any FPU.  Adjust length attribute for
9733         alternatives.
9734         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
9735         attribute for alternatives.
9736         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
9737         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
9738         length attribute for alternatives.
9740 2016-05-06  Richard Biener  <rguenther@suse.de>
9742         PR tree-optimization/70960
9743         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
9745 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9747         PR target/52933
9748         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
9749         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
9751 2016-05-06  Marek Polacek  <polacek@redhat.com>
9753         PR sanitizer/70875
9754         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
9756 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
9758         PR target/54089
9759         * config/sh/sh.md (*rotcr): Add another variant.
9761 2016-05-06  Richard Biener  <rguenther@suse.de>
9763         PR middle-end/70931
9764         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
9766 2016-05-06  Richard Biener  <rguenther@suse.de>
9768         PR middle-end/70941
9769         * fold-const.c (split_tree): Always convert to the original type
9770         before negating.
9772 2016-05-06  Richard Biener  <rguenther@suse.de>
9774         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
9775         (fwprop_addr): Likewise.
9777 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
9779         PR target/70873
9780         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
9781         New prototype.
9782         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
9783         * config/i386/i386.md (push mem splitter): Use find_constant_src in
9784         the splitter condition.
9785         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
9786         the splitter condition.
9787         (FP float_extend load splitter): Ditto.
9789 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
9791         * config/i386/i386.md (peehole2 patterns): Change true_regnum
9792         to REGNO in all peephole2 patterns.
9793         (post-reload splitters): Change true_regnum to REGNO in
9794         post-reload splitters.
9795         (zero_extend splitters): Use general_reg_operand and
9796         nonimmediate_gr_operand predicates.
9798 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
9800         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
9801         v constraint instead of x.
9803 2016-05-05  Alan Modra  <amodra@gmail.com>
9805         PR target/68662
9806         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
9807         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
9808         TARGET_NO_FP_IN_TOC for -mrelocatable.
9809         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
9810         TARGET_RELOCATABLE test.
9811         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9812         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9813         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9814         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9815         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9816         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9817         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9818         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9819         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9820         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9821         Likewise.
9822         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
9823         (rs6000_stack_info): Likewise.
9824         (rs6000_elf_asm_out_constructor): Likewise.
9825         (rs6000_elf_asm_out_destructor): Likewise.
9826         (rs6000_elf_declare_function_name): Likewise.
9827         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
9828         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
9829         Don't define.
9831 2016-05-05  Alan Modra  <amodra@gmail.com>
9833         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9835 2016-05-05  Alan Modra  <amodra@gmail.com>
9837         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9838         out-of-line gpr restore for one or two regs if that would add
9839         a save of lr.
9841 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
9843         PR target/70873
9844         * config/i386/i386.md
9845         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9846         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
9847         as operand 0 predicate.
9848         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9849         Ditto.
9850         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9851         Ditto.  Emit the pattern using RTX.
9853         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9854         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
9855         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
9856         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9857         Ditto.
9858         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9859         sse_reg_operand as operand 0 predicate.
9861         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9862         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
9863         instead of gen_rtx_REG.
9864         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9865         Ditto.
9867 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9869         * function.c (emit_use_return_register_into_block): Delete.
9870         (gen_return_pattern): Delete.
9871         (emit_return_into_block): Delete.
9872         (active_insn_between): Delete.
9873         (convert_jumps_to_returns): Delete.
9874         (emit_return_for_exit): Delete.
9875         (thread_prologue_and_epilogue_insns): Delete all code dealing with
9876         simple_return for shrink-wrapped blocks.
9877         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9878         end of blocks that need one.
9879         (get_unconverted_simple_return): Delete.
9880         (convert_to_simple_return): Delete.
9881         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9882         (convert_to_simple_return): Ditto.
9884 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9886         * cfgcleanup.c (bb_is_just_return): New function.
9887         (try_optimize_cfg): Simplify jumps to return, branches to return,
9888         and branches around return.
9890 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9892         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9893         branch to a return.
9895 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9897         PR c++/70906
9898         PR c++/70933
9899         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9900         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9901         assert flags & OEP_HASH_CHECK, instead of asserting it
9902         never happens.  Handle TARGET_EXPR.
9903         * fold-const.c (operand_equal_p): For hash verification,
9904         or in OEP_HASH_CHECK into flags.
9906 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9908         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9909         comment.
9910         (compute_samebase_partition_bases): Fix typo.
9912 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9914         * config/i386/sse.md (vec_interleave_highv8sf,
9915         vec_interleave_lowv8sf, vec_interleave_highv4df,
9916         vec_interleave_lowv4df): Remove constraints from expanders.
9918         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9920 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9922         * tree-inline.c (expand_call_inline): Fix path dealing with
9923         making lhs of call statement undefined.
9925 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9927         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9928         Check availability on NODE, too.
9929         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9930         (cgraph_node::call_for_symbol_and_aliases): Likewise.
9931         (varpool_node::call_for_symbol_and_aliase): Likewise.
9932         * ipa-pure-const.c (add_new_function): Analyze all bodies.
9933         (propagate_pure_const): Propagate across interposable functions, too.
9934         (skip_function_for_local_pure_const): Do not skip interposable bodies
9935         with aliases.
9936         (pass_local_pure_const::execute): Update.
9938 2016-05-04  Marek Polacek  <polacek@redhat.com>
9940         * doc/invoke.texi: Document -Wdangling-else.
9942 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9944         * config.gcc: Error out when conflicting multilib is detected.  Do not
9945         loop over multilibs since no combination is legal.
9947 2016-05-04  Alan Modra  <amodra@gmail.com>
9949         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9950         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9951         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9952         Align .toc.
9954 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
9956         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9957         Clean up p5600 comments.
9959 2016-05-04  Richard Biener  <rguenther@suse.de>
9961         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9962         constructor simplifications.
9963         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9965 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
9967         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9968         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9969         result.set_rtx is null instead of aborting.
9970         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9971         Always enable.
9972         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9973         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9974         *mov<mode>_store_postinc): New patterns.
9976 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
9978         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
9979         as commutative.  Check both conversions are NOP.
9980         ((A & B) OP (C & B)): Remove.
9982 2016-05-04  Alan Modra  <amodra@gmail.com>
9984         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9986 2016-05-04  Alan Modra  <amodra@gmail.com>
9988         PR target/70866
9989         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9990         when cr2,3,4 are all fixed regs.
9992 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
9994         PR rtl-optimization/57193
9995         * opts.c (default_options_table): Revert OPT_frename_registers change.
9996         * doc/invoke.texi (-frename-registers, -O2): Likewise.
9998 2016-05-03  Martin Sebor  <msebor@redhat.com>
10000         PR c++/66561
10001         * builtins.c (fold_builtin_FILE): New function.
10002         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
10003         (fold_builtin_0): Call them.
10004         * gimplify.c (gimplify_call_expr): Remove the handling of
10005         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
10007         PR c++/66561
10008         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
10009         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
10010         constants.
10012         PR c++/66639
10013         * doc/extend.texi (Function Names as Strings): Update __func__,
10014         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
10015         constants.
10017 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
10018             Richard Biener  <rguenther@suse.de>
10020         PR tree-optimization/70916
10021         * tree-if-conv.c: Include cfganal.h.
10022         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
10023         and remove_fake_exit_edges around the optimization pass.
10025 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
10027         * cgraph.c (symbol_table::create_edge): Set inline_failed.
10028         (cgraph_edge::make_direct): Likewise.
10029         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
10030         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
10031         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
10032         (CIF_THUNK): New code.
10033         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
10034         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
10035         (compute_inline_parameters): Set inline_failed for thunks.
10036         (inline_analyze_function): Cleanup.
10037         * ipa-inline.c (can_inline_edge_p): Do not deal with
10038         call_stmt_cannot_inline_p.
10039         (can_early_inline_edge_p): Likewise.
10040         (early_inliner): Initialize inline_failed.
10041         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
10043 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
10045         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
10046         from nonimm_ssenomem_operand.
10047         (nonimm_ssenomem_operand): New predicate.
10048         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
10049         as operand 0 predicate.
10050         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
10051         Disable unsupported alternatives using "enabled" attribute.
10052         Use register_ssemem_operand as operand 0 predicate.
10053         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
10055 2016-05-03  Marek Polacek  <polacek@redhat.com>
10057         PR c/70859
10058         * input.c (expansion_point_location): New function.
10059         * input.h (expansion_point_location): Declare.
10061 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10063         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
10064         occurence with frame_offset_ ones.
10066 2016-05-03  Alan Modra  <amodra@gmail.com>
10068         PR rtl-optimization/70890
10069         * ira.c (combine_and_move_insns): When moving def_insn, remove
10070         equivs on use_insn.
10072 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10074         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
10075         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
10076         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
10077         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
10079 2016-05-03  Alan Modra  <amodra@gmail.com>
10081         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
10082         for SAVE_MULTIPLE/STORE_MULTIPLE.
10084 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
10086         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
10087         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
10089 2016-05-03  Richard Biener  <rguenther@suse.de>
10091         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
10092         default true.
10093         (gimplify_arg): Likewise.
10094         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
10095         re-writing the result to a decl if required.
10096         (internal_get_tmp_var): Add allow_ssa parameter
10097         and override into_ssa with it.
10098         (get_formal_tmp_var): Adjust.
10099         (get_initialized_tmp_var): Add allow_ssa parameter.
10100         (gimplify_arg): Add allow_ssa parameter and avoid generating
10101         SSA names for the result false.
10102         (gimplify_call_expr): If the call may return twice do not
10103         gimplify parameters into SSA.
10104         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
10105         (gimplify_modify_expr): Adjust assert.  For noreturn calls
10106         with a SSA name LHS adjust its def.
10107         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
10108         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
10109         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
10110         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
10111         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
10112         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
10113         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
10114         (optimize_target_teams): Do not allow SSA names for clause operands.
10115         (gimplify_expr): Likewise for where we mark the result addressable.
10116         * passes.def (pass_init_datastructures): Remove.
10117         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
10118         (rewrite_stmt): Likewise.
10119         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
10120         (replace_locals_op): Replace SSA names.
10121         (copy_gimple_seq_and_replace_locals): Init src_cfun.
10122         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
10123         * cgraph.c (release_function_body): Free CFG annotations only
10124         when we have a CFG.  Simplify.
10125         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
10126         force_gimple_operand instead of get_initialized_tmp_var.
10127         * tree-pass.h (make_pass_init_datastructures): Remove.
10128         * tree-ssa.c (execute_init_datastructures): Remove.
10129         (pass_data_init_datastructures): Likewise.
10130         (class pass_init_datastructures): Likewise.
10131         (make_pass_init_datastructures): Likewise.
10132         * omp-low.c (create_omp_child_function): Init SSA data structures.
10133         (grid_expand_target_grid_body): Likewise.
10134         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
10135         name before adding it to names_to_release.
10136         (remove_bb): Always release SSA defs.
10137         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
10138         before dereferencing it.
10139         * cgraphunit.c (init_lowered_empty_function): Always
10140         int SSA data structures.
10141         * tree-ssanames.c (release_defs): Remove assert that we are in
10142         SSA form.
10143         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
10145 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
10146             Uros Bizjak  <ubizjak@gmail.com>
10148         PR rtl-optimization/70467
10149         * config/i386/predicates.md (x86_64_hilo_int_operand,
10150         x86_64_hilo_general_operand): New predicates.
10151         * config/i386/constraints.md (Wd): New constraint.
10152         * config/i386/i386.md (mode attr di): Use Wd instead of e.
10153         (general_hilo_operand): New mode attr.
10154         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
10155         instead of <general_operand>.
10156         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
10157         x86_64_hilo_general_operand instead of <general_operand>.
10159 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
10161         PR tree-optimization/70916
10162         * tree-if-conv.c (constant_or_ssa_name): Removed.
10163         (fold_build_cond_expr): Use is_gimple_val instead of
10164         constant_or_ssa_name.
10166         PR tree-optimization/70916
10167         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
10168         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
10170         PR target/49244
10171         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
10172         (optimize_atomic_bit_test_and): New function.
10173         (pass_fold_builtins::execute): Use it.
10174         * optabs.def (atomic_bit_test_and_set_optab,
10175         atomic_bit_test_and_complement_optab,
10176         atomic_bit_test_and_reset_optab): New optabs.
10177         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
10178         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
10179         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
10180         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
10181         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
10182         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
10183         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
10184         * doc/md.texi (atomic_bit_test_and_set@var{mode},
10185         atomic_bit_test_and_complement@var{mode},
10186         atomic_bit_test_and_reset@var{mode}): Document.
10187         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
10188         atomic_bit_test_and_complement<mode>,
10189         atomic_bit_test_and_reset<mode>): New expanders.
10190         (atomic_bit_test_and_set<mode>_1,
10191         atomic_bit_test_and_complement<mode>_1,
10192         atomic_bit_test_and_reset<mode>_1): New insns.
10194 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
10196         PR rtl-optimization/70687
10197         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
10198         instead of unsigned HOST_WIDE_INT.
10200 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
10202         PR rtl-optimization/44281
10203         * hard-reg-set.h (struct target_hard_regs): New field
10204         x_fixed_nonglobal_reg_set.
10205         (fixed_nonglobal_reg_set): New macro.
10206         * reginfo.c (init_reg_sets_1): Initialize it.
10207         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
10208         of fixed_reg_set.
10209         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
10211 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
10213         PR tree-optimization/56541
10214         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
10215         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
10216         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
10217         (any_complicated_phi): new static variable.
10218         (aggressive_if_conv): delete.
10219         (if_convertible_phi_p): support phis with more than two arguments.
10220         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
10221         critical pred edges.
10222         (ifcvt_split_critical_edges): support phis with more than two
10223         arguments by checking new parameter.  only split critical edges
10224         if needed.
10225         (tree_if_conversion): handle simd pragma marked loop using new
10226         local variable aggressive_if_conv.  check any_complicated_phi.
10228 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
10230         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
10231         before using it.
10233 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
10235         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
10236         cbase.
10238 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
10240         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
10241         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
10242         define_insn_and_split.
10243         (mulsi3_i): New define_insn_and_split.
10244         (mulsi3_call): Convert to define_insn.
10245         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
10246         Remove constraints.
10248 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10250         * machmode.h (mode_complex): Add support to give the complex mode
10251         for a given mode.
10252         (GET_MODE_COMPLEX_MODE): Likewise.
10253         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
10254         stored by build_complex_type and gfc_build_complex_type instead of
10255         trying to figure out the appropriate mode based on the size. Raise
10256         an assertion error, if the type was not set.
10257         * genmodes.c (struct mode_data): Add field for the complex type of
10258         the given type.
10259         (blank_mode): Likewise.
10260         (make_complex_modes): Remember the complex mode created in the
10261         base type.
10262         (emit_mode_complex): Write out the mode_complex array to map a
10263         type mode to the complex version.
10264         (emit_insn_modes_c): Likewise.
10265         * tree.c (build_complex_type): Set the complex type to use before
10266         calling layout_type.
10267         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
10268         support for __float128 complex datatypes.
10269         (rs6000_hard_regno_mode_ok): Likewise.
10270         (rs6000_setup_reg_addr_masks): Likewise.
10271         (rs6000_complex_function_value): Likewise.
10272         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
10273         __float128 and __ibm128 complex.
10274         (FLOAT128_IBM_P): Likewise.
10275         (ALTIVEC_ARG_MAX_RETURN): Likewise.
10276         * doc/extend.texi (Additional Floating Types): Document that
10277         -mfloat128 must be used to enable __float128.  Document complex
10278         __float128 and __ibm128 support.
10280 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
10282         PR target/49244
10283         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
10284         char/short arguments promoted to int because of promote_prototypes.
10286 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
10288         * config/i386/predicates.md (register_ssemem_operand): New predicate.
10289         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
10290         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
10291         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
10292         alternatives using "enabled" attribute.  Use register_ssemem_operand
10293         as operand 1 predicate.
10294         (*cmpi<unord>xf_i387): Split XFmode pattern from
10295         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
10296         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
10297         *absneg<mode>2_i387.  Disable unsupported alternatives using
10298         "enabled" attribute.
10299         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
10301 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10303         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
10304         marker.
10305         (oacc_loop_process): Check mask for loop termination.
10307 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
10309         * cif-code.def (CIF_THUNK): Add.
10310         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
10311         accidental change.
10313 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
10315         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
10316         (dump_inline_summary): Dump it.
10317         (fp_expression_p): New predicate.
10318         (estimate_function_body_sizes): Use it.
10319         (inline_merge_summary): Merge fp_expressions.
10320         (inline_read_section): Read fp_expressions.
10321         (inline_write_summary): Write fp_expressions.
10322         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
10323         codegen boundary if either caller or callee is !fp_expressions.
10324         * ipa-inline.h (inline_summary): Add fp_expressions.
10325         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
10326         to fp_expressions be sure the fp generation flags are updated.
10328 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
10330         PR rtl-optimization/70467
10331         * cse.c (cse_insn): Handle no-op MEM moves after folding.
10333         PR rtl-optimization/70467
10334         * ipa-pure-const.c (check_call): Handle internal calls even in
10335         ipa mode like in local mode.
10337 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10339         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
10341 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
10343         * match.pd (X u< X, X u> X): New transformations.
10345 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
10347         * flag-types.h (enum warn_strict_overflow_code): Move ...
10348         * coretypes.h: ... here.
10349         * fold-const.h (fold_overflow_warning): Declare.
10350         * fold-const.c (fold_overflow_warning): Make non-static.
10351         (fold_comparison): Move the transformation of X +- C1 CMP C2
10352         into X CMP C2 -+ C1 ...
10353         * match.pd: ... here.
10354         * gimple-fold.c (fold_stmt_1): Protect with
10355         fold_defer_overflow_warnings.
10357 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10359         * omp-low.c (struct oacc_loop): Add 'inner' field.
10360         (new_oacc_loop_raw): Initialize it to zero.
10361         (oacc_loop_fixed_partitions): Initialize it.
10362         (oacc_loop_auto_partitions): Partition outermost loop to outermost
10363         available partitioning.
10365 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
10367         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
10368         register_operand.
10369         (umulsidi3): Likewise.
10370         (indirect_jump): Fix jump instruction assembly patterns.
10372 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
10374         PR target/70860
10375         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
10376         (nvptx_function_value): Assert non-NULL cfun.
10378 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
10380         PR rtl-optimization/70886
10381         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
10383         * cselib.h (rtx_equal_for_cselib_1): Declare.
10384         (rtx_equal_for_cselib_p: New inline function.
10385         * cselib.c (rtx_equal_for_cselib_p): Delete.
10386         (rtx_equal_for_cselib_1): Make public.
10388 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
10390         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
10391         (register_mixssei387nonimm_operand): Remove predicate.
10392         * config/i386/i386.md (*fop_<mode>_comm): Merge from
10393         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
10394         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
10395         for TARGET_MIX_SSE_I387 alternatives.
10396         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
10397         Disable unsupported alternatives using "enabled" attribute.  Use
10398         nonimm_ssenomem_operand as operand 1 predicate.  Also check
10399         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
10401 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10403         * tree.c (cst_and_fits_in_hwi): Simplify.
10405 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10407         * tree.h (wi::to_wide): New function.
10408         * expr.c (expand_expr_real_1): Use wi::to_wide.
10409         * fold-const.c (int_const_binop_1): Likewise.
10410         (extract_muldiv_1): Likewise.
10412 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10414         * wide-int.h: Update offset_int and widest_int documentation.
10415         (WI_SIGNED_SHIFT_RESULT): New macro.
10416         (wi::binary_shift): Define signed_shift_result_type for
10417         shifts on offset_int- and widest_int-like types.
10418         (generic_wide_int): Support <<= and >>= if << and >> are supported.
10419         * tree.h (int_bit_position): Use shift operators instead of wi::
10420          shifts.
10421         * alias.c (adjust_offset_for_component_ref): Likewise.
10422         * expr.c (get_inner_reference): Likewise.
10423         * fold-const.c (fold_comparison): Likewise.
10424         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
10425         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
10426         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10427         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
10428         (stmt_kills_ref_p): Likewise.
10429         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
10430         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
10431         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10432         (ao_ref_init_from_vn_reference): Likewise.
10434 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
10436         * wide-int.h: Update offset_int and widest_int documentation.
10437         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
10438         (wi::binary_traits): Allow ordered comparisons between offset_int and
10439         offset_int, between widest_int and widest_int, and between either
10440         of these types and basic C types.
10441         (operator <, <=, >, >=): Define for the same combinations.
10442         * tree.h (tree_int_cst_lt): Use comparison operators instead
10443         of wi:: comparisons.
10444         (tree_int_cst_le): Likewise.
10445         * gimple-fold.c (fold_array_ctor_reference): Likewise.
10446         (fold_nonarray_ctor_reference): Likewise.
10447         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
10448         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
10449         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
10450         * tree-sra.c (completely_scalarize): Likewise.
10451         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
10452         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
10453         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
10454         (check_for_binary_op_overflow): Likewise.
10455         (search_for_addr_array): Likewise.
10456         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
10458 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
10460         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
10461         (arc_save_restore): Likewise.
10462         (arc_dwarf_register_span): Likewise.
10463         (arc_output_pic_addr_const): Initialize suffix variable.
10465 2016-05-02  Martin Liska  <mliska@suse.cz>
10467         * symbol-summary.h (function_summary::function_summary):
10468         Remove checking assert for all cgraph nodes.
10469         (function_summary::get): Check summary_uid.
10470         (symtab_insertion): Check summary_uid.
10472 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
10474         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
10475         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
10476         bmaskn instruction.
10477         (arc_dwarf_register_span): Remove enum keyword.
10478         (compact_memory_operand_p): New function.
10479         * config/arc/arc.h (reg_class): Add code density register classes.
10480         (REG_CLASS_NAMES): Likewise.
10481         (REG_CLASS_CONTENTS): Likewise.
10482         * config/arc/arc.md (*movqi_insn): Add code density instructions.
10483         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
10484         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
10485         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
10486         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
10487         constraints.
10488         (h, Rcd, Rsd, Rzd): New register constraints.
10489         (T): Use compact_memory_operand_p function.
10490         * config/arc/predicates.md (compact_load_memory_operand): Remove.
10492 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
10494         * config/sh/sh.md (*negnegt, *movtt): Remove.
10496 2016-05-02  Marek Polacek  <polacek@redhat.com>
10497             Tom de Vries  <tom@codesourcery.com>
10499         PR tree-optimization/70700
10500         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
10501         bigger than FIRST_REF_NODE.
10503 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
10505         PR target/52898
10506         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
10507         TARGET_CMPEQDI_T.
10508         (prepare_cbranch_operands): Don't use scratch register.  Assume that
10509         function is used when pseudos can be created.
10510         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
10511         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
10512         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
10513         define_expand.  Allow it only when pseudos can be created.
10514         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
10516 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
10518         * config/i386/constraints.md (BC): Only allow -1 operands.
10519         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
10520         Add "enabled" attribute.  Update XI mode attribute calculation.
10521         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
10522         (*movoi_internal_avx): Update XI mode attribute calculation.
10523         (*movti_internal): Ditto.
10525 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10527         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
10528         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
10530 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
10532         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
10533         statement on instruction code.  Remove trailing spaces.
10534         (altivec_expand_stv_builtin): Likewise.
10536 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10538         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
10539         (TARGET_FPU_DOUBLE): Simplify.
10540         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
10541         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
10542         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
10543         with 'TARGET_FPU_DOUBLE'.
10544         * config/sh/sh.md: Likewise.
10546 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
10548         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
10549         SH_DIV_STR_FOR_SIZE): Remove.
10550         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
10551         SH_DIV_STR_FOR_SIZE): Remove.
10553 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
10555         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
10556         logical_reg_operand): Delete.
10557         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
10558         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
10559         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
10560         match_operand and match_test.
10561         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
10562         variables on their first use.  Return bool values.
10563         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
10564         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
10565         arith_reg_operand for input operand.  Remove empty constraints.
10566         (xorsi3): Delete.
10567         (*xorsi3_compact): Rename to xorsi3.
10568         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
10569         (*zero_extend<mode>si2_disp_mem): Update comment.
10570         (mov_nop): Delete.
10572 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
10574         * config/sh/t-sh: Remove SH5 support.
10575         * config.gcc: Likewise.
10576         * configure: Likewise.
10578 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10580         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
10582 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
10584         * config/sh/sh.c (register_sh_passes, sh_option_override,
10585         sh_print_operand, prepare_move_operands,
10586         sh_can_follow_jump): Remove TARGET_SH1 checks.
10587         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
10588         PROMOTE_MODE): Likewise.
10589         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
10590         movdi): Likewise.
10592 2016-04-30  Alan Modra  <amodra@gmail.com>
10594         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
10595         restoring when fixed_reg_p, but allow out-of-line or stmw save.
10596         Check for user regs later to avoid unnecessary looping over regs.
10597         Merge user reg check with non-saved reg check.  Don't force
10598         inline VR restore when static chain used.
10599         (rs6000_frame_related): Omit eh_frame info for user regs when
10600         saving.
10601         (fixed_regs_p): Delete.
10603 2016-04-30  Alan Modra  <amodra@gmail.com>
10605         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
10606         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
10607         Update all uses.
10609 2016-04-30  Alan Modra  <amodra@gmail.com>
10611         PR target/69645
10612         * config/rs6000/rs6000.c (fixed_reg_p): New function.
10613         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
10614         Update all uses.
10616 2016-04-30  Alan Modra  <amodra@gmail.com>
10618         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10619         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
10620         flag_pic test for Darwin.
10622 2016-04-30  Alan Modra  <amodra@gmail.com>
10624         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
10625         throw_calls_crossed.
10626         (REG_FREQ_CALLS_CROSSED): Delete.
10627         (REG_N_THROWING_CALLS_CROSSED): Delete.
10628         * regstat.c (regstat_bb_compute_ri): Don't calculate
10629         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
10630         (dump_reg_info): Don't print call cross frequency.
10631         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
10632         and REG_N_THROWING_CALLS_CROSSED.
10634 2016-04-30  Alan Modra  <amodra@gmail.com>
10636         * regs.h (struct reg_info_t): Delete live_length.
10637         (REG_LIVE_LENGTH): Delete macro.
10638         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
10639         local_live, local_processed and local_live_last_luid params.
10640         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
10641         Formatting fixes.
10642         (regstat_compute_ri): Adjust for above.  Don't set
10643         REG_LIVE_LENGTH.
10644         (dump_reg_info): Don't print live length.
10645         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
10646         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
10647         Localize loop_depth var.
10649 2016-04-30  Alan Modra  <amodra@gmail.com>
10651         * ira.c (enum valid_equiv): New.
10652         (validate_equiv_mem): Return enum.
10653         (update_equiv_mem): Create replacement in more cases.
10654         (add_store_equivs): Update validate_equiv_mem call.
10656 2016-04-30  Alan Modra  <amodra@gmail.com>
10658         * ira.c (combine_and_move_insns): Rather than scanning insns,
10659         use DF infrastucture to find use and def insns.
10661 2016-04-30  Alan Modra  <amodra@gmail.com>
10663         ira.c (combine_and_move_insns): Move invariant conditions..
10664         (ira.c): ..to here.  Call combine_and_move_insns before
10665         add_store_equivs.  Call grow_reg_equivs later.  Allocate
10666         req_equiv later using max_reg_num() rather than global max_regno.
10667         (contains_replace_regs): Delete.
10668         (add_store_equivs): Remove contains_replace_regs test.
10670 2016-04-30  Alan Modra  <amodra@gmail.com>
10672         * ira.c (struct equiv_mem_data): New.
10673         (equiv_mem, equiv_mem_modified): Delete static vars.
10674         (validate_equiv_mem_from_store): Use "data" param to communicate..
10675         (validate_equiv_mem): ..from here.
10677 2016-04-30  Alan Modra  <amodra@gmail.com>
10679         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
10680         split out from..
10681         (update_reg_equivs): ..here.  Move allocation and freeing of
10682         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
10683         end_alias_analysis to..
10684         (ira): ..here.
10686 2016-04-30  Alan Modra  <amodra@gmail.com>
10688         * ira.c (pdx_subregs): Delete.
10689         (struct equivalence): Add pdx_subregs field.
10690         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
10691         pdx_subregs access.
10692         (update_equiv_regs): Don't create or free pdx_subregs.  Update
10693         pdx_subregs access.
10695 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10697         * config/rs6000/altivec.h: Change definitions of vec_xl and
10698         vec_xst.
10699         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
10700         (LD_ELEMREV_V2DI): New.
10701         (LD_ELEMREV_V4SF): New.
10702         (LD_ELEMREV_V4SI): New.
10703         (LD_ELEMREV_V8HI): New.
10704         (LD_ELEMREV_V16QI): New.
10705         (ST_ELEMREV_V2DF): New.
10706         (ST_ELEMREV_V2DI): New.
10707         (ST_ELEMREV_V4SF): New.
10708         (ST_ELEMREV_V4SI): New.
10709         (ST_ELEMREV_V8HI): New.
10710         (ST_ELEMREV_V16QI): New.
10711         (XL): New.
10712         (XST): New.
10713         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10714         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
10715         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
10716         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
10717         (altivec_expand_builtin): Add handling for
10718         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
10719         (rs6000_invalid_builtin): Add error-checking for
10720         RS6000_BTM_P9_VECTOR.
10721         (altivec_init_builtins): Define builtins used to implement vec_xl
10722         and vec_xst.
10723         (rs6000_builtin_mask_names): Define power9-vector.
10724         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
10725         (RS6000_BTM_P9_VECTOR): Define.
10726         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
10727         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
10728         (vsx_ld_elemrev_v2df): Likewise.
10729         (vsx_ld_elemrev_v4sf): Likewise.
10730         (vsx_ld_elemrev_v4si): Likewise.
10731         (vsx_ld_elemrev_v8hi): Likewise.
10732         (vsx_ld_elemrev_v16qi): Likewise.
10733         (vsx_st_elemrev_v2df): Likewise.
10734         (vsx_st_elemrev_v2di): Likewise.
10735         (vsx_st_elemrev_v4sf): Likewise.
10736         (vsx_st_elemrev_v4si): Likewise.
10737         (vsx_st_elemrev_v8hi): Likewise.
10738         (vsx_st_elemrev_v16qi): Likewise.
10739         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
10740         grammar.
10742 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
10744         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
10745         out into ...
10746         (simplify_control_stmt_condition_1): ... here.  Recurse into
10747         BIT_AND_EXPRs and BIT_IOR_EXPRs.
10749 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
10751         PR target/69810
10752         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
10753         (zero_extendqi<mode>2_dot): Revert earlier conversion from
10754         define_insn_and_split to define_insn.
10755         (zero_extendqi<mode>2_dot2): Same.
10756         (extendqi<mode>2_dot): Same.
10757         (extendqi<mode>2_dot2): Same.
10759 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10761         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
10762         (probe_stack): New expander.
10763         (probe_stack_<mode>): New insn pattern.
10765 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10767         * config/i386/i386.md
10768         (operations with memory inputs setting flags peephole2):
10769         Remove uneeded REG_P checks.  Cleanup pattern generation.
10771 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10773         * tree-vect-loop.c (vect_transform_loop): Fix
10774         nb_iterations_upper_bound computation for vectorized loop.
10776 2016-04-29  Marek Polacek  <polacek@redhat.com>
10777             Jakub Jelinek  <jakub@redhat.com>
10779         PR sanitizer/70342
10780         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
10781         TARGET_EXPR_SLOT as a base.
10783 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
10785         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
10786         with 'rCm2' constraints to limit possible immediate size.
10787         (*load_zeroextendqisi_update): Likewise.
10788         (*load_signextendqisi_update): Likewise.
10789         (*loadhi_update): Likewise.
10790         (*load_zeroextendhisi_update): Likewise.
10791         (*load_signextendhisi_update): Likewise.
10792         (*loadsi_update): Likewise.
10793         (*loadsf_update): Likewise.
10795 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10797         * config/i386/predicates.md (constm1_operand): Fix comparison.
10799 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10801         * testsuite/gcc.target/arc/ieee_eq.c: New test.
10803 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
10805         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
10806         remaining SH5 related settings.
10807         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
10808         shmedia_prepare_call_address): Delete.
10809         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
10810         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
10811         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
10812         UNSUPPORTED_SH2A): Remove m5 checks.
10813         (sh_divide_strategy_e): Remove SH5 division strategies.
10814         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
10815         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
10817 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10819         * config/s390/s390.c (s390_rtx_costs): Update documentation.
10821 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10823         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
10824         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
10825         Change lder to ldr.
10826         * config/s390/vector.md ("mov<mode>"): Likewise.
10828 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
10830         * config/s390/constraints.md ("U", "W"): Invoke
10831         s390_mem_constraint with "ZR" and "ZT".
10832         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
10833         addresses when using LRA.  Accept also short displacements for S
10834         and T constraints.  Do not check for long displacement target for
10835         S and T constraints.
10836         (s390_mem_constraint): Remove handling of U and W constraints.
10837         * config/s390/s390.md (various patterns): Remove the short
10838         displacement constraints (Q and R) if a long displacement
10839         constraint is present.  Add longdisp as required CPU capability.
10840         * config/s390/vector.md: Likewise.
10841         * config/s390/vx-builtins.md: Likewise.
10843 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10845         PR target/60040
10846         * reload1.c (reload): Call finish_spills before
10847         restarting reload loop. Skip select_reload_regs
10848         if update_eliminables_and_spill returns true.
10850 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10852         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10853         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10854         (umulhisi3_imm): Update predicates and constraint letters.
10855         (umulhisi3_reg): Declare instruction as commutative.
10856         * config/arc/constraints.md (J12, J16): New constraints.
10857         * config/arc/predicates.md (short_unsigned_const_operand): New
10858         predicate.
10859         (arc_short_operand): Likewise.
10860         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10862 2016-04-29  Richard Biener  <rguenther@suse.de>
10864         PR tree-optimization/13962
10865         PR tree-optimization/65686
10866         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10867         * tree-ssa-alias.c (ptrs_compare_unequal): New function
10868         using PTA to compare pointers.
10869         * match.pd: Add pattern for pointer equality compare simplification
10870         using ptrs_compare_unequal.
10872 2016-04-29  Richard Biener  <rguenther@suse.de>
10874         * stor-layout.c (layout_type): Do not build a pointer-to-element
10875         type for arrays.
10877 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10879         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10880         Use SWI mode iterator.  Use general_reg_operand predicate.
10881         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10882         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
10883         predicates.
10885 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
10887         PR middle-end/70843
10888         * fold-const.c (operand_equal_p): Don't verify hash value equality
10889         if arg0 == arg1.
10890         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
10891         and OMP_CLAUSE.
10893 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10895         PR target/70858
10896         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10897         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10898         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10899         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10900         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10902 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10904         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10905         to info.  Don't initialize separate fields to 0.  Clean up
10906         formatting a bit.
10908 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10910         * config/i386/i386.md (peephole2s for operations with memory inputs):
10911         Use SWI mode iterator.
10912         (peephole2s for operations with memory outputs): Ditto.
10913         Do not check for stack checking probe.
10915         (probe_stack): Remove expander.
10917 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10918             Andrew Burgess  <andrew.burgess@embecosm.com>
10920         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10921         operands as 32-bits.
10923 2016-04-28  Jason Merrill  <jason@redhat.com>
10925         * gdbinit.in: Skip line-map.h.
10927 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10928             Andrew Burgess  <andrew.burgess@embecosm.com>
10930         * config/arc/arc.c (arc_conditional_register_usage): Take
10931         TARGET_RRQ_CLASS into account.
10932         (arc_print_operand): Support printing 'p' and 's' operands.
10933         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10934         as 0.
10935         (TARGET_RRQ_CLASS): Define.
10936         (IS_POWEROF2_OR_0_P): Define.
10937         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10938         alternatives.
10939         (*tst_movb): New define_insn.
10940         (*tst): Avoid recognition if it could prevent '*tst_movb'
10941         combination; replace c/CnL with c/Chs alternative.
10942         (*tst_bitfield_tst): New define_insn.
10943         (*tst_bitfield_asr): New define_insn.
10944         (*tst_bitfield): New define_insn.
10945         (andsi3_i): Add Rrq variant.
10946         (extzv): New define_expand.
10947         (insv): New define_expand.
10948         (*insv_i): New define_insn.
10949         (*movb): New define_insn.
10950         (*movb_signed): New define_insn.
10951         (*movb_high): New define_insn.
10952         (*movb_high_signed): New define_insn.
10953         (*movb_high_signed + 1): New define_split pattern.
10954         (*mrgb): New define_insn.
10955         (*mrgb + 1): New define_peephole2 pattern.
10956         (*mrgb + 2): New define_peephole2 pattern.
10957         * config/arc/arc.opt (mbitops): New option for nps400, uses
10958         TARGET_NPS_BITOPS_DEFAULT.
10959         * config/arc/constraints.md (q): Make register class conditional.
10960         (Rrq): New register constraint.
10961         (Chs): New constraint.
10962         (Clo): New constraint.
10963         (Chi): New constraint.
10964         (Cbf): New constraint.
10965         (Cbn): New constraint.
10966         (C18): New constraint.
10967         (Cbi): New constraint.
10969 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10971         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10972         dst->popcount.
10973         (bitmap_intersection_of_preds): Ditto.
10974         (bitmap_union_of_succs): Ditto.
10975         (bitmap_union_of_preds): Ditto.
10976         * sbitmap.c (do_popcount): Delete.
10977         (BITMAP_DEBUGGING): Delete.
10978         (sbitmap_verify_popcount): Delete.
10979         (sbitmap_alloc): Don't initialize the popcount field.
10980         (sbitmap_alloc_with_popcount): Delete.
10981         (sbitmap_resize): Don't resize the popcount array.
10982         (sbitmap_vector_alloc): Don't initialize the popcount field.
10983         (bitmap_copy): Don't copy the popcount array.
10984         (bitmap_clear): Don't clear the popcount array.
10985         (bitmap_clear): Delete the popcount array handling.
10986         (bitmap_ior_and_compl): Delete the popcount assert.
10987         (bitmap_not): Ditto.
10988         (bitmap_and_compl): Ditto.
10989         (bitmap_and): Delete the popcount array handling.
10990         (bitmap_xor): Ditto.
10991         (bitmap_ior): Ditto.
10992         (bitmap_or_and): Delete the popcount assert.
10993         (bitmap_and_or): Ditto.
10994         (popcount_table): Delete.
10995         (sbitmap_elt_popcount): Delete.
10996         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10997         (bitmap_set_bit): Delete the popcount assert.
10998         (bitmap_clear_bit): Ditto.
10999         (sbitmap_free): Don't free the popcount array.
11000         (sbitmap_alloc_with_popcount): Delete declaration.
11001         (sbitmap_popcount): Ditto.
11003 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
11004             Andrew Burgess  <andrew.burgess@embecosm.com>
11006         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
11007         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
11008         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
11009         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
11010         * config/arc/arc.opt (mcmem): New option.
11011         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
11012         supply length for r/m alternative.
11013         (*extendqisi2_ac): Likewise.
11014         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
11015         r/Uex alternative.
11016         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
11017         (movhi_insn): Likewise.
11018         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
11019         (*zero_extendqihi2_i): Add r/Ucm alternative.
11020         (*zero_extendqisi2_ac): Likewise.
11021         (*zero_extendhisi2_i): Likewise.
11022         * config/arc/constraints.md (Uex): New memory constraint.
11023         (Ucm): New define_constraint.
11024         * config/arc/predicates.md (long_immediate_loadstore_operand):
11025         Return 0 for MEM with cmem_address address.
11026         (cmem_address_0): New predicates.
11027         (cmem_address_1): Likewise.
11028         (cmem_address_2): Likewise.
11029         (cmem_address): Likewise.
11031 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
11033         * config/rs6000/rs6000.c (machine_function): Rename
11034         insn_chain_scanned_p to spe_insn_chain_scanned_p.
11035         (rs6000_stack_info): Adjust.
11037 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
11038             Andrew Burgess  <andrew.burgess@embecosm.com>
11040         * config/arc/constraints.md (Usd): Convert to define_constraint.
11041         (Us<): Likewise.
11042         (Us>): Likewise.
11044 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
11046         PR target/70821
11047         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
11048         Add new peephole2 where the first insn is *mov<mode>_or instead of
11049         *mov<mode>_internal.
11051 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
11053         * tracer.c (bb_seen): Make static.
11055 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
11057         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
11058         support, setup defaults.
11059         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
11060         * config/arc/arc.c (arc_init): Add NPS400 support.
11061         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
11062         (TARGET_ARC700): NPS400 is also an ARC700.
11063         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
11065 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
11067         PR target/70668
11068         * config/nds32/nds32.md (casesi): Don't access the operands array
11069         out of bounds.
11071 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
11073         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
11074         (or $-1,reg peephole2): Ditto.
11075         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
11077 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
11079         * doc/extend.texi (Common Function Attributes) [optimize]:
11080         Discourage use of the optimize attribute.
11082 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
11084         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
11085         special case builtin.
11086         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11087         ALTIVEC_BUILTIN_VEC_ADDE.
11088         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11089         support for ALTIVEC_BUILTIN_VEC_ADDE.
11090         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11091         for __builtin_vec_adde.
11093 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
11095         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
11096         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
11098 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11100         PR testsuite/70595
11101         * doc/sourcebuild.texi (Effective-Target Keywords, Other
11102         attributes): Document cilkplus_runtime.
11104 2016-04-28  Martin Jambor  <mjambor@suse.cz>
11106         * tree-cfg.c (verify_expr): Verify that local declarations belong to
11107         this function.  Call verify_expr on MEM_REFs and bases of other
11108         handled_components.
11110 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11112         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
11113         for WORD_REGISTER_OPERATIONS to runtime check.
11115 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
11117         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
11119 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
11121         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
11122         big-endian compilation.
11123         * config/arc/arc.md (addf3): Likewise.
11124         (subdf3): Likewise.
11125         (muldf3): Likewise.
11127 2016-04-28  Richard Biener  <rguenther@suse.de>
11129         PR tree-optimization/70840
11130         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
11131         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
11132         Mark x * pow(x,c) -> pow(x,c+1) commutative.
11133         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
11135 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11137         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
11138         and explain why in a comment.
11140 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
11142         * config/arc/arc.md (cpu_facility): Add fpx variant.
11143         (subdf3): Prohibit use reverse sub when assist operations option
11144         is enabled.
11145         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
11146         instructions only when FPX is enabled.
11147         * testsuite/gcc.target/arc/trsub.c: New test.
11149 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
11151         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
11152         mult_operator when calculating "type" attribute.
11153         (*fop_<mode>_1_i387): Ditto.
11154         (*fop_xf_1_i387): Ditto.
11155         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
11156         Use std::swap to swap operands.  Use RTL expressions to generate
11157         converted pattern.
11159 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
11160             Joern Rennecke  <joern.rennecke@embecosm.com>
11162         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
11163         declaration.
11164         (emit_pic_move): Remove.
11165         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
11166         * config/arc/arc.c (emit_pic_move): Removed.
11167         (TARGET_HAVE_TLS): Define.
11168         (arc_conditional_register_usage): Test for arc_tp_regno.
11169         (arc_print_operand, arc_print_operand_address): Handle TLS
11170         unspecs.
11171         (arc_needs_pcl_p): New function.
11172         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
11173         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
11174         (arc_raw_symbolic_reference_mentioned_p): Likewise.
11175         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
11176         (arc_legitimize_tls_address): Likewise.
11177         (DTPOFF_ZERO_SYM): Define.
11178         (arc_legitimize_pic_address): Make it static, handle TLS cases.
11179         (arc_output_pic_addr_const): Print TLS unspecs.
11180         (prepare_pic_move): New function, replaces emit_pic_move.
11181         (arc_legitimate_constant_p): Handle TLS unspecs.
11182         (arc_legitimate_address_p): Likewise.
11183         (arc_rewrite_small_data_p): Use assert for TLS constants.
11184         (prepare_move_operands): Use prepare_pic_move.
11185         (arc_legitimize_address): Legitimize tls addresses.
11186         (arc_epilogue_uses): Check for arc_tp_regno.
11187         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
11188         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
11189         Define.
11190         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
11191         Likewise.
11192         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
11193         %(arc_tls_extra_start_spec).
11194         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
11195         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
11196         (EH_USES): Define.
11197         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
11198         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
11199         (UNSPEC_TLS_OFF): Add.
11200         (R10_REG): Define.
11201         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
11202         (get_thread_pointersi): New patterns.
11203         * config/arc/arc.opt (mtp-regno): New option.
11204         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
11205         (move_dest_operand): Likewise.
11206         * configure: Regenerate.
11207         * configure.ac: Add arc*-*-* case to test for tls.
11208         * doc/invoke.texi (ARC options): Document mtp-regno.
11210 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
11212         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
11213         the new ARC HS SIMD instructions.
11214         (arc_preferred_simd_mode): New function.
11215         (arc_autovectorize_vector_sizes): Likewise.
11216         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
11217         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11218         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
11219         (arc_init_builtins): Add new SIMD builtin types.
11220         (arc_split_move): Handle 64 bit vector moves.
11221         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
11222         (TARGET_PLUS_QMACW): Define.
11223         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
11224         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
11225         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
11226         (VSUBADD4H): New builtins.
11227         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
11228         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
11230 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
11231             Matthias Klose  <doko@debian.org>
11233         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
11235 2016-04-28  Richard Biener  <rguenther@suse.de>
11237         PR middle-end/70777
11238         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
11239         canonicalization.
11241 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
11243         * common/config/sh/sh-common.c: Remove SH5 support.
11244         * config/sh/constraints.md: Likewise.
11245         * config/sh/config/sh/elf.h: Likewise.
11246         * config/sh/linux.h: Likewise.
11247         * config/sh/netbsd-elf.h: Likewise.
11248         * config/sh/predicates.md: Likewise.
11249         * config/sh/sh-c.c: Likewise.
11250         * config/sh/sh-protos.h: Likewise.
11251         * config/sh/sh.c: Likewise.
11252         * config/sh/sh.h: Likewise.
11253         * config/sh/sh.md: Likewise.
11254         * config/sh/sh.opt: Likewise.
11255         * config/sh/sync.md: Likewise.
11256         * config/sh/sh64.h: Delete.
11257         * config/sh/shmedia.h: Likewise.
11258         * config/sh/shmedia.md: Likewise.
11259         * config/sh/sshmedia.h: Likewise.
11260         * config/sh/t-netbsd-sh5-64: Likewise.
11261         * config/sh/t-sh64: Likewise.
11262         * config/sh/ushmedia.h: Likewise.
11264 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
11266         * config/i386/i386.md (sign_extend to memory peephole2s): Use
11267         general_reg_operand instead of register_operand predicate.
11269 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11271         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
11273 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
11275         * match.pd (A - B > A, A + B < A): New transformations.
11277 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
11279         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
11280         which defaults to true.  Emit an outer pair of parentheses only if
11281         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
11282         don't emit parentheses for the right-hand operand.
11284 2016-04-27  Jeff Law  <law@redhat.com>
11286         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
11288 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11290         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
11291         (altivec_lvx_<mode>_internal): Document.
11292         (altivec_lvx_<mode>_2op): New define_insn.
11293         (altivec_lvx_<mode>_1op): Likewise.
11294         (altivec_lvx_<mode>_2op_si): Likewise.
11295         (altivec_lvx_<mode>_1op_si): Likewise.
11296         (altivec_stvx_<mode>): Remove.
11297         (altivec_stvx_<mode>_internal): Document.
11298         (altivec_stvx_<mode>_2op): New define_insn.
11299         (altivec_stvx_<mode>_1op): Likewise.
11300         (altivec_stvx_<mode>_2op_si): Likewise.
11301         (altivec_stvx_<mode>_1op_si): Likewise.
11302         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11303         Expand vec_ld and vec_st during parsing.
11304         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
11305         changes.
11306         (altivec_expand_stvx_be): Likewise.
11307         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
11308         address-masking behavior in RTL.
11309         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
11310         address-masking behavior in RTL.
11311         (altivec_expand_builtin): Change builtin code arguments for calls
11312         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
11313         (insn_is_swappable_p): Avoid incorrect swap optimization in the
11314         presence of lvx/stvx patterns.
11315         (alignment_with_canonical_addr): New function.
11316         (alignment_mask): Likewise.
11317         (find_alignment_op): Likewise.
11318         (recombine_lvx_pattern): Likewise.
11319         (recombine_stvx_pattern): Likewise.
11320         (recombine_lvx_stvx_patterns): Likewise.
11321         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
11322         stvx patterns from expand.
11323         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
11324         expansions.
11325         (vector_altivec_store_<mode>): Likewise.
11327 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
11329         * config/aarch64/aarch64.md
11330         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
11331         remove the "fp" attributes.
11332         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
11333         add the "simd" attributes.
11334         (*movdf_aarch64): Likewise.
11335         (*movtf_aarch64): Remove the "fp" attributes.
11336         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
11337         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
11339 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11341         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
11342         rtx to rtx_code_label *.
11343         * rtl.h (maybe_set_first_label_num): Likewise.
11345 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11347         * df-core.c (df_add_problem): Make the problem param be const.
11348         (df_remove_problem): Make local "problem" be const.
11349         * df-problems.c (problem_RD): Make const.
11350         (problem_LR): Likewise.
11351         (problem_LIVE): Likewise.
11352         (problem_MIR): Likewise.
11353         (problem_CHAIN): Likewise.
11354         (problem_WORD_LR): Likewise.
11355         (problem_NOTE): Likewise.
11356         (problem_MD): Likewise.
11357         * df-scan.c (problem_SCAN): Likewise.
11358         * df.h (struct df_problem): Make field "dependent_problem" be
11359         const.
11360         (struct dataflow): Likewise for field "problem".
11361         (df_add_problem): Make param const.
11363 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
11365         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
11366         inter-unit moves to/from vector registers are enabled.  Do not disable
11367         for TARGET_MMX.
11369 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11371         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
11372         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
11373         #define to...
11374         (enum df_problem_id): ...this new enum.
11375         (struct df_problem): Convert field "id" from "int" to
11376         enum df_problem_id.
11378 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
11380         * rtl.def: Update comment for "things in the instruction chain" to
11381         reflect the removal of the leading "i" field for INSN_UID in
11382         r210360.  Fix bogus apostrophe.
11384 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
11386         * config/i386/i386.md
11387         (lea arith with mem operand + setcc peephole2): Set operator mode.
11389 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
11391         PR target/70155
11392         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
11393         (dimode_scalar_to_vector_candidate_p): This.
11394         (timode_scalar_to_vector_candidate_p): New function.
11395         (scalar_to_vector_candidate_p): Likewise.
11396         (timode_check_non_convertible_regs): Likewise.
11397         (timode_remove_non_convertible_regs): Likewise.
11398         (remove_non_convertible_regs): Likewise.
11399         (remove_non_convertible_regs): Renamed to ...
11400         (dimode_remove_non_convertible_regs): This.
11401         (scalar_chain::~scalar_chain): Make it virtual.
11402         (scalar_chain::compute_convert_gain): Make it pure virtual.
11403         (scalar_chain::mark_dual_mode_def): Likewise.
11404         (scalar_chain::convert_insn): Likewise.
11405         (scalar_chain::convert_registers): Likewise.
11406         (scalar_chain::add_to_queue): Make it protected.
11407         (scalar_chain::emit_conversion_insns): Likewise.
11408         (scalar_chain::replace_with_subreg): Likewise.
11409         (scalar_chain::replace_with_subreg_in_insn): Likewise.
11410         (scalar_chain::convert_op): Likewise.
11411         (scalar_chain::convert_reg): Likewise.
11412         (scalar_chain::make_vector_copies): Likewise.
11413         (scalar_chain::convert_registers): New pure virtual function.
11414         (class dimode_scalar_chain): New class.
11415         (class timode_scalar_chain): Likewise.
11416         (scalar_chain::mark_dual_mode_def): Renamed to ...
11417         (dimode_scalar_chain::mark_dual_mode_def): This.
11418         (timode_scalar_chain::mark_dual_mode_def): New function.
11419         (timode_scalar_chain::convert_insn): Likewise.
11420         (dimode_scalar_chain::convert_registers): Likewise.
11421         (scalar_chain::compute_convert_gain): Renamed to ...
11422         (dimode_scalar_chain::compute_convert_gain): This.
11423         (scalar_chain::replace_with_subreg): Renamed to ...
11424         (dimode_scalar_chain::replace_with_subreg): This.
11425         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
11426         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
11427         (scalar_chain::make_vector_copies): Renamed to ...
11428         (dimode_scalar_chain::make_vector_copies): This.
11429         (scalar_chain::convert_reg): Renamed to ...
11430         (dimode_scalar_chain::convert_reg ): This.
11431         (scalar_chain::convert_op): Renamed to ...
11432         (dimode_scalar_chain::convert_op): This.
11433         (scalar_chain::convert_insn): Renamed to ...
11434         (dimode_scalar_chain::convert_insn): This.
11435         (scalar_chain::convert): Call convert_registers.
11436         (convert_scalars_to_vector): Change to scalar_chain pointer to
11437         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
11438         in 32-bit mode.  Delete scalar_chain pointer.  Call
11439         free_dominance_info in 64-bit mode.
11440         (pass_stv::gate): Remove TARGET_64BIT check.
11441         (ix86_option_override): Put the 64-bit STV pass before the CSE
11442         pass.
11444 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
11446         * dwarf2out.h (struct dw_loc_descr_node): Remove the
11447         dw_loc_frame_offset field.
11448         * dwarf2out.c (new_loc_descr): Likewise.
11449         (resolve_args_picking_1): Turn the VISITED hash set into a
11450         FRAME_OFFSET hash map. Use it to associate a frame offset to
11451         visited nodes. Remove uses of the CHECKING_P macro.
11452         (resolve_args_picking): Update call to resolve_args_picking_1.
11454 2016-04-27  Martin Liska  <mliska@suse.cz>
11456         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
11457         (free_loop_data): Release vuses of groups.
11459 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
11461         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
11462         instead of redundant use_id and boolean have_use_for.
11463         (struct iv_use): Change sub_id into group_id.  Remove field next.
11464         Move fields: related_cands, n_map_members, cost_map and selected
11465         to ...
11466         (struct iv_group): ... here.  New structure.
11467         (struct iv_common_cand): Use structure declaration directly.
11468         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
11469         (MAX_CONSIDERED_USES): Rename macro to ...
11470         (MAX_CONSIDERED_GROUPS): ... here.
11471         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
11472         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
11473         (dump_uses): Rename to ...
11474         (dump_groups): ... here.  Update all uses.
11475         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
11476         (find_induction_variables): Refactor format of dump information.
11477         (record_sub_use): Delete.
11478         (record_use): Update all uses.
11479         (record_group): New function.
11480         (record_group_use, find_interesting_uses_op): Call above functions.
11481         Update all uses.
11482         (find_interesting_uses_cond): Ditto.
11483         (group_compare_offset): New function.
11484         (split_all_small_groups): Rename to ...
11485         (split_small_address_groups_p): ... here.  Update all uses.
11486         (split_address_groups):  Update all uses.
11487         (find_interesting_uses): Refactor format of dump information.
11488         (add_candidate_1): Update all uses.  Remove redundant check on iv,
11489         base and step.
11490         (add_candidate, record_common_cand): Remove redundant assert.
11491         (add_iv_candidate_for_biv): Update use.
11492         (add_iv_candidate_derived_from_uses): Update all uses.
11493         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
11494         (alloc_use_cost_map): Ditto.
11495         (set_use_iv_cost, get_use_iv_cost): Rename to ...
11496         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
11497         (determine_use_iv_cost_generic): Ditto.
11498         (determine_group_iv_cost_generic): Ditto.
11499         (determine_use_iv_cost_address): Ditto.
11500         (determine_group_iv_cost_address): Ditto.
11501         (determine_use_iv_cost_condition): Ditto.
11502         (determine_group_iv_cost_cond): Ditto.
11503         (determine_use_iv_cost): Ditto.
11504         (determine_group_iv_cost): Ditto.
11505         (set_autoinc_for_original_candidates): Update all uses.
11506         (find_iv_candidates): Update all uses.  Refactor dump information.
11507         (determine_use_iv_costs): Ditto.
11508         (determine_iv_costs): Ditto.
11509         (iv_ca_cand_for_use): Rename to ...
11510         (iv_ca_cand_for_group): ... here.  Update all uses.
11511         (iv_ca_add_use, iv_ca_add_group): Ditto.
11512         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
11513         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
11514         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
11515         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
11516         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
11517         (create_new_iv, adjust_iv_update_pos): Ditto.
11518         (rewrite_use_address): Delete.
11519         (rewrite_use_address_1): Rename to ...
11520         (rewrite_use_address): ... here.
11521         (rewrite_use_compare): Update all uses.
11522         (rewrite_use): Delete.
11523         (rewrite_uses): Rename to ...
11524         (rewrite_groups): ... here.  Update all uses.
11525         (remove_unused_ivs, free_loop_data): Update all uses.
11526         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
11528 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11530         * rtlanal.c (nonzero_bits1): Convert preprocessor check
11531         for WORD_REGISTER_OPERATIONS to runtime check.
11533 2016-04-27  Richard Biener  <rguenther@suse.de>
11535         PR ipa/70760
11536         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
11537         aggregate_value_p to determine if a function result is
11538         returned by reference.
11539         (ipa_pta_execute): Functions having their address taken are
11540         not automatically nonlocal.
11542 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
11544         PR sanitizer/70683
11545         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
11546         * fold-const.c (operand_equal_p): If flag_checking and
11547         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
11548         and if it returns non-zero, assert iterative_hash_expr on both
11549         args is the same.
11551 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
11553         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
11555 2016-04-27  Nick Clifton  <nickc@redhat.com>
11557         PR middle-end/49889
11558         * varasm.c (merge_weak): Generate an error if an attempt is made
11559         to convert a non-weak static function into a weak, public function.
11561 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11563         * params.def (MAX_PARTITION_SIZE): New param.
11564         * doc/invoke.texi: Document lto-max-partition.
11566 2016-04-27  Richard Biener  <rguenther@suse.de>
11568         PR ipa/70785
11569         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
11570         function cummulating used_from_other_partition, externally_visible
11571         and force_output from aliases.
11572         (refered_from_nonlocal_var): Likewise.
11573         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
11574         node flags properly.
11576 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
11578         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
11579         (-Wmemset-elt-size): New item.
11581 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11583         PR ada/70759
11584         * stor-layout.h (internal_reference_types): Delete.
11585         * stor-layout.c (reference_types_internal): Likewise.
11586         (internal_reference_types): Likewise.
11587         (layout_type) <REFERENCE_TYPE>: Adjust.
11589 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
11591         PR sanitizer/70683
11592         * tree.h (inchash::add_expr): Add FLAGS argument.
11593         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
11594         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
11595         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
11596         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
11597         if swap_tree_comparison (code) is smaller than code, hash that
11598         and arguments in the other order.  Hash CONVERT_EXPR the same
11599         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
11600         of ADDR_EXPR of decl as the decl itself.  Add or remove
11601         OEP_ADDRESS_OF from recursive flags as needed.  For
11602         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
11603         operands commutatively and only the third one normally.
11604         For internal CALL_EXPR hash in CALL_EXPR_IFN.
11606 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11608         * config/rtems.h (LIB_SPEC): Add -latomic.
11610 2016-04-27  Joel Sherrill  <joel@rtems.org>
11612         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
11613         xilink.ld and flags not relevant to RTEMS.
11615 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11617         * toplev.c (backend_init_target): Avoid calling init_reload when using
11618         LRA.
11620 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
11622         * reorg.c (try_merge_delay_insns): Declare i and j inside the
11623         for loops rather than one for the whole function.
11625 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
11627         * match.pd (X + CST CMP X): New transformation.
11629 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
11631         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
11632         * fold-const.c (fold_binary_loc): Remove 2 transformations
11633         superseded by match.pd.
11634         * match.pd (x+x -> x*2): Generalize to integers.
11636 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
11638         * config/i386/i386.md (operation on memory peephole): Duplicate an
11639         existing peephole and adapt it to match lea rather than an operation
11640         that clobbers CC.
11642         PR rtl-optimization/57193
11643         * opts.c (default_options_table): Add OPT_frename_registers at -O2
11644         and above.
11645         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
11647 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
11649         * tree-if-conv.c (any_pred_load_store): New static variable.
11650         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
11651         any_pred_load_store instead of and_mask_load_store.
11652         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
11653         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
11654         (combine_blocks, tree_if_conversion): Ditto.
11656 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
11658         PR tree-optimization/70771
11659         PR tree-optimization/70775
11660         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
11661         virtual PHI nodes.  Delete parameter.
11662         (if_convertible_loop_p_1): Delete argument to above function.
11663         (predicate_all_scalar_phis): Delete code handling single-argument
11664         PHIs.
11665         (tree_if_conversion): Mark and update virtual SSA.
11667 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11669         PR target/61821
11670         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
11671         (x86_elf_aligned_common): Rename to ...
11672         (x86_elf_aligned_decl_common): ... this.
11673         Add decl arg.  Switch to .lbss for largecomm object.  Use
11674         LARGECOMM_SECTION_ASM_OP.
11675         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
11676         renaming.
11677         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
11678         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
11679         Pass new decl arg.
11680         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11681         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
11683 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11685         PR target/59407
11686         * config/i386/i386.c (SECTION_LARGE): Define.
11687         (x86_64_elf_select_section): Set it for large data/bss sections.
11688         Only clear SECTION_WRITE for .lrodata.
11689         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
11690         data/bss sections.
11691         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
11692         * varasm.c (default_elf_asm_named_section): Grow flagchars.
11693         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
11694         SECTION_MACH_DEP.
11695         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
11696         * doc/tm.texi: Regenerate.
11698 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
11700         PR bootstrap/70704
11701         * configure.ac (--enable-checking): Document extra flag, for
11702         non-release builds default to --enable-checking=yes,extra.
11703         If misc checking and extra checking, define CHECKING_P to 2 instead
11704         of 1.
11705         * common.opt (fchecking=): Add.
11706         * doc/invoke.texi (-fchecking=): Document.
11707         * doc/install.texi: Document --enable-checking changes.
11708         * configure: Regenerated.
11709         * config.in: Regenerated.
11711 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11713         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
11714         attribute instead of which_alternative.
11715         * config/i386/sse.md (*mov<mode>_internal): Ditto.
11716         Use EXT_REX_SSE_REG_P where appropriate.
11718 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11720         * config/i386/predicates.md (const0_operand): Do not match
11721         const_wide_int code.
11722         (const1_operand): Ditto.
11724 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11726         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
11727         for SSE constm1 operands and TARGET_AVX512VL.
11728         (*movti_internal): Ditto.
11729         (*mov<mode>_or): Use constm1_operand predicate.
11730         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
11731         for SSE vector_all_ones operands and TARGET_AVX512VL.
11732         * config/i386/predicates.md (constm1_operand): New predicate.
11733         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
11734         emission of constant -1 load.
11736 2016-04-25  Jason Merrill  <jason@redhat.com>
11738         * gdbinit.in: Skip is-a.h.
11740         * attribs.c (register_scoped_attributes): Fix logic.
11741         * attribs.h: Declare register_scoped_attributes.
11743 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11745         * config/rs6000/rs6000-builtin.def: Correct pasto error for
11746         stxvd2x and stxvw4x built-in functions.
11748 2016-04-25  DJ Delorie  <dj@redhat.com>
11750         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
11751         (ashrhi3): Likewise.
11752         (lshrhi3): Likewise.
11754 2016-04-25  Richard Biener  <rguenther@suse.de>
11756         PR tree-optimization/70780
11757         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
11758         wasn't visited yet.
11759         (compute_antic): Mark blocks with abnormal preds as visited as
11760         they have a final empty antic-in solution already.
11762 2016-04-25  Michael Collison  <michael.collison@linaro.org>
11764         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
11766 2016-04-25  Michael Collison  <michael.collison@linaro.org>
11768         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
11769         mode is VQI to improve mixed mode vectorization.
11770         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
11771         define_insn to match low half of signed vaddw.
11772         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
11773         define_insn to match high half of signed vaddw.
11774         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
11775         define_insn to match low half of unsigned vaddw.
11776         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
11777         define_insn to match high half of unsigned vaddw.
11778         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
11779         (arm_simd_check_vect_par_cnst_half_p): Likewise.
11780         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
11781         for new function.
11782         (arm_simd_check_vect_par_cnst_half_p): Likewise.
11783         * config/arm/predicates.md (vect_par_constant_high): Support
11784         big endian and simplify by calling
11785         arm_simd_check_vect_par_cnst_half
11786         (vect_par_constant_low): Likewise.
11788 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
11790         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
11791         predicate for operand 2.
11793 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
11794             H.J. Lu  <hongjiu.lu@intel.com>
11796         * config/i386/i386-protos.h (standard_sse_constant_p): Add
11797         machine_mode argument.
11798         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
11799         constm1_rtx operands.  For VOIDmode constants, get mode from
11800         pred_mode.  Check mode size if the mode is supported by ABI.
11801         (standard_sse_constant_opcode): Do not use standard_constant_p.
11802         Strictly check ABI support for all-ones operands.
11803         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
11804         immediates. Update calls to standard_sse_constant_p.
11805         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
11806         (ix86_rtx_costs): Ditto.
11807         * config/i386/i386.md (*movxi_internal_avx512f): Use
11808         nonimmediate_or_sse_const_operand instead of vector_move_operand.
11809         Use (v,BC) alternative instead of (v,C). Use register_operand
11810         checks instead of MEM_P.
11811         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
11812         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
11813         isa attribute.  Use register_operand checks instead of MEM_P.
11814         (*movti_internal): Use nonimmediate_or_sse_const_operand for
11815         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
11816         alternative and corresponding sse2 isa attribute.
11817         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
11818         to standard_sse_constant_p.
11819         (FP constant splitters): Ditto.
11820         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
11821         (C): Ditto.
11822         * config/i386/predicates.md (constm1_operand): Remove.
11823         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
11824         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
11825         vector_all_ones_operand instead of constm1_operand.
11827 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11829         * print-rtl.c (print_rtx_insn_vec): New function.
11830         * print-rtl.h: New prototype.
11831         * store-motion.c (struct st_expr): Make avail_stores a vector.
11832         (st_expr_entry): Adjust.
11833         (free_st_expr_entry): Likewise.
11834         (print_store_motion_mems): Likewise.
11835         (find_moveable_store): Likewise.
11836         (compute_store_table): Likewise.
11837         (delete_store): Likewise.
11838         (build_store_vectors): Likewise.
11840 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11842         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11844 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11846         * vec.h (vec_safe_contains): New function.
11847         (vec::contains): Likewise.
11848         (vec::begin): Likewise.
11849         (vec::end): Likewise.
11851 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
11853         PR sanitizer/70712
11854         * cfgexpand.c (expand_stack_vars): Fix typo.
11856 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11858         * system.h (list, map, set, vector): Include conditionally.
11859         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11860         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11861         * ipa-icf.c (INCLUDE_LIST): Define.
11862         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11863         * config/sh/sh.c (INCLUDE_VECTOR): Define.
11864         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11865         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11866         * cp/logic.cc (INCLUDE_LIST): Define.
11867         * fortran/trans-common.c (INCLUDE_MAP): Define.
11869 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11871         * auto-profile.c: Remove <string.h> include.
11872         * ipa-icf-gimple.c: Remove <list> include.
11873         * diagnostic.c: Remove <new> include.
11874         * genmatch.c: Likewise.
11875         * pretty-print.c: Likewise.
11876         * toplev.c: Likewise
11877         * c/c-objc-common.c: Likewise.
11878         * cp/error.c: Likewise.
11879         * fortran/error.c: Likewise.
11881 2016-04-22  Richard Biener  <rguenther@suse.de>
11883         * lto-streamer-in.c (input_ssa_names): Do not allocate
11884         GIMPLE_NOP for all SSA names.
11885         * lto-streamer-out.c (output_ssa_names): Do not output
11886         SSA names that should have been released.
11888 2016-04-22  Richard Biener  <rguenther@suse.de>
11890         PR tree-optimization/70740
11891         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11892         VDEF.
11894 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
11896         PR target/70750
11897         * config/i386/predicates.md (call_insn_operand): Replace
11898         sibcall_memory_operand with memory_operand.
11900 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
11902         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11903         has_single_use() tests.
11904         (register_edge_assert_for_1): Likewise.
11905         (find_assert_locations_1): Check the liveness bitmap instead of
11906         checking has_single_use().
11908 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11910         PR target/70728
11911         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11912         Extract AVX-512BW constraint from AVX.
11914 2016-04-21  Richard Biener  <rguenther@suse.de>
11916         PR tree-optimization/70725
11917         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11918         for phi_convertible_by_degenerating_args.
11919         (predicate_all_scalar_phis): Handle single-argument PHIs.
11921 2016-04-21  Richard Biener  <rguenther@suse.de>
11923         PR middle-end/70747
11924         * fold-const.c (fold_comparison): Return properly typed
11925         constant boolean.
11927 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
11929         PR tree-optimization/70715
11930         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11931         after expanding BASE using expand_simple_operations.
11933 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11935         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11936         New transformations.
11938 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11940         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11942 2016-04-20  Jan Hubicka  <jh@suse.cz>
11944         * ipa-inline.c (can_inline_edge_p): Pass caller info to
11945         ultiimate_alias_target.
11946         (update_callee_keys): Likewise.
11947         (lookup_recursive_calls): Likewise.
11948         (speculation_useful_p): Likewise.
11950 2016-04-20  Jan Hubicka  <jh@suse.cz>
11952         PR ipa/70018
11953         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11954         (set_nothrow_flag_1): ... this; handle interposition correctly;
11955         recurse on aliases and thunks.
11956         (cgraph_node::set_nothrow_flag): New.
11957         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11958         functions compiled with non-call exceptions that binds to current
11959         def.
11960         (propagate_nothrow): Be safe WRT interposition.
11961         * cgraph.h (set_nothrow_flag): Update prototype.
11963 2016-04-18  Jan Hubicka  <jh@suse.cz>
11965         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11966         max_loop_iterations_int.
11967         (tree_unswitch_outer_loop): Likewise.
11969 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11971         PR tree-optimization/69489
11972         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11973         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11974         Revise dump message.
11975         (if_convertible_bb_p): Remove check on edge count of basic block's
11976         predecessors.
11978 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11980         PR tree-optimization/56625
11981         PR tree-optimization/69489
11982         * tree-data-ref.h (DR_INNERMOST): New macro.
11983         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11984         hashing struct innermost_loop_behavior.
11985         (ref_DR_map): Remove.
11986         (innermost_DR_map): New map.
11987         (baseref_DR_map): Revise comment.
11988         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11989         to innermost_DR_map accroding to its innermost loop behavior.
11990         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11991         to its innermost loop behavior.
11992         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11993         Add initialization for innermost_DR_map.  Record memory reference
11994         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11995         have innermost loop behavior.
11996         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
11997         innermost_DR_map.
11999 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
12001         * config/i386/i386.md (*lea<mode>_general_1): Rename from
12002         *lea_general_1.  Use explicit SWI12 mode interator.
12003         (*lea<mode>_general_2): Rename from *lea_general_2.
12004         Use explicit SWI12 mode interator.
12005         (*lea<mode>_general_3): Rename from *lea_general_3.
12006         Use explicit SWI12 mode interator.
12007         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
12008         Use explicit SWI12 mode interator.
12009         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
12010         Use explicit SWI48 mode interator.
12012 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12014         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12015         Short-cut unaligned load and store cases.  Handle all integer
12016         vector modes.
12017         (ix86_expand_vector_move_misalign): Short-cut unaligned load
12018         and store cases.  Call ix86_avx256_split_vector_move_misalign
12019         directly without checking mode class.
12021 2016-04-20  Andrew Pinski  <apinski@cavium.com>
12022             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12024         PR target/64971
12025         * config/aarch64/aarch64.md (sibcall): Force call
12026         address to be DImode for ILP32.
12027         (sibcall_value): Likewise.
12029 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12031         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
12033 2016-04-20  Richard Biener  <rguenther@suse.de>
12035         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
12036         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
12037         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
12038         (maybe_push_res_to_seq): Adjust.
12039         * gimple-fold.c (maybe_build_generic_op): Likewise.
12041 2016-04-20  Marek Polacek  <polacek@redhat.com>
12043         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
12044         rather than true.
12046 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
12048         * config/i386/sse.md (vec_unpacks_lo_hi): Always
12049         use kmovw to support AVX512F target.
12051 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
12053         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
12055 2016-04-20  Marek Polacek  <polacek@redhat.com>
12057         PR tree-optimization/70725
12058         * tree-if-conv.c (is_false_predicate): New function.
12059         (predicate_mem_writes): Use it.
12061 2016-04-20  Richard Biener  <rguenther@suse.de>
12063         PR tree-optimization/70726
12064         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
12065         shift amounts from a pattern stmt operand.
12067 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12069         PR target/70674
12070         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
12071         stack_restore_from_fpr pattern when restoring r15.
12072         (s390_optimize_prologue): Strip away the memory barrier in the
12073         parallel when trying to get rid of restore insns.
12074         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
12075         definition for loading the stack pointer from an FPR.  Compared to
12076         the normal move insn this pattern includes a full memory barrier.
12078 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12080         PR middle-end/70680
12081         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
12082         implicitly linear or lastprivate iterator on the outer context.
12084 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
12086         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
12087         alignment check.
12088         * config/i386/i386.md (ssememalign): Removed.
12089         * config/i386/sse.md: Remove ssememalign attribute from patterns.
12091 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
12093         PR target/69201
12094         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
12095         const short * to __builtin_ia32_loaddquhi512_mask.
12096         (_mm512_maskz_loadu_epi16): Likewise.
12097         (_mm512_mask_storeu_epi16): Pass short * to
12098         __builtin_ia32_storedquhi512_mask.
12099         (_mm512_mask_loadu_epi8): Pass const char * to
12100         __builtin_ia32_loaddquqi512_mask.
12101         (_mm512_maskz_loadu_epi8): Likewise.
12102         (_mm512_mask_storeu_epi8): Pass char * to
12103         __builtin_ia32_storedquqi512_mask.
12104         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
12105         const double * to __builtin_ia32_loadupd512_mask.
12106         (_mm512_mask_loadu_pd): Likewise.
12107         (_mm512_maskz_loadu_pd): Likewise.
12108         (_mm512_storeu_pd): Pass double * to
12109         __builtin_ia32_storeupd512_mask.
12110         (_mm512_mask_storeu_pd): Likewise.
12111         (_mm512_loadu_ps): Pass const float * to
12112         __builtin_ia32_loadups512_mask.
12113         (_mm512_mask_loadu_ps): Likewise.
12114         (_mm512_maskz_loadu_ps): Likewise.
12115         (_mm512_storeu_ps): Pass float * to
12116         __builtin_ia32_storeups512_mask.
12117         (_mm512_mask_storeu_ps): Likewise.
12118         (_mm512_mask_loadu_epi64): Pass const long long * to
12119         __builtin_ia32_loaddqudi512_mask.
12120         (_mm512_maskz_loadu_epi64): Likewise.
12121         (_mm512_mask_storeu_epi64): Pass long long *
12122         to __builtin_ia32_storedqudi512_mask.
12123         (_mm512_loadu_si512): Pass const int * to
12124         __builtin_ia32_loaddqusi512_mask.
12125         (_mm512_mask_loadu_epi32): Likewise.
12126         (_mm512_maskz_loadu_epi32): Likewise.
12127         (_mm512_storeu_si512): Pass int * to
12128         __builtin_ia32_storedqusi512_mask.
12129         (_mm512_mask_storeu_epi32): Likewise.
12130         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
12131         char * to __builtin_ia32_storedquqi256_mask.
12132         (_mm_mask_storeu_epi8): Likewise.
12133         (_mm256_mask_loadu_epi16): Pass const short * to
12134         __builtin_ia32_loaddquhi256_mask.
12135         (_mm256_maskz_loadu_epi16): Likewise.
12136         (_mm_mask_loadu_epi16): Pass const short * to
12137         __builtin_ia32_loaddquhi128_mask.
12138         (_mm_maskz_loadu_epi16): Likewise.
12139         (_mm256_mask_loadu_epi8): Pass const char * to
12140         __builtin_ia32_loaddquqi256_mask.
12141         (_mm256_maskz_loadu_epi8): Likewise.
12142         (_mm_mask_loadu_epi8): Pass const char * to
12143         __builtin_ia32_loaddquqi128_mask.
12144         (_mm_maskz_loadu_epi8): Likewise.
12145         (_mm256_mask_storeu_epi16): Pass short * to.
12146         __builtin_ia32_storedquhi256_mask.
12147         (_mm_mask_storeu_epi16): Pass short * to.
12148         __builtin_ia32_storedquhi128_mask.
12149         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
12150         const double * to __builtin_ia32_loadupd256_mask.
12151         (_mm256_maskz_loadu_pd): Likewise.
12152         (_mm_mask_loadu_pd): Pass onst double * to
12153         __builtin_ia32_loadupd128_mask.
12154         (_mm_maskz_loadu_pd): Likewise.
12155         (_mm256_mask_storeu_pd): Pass double * to
12156         __builtin_ia32_storeupd256_mask.
12157         (_mm_mask_storeu_pd): Pass double * to
12158         __builtin_ia32_storeupd128_mask.
12159         (_mm256_mask_loadu_ps): Pass const float * to
12160         __builtin_ia32_loadups256_mask.
12161         (_mm256_maskz_loadu_ps): Likewise.
12162         (_mm_mask_loadu_ps): Pass const float * to
12163         __builtin_ia32_loadups128_mask.
12164         (_mm_maskz_loadu_ps): Likewise.
12165         (_mm256_mask_storeu_ps): Pass float * to
12166         __builtin_ia32_storeups256_mask.
12167         (_mm_mask_storeu_ps): ass float * to
12168         __builtin_ia32_storeups128_mask.
12169         (_mm256_mask_loadu_epi64): Pass const long long * to
12170         __builtin_ia32_loaddqudi256_mask.
12171         (_mm256_maskz_loadu_epi64): Likewise.
12172         (_mm_mask_loadu_epi64): Pass const long long * to
12173         __builtin_ia32_loaddqudi128_mask.
12174         (_mm_maskz_loadu_epi64): Likewise.
12175         (_mm256_mask_storeu_epi64): Pass long long * to
12176         __builtin_ia32_storedqudi256_mask.
12177         (_mm_mask_storeu_epi64): Pass long long * to
12178         __builtin_ia32_storedqudi128_mask.
12179         (_mm256_mask_loadu_epi32): Pass const int * to
12180         __builtin_ia32_loaddqusi256_mask.
12181         (_mm256_maskz_loadu_epi32): Likewise.
12182         (_mm_mask_loadu_epi32): Pass const int * to
12183         __builtin_ia32_loaddqusi128_mask.
12184         (_mm_maskz_loadu_epi32): Likewise.
12185         (_mm256_mask_storeu_epi32): Pass int * to
12186         __builtin_ia32_storedqusi256_mask.
12187         (_mm_mask_storeu_epi32): Pass int * to
12188         __builtin_ia32_storedqusi128_mask.
12189         * config/i386/i386-builtin-types.def (PCSHORT): New.
12190         (PINT64): Likewise.
12191         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
12192         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
12193         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
12194         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
12195         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
12196         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
12197         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
12198         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
12199         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
12200         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
12201         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
12202         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
12203         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
12204         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
12205         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
12206         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
12207         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
12208         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
12209         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
12210         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
12211         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
12212         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
12213         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
12214         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
12215         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
12216         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
12217         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
12218         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
12219         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
12220         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
12221         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
12222         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
12223         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
12224         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
12225         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
12226         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
12227         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
12228         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
12229         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
12230         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
12231         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
12232         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
12233         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
12234         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
12235         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
12236         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
12237         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
12238         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
12239         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
12240         use UNSPEC_STOREU.
12241         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
12242         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
12243         load nor store.
12244         (ix86_expand_vector_move_misalign): Likewise.
12245         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
12246         to scalar function prototype for unaligned load/store builtins.
12247         (ix86_expand_special_args_builtin): Updated.
12248         * config/i386/sse.md (UNSPEC_LOADU): Removed.
12249         (UNSPEC_STOREU): Likewise.
12250         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
12251         (VI_ULOADSTORE_F_AVX512VL): Likewise.
12252         (ssescalarsize): Handle V4TI, V2TI and V1TI.
12253         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
12254         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
12255         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
12256         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
12257         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
12258         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
12259         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
12260         (<avx512>_storedqu<mode>_mask): Likewise.
12261         (*sse4_2_pcmpestr_unaligned): Likewise.
12262         (*sse4_2_pcmpistr_unaligned): Likewise.
12263         (*mov<mode>_internal): Renamed to ...
12264         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
12265         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
12266         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
12267         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
12269 2016-04-19  Richard Biener  <rguenther@suse.de>
12271         PR tree-optimization/70171
12272         * tree-ssa-phiprop.c: Include stor-layout.h.
12273         (phiprop_insert_phi): Handle the aggregate copy case.
12274         (propagate_with_phi): Likewise.
12276 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
12278         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
12279         instead of simplify_gen_subreg (... , 0).
12280         (ix86_delegitimize_address): Ditto.
12281         (ix86_split_divmod): Ditto.
12282         (ix86_split_copysign_const): Ditto.
12283         (ix86_split_copysign_var): Ditto.
12284         (ix86_expand_args_builtin): Ditto.
12285         (ix86_expand_round_builtin): Ditto.
12286         (ix86_expand_special_args_builtin): Ditto.
12287         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
12288         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
12289         (udivmodqi4): Ditto.
12290         (absneg splitters): Ditto.
12291         (*jcc_bt<mode>_1): Ditto.
12293 2016-04-19  Richard Biener  <rguenther@suse.de>
12295         PR tree-optimization/70724
12296         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
12297         restoring out from ...
12298         (free_scc_vn): ... here.
12299         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
12300         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
12301         tail merging.
12302         (pass_fre::execute): Restore SSA info.
12304 2016-04-19  Richard Biener  <rguenther@suse.de>
12306         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
12307         * gimple-walk.c (walk_gimple_op): Initialize it.
12308         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
12309         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
12310         remapping SSA names of defs.
12311         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
12312         adjustment.
12314 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
12316         PR middle-end/70689
12317         * lra-constraints.c (equiv_substition_p): New.
12318         (process_alt_operands): Use it.
12319         (swap_operands): Swap it.
12320         (curr_insn_transform): Update it.
12322 2016-04-18  Michael Matz  <matz@suse.de>
12324         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
12325         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
12326         * tree-core.h (tree_type_common.align): Use bit-field.
12327         (tree_type_common.spare): New.
12328         (tree_decl_common.off_align): Make smaller.
12329         (tree_decl_common.align): Use bit-field.
12331         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
12332         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
12333         (scan_sharing_clauses): Ditto.
12334         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
12335         (omp_finish_file): Ditto.
12336         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
12337         (layout_decl): Ditto.
12338         (relayout_decl): Ditto.
12339         (finalize_record_size): Use SET_TYPE_ALIGN.
12340         (finalize_type_size): Ditto.
12341         (finish_builtin_struct): Ditto.
12342         (layout_type): Ditto.
12343         (initialize_sizetypes): Ditto.
12344         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
12345         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
12346         (lookup_field_for_decl): Use SET_DECL_ALIGN.
12347         (get_chain_field): Ditto.
12348         (get_trampoline_type): Ditto.
12349         (get_nl_goto_field): Ditto.
12350         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12351         SET_DECL_ALIGN.
12352         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
12353         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
12354         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
12355         (build_qualified_type): Use SET_TYPE_ALIGN.
12356         (build_aligned_type, build_range_type_1): Ditto.
12357         (build_atomic_base): Ditto.
12358         (build_common_tree_nodes): Ditto.
12359         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
12360         (expand_one_stack_var_at): Ditto.
12361         * coverage.c (build_var): Use SET_DECL_ALIGN.
12362         * except.c (init_eh): Ditto.
12363         * function.c (assign_parm_setup_block): Ditto.
12364         * symtab.c (increase_alignment_1): Ditto.
12365         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
12366         * tree-vect-stmts.c (ensure_base_align): Ditto.
12367         * varasm.c (align_variable): Ditto.
12368         (assemble_variable): Ditto.
12369         (build_constant_desc): Ditto.
12370         (output_constant_def_contents): Ditto.
12372         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
12373         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
12374         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
12375         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
12376         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
12378 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
12380         PR target/70708
12381         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
12382         replace %vmovsd with "%vmovq".
12383         (vec_concatv2df): Likewise.
12385 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
12387         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
12388         (*vec_extractv2si_0): Ditto.
12389         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
12390         (zero_extended_scalar_load_operand splitters): Ditto.
12391         (vec_extract splitters): Ditto.
12392         (*vec_extractv4si_0_zext): Ditto.
12393         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
12394         and lowpart_subreg.
12395         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
12396         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
12397         (*sse4_1_extractps): Use lowpart_subreg.
12398         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
12400 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12402         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
12403         gld requirements.
12404         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
12405         Mention Solaris 11 packaging changes.
12406         Update gas and gld requirements.
12407         Remove reference to pre-Solaris 10 bug.
12408         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
12409         systems and bugs.
12410         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
12411         with cc.
12413 2016-04-17  Jan Hubicka  <jh@suse.cz>
12415         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
12416         max_loop_iterations_int.
12418 2016-04-18  Richard Biener  <rguenther@suse.de>
12420         PR tree-optimization/43434
12421         * tree-ssa-structalias.c (struct vls_data): New.
12422         (visit_loadstore): Handle all pointer-based accesses.
12423         (compute_dependence_clique): Compute a bitmap of restrict tags
12424         assigned bases and pass it to visit_loadstore.
12426 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
12428         PR target/70711
12429         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
12430         armv8.1-a and armv8.1-a+crc.
12432 2016-04-18  Richard Biener  <rguenther@suse.de>
12434         PR tree-optimization/70701
12435         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
12436         references after translating through a memcpy.
12438 2016-04-18  Richard Biener  <rguenther@suse.de>
12440         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
12441         (compute_antic): ... here.  For partial antic use regular
12442         postorder and scrap iteration.
12443         (compute_partial_antic_aux): Remove unused return value.
12444         (init_pre): Do not allocate postorder.
12445         (fini_pre): Do not free postorder.
12447 2016-04-18  Richard Biener  <rguenther@suse.de>
12449         PR middle-end/37870
12450         * expmed.c (extract_bit_field_1): Remove broken case
12451         using a wider MODE_INT mode.
12453 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
12455         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
12456         unless compiling with at least GCC-4.8.
12458 2016-04-17  Jan Hubicka  <jh@suse.cz>
12460         PR bootstrap/70706
12461         * graphite.c (graphite_finalize): Update call to
12462         tree_estimate_probability.
12463         * predict.h (tree_estimate_probability): Update prototype.
12465 2016-04-17  Jan Hubicka  <jh@suse.cz>
12467         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
12468         (tree_estimate_probability): Likewise.
12469         (pass_profile::execute): Update.
12470         (report_predictor_hitrates): New function.
12471         * profile.c (compute_branch_probabilities): Use it.
12472         * predict.h (report_predictor_hitrates): Declare.
12474 2016-04-17  Jan Hubicka  <jh@suse.cz>
12476         PR ipa/70018
12477         * cgraph.h (cgraph_node::set_const_flag,
12478         cgraph_node::set_pure_flag): Update prototype to return bool;
12479         update comment.
12480         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
12481         of interposable symbol are interposable, too.
12482         (cgraph_set_const_flag_1): Rename to ...
12483         (set_const_flag_1): ... this one; change to self recursive function
12484         instead of call_for_symbol_thunks_and_aliases. Handle correctly
12485         clearnig the flag in all variants and also virtual thunks of const
12486         functions are pure; track if any change was done.
12487         (cgraph_node::set_const_flag): Update.
12488         (struct set_pure_flag_info): New struct.
12489         (cgraph_set_pure_flag_1): Rename to ...
12490         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
12491         rather than pointer encoded flags; track if any changes was done;
12492         handle correctly clearning flag and setting flag of aliases already
12493         declared const.
12494         (cgraph_node::set_pure_flag): Update.
12495         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
12497 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12499         PR other/70433
12500         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
12501         backslash in label.
12503 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12505         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
12506         '{}<> ' as escape-for-record.
12508 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12510         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
12511         structure.
12513 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12515         PR other/70185
12516         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
12517         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
12518         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
12519         * passes.c (finish_optimization_passes): Only call
12520         finish_graph_dump_file if dfi->graph_dump_initialized.
12521         (execute_function_dump, pass_init_dump_file): Use
12522         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
12524 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12526         PR tree-optimization/70256
12527         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
12528         (debug_varmap): New function.
12530 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12532         PR other/70183
12533         * passes.c (pass_manager::register_pass): Propagate pflags.
12535 2016-04-17  Tom de Vries  <tom@codesourcery.com>
12537         PR other/68875
12538         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
12539         * passes.c (pass_manager::pass_manager): Declare and init p_start in
12540         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
12541         check if it's equal to p_start.
12542         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
12544 2016-04-15  Jan Hubicka  <jh@suse.cz>
12546         PR ipa/70018
12547         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
12548         function does not bind to current def.
12549         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
12550         handle conservatively calls to functions that does not need to bind
12551         to current def.
12552         (check_call): Update call of worse_state.
12553         (ignore_edge_for_nothrow): Update.
12554         (ignore_edge_for_pure_const): Likewise.
12555         (propagate_pure_const): Update calls to worse_state.
12556         (skip_function_for_local_pure_const): Reformat comments.
12558 2016-04-15  Jan Hubicka  <jh@suse.cz>
12560         PR ipa/70018
12561         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
12562         (cgraph_node::function_symbol): Likewise.
12563         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12564         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
12565         (symtab_node::ultimate_alias_target): Add REF parameter.
12566         (symtab_node::binds_to_current_def_p): Declare.
12567         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
12568         (cgraph_node::function_symbol): Likewise.
12569         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12570         (cgraph_node::get_availability): Likewise.
12571         (cgraph_edge::binds_to_current_def_p): New inline function.
12572         (varpool_node::get_availability): Add REF parameter.
12573         (varpool_node::ultimate_alias_target): Likewise.
12574         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
12575         (symtab_node::binds_to_current_def_p): Likewise.
12576         * varpool.c (varpool_node::get_availability): Likewise.
12578 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
12580         PR target/70662
12581         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
12582         Fix mode size check.
12584 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
12586         * BASE-VER: Set to 7.0.0.
12588 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
12590         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
12592 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12594         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
12595         architecture revisions.
12597 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
12599         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
12600         * config/i386/i386.c (ix86_using_red_zone): No longer static.
12601         * config/i386/i386.md (stack decrement to push peepholes): Guard
12602         with !x86_using_red_zone ().
12604 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
12606         PR c++/70675
12607         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
12608         to dump_generic_node.
12609         (NIY): Pass also flags to do_niy.
12611 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
12613         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
12614         (simd_clone_vector_of_formal_parm_types)
12615         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
12616         (simd_clone_mangle, simd_clone_create)
12617         (simd_clone_adjust_return_type, create_tmp_simd_array)
12618         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
12619         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
12620         (ipa_simd_modify_function_body, simd_clone_linear_addend)
12621         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
12622         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
12623         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
12624         * omp-simd-clone.c: ... this new file.
12625         (simd_clone_vector_of_formal_parm_types): Make it static.
12626         * Makefile.in (OBJS): Add omp-simd-clone.o.
12628 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
12630         PR target/70662
12631         * config/i386/sse.md: Use proper memory operand modifiers.
12634 2016-04-15  Richard Biener  <rguenther@suse.de>
12635         Alan Modra  <amodra@gmail.com>
12637         PR tree-optimization/70130
12638         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
12639         when alignment stays not the same and no not use the realign
12640         scheme then.
12642 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12644         PR target/70669
12645         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12646         direct move handlers for KFmode. Change TFmode handlers test from
12647         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
12649 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
12651         PR c++/70594
12652         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
12653         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
12654         (inlined_polymorphic_ctor_dtor_block_p): Use it.
12655         * tree-ssa-live.c (remove_unused_scope_block_p): When
12656         in_ctor_dtor_block, avoid discarding not just BLOCKs with
12657         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
12658         block_ultimate_origin is FUNCTION_DECL.
12659         (remove_unused_locals): If current_function_decl is
12660         polymorphic_ctor_dtor_p, pass initial true to
12661         remove_unused_scope_block_p' is_ctor_dtor_block.
12663 2016-04-14  Martin Sebor  <msebor@redhat.com>
12665         PR c++/69517
12666         PR c++/70019
12667         PR c++/70588
12668         * doc/extend.texi (Variable Length): Revert.
12670 2016-04-14  Marek Polacek  <polacek@redhat.com>
12671             Jan Hubicka  <hubicka@ucw.cz>
12673         PR c++/70029
12674         * tree.c (verify_type): Disable the canonical type of main variant
12675         check.
12677 2016-04-14  Jason Merrill  <jason@redhat.com>
12679         * cfgexpand.c, expr.c: Revert previous change.
12681 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12683         PR middle-end/70643
12684         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
12685         when building a mem ref for the incoming reduction variable.
12687 2016-04-14  Richard Biener  <rguenther@suse.de>
12689         PR tree-optimization/70614
12690         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
12691         loop if the evolution dropped to chrec_dont_know.
12692         (interpret_condition_phi): Likewise.
12694 2016-04-14  Richard Biener  <rguenther@suse.de>
12696         PR tree-optimization/70623
12697         * tree-ssa-pre.c (changed_blocks): Make global ...
12698         (compute_antic): ... local here.  Move and fix worklist
12699         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
12700         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
12701         worklist handling, dump when ANTIC_IN changed.
12702         (compute_partial_antic_aux): Remove worklist handling.
12703         (init_pre): Do not compute post dominators.  Add a comment about
12704         the CFG order chosen.
12705         (fini_pre): Do not free post dominators.
12707 2016-04-13  Martin Sebor  <msebor@redhat.com>
12709         PR c++/69517
12710         PR c++/70019
12711         PR c++/70588
12712         * doc/extend.texi (Variable Length): Document C++ specifics.
12714 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
12716         PR c++/70641
12717         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
12718         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
12719         eh edges have been purged.
12721         PR c++/70594
12722         * tree-sra.c (create_access_replacement,
12723         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
12724         gets fancy name.
12725         * tree-pretty-print.c (dump_fancy_name): New function.
12726         (dump_decl_name, dump_generic_node): Use it.
12728 2016-04-13  Jason Merrill  <jason@redhat.com>
12730         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
12731         * expr.c (expand_expr_real_1): Likewise.
12733 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12735         * config/i386/i386.md (kunpckhi): Swap operands.
12736         (kunpcksi): Likewise.
12737         (kunpckdi): Likewise.
12738         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
12739         (vec_pack_trunc_<mode>): Likewise.
12741 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
12743         PR debug/70628
12744         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
12746         PR middle-end/70633
12747         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
12748         gimplification turns some element into non-constant.
12750         PR debug/70628
12751         * rtl.h (convert_memory_address_addr_space_1): New prototype.
12752         * explow.c (convert_memory_address_addr_space_1): No longer static,
12753         add NO_EMIT argument and don't call convert_modes if true, pass
12754         it down recursively, remove break after return.
12755         (convert_memory_address_addr_space): Adjust caller.
12756         * simplify-rtx.c (simplify_unary_operation_1): Call
12757         convert_memory_address_addr_space_1 instead of convert_memory_address,
12758         if it returns NULL, don't simplify.
12760 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12762         PR target/70630
12763         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
12765 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12767         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12768         Bump the upper SIMDLEN limits, so that if the return type or
12769         characteristic type if the return type is void can be passed in
12770         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
12771         allowed.
12773 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12775         PR target/70640
12776         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
12777         Do not use "=" constraint on an input constraint.
12778         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12779         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12780         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
12781         generates (neg (abs ...)) instead of (abs ...).
12783 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12785         PR rtl-optimization/70596
12786         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
12787         just invalidate LRA data and reset them.  Adjust dump wording.
12789 2016-04-12  Martin Liska  <mliska@suse.cz>
12791         Revert
12792         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12794         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12795         estimates here.
12796         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12797         max_loop_iterations_int.
12798         (tree_unswitch_outer_loop): Likewise.
12799         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12800         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12802 2016-04-12  Tom de Vries  <tom@codesourcery.com>
12804         PR tree-optimization/68756
12805         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
12806         instead of new_name.
12808 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12810         PR tree-optimization/70602
12811         * tree-sra.c (generate_subtree_copies): Don't write anything into
12812         constant pool decls.
12814         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
12815         regardless whether there are depend clauses or not.
12817 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12819         PR target/70381
12820         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
12821         target attribute and pragma from changing the -mfloat128
12822         and -mfloat128-hardware options.
12824         * doc/extend.texi (Additional Floating Types): Document PowerPC
12825         __float128 restrictions.
12827 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12829         PR target/70133
12830         * config/aarch64/driver-aarch64.c
12831         (aarch64_get_extension_string_for_isa_flags): New.
12832         (arch_extension): Rename to...
12833         (aarch64_arch_extension): ...This.
12834         (ext_to_feat_string): Rename to...
12835         (aarch64_extensions): ...This.
12836         (aarch64_core_data): Keep track of architecture extension flags.
12837         (cpu_data): Rename to...
12838         (aarch64_cpu_data): ...This.
12839         (aarch64_arch_driver_info): Keep track of architecture extension
12840         flags.
12841         (get_arch_name_from_id): Rename to...
12842         (get_arch_from_id): ...This, change return type.
12843         (host_detect_local_cpu): Update and reformat for renames, handle
12844         extensions through common infrastructure.
12846 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12848         PR target/70133
12849         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12850         track of a canonical flag name.
12851         (all_extensions): Likewise.
12852         (arch_to_arch_name): Also track extension flags enabled by the arch.
12853         (all_architectures): Likewise.
12854         (aarch64_parse_extension): Move to here.
12855         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12856         rework.
12857         (aarch64_rewrite_selected_cpu): Update for above change.
12858         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12859         are handled, such that the single explicit value enabled by an
12860         extension is kept seperate from the implicit values it also enables.
12861         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12862         to here.
12863         (aarch64_parse_extension): New.
12864         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12865         here to config/aarch64/aarch64-protos.h.
12866         (aarch64_parse_extension): Move from here to
12867         common/config/aarch64/aarch64-common.c.
12868         (aarch64_option_print): Update.
12869         (aarch64_declare_function_name): Likewise.
12870         (aarch64_start_file): Likewise.
12871         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12872         the canonical flag for extensions.
12873         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12874         flags.
12876 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12878         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12879         AARCH64_FL_CRC.
12881 2016-04-09  Tom de Vries  <tom@codesourcery.com>
12883         PR tree-optimization/68953
12884         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12885         first to last subscript.
12887 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
12889         PR tree-optimization/70586
12890         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12891         for any calls.
12893 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12895         PR lto/70289
12896         PR ipa/70348
12897         PR tree-optimization/70373
12898         PR middle-end/70533
12899         PR middle-end/70534
12900         PR middle-end/70535
12901         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12902         clauses for acc parallel reductions as necessary.  Error on those
12903         that are private.
12904         * omp-low.c (scan_sharing_clauses): Don't install variables which
12905         are used in acc parallel reductions.
12906         (lower_rec_input_clauses): Remove dead code.
12907         (lower_oacc_reductions): Add support for reference reductions.
12908         (lower_reduction_clauses): Remove dead code.
12909         (lower_omp_target): Don't remap variables appearing in acc parallel
12910         reductions.
12911         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12913 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
12915         PR middle-end/70593
12916         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12917         with multiple SSA_NAME defs, force the outputs other than first
12918         to be live before calling live_track_process_def on each output.
12920         PR rtl-optimization/70574
12921         * fwprop.c (forward_propagate_and_simplify): Don't add
12922         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12923         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12924         paradoxical subregs within *loc.
12926 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
12928         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12929         -ftree-parallelize-loops={0,1}.
12930         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12931         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12932         * config/ia64/hpux.h (LIB_SPEC): Likewise.
12933         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12934         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12936 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
12938         PR sanitizer/70541
12939         * asan.c (instrument_derefs): If we get unknown location, extract it
12940         with EXPR_LOCATION.
12941         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12943 2016-04-08  Tom de Vries  <tom@codesourcery.com>
12945         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12946         implicit firstprivate clause.
12948 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12950         PR target/70566
12951         * config/arm/thumb2.md (tst + branch-> lsls + branch
12952         peephole below *orsi_not_shiftsi_si): Require that condition
12953         register is dead after the peephole.
12954         (second peephole after the above): Likewise.
12956 2016-04-08  Alan Modra  <amodra@gmail.com>
12958         PR target/70117
12959         * builtins.c (fold_builtin_classify): For IBM extended precision,
12960         look at just the high-order double to test for NaN.
12961         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
12962         test just the high double for Inf but both doubles for subnormal
12963         limit.
12965 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
12967         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12968         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12969         node->simdclone->mask_mode != VOIDmode masks.
12970         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
12971         earlier, use it instead of node->simdclone.
12972         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12973         Set clonei->mask_mode.
12975 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12977         PR c/70436
12978         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12979         Pass it through to cp_parser_already_scoped_statement.
12980         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
12981         it through to cp_parser_statement.
12982         (cp_parser_statement): Pass IF_P through to
12983         cp_parser_iteration_statement.
12984         (cp_parser_pragma): Adjust call to
12985         cp_parser_iteration_statement.
12987 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12989         PR c/70436
12990         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12991         resolve a future -Wparentheses warning.
12992         * omp-low.c (scan_sharing_clauses): Likewise.
12993         * tree-parloops.c (eliminate_local_variables): Likewise.
12995 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
12997         PR rtl-optimization/70398
12998         * lra-constraints.c (process_address_1): Check zero scale and code
12999         for reloading with zero scale.
13001 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
13003         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
13004         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
13006 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
13008         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13009         Add support for AVX512F clones, include them by default for
13010         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
13011         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
13012         up to 128.
13014         PR middle-end/70550
13015         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
13016         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
13017         firstprivate clauses.
13018         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
13019         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
13020         (lower_omp_target): Set TREE_NO_WARNING for
13021         non-addressable possibly uninitialized vars which are copied into
13022         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
13024 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
13026         * config/pa/predicates.md (integer_store_memory_operand): Accept
13027         REG+D operands with a large offset when reload_in_progress is true.
13028         (floating_point_store_memory_operand): Likewise.
13030 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
13032         PR c++/70336
13033         * match.pd (nested int casts): Limit to GIMPLE.
13035 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
13037         PR ipa/66223
13038         * ipa-devirt.c (maybe_record_node): Fix comment; use
13039         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
13041 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
13043         PR rtl-optimization/70542
13044         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
13045         if there are any uses other than insn or debug insns.
13047 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
13048             Jakub Jelinek  <jakub@redhat.com>
13050         PR tree-optimization/70509
13051         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
13052         Shift HOST_WIDE_INT_1U instead of 1.
13054 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
13056         PR tree-optimization/70509
13057         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
13058         of the vector base type for index.
13060 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
13062         PR target/70510
13063         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
13065 2016-04-05  Richard Biener  <rguenther@suse.de>
13067         PR tree-optimization/70526
13068         * tree-sra.c (build_ref_for_offset): Use prev_base to
13069         extract the alias pointer type.
13071 2016-04-05  Richard Biener  <rguenther@suse.de>
13073         * dse.c (struct store_info): Remove alias_set member.
13074         (struct read_info_type): Likewise.
13075         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
13076         spill_deleted, clear_alias_set_lookup): Remove.
13077         (get_group_info): Remove dead base == NULL_RTX case.
13078         (dse_step0): Remove initialization of removed variables.
13079         (delete_dead_store_insn): Reomve alias set dumping.
13080         (free_read_records): Remove alias_set handling.
13081         (canon_address): Remove alias_set_out parameter.
13082         (record_store): Remove spill_alias_set, it's always zero.
13083         (check_mem_read_rtx): Likewise.
13084         (dse_step2): Rename from ...
13085         (dse_step2_nospill): ... this.  Adjust.
13086         (scan_stores): Rename from ...
13087         (scan_stores_nospill): ... this.
13088         (scan_reads): Rename from ...
13089         (scan_reads_nospill): ... this.
13090         (scan_stores_spill, scan_reads_spill): Remove.
13091         (dse_step3_scan): Remove for_spills argument which is always false.
13092         (dse_step3): Likewise.
13093         (dse_step5): Rename from ...
13094         (dse_step5_nospill): ... this.  Remove alias_set handling.
13095         (rest_of_handle_dse): Adjust.
13097 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
13099         PR target/70525
13100         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
13101         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
13102         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
13103         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
13105 2016-04-05  Richard Biener  <rguenther@suse.de>
13107         PR middle-end/70499
13108         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
13109         non-register type temporaries into SSA.
13111 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
13113         PR ipa/66223
13114         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
13115         calls when sanitizing.
13116         (possible_polymorphic_call_target_p): Fix formatting.
13118 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13119             Jakub Jelinek <jakub@redhat.com>
13121         PR middle-end/70457
13122         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
13123         to ensure a call statement is compatible with a built-in's
13124         prototype.
13125         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
13126         Likewise.
13128 2016-04-04  Richard Biener  <rguenther@suse.de>
13130         PR rtl-optimization/70484
13131         * rtl.h (canon_output_dependence): Declare.
13132         * alias.c (canon_output_dependence): New function.
13133         * dse.c (record_store): Use canon_output_dependence rather
13134         than canon_true_dependence.
13136 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
13138         PR ipa/68881
13139         * cgraph.h (symtab_node::copy_visibility_from): New function.
13140         * symtab.c (symtab_node::copy_visibility_from): New function.
13141         * ipa-visibility.c (optimize_weakref): New function.
13142         (function_and_variable_visibility): Use it.
13144 2016-04-04  Martin Liska  <mliska@suse.cz>
13146         PR hsa/70402
13147         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
13148         value that is really in range handled by SBR instruction.
13149         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
13150         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
13151         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
13153 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
13155         PR target/70416
13156         PR target/67391
13157         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
13158         set, but not for SP_REG operands.
13160 2016-04-02  Martin Sebor  <msebor@redhat.com>
13162         PR c++/67376
13163         * fold-const.c (maybe_nonzero_address): New function.
13164         (fold_comparison): Call it.  Fold equality and relational
13165         expressions involving null pointers.
13166         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
13168 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
13170         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
13171         the "Y" constraint (scalar FP 0.0 immediate).
13173         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
13174         Add the "const_double" to the list of operand constraints.
13176 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
13178         PR rtl-optimization/70467
13179         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
13180         If low word of the last operand is 0, just emit addition/subtraction
13181         for the high word.
13183 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13185         PR target/70404
13186         * config/s390/s390.c (s390_expand_insv): Check for everything
13187         constant instead of just VOIDmode stuff.
13189 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13191         PR target/70496
13192         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
13194 2016-04-01  Nathan Sidwell  <nathan@acm.org>
13196         * tree.def (TRY_CATCH_EXPR): Correct documentation.
13198 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
13200         PR rtl-optimization/70461
13201         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
13202         is necessary.
13204 2016-03-31  Martin Liska  <mliska@suse.cz>
13206         PR hsa/70399
13207         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
13208         a tree value or an immediate integer value to a buffer
13209         that is eventually copied to a BRIG section.
13210         (emit_immediate_operand): Call the function here.
13211         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
13212         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
13213         of class' fields that are removed.
13214         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
13215         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
13216         m_brig_repr_size fields.
13218 2016-03-31  Martin Liska  <mliska@suse.cz>
13220         PR hsa/70391
13221         * hsa-gen.c (hsa_function_representation::update_dominance): New
13222         function.
13223         (convert_addr_to_flat_segment): Likewise.
13224         (gen_hsa_memory_set): New alignment argument.
13225         (gen_hsa_ctor_assignment): Likewise.
13226         (gen_hsa_insns_for_single_assignment): Provide alignment
13227         to gen_hsa_ctor_assignment.
13228         (gen_hsa_insns_for_direct_call): Add new argument.
13229         (expand_lhs_of_string_op): New function.
13230         (expand_string_operation_builtin): Likewise.
13231         (expand_memory_copy): New function.
13232         (expand_memory_set): New function.
13233         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
13234         (convert_switch_statements): Change signature.
13235         (generate_hsa): Use a return value of the function.
13236         (pass_gen_hsail::execute): Do not call
13237         convert_switch_statements here.
13238         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
13239         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
13240         (hsa_function_representation::update_dominance): New function.
13242 2016-03-31  Martin Liska  <mliska@suse.cz>
13244         PR hsa/70391
13245         * hsa-brig.c (emit_directive_variable): Emit alignment
13246         according to hsa_symbol::m_align.
13247         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
13248         (dump_hsa_symbol): Dump alignment of HSA symbols.
13249         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
13250         (gen_hsa_addr_with_align): New function.
13251         (hsa_bitmemref_alignment): Use newly added function.
13252         (gen_hsa_insns_for_load): Likewise.
13253         (gen_hsa_insns_for_store): Likewise.
13254         (gen_hsa_memory_copy): New argument added.
13255         (gen_hsa_insns_for_single_assignment): Respect
13256         alignment for assignments processed via gen_hsa_memory_copy.
13257         (gen_hsa_insns_for_direct_call): Likewise.
13258         (gen_hsa_insns_for_return): Likewise.
13259         (gen_function_def_parameters): Set default alignment.
13260         * hsa.c (hsa_object_alignment): New function.
13261         (hsa_byte_alignment): Pasted function.
13262         * hsa.h (hsa_symbol::m_align): New field.
13264 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
13266         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
13267         scratch field for goto case.
13269 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
13271         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
13273 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
13275         PR target/70442
13276         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
13277         (scalar_chain::convert_insn): Call convert_op for reg
13278         moves to handle undefined registers.
13280 2016-03-31  Nathan Sidwell  <nathan@acm.org>
13282         PR c++/70393
13283         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
13284         Assert we don't want to move backwards.
13286 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
13288         PR target/70453
13289         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
13291 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
13293         PR rtl-optimization/70460
13294         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
13295         with operand from REG_LABEL_OPERAND, instead substitute
13296         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
13297         Don't do anything for REG_NON_LOCAL_GOTO jumps.
13299 2016-03-31  Martin Liska  <mliska@suse.cz>
13301         * passes.c (execute_one_pass): Do not call
13302         todo_after for a discarded function.
13304 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
13306         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
13307         (no_cost, infinite_cost): Initialize the new field.
13308         (get_computation_cost_at): Record setup cost.
13309         (determine_use_iv_cost_address): Skip cost computation for sub
13310         uses if we can estimate it without losing accuracy.
13312 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
13314         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
13315         estimates here.
13316         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13317         max_loop_iterations_int.
13318         (tree_unswitch_outer_loop): Likewise.
13319         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
13320         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
13322 2016-03-30  Richard Biener  <rguenther@suse.de>
13324         PR middle-end/70450
13325         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
13327 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
13329         PR target/70421
13330         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
13331         in gen_blendm expander.
13333 2016-03-30  Nick Clifton  <nickc@redhat.com>
13335         PR target/62254
13336         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
13337         case where we are already provided with an SImode SUBREG.
13339 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
13341         PR target/70439
13342         * config/i386/i386.c (ix86_expand_epilogue): Properly check
13343         conflict between DRAP register and __builtin_eh_return.
13345 2016-03-30  Michael Matz  <matz@suse.de>
13346             Richard Biener  <rguenther@suse.de>
13348         PR ipa/12392
13349         * ipa-polymorphic-call.c (struct type_change_info): Change
13350         speculative to an unsigned allowing to limit the work we do.
13351         (csftc_abort_walking_p): New inline function..
13352         (check_stmt_for_type_change): Limit the number of may-defs
13353         skipped for speculative devirtualization to
13354         max-speculative-devirt-maydefs.
13355         * params.def (max-speculative-devirt-maydefs): New param.
13356         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
13358 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
13360         PR target/63890
13361         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
13362         and TARGET_MACHO.
13364 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
13366         PR tree-optimization/59124
13367         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
13368         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
13370 2016-03-29  Jeff Law  <law@redhat.com>
13372         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
13374 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13376         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
13377         to HOST_WIDE_INT.
13379 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13381         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
13382         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
13383         gcrt0.o if linking dynamically.
13385 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13387         PR ipa/70283
13388         * ipa-devirt.c (methods_equal_p): New function.
13389         (compare_virtual_tables): Use it.
13390         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
13391         * cgraphclones.c (clone_function_name_1): Use
13392         symbol_table::symbol_suffix_separator.
13393         * coverage.c (build_var): Likewise.
13394         * symtab.c (symbol_table::symbol_suffix_separator): New.
13396 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
13398         PR rtl-optimization/70429
13399         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
13400         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
13401         mode != result_mode.
13403         PR c++/70353
13404         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
13406         PR tree-optimization/70405
13407         * ssa-iterators.h (num_imm_uses): Add missing braces.
13409 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
13411         PR rtl-optimization/68695
13412         * ira-color.c (allocno_copy_cost_saving): New.
13413         (improve_allocation): Use it.
13415 2016-03-29  Richard Henderson  <rth@redhat.com>
13417         PR middle-end/70355
13418         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
13420 2016-03-29  Richard Biener  <rguenther@suse.de>
13422         PR middle-end/70424
13423         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
13424         use alignment returned by get_pointer_alignment_1 if it is
13425         bigger than BITS_PER_UNIT.
13426         * builtins.c (get_pointer_alignment_1): Do not return true
13427         for alignment extracted from SSA info.
13429 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
13431         * config/ft32/ft32.opt (mnodiv): New.
13432         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
13433         * doc/invoke.texi (FT32 Options -mnodiv): New.
13435 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
13437         PR target/70406
13438         * config/i386/i386.md (define_split, andn): Fix modes.
13440 2016-03-26  Richard Biener  <rguenther@suse.de>
13441             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13443         PR ipa/70366
13444         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
13445         instead of
13446         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
13447         as 2nd argument to cl_optimization_restore().
13449 2016-03-25  Richard Henderson  <rth@redhat.com>
13451         PR target/70120
13452         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
13453         * config/aarch64/aarch64-protos.h: Declare it.
13454         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
13456 2016-03-25  Alan Modra  <amodra@gmail.com>
13458         PR target/70052
13459         * config/rs6000/constraints.md (j): Simplify.
13460         * config/rs6000/predicates.md (easy_fp_constant): Exclude
13461         decimal float 0.D.
13462         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
13463         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
13464          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
13465         in all constraint alternatives.
13466         (movtd_64bit_nodm): Delete "j" constraint alternative.
13468 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
13470         * tree-ssa-propagate.c: Enhance docs for
13471         SSA_PROP_NOT_INTERESTING.
13473 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
13475         * doc/extend.texi: Fix typo in documentation to pure attribute.
13477 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
13479         PR target/70319
13480         * config/pa/pa.md (bswapdi2): Use a scratch register.
13482 2016-03-24  Richard Henderson  <rth@redhat.com>
13484         PR middle-end/69845
13485         * fold-const.c (extract_muldiv_1): Correct test for multiplication
13486         overflow.
13488 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
13490         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
13491         using ix86_expand_binary_operator instead of gen_andsi3.
13493 2016-03-24  Richard Biener  <rguenther@suse.de>
13495         PR tree-optimization/70396
13496         * tree-vect-stmts.c (vectorizable_comparison): Use
13497         get_vectype_for_scalar_type.
13499 2016-03-24  Richard Biener  <rguenther@suse.de>
13501         PR middle-end/70370
13502         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
13503         with register bases.
13505 2016-03-24  Richard Biener  <rguenther@suse.de>
13507         PR tree-optimization/70372
13508         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
13509         build_all_ones_cst to also handle vector types correctly.
13511 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13513         PR target/70381
13514         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
13515         -mfloat128 here.
13517 2016-03-23  Marek Polacek  <polacek@redhat.com>
13519         PR c++/69884
13520         * doc/invoke.texi: Document -Wignored-attributes.
13522 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
13524         PR tree-optimization/69042
13525         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
13526         parameter from 30 to 40.
13528 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
13530         PR tree-optimization/69042
13531         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
13532         for use with constant offset stripped in base.
13534 2016-03-23  Richard Biener  <rguenther@suse.de>
13536         PR middle-end/70251
13537         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
13538         mode compatibility check.
13539         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13541 2016-03-23  Jeff Law  <law@redhat.com>
13543         PR tree-optimization/64058
13544         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
13545         CONFLICT_COUNT.
13546         (struct ssa_conflicts): Move up earlier in the file.
13547         (conflicts_, var_map_): New static variables.
13548         (initialize_conflict_count): New function to initialize the
13549         CONFLICT_COUNT field for each conflict pair.
13550         (compare_pairs): Lazily initialize the conflict count and use it
13551         as the first tie-breaker.
13552         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
13553         and wipe conflicts_ and map_ around the call to qsort.  Remove
13554         special case for 2 coalesce pairs.
13555         * bitmap.c (bitmap_count_unique_bits): New function.
13556         (bitmap_count_bits_in_word): New function, extracted from
13557         bitmap_count_bits.
13558         (bitmap_count_bits): Use bitmap_count_bits_in_word.
13559         * bitmap.h (bitmap_count_unique_bits): Declare it.
13561 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
13563         PR target/69917
13564         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
13565         transparent alias chain for decl assembler name.
13566         * config/sol2.c (solaris_assemble_visibility): Likewise.
13568 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13570         * config/arm/arm1020e.md (1020call_op): Reduce reservation
13571         duration.
13572         (v10_fdivs): Likewise.
13573         (v10_fdivd): Likewise.
13575 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13577         PR driver/70132
13578         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
13579         to not call fclose twice on file.
13581 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13583         PR tree-optimization/70354
13584         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13585         oprnd0 is wider than oprnd1 and there is a cast from the wider
13586         type to oprnd1, mask it with the mask of the narrower type.
13588         PR target/70321
13589         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
13590         Optimize TARGET_STV splitters, if high or low word of last argument
13591         is 0 or -1.
13593 2016-03-22  Jeff Law  <law@redhat.com>
13595         PR target/70232
13596         tree-ssa-threadbackward.c
13597         (fsm_find_control_statement_thread_paths): Correctly distinguish
13598         between old style jump threads vs FSM jump threads.
13600 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
13602         PR target/70302
13603         * config/i386/i386.c (scalar_chain::convert_op): Support
13604         uninitialized register usage case.
13606 2016-03-22  Richard Biener  <rguenther@suse.de>
13608         PR middle-end/70251
13609         * genmatch.c (gen_transform): Adjust last parameter to a three-state
13610         int...
13611         (capture::gen_transform): ... to change behavior when substituting
13612         a condition into cond or not-cond expr context.
13613         (dt_simplify::gen_1): Adjust.
13614         * gimple-match-head.c: Include gimplify.h for unshare_expr.
13615         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
13616         last change and instead change to
13617         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
13618         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13620 2016-03-22  Anthony Green  <green@moxielogic.com>
13622         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
13623         issue for moxiebox targets.
13624         (CC1PLUS_SPEC): Ditto.
13626 2016-03-22  Richard Biener  <rguenther@suse.de>
13628         PR middle-end/70333
13629         * fold-const.c (extract_muldiv_1): Properly perform multiplication
13630         in the wide type.
13632 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13634         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
13636 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13638         PR target/70325
13639         * config/i386/i386.c (def_builtin): Handle
13640         OPTION_MASK_ISA_AVX512VL to be and-ed with other
13641         bits.
13642         (const struct builtin_description bdesc_special_args[]):
13643         Remove duplicate ISA bits.
13645 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
13647         PR target/70329
13648         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
13649         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
13650         in a way that works also for AVX512BW.
13652         PR target/70300
13653         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
13654         instead of source if operands[1] is xmm16 and above and
13655         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
13656         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
13658         PR c++/70295
13659         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
13660         on assign if (*from_p) is a comparison, set it to
13661         TREE_NO_WARNING (*from_p).
13663 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
13665         PR middle-end/70326
13666         * lra.c (restore_scratches): Ignore deleted insns.
13668 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
13669             Jakub Jelinek  <jakub@redhat.com>
13671         PR tree-optimization/70317
13672         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
13673         to HONOR_NANS.
13675 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
13677         PR target/70327
13678         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
13679         of ix86_expand_move.
13680         (movoi): Ditto.
13681         (movti): Use general_operand for operand 1 predicate.
13683 2016-03-21  Martin Liska  <mliska@suse.cz>
13685         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
13686         insns.
13687         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
13689 2016-03-21  Martin Liska  <mliska@suse.cz>
13691         PR ipa/70306
13692         * ipa-icf.c (sem_function::parse): Skip static
13693         constructors and destructors.
13695 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
13697         PR target/70296
13698         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
13699         function-like macro, peek following token(s) if it is followed
13700         by CPP_OPEN_PAREN token with optional padding in between, and
13701         if not, don't treat it like a macro.
13703 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13704             Alexander Monakov  <amonakov@ispras.ru>
13706         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
13707         for the stabs debug format.
13709 2016-03-21  Richard Biener  <rguenther@suse.de>
13711         PR tree-optimization/70310
13712         * tree-vect-generic.c (expand_vector_condition): Fold the built
13713         condition.
13715 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
13717         PR target/70293
13718         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
13719         Block third alternative for AVX-512VL target,
13721 2016-03-21  Martin Liska  <mliska@suse.cz>
13723         PR hsa/70234
13724         * hsa-brig.c (emit_function_directives): Mark unemitted
13725         global variables for emission.
13726         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
13727         (get_symbol_for_decl): Likewise.
13728         * hsa.h (struct hsa_symbol): New flag.
13730 2016-03-21  Richard Biener  <rguenther@suse.de>
13732         PR tree-optimization/70288
13733         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
13734         we do not estimate unsimplified all-constant conditionals or
13735         switches as optimized away.
13737 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
13739         PR rtl-optimization/69102
13740         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
13741         when we have a readonly dependency context.
13743 2016-03-18  Jeff Law  <law@redhat.com>
13745         PR rtl-optimization/70263
13746         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
13747         (update_equiv_regs): When trying to move a store to after the insn
13748         that sets the source of the store, make sure the store occurs after
13749         the insn that sets the source of the store.  When successful note
13750         the REG_EQUIV note created in the dump file.
13752 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
13753             Bernd Schmidt  <bschmidt@redhat.com>
13755         * doc/extend.texi: Document more potential problems with basic asms.
13757 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
13759         PR rtl-optimization/70278
13760         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
13761         VOIDmode.
13763 2016-03-18  Jason Merrill  <jason@redhat.com>
13765         * calls.c (load_register_parameters): Fix zero size sibcall logic.
13767 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13769         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
13770         values to 128b regs.
13772 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13774         PR tree-optimization/70252
13775         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
13776         boolean vector has a proper number of elements.
13777         (supportable_narrowing_operation): Likewise.
13779 2016-03-18  Tom de Vries  <tom@codesourcery.com>
13781         PR ipa/70269
13782         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
13784 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
13786         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
13787         instead of replace_rtx for DEBUG_INSNs.
13789 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13791         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
13792         load type reservations.
13794 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
13796         PR target/70188
13797         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
13798         define_constraint for "Q" and "T" constraints.
13800 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
13802         Tweak the pipeline model for Exynos M1
13804         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
13805         model.
13807 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
13809         PR c/70264
13810         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
13811         where one or both locations aren't within a line_map.
13813 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13815         PR driver/70192
13816         * opts.c (finish_options): Don't set flag_pie to the default if
13817         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
13818         if it is -1.
13820 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
13822         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
13823         true as ALL_REGS argument to replace_rtx.
13825 2016-03-17  Richard Biener  <rguenther@suse.de>
13827         PR debug/70271
13828         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
13829         last.
13831 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13833         PR target/70245
13834         * rtl.h (replace_rtx): Add ALL_REGS argument.
13835         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
13836         equality and assert mode is the same, instead of just rtx pointer
13837         equality.
13838         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13839         true as ALL_REGS argument to replace_rtx.
13841 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
13843         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13844         for boolean vector with vector mode only.
13845         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13847 2016-03-17  Nick Clifton  <nickc@redhat.com>
13849         PR target/70162
13850         * config/rx/rx.c (rx_print_integer): Print negative constants in
13851         decimal.
13853 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13855         PR target/70261
13856         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13858 2016-03-16  Richard Henderson  <rth@redhat.com>
13859             Richard Biener  <rguenth@suse.de>
13861         PR middle-end/70240
13862         PR middle-end/68215
13863         PR tree-opt/68714
13864         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13865         first operand as is_gimple_condexpr.
13867         PR middle-end/70240
13868         PR middle-end/68215
13869         Revert r231575
13870         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
13871         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13872         Do not gimplify the result.
13873         (do_unop): Adjust call to tree_vec_extract.
13874         (do_binop): Likewise.
13875         (do_compare): Likewise.
13876         (do_plus_minus): Likewise.
13877         (do_negate): Likewise.
13878         (expand_vector_condition): Likewise.
13879         (do_cond): Likewise.
13881 2016-03-16  Richard Henderson  <rth@redhat.com>
13883         PR target/70048
13884         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13885         (aarch64_classify_address): Use it.
13886         (aarch64_legitimize_address): Force all subexpressions of PLUS
13887         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
13889 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
13890             Richard Biener  <rguenth@suse.de>
13892         PR target/70245
13893         * rtlanal.c (replace_rtx): For REG, if from is a REG,
13894         return to even if only REGNO is equal, and assert
13895         mode is the same.
13897 2016-03-11  Jeff Law  <law@redhat.com>
13899         PR rtl-optimization/70224
13900         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13902 2016-03-16  Richard Henderson  <rth@redhat.com>
13904         PR middle-end/70199
13905         * function.h (struct function): Add has_forced_label_in_static.
13906         * gimplify.c (force_labels_r): Set it.
13907         * lto-streamer-in.c (input_struct_function_base): Read it.
13908         * lto-streamer-out.c (output_struct_function_base): Write it.
13909         * tree-inline.c (has_label_address_in_static_1): Remove.
13910         (copy_forbidden): Remove fndecl parameter; test
13911         has_forced_label_in_static.
13912         (inline_forbidden_p): Update call to copy_forbidden.
13913         (tree_versionable_function_p): Likewise.
13914         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13915         (chkp_versioning): Likewise.
13916         * tree-inline.h (copy_forbidden): Update decl.
13918 2016-03-16  Marek Polacek  <polacek@redhat.com>
13920         PR c/70093
13921         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13922         function being thunked if the result type doesn't have fixed size.
13923         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13924         doesn't have fixed size.
13926 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
13928         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13929         reporting malformed loop nest.
13931 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13933         PR lto/70187
13934         * ipa-devirt.c (possible_polymorphic_call_targets): Move
13935         nodes.length () == 1 test to before first nodes[0] access.
13937 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13939         PR tree-optimization/68715
13940         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13941         single_pred_p test.
13943 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13945         PR tree-optimization/68809
13946         * graphite-scop-detection.c (same_close_phi_node): Test if result types
13947         are the same.
13949 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
13950             Sandra Loosemore  <sandra@codesourcery.com>
13952         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13953         on leaf attribute. Mention ELF interposition problems.
13955 2016-03-16  Alan Modra  <amodra@gmail.com>
13957         PR rtl-optimization/69195
13958         PR rtl-optimization/47992
13959         * ira.c (indirect_jump_optimize): Ignore artificial defs.
13960         Add comments.
13962 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
13964         PR bootstrap/69513
13965         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13967 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13969         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13971 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
13973         PR rtl-optimization/70222
13974         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13975         optimization if mode is different from result_mode, queue up masking
13976         of the result in outer_op.  Formatting fix.
13978         PR middle-end/70239
13979         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13980         of safe_grow.
13982 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13984         PR rtl-optimization/69032
13985         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13986         looping backwards over basic block insns.
13988 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13990         PR target/66660
13991         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13992         to non-speculative when propagating trap bits.
13994 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13996         PR rtl-optimization/63384
13997         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13998         DEBUG_INSN_P insns.
14000 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
14002         PR target/64411
14003         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
14004         factored out from ...
14005         (sched_analyze_insn): ... here.
14006         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
14007         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
14008         get_implicit_reg_pending_clobbers in it.
14009         (setup_id_reg_sets): Use setup_id_implicit_regs.
14010         (deps_init_id): Ditto.
14012 2016-03-15  Tom de Vries  <tom@codesourcery.com>
14014         PR ipa/70161
14015         * cgraph.c (cgraph_node::get_body): Save, reset and restore
14016         dump_file_name.
14017         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
14018         execute_function_dump.
14019         (execute_one_pass): Don't dump function if it will be dumped after ipa
14020         transform.
14022 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
14024         * genrecog.c (match_pattern_2): If pred is NULL don't call
14025         safe_predicate_mode on it.
14027 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
14029         PR middle-end/70219
14030         * lra-constraints.c (delete_move_and_clobber): Change assertion
14031         to also allow dregno == 0.
14033 2016-03-14  Richard Henderson  <rth@redhat.com>
14035         PR tree-opt/68714
14036         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
14037         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
14038         (reassociate_bb): Use optimize_vec_cond_expr; avoid
14039         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
14040         on vectors.
14042 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
14044         PR target/70083
14045         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
14046         regs.
14047         (lra_create_live_ranges_1): initialize hard register biggest_mode to
14048         VOIDmode.
14049         * lra-constraints.c (split_reg): For hard regs, try to find the
14050         biggest single-register mode used in the function.
14052 2016-03-14  Richard Biener  <rguenther@suse.de>
14054         PR tree-optimization/56365
14055         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
14056         constants to compare against.
14058 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
14060         PR target/70098
14061         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
14062         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
14063         (define_split for the GPR case): Use int_reg_operand instead of
14064         gpc_reg_operand for the output.
14066 2016-03-14  Tom de Vries  <tom@codesourcery.com>
14068         PR tree-optimization/70045
14069         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
14070         create_empty_if_region_on_edge argument.
14072 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
14074         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
14075         (STACK_CHECK_PROTECT): Likewise.
14076         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
14077         (STACK_CHECK_PROTECT): Likewise.
14078         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
14079         (STACK_CHECK_PROTECT): Likewise.
14080         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
14081         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14082         (STACK_CHECK_PROTECT): Likewise.
14084 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
14086         PR rtl-optimization/69307
14087         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
14088         registers in modes that span more than one register.
14090 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
14092         PR target/69614
14093         * lra-constraints.c (delete_move_and_clobber): New.
14094         (remove_inheritance_pseudos): Use it.
14096 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
14098         PR ada/70017
14099         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
14100         the libcall is LCT_THROW.
14101         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
14102         for the checking routine.
14104 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14106         PR target/70131
14107         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
14108         optimization if we have direct move.
14109         (roundu32<mode>2_fprs): Likewise.
14111 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
14113         PR target/70123
14114         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
14115         be rematerialized.
14116         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
14117         Arguments swapped.  All callers changed.  Take reg_renumber into
14118         account, and Calculate and compare register ranges for hard regs.
14120 2016-03-11  Jeff Law  <law@redhat.com>
14122         PR tree-optimization/70190
14123         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14124         Handle cases where we can not extract the taken edge, even though we
14125         found a constant value.
14127         PR tree-optimization/64058
14128         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
14129         (num_coalesce_pairs): Move up earlier in file.
14130         (find_coalesce_pair): Initialize the INDEX field for each pair
14131         discovered.
14132         (compare_pairs): No longer sort on the elements in each pair.
14133         Instead break ties with the index of the coalesce pair.
14135 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14137         PR target/70002
14138         * config/aarch64/aarch64-protos.h
14139         (aarch64_save_restore_target_globals): New prototype.
14140         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
14141         Call the above when popping pragma.
14142         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
14143         New function.
14144         (aarch64_set_current_function): Rewrite using the above.
14146 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
14148         PR tree-optimization/70177
14149         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
14150         (extract_ops_from_tree): ... this.  In the 2 argument
14151         overload remove _1 suffix.
14152         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
14153         (extract_ops_from_tree): ... this.
14154         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
14155         Adjust callers.
14156         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
14157         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
14158         extract_ops_from_tree instead of 2 operand one.
14160 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
14162         PR tree-optimization/70013
14163         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
14164         for constant-pool entries.
14166 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
14168         PR rtl-optimization/70174
14169         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
14170         followed by gen_lowpart on force_reg instead of just gen_lowpart.
14172         PR tree-optimization/70169
14173         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
14174         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
14175         for unknown codes.
14177 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
14178             Jakub Jelinek  <jakub@redhat.com>
14180         PR target/70160
14181         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
14182         of uninitialized values.
14184 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14186         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
14187         define_expand.
14188         ("*trunctddd2"): New pattern definition.
14189         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
14190         TD->DD truncation.
14192 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14194         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
14195         definitions for BFP and DFP rounding modes.
14196         ("fixuns_truncdddi2", "fixuns_trunctddi2")
14197         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
14198         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
14199         ("fix_trunctf<mode>2"): Use the new constants instead of magic
14200         numbers.
14202 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14204         * config/s390/constraints.md: Adjust comment.
14205         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
14206         s390_decompose_addrstyle_without_index.
14207         * config/s390/predicates.md (shift_count_or_setmem_operand):
14208         Rename to setmem_operand.
14209         * config/s390/s390-protos.h
14210         (s390_decompose_shift_count): Rename to
14211         s390_decompose_addrstyle_without_index.
14212         * config/s390/s390.c (s390_decompose_shift_count)
14213         (s390_mem_constraint, print_shift_count_operand)
14214         (print_operand_address, print_operand): Rename
14215         s390_decompose_shift_count to
14216         s390_decompose_addrstyle_without_index and rename
14217         print_shift_count_operand to print_addrstyle_operand troughout the
14218         file.
14219         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
14220         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
14221         Rename shift_count_or_setmem_operand to setmem_operand.
14222         * config/s390/vx-builtins.md ("vec_insert<mode>")
14223         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
14224         nonmemory_operand.
14226 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14228         PR target/70168
14229         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14230         Handle overlapping retval and newval.
14232 2016-03-10  Nick Clifton  <nickc@redhat.com>
14234         PR target/7044
14235         * config/aarch64/aarch64.c
14236         (aarch64_override_options_after_change_1): When forcing
14237         flag_omit_frame_pointer to be true, use a special value that can
14238         be detected if this function is called again, thus preventing
14239         flag_omit_leaf_frame_pointer from being forced to be false.
14241 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14243         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14244         Set x_flag_omit_leaf_frame_pointer when handling
14245         -momit-leaf-frame-pointer.
14247 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
14249         PR lto/69589
14250         * cgraph.c (cgraph_node::dump): Dump split_part and
14251         indirect_call_target.
14252         * cgraph.h (cgraph_node): Add indirect_call_target flag.
14253         * ipa.c (has_addr_references_p): Cleanup.
14254         (is_indirect_call_target_p): New.
14255         (walk_polymorphic_call_targets): Do not mark virtuals that may be
14256         called indirectly as local.
14257         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
14259 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
14261         PR ipa/69630
14262         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14263         on cxa_pure_virtual.
14265 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
14267         PR lto/69589
14268         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
14270 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
14272         PR lto/69589
14273         * tree.c (need_assembler_name_p): Only record main variant type names.
14275 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
14277         PR target/70113.
14278         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
14279         Always define to 0 or 1.
14280         (TARGET_FIX_ERR_A53_843419): New macro.
14281         * config/aarch64/aarch64-elf-raw.h
14282         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
14283         * config/aarch64/aarch64-linux.h: Likewise.
14284         * config/aarch64/aarch64.c
14285         (aarch64_override_options_after_change_1): Do not default
14286         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
14287         843419 is on.
14288         (aarch64_attributes): Handle fix-cortex-a53-843419.
14289         (aarch64_can_inline_p): Likewise.
14290         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
14292 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
14293         Jakub Jelinek <jakub@redhat.com>
14295         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
14296         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
14297         DECL_COMMONS if flag_unconstrained_commons is set.
14298         * tree-dfa.c (get_ref_base_and_extent): Likewise.
14299         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
14300         (funconstrained-commons): Document.
14302 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
14304         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
14305         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
14307 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
14309         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
14310         has a proper number of elements.
14312 2016-03-10  Alan Modra  <amodra@gmail.com>
14314         PR rtl-optimization/69195
14315         PR rtl-optimization/47992
14316         * ira.c (recorded_label_ref): Delete.
14317         (update_equiv_regs): Return void.
14318         (indirect_jump_optimize): New function.
14319         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
14320         before regstat_compute_ri.  Don't rebuild_jump_labels here.
14321         Delete update_regstat.
14323 2016-03-10  Richard Biener  <rguenther@suse.de>
14325         PR tree-optimization/70128
14326         * tree-ssa-structalias.c (set_uids_in_ptset): Set
14327         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
14329 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
14331         PR tree-optimization/70152
14332         * tree-sra.c (replace_removed_params_ssa_names): Copy over
14333         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
14335         PR target/70086
14336         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
14337         instead of gen_sse2_loadlpd.
14338         * config/i386/sse.md (*vec_concatv2df): Rename to...
14339         (vec_concatv2df): ... this.
14341         PR tree-optimization/70127
14342         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
14344 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
14346         PR c/68473
14347         PR c++/70105
14348         * diagnostic-show-locus.c (compatible_locations_p): New function.
14349         (layout::layout): Sanitize ranges using compatible_locations_p.
14351 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
14353         PR c/68473
14354         PR c++/70105
14355         * diagnostic-show-locus.c (layout_range::layout_range): Replace
14356         location_range param with three const expanded_locations * and a
14357         bool.
14358         (layout::layout): Replace call to
14359         rich_location::lazily_expand_location with get_expanded_location.
14360         Extract the range and perform location expansion here, passing
14361         the results to the layout_range ctor.
14362         * diagnostic.c (source_range::debug): Delete.
14363         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
14364         of rich_location::get_expanded_location.
14365         * gcc-rich-location.c (get_range_for_expr): Delete.
14366         (gcc_rich_location::add_expr): Reimplement to avoid the
14367         rich_location::add_range overload that took a location_range,
14368         passing a location_t instead.
14370 2016-03-09  Richard Biener  <rguenther@suse.de>
14371         Jakub Jelinek  <jakub@redhat.com>
14373         PR tree-optimization/70138
14374         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
14375         Also skip vect_double_reduction_def.
14377 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
14379         PR target/70049
14380         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
14381         if the operand is "m".
14383 2016-03-09  Nathan Sidwell  <nathan@acm.org>
14385         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
14387 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14389         * config/i386/i386.c (processor_target_table): Fix cost table
14390         intialization order for znver1.
14392 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
14394         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
14395         - becuase -> because.
14396         * ipa-reference.c (ignore_module_statics): Likewise.
14397         * cgraph.c (cgraph_node::get_body): Likewise.
14398         * ipa-inline.c (early_inliner): Likewise.
14399         * ipa-devirt.c (types_same_for_odr): Likewise.
14400         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
14401         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
14403 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14405         * tree-ssa-math-opts.c: Fix typo in comment.
14407 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
14409         PR target/70110
14410         * config/i386/i386.c (scalar_chain::make_vector_copies,
14411         scalar_chain::convert_reg): Call end_sequence in between
14412         get_insns and emit_conversion_insns rather than after both
14413         calls.
14415 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
14417         PR target/70064
14418         * config/i386/i386.h (machine_function): Add
14419         pc_thunk_call_expanded flag.
14420         (ix86_pc_thunk_call_expanded): New define.
14421         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
14422         (*set_got): Rename insn pattern from set_got.
14423         (*set_got_labelled): Rename inst pattern from set_got_labelled.
14424         * config/i386/i386.c (ix86_compute_frame_layout): Use
14425         ix86_pc_thunk_call_expanded to prevent red-zone.
14427 2016-03-07  Martin Jambor  <mjambor@suse.cz>
14429         * hsa.h (hsa_get_ctor_statements): Declare.
14430         (hsa_get_dtor_statements): Likewise.
14431         (hsa_get_kernel_dispatch_type): Likewise.
14432         * hsa.c (hsa_get_ctor_statements): New function.
14433         (hsa_get_dtor_statements): Likewise.
14434         (hsa_get_kernel_dispatch_type): Likewise.
14435         * hsa-brig.c (hsa_cdtor_statements): Removed.
14436         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
14437         hsa_get_dtor_statements.
14438         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
14439         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
14441 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14443         * config/arm/arm-cores.def (cortex-r8): New.
14444         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
14445         * config/arm/arm-tune.md: Likewise.
14446         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
14448 2016-03-07  Martin Sebor  <msebor@redhat.com>
14450         PR rtl-optimization/19705
14451         * doc/invoke.texi (Options That Control Optimization): Clarify
14452         -fno-branch-count-reg.
14454 2016-02-26  Richard Biener  <rguenther@suse.de>
14455             Jeff Law  <law@redhat.com>
14457         PR tree-optimization/69740
14458         * cfghooks.c (remove_edge): Request loop fixups if we delete
14459         an edge that might turn an irreducible loop into a natural
14460         loop.
14461         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
14462         Move after definition of loops_state_clear.
14464 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
14466         PR rtl-optimization/69052
14467         * rtlanal.c (commutative_operand_precedence): Set higher precedence
14468         to CONST_WIDE_INT.
14470 2016-03-07  Tom de Vries  <tom@codesourcery.com>
14472         PR tree-optimization/70116
14473         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
14474         is_tm_ending stmts and ubsan/asan internal functions.
14475         (find_duplicate): Use it.  Don't test is_tm_ending here.
14477 2016-03-07  Richard Biener  <rguenther@suse.de>
14479         PR tree-optimization/70115
14480         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
14481         (propagate_constants_for_unrolling): Use replace_uses_by.
14483 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
14485         PR middle-end/69916
14486         * omp-low.c (struct oacc_loop): Add ifns.
14487         (new_oacc_loop_raw): Initialize it.
14488         (finish_oacc_loop): Clear mask & flags if no ifns.
14489         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
14490         (oacc_loop_xform_loop): Add ifns arg & adjust.
14491         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
14493 2016-03-07  Richard Henderson  <rth@redhat.com>
14495         PR rtl-opt/70061
14496         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
14497         (insert_value_copy_on_edge): Likewise.
14499 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14501         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
14503 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14505         PR target/62281
14506         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
14508 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
14510         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
14512 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
14514         Fix sseimul type attribute.
14515         * config/i386/znver1.md
14516         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
14517         znver1_sseimul_avx256_load) : Fix the type attribute.
14518         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
14519         pipe usage and latency.
14521 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
14523         PR c++/70084
14524         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
14525         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
14526         to the right type.
14528 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
14530         PR c/69973
14531         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
14533         PR rtl-optimization/69941
14534         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
14535         the reg share its mode.
14537 2016-03-04  Jeff Law  <law@redhat.com>
14539         PR tree-optimization/69196
14540         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14541         If the both SSA_NAMEs are anonymous, then consider them unassociated
14542         and include the PHI in the statement count.
14544 2016-03-05  Tom de Vries  <tom@codesourcery.com>
14546         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
14547         construct in oacc routine.  Check for oacc region in oacc routine.
14549 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
14551         PR target/70062
14552         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
14553         2016-02-22 changes, instead don't recurse if RECUR is already true.
14554         Don't change *dynamic_check if RECUR.  Adjust recursive caller
14555         to pass true to the new argument.
14556         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
14558         PR target/70059
14559         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14560         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
14561         fixes.
14562         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
14564 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
14566         PR rtl-optimization/57676
14567         * lra-assigns.c (lra_assign): Guard test for maximum iterations
14568         with flag_checking.
14570 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
14572         * tree-vect-patterns.c (search_type_for_mask): Handle
14573         comparison of booleans.
14575 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
14577         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
14578         Fix @xref usage.
14580         PR debug/69947
14581         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
14582         all other ops that have dw_val_class_die_ref operands,
14583         and DW_OP_GNU_entry_value.
14585 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14587         PR rtl-optimization/69904
14588         * config/arm/arm.c (arm_cannot_copy_insn_p):
14589         Return true for load-exclusive instructions.
14591 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
14593         PR target/70021
14594         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
14595         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
14596         the pattern no matter if it is used just by non-pattern, pattern
14597         or mix thereof.
14598         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
14599         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14600         oprnd1 def_stmt is in pattern, don't look through it.
14602 2016-03-03  Marek Polacek  <polacek@redhat.com>
14604         PR middle-end/70050
14605         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
14607 2016-03-03  Martin Liska  <mliska@suse.cz>
14609         PR tree-optimization/70043
14610         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
14611         previous statement if we see a debug statement.
14613 2016-03-03  Richard Biener  <rguenther@suse.de>
14615         PR tree-optimization/55936
14616         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
14617         parameter and guard unsafe equivalence use.
14618         (vrp_evaluate_conditional_warnv_with_ops): Always use
14619         safe equivalences but not via the quadratic compare_names
14620         helper.
14622 2016-03-03  Michael Collison  <michael.collison@linaro.org>
14624         PR target/70014
14625         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
14626         for operand 1 to s_register_operand. Change predicate for operand
14627         2 to arm_not_immediate_operand.
14629 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
14631         * doc/tm.texi: Regenerated.
14633 2016-03-02  Richard Henderson  <rth@redhat.com>
14635         PR rtl-opt/67145
14636         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
14637         simplification when all args are positive non-fixed registers.
14639 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14641         * target.def (lra_p): Specify that new ports should use LRA.
14643 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14645         PR libgomp/69555
14646         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
14647         gimplify_type_sizes the type they refer to.
14648         (omp_notice_variable): Handle reference vars to VLAs.
14649         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
14650         reference to VLA decls in the second pass instead of first pass.
14652 2016-03-02  Tom de Vries  <tom@codesourcery.com>
14654         PR tree-optimization/68659
14655         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
14656         new_expr == NULL_TREE.
14657         (get_new_name): Handle ADDR_EXPR.
14659 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
14661         PR rtl-optimization/69052
14662         * loop-invariant.c (canonicalize_address): New function.
14663         (inv_can_prop_to_addr_use): Check validity of address expression
14664         which is canonicalized by above function.
14666 2016-03-02  Alan Modra  <amodra@gmail.com>
14668         PR ipa/69990
14669         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
14670         larger alignment.
14672 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
14674         PR target/70028
14675         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
14676         (*movhi_internal): Put mask moves from and to memory separately
14677         from moves from/to GPRs.
14679 2016-03-02  Richard Biener  <rguenther@suse.de>
14681         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
14682         GENERIC expressions in GIMPLE.
14684 2016-03-02  Richard Biener  <rguenther@suse.de>
14686         * config/i386/i386.c (type_natural_mode): Fix typo.
14688 2016-03-02  Nick Clifton  <nickc@redhat.com>
14690         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
14692 2016-03-02  Richard Biener  <rguenther@suse.de>
14693             Uros Bizjak  <ubizjak@gmail.com>
14695         PR target/67278
14696         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
14698 2016-03-02  Richard Biener  <rguenther@suse.de>
14700         PR middle-end/67278
14701         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
14703 2016-03-02  Marek Polacek  <polacek@redhat.com>
14705         PR c/67854
14706         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
14707         "is promoted to" warning.
14709 2016-03-01  DJ Delorie  <dj@redhat.com>
14711         * config.gcc: Deprecate mep-*.
14713 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
14715         PR middle-end/70025
14716         * lra-constraints.c (regno_val_use_in): New.
14717         (match_reload): Use it instead of regno_use_in.
14719 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14721         PR rtl-optimization/70007
14722         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
14723         references present in REG_EQUAL notes attached to non-SET patterns.
14725 2016-03-01  Jeff Law  <law@redhat.com>
14727         PR tree-optimization/69196
14728         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14729         Appropriately clamp the number of statements to copy when the
14730         thread path does not traverse a loop backedge.
14732         PR tree-optimization/69196
14733         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14734         Do count some PHIs in the thread path against the insn count.  Decrease
14735         final statement count by one as the control statement in the last
14736         block will get removed.  Remove special cased code for handling PHIs
14737         in the last block.
14739 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
14741         PR target/70027
14742         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
14743         asm dialect alternatives to explicit GOTPCREL calls.
14745 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14747         PR ada/70017
14748         * ira.c (do_reload): Issue warning for generic stack checking here...
14749         * reload1.c (reload): ...instead of here and streamline it.
14751 2016-03-01  Nick Clifton  <nickc@redhat.com>
14753         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
14755 2016-03-01  Richard Biener  <rguenther@suse.de>
14757         PR tree-optimization/69983
14758         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
14759         types and fall back to operand_equal_p.
14761 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14763         Revert
14764         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14766         * config/s390/constraints.md ("jm8"): New constraint.
14767         * config/s390/predicates.md ("const_int_8bitset_operand"): New
14768         predicate.
14769         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
14770         into ...
14771         ("*setmem_long<setmem_and>"): New pattern.
14772         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
14773         into ...
14774         ("*setmem_long_31z<setmem_and>"): New pattern.
14775         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
14776         New substitution rules with the required attributes.
14779 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14781         Revert
14782         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14784         * gensupport.c (process_substs_on_one_elem): Split loop to
14785         complete mark_operands_used_in_match_dup on all expressions in the
14786         vector first.
14787         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14788         and remove function.
14790 2016-03-01  Richard Biener  <rguenther@suse.de>
14792         PR middle-end/70022
14793         * fold-const.c (fold_indirect_ref_1): Fix range checking for
14794         vector BIT_FIELD_REF extract.
14796 2016-03-01  Richard Biener  <rguenther@suse.de>
14798         PR tree-optimization/69994
14799         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
14801 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
14803         PR tree-optimization/69956
14804         * tree-vect-stmts.c (supportable_widening_operation): Support
14805         multi-step conversion of boolean vectors.
14806         (supportable_narrowing_operation): Likewise.
14808 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14810         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
14811         anymore.
14813 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14815         * config/s390/subst.md (DSI_VI): New mode iterator.
14816         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
14817         * config/s390/vector.md ("vec_set<mode>"): Move expander before
14818         the insn definition.
14819         ("*vec_set<mode>"): Change predicate and add alternative to
14820         support only either register or const_int operands as element
14821         selector.
14822         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
14823         operands.
14824         ("vec_extract<mode>"): New expander.
14825         ("*vec_extract<mode>"): New insn definition supporting reg and
14826         const_int element selectors.
14827         ("*vec_extract<mode>_plus"): New insn definition supporting
14828         reg+const_int element selectors.
14829         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
14830         following expander+insn definition.
14831         ("<vec_shifts_name><mode>3"): New expander.
14832         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
14834 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14836         * config/s390/s390.md ("*tabort_1"): Change predicate to
14837         nonmemory_operand.  Add a second alternative to cover
14838         register as well as const int operands.
14839         ("*tabort_1_plus"): New pattern definition.
14841 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14843         * config/s390/s390.md ("*ashrdi3_cc_31")
14844         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14845         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14846         Merge insn definitions into ...
14847         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14848         New pattern definition.
14849         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14850         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14851         ("*ashr<mode>3_and"): Merge insn definitions into ...
14852         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14853         New pattern definition.
14854         * config/s390/subst.md ("addr_style_op_cc_subst")
14855         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14856         substitutions patterns plus attributes.
14857         Add ashiftrt to SUBST iterator.
14859 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14861         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14862         op2 to nonmemory_operand.
14863         ("*<shift>di3_31", "*<shift>di3_31_and"):
14864         Merge into single pattern definition ...
14865         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14866         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14867         pattern definition ...
14868         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14869         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14870         iterator.
14872 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14874         * config/s390/predicates.md (const_int_6bitset_operand): New
14875         predicate.
14876         * config/s390/s390.md: Include subst.md.
14877         ("rotl<mode>3"): New expander.
14878         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14879         ...
14880         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14881         * config/s390/subst.md: New file.
14883 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14885         * config/s390/s390.md ("op_type", "atype", "length" attributes):
14886         Remove RRR type.  It doesn't really exist.
14887         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14888         attributes.
14889         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14890         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14891         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14892         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14893         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14894         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14895         `enabled' attribute.
14897 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14899         * gensupport.c (process_substs_on_one_elem): Split loop to
14900         complete mark_operands_used_in_match_dup on all expressions in the
14901         vector first.
14902         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14903         and remove function.
14905 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14907         PR target/69706
14908         * config/sparc/sparc.c (NWORDS_UP): Rename to...
14909         (CEIL_NWORDS): ...this.  Use CEIL macro.
14910         (compute_fp_layout): Adjust to above renaming.
14911         (function_arg_union_value): Likewise.
14912         (sparc_arg_partial_bytes): Likewise.
14913         (sparc_function_arg_advance): Likewise.
14915 2016-02-29  Jeff Law  <law@redhat.com>
14917         PR tree-optimization/70005
14918         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14919         where an object with a boolean range is compared against a value
14920         outside [0..1].
14922         PR tree-optimization/69999
14923         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14924         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14925         loop cleanups.
14927 2016-02-29  Richard Biener  <rguenther@suse.de>
14929         PR tree-optimization/69994
14930         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14931         (get_unary_op): Look through nop conversions.
14932         (ops_equal_values_p): New function, look for equality diregarding
14933         nop conversions.
14934         (eliminate_plus_minus_pair): Use ops_equal_values_p
14935         (repropagate_negates): Do not use get_unary_op here.
14937 2016-02-29  Martin Liska  <mliska@suse.cz>
14939         * system.h: Poison ENABLE_CHECKING macro.
14941 2016-02-29  Martin Liska  <mliska@suse.cz>
14943         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14944         is presented in dump flags.
14945         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14946         (hsa_regalloc): Likewise.
14948 2016-02-19  Richard Biener  <rguenther@suse.de>
14950         PR tree-optimization/69980
14951         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14952         permutation of those we need to keep.
14954 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14956         PR target/69706
14957         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14958         (NWORDS_UP): ...this
14959         (init_cumulative_args): Minor tweaks.
14960         (sparc_promote_function_mode): Likewise.
14961         (scan_record_type): Delete.
14962         (traverse_record_type): New function template.
14963         (classify_data_t): New structure type.
14964         (classify_registers): New inline function.
14965         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14966         exhausted.  Instantiate traverse_record_type on classify_registers and
14967         deal with the case of a structure passed in slot #15 with no FP field
14968         in the first word.
14969         (assign_data_t): New structure type.
14970         (compute_int_layout): New static function.
14971         (compute_fp_layout): Likewise.
14972         (count_registers): New inline function.
14973         (assign_int_registers): New static function.
14974         (assign_fp_registers): Likewise.
14975         (assign_registers): New inline function.
14976         (function_arg_record_value_1): Delete.
14977         (function_arg_record_value_2): Likewise.
14978         (function_arg_record_value_3): Likewise.
14979         (function_arg_record_value): Adjust to above changes.  Instantiate
14980         traverse_record_type on count_registers to first count the number of
14981         registers to be used and then on assign_registers to assign them.
14982         (function_arg_union_value): Adjust to above renaming.
14983         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
14984         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
14985         case of a structure passed in slot #15
14986         (sparc_function_arg_advance): Likewise.
14987         (function_arg_padding): Minor tweak.
14989 2016-02-29  Richard Biener  <rguenther@suse.de>
14991         PR tree-optimization/69720
14992         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14993         the adjustment_def path for possibly vectorized defs.
14994         (vect_create_epilog_for_reduction): Handle vectorized initial
14995         defs properly.
14997 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
14999         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
15001 2016-02-27  Jeff Law  <law@redhat.com>
15003         Revert
15004         2016-02-26  Richard Biener  <rguenther@suse.de>
15005                     Jeff Law  <law@redhat.com>
15007         PR tree-optimization/69740
15008         * cfghooks.c (remove_edge): Request loop fixups if we delete
15009         an edge that might turn an irreducible loop into a natural
15010         loop.
15012 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
15014         PR rtl-optimization/69896
15015         * tree-vect-generic.c (get_compute_type): Avoid single element
15016         vector types.
15018 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
15020         Rename the AArch64 tuning option and related functions to enable the
15021         Newton series for the reciprocal square root to reflect its
15022         approximative characteristic.
15024         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
15025         function to "aarch64_emit_approx_rsqrt".
15026         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
15027         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
15028         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
15029         (xgene1_tunings): Likewise.
15030         (use_rsqrt_p): Likewise.
15031         (aarch64_emit_swrsqrt): Use new function name.
15032         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
15033         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
15034         text explaining this option.
15035         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
15037 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
15039         PR target/69969
15040         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15041         complain about -mallow-movmisalign without -mvsx if
15042         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
15044 2016-02-26  Joel Sherrill  <joel@rtems.org>
15046         * config.gcc: Add x86_64-*-rtems*.
15047         * config/i386/rtems-64.h: New file.
15049 2016-02-26  Joel Sherrill  <joel@rtems.org>
15051         * config.gcc: Add aarch64-*-rtems*.
15052         * config/aarch64/rtems.h: New file.
15054 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
15056         PR target/69946
15057         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
15058         shift amount using %h.  Add comment.
15060 2016-02-26  Richard Biener  <rguenther@suse.de>
15061             Jeff Law  <law@redhat.com>
15063         PR tree-optimization/69740
15064         * cfghooks.c (remove_edge): Request loop fixups if we delete
15065         an edge that might turn an irreducible loop into a natural
15066         loop.
15068 2016-02-26  Martin Jambor  <mjambor@suse.cz>
15070         PR middle-end/69920
15071         * tree-sra.c (sra_modify_assign): Do not remove loads of
15072         uninitialized aggregates to SSA_NAMEs.
15074 2016-02-26  Richard Henderson  <rth@redhat.com>
15076         PR target/69709
15077         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
15078         pseudo in case the target rtx matches the source of the left
15079         shift.
15081 2016-02-26  Martin Jambor  <mjambor@suse.cz>
15083         PR hsa/69568
15084         * hsa.h (hsa_type_packed_p): Declare.
15085         * hsa.c (hsa_type_packed_p): New function.
15086         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
15087         loads.
15088         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
15089         * hsa-brig.c (emit_basic_insn): Likewise.
15091 2016-02-26  Martin Jambor  <mjambor@suse.cz>
15093         pr hsa/69674
15094         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
15095         pointers.
15096         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
15098 2016-02-26  Martin Jambor  <mjambor@suse.cz>
15100         * hsa.h (is_a_helper): New overload for hsa_op_immed for
15101         hsa_op_with_type operands.
15102         (hsa_unsigned_type_for_type): Declare.
15103         * hsa.c (hsa_unsigned_type_for_type): New function.
15104         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
15105         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
15106         the finalizer.  Do not emit extra move.
15108 2016-02-26  Martin Jambor  <mjambor@suse.cz>
15110         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
15111         atomic operations in private segment.
15113 2016-02-26  Martin Jambor  <mjambor@suse.cz>
15115         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
15116         statements to wi->info.  Also disallow omp simd constructs.
15117         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
15118         for not gridifying.  Dump special string for omp_for.
15120 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15122         PR target/69245
15123         * config/aarch64/aarch64.c (aarch64_set_current_function):
15124         Save/restore target globals when switching to
15125         target_option_default_node.
15127 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15129         PR target/69613
15130         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
15131         Return 0 if !SHIFT_COUNT_TRUNCATED.
15133 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
15134             Eric Botcazou  <ebotcazou@adacore.com>
15136         PR rtl-optimization/69891
15137         * dse.c (scan_insn): If we can't figure out memset arguments
15138         or they are non-constant, call clear_rhs_from_active_local_stores.
15140 2016-02-26  Martin Liska  <mliska@suse.cz>
15142         * doc/extend.texi: Mention clog10, clog10f an clog10l
15143         in Builtins section.
15145 2016-02-26  Martin Liska  <mliska@suse.cz>
15147         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
15148         CHECKING_P.
15149         (resolve_args_picking_1): Likewise.
15150         * dwarf2out.h (struct GTY): Likewise.
15152 2016-02-26  Martin Liska  <mliska@suse.cz>
15154         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
15155         with flag_checking.
15156         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
15158 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
15159             Martin Liska  <mliska@suse.cz>
15161         * doc/install.texi: Mention --enable-valgrind-annotations.
15163 2016-02-26  Richard Biener  <rguenther@suse.de>
15165         PR tree-optimization/69551
15166         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
15167         looking through aliases adjust DECL_PT_UID to refer to the
15168         ultimate alias target.
15170 2016-02-25  Martin Liska  <mliska@suse.cz>
15172         PR middle-end/69919
15173         * alloc-pool.c (after_memory_report): New variable.
15174         * alloc-pool.h (base_pool_allocator ::release): Do not use
15175         the infrastructure if after_memory_report.
15176         * toplev.c (toplev::main): Mark after memory report.
15178 2016-02-25  Richard Biener  <rguenther@suse.de>
15180         PR tree-optimization/48795
15181         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
15183 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
15185         PR driver/68463
15186         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
15187         offloading is enabled and -fopenacc or -fopenmp is specified.
15188         (CRTOFFLOADEND): Likewise.
15189         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
15190         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
15191         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
15192         (offload_objects_file_name): New static var.
15193         (tool_cleanup): Remove offload_objects_file_name file.
15194         (find_offloadbeginend): Replace with ...
15195         (find_crtoffloadtable): ... this.
15196         (run_gcc): Remove offload_argc and offload_argv.
15197         Get offload_objects_file_name from -foffload-objects=... option.
15198         Read names of object files with offload from this file, pass them to
15199         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
15200         don't pass offloadbegin and offloadend to the linker.  Don't pass
15201         offload non-LTO files to the linker, because now they're not claimed.
15203 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
15205         PR ipa/69630
15206         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
15207         on builtin_unreachable.
15209 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
15211         PR rtl-optimization/69896
15212         * regcprop.c: Include cfgrtl.h.
15213         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
15214         than remembered mode, either delete it (if noop_move_p), or
15215         treat like copy_p but not noop_p instruction.
15217 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
15219         PR debug/69705
15220         * dwarf2out.c (gen_variable_die): Work around buggy LTO
15221         - allow NULL decl for Fortran DW_TAG_common_block variables.
15223 2016-02-24  Jason Merrill  <jason@redhat.com>
15225         * common.opt (flifetime-dse): Add -flifetime-dse=1.
15227 2016-02-24  Richard Biener  <rguenther@suse.de>
15228             Jakub Jelinek  <jakub@redhat.com>
15230         PR middle-end/69760
15231         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
15232         conditionally executed ops to well-defined overflow behavior.
15234 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
15236         PR middle-end/69915
15237         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
15238         elements.
15240 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15242         PR rtl-optimization/69886
15243         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
15244         argument.  Use it when checking validity of set instructions.
15245         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
15246         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
15247         callsite.
15248         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
15249         * store-motion.c (find_moveable_store): Update
15250         can_assign_to_reg_without_clobbers_p callsite.
15252 2016-02-24  Richard Biener  <rguenther@suse.de>
15254         PR middle-end/68963
15255         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
15256         bogus check.
15257         (record_nonwrapping_iv): Do not fall back to the low/high bound
15258         for non-constant IV bases if the stmt is not always executed.
15260 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15262         * config/arm/arm-cores.def (cortex-a32): New entry.
15263         * config/arm/arm-tables.opt: Regenerate.
15264         * config/arm/arm-tune.md: Regenerate.
15265         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
15266         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
15267         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
15268         for -mcpu and -mtune.
15270 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15272         PR target/69875
15273         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
15274         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
15275         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
15276         (atomic_loaddi_1): Delete.
15277         (atomic_loaddi): Rewrite expander using the above changes.
15279 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
15281         PR c/69918
15282         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
15283         2 to 3.
15285 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
15286             Richard Biener  <rguenth@suse.de>
15288         PR middle-end/69909
15289         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
15290         set_mem_attributes if tem is SSA_NAME which got expanded
15291         as a MEM.
15293 2016-02-24  Richard Biener  <rguenther@suse.de>
15295         PR tree-optimization/69907
15296         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
15297         end of permutations for BB vectorization.
15299 2016-02-24  Christian Bruel  <christian.bruel@st.com>
15301         * config/arm/arm-c.c (arm_option_override): Initialize
15302         target_option_current_node.
15303         * config/arm/arm.c (arm_pragma_target_parse): Replace
15304         build_target_option_node call by target_option_current_node.
15305         Set target_option_current_node.
15306         Fix comments.
15308 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
15310         PR target/69810
15311         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
15312         define_insn_and_split to define_insn.
15313         (zero_extendqi<mode>2_dot2): Same.
15314         (extendqi<mode>2_dot): Same.
15315         (extendqi<mode>2_dot2): Same.
15317 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
15319         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
15320         and add bypass for AES{D,E} and AESMC pairs.
15321         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
15322         and AESMC pairs.
15324 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
15326         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
15327         series for reciprocal square root in Exynos M1.
15329 2016-02-23  Martin Sebor  <msebor@redhat.com>
15331         PR c/69759
15332         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
15333         __builtin_alloca_with_align.
15335 2016-02-23  Richard Henderson  <rth@redhat.com>
15337         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
15338         (ix86_register_pragmas): Remove __seg_tls.
15339         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
15340         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
15341         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
15342         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
15343         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
15344         * doc/extend.texi (__seg_tls): Remove item.
15346 2016-02-23  Richard Biener  <rguenther@suse.de>
15348         * alloc-pool.h (struct allocation_object): Make id member
15349         conditional on CHECKING_P again.
15350         (get_instance): Adjust.
15351         (base_pool_allocator): Likewise.
15353 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
15355         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
15356         (parallelize_loops): In OpenACC kernels mode, set n_threads to
15357         zero.
15358         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
15359         flag_openacc.
15360         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
15362 2016-02-23  Richard Biener  <rguenther@suse.de>
15364         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
15365         * bitmap.h (struct bitmap_usage): Likewise.
15366         (bitmap_move): Declare.
15367         * bitmap.c (register_overhead): Take size_t argument.
15368         (bitmap_move): New function.
15369         * df-problems.c (df_rd_transfer_function): Use bitmap_move
15370         to properly account overhead.
15371         * tree.c (free_node): Use tree_size.
15373 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
15375         PR c++/69902
15376         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
15377         when inverting comparison.
15379         PR c/69900
15380         * common.opt (Wunreachable-code): Add Warning flag.
15382 2016-02-23  Mark Wielaard  <mjw@redhat.com>
15383             Jakub Jelinek  <jakub@redhat.com>
15385         PR c/69911
15386         * cgraphunit.c (check_global_declaration): Check main_input_filename
15387         and DECL_SOURCE_FILE are not NULL.
15389 2016-02-23  Martin Jambor  <mjambor@suse.cz>
15391         PR tree-optimization/69666
15392         * tree-sra.c (sra_modify_assign): Do not attempt to create
15393         default_def replacements for unscalarizable regions.
15395 2016-02-20  Mark Wielaard  <mjw@redhat.com>
15397         PR c/28901
15398         * cgraphunit.c (check_global_declaration): Check level of
15399         warn_unused_const_variable and main_input_filename.
15400         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
15401         (-Wunused-variable): For C implies -Wunused-const-variable=1.
15402         (-Wunused-const-variable): Explain levels 1 and 2.
15404 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
15406         PR target/69888
15407         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
15408         identical arguments.  Formatting and spelling fixes.
15410         PR target/69885
15411         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
15412         be specified.
15414         PR target/69894
15415         PR target/69895
15416         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
15417         and m68k-devices.def.
15418         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
15419         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
15421 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
15423         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
15424         and HImode registers.
15426 2016-02-22  Richard Biener  <rguenther@suse.de>
15428         PR tree-optimization/69882
15429         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
15430         preserve permutations present because of gaps.
15431         (vect_supported_load_permutation_p): Always continue checking
15432         permutations after vect_attempt_slp_rearrange_stmts.
15434 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
15436         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
15437         min_profitable_estimate, rather than min_profitable_iters.
15439 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
15441         PR target/69885
15442         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
15443         SImode for last match_operand.
15445 2016-02-22  Martin Liska  <mliska@suse.cz>
15447         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
15448         return bitsize - 1 as the return value.
15450 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
15452         PR target/69806
15453         PR target/54089
15454         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
15455         Handle negative shift counts.
15456         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
15457         force_reg on the shift constant.
15458         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
15459         (lshrsi3_d): Handle negative shift counts.
15461 2016-02-22  Richard Biener  <rguenther@suse.de>
15462             Tom de Vries  <tom@codesourcery.com>
15464         * graph.c: Include dumpfile.h.
15465         (print_graph_cfg): Split into three overloads.
15466         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
15468 2016-02-22  Tom de Vries  <tom@codesourcery.com>
15470         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
15471         dump-fn.
15473 2016-02-22  Richard Biener  <rguenther@suse.de>
15475         PR ipa/37448
15476         * ipa-inline-transform.c (inline_call): When not updating
15477         overall summaries adjust self size by the growth estimate.
15478         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
15479         hash-set, do not update overall summaries here.  Renamed from ...
15480         (inline_to_all_callers): ... this which is now wrapping the
15481         above and performing delayed overall summary update.
15482         (early_inline_small_functions): Delay updating of the overall
15483         summary.
15485 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15487         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
15488         variable.
15490 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
15492         PR driver/69805
15493         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
15494         :%* in %:gt() argument.
15495         (greater_than_spec_func): Adjust for expecting only numbers,
15496         if there are more than two numbers, compare the last two.
15498 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
15500         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
15501         -Wnarrowing with -std.
15503 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
15505         PR c++/69851
15506         * expr.c (store_field): Don't use bit-field path if exp is
15507         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
15508         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
15509         and the assignment can be performed by bitwise copy.  Formatting
15510         fix.
15512         PR middle-end/69838
15513         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
15514         call copy_reg_eh_region_note_forward on before and/or after sequences
15515         and remove note from insn if it no longer can throw.
15517         PR target/69820
15518         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
15519         if TARGET_AVX512BW.
15521 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15523         * config/s390/vector.md: Add missing commutative operand markers
15524         to the patterns which qualify for one.
15525         * config/s390/vx-builtins.md: Likewise.
15527 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15529         * config/s390/vector.md (VI, VI_QHS): Add single element vector
15530         types to mode iterators.
15531         (vec_double): ... and mode attribute.
15532         * config/s390/vx-builtins.md (non_vec_int): Likewise.
15534 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15536         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
15537         Change the predicate of op2 from nonimmediate to general and let
15538         reload fix it if necessary.
15540 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15542         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
15544 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15546         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
15547         mode.
15549 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15551         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
15552         * config/s390/s390.c (s390_expand_vec_movstr): New function.
15553         * config/s390/s390.md ("movstr<P:mode>"): Call
15554         s390_expand_vec_movstr.
15556 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15558         * config/s390/s390.md: Add missing output modifier for operand 1
15559         to print it as address properly.
15561 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15563         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
15564         * config/s390/2964.md: New file.
15565         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
15566         of insn grouping attributes depending on the CPU level.
15567         (s390_get_unit_mask): New function.
15568         (s390_sched_score): Remove the OOO from the scheduling macros.
15569         Add loop to calculate a score for the instruction mix.
15570         (s390_sched_reorder): Likewise plus improve debug output.
15571         (s390_sched_variable_issue): Rename macros as above.  Calculate
15572         the unit distances after actually scheduling an insn.  Improve
15573         debug output.
15574         (s390_sched_init): Clear last_scheduled_unit_distance array.
15575         * config/s390/s390.md: Include 2964.md.
15577 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
15579         PR target/69671
15580         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
15581         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
15582         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
15583         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
15584         *avx512f_<code>v8div16qi2_mask_1): New insns.
15586 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15588         PR target/68404
15589         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
15590         2016-02-09 change.
15592         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
15593         earlyclobber from target.  Use wF constraint for fused memory
15594         address.
15595         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
15597 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
15598             Martin Liska  <mliska@suse.cz>
15600         PR sanitizer/69863
15601         * cfgexpand.c (asan_sanitize_stack_p): New function.
15602         (partition_stack_vars): Use the function.
15603         (expand_stack_vars): Likewise.
15604         (defer_stack_allocation): Likewise.
15605         (expand_used_vars): Likewise.
15607 2016-02-18  Richard Biener  <rguenther@suse.de>
15609         PR middle-end/69553
15610         * fold-const.c (operand_equal_p): Properly compare offsets for
15611         IMAGPART_EXPR and ARRAY_REF.
15613 2016-02-18  Nick Clifton  <nickc@redhat.com>
15615         PR target/62254
15616         PR target/69610
15617         * config/arm/arm.c (arm_option_override_internal): Disable
15618         interworking if the target does not support thumb instructions.
15619         (arm_reload_in_hi): Handle the case where a register to register
15620         move needs reloading because there is no simple pattern to handle
15621         it.
15622         (arm_reload_out_hi): Likewise.
15624 2016-02-18  Richard Biener  <rguenther@suse.de>
15626         PR middle-end/69854
15627         * match.pd: Don't use fold_binary or fold_unary for folding
15628         constants.
15630 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
15632         PR c++/69850
15633         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
15634         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
15635         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
15636         warn on gimple_no_warning_p statements.
15638 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
15640         * doc/extend.texi (C++ Attributes): Correct description of
15641         warn_unused type attribute.
15643 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15645         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
15646         correct instruction.
15648 2016-02-17  Richard Biener  <rguenther@suse.de>
15650         PR rtl-optimization/69609
15651         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
15652         (find_traces_1_round): When ending a trace update cached priority
15653         of successors.
15654         (bb_to_key): Use cached priority when available.
15655         (copy_bb): Initialize cached priority.
15656         (reorder_basic_blocks_software_trace_cache): Likewise.
15658 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15660         PR target/69161
15661         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
15662         New predicate.
15663         (aarch64_comparison_operator): Break overly long line into two.
15664         (aarch64_comparison_operation): Likewise.
15665         * config/aarch64/aarch64.md (cstorecc4): Use
15666         aarch64_comparison_operator_mode instead of
15667         aarch64_comparison_operator.
15668         (cstore<mode>4): Likewise.
15669         (aarch64_cstore<mode>): Likewise.
15670         (*cstoresi_insn_uxtw): Likewise.
15671         (cstore<mode>_neg): Likewise.
15672         (*cstoresi_neg_uxtw): Likewise.
15674 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15676         PR target/69161
15677         * config/arm/predicates.md (arm_comparison_operator_mode):
15678         New predicate.
15679         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
15680         instead of arm_comparison_operator.
15681         (*mov_negscc): Likewise.
15682         (*mov_notscc): Likewise.
15683         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
15684         (*thumb2_mov_negscc): Likewise.
15685         (*thumb2_mov_negscc_strict_it): Likewise.
15686         (*thumb2_mov_notscc): Likewise.
15687         (*thumb2_mov_notscc_strict_it): Likewise.
15689 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
15691         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
15692         Add missing return.
15694 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
15696         * config/visium/visium.c (machine_libfunc_index): New enum.
15697         (machine_libfuncs): New structure.
15698         (visium_libfuncs): New static variable.
15699         (TARGET_INIT_LIBFUNCS): Define to...
15700         (visium_init_libfuncs): ...this.  New function.
15701         (expand_block_move_4): Use the appropriate libfunc.
15702         (expand_block_move_2): Likewise.
15703         (expand_block_move_1): Likewise.
15704         (expand_block_set_4): Likewise.
15705         (expand_block_set_2): Likewise.
15706         (expand_block_set_1): Likewise.
15707         (visium_trampoline_init): Likewise.
15709 2016-02-17  Nick Clifton  <nickc@redhat.com>
15711         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
15712         TI's devices.csv file as of March 2016.
15714 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15716         PR Target/48344
15717         * opts-global.c (handle_common_deferred_options): Introduce and
15718         initialize two global variables to remember command-line options
15719         specifying a stack-limiting register.
15720         * opts.h: Add extern declarations of the two new global variables.
15721         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
15722         variable based on the values of the two new global variables.
15724 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15726         PR c/69835
15727         * common.opt (Wnonnull-compare): New warning.
15728         * doc/invoke.texi (-Wnonnull): Remove text about comparison
15729         of arguments against NULL.
15730         (-Wnonnull-compare): Document.
15731         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
15732         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
15733         * passes.def (pass_warn_nonnull_compare): Add.
15734         * gimple-ssa-nonnull-compare.c: New file.
15736 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15738         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
15739         AARCH64_EXTRA_TUNE_RECIP_SQRT.
15741 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15743         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
15744         reciprocal sqrt for -mlow-precision-recip-sqrt.
15746 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15747             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15749         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
15750         always use lane loads to construct non-constant vectors.
15752 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
15754         * config/aarch64/aarch64.md
15755         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
15756         constraints for operand 3.
15757         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
15759 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15760             Richard Biener  <rguenther@suse.de>
15762         PR tree-optimization/69820
15763         * tree-vect-patterns.c (type_conversion_p): Return false if
15764         *orig_type is unsigned single precision or boolean.
15765         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
15766         Formatting fix.
15768 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15770         PR rtl-optimization/69764
15771         PR rtl-optimization/69771
15772         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
15773         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
15775 2016-02-16  Richard Biener  <rguenther@suse.de>
15777         PR tree-optimization/69776
15778         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
15779         sets from caller.
15780         (indirect_refs_may_alias_p): Likewise.
15781         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
15782         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
15783         according to tbaa_p.
15784         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
15785         (optimize_stmt): For redundant store discovery do not allow tbaa.
15787 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
15789         PR tree-optimization/69714
15790         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
15791         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
15793 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
15795         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
15796         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
15797         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
15798         * config/arc/arc.c (arc_init): Check FPU options.
15799         (get_arc_condition_code): Handle new CC_FPU* modes.
15800         (arc_select_cc_mode): Likewise.
15801         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
15802         register pair only. Allow access for ARCv2 accumulator.
15803         (gen_compare_reg): Whenever we have FPU support use FPU compare
15804         instructions.
15805         (arc_reorg): Don't generate brcc insns when FPU compare
15806         instructions are involved.
15807         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
15808         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
15809         floating point emulation.
15810         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
15811         (REVERSE_CONDITION): Add new CC_FPU* modes.
15812         (TARGET_FP_SP_BASE): Define.
15813         (TARGET_FP_DP_BASE): Likewise.
15814         (TARGET_FP_SP_FUSED): Likewise.
15815         (TARGET_FP_DP_FUSED): Likewise.
15816         (TARGET_FP_SP_CONV): Likewise.
15817         (TARGET_FP_DP_CONV): Likewise.
15818         (TARGET_FP_SP_SQRT): Likewise.
15819         (TARGET_FP_DP_SQRT): Likewise.
15820         (TARGET_FP_DP_AX): Likewise.
15821         * config/arc/arc.md (ARCV2_ACC): New constant.
15822         (type): New fpu type attribute.
15823         (SDF): Conditional iterator.
15824         (cstore<mode>, cbranch<mode>): Change expand condition.
15825         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
15826         handles FPU/FPX cases as well.
15827         * config/arc/arc.opt (mfpu): New option.
15828         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
15829         Renamed.
15830         (adddf3, muldf3, subdf3): Removed.
15831         * config/arc/predicates.md (proper_comparison_operator): Recognize
15832         CC_FPU* modes.
15833         * config/arc/fpu.md: New file.
15834         * doc/invoke.texi (ARC Options): Document mfpu option.
15836 2016-02-16  Richard Biener  <rguenther@suse.de>
15838         PR rtl-optimization/69291
15839         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15840         noce_operand_ok check.
15842 2016-02-16  Tom de Vries  <tom@codesourcery.com>
15844         PR lto/67709
15845         * omp-low.c (simd_clone_create): Remove call to
15846         symtab->call_cgraph_insertion_hooks.
15848 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15850         PR tree-optimization/69802
15851         * tree-ssa-reassoc.c (update_range_test): If op is
15852         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15853         op == 1 test of precision 1 integral op, otherwise handle
15854         that case as op itself.  Fix up formatting.
15855         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15856         up formatting.
15858 2016-02-16  Richard Biener  <rguenther@suse.de>
15860         PR tree-optimization/69586
15861         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15862         types for conversion sources.
15864 2016-02-16  Richard Biener  <rguenther@suse.de>
15866         PR middle-end/69801
15867         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15868         mask OEP_ADDRESS_OF.
15870 2016-02-16  Alan Modra  <amodra@gmail.com>
15872         PR target/68973
15873         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15874         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15875         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15876         (p8_mtvsrwz): New.
15877         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15878         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15879         (p8_fmrgow_<mode>): Likewise.
15880         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
15881         changes.
15882         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15883         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15884         to use movdi_internal64.  Remove op0_di.
15885         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15887 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
15889         Add support for the FCCMP insn types
15891         * config/aarch64/aarch64.md (fccmp): Change insn type.
15892         (fccmpe): Likewise.
15893         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15894         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15895         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15896         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15897         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15898         * config/arm/types.md (fccmps): Add new insn type.
15899         (fccmpd): Likewise.
15901 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15903         * alias.c (get_alias_set): Fix a typo in comment.
15905 2016-02-15  Richard Biener  <rguenther@suse.de>
15907         PR tree-optimization/69595
15908         * match.pd: Complete range test simplification to true.
15910 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
15912         PR rtl-optimization/69648
15913         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15914         pic_offset_table_rtx.
15916         PR rtl-optimization/69752
15917         * ira.c (update_equiv_regs): When looking for more than a single SET,
15918         also take other side effects into account.
15920 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15922         * config/s390/s390.c (s390_function_profiler): Add a new sequence
15923         for z900+ CPUs in 31-bit mode.
15925 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15927         * common/config/s390/s390-common.c (s390_supports_split_stack):
15928         New function.
15929         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15930         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15931         * config/s390/s390.c (struct machine_function): New field
15932         split_stack_varargs_pointer.
15933         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15934         in s390_emit_prologue.
15935         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15936         vararg pointer.
15937         (morestack_ref): New global.
15938         (SPLIT_STACK_AVAILABLE): New macro.
15939         (s390_expand_split_stack_prologue): New function.
15940         (s390_live_on_entry): New function.
15941         (s390_va_start): Use split-stack vararg pointer if appropriate.
15942         (s390_asm_file_end): Emit the split-stack note sections.
15943         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15944         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15945         (UNSPECV_SPLIT_STACK_CALL): New unspec.
15946         (UNSPECV_SPLIT_STACK_DATA): New unspec.
15947         (split_stack_prologue): New expand.
15948         (split_stack_space_check): New expand.
15949         (split_stack_data): New insn.
15950         (split_stack_call): New expand.
15951         (split_stack_call_*): New insn.
15952         (split_stack_cond_call): New expand.
15953         (split_stack_cond_call_*): New insn.
15955 2016-02-15  Richard Biener  <rguenther@suse.de>
15957         PR tree-optimization/69783
15958         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15959         Add trivially correct cases.
15961 2016-02-15  Tom de Vries  <tom@codesourcery.com>
15963         PR lto/69655
15964         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15965         do_force_output.
15966         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15968 2016-02-15  Richard Biener  <rguenther@suse.de>
15970         PR tree-optimization/69776
15971         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15972         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15973         indicate whether we can use TBAA to disambiguate against stores.
15974         Use alias-set zero if not.
15975         (visit_reference_op_store): Do not use TBAA when looking up
15976         redundant stores.
15977         * tree-ssa-pre.c (compute_avail): Use TBAA here.
15978         (eliminate_dom_walker::before_dom_children): But not when looking
15979         up redundant stores.
15981 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
15983         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15985 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15987         *  config/i386/znver1.md
15988         (znver1_pop, znver1_pop_mem,
15989         znver1_load_imov_double_store,
15990         znver1_load_imov_direct_store,
15991         znver1_load_imov_direct_load,
15992         znver1_load_imov_double_load): Add new.
15993         (znver1_insn, znver1_insn_load): Add icmov type.
15994         (znver1_sseavx_fma,
15995         znver1_sseavx_fma_load,
15996         znver1_avx256_fma,
15997         znver1_avx256_fma_load): Fix pipe usage.
15999 2016-02-14  Alan Modra  <amodra@gmail.com>
16001         PR target/68973
16002         * reload.c (find_reloads_address_1): For pre/post-inc/dec
16003         with an invalid hard reg, reload just the reg not the entire
16004         pre/post-inc/dec address expression.
16006 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
16008         PR target/67260
16009         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
16010         fixed R1_REG scratch reg.
16011         (sibcall_value_pcrel_fdpic): Likewise.
16013 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
16015         PR target/67636
16016         PR target/64345
16017         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
16019 2016-02-12  Walter Lee  <walt@tilera.com>
16021         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
16022         * config/tilegx/t-tilegx: Likewise.
16024 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
16026         PR other/69554
16027         * diagnostic-show-locus.c (struct line_span): New struct.
16028         (layout::get_first_line): Delete.
16029         (layout::get_last_line): Delete.
16030         (layout::get_num_line_spans): New member function.
16031         (layout::get_line_span): Likewise.
16032         (layout::print_heading_for_line_span_index_p): Likewise.
16033         (layout::get_expanded_location): Likewise.
16034         (layout::calculate_line_spans): Likewise.
16035         (layout::m_first_line): Delete.
16036         (layout::m_last_line): Delete.
16037         (layout::m_line_spans): New field.
16038         (layout::layout): Update comment.  Replace m_first_line and
16039         m_last_line with m_line_spans, replacing their initialization
16040         with a call to calculate_line_spans.
16041         (diagnostic_show_locus): When printing source lines and
16042         annotations, rather than looping over a single span
16043         of lines, instead loop over each line_span within
16044         the layout, with an inner loop over the lines within them.
16045         Call the context's start_span callback when changing line spans.
16046         * diagnostic.c (diagnostic_initialize): Initialize start_span.
16047         (diagnostic_build_prefix): Break out the building of the location
16048         part of the string into...
16049         (diagnostic_get_location_text): ...this new function, rewriting
16050         it from nested ternary expressions to a sequence of "if"
16051         statements.
16052         (default_diagnostic_start_span_fn): New function.
16053         * diagnostic.h (diagnostic_start_span_fn): New typedef.
16054         (diagnostic_context::start_span): New field.
16055         (default_diagnostic_start_span_fn): New prototype.
16057 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
16059         PR driver/69779
16060         * gcc.c (driver::finalize): Fix cleanup of "specs".
16062 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
16064         PR driver/69265
16065         PR driver/69453
16066         * gcc.c (driver::driver): Initialize m_option_suggestions.
16067         (driver::~driver): Clean up m_option_suggestions.
16068         (suggest_option): Convert to...
16069         (driver::suggest_option): ...this, and split out into
16070         driver::build_option_suggestions and find_closest_string.
16071         (driver::build_option_suggestions): New function, from
16072         first half of suggest_option.  Special-case
16073         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
16074         the sanitizer_opts array.  For options of enum types, add the
16075         various enum values to the candidate strings.
16076         (driver::handle_unrecognized_options): Remove "const".
16077         * gcc.h (driver::handle_unrecognized_options): Likewise.
16078         (driver::build_option_suggestions): New decl.
16079         (driver::suggest_option): New decl.
16080         (driver::m_option_suggestions): New field.
16081         * opts-common.c (add_misspelling_candidates): New function.
16082         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
16083         and make non-static.
16084         * opts.h (sanitizer_opts): New array decl.
16085         (add_misspelling_candidates): New function decl.
16086         * spellcheck.c (find_closest_string): New function.
16087         * spellcheck.h (find_closest_string): New function decl.
16089 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
16091         PR rtl-optimization/69764
16092         PR rtl-optimization/69771
16093         * optabs.c (expand_binop_directly): For shift_optab_p, force
16094         convert_modes with VOIDmode if xop1 has VOIDmode.
16096 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
16098         PR target/69729
16099         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
16100         to correctly determine instrumentation thunks.
16102 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
16104         PR ipa/69241
16105         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
16106         type by reference, force lhs on the call.
16108         PR ipa/68672
16109         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
16110         Compute retval and retbnd early in all cases if split_part_return_p
16111         and return_bb is not EXIT.  Remove all clobber stmts and reset
16112         all debug stmts that refer to SSA_NAMEs defined in split part,
16113         except if it is retval, in that case replace the old retval with the
16114         lhs of the call to the split part.
16116 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16118         revert:
16119         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16121         PR middle-end/66726
16122         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
16123         whose result is used in PHI.
16124         (maybe_optimize_range_tests): Likewise.
16125         (final_range_test_p): Likweise.
16127 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16129         PR middle-end/66726
16130         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
16131         whose result is used in PHI.
16132         (maybe_optimize_range_tests): Likewise.
16133         (final_range_test_p): Likweise.
16135 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
16137         * cgraph.c: Spelling fixes - behaviour -> behavior and
16138         neighbour -> neighbor.
16139         * target.def: Likewise.
16140         * sel-sched.c: Likewise.
16141         * config/mips/mips.c: Likewise.
16142         * config/arc/arc.md: Likewise.
16143         * config/arm/cortex-a57.md: Likewise.
16144         * config/arm/arm.c: Likewise.
16145         * config/arm/neon.md: Likewise.
16146         * config/arm/arm-c.c: Likewise.
16147         * config/vms/vms-c.c: Likewise.
16148         * config/s390/s390.c: Likewise.
16149         * config/i386/znver1.md: Likewise.
16150         * config/i386/i386.c: Likewise.
16151         * config/ia64/hpux-unix2003.h: Likewise.
16152         * config/msp430/msp430.md: Likewise.
16153         * config/rx/rx.c: Likewise.
16154         * config/rx/rx.md: Likewise.
16155         * config/aarch64/aarch64-simd.md: Likewise.
16156         * config/aarch64/aarch64.c: Likewise.
16157         * config/nvptx/nvptx.c: Likewise.
16158         * config/bfin/bfin.c: Likewise.
16159         * config/cris/cris.opt: Likewise.
16160         * config/rs6000/rs6000.c: Likewise.
16161         * target.h: Likewise.
16162         * spellcheck.c: Likewise.
16163         * ira-build.c: Likewise.
16164         * tree-inline.c: Likewise.
16165         * builtins.c: Likewise.
16166         * lra-constraints.c: Likewise.
16167         * explow.c: Likewise.
16168         * hwint.h: Likewise.
16169         * targhooks.c: Likewise.
16170         * tree-vect-data-refs.c: Likewise.
16171         * expr.c: Likewise.
16172         * doc/tm.texi: Likewise.
16173         * doc/extend.texi: Likewise.
16174         * doc/install.texi: Likewise.
16175         * doc/md.texi: Likewise.
16176         * tree-ssa-tail-merge.c: Likewise.
16177         * sched-int.h: Likewise.
16178         * match.pd: Likewise.
16179         * sched-ebb.c: Likewise.
16180         * target.def (omit_struct_return_reg): Likewise.
16181         * gimple-ssa-isolate-paths.c: Likewise.
16182         (find_implicit_erroneous_behaviour): Renamed to...
16183         (find_implicit_erroneous_behavior): ... this.
16184         (find_explicit_erroneous_behaviour): Renamed to...
16185         (find_explicit_erroneous_behavior): ... this.
16186         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
16188 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
16190         PR rtl-optimization/64682
16191         PR rtl-optimization/69567
16192         PR rtl-optimization/69737
16193         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
16194         in I2 as well, just lose it.
16196 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16198         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
16199         New variable.
16200         (aarch64_last_printed_tune_string): Likewise.
16201         (aarch64_declare_function_name): Only output .arch assembler
16202         directive if it will be different from the previously output
16203         directive.  Same for .tune comment but only if -dA is set.
16204         (aarch64_start_file): New function.
16205         (TARGET_ASM_FILE_START): Define.
16207 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
16209         PR plugins/69758
16210         * Makefile.in (PLUGIN_HEADERS): Add params.list.
16212 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
16214         PR target/65313
16215         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
16216         -Wmaybe-uninitialized warning.
16218 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
16220         PR target/69713
16221         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
16223 2016-02-11  Richard Biener  <rguenther@suse.de>
16225         PR rtl-optimization/69291
16226         * ifcvt.c (noce_try_store_flag_constants): Do not allow
16227         subexpressions affected by changing the result.
16229 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
16231         PR target/69148
16232         * lra-constraints.c (curr_insn_transform): Find in/out operands
16233         for secondary memory moves.  Update dups.
16235 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
16237         PR tree-optimization/69652
16238         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
16239         to nested loop, did source re-formatting, skip debug statements,
16240         add check on statement with volatile operand, remove dead scalar
16241         statements.
16243 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
16244             Patrick Palka  <ppalka@gcc.gnu.org>
16246         PR ipa/69241
16247         PR c++/69649
16248         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
16249         calls if the return type is TREE_ADDRESSABLE.
16250         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
16251         * ipa-split.c (split_function): Fix doubled "we" in comment.
16252         Use void return type for the split part even if
16253         !split_point->split_part_set_retval.
16255 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
16257         PR tree-optimization/68021
16258         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
16259         when computing the value of biv cand by itself.
16261 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
16263         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
16264         (cortexa57_tunings): Likewise.
16265         (cortexa72_tunings): Likewise.
16266         (arch_macro_fusion_pair_p): Add support for AES fusion.
16267         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
16268         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
16269         Allow virtual registers before reload so early scheduling works.
16270         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
16271         correct latency and pipeline.
16272         (cortex_a57_crypto_complex): Likewise.
16273         (cortex_a57_crypto_xor): Likewise.
16274         (define_bypass): Add AES bypass.
16276 2016-02-10  Richard Biener  <rguenther@suse.de>
16278         PR tree-optimization/69726
16279         * passes.def: Add DCE pass before late uninit.
16280         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
16281         really fixup if-conversions job.
16283 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
16285         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
16286         (arm_cortex_a57_tune): Likewise.
16287         (aarch_macro_fusion_pair_p): Add support for AES fusion.
16288         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
16290 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
16292         * timevar.def (TV_PHASE_DBGINFO): Delete.
16293         (TV_PHASE_CHECK_DBGINFO): Likewise.
16294         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
16296 2016-02-10  Richard Biener  <rguenther@suse.de>
16298         PR tree-optimization/69719
16299         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16300         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
16302 2016-02-09  Andrew Pinski  <apinski@cavium.com>
16304         PR tree-opt/69282
16305         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
16306         get_vcond_mask_icode returns false.
16308 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16310         PR target/68404
16311         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
16312         an ADDIS that adds a pointer to a large constant that sets the
16313         upper16 bits with a load operation.
16315 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
16317         PR target/68532
16318         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
16319         order.
16320         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
16321         endian.
16322         (vzipq_s16): Likewise.
16323         (vzipq_s32): Likewise.
16324         (vzipq_f32): Likewise.
16325         (vzipq_u8): Likewise.
16326         (vzipq_u16): Likewise.
16327         (vzipq_u32): Likewise.
16328         (vzipq_p8): Likewise.
16329         (vzipq_p16): Likewise.
16331 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
16333         PR target/68532
16334         * config/arm/arm.c (neon_endian_lane_map): New function.
16335         (neon_vector_pair_endian_lane_map): New function.
16336         (arm_evpc_neon_vuzp): Allow for big endian lane order.
16337         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
16338         endian.
16339         (vuzpq_s16): Likewise.
16340         (vuzpq_s32): Likewise.
16341         (vuzpq_f32): Likewise.
16342         (vuzpq_u8): Likewise.
16343         (vuzpq_u16): Likewise.
16344         (vuzpq_u32): Likewise.
16345         (vuzpq_p8): Likewise.
16346         (vuzpq_p16): Likewise.
16348 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
16350         PR target/69634
16351         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
16352         debug insns.
16354 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
16356         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
16357         truncate const_int operand 1 to QImode.
16359 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
16361         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
16362         corresponding to an abnormal edge.
16364 2016-02-09  Tom de Vries  <tom@codesourcery.com>
16366         PR tree-optimization/69599
16367         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
16368         function.
16369         (find_func_aliases_for_builtin_call, find_func_clobbers)
16370         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
16371         partition.
16373 2016-02-09  Richard Biener  <rguenther@suse.de>
16375         PR tree-optimization/69715
16376         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
16377         LHS on calls as non-rewritable.
16379 2016-02-09  Tom de Vries  <tom@codesourcery.com>
16381         PR lto/69707
16382         * lto-wrapper.c (append_diag_options): New function.
16383         (compile_offload_image): Call append_diag_options.
16385 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
16387         PR other/69722
16388         * doc/extend.texi (Flag Output Operands): Correct sectioning.
16389         Minor copy-edit to fix verb tenses.
16391 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
16393         PR tree-optimization/69209
16394         * ipa-split.c (split_function): If split part is not
16395         returning retval, retval has gimple type but is not
16396         gimple value, force it into a SSA_NAME first.
16398 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
16400         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
16401         outdated section.
16403 2016-02-08  Jason Merrill  <jason@redhat.com>
16405         PR c++/69631
16406         * convert.c (convert_to_integer_1): Check dofold on truncation
16407         distribution.
16408         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
16409         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
16410         Rename from *_nofold.
16411         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
16412         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
16414 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
16416         PR target/60410
16417         * tree.c (build_common_tree_nodes): Remove short_double argument.
16418         All callers changed.
16419         * tree.h (build_common_tree_nodes): Adjust declaration.
16420         * doc/invoke.texi (-fshort-double): Remove documentation.
16421         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16422         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
16423         * lto-wrapper.c (merge_and_complain, append_compiler_options)
16424         (append_linker_options): Don't handle OPT_fshort_double.
16426         PR rtl-optimization/68730
16427         * lra-remat.c (insn_to_cand_activation): New static variable.
16428         (lra_remat): Allocate and free it.
16429         (create_cand): New arg activation. Initialize a field in
16430         insn_to_cand_activation if it is nonnull.
16431         (create_cands): Pass the activation insn to create_cand when making
16432         a candidate involving an output reload.  Reorganize code a little.
16433         (do_remat): Keep track of active status of candidates in a separate
16434         bitmap.
16436 2016-02-08  Richard Biener  <rguenther@suse.de>
16438         PR tree-optimization/69719
16439         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16440         Properly use absolute of the difference of the two offsets to
16441         compare or adjust the segment length.
16443 2016-02-08  Richard Biener  <rguenther@suse.de>
16444             Jeff Law  <law@redhat.com>
16446         PR target/68273
16447         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
16448         types for anonymous SSA names.
16450 2016-02-08   Richard Biener  <rguenther@suse.de>
16452         PR rtl-optimization/69274
16453         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
16455 2016-02-08  Jeff Law  <law@redhat.com>
16457         PR tree-optimization/65917
16458         * tree-ssa-dom.c (record_temporary_equivalences): Record both
16459         equivalences from if (x == y) style conditionals.
16460         (loop_depth_of_name): Remove.
16461         (record_equality): Remove loop depth check.
16462         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
16463         (const_and_copies::record_const_or_copy_raw): New member function.
16464         * tree-ssa-scopedtables.c
16465         (const_and_copies::record_const_or_copy_raw): New, factored out of
16466         (const_and_copies::record_const_or_copy): Call new member function.
16468 2016-02-05  Jeff Law  <law@redhat.com>
16470         PR tree-optimization/68541
16471         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
16472         (count_stmts_in_block): New function.
16473         (poor_ifcvt_candidate_code): Likewise.
16474         (is_feasible_trace): Add some heuristics to determine when path
16475         splitting is profitable.
16476         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
16477         is a diamond with a single exit.
16479 2016-02-05  Martin Sebor  <msebor@redhat.com>
16481         PR c++/69662
16482         * doc/invoke.texi: Update -Wplacement-new to take an optional
16483         argument.
16485 2016-02-06  Richard Henderson  <rth@redhat.com>
16487         PR c/69643
16488         * tree.c (tree_nop_conversion_p): Do not strip casts into or
16489         out of non-standard address spaces.
16491 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
16493         PR rtl-optimization/69691
16494         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
16496 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
16498         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
16499         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
16500         (*ieee128_mfvsrd_64bit): Likewise.
16501         (*ieee128_mfvsrd_32bit): Likewise.
16503 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
16505         PR target/69369
16506         Revert r232560:
16507         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16509         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16510         instrumented_version.
16512 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
16514         * doc/invoke.texi (Optimize Options): In table of --param options
16515         rename second occurrence of tracer-min-branch-ratio to
16516         tracer-min-branch-probability, rename
16517         tracer-min-branch-ratio-feedback to
16518         tracer-min-branch-probability-feedback and clarify description,
16519         rename sched-spec-state-edge-prob-cutoff to
16520         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
16521         to selsched-insns-to-rename, rename lto-minpartition to
16522         lto-min-partition, delete reorder-blocks-duplicate and
16523         reorder-blocks-duplicate-feedback.
16525 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16527         * config/s390/s390.c (s390_register_info_set_ranges): Remove
16528         superfluous loops.
16530 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16532         * doc/extend.texi: S/390: Correct some typos.
16534 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16536         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
16538 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16540         PR target/69625
16541         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
16542         (s390_register_info_gprtofpr): Use new macros above.
16543         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
16544         its name.
16545         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
16546         its name.  Adjust restore and save gpr ranges.
16547         (s390_register_info_set_ranges): New function.
16548         (s390_register_info): Use new macros above.  Call
16549         s390_register_info_set_ranges.
16550         (s390_optimize_register_info): Likewise.
16551         (s390_hard_regno_rename_ok): Use new macros.
16552         (s390_hard_regno_scratch_ok): Likewise.
16553         (s390_emit_epilogue): Likewise.
16554         (s390_can_use_return_insn): Likewise.
16555         (s390_optimize_prologue): Likewise.
16556         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
16558 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
16560         PR bootstrap/69677
16561         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
16562         alignment fixes.
16563         (ix86_option_override_internal): Disable TARGET_STV even for
16564         -m{incoming,preferred}-stack-boundary=3.
16566 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16568         * config.gcc: Mark deprecated rtems targets as obsolete.
16570 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
16572         PR rtl-optimization/64682
16573         PR rtl-optimization/69567
16574         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
16575         before I2 only if the register is both used and set in I2.
16577 2016-02-04  DJ Delorie  <dj@redhat.com>
16579         * config/msp430/msp430.c (msp430_start_function): Add function type.
16581 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
16583         PR fortran/69368
16584         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
16586 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
16588         PR rtl-optimization/69577
16589         Revert:
16590         2015-10-29  Richard Henderson  <rth@redhat.com>
16592         PR target/68124
16593         PR rtl-opt/67609
16594         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
16595         sse check to the exact conditions of PR 67609.
16597 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16599         PR target/69667
16600         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
16601         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
16602         not allowed into the traditional Altivec registers.
16603         (movtd_64bit_nodm): Likewise.
16604         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16606 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
16608         * config/aarch64/cortex-a57-fma-steering.c
16609         (aarch64_register_fma_steering): Remove "static" from arguments
16610         to register_pass.
16612 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
16614         PR target/69619
16615         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
16616         twice when complex.
16618 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
16620         * doc/invoke.texi: Delete -mno-fma4.
16622 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
16624         PR rtl-optimization/69577
16625         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
16626         (find_subregs_of_mode): Update accordingly.  Iterate over partial
16627         definitions.
16629 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
16631         * config/arm/arm-protos.h (neon_reinterpret): Remove.
16632         * config/arm/arm.c (neon_reinterpret): Remove.
16633         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
16634         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
16635         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
16636         vreinterpretti): Remove.
16637         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
16638         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16639         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
16640         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
16641         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
16642         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
16643         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
16644         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
16645         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
16646         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
16647         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
16648         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
16649         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
16650         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
16651         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
16652         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
16653         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
16654         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
16655         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
16656         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
16657         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
16658         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
16659         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
16660         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
16661         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
16662         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
16663         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
16664         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
16665         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
16666         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
16667         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
16668         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
16669         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
16670         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
16671         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
16672         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
16673         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
16674         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
16675         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
16676         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
16677         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
16678         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
16679         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
16680         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
16681         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
16682         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
16683         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
16684         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
16685         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
16686         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
16687         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
16688         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
16689         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
16690         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
16691         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
16692         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
16693         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
16694         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
16695         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
16696         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
16697         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
16698         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
16699         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
16700         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
16701         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
16702         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
16703         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
16704         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
16705         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
16706         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
16707         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
16708         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
16709         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
16710         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
16711         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
16712         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
16713         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
16714         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
16715         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
16716         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
16717         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
16718         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
16719         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
16720         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
16721         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
16722         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
16723         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
16724         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
16725         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
16726         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
16727         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
16728         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
16729         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
16730         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
16731         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
16732         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
16733         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
16734         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
16735         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
16736         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
16737         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
16738         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
16739         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
16741 2016-02-04  Martin Liska  <mliska@suse.cz>
16743         PR sanitizer/69276
16744         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
16745         that are gimple_store_p.
16746         (maybe_instrument_call): Likewise.
16748 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
16750         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
16751         register scaling out of memory reference and comment why.
16753 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16755         PR target/65932
16756         PR target/67714
16757         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
16758         folding the source of a SET.
16760 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16762         PR target/65932
16763         PR target/67714
16764         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
16765         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
16767 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
16769         PR target/65932
16770         PR target/67714
16771         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
16772         HImode.
16774 2016-02-04  Christian Bruel  <christian.bruel@st.com>
16776         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
16777         * config/arm/arm.c (arm_set_current_function): Likewise.
16779 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
16780             Ilya Enkovich  <enkovich.gnu@gmail.com>
16781             H.J. Lu  <hongjiu.lu@intel.com>
16783         PR target/69454
16784         * config/i386/i386.c (convert_scalars_to_vector): Remove
16785         stack alignment fixes.
16786         (ix86_option_override_internal): Disable TARGET_STV if stack
16787         might not be aligned enough.
16788         (ix86_minimum_alignment): Assert that TARGET_STV is false.
16790 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
16792         * config/i386/x86-tune.def: Disable default prefetching
16793         for -march=znver1.
16795 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16796             Vladimir Makarov  <vmakarov@redhat.com>
16798         PR target/69461
16799         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
16800         in validating fused toc addresses.
16802 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
16804         PR c/69627
16805         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
16806         range->m_caret fields if range->m_show_caret_p is false.
16808         PR target/69644
16809         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16810         Force oldval into register if it does not satisfy reg_or_short_operand
16811         predicate.  Fix up formatting.
16813 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16814             Alexandre Oliva  <aoliva@redhat.com>
16816         PR target/69461
16817         * lra-constraints.c (simplify_operand_subreg): Check additionally
16818         address validity after potential reloading.
16819         (process_address_1): Check insns validity.  In case of failure do
16820         nothing.
16822 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
16824         PR target/69118
16825         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
16826         Fix target.
16828 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
16830         * wide-int.cc (canonize_uhwi): New function.
16831         (wi::divmod_internal): Use it.
16833 2016-02-02  James Norris  <jnorris@codesourcery.com
16835         * gimplify.c (omp_notice_variable): Add usage check.
16837 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
16839         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16840         like LE, GE, LT, GT when emitting relational operator.
16842 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16844         * ira-costs.c (find_costs_and_classes): Add extra argument.
16845         * target.def (ira_change_pseudo_allocno_class): Add parameter.
16846         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16847         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16848         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16849         Add best_class parameter, and return it if not ALL_REGS.
16850         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16851         Add parameter.
16852         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16853         Update target hook.
16855 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16857         * config/aarch64/aarch64.c
16858         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16859         (aarch64_ira_change_pseudo_allocno_class): New function.
16861 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
16863         PR target/67032
16864         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16866 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16868         * config/avr/avr.c (avr_option_override): Set
16869         PARAM_ALLOW_STORE_DATA_RACES to 1.
16871 2016-02-02  Richard Biener  <rguenther@suse.de>
16873         PR tree-optimization/69595
16874         * match.pd: Add range test simplifications to true/false.
16876 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
16878         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16879         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16880         instead.
16882 2016-02-02  Richard Biener  <rguenther@suse.de>
16884         PR tree-optimization/69606
16885         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16886         info on the result before moving a stmt.
16888 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
16890         PR middle-end/68542
16891         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16892         branch with vector comparison.
16893         * config/i386/sse.md (VI48_AVX): New mode iterator.
16894         (define_expand "cbranch<mode>4): Add support for conditional branch
16895         with vector comparison.
16896         * tree-vect-loop.c (optimize_mask_stores): New function.
16897         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16898         has_mask_store field of vect_info.
16899         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16900         vectorized loops having masked stores after vec_info destroy.
16901         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16902         correspondent macros.
16903         (optimize_mask_stores): Add prototype.
16905 2016-02-02  Alan Modra  <amodra@gmail.com>
16907         PR target/69548
16908         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16909         allow subregs.
16911 2016-02-02  Alan Modra  <amodra@gmail.com>
16913         PR target/68662
16914         * config/rs6000/rs6000.c (need_toc_init): New var, set it
16915         whenever toc_label_name used.
16916         (rs6000_file_start): Don't set up toc section here,
16917         (rs6000_output_function_epilogue): do so here instead,
16918         (rs6000_xcoff_file_start): and here.
16919         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16920         (load_toc_aix_di): Likewise.
16922 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16924         PR rtl-optimization/69592
16925         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16926         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16927         (num_sign_bit_copies_binary_arith_p): New inline function.
16928         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16930 2016-02-01  Jeff Law  <law@redhat.com>
16932         PR tree-optimization/69580
16933         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16934         * tree-ssa-threadbackward.c
16935         (fsm_find_control_statement_thread_paths): Do not try to walk
16936         through large PHI nodes.
16938 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16940         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16941         when count is incremented above limit, don't analyze further
16942         insns afterwards.
16944         * omp-low.c (oacc_parse_default_dims): Avoid
16945         -Wsign-compare warning, make sure value fits into int
16946         rather than just unsigned int.
16948 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
16950         PR tree-optimization/67921
16951         * fold-const.c (split_tree): New parameters.  Convert pointer
16952         type variable part to proper type before negating.
16953         (fold_binary_loc): Pass new arguments to split_tree.
16955 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
16957         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16958         (nvptx_goacc_validate_dims): Extend to handle global defaults.
16959         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16960         * doc/tm.texti: Rebuilt.
16961         * doc/invoke.texi (fopenacc-dim): Document.
16962         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16963         (append_compiler_options): Likewise.
16964         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16965         (oacc_parse_default_dims): New.
16966         (oacc_validate_dims): Add USED arg.  Select non-unity default when
16967         possible.
16968         (oacc_loop_fixed_partitions): Return mask of used partitions.
16969         (oacc_loop_auto_partitions): Emit dump info.
16970         (oacc_loop_partition): Return mask of used partitions.
16971         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
16972         loop partitioning and validation calls.
16974 2016-02-01  Richard Biener  <rguenther@suse.de>
16976         PR middle-end/69556
16977         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16979 2016-02-01  Richard Biener  <rguenther@suse.de>
16981         PR tree-optimization/69574
16982         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16983         of asserting return chrec_dont_know.
16985 2016-02-01  Martin Liska  <mliska@suse.cz>
16987         * mem-stats-traits.h: Add copyright header.
16988         * mem-stats.h: Likewise.
16990 2016-02-01  Richard Biener  <rguenther@suse.de>
16992         PR tree-optimization/69579
16993         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16994         Do not propagate through abnormal PHI results.
16996 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
16998         * postreload.c (reload_cse_simplify): Remove dead code.
17000 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
17002         PR rtl-optimization/69570
17003         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
17004         if there is more than one set, not if there is a single set.
17006 2016-02-01  Richard Henderson  <rth@redhat.com>
17008         PR rtl-opt/69535
17009         * combine.c (make_compound_operation): When looking through a
17010         subreg, make sure to re-extend to the width of the outer mode.
17012 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
17014         PR tree-optimization/69546
17015         * wide-int.cc (wi::divmod_internal): For unsigned division
17016         where both operands fit into uhwi, if o1 is 1 and o0 has
17017         msb set, if divident_prec is larger than bits per hwi,
17018         clear another quotient word and return 2 instead of 1.
17019         Similarly for remainder with msb in HWI set, if dividend_prec
17020         is larger than bits per hwi.
17022 2016-01-29  Martin Jambor  <mjambor@suse.cz>
17024         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
17025         Use short lowercase names.
17026         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
17027         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
17028         acq_rel one.  Protect warning agains segfaults if
17029         get_memory_order_name returns NULL.
17030         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
17031         with release semantics.  Do not warn if get_memory_order already did.
17032         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
17033         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
17034         if get_memory_order already did.
17036 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
17038         * doc/install.texi: Document that isl-0.16 is supported.
17040 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
17042         PR target/69299
17043         * config/i386/constraints.md (Bm): Describe as special memory
17044         constraint.
17045         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
17046         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
17047         * genpreds.c (struct constraint_data): Add is_special_memory.
17048         (have_special_memory_constraints, special_memory_start): New
17049         static vars.
17050         (special_memory_end): Ditto.
17051         (add_constraint): Add new arg is_special_memory.  Add code to
17052         process its true value.  Update have_special_memory_constraints.
17053         (process_define_constraint): Pass the new arg.
17054         (process_define_register_constraint): Ditto.
17055         (choose_enum_order): Process special memory.
17056         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
17057         function insn_extra_special_memory_constraint.
17058         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
17059         * gensupport.c (process_rtx): Process
17060         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
17061         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
17062         * ira-lives.c (single_reg_class): Use
17063         insn_extra_special_memory_constraint.
17064         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
17065         * lra-constraints.c (process_alt_operands): Ditto.
17066         (curr_insn_transform): Use insn_extra_special_memory_constraint.
17067         * recog.c (asm_operand_ok, preprocess_constraints): Process
17068         CT_SPECIAL_MEMORY.
17069         * reload.c (find_reloads): Ditto.
17070         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
17071         * stmt.c (parse_input_constraint): Use
17072         insn_extra_special_memory_constraint.
17074 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
17076         PR target/69530
17077         * lra-splill.c (lra_final_code_change): Revert r229087 by
17078         removing all sub-registers.
17080 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
17082         PR target/65604
17083         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
17085 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
17087         PR target/69551
17088         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
17089         SSE1, copy target into the temporary reg first before recursing
17090         on it.
17092 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
17094         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
17095         with vm.
17097 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
17099         * ginclude/stdarg.h: Test __cplusplus instead of
17100         __GXX_EXPERIMENTAL_CXX0X__.
17102 2016-01-29  Richard Biener  <rguenther@suse.de>
17104         PR tree-optimization/69547
17105         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
17106         Do not mark clobbers necessary.
17107         (mark_all_reaching_defs_necessary_1): Likewise.
17109 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17111         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
17112         declaration name with %qs and print it in both error messages.
17113         Also fix indentation.
17115 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17117         PR other/69006
17118         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
17119         trailing blank line from error message.
17121 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
17123         PR c++/69462
17124         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
17125         for C++-11.
17127 2016-01-29  Richard Biener  <rguenther@suse.de>
17129         PR middle-end/69537
17130         * match.pd: Allow all integral types when simplifying a
17131         widening or sign-changing conversion.
17133 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
17135         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
17136         back to setting codegen_error to fail codegen.
17138 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
17140         PR target/69459
17141         * config/i386/constraints.md (C): Only accept constant zero operand.
17142         (BC): New constraint.
17143         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
17144         instead of C constraint.
17145         * doc/md.texi (Machine Constraints): Update description
17146         of C constraint.
17148 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
17150         PR target/68400
17151         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
17153 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
17155         PR middle-end/69542
17156         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
17157         non-debug insns.
17159 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
17161         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
17162         branches if using guessed profile.
17164 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
17166         * graphite-optimize-isl.c (optimize_isl): Fix dump.
17168 2016-01-28  Richard Henderson  <rth@redhat.com>
17170         PR target/69305
17171         * config/aarch64/aarch64-modes.def (CC_Cmode): New
17172         * config/aarch64/aarch64-protos.h: Update.
17173         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
17174         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
17175         (aarch64_get_condition_code_1): Handle CC_Cmode.
17176         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
17177         (*add<mode>3_compareC_cconly_imm): New.
17178         (*add<mode>3_compareC_cconly): New.
17179         (*add<mode>3_compareC_imm): New.
17180         (add<mode>3_compareC): New.
17181         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
17182         to be first.  Use aarch64_carry_operation.
17183         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
17184         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
17185         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
17186         (subti3): Use subdi3_compare1.
17187         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
17188         (sub<mode>3_compare1): New.
17189         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
17190         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
17191         (*subsi3_carryin_uxtw): Likewise.
17192         (*ngc<mode>, *ngcsi_uxtw): Likewise.
17193         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
17194         * config/aarch64/iterators.md (DWI): New.
17195         * config/aarch64/predicates.md (aarch64_carry_operation): New.
17196         (aarch64_borrow_operation): New.
17198 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
17200         * graphite-optimize-isl.c (optimize_isl): Print a different debug
17201         message when isl does not return a valid schedule.
17203 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
17205         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
17206         Remove comments from class declarations: they are already in the code
17207         close by the defs.
17209 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
17211         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
17212         codegen_error_p.
17213         (ternary_op_to_tree): Same.
17214         (unary_op_to_tree): Same.
17215         (nary_op_to_tree): Same.
17216         (gcc_expression_from_isl_expr_op): Same.
17217         (gcc_expression_from_isl_expression): Same.
17218         (graphite_create_new_loop): Same.
17219         (graphite_create_new_loop_guard): Same.
17220         (build_iv_mapping): Same.
17221         (graphite_create_new_guard): Same.
17222         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
17223         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
17225 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
17227         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
17228         instead of setting codegen_error to fail codegen.
17230 2016-01-28  Jason Merrill  <jason@redhat.com>
17232         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
17234 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
17236         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17237         Remove CONST_INT_P check in CCMP cost calculation.
17239 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
17241         * config/aarch64/aarch64.c (generic_vector_cost):
17242         Set vec_permute_cost.
17243         (cortexa57_vector_cost): Likewise.
17244         (exynosm1_vector_cost): Likewise.
17245         (xgene1_vector_cost): Likewise.
17246         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
17247         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
17248         Add vec_permute_cost entry.
17250 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
17252         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
17253         immediate as %1.
17254         (add<mode>3_compare0): Likewise.
17255         (addsi3_compare0_uxtw): Likewise.
17256         (add<mode>3nr_compare0): Likewise.
17257         (compare_neg<mode>): Likewise.
17258         (<optab><mode>3): Likewise.
17260 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
17262         * tree-vect-stmts.c (vectorizable_comparison): Add
17263         NULL check for vectype.
17265 2016-01-28  Richard Biener  <rguenther@suse.de>
17267         PR tree-optimization/69466
17268         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
17269         Account for PHIs we couldn't duplicate.
17271 2016-01-28  Martin Liska  <mliska@suse.cz>
17273         PR pch/68758
17274         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
17275         instead of ENABLE_VALGRIND_CHECKING.
17277 2016-01-27  Richard Henderson  <rth@redhat.com>
17279         PR rtl-opt/69447
17280         * lra-remat.c (subreg_regs): New.
17281         (dump_candidates_and_remat_bb_data): Dump it.
17282         (operand_to_remat): Reject if operand in subreg_regs.
17283         (set_bb_regs): Collect subreg_regs.
17284         (lra_remat): Init and free subreg_regs.  Compute
17285         calculate_local_reg_remat_bb_data before create_cands.
17287 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
17289         PR target/68986
17290         * config/i386/i386.c (ix86_update_stack_boundary): Don't
17291         change stack_alignment_needed for __tls_get_addr call.
17293 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
17295         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
17297 2016-01-27  Jeff Law  <law@redhat.com>
17299         PR tree-optimization/68398
17300         PR tree-optimization/69196
17301         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
17302         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
17303         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17304         Only count PHIs in the last block in the path.  The others will
17305         const/copy propagate away.  Add heuristic to allow more irreducible
17306         subloops to be created when it is likely profitable to do so.
17308         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17309         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
17310         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
17312 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
17314         PR lto/69254
17315         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
17316         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
17317         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
17318         * tree-streamer-in.c: Include asan.h.
17319         (streamer_get_builtin_tree): For builtins in sanitizer
17320         range call initialize_sanitizer_builtins and retry.
17322 2016-01-27  Ian Lance Taylor  <iant@google.com>
17324         * common.opt (fkeep-gc-roots-live): New undocumented option.
17325         * tree-ssa-loop-ivopts.c (add_candidate_1): If
17326         -fkeep-gc-roots-live, skip pointers.
17327         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
17328         NULL.
17330 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
17332         PR target/69512
17333         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
17334         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
17336 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
17338         PR target/68380
17339         * configure.ac: NetBSD provides SSP in its C library.
17340         * configure: Updated.
17342 2016-01-27  Richard Biener  <rguenther@suse.de>
17344         PR tree-optimization/69166
17345         * tree-vect-loop.c (vect_is_simple_reduction): Always check
17346         reduction code for commutativity / associativity.
17348 2016-01-27  Martin Jambor  <mjambor@suse.cz>
17350         PR tree-optimization/69355
17351         * tree-sra.c (analyze_access_subtree): Correct hole detection when
17352         total_scalarization fails.
17354 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
17356         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
17357         power9.
17359 2016-01-27  Christian Bruel  <christian.bruel@st.com>
17361         PR target/69245
17362         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
17363         Move arm_reset_previous_fndecl and set_target_option_current_node in
17364         the conditional part.  Call save_restore_target_globals.
17365         * config/arm/arm.c (arm_set_current_function):
17366         Refactor to better support #pragma target and attribute mix.
17367         Call save_restore_target_globals.
17368         * config/arm/arm-protos.h (save_restore_target_globals): New function.
17370 2016-01-27  Martin Liska  <mliska@suse.cz>
17372         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
17373         reference for an HSA kernel and its host function.
17375 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
17377         PR tree-optimization/69399
17378         * wide-int.h (wi::lrshift): For larger precisions, only
17379         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
17381 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
17383         * config/arc/predicates.md (proper_comparison_operator): Reject
17384         constant-constant comparison.
17386 2016-01-26  Tom de Vries  <tom@codesourcery.com>
17388         PR tree-optimization/69110
17389         * tree-data-ref.c (initialize_data_dependence_relation): Handle
17390         DR_NUM_DIMENSIONS == 0.
17392 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
17393             Sebastian Pop  <s.pop@samsung.com>
17395         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
17396         isl_ast_op_cond and isl_ast_op_select.
17397         (gcc_expression_from_isl_expr_op): Same.
17399 2016-01-26  Jason Merrill  <jason@redhat.com>
17401         PR c++/68782
17402         * tree.c (recompute_constructor_flags): Split out from
17403         build_constructor.
17404         (verify_constructor_flags): New.
17405         * tree.h: Declare them.
17407 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
17409         PR rtl-optimization/69217
17410         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
17411         are no TYPE_FIELDS set for the record type.
17413 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17415         PR target/68662
17416         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
17417         toc_label_name unconditionally.
17418         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
17419         SYMBOL_REF string.  Use toc_label_name instead of constructing
17420         LCTOC1.
17421         (rs6000_elf_declare_function_name): Use toc_label_name instead of
17422         constructing LCTOC1.
17424 2016-01-26  Martin Sebor  <msebor@redhat.com>
17426         PR other/69477
17427         * doc/extend.texi (Common Type Attributes): Move text that talks about
17428         attribute packed from attribute aligned to the section discussing
17429         the former attribute for clarity.
17431 2016-01-26  Richard Henderson  <rth@redhat.com>
17433         PR middle-end/60908
17434         * trans-mem.c (tm_region_init): Mark entry block as visited.
17436 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
17438         PR other/69006
17439         * diagnostic-show-locus.c (layout::print_source_line): Replace
17440         call to pp_newline with call to layout::print_newline.
17441         (layout::print_annotation_line): Likewise.
17442         (layout::move_to_column): Likewise.
17443         (layout::print_any_fixits): After printing any fixits, print a
17444         trailing newline, if necessary.
17445         (layout::print_newline): New method, resetting any colorization
17446         before a newline.
17447         (diagnostic_show_locus): Move the pp_newline to before the
17448         early bailout.  Remove dummy block enclosing the layout instance.
17449         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
17450         of pp_newline_and_flush with pp_flush.
17451         (diagnostic_append_note): Delete use of pp_newline.
17452         (diagnostic_append_note_at_rich_loc): Delete.
17453         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
17454         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
17455         when newline characters are added to the buffer.
17457 2016-01-26  Michael Matz  <matz@suse.de>
17459         * configure.ac (ac_cv_std_swap_in_utility): New test.
17460         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
17461         * configure: Regenerate.
17462         * config.in: Regenerate.
17464 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
17466         * config/arc/arc.md (cstoresi4): Force operand into register.
17467         (arcset<code>): Fix predicate.
17468         (arcsetltu): Likewise.
17469         (arcsetgeu): Likewise.
17470         (arcsethi): Likewise.
17471         (arcsetls): Likewise.
17473 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17475         PR tree-optimization/69483
17476         * gimple-fold.c (canonicalize_constructor_val): Return NULL
17477         if base has error_mark_node type.
17479 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
17481         PR target/68620
17482         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
17483         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
17484         New helper macros.
17485         (vget_lane_f16): Handle big-endian.
17486         (vgetq_lane_f16): Likewise.
17487         (vset_lane_f16): Likewise.
17488         (vsetq_lane_f16): Likewise.
17489         * config/arm/iterators.md (VQXMOV): Add V8HF.
17490         (VDQ): Add V4HF and V8HF.
17491         (V_reg): Handle V4HF and V8HF.
17492         (Is_float_mode): Likewise.
17493         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
17494         neon_vdup_nv8hf): New patterns.
17495         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
17496         Use VD_LANE iterator.
17497         (neon_vld1_dup<mode>): Use VQ2 iterator.
17499 2016-01-26  Nathan Sidwell  <nathan@acm.org>
17501         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
17502         (set_oacc_fn_attrib): Add IS_KERNEL arg.
17503         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
17504         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
17505         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
17506         (oacc_validate_dims): Add LEVEL arg, don't return level.
17507         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
17508         oacc_validate_dims.
17509         (execute_oacc_device_lower): Adjust, add more dump output.
17510         * tree-ssa-loop.c (gate_oacc_kernels): Use
17511         oacc_fn_attrib_kernels_p.
17512         * tree-parloops.c (create_parallel_loop): Adjust
17513         set_oacc_fn_attrib call.
17515 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17517         PR lto/69254
17518         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
17519         (append_compiler_options): Handle -fcilkplus.
17520         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
17522 2016-01-26  Nick Clifton  <nickc@redhat.com>
17524         PR target/66655
17525         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
17526         been marked as DECL_ONE_ONLY but we do not the means to make it
17527         so, then do not allow it to bind locally.
17529 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17531         PR lto/69254
17532         * opts.h (parse_sanitizer_options): New prototype.
17533         * opts.c (sanitizer_opts): New array.
17534         (parse_sanitizer_options): New function.
17535         (common_handle_option): Use parse_sanitizer_options.
17537 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
17539         PR target/68986
17540         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
17541         alignment adjustment to ...
17542         (ix86_update_stack_boundary): Here.  Don't over-align stack for
17543         __tls_get_addr.
17544         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
17545         if __tls_get_addr is called.
17547 2016-01-26  Christian Bruel  <christian.bruel@st.com>
17549         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
17551 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17553         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
17555 2016-01-26  Richard Biener  <rguenther@suse.de>
17557         PR middle-end/69467
17558         * match.pd: Guard X * CST CMP 0 pattern with single_use.
17560 2016-01-26  Richard Biener  <rguenther@suse.de>
17562         PR tree-optimization/69452
17563         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
17564         (move_computations_dom_walker::before_dom_children): Rename
17565         to ...
17566         (move_computations_worker): This.
17567         (move_computations): Perform an RPO rather than a DOM walk.
17569 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
17571         PR target/69442
17572         * combine.c (combine_instructions): For REG_EQUAL note with
17573         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
17574         to the underlying register.
17575         * doc/rtl.texi (REG_EQUAL): Document the behavior of
17576         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
17578 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
17580         PR target/67896
17581         * config/aarch64/aarch64-builtins.c
17582         (aarch64_init_simd_builtin_types): Do not set structural
17583         equality to __Poly{8,16,64,128}_t types.
17585 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
17587         PR tree-optimization/69400
17588         * wide-int.cc (wi_pack): Take the precision as argument and
17589         perform canonicalization here rather than in the callers.
17590         Use the main loop to handle all full-width HWIs.  Add a
17591         zero HWI if in_len isn't a full result.
17592         (wi::divmod_internal): Update accordingly.
17593         (wi::mul_internal): Likewise.  Simplify.
17595 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
17596             Sebastian Pop  <s.pop@samsung.com>
17598         * graphite-poly.c (apply_poly_transforms): Simplify.
17599         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
17600         (print_isl_map): Same.
17601         (print_isl_union_map): Same.
17602         (print_isl_schedule): New.
17603         (debug_isl_schedule): New.
17604         * graphite-dependences.c (scop_get_reads): Do not call
17605         isl_union_map_add_map that is undocumented isl functionality.
17606         (scop_get_must_writes): Same.
17607         (scop_get_may_writes): Same.
17608         (scop_get_original_schedule): Remove.
17609         (scop_get_dependences): Do not call isl_union_map_compute_flow that
17610         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
17611         (compute_deps): Remove.
17612         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
17613         (debug_schedule_ast): New.
17614         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
17615         set_separate_option.
17616         (graphite_regenerate_ast_isl): Add dump.
17617         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
17618         from scop->transformed_schedule.
17619         (graphite_regenerate_ast_isl): Add more dump.
17620         * graphite-optimize-isl.c (optimize_isl): Set
17621         scop->transformed_schedule.  Check whether schedules are equal.
17622         (apply_poly_transforms): Move here.
17623         * graphite-poly.c (apply_poly_transforms): ... from here.
17624         (free_poly_bb): Static.
17625         (free_scop): Static.
17626         (pbb_number_of_iterations_at_time): Remove.
17627         (print_isl_ast): New.
17628         (debug_isl_ast): New.
17629         (debug_scop_pbb): New.
17630         * graphite-scop-detection.c (print_edge): Move.
17631         (print_sese): Move.
17632         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
17633         (build_scop_scattering): Remove.
17634         (create_pw_aff_from_tree): Assert instead of bailing out.
17635         (add_condition_to_pbb): Remove unused code, do not fail.
17636         (add_conditions_to_domain): Same.
17637         (add_conditions_to_constraints): Remove.
17638         (build_scop_context): New.
17639         (add_iter_domain_dimension): New.
17640         (build_iteration_domains): Initialize pbb->iterators.
17641         Call add_conditions_to_domain.
17642         (nested_in): New.
17643         (loop_at): New.
17644         (index_outermost_in_loop): New.
17645         (index_pbb_in_loop): New.
17646         (outermost_pbb_in): New.
17647         (add_in_sequence): New.
17648         (add_outer_projection): New.
17649         (outer_projection_mupa): New.
17650         (add_loop_schedule): New.
17651         (build_schedule_pbb): New.
17652         (build_schedule_loop): New.
17653         (embed_in_surrounding_loops): New.
17654         (build_schedule_loop_nest): New.
17655         (build_original_schedule): New.
17656         (build_poly_scop): Call build_original_schedule.
17657         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
17658         (free_poly_dr): Remove.
17659         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
17660         (free_poly_bb): Remove.
17661         (debug_loop_vec): Remove.
17662         (print_isl_ast): Declare.
17663         (debug_isl_ast): Declare.
17664         (scop_do_interchange): Remove.
17665         (scop_do_strip_mine): Remove.
17666         (scop_do_block): Remove.
17667         (flatten_all_loops): Remove.
17668         (optimize_isl): Remove.
17669         (pbb_number_of_iterations_at_time): Remove.
17670         (debug_scop_pbb): Declare.
17671         (print_schedule_ast): Declare.
17672         (debug_schedule_ast): Declare.
17673         (struct scop): Remove schedule.  Add original_schedule,
17674         transformed_schedule.
17675         (free_gimple_poly_bb): Remove.
17676         (print_generated_program): Remove.
17677         (debug_generated_program): Remove.
17678         (unify_scattering_dimensions): Remove.
17679         * sese.c (print_edge): ... here.
17680         (print_sese): ... here.
17681         (debug_edge): ... here.
17682         (debug_sese): ... here.
17683         * sese.h (print_edge): Declare.
17684         (print_sese): Declare.
17685         (dump_edge): Declare.
17686         (dump_sese): Declare.
17688 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
17689             Sebastian Pop  <s.pop@samsung.com>
17691         * Makefile.in: Set ISLVER in site.exp.
17693 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
17695         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
17696         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
17697         through DECL_VALUE_EXPR for expansion.
17699 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17701         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
17702         the frame info after reload completed.
17704 2016-01-25  Jeff Law  <law@redhat.com>
17706         PR tree-optimization/69196
17707         PR tree-optimization/68398
17708         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
17709         tree-ssa-threadupdate.c.
17710         (determine_bb_domination_status): Prototype
17711         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
17712         (determine_bb_domination_status): No longer static.
17713         (valid_jump_thread_path): Remove code to detect characteristics
17714         of the jump thread path not associated with correctness.
17715         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
17716         Correct test for thread path length.  Count PHIs for real operands as
17717         statements that need to be copied.  Do not count ASSERT_EXPRs.
17718         Look at all the blocks in the thread path.  Compute and selectively
17719         filter thread paths based on threading through the latch, threading
17720         a multiway branch or crossing a multiway branch.
17722 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17724         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
17725         decl with __attribute__ ((unused)) annotation.
17727 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
17729         PR target/69421
17730         * tree-vect-stmts.c (vectorizable_condition): Check vectype
17731         of operands is compatible with a statement vectype.
17733 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
17735         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
17736         improve wording for mixed storage order support.
17738 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
17740         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
17741         (vcvt_u64_f64): Likewise.
17742         (vcvta_s64_f64): Likewise.
17743         (vcvta_u64_f64): Likewise.
17744         (vcvtm_s64_f64): Likewise.
17745         (vcvtm_u64_f64): Likewise.
17746         (vcvtn_s64_f64): Likewise.
17747         (vcvtn_u64_f64): Likewise.
17748         (vcvtp_s64_f64): Likewise.
17749         (vcvtp_u64_f64): Likewise.
17751 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
17753         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
17754         (arc_init): Check validity mll64 option.
17755         (arc_save_restore): Use double load/store instruction.
17756         (arc_expand_movmem): Likewise.
17757         (arc_split_move): Don't split if we have double load/store
17758         instructions. Returns a boolean.
17759         (arc_process_double_reg_moves): Change function to return boolean
17760         instead of a sequence of instructions.
17761         (arc_dwarf_register_span): New function.
17762         * config/arc/arc-protos.h (arc_split_move): Change prototype.
17763         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
17764         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
17765         (*movdf_insn): Likewise.
17766         * config/arc/arc.opt (mll64): New option.
17767         * config/arc/predicates.md (even_register_operand): New predicate.
17768         * doc/invoke.texi (ARC Options): Add mll64 documentation.
17770 2016-01-25  Richard Biener  <rguenther@suse.de>
17772         PR lto/69393
17773         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
17774         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
17775         DECL_NAMELESS.
17776         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
17778 2016-01-25  Richard Biener  <rguenther@suse.de>
17780         PR tree-optimization/69376
17781         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
17782         flag.
17783         (VN_INFO_ANTI_RANGE_P): New inline.
17784         (VN_INFO_RANGE_TYPE): Likewise.
17785         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
17786         SSA_NAME_ANTI_RANGE_P.
17787         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
17788         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17789         Properly query VN_INFO_RANGE_TYPE.
17791 2016-01-25  Nick Clifton  <nickc@redhat.com>
17793         PR target/66655
17794         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
17796 2016-01-23  Tom de Vries  <tom@codesourcery.com>
17798         PR tree-optimization/69426
17799         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
17800         removed clobber.
17802 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
17804         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
17805         "the the" with "the" in the comments.
17806         * ipa-devirt.c (build_type_inheritance_graph,
17807         update_type_inheritance_graph): Likewise.
17808         * tree.c (build_function_type_list_1): Likewise.
17809         * cfgloopmanip.c (scale_loop_profile): Likewise.
17810         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
17811         * gimple-ssa-split-paths.c
17812         (find_block_to_duplicate_for_splitting_paths): Likewise.
17813         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
17814         * expr.c (convert_move): Likewise.
17815         * var-tracking.c (vt_stack_adjustments): Likewise.
17816         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17817         * tree-vrp.c (test_for_singularity): Likewise.
17819         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
17820         directly instead of building a temporary tree.
17822         PR bootstrap/69434
17823         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
17824         remove <algorithm> include.
17826 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17828         PR target/69432
17829         * config/i386/i386.c: Include dojump.h.
17830         (expand_small_movmem_or_setmem,
17831         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
17832         fixes.
17833         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
17834         if dynamic_check != -1.
17836 2016-01-21  Jeff Law  <law@redhat.com>
17838         PR middle-end/69347
17839         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17840         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
17841         into dominated_by_p.
17842         (cprop_into_successor_phis): Avoid unnecessary tests.
17844 2016-01-22  Richard Henderson  <rth@redhat.com>
17846         PR target/69416
17847         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17848         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17850 2016-01-22  Michael Matz  <matz@suse.de>
17852         * system.h (string, algorithm): Include only conditionally.
17853         (new): Include always under C++.
17854         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17855         * final.c (toplevel): Ditto.
17856         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17857         * genconditions.c (write_header): Make gencondmd.c define
17858         INCLUDE_STRING.
17859         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17861         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17862         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17864 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17866         PR target/68674
17867         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17869 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17871         PR target/69403
17872         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17873         define_insn_and_split.  Ensure operands[1] and operands[0] do not
17874         get assigned the same register.
17876 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17878         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17880 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17882         * config/arm/arm-c.c (arm_pragma_target_parse):
17883         Remove warn_builtin_macro_redefined overwrite.
17885 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17887         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17888         flag_non_call_exceptions compatibility.
17890 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17892         PR debug/66668
17893         * dwarf2out.c (add_child_die_after): New function.
17894         (dwarf_qual_info_t): New type.
17895         (dwarf_qual_info): New variable.
17896         (qualified_die_p): New function.
17897         (modified_type_die): For -fdebug-types-section, ensure
17898         canonical order of qualifiers.  Put qualified DIEs adjacent
17899         to the corresponding non-qualified type DIE and search there
17900         for existing qualified DIEs.
17902 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17904         * doc/extend.texi (scalar_storage_order type attribute): Document
17905         restriction on type punning and aliasing, and remove future tense.
17907 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
17909         PR target/69252
17910         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17911         first stage.
17913 2016-01-21  Jeff Law  <law@redhat.com>
17915         PR middle-end/69347
17916         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17917         useless call to record_temporary_equivalences.
17918         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17919         allocate 10 slots in the bb_path vector and let it grow as needed.
17920         (fsm_find_control_statement_thread_paths): Similarly for the next_path
17921         vector.
17923 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17925         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17926         Detangle.
17927         * configure: Regenerate.
17929 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
17931         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17932         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17934 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
17936         PR middle-end/66178
17937         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17938         drop EXPAND_INITIALIZER.
17939         * rtl.h (contains_symbolic_reference_p): Declare.
17940         * rtlanal.c (contains_symbolic_reference_p): New function.
17941         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17942         a subtraction into a NOT if symbolic constants are involved.
17944 2016-01-21  Anton Blanchard  <anton@samba.org>
17945             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17947         PR target/63354
17948         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17949         #define.
17950         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17951         function.
17953 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17955         * config/microblaze/microblaze.c
17956         (get_branch_target): New.
17957         (insert_wic_for_ilb_runout): New.
17958         (insert_wic): New.
17959         (microblaze_machine_dependent_reorg): New.
17960         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17961         * config/microblaze/microblaze.md
17962         (UNSPEC_IPREFETCH): Define.
17963         (iprefetch): New pattern
17964         * config/microblaze/microblaze.opt
17965         (mxl-prefetch): New flag.
17967 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17969         * config/microblaze/microblaze.h
17970         (FIXED_REGISTERS): Update in macro.
17971         (CALL_USED_REGISTERS): Update in macro.
17973 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
17975         PR rtl-optimization/68920
17976         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17977         moves.
17979 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17981         PR rtl-optimization/68990
17982         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17983         pseudo instead of inheritance ones.
17985 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17986             Nick Clifton  <nickc@redhat.com>
17988         PR target/69129
17989         PR target/69012
17990         * config/mips/mips.c (mips_compute_frame_info): Initialise
17991         args_size and hard_frame_pointer_offset fields of the frame
17992         structure before calling mips_global_pointer.
17994 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17996         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17997         label reference.
17998         * configure: Regenerate.
18000 2016-01-21  Richard Biener  <rguenther@suse.de>
18002         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
18004 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
18006         * config/s390/s390.c (s390_asm_declare_function_size): Add code
18007         to actually emit the .size directive.
18009 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
18010              Jakub Jelinek  <jakub@redhat.com>
18012         PR target/69187
18013         PR target/65624
18014         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
18015         args array size by one to avoid buffer overflow.
18017 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
18019         * config/s390/s390.md (pool_section_start): Use switch_to_section
18020         to select proper read-only data section instead of hardcoding
18021         .rodata.
18022         (pool_section_end): Use switch_to_section to match the above.
18024 2016-01-21  Richard Biener  <rguenther@suse.de>
18026         PR tree-optimization/69378
18027         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
18028         (set_ssa_val_to): Use it for dominance checks taking into
18029         account not executable edges.
18031 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
18033         PR c++/69355
18034         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
18035         for bitsize instead of GET_MODE_PRECISION (mode).
18037 2016-01-20  Martin Sebor  <msebor@redhat.com>
18039         PR c/52291
18040         * extend.texi (__sync Builtins): Clarify the semantics of
18041         __sync_fetch_and_OP built-ins on pointers.
18042         (__atomic Builtins): Same.
18044 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18045             Sebastian Pop  <s.pop@samsung.com>
18047         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
18048         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
18049         (is_valid_rename): Same.
18050         (translate_isl_ast_to_gimple::get_rename): Same.
18051         (translate_isl_ast_to_gimple::rename_all_uses): Same.
18052         (translate_isl_ast_to_gimple::rename_uses): Same.
18053         (get_new_name): Check for close_phi nodes.
18054         (copy_loop_phi_args): Use phi_node_kind.
18055         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
18056         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
18058 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18059             Sebastian Pop  <s.pop@samsung.com>
18061         Revert commit r229783.
18062         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
18063         Remove use of parameter_rename_map.
18064         (copy_def): Remove.
18065         (copy_internal_parameters): Remove.
18066         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
18067         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
18068         (free_sese_info): Do not free parameter_rename_map.
18069         (set_rename): Do not use parameter_rename_map.
18070         (rename_uses): Update call to set_rename.
18071         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
18072         * sese.h (parameter_rename_map_t): Remove.
18073         (struct sese_info_t): Remove field parameter_rename_map.
18075 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18076             Sebastian Pop  <s.pop@samsung.com>
18078         * graphite-isl-ast-to-gimple.c: Fix comment.
18079         * graphite-scop-detection.c (defined_in_loop_p): New.
18080         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
18081         names defined in loop.
18083 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18084             Sebastian Pop  <s.pop@samsung.com>
18086         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
18087         Discard unstructured if-then-else regions.
18089 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18090             Sebastian Pop  <s.pop@samsung.com>
18092         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
18093         (cleanup_loop_iter_dom): Remove.
18094         (build_loop_iteration_domains): Remove.
18095         (build_scop_context): Remove.
18096         (build_scop_iteration_domain): Remove.
18097         (add_loop_constraints): New.
18098         (build_iteration_domains): New.
18099         (build_poly_scop): Call build_iteration_domains.
18101 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18102             Sebastian Pop  <s.pop@samsung.com>
18104         * graphite-scop-detection.c
18105         (scop_detection::harmful_loop_in_region): Free dom and loops.
18106         (scop_detection::loop_body_is_valid_scop): Free bbs.
18108 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18109             Sebastian Pop  <s.pop@samsung.com>
18111         * graphite-scop-detection.c (record_loop_in_sese): New.
18112         (gather_bbs::before_dom_children): Call record_loop_in_sese.
18113         (build_scops): Remove call to build_sese_loop_nests.
18114         * sese.c (sese_record_loop): Remove.
18115         (build_sese_loop_nests): Remove.
18116         (new_sese_info): Remove region->loops.
18117         (free_sese_info): Same.
18118         * sese.h (sese_contains_loop): Same.
18119         (build_sese_loop_nests): Remove.
18120         (sese_contains_loop): Remove.
18122 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18123             Sebastian Pop  <s.pop@samsung.com>
18125         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
18126         loop_is_valid_in_scop.
18127         (scop_detection::harmful_stmt_in_region): Renamed
18128         harmful_loop_in_region.
18129         Call loop_is_valid_in_scop.
18131 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18132             Sebastian Pop  <s.pop@samsung.com>
18134         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
18135         isl_ast_node_mark.
18137 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18138             Sebastian Pop  <s.pop@samsung.com>
18140         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
18141         * graphite.h (struct poly_bb): Remove field is_reduction.
18142         (PBB_IS_REDUCTION): Remove.
18144 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
18145             Sebastian Pop  <s.pop@samsung.com>
18147         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
18148         (add_pdr_constraints): Same.
18149         (scop_get_reads): Same.
18150         (scop_get_must_writes): Same.
18151         (scop_get_may_writes): Same.
18152         (scop_get_original_schedule): Same.
18153         (extend_schedule): Same.
18154         (apply_schedule_on_deps): Same.
18155         (carries_deps): Same.
18156         (compute_deps): Same.
18157         (scop_get_dependences): Same.
18158         * graphite-isl-ast-to-gimple.c
18159         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
18160         * graphite-optimize-isl.c (get_schedule_for_band): Same.
18161         (get_schedule_for_band_list): Same.
18162         (get_schedule_map): Same.
18163         (apply_schedule_map_to_scop): Same.
18164         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
18165         (build_loop_iteration_domains): Same.
18166         (add_condition_to_pbb): Same.
18167         (add_param_constraints): Same.
18168         (pdr_add_memory_accesses): Same.
18169         (pdr_add_data_dimensions): Same.
18171 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
18173         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
18174         requirements.
18176 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
18178         * common.opt (feliminate-dwarf2-dups): Replace references to
18179         "DWARF 2" with just "DWARF".
18180         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
18181         * doc/extend.texi: Likewise.
18182         * doc/cpp.texi: Likewise.
18183         * doc/invoke.texi: Likewise.
18184         (Option Summary): Add -gdwarf to list of Debugging Options.
18185         (Debugging Options): Document -gdwarf.
18186         * doc/contrib.texi: Spell "DWARF" like that.
18188 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
18190         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
18191         warning.  Fix up formatting.
18193         PR middle-end/67653
18194         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
18195         attempt to mark memory input operand addressable and
18196         call prepare_gimple_addressable in that case.  Don't adjust
18197         input_location for diagnostics, use error_at instead.
18199 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
18201         * config/rs6000/ppc-auxv.h: New file.
18202         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
18203         (cpu_is): Likewise.
18204         (cpu_supports): Likewise.
18205         * config/rs6000/rs6000.c: include "ppc-auxv.h".
18206         (cpu_is_info): New variable.
18207         (cpu_supports_info): Likewise.
18208         (tcb_verification_symbol): Likewise.
18209         (cpu_builtin_p): Likewise.
18210         (cpu_expand_builtin): New function.
18211         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
18212         (rs6000_init_builtins): Likewise.
18213         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
18214         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
18215         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
18216         * configure: Regenerate.
18217         * config.in: Likewise.
18218         * doc/extend.texi (PowerPC Built-in Functions): Document
18219         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
18221 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
18223         PR target/68609
18224         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
18225         domain check.
18226         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
18227         for V4SFmode.
18229 2016-01-20  Richard Henderson  <rth@redhat.com>
18231         PR bootstrap/69343
18232         PR bootstrap/69339
18233         PR tree-opt/68964
18234         Revert:
18235         * tree.c (tm_define_builtin): New.
18236         (find_tm_vector_type): New.
18237         (build_tm_vector_builtins): New.
18238         (build_common_builtin_nodes): Call it.
18240 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
18242         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
18243         (arm_fp_ok): Likewise.
18244         (arm_fp): Likewise.
18245         (arm_crypto): Likewise.
18247 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
18248             Richard Biener  <rguenther@suse.de>
18250         PR tree-optimization/69328
18251         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
18252         vectors have same number of elements.
18253         (vectorizable_condition): Fix masked version recognition.
18255 2016-01-20  Richard Biener  <rguenther@suse.de>
18257         PR tree-optimization/69345
18258         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
18259         (VN_INFO_PTR_INFO): Likewise.
18260         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
18261         info when it is equal between non-dominating SSA names.
18262         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18263         Make sure to look at original SSA infos.
18265 2016-01-20  Jeff Law  <law@redhat.com>
18267         PR target/25114
18268         * config/m68k/predicates.md (pow2_m1_operand): New predicate
18269         extracted from ...
18270         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
18271         (pc_or_label_operand): New predicate.
18272         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
18273         tests for small integers that are 2^n - 1.
18275 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
18277         * doc/invoke.texi (Options Summary): Add '.' after @xref.
18279 2016-01-19  Jeff Law  <law@redhat.com>
18281         PR middle-end/69347
18282         * tree-ssa-threadbackwards.c
18283         (fsm_find_control_statement_thread_paths): Do not try to lookup
18284         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
18286 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
18288         * doc/lto.texi: Remove text that says only Gold has linker plugin
18289         support.
18291 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
18293         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
18294         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
18295         the DIE accordingly.
18296         (modified_type_die): Add REVERSE parameter and pass it recursively,
18297         as well as to base_type_die.  Adjust presence check accordingly.
18298         (base_type_for_mode): Adjust call to modified_type_die.
18299         (add_type_attribute): Add REVERSE parameter and pass it to
18300         modified_type_die.
18301         (generic_parameter_die): Adjust call to add_type_attribute.
18302         (add_scalar_info): Likewise.
18303         (add_subscript_info): Likewise.
18304         (gen_array_type_die): Likewise.
18305         (gen_descr_array_type_die): Likewise.
18306         (gen_entry_point_die): Likewise.
18307         (gen_enumeration_type_die): Likewise.
18308         (gen_formal_parameter_die): Likewise.
18309         (gen_subprogram_die): Likewise.
18310         (gen_variable_die ): Likewise.
18311         (gen_const_die): Likewise.
18312         (gen_field_die): Likewise.
18313         (gen_pointer_type_die): Likewise.
18314         (gen_reference_type_die): Likewise.
18315         (gen_ptr_to_mbr_type_die): Likewise.
18316         (gen_inheritance_die): Likewise.
18317         (gen_subroutine_type_die): Likewise.
18318         (gen_typedef_die): Likewise.
18319         (force_type_die): Adjust call to modified_type_die.
18321 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
18323         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
18324         flow throughout the file.  Fix broken link to Objective-C 2.0
18325         documentation.
18326         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
18327         errors.
18329 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18331         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
18333 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18335         PR ipa/66223
18336         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
18337         (maybe_record_node): Record cxa_pure_virtual as the only possible
18338         target if there are not ohter candidates.
18339         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
18341 2016-01-19  Richard Biener  <rguenther@suse.de>
18343         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
18344         (get_memory_order): Likewise.
18346 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
18348         * tree-vect-stmts.c (vectorizable_store): Check
18349         rhs vectype.
18351 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
18353         PR jit/68446
18354         * gcc.c (driver::decode_argv): Add call to
18355         init_opts_obstack before init_options_struct.
18356         * opts.c (init_opts_obstack): Remove idempotency.
18357         (init_options_struct): Replace call to init_opts_obstack
18358         with a gcc_assert to verify that it has already been called.
18359         * toplev.c (toplev::main): Add call to init_opts_obstack before
18360         calls to init_options_struct.
18361         (toplev::finalize): Move cleanup of opts_obstack next to
18362         cleanup of save_decoded_options, clearing the latter, and
18363         save_decoded_options_count.
18365 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18367         PR target/69135
18368         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
18369         attribute to unconditional.  Remove %? from output template.
18371 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18372             Jiong Wang  <jiong.wang@arm.com>
18374         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
18375         generated from different expand order.
18377 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18379         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
18380         Add support for CCMP costing.
18382 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18384         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
18385         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
18386         (fccmpe<mode>): Likewise.
18387         (fcmp): Rename to fcmp and globalize pattern.
18388         (fcmpe): Likewise.
18389         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
18390         (aarch64_gen_ccmp_next): Add FP support.
18392 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
18394         * target.def (gen_ccmp_first): Update documentation.
18395         (gen_ccmp_next): Likewise.
18396         * doc/tm.texi (gen_ccmp_first): Update documentation.
18397         (gen_ccmp_next): Likewise.
18398         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
18399         expand_ccmp_expr_1.  Improve comments.
18400         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
18401         (ccmp_ior<mode>): Remove pattern.
18402         (cmp<mode>): Remove expand.
18403         (cmp): Globalize pattern.
18404         (cstorecc4): Use cc_register.
18405         (mov<mode>cc): Remove ccmp_cc_register check.
18406         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
18407         Simplify after removal of CC_DNE/* modes.
18408         (aarch64_ccmp_mode_to_code): Remove.
18409         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
18410         In 'k' case use integer as condition.
18411         (aarch64_nzcv_codes): Remove inverted cases.
18412         (aarch64_code_to_ccmode): Remove.
18413         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
18414         comparison with CC register to be used in folowing CCMP/branch/CSEL.
18415         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
18416         pattern.  Return the comparison with CC register.  Invert conditions
18417         when bitcode is OR.
18418         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
18419         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
18421 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18423         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
18424         instrumented_version.
18426 2016-01-19  Richard Biener  <rguenther@suse.de>
18428         PR tree-optimization/69336
18429         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
18430         handled components with get_ref_base_and_extent.
18431         (equal_mem_array_ref_p): Adjust.
18433 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
18435         PR debug/65779
18436         * shrink-wrap.c: Include valtrack.h.
18437         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
18438         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
18439         in between insn and where it will be moved to.  Call
18440         dead_debug_insert_temp.
18441         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
18442         first and dead_debug_local_finish at the end.
18443         For uses and defs bitmap, handle all regs in between REGNO and
18444         END_REGNO, not just the first one.
18446 2016-01-19  Richard Biener  <rguenther@suse.de>
18448         PR tree-optimization/69352
18449         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
18450         (equal_mem_array_ref_p): Constrain size and max size properly.
18451         Compare the reverse flag.
18453 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
18455         * ira.c (ira): Update regstat data if we deleted insns.
18457 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
18459         PR rtl-optimization/68955
18460         PR rtl-optimization/64557
18461         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
18462         here.  Fix up formatting.
18463         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
18465 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18467         PR lto/69133
18468         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
18469         assume that the node has body.
18470         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
18471         check.
18473 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18475         * lto-streamer-out.c (lto_output): Do not stream instrumentation
18476         thunks.
18478 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18480         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
18481         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
18483 2016-01-19  Martin Jambor  <mjambor@suse.cz>
18484             Martin Liska  <mliska@suse.cz>
18485             Michael Matz  <matz@suse.de>
18487         * Makefile.in (OBJS): Add new source files.
18488         (GTFILES): Add hsa.c.
18489         * common.opt (disable_hsa): New variable.
18490         (-Whsa): New warning.
18491         * config.in (ENABLE_HSA): New.
18492         * configure.ac: Treat hsa differently from other accelerators.
18493         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
18494         $enable_offloading.
18495         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
18496         * doc/install.texi (Configuration): Document --with-hsa-runtime,
18497         --with-hsa-runtime-include, --with-hsa-runtime-lib and
18498         --with-hsa-kmt-lib.
18499         * doc/invoke.texi (-Whsa): Document.
18500         (hsa-gen-debug-stores): Likewise.
18501         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
18502         to invoke offload compiler for hsa acclerator.
18503         * opts.c (common_handle_option): Determine whether HSA offloading
18504         should be performed.
18505         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
18506         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
18507         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
18508         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
18509         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
18510         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
18511         GF_OMP_FOR_KIND_GRID_LOOP.
18512         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
18513         (pp_gimple_stmt_1): Likewise.
18514         * gimple-walk.c (walk_gimple_stmt): Likewise.
18515         * gimple.c (gimple_build_omp_grid_body): New function.
18516         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
18517         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
18518         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
18519         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
18520         GF_OMP_TEAMS_GRID_PHONY.
18521         (gimple_statement_omp_single_layout): Updated comments.
18522         (gimple_build_omp_grid_body): New function.
18523         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
18524         (gimple_omp_for_grid_phony): New function.
18525         (gimple_omp_for_set_grid_phony): Likewise.
18526         (gimple_omp_parallel_grid_phony): Likewise.
18527         (gimple_omp_parallel_set_grid_phony): Likewise.
18528         (gimple_omp_teams_grid_phony): Likewise.
18529         (gimple_omp_teams_set_grid_phony): Likewise.
18530         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
18531         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
18532         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
18533         (BUILT_IN_GOMP_TARGET): Updated type.
18534         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
18535         (adjust_for_condition): New function.
18536         (get_omp_for_step_from_incr): Likewise.
18537         (extract_omp_for_data): Moved parts to adjust_for_condition and
18538         get_omp_for_step_from_incr.
18539         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
18540         (fixup_child_record_type): Bail out if receiver_decl is NULL.
18541         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
18542         (scan_omp_parallel): Do not create child functions for phony
18543         constructs.
18544         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
18545         (scan_omp_1_op): Checking assert we are not remapping to
18546         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
18547         (parallel_needs_hsa_kernel_p): New function.
18548         (expand_parallel_call): Register apprpriate parallel child
18549         functions as HSA kernels.
18550         (grid_launch_attributes_trees): New type.
18551         (grid_attr_trees): New variable.
18552         (grid_create_kernel_launch_attr_types): New function.
18553         (grid_insert_store_range_dim): Likewise.
18554         (grid_get_kernel_launch_attributes): Likewise.
18555         (get_target_argument_identifier_1): Likewise.
18556         (get_target_argument_identifier): Likewise.
18557         (get_target_argument_value): Likewise.
18558         (push_target_argument_according_to_value): Likewise.
18559         (get_target_arguments): Likewise.
18560         (expand_omp_target): Call get_target_arguments instead of looking
18561         up for teams and thread limit.
18562         (grid_expand_omp_for_loop): New function.
18563         (grid_arg_decl_map): New type.
18564         (grid_remap_kernel_arg_accesses): New function.
18565         (grid_expand_target_kernel_body): New function.
18566         (expand_omp): Call it.
18567         (lower_omp_for): Do not emit phony constructs.
18568         (lower_omp_taskreg): Do not emit phony constructs but create for them
18569         a temporary variable receiver_decl.
18570         (lower_omp_taskreg): Do not emit phony constructs.
18571         (lower_omp_teams): Likewise.
18572         (lower_omp_grid_body): New function.
18573         (lower_omp_1): Call it.
18574         (grid_reg_assignment_to_local_var_p): New function.
18575         (grid_seq_only_contains_local_assignments): Likewise.
18576         (grid_find_single_omp_among_assignments_1): Likewise.
18577         (grid_find_single_omp_among_assignments): Likewise.
18578         (grid_find_ungridifiable_statement): Likewise.
18579         (grid_target_follows_gridifiable_pattern): Likewise.
18580         (grid_remap_prebody_decls): Likewise.
18581         (grid_copy_leading_local_assignments): Likewise.
18582         (grid_process_kernel_body_copy): Likewise.
18583         (grid_attempt_target_gridification): Likewise.
18584         (grid_gridify_all_targets_stmt): Likewise.
18585         (grid_gridify_all_targets): Likewise.
18586         (execute_lower_omp): Call grid_gridify_all_targets.
18587         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
18588         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
18589         (tree_omp_clause): Added union field dimension.
18590         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
18591         * tree.c (omp_clause_num_ops): Added number of arguments of
18592         OMP_CLAUSE__GRIDDIM_.
18593         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
18594         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
18595         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
18596         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
18597         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
18598         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
18599         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
18600         * tree-pass.h (make_pass_gen_hsail): Declare.
18601         (make_pass_ipa_hsa): Likewise.
18602         * ipa-hsa.c: New file.
18603         * lto-section-in.c (lto_section_name): Add hsa section name.
18604         * lto-streamer.h (lto_section_type): Add hsa section.
18605         * timevar.def (TV_IPA_HSA): New.
18606         * hsa-brig-format.h: New file.
18607         * hsa-brig.c: New file.
18608         * hsa-dump.c: Likewise.
18609         * hsa-gen.c: Likewise.
18610         * hsa.c: Likewise.
18611         * hsa.h: Likewise.
18612         * toplev.c (compile_file): Call hsa_output_brig.
18613         * hsa-regalloc.c: New file.
18615 2016-01-18  Jeff Law  <law@redhat.com>
18617         PR tree-optimization/69320
18618         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
18619         ranged object, do nothing if the RHS constant is not [0..1].
18620         (optimize_stmt): Comparing a boolean ranged object against a
18621         constant outside [0..1] results in a compile-time constant.
18623         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
18624         test.
18626 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
18628         * doc/invoke.texi (Invoking GCC): Add new section to menu.
18629         (Option Summary): Update to reflect new section and moved options.
18630         (C++ Dialect Options): Move -fstats to new section.
18631         (Debugging Options): Move all dump, statistics, and other GCC
18632         developer options to new section.  Rewrite section introduction
18633         and re-order remaining options to put the more basic ones first.
18634         (Optimization Options): Move -fira-verbose and -flto-report* to
18635         new section.
18636         (Developer Options): New section incorporating moved options.
18637         * doc/cppopts.texi (-dM): Update cross-reference.
18639 2016-01-18  Richard Henderson  <rth@redhat.com>
18641         PR target/69176
18642         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
18643         operands to pseudo only if CSE is expected.  Split long immediate
18644         operands only after reload, and for the stack pointer.
18645         (*add<GPI>3_pluslong): Remove.
18646         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
18647         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
18648         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
18649         (*add<GPI>3 peepholes): New.
18650         (*add<GPI>3 splitters): New.
18651         * config/aarch64/constraints.md (Upl): New.
18652         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
18654 2016-01-18  Richard Biener  <rguenther@suse.de>
18656         PR tree-optimization/69297
18657         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
18658         stmt at most once.
18659         (vect_bb_vectorization_profitable_p): Clear visited flag again.
18661 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18663         PR middle-end/68542
18664         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
18665         of mixind vector and scalar types.
18666         (fold_relational_const): Add handling of vector
18667         comparison with boolean result.
18668         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
18669         comparison of vector operands with boolean result for EQ/NE only.
18670         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
18671         (verify_gimple_cond): Likewise.
18672         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
18673         valid type of VAL.
18675 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
18677         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
18678         !TARGET_OCTEON.
18680 2016-01-18  Richard Biener  <rguenther@suse.de>
18682         PR middle-end/69308
18683         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
18685 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18687         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
18689 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18691         * omp-low.c (set_oacc_fn_attrib): Make extern.
18692         * omp-low.h (set_oacc_fn_attrib): Declare.
18693         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
18694         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
18695         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
18696         Add and handle function parameter oacc_kernels_p.
18697         (find_reduc_addr, get_omp_data_i_param): New function.
18698         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
18699         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
18700         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
18701         Calculate dominance info.  Skip loops that are not in a kernels region
18702         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
18703         (pass_parallelize_loops::execute): Call parallelize_loops with
18704         oacc_kernels_p argument.
18705         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
18706         New member function.
18707         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
18708         * passes.def: Add argument to pass_parallelize_loops instantation.
18710 2016-01-18  Tom de Vries  <tom@codesourcery.com>
18712         * tree-parloops.c (pass_parallelize_loops::execute): Allow
18713         pass_parallelize_loops to be run outside the loop pipeline.
18715 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18717         * tree-scalar-evolution.c (follow_copies_to_constant): New.
18718         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
18720 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18722         PR target/63679
18723         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
18724         using get_ref_base_and_extent.
18725         (equal_mem_array_ref_p): New.
18726         (hashable_expr_equal_p): Add call to previous.
18728 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
18730         PR target/63679
18731         * tree-sra.c (disqualified_constants, constant_decl_p): New.
18732         (sra_initialize): Allocate disqualified_constants.
18733         (sra_deinitialize): Free disqualified_constants.
18734         (disqualify_candidate): Update disqualified_constants when appropriate.
18735         (create_access): Scan for constant-pool entries as we go along.
18736         (scalarizable_type_p): Add check against type_contains_placeholder_p.
18737         (maybe_add_sra_candidate): Allow constant-pool entries.
18738         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
18739         (initialize_constant_pool_replacements): New.
18740         (sra_modify_assign): Avoid mangling assignments created by previous,
18741         and don't generate writes into constant pool.
18742         (sra_modify_function_body): Call initialize_constant_pool_replacements.
18744 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18746         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
18747         andnot instruction.
18748         (scalar_chain::convert_op): Likewise.
18749         * config/i386/i386.md (*andndi3_doubleword): New.
18751 2016-01-18  Richard Biener  <rguenther@suse.de>
18753         PR tree-optimization/69170
18754         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
18755         building a vector from scalar results of a pattern stmt.
18757 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
18759         * haifa-sched.c (autopref_multipass_init): Work around
18760         -Wmaybe-uninitialized warning.
18762 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18764         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
18765         against the constant 0.
18767 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18769         PR tree-optimization/68799
18770         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
18771         look up phi candidates in the statement-candidate map.
18772         (phi_add_costs): Likewise.
18773         (record_phi_increments): Likewise.
18774         (phi_incr_cost): Likewise.
18775         (ncd_with_phi): Likewise.
18776         (all_phi_incrs_profitable): Likewise.
18778 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
18780         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
18781         -Wmaybe-uninitialized warning.
18783 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
18785         * doc/invoke.texi (Invoking GCC): Add new section to menu.
18786         (Option Summary): Update to reflect new section and moved options.
18787         (C++ Dialect Options): Move -fvtable-verify and related options.
18788         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
18789         and profiling-related options.
18790         (Optimization Options): Move profile generation options and
18791         -fstack-protector and related options.
18792         (Instrumentation Options): New section incorporating moved options.
18793         (Code Generation Options): Move -finstrument-functions and
18794         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
18796 2016-01-16  Tom de Vries  <tom@codesourcery.com>
18798         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
18800 2016-01-16  Tom de Vries  <tom@codesourcery.com>
18802         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
18804 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
18806         * hash-table.h (hash_table::empty): Turn into an inline wrapper
18807         that checks whether the table is already empty.  Rename the
18808         original implementation to...
18809         (hash_table::empty_slot): ...this new private function.
18811 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
18813         PR diagnostic/68899
18814         * diagnostic-show-locus.c (layout::print_source_line): Move x
18815         offset of line until after call to
18816         get_line_width_without_trailing_whitespace.
18818 2016-01-15  Jeff Law  <law@redhat.com>
18820         PR tree-optimization/69270
18821         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
18822         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
18823         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
18824         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
18825         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18826         ssa_name_has_boolean_range and constant_boolean_node.
18828 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
18830         PR rtl-optimization/69030
18831         * lra-spills.c (remove_pseudos): Check nrefs and make the function
18832         returning bool.
18833         (spill_pseudos): Delete debug insn for dead pseudo.
18834         (lra_spill): Initiate spill_hard_reg and slots memory separately.
18836 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
18838         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18839         New.
18840         (TYPES_UNOPUS): Likewise.
18841         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18842         builtin type, from UNOP to UNOPUS.
18843         (lbtruncuv4sf): Likewise.
18844         (lbtruncuv2df): Likewise.
18845         (lrounduv2sf): Likewise.
18846         (lrounduv4sf): Likewise.
18847         (lrounduv2df): Likewise.
18848         (lroundusf): Likewise.
18849         (lroundusf): Likewise.
18850         (lceiluv2sf): Likewise.
18851         (lceiluv4sf): Likewise.
18852         (lceiluv2df): Likewise.
18853         (lceilusf): Likewise.
18854         (lceiludf): Likewise.
18855         (lflooruv2sf): Likewise.
18856         (lflooruv4sf): Likewise.
18857         (lflooruv2df): Likewise.
18858         (lfloorusf): Likewise.
18859         (lfloorudf): Likewise.
18860         (lfrintnuv2sf): Likewise.
18861         (lfrintnuv4sf): Likewise.
18862         (lfrintnuv2df): Likewise.
18863         (lfrintnusf): Likewise.
18864         (lfrintnudf): Likewise.
18865         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18866         conversion.
18867         (vcvtq_u32_f32): Likewise.
18868         (vcvtq_u64_f64): Likewise.
18869         (vcvta_u32_f32): Likewise.
18870         (vcvtaq_u32_f32): Likewise.
18871         (vcvtaq_u64_f64): Likewise.
18872         (vcvtm_u32_f32): Likewise.
18873         (vcvtmq_u32_f32): Likewise.
18874         (vcvtmq_u64_f64): Likewise.
18875         (vcvtn_u32_f32): Likwise.
18876         (vcvtnq_u32_f32): Likewise.
18877         (vcvtnq_u64_f64): Likewise.
18878         (vcvtp_u32_f32): Likewise.
18879         (vcvtpq_u32_f32): Likewise.
18880         (vcvtpq_u64_f64): Likewise.
18881         (vcvtmd_u64_f64): Likewise.
18882         (vcvtms_u32_f32): Likewise.
18883         (vcvtad_u64_f64): Likewise.
18884         (vcvtas_u32_f32): Likewise.
18885         (vcvtnd_u64_f64): Likewise.
18886         (vcvtns_u32_f32): Likewise.
18887         (vcvtpd_u64_f64): Likewise.
18888         (vcvtps_u32_f32): Likewise.
18890 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18892         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18893         CSEL of zero_extended registers.
18895 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18897         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18898         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18900 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18902         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18903         false when argument string is not found in the attributes table
18904         at all.
18906 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
18908         PR target/68609
18909         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18910         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18911         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18912         precision estimate.
18914 2016-01-15  Richard Biener  <rguenther@suse.de>
18916         PR tree-optimization/66856
18917         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18918         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18919         (vect_create_new_slp_node): Increment stmt reference count.
18920         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18921         an SLP tree before swapping operands.
18922         (vect_build_slp_tree): Likewise.
18923         (destroy_bb_vec_info): Free stmt info after SLP instances.
18924         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18925         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18926         (STMT_VINFO_NUM_SLP_USES): New macro.
18928 2016-01-15  Richard Biener  <rguenther@suse.de>
18930         PR debug/69137
18931         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18932         (add_linkage_name): ... here.
18933         (gen_typedef_die): Use add_linkage_name_raw instead of
18934         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18935         if necessary.
18937 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
18939         * gimplify.c (oacc_default_clause): Decode reference and pointer
18940         types for both kernels and parallel regions.
18942 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18944         PR middle-end/69246
18945         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18947 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18949         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18950         (convert_scalars_to_vector): Likewise.
18952 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
18954         * doc/extend.texi (Type Traits): Fix grammar.
18956 2016-01-15  Martin Jambor  <mjambor@suse.cz>
18958         * tree-inline.c (remap_decl): Use existing dclarations if
18959         remapping a type and prevent_decl_creation_for_types.
18960         (replace_locals_stmt): Do an initial remapping of non-VLA typed
18961         decls first.  Do real remapping with
18962         prevent_decl_creation_for_types set.
18963         * tree-inline.h (copy_body_data): New field
18964         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18965         padding.
18967 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18969         * config/s390/s390.opt (mmvcle): More verbose help text.
18971 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18973         * config/s390/s390.opt: Add period to -mzvector option text.
18975 2016-01-15  Richard Biener  <rguenther@suse.de>
18977         PR tree-optimization/68961
18978         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18979         of invariants in stores again.
18981 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18983         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18985 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18987         * config/i386/i386.c (ix86_expand_branch): Don't split
18988         DI mode xor instruction to SI mode.
18990 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18992         PR ipa/68148
18993         * ipa-icf.c (sem_function::merge): Virtual functions may become
18994         reachable even if they address is not taken and there are no
18995         idrect calls.
18997 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18999         * lto-streamer-out.c (subtract_estimated_size): New function.
19000         (get_symbol_initial_value): Use it.
19002 2016-01-15  Christian Bruel  <christian.bruel@st.com>
19004         PR target/65837
19005         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
19006         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
19007         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
19008         use add_builtin_function_ext_scope instead of add_builtin_function.
19009         (neon_set_p, neon_crypto_set_p): Remove.
19010         (arm_init_builtins): Always call arm_init_neon_builtins and
19011         arm_init_crypto_builtins.
19012         (arm_expand_builtin): Check that builtins are allowed for the arch.
19013         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
19014         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
19015         arm_init_neon_builtins call.
19017 2016-01-15  Richard Biener  <rguenther@suse.de>
19019         PR tree-optimization/69117
19020         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
19021         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
19022         of the leader conservatively.
19023         (free_scc_vn): Restore original SSA name infos.
19025 2016-01-14  Jeff Law  <law@redhat.com>
19027         PR tree-optimization/69270
19028         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
19029         single bit of precision, verify it's also unsigned.
19030         (record_edge_info): Use constant_boolean_node rather than fold_convert
19031         to convert boolean_true/boolean_false to the right type.
19033 2016-01-14  Richard Henderson  <rth@redhat.com>
19035         PR rtl-opt/69014
19036         * loop-doloop.c (record_reg_sets): New.
19037         (doloop_optimize): Reject the transform if the sequence
19038         clobbers registers live at the end of the loop block.
19039         (doloop_optimize_loops): Enable df_live if needed.
19041 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19043         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
19044         * config/rs6000/rs6000.c: Likewise.
19045         * config/rs6000/rs6000.h: Likewise.
19046         * config/rs6000/rs6000.md: Likewise.
19047         * doc/extend.texi: Likewsie.
19049 2016-01-14  Jeff Law  <law@redhat.com>
19051         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
19052         typo.
19054 2016-01-14  Richard Henderson  <rth@redhat.com>
19056         PR c/69272
19057         PR tree-opt/68964
19058         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
19059         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
19060         instead of builtin_decl_declared_p to test for declaration.
19062 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
19064         * doc/loop.texi (Loop Analysis and Representation): Document
19065         loop_depth function.
19067 2016-01-14  Tom de Vries  <tom@codesourcery.com>
19069         PR tree-optimization/68773
19070         * omp-low.c (expand_omp_target): Don't set force_output.
19071         * varpool.c (varpool_node::get_create): Same.
19072         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
19073         offload_funcs with force_output.
19075 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
19077         PR debug/69244
19078         * lra-eliminations.c (move_plus_up): Don't change anything if either
19079         the outer or inner subreg mode is not MODE_INT.
19080         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
19081         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
19083 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
19085         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
19086         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
19087         reduc_uplus_@var{m}): Remove.
19088         * expr.c (expand_expr_real_2): Remove expansion path for
19089         reduc_[us](min|max|plus) optabs.
19090         * optabs-tree.c (scalar_reduc_to_vector): Remove.
19091         * optabs-tree.h (scalar_reduc_to_vector): Remove.
19092         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
19093         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
19094         * tree-vect-loop.c (vectorizable_reduction): Remove test for
19095         reduc_[us](min|max|plus) optabs.
19097 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
19099         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
19100         (reduc_plus_scal_v2sf): New.
19101         (reduc_smax_v2sf): Rename to...
19102         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
19103         (reduc_smin_v2sf): Rename to...
19104         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
19106 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
19108         * alias.c (compare_base_symbol_refs): New function.
19109         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
19110         it.
19112 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
19114         PR middle-end/68146
19115         PR tree-optimization/69155
19116         * tree-complex.c: Include cfganal.h.
19117         (phis_to_revisit): New variable.
19118         (extract_component): Add phiarg_p argument.  Assert that returned
19119         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
19120         (update_phi_components): Partly rewrite to use loop over real/imag
19121         components instead of code duplication.  If extract_component returns
19122         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
19123         create_tmp_reg into the PHI node instead, and mention the phi triplet
19124         in phis_to_revisit.
19125         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
19126         in phis_to_revisit at the end.
19128 2016-01-14  Richard Biener  <rguenther@suse.de>
19130         PR tree-optimization/68060
19131         * tree-vect-loop.c (vect_is_simple_reduction): Check the
19132         outer loop reduction is only used in the inner loop before
19133         detecting a double reduction.
19135 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
19137         PR target/68269
19138         * combine.c (expand_field_assignment): Punt if compute_mode is
19139         unsupported scalar mode.
19141 2016-01-14  Richard Biener  <rguenther@suse.de>
19143         PR tree-optimization/66856
19144         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
19145         SLP node only if it built successfully.
19146         (vect_analyze_slp_instance): Adjust.
19148 2016-01-14  Jeff Law  <law@redhat.com>
19150         PR tree-optimization/69270
19151         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
19152         (record_edge_info): Use it.  Convert boolean_{true,false}_node
19153         to the type of op0.
19155 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
19157         PR ipa/66487
19158         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
19159         use block_ultimate_origin
19160         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
19162 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
19164         * doc/invoke.texi (Submodel Options): Rename section to
19165         "Machine-Dependent Options" to better reflect its content.
19166         Rewrite introductory text to remove archaic CPU names.
19167         Update references.
19169 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
19171         * doc/invoke.texi (Code Gen Options): Move section up in file,
19172         before target-specific options.  Update menu and option summary
19173         to reflect the new section ordering.
19175 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
19177         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
19178         (C++ Dialect Options): Add cross-reference to -std option.
19179         * doc/standards.texi (C++ Language): Document C++14 support.
19181 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19183         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
19184         for pack/unpack functions for __ibm128.
19185         (PACK_IF): Likewise.
19186         (UNPACK_IF): Likewise.
19188         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19189         support for __ibm128 pack/unpack functions.
19190         (rs6000_invalid_builtin): Likewise.
19191         (rs6000_init_builtins): Likewise.
19192         (rs6000_opt_masks): Likewise.
19194         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
19195         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
19196         functions
19197         (RS6000_BTM_COMMON): Likewise.
19199         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
19200         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
19201         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
19202         128-bit floating point.  Add support for the double values to be
19203         in Altivec registers for TF/IF packing and unpacking, but restrict
19204         TD packing sub-fields to be FPR registers.  Don't allow overlapped
19205         register support for packing.  Allow pack inputs to be memory
19206         locations.  Don't build generator functions for unpack<mode>_dm
19207         and unpack<mode>_nodm.
19208         (unpack<mode>_dm): Likewise.
19209         (unpack<mode>_nodm): Likewise.
19210         (pack<mode>): Likewise.
19212         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
19213         built-in functions to pack/unpack explicit __ibm128 values.
19214         (__builtin_unpack_ibm128): Likewise.
19216         * doc/extend.texi (PowerPC Built-in Functions): Document
19217         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
19219 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
19221         PR c/66208
19222         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
19223         Add new arg loc and pass it down as context.
19224         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
19225         to the location to use for the warning.
19226         (check_function_arguments): New arg loc.  All callers changed.  Pass
19227         it to check_function_nonnull.
19228         * c-common.h (check_function_arguments): Adjust declaration.
19230 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
19232         PR tree-optimization/69156
19233         * gimple.c (validate_type): Removed.
19234         (gimple_builtin_call_types_compatible_p): Use
19235         useless_type_conversion_p instead of validate_type.
19236         * value-prof.c (gimple_stringop_fixed_value): Fold
19237         icall_size to correct type.
19239 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
19241         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
19242         effects.
19244 2016-01-13  Richard Henderson  <rth@redhat.com>
19246         PR tree-opt/68964
19247         * target.def (builtin_tm_load, builtin_tm_store): Remove.
19248         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
19249         (ix86_builtin_tm_store): Remove.
19250         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
19251         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
19252         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
19253         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
19254         * doc/tm.texi: Rebuild.
19256         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
19257         (BUILT_IN_TM_MEMCPY_RTWN): New.
19258         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
19259         fallback from vector to integer helpers.
19260         (build_tm_load): Handle vector types directly, instead of
19261         via target hook.
19262         (build_tm_store): Likewise.
19263         (expand_assign_tm): Prepare for register types not handled by
19264         the above.  Copy them to memory and use memcpy.
19265         * tree.c (tm_define_builtin): New.
19266         (find_tm_vector_type): New.
19267         (build_tm_vector_builtins): New.
19268         (build_common_builtin_nodes): Call it.
19270 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
19272         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
19273         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
19275 2016-01-13  Tom de Vries  <tom@codesourcery.com>
19277         PR tree-optimization/69169
19278         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
19279         handled_struct_type param.
19280         (create_variable_info_for, intra_create_variable_infos): Call
19281         create_variable_info_for_1 with extra arg.
19283 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
19285         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
19286         and "armv8.1-a+crc" entries.
19288 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
19290         PR target/69228
19291         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
19292         Change first operand predicate from register_or_constm1_operand
19293         to register_operand.
19294         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
19295         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
19296         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
19297         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
19298         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
19299         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
19300         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
19301         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
19302         comparison with constm1_rtx from vec_prefetch_gen part.
19304 2016-01-13  Richard Biener  <rguenther@suse.de>
19306         PR tree-optimization/69013
19307         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
19308         Exchange assert for a test.
19310 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19312         PR target/69247
19313         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
19315 2016-01-13  Richard Biener  <rguenther@suse.de>
19317         PR tree-optimization/69242
19318         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
19319         assert with a check.
19321 2016-01-13  Richard Biener  <rguenther@suse.de>
19323         PR tree-optimization/69186
19324         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19325         Properly guard vect_update_misalignment_for_peel call.
19327 2016-01-12  Jeff Law  <law@redhat.com>
19329         PR tree-optimization/pr67755
19330         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
19331         "need_profile_correction".
19332         (thread_block_1): Initialize new field to false by default.  If we
19333         have multiple thread paths through a common joiner to different
19334         final targets, then set new field to true.
19335         (compute_path_counts): Only do count adjustment when it's really
19336         needed.
19338 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19340         * doc/invoke.texi (Spec Files): Move section down in file, past
19341         all command-line option descriptions.
19343 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19345         PR middle-end/54809
19346         * doc/gty.texi: Remove documentation of mark_hook.
19347         * gengtype.c (struct write_types_data): Remove code to support
19348         mark_hook attribute.
19349         (walk_type): Likewise.
19350         (write_func_for_structure): Likewise.
19352 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19354         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
19355         Directory Options, and -specs= to Overall Options.
19356         (Overall Options): Adjust similarly.  Reorder to group related
19357         options together.  Make -specs= cross-reference the spec file details.
19358         (Directory Options): Adjust similarly.
19360 2016-01-12  Jeff Law  <law@redhat.com>
19362         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
19364 2016-01-12  Olivier Hainque  <hainque@adacore.com>
19366         * gcc.c (spec_undefvar_allowed): New global.
19367         (process_command): Set to true when running for --version or --help,
19368         alone or together.
19369         (getenv_spec_function): When the variable is not defined, use the
19370         variable name as the variable value if we're allowed not to issue
19371         a fatal error.
19373 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
19375         PR tree-optimization/68911
19376         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
19377         information computed for expression "init + nit * step".
19379 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
19381         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
19382         about name of GCC executable.  Remove deleted node from menu.
19383         (Directory Options) <-B>: Remove cross-reference to deleted node.
19384         (Target Options): Delete section.
19386 2016-01-12  Christian Bruel  <christian.bruel@st.com>
19388         PR target/69180
19389         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
19390         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
19392 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
19394         PR target/69198
19395         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
19396         aligned_mem is properly set for AVX512-VL floating point masked
19397         stores.
19399         PR target/69175
19400         * ifcvt.c (cond_exec_process_if_block): When removing the last
19401         insn from then_bb, remove also any possible barriers that follow it.
19403 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
19405         PR target/68456
19406         PR target/69226
19407         * config/i386/iamcu.h (SIZE_TYPE): New macro.
19408         (PTRDIFF_TYPE): Likewise.
19409         (WCHAR_TYPE): Likewise.
19410         (WCHAR_TYPE_SIZE): Likewise.
19411         (STDINT_LONG32): Likewise.
19413 2016-01-12  Richard Biener  <rguenther@suse.de>
19415         PR tree-optimization/69053
19416         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
19417         convert initial value for cond reductions.
19419 2016-01-12  Richard Biener  <rguenther@suse.de>
19421         PR tree-optimization/69007
19422         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
19423         widen_sum after dot_prod and sad.
19425 2016-01-12  Richard Biener  <rguenther@suse.de>
19427         PR tree-optimization/69168
19428         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
19429         pattern stmt SLP type.
19430         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
19431         end up unused so cope with that case.
19433 2016-01-12  Richard Biener  <rguenther@suse.de>
19435         PR tree-optimization/69157
19436         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
19437         stmts def type only during analyze phase.
19438         (vectorizable_call): Likewise.
19439         (vectorizable_simd_clone_call): Likewise.
19440         (vectorizable_conversion): Likewise.
19441         (vectorizable_assignment): Likewise.
19442         (vectorizable_shift): Likewise.
19443         (vectorizable_operation): Likewise.
19444         (vectorizable_store): Likewise.
19445         (vectorizable_load): Likewise.
19447 2016-01-12  Richard Biener  <rguenther@suse.de>
19449         PR tree-optimization/69174
19450         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
19451         space.
19452         (vectorizable_load): Properly compute the number of loads needed
19453         for permuted strided SLP loads and do not spuriously assign
19454         to SLP_TREE_VEC_STMTS.
19456 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
19458         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
19459         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
19460         (MD_EXEC_PREFIX): Remove.
19461         (MD_STARTFILE_PREFIX) Removee.
19462         (FILE_NAME_ABSOLUTE_P): Remove.
19463         (CPP_SPEC): Do not read macros from sys/version.h.
19464         (LINK_COMMAND_SPEC): Remove.
19465         (LOCAL_INCLUDE_DIR): Remove.
19466         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
19467         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
19468         (POST_LINK_SPEC): Define to invoke stubify after linker
19469         (LIBSTDCXX): Remove define
19470         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
19471         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
19472         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
19473         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
19474         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
19475         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
19476         (i386_djgpp_asm_named_section): Add propotype of new procedure
19478         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
19479         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
19480         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
19481         in config/i386/djgpp.h).
19482         (STANDARD_STARTFILE_PREFIX_2): Define identical to
19483         STANDARD_STARTFILE_PREFIX_1.
19484         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
19485         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
19486         installation errors.
19487         (MAX_OFILE_ALIGNMENT): Define to 128.
19488         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
19490         * config/i386/djgpp.c: New file. Add implementation of
19491         i386_djgpp_asm_named_section.
19493         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
19495         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
19496         Add rule for building djgpp.o.
19498 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19500         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
19501         (rtx_is_swappable_p): Reductions are swappable.
19502         (insn_is_swappable_p): V2DF reductions are swappable.
19504 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
19506         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
19507         reloads for other unsupported memory operands.
19509 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19510             Jim Wilson  <jim.wilson@linaro.org>
19512         PR target/69194
19513         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
19514         copy_to_mode_reg instead of force_reg.
19516 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
19518         PR target/69225
19519         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
19520         TARGET_80387 is true.
19522 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
19524         PR target/69071
19525         * lra-eliminations.c (move_plus_up): Only move plus up
19526         if subreg of the constant can be simplified into constant
19527         and use the simplified subreg of the constant instead of
19528         the original constant.
19530         * fold-const.c (fold_convertible_p): Don't return true
19531         for conversion of VECTOR_TYPE to same sized integral type.
19532         (fold_convert_loc): Fix up formatting.  Fold conversion of
19533         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
19534         instead of NOP_EXPR.
19536         PR tree-optimization/69214
19537         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
19538         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19539         Formatting fix.
19541         PR tree-optimization/69207
19542         * tree-vect-slp.c (vect_get_constant_vectors): For
19543         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
19544         fold_convertible_p to vector_type's element type, and always
19545         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
19547 2016-01-11  Richard Biener  <rguenther@suse.de>
19549         PR tree-optimization/69173
19550         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
19551         fixup the cycle if all stmts are in a pattern.
19553 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
19555         PR middle-end/68999
19556         * alias.c (base_alias_check): Move check for addresses with
19557         alignment ANDs before the call for compare_base_decls.
19558         (memrefs_conflict_p): Return -1 for different decls
19559         that went through alignment adjustments.
19561 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19563         PR rtl-optimization/68796
19564         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
19565         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
19566         and QImode comparisons against zero with CC_NZmode.
19567         * config/aarch64/iterators.md (short_mask): New mode_attr.
19569 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
19571         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
19572         (<avx512>_store<mode>_mask): Likewise.
19574 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
19575             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19577         PR rtl-optimization/68841
19578         * ifcvt.c (struct noce_if_info): Add orig_x field.
19579         (bbs_ok_for_cmove_arith): Add to_rename parameter.
19580         Don't record conflicts on to_rename if it's present.
19581         Allow memory destinations in sets.
19582         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
19583         blocks, passing orig_x to the checks.
19584         (noce_process_if_block): Set if_info->orig_x appropriately.
19586 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19588         PR tree-optimization/69069
19589         * tree-parloops.c (create_parallel_loop): Add missing phi args.
19591 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
19593         PR rtl-optimization/68920
19594         * config/i386/i386.c (ix86_option_override_internal): Restrict number
19595         of conditional moves for  RTL if-conversion to 1 for
19596         TARGET_ONE_IF_CONV_INSN.
19597         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
19598         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
19599         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
19600         parameter to restirct number of conditional moves for
19601         RTL if-conversion.
19602         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
19603         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
19604         conditionl moves.
19606 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
19608         PR bootstrap/69123
19609         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
19610         onepart vars.  Fix typo in comment.  Fix reversed condition in
19611         unshare test.
19612         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
19614         PR bootstrap/69123
19615         * var-tracking.c (dump_onepart_variable_differences): New.
19616         (dataflow_set_different): If a detailed dump is requested,
19617         delay early returns and dump differences between onepart
19618         variables present before and after, and added variables.
19620 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19622         PR target/69010
19623         * expr.c (expand_expr_real_1): For boolean vector constants
19624         with a scalar mode use const_scalar_mask_from_tree.
19625         (const_scalar_mask_from_tree): New.
19626         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
19627         assigned to a mask type to handle constants.
19629 2016-01-11  Martin Jambor  <mjambor@suse.cz>
19631         PR ipa/69044
19632         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
19633         useless parameters if we cannot change function signature.
19635 2016-01-11  Martin Jambor  <mjambor@suse.cz>
19637         PR ipa/66616
19638         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
19639         flag.
19641 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19643         PR tree-optimization/69109
19644         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
19645         latch with phi.
19647 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19649         PR tree-optimization/69108
19650         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
19651         res is not used in a phi.
19653 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
19655         PR 67425
19656         * common.opt (frandom-seed): Fix parameter name.
19657         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
19659 2016-01-11  Tom de Vries  <tom@codesourcery.com>
19661         PR tree-optimization/69058
19662         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
19663         not supported.
19665 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
19667         * config/arc/arc.opt (mdiv-rem): Add period to the end.
19668         (mcode-density): Likewise.
19670 2016-01-10  Tom de Vries  <tom@codesourcery.com>
19672         PR tree-optimization/69062
19673         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
19674         (parallelize_loops): Don't paralelize loop that has phi with address
19675         arg.
19677 2016-01-10  Tom de Vries  <tom@codesourcery.com>
19679         PR tree-optimization/69039
19680         * tree-parloops.c (try_create_reduction_list): Only allow single exit
19681         phi for reduction.
19683 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
19685         PR middle-end/68743
19686         * match.pd: Require target has function_c99_misc before doing
19687         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
19689 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
19691         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
19692         use GMPINC.
19693         * configure: Regenerate.
19695 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
19697         PR middle-end/50865
19698         PR tree-optimization/69097
19699         * fold-const.h (expr_not_equal_to): New prototype.
19700         * fold-const.c: Include stringpool.h and tree-ssanames.h.
19701         (expr_not_equal_to): New function.
19702         * match.pd (X % -Y is the same as X % Y): Don't optimize
19703         unless X is known not to be equal to minimum or Y is known
19704         not to be equal to -1.
19705         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
19706         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
19707         (simplify_stmt_using_ranges): Adjust caller.
19708         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
19709         substitute_and_fold.
19711 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
19713         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
19714         w/o DECL_NAME.
19716 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19718         PR tree-optimization/69167
19719         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
19720         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
19721         ops[0] comparison.
19722         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
19724 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
19725             Richard Biener  <rguenther@suse.de>
19727         PR tree-optimization/68707
19728         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
19729         instances that can be handled via vect_load_lanes.
19731 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
19733         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
19734         if we can't determine address equivalence.
19735         * alias.c (compare_base_decl): Update for changed return value of
19736         symtab_node::equal_address_to.
19738 2016-01-08  Jason Merrill  <jason@redhat.com>
19740         PR c++/68983
19741         PR c++/67557
19742         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
19743         * expr.c (store_field): Not here.
19744         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
19745         call with TREE_ADDRESSABLE type.
19746         * tree-cfg.c (verify_gimple_call): Adjust.
19748 2016-01-08  Olivier Hainque  <hainque@adacore.com>
19750         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
19751         libc_internal.
19753 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
19755         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
19756         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
19757         (reduc_smin_v2sf): Rename to...
19758         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
19759         (reduc_splus_v2sf): Rename to...
19760         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
19762 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19764         PR tree-optimization/69162
19765         * gimplify.c (gimplify_va_arg_expr): Encode original type of
19766         valist argument in another argument.
19767         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
19768         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
19769         to determine the va_list type, build a MEM_REF instead of
19770         build_fold_indirect_ref.
19772         PR tree-optimization/69172
19773         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
19774         gimple_build.
19776 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19778         PR tree-optimization/67781
19779         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
19780         and cmpnop in two steps: first the ones not accessed in original
19781         gimple expression in a endian independent way and then the ones not
19782         accessed in the final result in an endian-specific way.
19784 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
19786         PR tree-optimization/69083
19787         * tree-vect-slp.c (vect_get_constant_vectors): For
19788         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
19789         element type.  If op is fold_convertible_p to vector_type's element
19790         type, use NOP_EXPR instead of VCE.
19792 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
19794         PR rtl-optimization/67778
19795         PR rtl-optimization/68634
19796         PR rtl-optimization/68909
19797         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
19798         block from the stack until done with it.  Remove a superfluous
19799         bitmap set.  Remove a superfluous bitmap test.
19801 2016-01-07  Martin Sebor  <msebor@redhat.com>
19803         PR c/68966
19804         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
19805         constraint on the type of arguments.
19807 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
19809         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
19810         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
19811         unaligned_access on the gcc_options set.
19812         * config/arm/arm.c (arm_option_override_internal): Use
19813         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
19815 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
19817         PR target/69140
19818         * config/i386/i386.c (ix86_frame_pointer_required): Enable
19819         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
19821 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
19823         Revert
19824         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19826         PR target/69140
19827         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19828         depending on frame_pointer_needed before remaining integer and SSE
19829         registers are saved.
19831 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
19833         PR 1078
19834         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19836 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19838         PR target/69171
19839         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19840         Use the "xBm" constraint.
19841         (float<sseintvecmodelower><mode>2<mask_name><round_name):
19842         Likewise.
19843         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19844         (sse_cvtsi2ssq<round_name>): Likewise.
19845         (sse_cvtss2si<round_name>): Likewise.
19846         (sse_cvtss2siq<round_name>): Likewise.
19847         (sse2_cvtsi2sdq<round_name>): Likewise.
19848         (sse2_cvtsd2si<round_name>): Likewise.
19849         (sse2_cvtsd2siq<round_name>): Likewise.
19850         * config/i386/subst.md (round_nimm_scalar_predicate): New
19851         predicate.
19853 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
19855         PR middle-end/67639
19856         * varasm.c (make_decl_rtl): Mark invalid register vars as
19857         DECL_EXTERNAL.
19859         PR rtl-optimization/66206
19860         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19861         All callers changed.
19863 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
19865         PR tree-optimization/69141
19866         * tree-ssa-pre.c: Include langhooks.h.
19867         (eliminate_dom_walker::before_dom_children): Use
19868         lang_hooks.decl_printable_name instead of
19869         cgraph_node::get ()->name ().
19871         PR middle-end/68960
19872         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19873         it and DECL_ALIGN too.
19875 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
19877         * config/mips/mips-ftypes.def: Sort to lexicographical order.
19879 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19881         PR target/69140
19882         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19883         depending on frame_pointer_needed before remaining integer and SSE
19884         registers are saved.
19886 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19888         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19889         mode iterator with VSX_M2.
19890         (*p9_vecstore_<mode>): Likewise.
19891         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19892         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19893         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19894         (define_split for VSX_LE128 stores): Likewise.
19895         (define_peephole2 for TImode LE swaps): Likewise.
19896         (define_split for VSX_LE128 post-reload stores): Likewise.
19898 2016-01-06  Marek Polacek  <polacek@redhat.com>
19900         PR sanitizer/69099
19901         * convert.c (convert_to_integer_1): Adjust call to
19902         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
19903         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
19904         EXPR instead of ARG.
19905         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19907 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19909         PR 1078
19910         * doc/extend.texi (RL78 Variable Attributes): New section.
19912 2016-01-05  Marek Polacek  <polacek@redhat.com>
19914         PR c/69104
19915         * builtins.c (get_memmodel): Use expansion point location rather than
19916         the input location.  Call warning_at rather than warning.
19917         (expand_builtin_atomic_compare_exchange): Likewise.
19918         (expand_builtin_atomic_load): Likewise.
19919         (expand_builtin_atomic_store): Likewise.
19920         (expand_builtin_atomic_clear): Likewise.
19922 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19924         PR target/68991
19925         * config/i386/i386.c (ix86_expand_vector_logical_operator):
19926         Replace nonimmediate_operand with vector_operand.
19927         * config/i386/predicates.md (vector_operand): New predicate.
19928         (general_vector_operand): Replace nonimmediate_operand with
19929         vector_operand.
19930         * config/i386/sse.md: Replace nonimmediate_operand with
19931         vector_operand and m constraint with Bm constraint on SSE
19932         patterns with 16-byte memory operand.
19933         * config/i386/subst.md (round_nimm_predicate): Replace
19934         nonimmediate_operand with vector_operand.
19935         (round_saeonly_nimm_predicate): Likewise.
19936         (round_saeonly_nimm_scalar_predicate): New.
19938 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19940         PR target/68991
19941         * config/i386/constraints.md (Bm): New constraint.
19942         * config/i386/predicates.md (vector_memory_operand): New
19943         predicate.
19944         * config/i386/sse.md: Replace xm with xBm in plusminus and
19945         any_logic patterns.
19947 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19949         PR 1078
19950         * doc/extend.texi (V850 Function Attributes): New section.
19951         (V850 Variable Attributes): New section.
19953 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19955         PR 1078
19956         * doc/extend.texi (MicroBlaze Function Attributes): Document
19957         interrupt_handler and fast_interrupt attributes.
19959 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
19961         PR other/60465
19962         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19963         for local symbolic operands.
19964         * config/ia64/predicates.md (local_symbolic_operand64): New
19965         predicate.
19967 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19969         PR rtl-optimization/68651
19970         * combine.c (combine_simplify_rtx): Canonicalize x + x into
19971         x << 1.
19973 2016-01-05  Nathan Sidwell  <nathan@acm.org>
19975         * alias.c (compare_base_decls): Use symtab_node::get.
19977 2016-01-05  Nick Clifton  <nickc@redhat.com>
19979         PR target/68770
19980         * ira-costs.c (copy_cost): Initialise the t_icode field of the
19981         secondary_reload_info structure.
19983         PR target/66655
19984         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19985         decls if weak support is available.
19987 2016-01-04  Martin Sebor  <msebor@redhat.com>
19989         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19991 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
19993         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19994         OPTION_MASK_P9_DFORM.
19996         * config/rs6000/constraints.md (wo constraint): New constraint for
19997         ISA 3.0 (power9).
19999         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
20000         for wo constraint.
20001         (rs6000_init_hard_regno_mode_ok): Likewise.
20003         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
20004         wo constraint.
20006         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
20007         expanders not to have constraints.  Add support for ISA 3.0 xxperm
20008         instruction.  Add support for fusing xxlor with xxperm.
20009         (altivec_vperm_<mode>_internal): Likewise.
20010         (altivec_vperm_v8hiv16qi): Likewise.
20011         (altivec_vperm_<mode>v16q): Likewise.
20012         (altivec_vperm_<mode>_uns): Likewise.
20013         (vperm_v8hiv4si): Likewise.
20014         (vperm_v16qiv8hi): Likewise.
20016         * doc/md.texi (RS/6000 constraints): Document wo constraint.
20018 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
20020         Update copyright years.
20022         * gcc.c (process_command): Update copyright notice dates.
20023         * gcov-dump.c (print_version): Ditto.
20024         * gcov.c (print_version): Ditto.
20025         * gcov-tool.c (print_version): Ditto.
20026         * gengtype.c (create_file): Ditto.
20027         * doc/cpp.texi: Bump @copying's copyright year.
20028         * doc/cppinternals.texi: Ditto.
20029         * doc/gcc.texi: Ditto.
20030         * doc/gccint.texi: Ditto.
20031         * doc/gcov.texi: Ditto.
20032         * doc/install.texi: Ditto.
20033         * doc/invoke.texi: Ditto.
20035 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20037         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
20038         modes larger than TImode as TImode if NEON is not enabled.
20040 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20042         PR target/69100
20043         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
20044         mode for %f0-%f31 only if TARGET_FPU.
20046 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20048         PR target/69072
20049         * config/sparc/sparc.c (scan_record_type): Take into account subfields
20050         to compute the PACKED_P predicate.
20051         (function_arg_record_value): Minor tweaks.
20053 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20055         * doc/install.texi (--with-multilib-list): Describe the meaning of the
20056         option for arm*-*-* targets.
20058 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
20060         * doc/extend.texi (Common Function Attributes): Move docs for
20061         MSP430-specific attributes to....
20062         (MSP430 Function Attributes): ...here.  Delete the redundant
20063         entries and copy-edit the remaining text.
20064         (MSP430 Variable Attributes): Use uniform format for index
20065         entries and add a cross-reference to the corresponding function
20066         attribute docs.
20068 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
20070         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
20071         -finite-math typo.
20072         (x86 Options): Likewise.
20074 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
20076         PR 1078
20078         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
20079         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
20080         to corresponding attribute.
20082 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
20084         * doc/extend.texi (Common Function Attributes) <noplt>: Move
20085         to correct alphabetization of table.  Copy-edit and correct
20086         markup.
20087         <stack_protect>: Likewise.
20088         <target_clones>: Likewise.
20089         <simd>: Likewise.
20090         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
20091         Correct punctuation.
20092         (Code Gen Options) <-fno-plt>: Copy-edit.
20094 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20096         PR target/68917
20097         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
20098         SI values.  Explicitly convert SI to DI and vice-versa.
20100 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
20102         PR tree-optimization/69070
20103         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
20104         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
20106         PR sanitizer/69055
20107         * ubsan.c (ubsan_instrument_float_cast): Call
20108         initialize_sanitizer_builtins.
20110         PR target/69015
20111         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
20113 Copyright (C) 2016 Free Software Foundation, Inc.
20115 Copying and distribution of this file, with or without modification,
20116 are permitted in any medium without royalty provided the copyright
20117 notice and this notice are preserved.