Fix thinko in indirect_jump_optimize
[official-gcc.git] / gcc / ChangeLog
blob7359f0b483e96f2a0fe644812986d12bb7f41827
1 2016-03-16  Alan Modra  <amodra@gmail.com>
3         PR rtl-optimization/69195
4         PR rtl-optimization/47992
5         * ira.c (indirect_jump_optimize): Ignore artificial defs.
6         Add comments.
8 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10         PR bootstrap/69513
11         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
17 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
19         PR rtl-optimization/70222
20         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21         optimization if mode is different from result_mode, queue up masking
22         of the result in outer_op.  Formatting fix.
24         PR middle-end/70239
25         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26         of safe_grow.
28 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
30         PR rtl-optimization/69032
31         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
32         looping backwards over basic block insns. 
34 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
36         PR target/66660
37         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
38         to non-speculative when propagating trap bits. 
40 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
42         PR rtl-optimization/63384
43         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
44         DEBUG_INSN_P insns. 
46 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
48         PR target/64411
49         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
50         factored out from ...
51         (sched_analyze_insn): ... here.
52         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
53         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
54         get_implicit_reg_pending_clobbers in it.
55         (setup_id_reg_sets): Use setup_id_implicit_regs.
56         (deps_init_id): Ditto.
58 2016-03-15  Tom de Vries  <tom@codesourcery.com>
60         PR ipa/70161
61         * cgraph.c (cgraph_node::get_body): Save, reset and restore
62         dump_file_name.
63         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
64         execute_function_dump.
65         (execute_one_pass): Don't dump function if it will be dumped after ipa
66         transform.
68 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
70         * genrecog.c (match_pattern_2): If pred is NULL don't call
71         safe_predicate_mode on it.
73 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
75         PR middle-end/70219
76         * lra-constraints.c (delete_move_and_clobber): Change assertion
77         to also allow dregno == 0.
79 2016-03-14  Richard Henderson  <rth@redhat.com>
81         PR tree-opt/68714
82         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
83         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
84         (reassociate_bb): Use optimize_vec_cond_expr; avoid
85         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
86         on vectors.
88 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
90         PR target/70083
91         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
92         regs.
93         (lra_create_live_ranges_1): initialize hard register biggest_mode to
94         VOIDmode.
95         * lra-constraints.c (split_reg): For hard regs, try to find the
96         biggest single-register mode used in the function.
98 2016-03-14  Richard Biener  <rguenther@suse.de>
100         PR tree-optimization/56365
101         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
102         constants to compare against.
104 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
106         PR target/70098
107         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
108         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
109         (define_split for the GPR case): Use int_reg_operand instead of
110         gpc_reg_operand for the output.
112 2016-03-14  Tom de Vries  <tom@codesourcery.com>
114         PR tree-optimization/70045
115         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
116         create_empty_if_region_on_edge argument.
118 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
120         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
121         (STACK_CHECK_PROTECT): Likewise.
122         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
123         (STACK_CHECK_PROTECT): Likewise.
124         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
125         (STACK_CHECK_PROTECT): Likewise.
126         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
127         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
128         (STACK_CHECK_PROTECT): Likewise.
130 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
132         PR rtl-optimization/69307
133         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
134         registers in modes that span more than one register.
136 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
138         PR target/69614
139         * lra-constraints.c (delete_move_and_clobber): New.
140         (remove_inheritance_pseudos): Use it.
142 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
144         PR ada/70017
145         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
146         the libcall is LCT_THROW.
147         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
148         for the checking routine.
150 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
152         PR target/70131
153         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
154         optimization if we have direct move.
155         (roundu32<mode>2_fprs): Likewise.
157 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
159         PR target/70123
160         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
161         be rematerialized.
162         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
163         Arguments swapped.  All callers changed.  Take reg_renumber into
164         account, and Calculate and compare register ranges for hard regs.
166 2016-03-11  Jeff Law  <law@redhat.com>
168         PR tree-optimization/70190
169         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
170         Handle cases where we can not extract the taken edge, even though we
171         found a constant value.
173         PR tree-optimization/64058
174         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
175         (num_coalesce_pairs): Move up earlier in file.
176         (find_coalesce_pair): Initialize the INDEX field for each pair
177         discovered.
178         (compare_pairs): No longer sort on the elements in each pair.
179         Instead break ties with the index of the coalesce pair.
181 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
183         PR target/70002
184         * config/aarch64/aarch64-protos.h
185         (aarch64_save_restore_target_globals): New prototype.
186         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
187         Call the above when popping pragma.
188         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
189         New function.
190         (aarch64_set_current_function): Rewrite using the above.
192 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
194         PR tree-optimization/70177
195         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
196         (extract_ops_from_tree): ... this.  In the 2 argument
197         overload remove _1 suffix.
198         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
199         (extract_ops_from_tree): ... this.
200         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
201         Adjust callers.
202         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
203         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
204         extract_ops_from_tree instead of 2 operand one.
206 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
208         PR tree-optimization/70013
209         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
210         for constant-pool entries.
212 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
214         PR rtl-optimization/70174
215         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
216         followed by gen_lowpart on force_reg instead of just gen_lowpart.
218         PR tree-optimization/70169
219         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
220         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
221         for unknown codes.
223 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
224             Jakub Jelinek  <jakub@redhat.com>
226         PR target/70160
227         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
228         of uninitialized values.
230 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
232         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
233         define_expand.
234         ("*trunctddd2"): New pattern definition.
235         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
236         TD->DD truncation.
238 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
240         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
241         definitions for BFP and DFP rounding modes.
242         ("fixuns_truncdddi2", "fixuns_trunctddi2")
243         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
244         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
245         ("fix_trunctf<mode>2"): Use the new constants instead of magic
246         numbers.
248 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
250         * config/s390/constraints.md: Adjust comment.
251         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
252         s390_decompose_addrstyle_without_index.
253         * config/s390/predicates.md (shift_count_or_setmem_operand):
254         Rename to setmem_operand.
255         * config/s390/s390-protos.h
256         (s390_decompose_shift_count): Rename to
257         s390_decompose_addrstyle_without_index.
258         * config/s390/s390.c (s390_decompose_shift_count)
259         (s390_mem_constraint, print_shift_count_operand)
260         (print_operand_address, print_operand): Rename
261         s390_decompose_shift_count to
262         s390_decompose_addrstyle_without_index and rename
263         print_shift_count_operand to print_addrstyle_operand troughout the
264         file.
265         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
266         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
267         Rename shift_count_or_setmem_operand to setmem_operand.
268         * config/s390/vx-builtins.md ("vec_insert<mode>")
269         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
270         nonmemory_operand.
272 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
274         PR target/70168
275         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
276         Handle overlapping retval and newval.
278 2016-03-10  Nick Clifton  <nickc@redhat.com>
280         PR target/7044
281         * config/aarch64/aarch64.c
282         (aarch64_override_options_after_change_1): When forcing
283         flag_omit_frame_pointer to be true, use a special value that can
284         be detected if this function is called again, thus preventing
285         flag_omit_leaf_frame_pointer from being forced to be false.
287 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
289         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
290         Set x_flag_omit_leaf_frame_pointer when handling
291         -momit-leaf-frame-pointer.
293 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
295         PR lto/69589
296         * cgraph.c (cgraph_node::dump): Dump split_part and indirect_call_target.
297         * cgraph.h (cgraph_node): Add indirect_call_target flag.
298         * ipa.c (has_addr_references_p): Cleanup.
299         (is_indirect_call_target_p): New.
300         (walk_polymorphic_call_targets): Do not mark virtuals that may be
301         called indirectly as local.
302         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
304 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
306         PR ipa/69630
307         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
308         on cxa_pure_virtual.
310 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
312         PR lto/69589
313         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
315 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
317         PR lto/69589
318         * tree.c (need_assembler_name_p): Only record main variant type names.
320 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
322         PR target/70113.
323         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
324         Always define to 0 or 1.
325         (TARGET_FIX_ERR_A53_843419): New macro.
326         * config/aarch64/aarch64-elf-raw.h
327         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
328         * config/aarch64/aarch64-linux.h: Likewise.
329         * config/aarch64/aarch64.c
330         (aarch64_override_options_after_change_1): Do not default
331         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
332         843419 is on.
333         (aarch64_attributes): Handle fix-cortex-a53-843419.
334         (aarch64_can_inline_p): Likewise.
335         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
337 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
338         Jakub Jelinek <jakub@redhat.com>
340         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
341         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
342         DECL_COMMONS if flag_unconstrained_commons is set.
343         * tree-dfa.c (get_ref_base_and_extent): Likewise.
344         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
345         (funconstrained-commons): Document.
347 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
349         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
350         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
352 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
354         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
355         has a proper number of elements.
357 2016-03-10  Alan Modra  <amodra@gmail.com>
359         PR rtl-optimization/69195
360         PR rtl-optimization/47992
361         * ira.c (recorded_label_ref): Delete.
362         (update_equiv_regs): Return void.
363         (indirect_jump_optimize): New function.
364         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
365         before regstat_compute_ri.  Don't rebuild_jump_labels here.
366         Delete update_regstat.
368 2016-03-10  Richard Biener  <rguenther@suse.de>
370         PR tree-optimization/70128
371         * tree-ssa-structalias.c (set_uids_in_ptset): Set
372         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
374 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
376         PR tree-optimization/70152
377         * tree-sra.c (replace_removed_params_ssa_names): Copy over
378         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
380         PR target/70086
381         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
382         instead of gen_sse2_loadlpd.
383         * config/i386/sse.md (*vec_concatv2df): Rename to...
384         (vec_concatv2df): ... this.
386         PR tree-optimization/70127
387         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
389 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
391         PR c/68473
392         PR c++/70105
393         * diagnostic-show-locus.c (compatible_locations_p): New function.
394         (layout::layout): Sanitize ranges using compatible_locations_p.
396 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
398         PR c/68473
399         PR c++/70105
400         * diagnostic-show-locus.c (layout_range::layout_range): Replace
401         location_range param with three const expanded_locations * and a
402         bool.
403         (layout::layout): Replace call to
404         rich_location::lazily_expand_location with get_expanded_location.
405         Extract the range and perform location expansion here, passing
406         the results to the layout_range ctor.
407         * diagnostic.c (source_range::debug): Delete.
408         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
409         of rich_location::get_expanded_location.
410         * gcc-rich-location.c (get_range_for_expr): Delete.
411         (gcc_rich_location::add_expr): Reimplement to avoid the
412         rich_location::add_range overload that took a location_range,
413         passing a location_t instead.
415 2016-03-09  Richard Biener  <rguenther@suse.de>
416         Jakub Jelinek  <jakub@redhat.com>
418         PR tree-optimization/70138
419         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
420         Also skip vect_double_reduction_def.
422 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
424         PR target/70049
425         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
426         if the operand is "m".
428 2016-03-09  Nathan Sidwell  <nathan@acm.org>
430         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
432 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
434         * config/i386/i386.c (processor_target_table): Fix cost table
435         intialization order for znver1.
437 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
439         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
440         - becuase -> because.
441         * ipa-reference.c (ignore_module_statics): Likewise.
442         * cgraph.c (cgraph_node::get_body): Likewise.
443         * ipa-inline.c (early_inliner): Likewise.
444         * ipa-devirt.c (types_same_for_odr): Likewise.
445         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
446         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
448 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
450         * tree-ssa-math-opts.c: Fix typo in comment.
452 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
454         PR target/70110
455         * config/i386/i386.c (scalar_chain::make_vector_copies,
456         scalar_chain::convert_reg): Call end_sequence in between
457         get_insns and emit_conversion_insns rather than after both
458         calls.
460 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
462         PR target/70064
463         * config/i386/i386.h (machine_function): Add
464         pc_thunk_call_expanded flag.
465         (ix86_pc_thunk_call_expanded): New define.
466         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
467         (*set_got): Rename insn pattern from set_got.
468         (*set_got_labelled): Rename inst pattern from set_got_labelled.
469         * config/i386/i386.c (ix86_compute_frame_layout): Use
470         ix86_pc_thunk_call_expanded to prevent red-zone.
472 2016-03-07  Martin Jambor  <mjambor@suse.cz>
474         * hsa.h (hsa_get_ctor_statements): Declare.
475         (hsa_get_dtor_statements): Likewise.
476         (hsa_get_kernel_dispatch_type): Likewise.
477         * hsa.c (hsa_get_ctor_statements): New function.
478         (hsa_get_dtor_statements): Likewise.
479         (hsa_get_kernel_dispatch_type): Likewise.
480         * hsa-brig.c (hsa_cdtor_statements): Removed.
481         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
482         hsa_get_dtor_statements.
483         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
484         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
486 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
488         * config/arm/arm-cores.def (cortex-r8): New.
489         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
490         * config/arm/arm-tune.md: Likewise.
491         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
493 2016-03-07  Martin Sebor  <msebor@redhat.com>
495         PR rtl-optimization/19705
496         * doc/invoke.texi (Options That Control Optimization): Clarify
497         -fno-branch-count-reg.
499 2016-02-26  Richard Biener  <rguenther@suse.de>
500             Jeff Law  <law@redhat.com>
502         PR tree-optimization/69740
503         * cfghooks.c (remove_edge): Request loop fixups if we delete
504         an edge that might turn an irreducible loop into a natural
505         loop.
506         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
507         Move after definition of loops_state_clear.
509 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
511         PR rtl-optimization/69052
512         * rtlanal.c (commutative_operand_precedence): Set higher precedence
513         to CONST_WIDE_INT.
515 2016-03-07  Tom de Vries  <tom@codesourcery.com>
517         PR tree-optimization/70116
518         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
519         is_tm_ending stmts and ubsan/asan internal functions.
520         (find_duplicate): Use it.  Don't test is_tm_ending here.
522 2016-03-07  Richard Biener  <rguenther@suse.de>
524         PR tree-optimization/70115
525         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
526         (propagate_constants_for_unrolling): Use replace_uses_by.
528 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
530         PR middle-end/69916
531         * omp-low.c (struct oacc_loop): Add ifns.
532         (new_oacc_loop_raw): Initialize it.
533         (finish_oacc_loop): Clear mask & flags if no ifns.
534         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
535         (oacc_loop_xform_loop): Add ifns arg & adjust.
536         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
538 2016-03-07  Richard Henderson  <rth@redhat.com>
540         PR rtl-opt/70061
541         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
542         (insert_value_copy_on_edge): Likewise.
544 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
546         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
548 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
550         PR target/62281
551         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
553 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
555         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
557 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
559         Fix sseimul type attribute.
560         * config/i386/znver1.md
561         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
562         znver1_sseimul_avx256_load) : Fix the type attribute.
563         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
564         pipe usage and latency.
566 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
568         PR c++/70084
569         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
570         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
571         to the right type.
573 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
575         PR c/69973
576         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
578         PR rtl-optimization/69941
579         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
580         the reg share its mode.
582 2016-03-04  Jeff Law  <law@redhat.com>
584         PR tree-optimization/69196
585         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
586         If the both SSA_NAMEs are anonymous, then consider them unassociated
587         and include the PHI in the statement count.
589 2016-03-05  Tom de Vries  <tom@codesourcery.com>
591         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
592         construct in oacc routine.  Check for oacc region in oacc routine.
594 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
596         PR target/70062
597         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
598         2016-02-22 changes, instead don't recurse if RECUR is already true.
599         Don't change *dynamic_check if RECUR.  Adjust recursive caller
600         to pass true to the new argument.
601         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
603         PR target/70059
604         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
605         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
606         fixes.
607         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
609 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
611         PR rtl-optimization/57676
612         * lra-assigns.c (lra_assign): Guard test for maximum iterations
613         with flag_checking.
615 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
617         * tree-vect-patterns.c (search_type_for_mask): Handle
618         comparison of booleans.
620 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
622         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
623         Fix @xref usage.
625         PR debug/69947
626         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
627         all other ops that have dw_val_class_die_ref operands,
628         and DW_OP_GNU_entry_value.
630 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
632         PR rtl-optimization/69904
633         * config/arm/arm.c (arm_cannot_copy_insn_p):
634         Return true for load-exclusive instructions.
636 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
638         PR target/70021
639         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
640         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
641         the pattern no matter if it is used just by non-pattern, pattern
642         or mix thereof.
643         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
644         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
645         oprnd1 def_stmt is in pattern, don't look through it.
647 2016-03-03  Marek Polacek  <polacek@redhat.com>
649         PR middle-end/70050
650         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
652 2016-03-03  Martin Liska  <mliska@suse.cz>
654         PR tree-optimization/70043
655         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
656         previous statement if we see a debug statement.
658 2016-03-03  Richard Biener  <rguenther@suse.de>
660         PR tree-optimization/55936
661         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
662         parameter and guard unsafe equivalence use.
663         (vrp_evaluate_conditional_warnv_with_ops): Always use
664         safe equivalences but not via the quadratic compare_names
665         helper.
667 2016-03-03  Michael Collison  <michael.collison@linaro.org>
669         PR target/70014
670         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
671         for operand 1 to s_register_operand. Change predicate for operand
672         2 to arm_not_immediate_operand.
674 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
676         * doc/tm.texi: Regenerated.
678 2016-03-02  Richard Henderson  <rth@redhat.com>
680         PR rtl-opt/67145
681         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
682         simplification when all args are positive non-fixed registers.
684 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
686         * target.def (lra_p): Specify that new ports should use LRA.
688 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
690         PR libgomp/69555
691         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
692         gimplify_type_sizes the type they refer to.
693         (omp_notice_variable): Handle reference vars to VLAs.
694         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
695         reference to VLA decls in the second pass instead of first pass.
697 2016-03-02  Tom de Vries  <tom@codesourcery.com>
699         PR tree-optimization/68659
700         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
701         new_expr == NULL_TREE.
702         (get_new_name): Handle ADDR_EXPR.
704 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
706         PR rtl-optimization/69052
707         * loop-invariant.c (canonicalize_address): New function.
708         (inv_can_prop_to_addr_use): Check validity of address expression
709         which is canonicalized by above function.
711 2016-03-02  Alan Modra  <amodra@gmail.com>
713         PR ipa/69990
714         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
715         larger alignment.
717 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
719         PR target/70028
720         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
721         (*movhi_internal): Put mask moves from and to memory separately
722         from moves from/to GPRs.
724 2016-03-02  Richard Biener  <rguenther@suse.de>
726         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
727         GENERIC expressions in GIMPLE.
729 2016-03-02  Richard Biener  <rguenther@suse.de>
731         * config/i386/i386.c (type_natural_mode): Fix typo.
733 2016-03-02  Nick Clifton  <nickc@redhat.com>
735         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
737 2016-03-02  Richard Biener  <rguenther@suse.de>
738             Uros Bizjak  <ubizjak@gmail.com>
740         PR target/67278
741         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
743 2016-03-02  Richard Biener  <rguenther@suse.de>
745         PR middle-end/67278
746         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
748 2016-03-02  Marek Polacek  <polacek@redhat.com>
750         PR c/67854
751         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
752         "is promoted to" warning.
754 2016-03-01  DJ Delorie  <dj@redhat.com>
756         * config.gcc: Deprecate mep-*.
758 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
760         PR middle-end/70025
761         * lra-constraints.c (regno_val_use_in): New.
762         (match_reload): Use it instead of regno_use_in.
764 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
766         PR rtl-optimization/70007
767         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
768         references present in REG_EQUAL notes attached to non-SET patterns.
770 2016-03-01  Jeff Law  <law@redhat.com>
772         PR tree-optimization/69196
773         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
774         Appropriately clamp the number of statements to copy when the
775         thread path does not traverse a loop backedge.
777         PR tree-optimization/69196
778         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
779         Do count some PHIs in the thread path against the insn count.  Decrease
780         final statement count by one as the control statement in the last
781         block will get removed.  Remove special cased code for handling PHIs
782         in the last block.
784 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
786         PR target/70027
787         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
788         asm dialect alternatives to explicit GOTPCREL calls.
790 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
792         PR ada/70017
793         * ira.c (do_reload): Issue warning for generic stack checking here...
794         * reload1.c (reload): ...instead of here and streamline it.
796 2016-03-01  Nick Clifton  <nickc@redhat.com>
798         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
800 2016-03-01  Richard Biener  <rguenther@suse.de>
802         PR tree-optimization/69983
803         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
804         types and fall back to operand_equal_p.
806 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
808         Revert
809         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
811         * config/s390/constraints.md ("jm8"): New constraint.
812         * config/s390/predicates.md ("const_int_8bitset_operand"): New
813         predicate.
814         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
815         into ...
816         ("*setmem_long<setmem_and>"): New pattern.
817         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
818         into ...
819         ("*setmem_long_31z<setmem_and>"): New pattern.
820         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
821         New substitution rules with the required attributes.
824 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
826         Revert
827         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
829         * gensupport.c (process_substs_on_one_elem): Split loop to
830         complete mark_operands_used_in_match_dup on all expressions in the
831         vector first.
832         (adjust_operands_numbers): Inline into process_substs_on_one_elem
833         and remove function.
835 2016-03-01  Richard Biener  <rguenther@suse.de>
837         PR middle-end/70022
838         * fold-const.c (fold_indirect_ref_1): Fix range checking for
839         vector BIT_FIELD_REF extract.
841 2016-03-01  Richard Biener  <rguenther@suse.de>
843         PR tree-optimization/69994
844         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
846 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
848         PR tree-optimization/69956
849         * tree-vect-stmts.c (supportable_widening_operation): Support
850         multi-step conversion of boolean vectors.
851         (supportable_narrowing_operation): Likewise.
853 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
855         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
856         anymore.
858 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
860         * config/s390/subst.md (DSI_VI): New mode iterator.
861         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
862         * config/s390/vector.md ("vec_set<mode>"): Move expander before
863         the insn definition.
864         ("*vec_set<mode>"): Change predicate and add alternative to
865         support only either register or const_int operands as element
866         selector.
867         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
868         operands.
869         ("vec_extract<mode>"): New expander.
870         ("*vec_extract<mode>"): New insn definition supporting reg and
871         const_int element selectors.
872         ("*vec_extract<mode>_plus"): New insn definition supporting
873         reg+const_int element selectors.
874         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
875         following expander+insn definition.
876         ("<vec_shifts_name><mode>3"): New expander.
877         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
879 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
881         * config/s390/s390.md ("*tabort_1"): Change predicate to
882         nonmemory_operand.  Add a second alternative to cover
883         register as well as const int operands.
884         ("*tabort_1_plus"): New pattern definition.
886 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
888         * config/s390/s390.md ("*ashrdi3_cc_31")
889         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
890         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
891         Merge insn definitions into ...
892         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
893         New pattern definition.
894         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
895         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
896         ("*ashr<mode>3_and"): Merge insn definitions into ...
897         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
898         New pattern definition.
899         * config/s390/subst.md ("addr_style_op_cc_subst")
900         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
901         substitutions patterns plus attributes.
902         Add ashiftrt to SUBST iterator.
904 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
906         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
907         op2 to nonmemory_operand.
908         ("*<shift>di3_31", "*<shift>di3_31_and"):
909         Merge into single pattern definition ...
910         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
911         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
912         pattern definition ...
913         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
914         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
915         iterator.
917 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
919         * config/s390/predicates.md (const_int_6bitset_operand): New
920         predicate.
921         * config/s390/s390.md: Include subst.md.
922         ("rotl<mode>3"): New expander.
923         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
924         ...
925         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
926         * config/s390/subst.md: New file.
928 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
930         * config/s390/s390.md ("op_type", "atype", "length" attributes):
931         Remove RRR type.  It doesn't really exist.
932         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
933         attributes.
934         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
935         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
936         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
937         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
938         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
939         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
940         `enabled' attribute.
942 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
944         * gensupport.c (process_substs_on_one_elem): Split loop to
945         complete mark_operands_used_in_match_dup on all expressions in the
946         vector first.
947         (adjust_operands_numbers): Inline into process_substs_on_one_elem
948         and remove function.
950 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
952         PR target/69706
953         * config/sparc/sparc.c (NWORDS_UP): Rename to...
954         (CEIL_NWORDS): ...this.  Use CEIL macro.
955         (compute_fp_layout): Adjust to above renaming.
956         (function_arg_union_value): Likewise.
957         (sparc_arg_partial_bytes): Likewise.
958         (sparc_function_arg_advance): Likewise.
960 2016-02-29  Jeff Law  <law@redhat.com>
962         PR tree-optimization/70005
963         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
964         where an object with a boolean range is compared against a value
965         outside [0..1].
967         PR tree-optimization/69999
968         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
969         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
970         loop cleanups.
972 2016-02-29  Richard Biener  <rguenther@suse.de>
974         PR tree-optimization/69994
975         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
976         (get_unary_op): Look through nop conversions.
977         (ops_equal_values_p): New function, look for equality diregarding
978         nop conversions.
979         (eliminate_plus_minus_pair): Use ops_equal_values_p
980         (repropagate_negates): Do not use get_unary_op here.
982 2016-02-29  Martin Liska  <mliska@suse.cz>
984         * system.h: Poison ENABLE_CHECKING macro.
986 2016-02-29  Martin Liska  <mliska@suse.cz>
988         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
989         is presented in dump flags.
990         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
991         (hsa_regalloc): Likewise.
993 2016-02-19  Richard Biener  <rguenther@suse.de>
995         PR tree-optimization/69980
996         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
997         permutation of those we need to keep.
999 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1001         PR target/69706
1002         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
1003         (NWORDS_UP): ...this
1004         (init_cumulative_args): Minor tweaks.
1005         (sparc_promote_function_mode): Likewise.
1006         (scan_record_type): Delete.
1007         (traverse_record_type): New function template.
1008         (classify_data_t): New structure type.
1009         (classify_registers): New inline function.
1010         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
1011         exhausted.  Instantiate traverse_record_type on classify_registers and
1012         deal with the case of a structure passed in slot #15 with no FP field
1013         in the first word.
1014         (assign_data_t): New structure type.
1015         (compute_int_layout): New static function.
1016         (compute_fp_layout): Likewise.
1017         (count_registers): New inline function.
1018         (assign_int_registers): New static function.
1019         (assign_fp_registers): Likewise.
1020         (assign_registers): New inline function.
1021         (function_arg_record_value_1): Delete.
1022         (function_arg_record_value_2): Likewise.
1023         (function_arg_record_value_3): Likewise.
1024         (function_arg_record_value): Adjust to above changes.  Instantiate
1025         traverse_record_type on count_registers to first count the number of
1026         registers to be used and then on assign_registers to assign them.
1027         (function_arg_union_value): Adjust to above renaming.
1028         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
1029         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
1030         case of a structure passed in slot #15
1031         (sparc_function_arg_advance): Likewise.
1032         (function_arg_padding): Minor tweak.
1034 2016-02-29  Richard Biener  <rguenther@suse.de>
1036         PR tree-optimization/69720
1037         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
1038         the adjustment_def path for possibly vectorized defs.
1039         (vect_create_epilog_for_reduction): Handle vectorized initial
1040         defs properly.
1042 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1044         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
1046 2016-02-27  Jeff Law  <law@redhat.com>
1048         Revert
1049         2016-02-26  Richard Biener  <rguenther@suse.de>
1050                     Jeff Law  <law@redhat.com>
1052         PR tree-optimization/69740
1053         * cfghooks.c (remove_edge): Request loop fixups if we delete
1054         an edge that might turn an irreducible loop into a natural
1055         loop.
1057 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
1059         PR rtl-optimization/69896
1060         * tree-vect-generic.c (get_compute_type): Avoid single element
1061         vector types.
1063 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
1065         Rename the AArch64 tuning option and related functions to enable the
1066         Newton series for the reciprocal square root to reflect its
1067         approximative characteristic.
1069         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
1070         function to "aarch64_emit_approx_rsqrt".
1071         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
1072         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
1073         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
1074         (xgene1_tunings): Likewise.
1075         (use_rsqrt_p): Likewise.
1076         (aarch64_emit_swrsqrt): Use new function name.
1077         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
1078         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
1079         text explaining this option.
1080         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
1082 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
1084         PR target/69969
1085         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1086         complain about -mallow-movmisalign without -mvsx if
1087         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
1089 2016-02-26  Joel Sherrill  <joel@rtems.org>
1091         * config.gcc: Add x86_64-*-rtems*.
1092         * gcc/config/i386/rtems-64.h: New file.
1094 2016-02-26  Joel Sherrill  <joel@rtems.org>
1096         * config.gcc: Add aarch64-*-rtems*.
1097         * gcc/config/aarch64/rtems.h: New file.
1099 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
1101         PR target/69946
1102         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
1103         shift amount using %h.  Add comment.
1105 2016-02-26  Richard Biener  <rguenther@suse.de>
1106             Jeff Law  <law@redhat.com>
1108         PR tree-optimization/69740
1109         * cfghooks.c (remove_edge): Request loop fixups if we delete
1110         an edge that might turn an irreducible loop into a natural
1111         loop.
1113 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1115         PR middle-end/69920
1116         * tree-sra.c (sra_modify_assign): Do not remove loads of
1117         uninitialized aggregates to SSA_NAMEs.
1119 2016-02-26  Richard Henderson  <rth@redhat.com>
1121         PR target/69709
1122         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
1123         pseudo in case the target rtx matches the source of the left
1124         shift.
1126 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1128         PR hsa/69568
1129         * hsa.h (hsa_type_packed_p): Declare.
1130         * hsa.c (hsa_type_packed_p): New function.
1131         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
1132         loads.
1133         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
1134         * hsa-brig.c (emit_basic_insn): Likewise.
1136 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1138         pr hsa/69674
1139         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
1140         pointers.
1141         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
1143 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1145         * hsa.h (is_a_helper): New overload for hsa_op_immed for
1146         hsa_op_with_type operands.
1147         (hsa_unsigned_type_for_type): Declare.
1148         * hsa.c (hsa_unsigned_type_for_type): New function.
1149         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
1150         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
1151         the finalizer.  Do not emit extra move.
1153 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1155         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
1156         atomic operations in private segment.
1158 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1160         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
1161         statements to wi->info.  Also disallow omp simd constructs.
1162         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
1163         for not gridifying.  Dump special string for omp_for.
1165 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1167         PR target/69245
1168         * config/aarch64/aarch64.c (aarch64_set_current_function):
1169         Save/restore target globals when switching to
1170         target_option_default_node.
1172 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1174         PR target/69613
1175         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
1176         Return 0 if !SHIFT_COUNT_TRUNCATED.
1178 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
1179             Eric Botcazou  <ebotcazou@adacore.com>
1181         PR rtl-optimization/69891
1182         * dse.c (scan_insn): If we can't figure out memset arguments
1183         or they are non-constant, call clear_rhs_from_active_local_stores.
1185 2016-02-26  Martin Liska  <mliska@suse.cz>
1187         * doc/extend.texi: Mention clog10, clog10f an clog10l
1188         in Builtins section.
1190 2016-02-26  Martin Liska  <mliska@suse.cz>
1192         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
1193         CHECKING_P.
1194         (resolve_args_picking_1): Likewise.
1195         * dwarf2out.h (struct GTY): Likewise.
1197 2016-02-26  Martin Liska  <mliska@suse.cz>
1199         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
1200         with flag_checking.
1201         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
1203 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1204             Martin Liska  <mliska@suse.cz>
1206         * doc/install.texi: Mention --enable-valgrind-annotations.
1208 2016-02-26  Richard Biener  <rguenther@suse.de>
1210         PR tree-optimization/69551
1211         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
1212         looking through aliases adjust DECL_PT_UID to refer to the
1213         ultimate alias target.
1215 2016-02-25  Martin Liska  <mliska@suse.cz>
1217         PR middle-end/69919
1218         * alloc-pool.c (after_memory_report): New variable.
1219         * alloc-pool.h (base_pool_allocator ::release): Do not use
1220         the infrastructure if after_memory_report.
1221         * toplev.c (toplev::main): Mark after memory report.
1223 2016-02-25  Richard Biener  <rguenther@suse.de>
1225         PR tree-optimization/48795
1226         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
1228 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
1230         PR driver/68463
1231         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
1232         offloading is enabled and -fopenacc or -fopenmp is specified.
1233         (CRTOFFLOADEND): Likewise.
1234         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
1235         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
1236         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
1237         (offload_objects_file_name): New static var.
1238         (tool_cleanup): Remove offload_objects_file_name file.
1239         (find_offloadbeginend): Replace with ...
1240         (find_crtoffloadtable): ... this.
1241         (run_gcc): Remove offload_argc and offload_argv.
1242         Get offload_objects_file_name from -foffload-objects=... option.
1243         Read names of object files with offload from this file, pass them to
1244         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
1245         don't pass offloadbegin and offloadend to the linker.  Don't pass
1246         offload non-LTO files to the linker, because now they're not claimed.
1248 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
1250         PR ipa/69630
1251         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1252         on builtin_unreachable.
1254 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
1256         PR rtl-optimization/69896
1257         * regcprop.c: Include cfgrtl.h.
1258         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
1259         than remembered mode, either delete it (if noop_move_p), or
1260         treat like copy_p but not noop_p instruction.
1262 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1264         PR debug/69705
1265         * dwarf2out.c (gen_variable_die): Work around buggy LTO
1266         - allow NULL decl for Fortran DW_TAG_common_block variables.
1268 2016-02-24  Jason Merrill  <jason@redhat.com>
1270         * common.opt (flifetime-dse): Add -flifetime-dse=1.
1272 2016-02-24  Richard Biener  <rguenther@suse.de>
1273             Jakub Jelinek  <jakub@redhat.com>
1275         PR middle-end/69760
1276         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
1277         conditionally executed ops to well-defined overflow behavior.
1279 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1281         PR middle-end/69915
1282         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
1283         elements.
1285 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1287         PR rtl-optimization/69886
1288         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
1289         argument.  Use it when checking validity of set instructions.
1290         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
1291         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
1292         callsite.
1293         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
1294         * store-motion.c (find_moveable_store): Update
1295         can_assign_to_reg_without_clobbers_p callsite.
1297 2016-02-24  Richard Biener  <rguenther@suse.de>
1299         PR middle-end/68963
1300         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
1301         bogus check.
1302         (record_nonwrapping_iv): Do not fall back to the low/high bound
1303         for non-constant IV bases if the stmt is not always executed.
1305 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1307         * config/arm/arm-cores.def (cortex-a32): New entry.
1308         * config/arm/arm-tables.opt: Regenerate.
1309         * config/arm/arm-tune.md: Regenerate.
1310         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
1311         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
1312         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
1313         for -mcpu and -mtune.
1315 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1317         PR target/69875
1318         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
1319         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
1320         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
1321         (atomic_loaddi_1): Delete.
1322         (atomic_loaddi): Rewrite expander using the above changes.
1324 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1326         PR c/69918
1327         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
1328         2 to 3.
1330 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1331             Richard Biener  <rguenth@suse.de>
1333         PR middle-end/69909
1334         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
1335         set_mem_attributes if tem is SSA_NAME which got expanded
1336         as a MEM.
1338 2016-02-24  Richard Biener  <rguenther@suse.de>
1340         PR tree-optimization/69907
1341         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
1342         end of permutations for BB vectorization.
1344 2016-02-24  Christian Bruel  <christian.bruel@st.com>
1346         * config/arm/arm-c.c (arm_option_override): Initialize
1347         target_option_current_node.
1348         * config/arm/arm.c (arm_pragma_target_parse): Replace
1349         build_target_option_node call by target_option_current_node.
1350         Set target_option_current_node.
1351         Fix comments.
1353 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
1355         PR target/69810
1356         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
1357         define_insn_and_split to define_insn.
1358         (zero_extendqi<mode>2_dot2): Same.
1359         (extendqi<mode>2_dot): Same.
1360         (extendqi<mode>2_dot2): Same.
1362 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
1364         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
1365         and add bypass for AES{D,E} and AESMC pairs.
1366         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
1367         and AESMC pairs.
1369 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
1371         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
1372         series for reciprocal square root in Exynos M1.
1374 2016-02-23  Martin Sebor  <msebor@redhat.com>
1376         PR c/69759
1377         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
1378         __builtin_alloca_with_align.
1380 2016-02-23  Richard Henderson  <rth@redhat.com>
1382         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
1383         (ix86_register_pragmas): Remove __seg_tls.
1384         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
1385         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
1386         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
1387         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
1388         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
1389         * doc/extend.texi (__seg_tls): Remove item.
1391 2016-02-23  Richard Biener  <rguenther@suse.de>
1393         * alloc-pool.h (struct allocation_object): Make id member
1394         conditional on CHECKING_P again.
1395         (get_instance): Adjust.
1396         (base_pool_allocator): Likewise.
1398 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
1400         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
1401         (parallelize_loops): In OpenACC kernels mode, set n_threads to
1402         zero.
1403         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
1404         flag_openacc.
1405         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1407 2016-02-23  Richard Biener  <rguenther@suse.de>
1409         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
1410         * bitmap.h (struct bitmap_usage): Likewise.
1411         (bitmap_move): Declare.
1412         * bitmap.c (register_overhead): Take size_t argument.
1413         (bitmap_move): New function.
1414         * df-problems.c (df_rd_transfer_function): Use bitmap_move
1415         to properly account overhead.
1416         * tree.c (free_node): Use tree_size.
1418 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
1420         PR c++/69902
1421         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
1422         when inverting comparison.
1424         PR c/69900
1425         * common.opt (Wunreachable-code): Add Warning flag.
1427 2016-02-23  Mark Wielaard  <mjw@redhat.com>
1428             Jakub Jelinek  <jakub@redhat.com>
1430         PR c/69911
1431         * cgraphunit.c (check_global_declaration): Check main_input_filename
1432         and DECL_SOURCE_FILE are not NULL.
1434 2016-02-23  Martin Jambor  <mjambor@suse.cz>
1436         PR tree-optimization/69666
1437         * tree-sra.c (sra_modify_assign): Do not attempt to create
1438         default_def replacements for unscalarizable regions.
1440 2016-02-20  Mark Wielaard  <mjw@redhat.com>
1442         PR c/28901
1443         * cgraphunit.c (check_global_declaration): Check level of
1444         warn_unused_const_variable and main_input_filename.
1445         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
1446         (-Wunused-variable): For C implies -Wunused-const-variable=1.
1447         (-Wunused-const-variable): Explain levels 1 and 2.
1449 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1451         PR target/69888
1452         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
1453         identical arguments.  Formatting and spelling fixes.
1455         PR target/69885
1456         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
1457         be specified.
1459         PR target/69894
1460         PR target/69895
1461         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
1462         and m68k-devices.def.
1463         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
1464         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
1466 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
1468         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
1469         and HImode registers.
1471 2016-02-22  Richard Biener  <rguenther@suse.de>
1473         PR tree-optimization/69882
1474         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
1475         preserve permutations present because of gaps.
1476         (vect_supported_load_permutation_p): Always continue checking
1477         permutations after vect_attempt_slp_rearrange_stmts.
1479 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
1481         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
1482         min_profitable_estimate, rather than min_profitable_iters.
1484 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1486         PR target/69885
1487         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
1488         SImode for last match_operand.
1490 2016-02-22  Martin Liska  <mliska@suse.cz>
1492         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
1493         return bitsize - 1 as the return value.
1495 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
1497         PR target/69806
1498         PR target/54089
1499         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
1500         Handle negative shift counts.
1501         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
1502         force_reg on the shift constant.
1503         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
1504         (lshrsi3_d): Handle negative shift counts.
1506 2016-02-22  Richard Biener  <rguenther@suse.de>
1507             Tom de Vries  <tom@codesourcery.com>
1509         * graph.c: Include dumpfile.h.
1510         (print_graph_cfg): Split into three overloads.
1511         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
1513 2016-02-22  Tom de Vries  <tom@codesourcery.com>
1515         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
1516         dump-fn.
1518 2016-02-22  Richard Biener  <rguenther@suse.de>
1520         PR ipa/37448
1521         * ipa-inline-transform.c (inline_call): When not updating
1522         overall summaries adjust self size by the growth estimate.
1523         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
1524         hash-set, do not update overall summaries here.  Renamed from ...
1525         (inline_to_all_callers): ... this which is now wrapping the
1526         above and performing delayed overall summary update.
1527         (early_inline_small_functions): Delay updating of the overall
1528         summary.
1530 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1532         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
1533         variable.
1535 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1537         PR driver/69805
1538         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
1539         :%* in %:gt() argument.
1540         (greater_than_spec_func): Adjust for expecting only numbers,
1541         if there are more than two numbers, compare the last two.
1543 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
1545         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
1546         -Wnarrowing with -std.
1548 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1550         PR c++/69851
1551         * expr.c (store_field): Don't use bit-field path if exp is
1552         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
1553         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
1554         and the assignment can be performed by bitwise copy.  Formatting
1555         fix.
1557         PR middle-end/69838
1558         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
1559         call copy_reg_eh_region_note_forward on before and/or after sequences
1560         and remove note from insn if it no longer can throw.
1562         PR target/69820
1563         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
1564         if TARGET_AVX512BW.
1566 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1568         * config/s390/vector.md: Add missing commutative operand markers
1569         to the patterns which qualify for one.
1570         * config/s390/vx-builtins.md: Likewise.
1572 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1574         * config/s390/vector.md (VI, VI_QHS): Add single element vector
1575         types to mode iterators.
1576         (vec_double): ... and mode attribute.
1577         * config/s390/vx-builtins.md (non_vec_int): Likewise.
1579 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1581         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
1582         Change the predicate of op2 from nonimmediate to general and let
1583         reload fix it if necessary.
1585 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1587         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
1589 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1591         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
1592         mode.
1594 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1596         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
1597         * config/s390/s390.c (s390_expand_vec_movstr): New function.
1598         * config/s390/s390.md ("movstr<P:mode>"): Call
1599         s390_expand_vec_movstr.
1601 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1603         * config/s390/s390.md: Add missing output modifier for operand 1
1604         to print it as address properly.
1606 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1608         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
1609         * config/s390/2964.md: New file.
1610         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
1611         of insn grouping attributes depending on the CPU level.
1612         (s390_get_unit_mask): New function.
1613         (s390_sched_score): Remove the OOO from the scheduling macros.
1614         Add loop to calculate a score for the instruction mix.
1615         (s390_sched_reorder): Likewise plus improve debug output.
1616         (s390_sched_variable_issue): Rename macros as above.  Calculate
1617         the unit distances after actually scheduling an insn.  Improve
1618         debug output.
1619         (s390_sched_init): Clear last_scheduled_unit_distance array.
1620         * config/s390/s390.md: Include 2964.md.
1622 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1624         PR target/69671
1625         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
1626         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
1627         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
1628         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
1629         *avx512f_<code>v8div16qi2_mask_1): New insns.
1631 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1633         PR target/68404
1634         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
1635         2016-02-09 change.
1637         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
1638         earlyclobber from target.  Use wF constraint for fused memory
1639         address.
1640         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1642 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1643             Martin Liska  <mliska@suse.cz>
1645         PR sanitizer/69863
1646         * cfgexpand.c (asan_sanitize_stack_p): New function.
1647         (partition_stack_vars): Use the function.
1648         (expand_stack_vars): Likewise.
1649         (defer_stack_allocation): Likewise.
1650         (expand_used_vars): Likewise.
1652 2016-02-18  Richard Biener  <rguenther@suse.de>
1654         PR middle-end/69553
1655         * fold-const.c (operand_equal_p): Properly compare offsets for
1656         IMAGPART_EXPR and ARRAY_REF.
1658 2016-02-18  Nick Clifton  <nickc@redhat.com>
1660         PR target/62254
1661         PR target/69610
1662         * config/arm/arm.c (arm_option_override_internal): Disable
1663         interworking if the target does not support thumb instructions.
1664         (arm_reload_in_hi): Handle the case where a register to register
1665         move needs reloading because there is no simple pattern to handle
1666         it.
1667         (arm_reload_out_hi): Likewise.
1669 2016-02-18  Richard Biener  <rguenther@suse.de>
1671         PR middle-end/69854
1672         * match.pd: Don't use fold_binary or fold_unary for folding
1673         constants.
1675 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
1677         PR c++/69850
1678         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
1679         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
1680         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
1681         warn on gimple_no_warning_p statements.
1683 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
1685         * doc/extend.texi (C++ Attributes): Correct description of
1686         warn_unused type attribute.
1688 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1690         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
1691         correct instruction.
1693 2016-02-17  Richard Biener  <rguenther@suse.de>
1695         PR rtl-optimization/69609
1696         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
1697         (find_traces_1_round): When ending a trace update cached priority
1698         of successors.
1699         (bb_to_key): Use cached priority when available.
1700         (copy_bb): Initialize cached priority.
1701         (reorder_basic_blocks_software_trace_cache): Likewise.
1703 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1705         PR target/69161
1706         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
1707         New predicate.
1708         (aarch64_comparison_operator): Break overly long line into two.
1709         (aarch64_comparison_operation): Likewise.
1710         * config/aarch64/aarch64.md (cstorecc4): Use
1711         aarch64_comparison_operator_mode instead of
1712         aarch64_comparison_operator.
1713         (cstore<mode>4): Likewise.
1714         (aarch64_cstore<mode>): Likewise.
1715         (*cstoresi_insn_uxtw): Likewise.
1716         (cstore<mode>_neg): Likewise.
1717         (*cstoresi_neg_uxtw): Likewise.
1719 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1721         PR target/69161
1722         * config/arm/predicates.md (arm_comparison_operator_mode):
1723         New predicate.
1724         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
1725         instead of arm_comparison_operator.
1726         (*mov_negscc): Likewise.
1727         (*mov_notscc): Likewise.
1728         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
1729         (*thumb2_mov_negscc): Likewise.
1730         (*thumb2_mov_negscc_strict_it): Likewise.
1731         (*thumb2_mov_notscc): Likewise.
1732         (*thumb2_mov_notscc_strict_it): Likewise.
1734 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
1736         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
1737         Add missing return.
1739 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
1741         * config/visium/visium.c (machine_libfunc_index): New enum.
1742         (machine_libfuncs): New structure.
1743         (visium_libfuncs): New static variable.
1744         (TARGET_INIT_LIBFUNCS): Define to...
1745         (visium_init_libfuncs): ...this.  New function.
1746         (expand_block_move_4): Use the appropriate libfunc.
1747         (expand_block_move_2): Likewise.
1748         (expand_block_move_1): Likewise.
1749         (expand_block_set_4): Likewise.
1750         (expand_block_set_2): Likewise.
1751         (expand_block_set_1): Likewise.
1752         (visium_trampoline_init): Likewise.
1754 2016-02-17  Nick Clifton  <nickc@redhat.com>
1756         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
1757         TI's devices.csv file as of March 2016.
1759 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1761         PR Target/48344
1762         * opts-global.c (handle_common_deferred_options): Introduce and
1763         initialize two global variables to remember command-line options
1764         specifying a stack-limiting register.
1765         * opts.h: Add extern declarations of the two new global variables.
1766         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
1767         variable based on the values of the two new global variables.
1769 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1771         PR c/69835
1772         * common.opt (Wnonnull-compare): New warning.
1773         * doc/invoke.texi (-Wnonnull): Remove text about comparison
1774         of arguments against NULL.
1775         (-Wnonnull-compare): Document.
1776         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
1777         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
1778         * passes.def (pass_warn_nonnull_compare): Add.
1779         * gimple-ssa-nonnull-compare.c: New file.
1781 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1783         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
1784         AARCH64_EXTRA_TUNE_RECIP_SQRT.
1786 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1788         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
1789         reciprocal sqrt for -mlow-precision-recip-sqrt.
1791 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1792             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1794         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
1795         always use lane loads to construct non-constant vectors.
1797 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1799         * config/aarch64/aarch64.md
1800         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
1801         constraints for operand 3.
1802         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
1804 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1805             Richard Biener  <rguenther@suse.de>
1807         PR tree-optimization/69820
1808         * tree-vect-patterns.c (type_conversion_p): Return false if
1809         *orig_type is unsigned single precision or boolean.
1810         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
1811         Formatting fix.
1813 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1815         PR rtl-optimization/69764
1816         PR rtl-optimization/69771
1817         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
1818         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
1820 2016-02-16  Richard Biener  <rguenther@suse.de>
1822         PR tree-optimization/69776
1823         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
1824         sets from caller.
1825         (indirect_refs_may_alias_p): Likewise.
1826         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
1827         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
1828         according to tbaa_p.
1829         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
1830         (optimize_stmt): For redundant store discovery do not allow tbaa.
1832 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
1834         PR tree-optimization/69714
1835         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
1836         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
1838 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
1840         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
1841         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
1842         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
1843         * config/arc/arc.c (arc_init): Check FPU options.
1844         (get_arc_condition_code): Handle new CC_FPU* modes.
1845         (arc_select_cc_mode): Likewise.
1846         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
1847         register pair only. Allow access for ARCv2 accumulator.
1848         (gen_compare_reg): Whenever we have FPU support use FPU compare
1849         instructions.
1850         (arc_reorg): Don't generate brcc insns when FPU compare
1851         instructions are involved.
1852         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
1853         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
1854         floating point emulation.
1855         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
1856         (REVERSE_CONDITION): Add new CC_FPU* modes.
1857         (TARGET_FP_SP_BASE): Define.
1858         (TARGET_FP_DP_BASE): Likewise.
1859         (TARGET_FP_SP_FUSED): Likewise.
1860         (TARGET_FP_DP_FUSED): Likewise.
1861         (TARGET_FP_SP_CONV): Likewise.
1862         (TARGET_FP_DP_CONV): Likewise.
1863         (TARGET_FP_SP_SQRT): Likewise.
1864         (TARGET_FP_DP_SQRT): Likewise.
1865         (TARGET_FP_DP_AX): Likewise.
1866         * config/arc/arc.md (ARCV2_ACC): New constant.
1867         (type): New fpu type attribute.
1868         (SDF): Conditional iterator.
1869         (cstore<mode>, cbranch<mode>): Change expand condition.
1870         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
1871         handles FPU/FPX cases as well.
1872         * config/arc/arc.opt (mfpu): New option.
1873         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
1874         Renamed.
1875         (adddf3, muldf3, subdf3): Removed.
1876         * config/arc/predicates.md (proper_comparison_operator): Recognize
1877         CC_FPU* modes.
1878         * config/arc/fpu.md: New file.
1879         * doc/invoke.texi (ARC Options): Document mfpu option.
1881 2016-02-16  Richard Biener  <rguenther@suse.de>
1883         PR rtl-optimization/69291
1884         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
1885         noce_operand_ok check.
1887 2016-02-16  Tom de Vries  <tom@codesourcery.com>
1889         PR lto/67709
1890         * omp-low.c (simd_clone_create): Remove call to
1891         symtab->call_cgraph_insertion_hooks.
1893 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1895         PR tree-optimization/69802
1896         * tree-ssa-reassoc.c (update_range_test): If op is
1897         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
1898         op == 1 test of precision 1 integral op, otherwise handle
1899         that case as op itself.  Fix up formatting.
1900         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
1901         up formatting.
1903 2016-02-16  Richard Biener  <rguenther@suse.de>
1905         PR tree-optimization/69586
1906         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
1907         types for conversion sources.
1909 2016-02-16  Richard Biener  <rguenther@suse.de>
1911         PR middle-end/69801
1912         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
1913         mask OEP_ADDRESS_OF.
1915 2016-02-16  Alan Modra  <amodra@gmail.com>
1917         PR target/68973
1918         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
1919         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
1920         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
1921         (p8_mtvsrwz): New.
1922         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
1923         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
1924         (p8_fmrgow_<mode>): Likewise.
1925         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
1926         changes.
1927         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
1928         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
1929         to use movdi_internal64.  Remove op0_di.
1930         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
1932 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
1934         Add support for the FCCMP insn types
1936         * config/aarch64/aarch64.md (fccmp): Change insn type.
1937         (fccmpe): Likewise.
1938         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
1939         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
1940         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
1941         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
1942         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
1943         * config/arm/types.md (fccmps): Add new insn type.
1944         (fccmpd): Likewise.
1946 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1948         * alias.c (get_alias_set): Fix a typo in comment.
1950 2016-02-15  Richard Biener  <rguenther@suse.de>
1952         PR tree-optimization/69595
1953         * match.pd: Complete range test simplification to true.
1955 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
1957         PR rtl-optimization/69648
1958         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
1959         pic_offset_table_rtx.
1961         PR rtl-optimization/69752
1962         * ira.c (update_equiv_regs): When looking for more than a single SET,
1963         also take other side effects into account.
1965 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
1967         * config/s390/s390.c (s390_function_profiler): Add a new sequence
1968         for z900+ CPUs in 31-bit mode.
1970 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
1972         * common/config/s390/s390-common.c (s390_supports_split_stack):
1973         New function.
1974         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
1975         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
1976         * config/s390/s390.c (struct machine_function): New field
1977         split_stack_varargs_pointer.
1978         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
1979         in s390_emit_prologue.
1980         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
1981         vararg pointer.
1982         (morestack_ref): New global.
1983         (SPLIT_STACK_AVAILABLE): New macro.
1984         (s390_expand_split_stack_prologue): New function.
1985         (s390_live_on_entry): New function.
1986         (s390_va_start): Use split-stack vararg pointer if appropriate.
1987         (s390_asm_file_end): Emit the split-stack note sections.
1988         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
1989         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
1990         (UNSPECV_SPLIT_STACK_CALL): New unspec.
1991         (UNSPECV_SPLIT_STACK_DATA): New unspec.
1992         (split_stack_prologue): New expand.
1993         (split_stack_space_check): New expand.
1994         (split_stack_data): New insn.
1995         (split_stack_call): New expand.
1996         (split_stack_call_*): New insn.
1997         (split_stack_cond_call): New expand.
1998         (split_stack_cond_call_*): New insn.
2000 2016-02-15  Richard Biener  <rguenther@suse.de>
2002         PR tree-optimization/69783
2003         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2004         Add trivially correct cases.
2006 2016-02-15  Tom de Vries  <tom@codesourcery.com>
2008         PR lto/69655
2009         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
2010         do_force_output.
2011         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
2013 2016-02-15  Richard Biener  <rguenther@suse.de>
2015         PR tree-optimization/69776
2016         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2017         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
2018         indicate whether we can use TBAA to disambiguate against stores.
2019         Use alias-set zero if not.
2020         (visit_reference_op_store): Do not use TBAA when looking up
2021         redundant stores.
2022         * tree-ssa-pre.c (compute_avail): Use TBAA here.
2023         (eliminate_dom_walker::before_dom_children): But not when looking
2024         up redundant stores.
2026 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
2028         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
2030 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2032         *  config/i386/znver1.md
2033         (znver1_pop, znver1_pop_mem,
2034         znver1_load_imov_double_store,
2035         znver1_load_imov_direct_store,
2036         znver1_load_imov_direct_load,
2037         znver1_load_imov_double_load): Add new.
2038         (znver1_insn, znver1_insn_load): Add icmov type.
2039         (znver1_sseavx_fma,
2040         znver1_sseavx_fma_load,
2041         znver1_avx256_fma,
2042         znver1_avx256_fma_load): Fix pipe usage.
2044 2016-02-14  Alan Modra  <amodra@gmail.com>
2046         PR target/68973
2047         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
2048         with an invalid hard reg, reload just the reg not the entire
2049         pre/post-inc/dec address expression.
2051 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
2053         PR target/67260
2054         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
2055         fixed R1_REG scratch reg.
2056         (sibcall_value_pcrel_fdpic): Likewise.
2058 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
2060         PR target/67636
2061         PR target/64345
2062         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
2064 2016-02-12  Walter Lee  <walt@tilera.com>
2066         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
2067         * config/tilegx/t-tilegx: Likewise.
2069 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
2071         PR other/69554
2072         * diagnostic-show-locus.c (struct line_span): New struct.
2073         (layout::get_first_line): Delete.
2074         (layout::get_last_line): Delete.
2075         (layout::get_num_line_spans): New member function.
2076         (layout::get_line_span): Likewise.
2077         (layout::print_heading_for_line_span_index_p): Likewise.
2078         (layout::get_expanded_location): Likewise.
2079         (layout::calculate_line_spans): Likewise.
2080         (layout::m_first_line): Delete.
2081         (layout::m_last_line): Delete.
2082         (layout::m_line_spans): New field.
2083         (layout::layout): Update comment.  Replace m_first_line and
2084         m_last_line with m_line_spans, replacing their initialization
2085         with a call to calculate_line_spans.
2086         (diagnostic_show_locus): When printing source lines and
2087         annotations, rather than looping over a single span
2088         of lines, instead loop over each line_span within
2089         the layout, with an inner loop over the lines within them.
2090         Call the context's start_span callback when changing line spans.
2091         * diagnostic.c (diagnostic_initialize): Initialize start_span.
2092         (diagnostic_build_prefix): Break out the building of the location
2093         part of the string into...
2094         (diagnostic_get_location_text): ...this new function, rewriting
2095         it from nested ternary expressions to a sequence of "if"
2096         statements.
2097         (default_diagnostic_start_span_fn): New function.
2098         * diagnostic.h (diagnostic_start_span_fn): New typedef.
2099         (diagnostic_context::start_span): New field.
2100         (default_diagnostic_start_span_fn): New prototype.
2102 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
2104         PR driver/69779
2105         * gcc.c (driver::finalize): Fix cleanup of "specs".
2107 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
2109         PR driver/69265
2110         PR driver/69453
2111         * gcc.c (driver::driver): Initialize m_option_suggestions.
2112         (driver::~driver): Clean up m_option_suggestions.
2113         (suggest_option): Convert to...
2114         (driver::suggest_option): ...this, and split out into
2115         driver::build_option_suggestions and find_closest_string.
2116         (driver::build_option_suggestions): New function, from
2117         first half of suggest_option.  Special-case
2118         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
2119         the sanitizer_opts array.  For options of enum types, add the
2120         various enum values to the candidate strings.
2121         (driver::handle_unrecognized_options): Remove "const".
2122         * gcc.h (driver::handle_unrecognized_options): Likewise.
2123         (driver::build_option_suggestions): New decl.
2124         (driver::suggest_option): New decl.
2125         (driver::m_option_suggestions): New field.
2126         * opts-common.c (add_misspelling_candidates): New function.
2127         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
2128         and make non-static.
2129         * opts.h (sanitizer_opts): New array decl.
2130         (add_misspelling_candidates): New function decl.
2131         * spellcheck.c (find_closest_string): New function.
2132         * spellcheck.h (find_closest_string): New function decl.
2134 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
2136         PR rtl-optimization/69764
2137         PR rtl-optimization/69771
2138         * optabs.c (expand_binop_directly): For shift_optab_p, force
2139         convert_modes with VOIDmode if xop1 has VOIDmode.
2141 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2143         PR target/69729
2144         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
2145         to correctly determine instrumentation thunks.
2147 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
2149         PR ipa/69241
2150         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
2151         type by reference, force lhs on the call.
2153         PR ipa/68672
2154         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
2155         Compute retval and retbnd early in all cases if split_part_return_p
2156         and return_bb is not EXIT.  Remove all clobber stmts and reset
2157         all debug stmts that refer to SSA_NAMEs defined in split part,
2158         except if it is retval, in that case replace the old retval with the
2159         lhs of the call to the split part.
2161 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2163         revert:
2164         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2166         PR middle-end/66726
2167         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
2168         whose result is used in PHI.
2169         (maybe_optimize_range_tests): Likewise.
2170         (final_range_test_p): Likweise.
2172 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2174         PR middle-end/66726
2175         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
2176         whose result is used in PHI.
2177         (maybe_optimize_range_tests): Likewise.
2178         (final_range_test_p): Likweise.
2180 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
2182         * cgraph.c: Spelling fixes - behaviour -> behavior and
2183         neighbour -> neighbor.
2184         * target.def: Likewise.
2185         * sel-sched.c: Likewise.
2186         * config/mips/mips.c: Likewise.
2187         * config/arc/arc.md: Likewise.
2188         * config/arm/cortex-a57.md: Likewise.
2189         * config/arm/arm.c: Likewise.
2190         * config/arm/neon.md: Likewise.
2191         * config/arm/arm-c.c: Likewise.
2192         * config/vms/vms-c.c: Likewise.
2193         * config/s390/s390.c: Likewise.
2194         * config/i386/znver1.md: Likewise.
2195         * config/i386/i386.c: Likewise.
2196         * config/ia64/hpux-unix2003.h: Likewise.
2197         * config/msp430/msp430.md: Likewise.
2198         * config/rx/rx.c: Likewise.
2199         * config/rx/rx.md: Likewise.
2200         * config/aarch64/aarch64-simd.md: Likewise.
2201         * config/aarch64/aarch64.c: Likewise.
2202         * config/nvptx/nvptx.c: Likewise.
2203         * config/bfin/bfin.c: Likewise.
2204         * config/cris/cris.opt: Likewise.
2205         * config/rs6000/rs6000.c: Likewise.
2206         * target.h: Likewise.
2207         * spellcheck.c: Likewise.
2208         * ira-build.c: Likewise.
2209         * tree-inline.c: Likewise.
2210         * builtins.c: Likewise.
2211         * lra-constraints.c: Likewise.
2212         * explow.c: Likewise.
2213         * hwint.h: Likewise.
2214         * targhooks.c: Likewise.
2215         * tree-vect-data-refs.c: Likewise.
2216         * expr.c: Likewise.
2217         * doc/tm.texi: Likewise.
2218         * doc/extend.texi: Likewise.
2219         * doc/install.texi: Likewise.
2220         * doc/md.texi: Likewise.
2221         * tree-ssa-tail-merge.c: Likewise.
2222         * sched-int.h: Likewise.
2223         * match.pd: Likewise.
2224         * sched-ebb.c: Likewise.
2225         * target.def (omit_struct_return_reg): Likewise.
2226         * gimple-ssa-isolate-paths.c: Likewise.
2227         (find_implicit_erroneous_behaviour): Renamed to...
2228         (find_implicit_erroneous_behavior): ... this.
2229         (find_explicit_erroneous_behaviour): Renamed to...
2230         (find_explicit_erroneous_behavior): ... this.
2231         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
2233 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
2235         PR rtl-optimization/64682
2236         PR rtl-optimization/69567
2237         PR rtl-optimization/69737
2238         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
2239         in I2 as well, just lose it.
2241 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2243         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
2244         New variable.
2245         (aarch64_last_printed_tune_string): Likewise.
2246         (aarch64_declare_function_name): Only output .arch assembler
2247         directive if it will be different from the previously output
2248         directive.  Same for .tune comment but only if -dA is set.
2249         (aarch64_start_file): New function.
2250         (TARGET_ASM_FILE_START): Define.
2252 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
2254         PR plugins/69758
2255         * Makefile.in (PLUGIN_HEADERS): Add params.list.
2257 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
2259         PR target/65313
2260         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
2261         -Wmaybe-uninitialized warning.
2263 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
2265         PR target/69713
2266         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
2268 2016-02-11  Richard Biener  <rguenther@suse.de>
2270         PR rtl-optimization/69291
2271         * ifcvt.c (noce_try_store_flag_constants): Do not allow
2272         subexpressions affected by changing the result.
2274 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
2276         PR target/69148
2277         * lra-constraints.c (curr_insn_transform): Find in/out operands
2278         for secondary memory moves.  Update dups.
2280 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
2282         PR tree-optimization/69652
2283         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
2284         to nested loop, did source re-formatting, skip debug statements,
2285         add check on statement with volatile operand, remove dead scalar
2286         statements.
2288 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
2289             Patrick Palka  <ppalka@gcc.gnu.org>
2291         PR ipa/69241
2292         PR c++/69649
2293         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
2294         calls if the return type is TREE_ADDRESSABLE.
2295         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
2296         * ipa-split.c (split_function): Fix doubled "we" in comment.
2297         Use void return type for the split part even if
2298         !split_point->split_part_set_retval.
2300 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
2302         PR tree-optimization/68021
2303         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
2304         when computing the value of biv cand by itself.
2306 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2308         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
2309         (cortexa57_tunings): Likewise.
2310         (cortexa72_tunings): Likewise.
2311         (arch_macro_fusion_pair_p): Add support for AES fusion.
2312         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
2313         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2314         Allow virtual registers before reload so early scheduling works.
2315         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
2316         correct latency and pipeline.
2317         (cortex_a57_crypto_complex): Likewise.
2318         (cortex_a57_crypto_xor): Likewise.
2319         (define_bypass): Add AES bypass.
2321 2016-02-10  Richard Biener  <rguenther@suse.de>
2323         PR tree-optimization/69726
2324         * passes.def: Add DCE pass before late uninit.
2325         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
2326         really fixup if-conversions job.
2328 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2330         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
2331         (arm_cortex_a57_tune): Likewise.
2332         (aarch_macro_fusion_pair_p): Add support for AES fusion.
2333         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
2335 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
2337         * timevar.def (TV_PHASE_DBGINFO): Delete.
2338         (TV_PHASE_CHECK_DBGINFO): Likewise.
2339         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
2341 2016-02-10  Richard Biener  <rguenther@suse.de>
2343         PR tree-optimization/69719
2344         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2345         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
2347 2016-02-09  Andrew Pinski  <apinski@cavium.com>
2349         PR tree-opt/69282
2350         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
2351         get_vcond_mask_icode returns false.
2353 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2355         PR target/68404
2356         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
2357         an ADDIS that adds a pointer to a large constant that sets the
2358         upper16 bits with a load operation.
2360 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
2362         PR target/68532
2363         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
2364         order.
2365         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
2366         endian.
2367         (vzipq_s16): Likewise.
2368         (vzipq_s32): Likewise.
2369         (vzipq_f32): Likewise.
2370         (vzipq_u8): Likewise.
2371         (vzipq_u16): Likewise.
2372         (vzipq_u32): Likewise.
2373         (vzipq_p8): Likewise.
2374         (vzipq_p16): Likewise.
2376 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
2378         PR target/68532
2379         * config/arm/arm.c (neon_endian_lane_map): New function.
2380         (neon_vector_pair_endian_lane_map): New function.
2381         (arm_evpc_neon_vuzp): Allow for big endian lane order.
2382         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
2383         endian.
2384         (vuzpq_s16): Likewise.
2385         (vuzpq_s32): Likewise.
2386         (vuzpq_f32): Likewise.
2387         (vuzpq_u8): Likewise.
2388         (vuzpq_u16): Likewise.
2389         (vuzpq_u32): Likewise.
2390         (vuzpq_p8): Likewise.
2391         (vuzpq_p16): Likewise.
2393 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
2395         PR target/69634
2396         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
2397         debug insns.
2399 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
2401         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
2402         truncate const_int operand 1 to QImode.
2404 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
2406         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
2407         corresponding to an abnormal edge.
2409 2016-02-09  Tom de Vries  <tom@codesourcery.com>
2411         PR tree-optimization/69599
2412         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
2413         function.
2414         (find_func_aliases_for_builtin_call, find_func_clobbers)
2415         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
2416         partition.
2418 2016-02-09  Richard Biener  <rguenther@suse.de>
2420         PR tree-optimization/69715
2421         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
2422         LHS on calls as non-rewritable.
2424 2016-02-09  Tom de Vries  <tom@codesourcery.com>
2426         PR lto/69707
2427         * lto-wrapper.c (append_diag_options): New function.
2428         (compile_offload_image): Call append_diag_options.
2430 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
2432         PR other/69722
2433         * doc/extend.texi (Flag Output Operands): Correct sectioning.
2434         Minor copy-edit to fix verb tenses.
2436 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
2438         PR tree-optimization/69209
2439         * ipa-split.c (split_function): If split part is not
2440         returning retval, retval has gimple type but is not
2441         gimple value, force it into a SSA_NAME first.
2443 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
2445         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
2446         outdated section.
2448 2016-02-08  Jason Merrill  <jason@redhat.com>
2450         PR c++/69631
2451         * convert.c (convert_to_integer_1): Check dofold on truncation
2452         distribution.
2453         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
2454         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
2455         Rename from *_nofold.
2456         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
2457         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
2459 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2461         PR target/60410
2462         * tree.c (build_common_tree_nodes): Remove short_double argument.
2463         All callers changed.
2464         * tree.h (build_common_tree_nodes): Adjust declaration.
2465         * doc/invoke.texi (-fshort-double): Remove documentation.
2466         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2467         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
2468         * lto-wrapper.c (merge_and_complain, append_compiler_options)
2469         (append_linker_options): Don't handle OPT_fshort_double.
2471         PR rtl-optimization/68730
2472         * lra-remat.c (insn_to_cand_activation): New static variable.
2473         (lra_remat): Allocate and free it.
2474         (create_cand): New arg activation. Initialize a field in
2475         insn_to_cand_activation if it is nonnull.
2476         (create_cands): Pass the activation insn to create_cand when making
2477         a candidate involving an output reload.  Reorganize code a little.
2478         (do_remat): Keep track of active status of candidates in a separate
2479         bitmap.
2481 2016-02-08  Richard Biener  <rguenther@suse.de>
2483         PR tree-optimization/69719
2484         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2485         Properly use absolute of the difference of the two offsets to
2486         compare or adjust the segment length.
2488 2016-02-08  Richard Biener  <rguenther@suse.de>
2489             Jeff Law  <law@redhat.com>
2491         PR target/68273
2492         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
2493         types for anonymous SSA names.
2495 2016-02-08   Richard Biener  <rguenther@suse.de>
2497         PR rtl-optimization/69274
2498         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
2500 2016-02-08  Jeff Law  <law@redhat.com>
2502         PR tree-optimization/65917
2503         * tree-ssa-dom.c (record_temporary_equivalences): Record both
2504         equivalences from if (x == y) style conditionals.
2505         (loop_depth_of_name): Remove.
2506         (record_equality): Remove loop depth check.
2507         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
2508         (const_and_copies::record_const_or_copy_raw): New member function.
2509         * tree-ssa-scopedtables.c
2510         (const_and_copies::record_const_or_copy_raw): New, factored out of
2511         (const_and_copies::record_const_or_copy): Call new member function.
2513 2016-02-05  Jeff Law  <law@redhat.com>
2515         PR tree-optimization/68541
2516         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
2517         (count_stmts_in_block): New function.
2518         (poor_ifcvt_candidate_code): Likewise.
2519         (is_feasible_trace): Add some heuristics to determine when path
2520         splitting is profitable.
2521         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
2522         is a diamond with a single exit.
2524 2016-02-05  Martin Sebor  <msebor@redhat.com>
2526         PR c++/69662
2527         * doc/invoke.texi: Update -Wplacement-new to take an optional
2528         argument.
2530 2016-02-06  Richard Henderson  <rth@redhat.com>
2532         PR c/69643
2533         * tree.c (tree_nop_conversion_p): Do not strip casts into or
2534         out of non-standard address spaces.
2536 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2538         PR rtl-optimization/69691
2539         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
2541 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
2543         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
2544         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
2545         (*ieee128_mfvsrd_64bit): Likewise.
2546         (*ieee128_mfvsrd_32bit): Likewise.
2548 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2550         PR target/69369
2551         Revert r232560:
2552         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2554         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2555         instrumented_version.
2557 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
2559         * doc/invoke.texi (Optimize Options): In table of --param options
2560         rename second occurrence of tracer-min-branch-ratio to
2561         tracer-min-branch-probability, rename
2562         tracer-min-branch-ratio-feedback to
2563         tracer-min-branch-probability-feedback and clarify description,
2564         rename sched-spec-state-edge-prob-cutoff to
2565         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
2566         to selsched-insns-to-rename, rename lto-minpartition to
2567         lto-min-partition, delete reorder-blocks-duplicate and
2568         reorder-blocks-duplicate-feedback.
2570 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2572         * config/s390/s390.c (s390_register_info_set_ranges): Remove
2573         superfluous loops.
2575 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2577         * doc/extend.texi: S/390: Correct some typos.
2579 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2581         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
2583 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2585         PR target/69625
2586         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
2587         (s390_register_info_gprtofpr): Use new macros above.
2588         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
2589         its name.
2590         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
2591         its name.  Adjust restore and save gpr ranges.
2592         (s390_register_info_set_ranges): New function.
2593         (s390_register_info): Use new macros above.  Call
2594         s390_register_info_set_ranges.
2595         (s390_optimize_register_info): Likewise.
2596         (s390_hard_regno_rename_ok): Use new macros.
2597         (s390_hard_regno_scratch_ok): Likewise.
2598         (s390_emit_epilogue): Likewise.
2599         (s390_can_use_return_insn): Likewise.
2600         (s390_optimize_prologue): Likewise.
2601         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
2603 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2605         PR bootstrap/69677
2606         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
2607         alignment fixes.
2608         (ix86_option_override_internal): Disable TARGET_STV even for
2609         -m{incoming,preferred}-stack-boundary=3.
2611 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2613         * config.gcc: Mark deprecated rtems targets as obsolete.
2615 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
2617         PR rtl-optimization/64682
2618         PR rtl-optimization/69567
2619         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
2620         before I2 only if the register is both used and set in I2.
2622 2016-02-04  DJ Delorie  <dj@redhat.com>
2624         * config/msp430/msp430.c (msp430_start_function): Add function type.
2626 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2628         PR fortran/69368
2629         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
2631 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
2633         PR rtl-optimization/69577
2634         Revert:
2635         2015-10-29  Richard Henderson  <rth@redhat.com>
2637         PR target/68124
2638         PR rtl-opt/67609
2639         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2640         sse check to the exact conditions of PR 67609.
2642 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2644         PR target/69667
2645         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
2646         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
2647         not allowed into the traditional Altivec registers.
2648         (movtd_64bit_nodm): Likewise.
2649         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2651 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
2653         * config/aarch64/cortex-a57-fma-steering.c
2654         (aarch64_register_fma_steering): Remove "static" from arguments
2655         to register_pass.
2657 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
2659         PR target/69619
2660         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
2661         twice when complex.
2663 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
2665         * doc/invoke.texi: Delete -mno-fma4.
2667 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
2669         PR rtl-optimization/69577
2670         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
2671         (find_subregs_of_mode): Update accordingly.  Iterate over partial
2672         definitions.
2674 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
2676         * config/arm/arm-protos.h (neon_reinterpret): Remove.
2677         * config/arm/arm.c (neon_reinterpret): Remove.
2678         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
2679         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
2680         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
2681         vreinterpretti): Remove.
2682         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
2683         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2684         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
2685         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
2686         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
2687         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
2688         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
2689         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
2690         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
2691         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
2692         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
2693         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
2694         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
2695         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
2696         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
2697         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
2698         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
2699         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
2700         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
2701         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
2702         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
2703         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
2704         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
2705         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
2706         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
2707         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
2708         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
2709         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
2710         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
2711         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
2712         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
2713         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
2714         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
2715         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
2716         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
2717         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
2718         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
2719         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
2720         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
2721         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
2722         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
2723         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
2724         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
2725         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
2726         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
2727         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
2728         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
2729         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
2730         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
2731         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
2732         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
2733         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
2734         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
2735         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
2736         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
2737         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
2738         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
2739         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
2740         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
2741         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
2742         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
2743         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
2744         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
2745         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
2746         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
2747         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
2748         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
2749         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
2750         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
2751         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
2752         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
2753         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
2754         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
2755         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
2756         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
2757         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
2758         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
2759         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
2760         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
2761         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
2762         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
2763         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
2764         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
2765         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
2766         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
2767         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
2768         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
2769         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
2770         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
2771         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
2772         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
2773         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
2774         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
2775         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
2776         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
2777         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
2778         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
2779         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
2780         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
2781         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
2782         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
2783         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
2784         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
2786 2016-02-04  Martin Liska  <mliska@suse.cz>
2788         PR sanitizer/69276
2789         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
2790         that are gimple_store_p.
2791         (maybe_instrument_call): Likewise.
2793 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
2795         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
2796         register scaling out of memory reference and comment why.
2798 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2800         PR target/65932
2801         PR target/67714
2802         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
2803         folding the source of a SET.
2805 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2807         PR target/65932
2808         PR target/67714
2809         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
2810         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
2812 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
2814         PR target/65932
2815         PR target/67714
2816         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
2817         HImode.
2819 2016-02-04  Christian Bruel  <christian.bruel@st.com>
2821         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
2822         * config/arm/arm.c (arm_set_current_function): Likewise.
2824 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2825             Ilya Enkovich  <enkovich.gnu@gmail.com>
2826             H.J. Lu  <hongjiu.lu@intel.com>
2828         PR target/69454
2829         * config/i386/i386.c (convert_scalars_to_vector): Remove
2830         stack alignment fixes.
2831         (ix86_option_override_internal): Disable TARGET_STV if stack
2832         might not be aligned enough.
2833         (ix86_minimum_alignment): Assert that TARGET_STV is false.
2835 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
2837         * gcc/config/i386/x86-tune.def: Disable default prefetching
2838         for -march=znver1.
2840 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2841             Vladimir Makarov  <vmakarov@redhat.com>
2843         PR target/69461
2844         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
2845         in validating fused toc addresses.
2847 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
2849         PR c/69627
2850         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
2851         range->m_caret fields if range->m_show_caret_p is false.
2853         PR target/69644
2854         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2855         Force oldval into register if it does not satisfy reg_or_short_operand
2856         predicate.  Fix up formatting.
2858 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
2859             Alexandre Oliva  <aoliva@redhat.com>
2861         PR target/69461
2862         * lra-constraints.c (simplify_operand_subreg): Check additionally
2863         address validity after potential reloading.
2864         (process_address_1): Check insns validity.  In case of failure do
2865         nothing.
2867 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2869         PR target/69118
2870         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
2871         Fix target.
2873 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
2875         * wide-int.cc (canonize_uhwi): New function.
2876         (wi::divmod_internal): Use it.
2878 2016-02-02  James Norris  <jnorris@codesourcery.com
2880         * gimplify.c (omp_notice_variable): Add usage check.
2882 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
2884         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
2885         like LE, GE, LT, GT when emitting relational operator.
2887 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
2889         * ira-costs.c (find_costs_and_classes): Add extra argument.
2890         * target.def (ira_change_pseudo_allocno_class): Add parameter.
2891         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
2892         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
2893         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
2894         Add best_class parameter, and return it if not ALL_REGS.
2895         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
2896         Add parameter.
2897         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
2898         Update target hook.
2900 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
2902         * config/aarch64/aarch64.c
2903         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
2904         (aarch64_ira_change_pseudo_allocno_class): New function.
2906 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
2908         PR target/67032
2909         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
2911 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2913         * config/avr/avr.c (avr_option_override): Set
2914         PARAM_ALLOW_STORE_DATA_RACES to 1.
2916 2016-02-02  Richard Biener  <rguenther@suse.de>
2918         PR tree-optimization/69595
2919         * match.pd: Add range test simplifications to true/false.
2921 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
2923         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
2924         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
2925         instead.
2927 2016-02-02  Richard Biener  <rguenther@suse.de>
2929         PR tree-optimization/69606
2930         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
2931         info on the result before moving a stmt.
2933 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
2935         PR middle-end/68542
2936         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
2937         branch with vector comparison.
2938         * config/i386/sse.md (VI48_AVX): New mode iterator.
2939         (define_expand "cbranch<mode>4): Add support for conditional branch
2940         with vector comparison.
2941         * tree-vect-loop.c (optimize_mask_stores): New function.
2942         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
2943         has_mask_store field of vect_info.
2944         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
2945         vectorized loops having masked stores after vec_info destroy.
2946         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
2947         correspondent macros.
2948         (optimize_mask_stores): Add prototype.
2950 2016-02-02  Alan Modra  <amodra@gmail.com>
2952         PR target/69548
2953         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
2954         allow subregs.
2956 2016-02-02  Alan Modra  <amodra@gmail.com>
2958         PR target/68662
2959         * config/rs6000/rs6000.c (need_toc_init): New var, set it
2960         whenever toc_label_name used.
2961         (rs6000_file_start): Don't set up toc section here,
2962         (rs6000_output_function_epilogue): do so here instead,
2963         (rs6000_xcoff_file_start): and here.
2964         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
2965         (load_toc_aix_di): Likewise.
2967 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2969         PR rtl-optimization/69592
2970         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
2971         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
2972         (num_sign_bit_copies_binary_arith_p): New inline function.
2973         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
2975 2016-02-01  Jeff Law  <law@redhat.com>
2977         PR tree-optimization/69580
2978         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
2979         * tree-ssa-threadbackward.c
2980         (fsm_find_control_statement_thread_paths): Do not try to walk
2981         through large PHI nodes.
2983 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2985         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
2986         when count is incremented above limit, don't analyze further
2987         insns afterwards.
2989         * omp-low.c (oacc_parse_default_dims): Avoid
2990         -Wsign-compare warning, make sure value fits into int
2991         rather than just unsigned int.
2993 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
2995         PR tree-optimization/67921
2996         * fold-const.c (split_tree): New parameters.  Convert pointer
2997         type variable part to proper type before negating.
2998         (fold_binary_loc): Pass new arguments to split_tree.
3000 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
3002         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
3003         (nvptx_goacc_validate_dims): Extend to handle global defaults.
3004         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
3005         * doc/tm.texti: Rebuilt.
3006         * doc/invoke.texi (fopenacc-dim): Document.
3007         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
3008         (append_compiler_options): Likewise.
3009         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
3010         (oacc_parse_default_dims): New.
3011         (oacc_validate_dims): Add USED arg.  Select non-unity default when
3012         possible.
3013         (oacc_loop_fixed_partitions): Return mask of used partitions.
3014         (oacc_loop_auto_partitions): Emit dump info.
3015         (oacc_loop_partition): Return mask of used partitions.
3016         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
3017         loop partitioning and validation calls.
3019 2016-02-01  Richard Biener  <rguenther@suse.de>
3021         PR middle-end/69556
3022         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
3024 2016-02-01  Richard Biener  <rguenther@suse.de>
3026         PR tree-optimization/69574
3027         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
3028         of asserting return chrec_dont_know.
3030 2016-02-01  Martin Liska  <mliska@suse.cz>
3032         * mem-stats-traits.h: Add copyright header.
3033         * mem-stats.h: Likewise.
3035 2016-02-01  Richard Biener  <rguenther@suse.de>
3037         PR tree-optimization/69579
3038         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
3039         Do not propagate through abnormal PHI results.
3041 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
3043         * postreload.c (reload_cse_simplify): Remove dead code.
3045 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
3047         PR rtl-optimization/69570
3048         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
3049         if there is more than one set, not if there is a single set.
3051 2016-02-01  Richard Henderson  <rth@redhat.com>
3053         PR rtl-opt/69535
3054         * combine.c (make_compound_operation): When looking through a
3055         subreg, make sure to re-extend to the width of the outer mode.
3057 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
3059         PR tree-optimization/69546
3060         * wide-int.cc (wi::divmod_internal): For unsigned division
3061         where both operands fit into uhwi, if o1 is 1 and o0 has
3062         msb set, if divident_prec is larger than bits per hwi,
3063         clear another quotient word and return 2 instead of 1.
3064         Similarly for remainder with msb in HWI set, if dividend_prec
3065         is larger than bits per hwi.
3067 2016-01-29  Martin Jambor  <mjambor@suse.cz>
3069         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
3070         Use short lowercase names.
3071         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
3072         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
3073         acq_rel one.  Protect warning agains segfaults if
3074         get_memory_order_name returns NULL.
3075         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
3076         with release semantics.  Do not warn if get_memory_order already did.
3077         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
3078         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
3079         if get_memory_order already did.
3081 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
3083         * doc/install.texi: Document that isl-0.16 is supported.
3085 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
3087         PR target/69299
3088         * config/i386/constraints.md (Bm): Describe as special memory
3089         constraint.
3090         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
3091         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3092         * genpreds.c (struct constraint_data): Add is_special_memory.
3093         (have_special_memory_constraints, special_memory_start): New
3094         static vars.
3095         (special_memory_end): Ditto.
3096         (add_constraint): Add new arg is_special_memory.  Add code to
3097         process its true value.  Update have_special_memory_constraints.
3098         (process_define_constraint): Pass the new arg.
3099         (process_define_register_constraint): Ditto.
3100         (choose_enum_order): Process special memory.
3101         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
3102         function insn_extra_special_memory_constraint.
3103         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3104         * gensupport.c (process_rtx): Process
3105         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3106         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
3107         * ira-lives.c (single_reg_class): Use
3108         insn_extra_special_memory_constraint.
3109         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
3110         * lra-constraints.c (process_alt_operands): Ditto.
3111         (curr_insn_transform): Use insn_extra_special_memory_constraint.
3112         * recog.c (asm_operand_ok, preprocess_constraints): Process
3113         CT_SPECIAL_MEMORY.
3114         * reload.c (find_reloads): Ditto.
3115         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
3116         * stmt.c (parse_input_constraint): Use
3117         insn_extra_special_memory_constraint.
3119 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3121         PR target/69530
3122         * lra-splill.c (lra_final_code_change): Revert r229087 by
3123         removing all sub-registers.
3125 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
3127         PR target/65604
3128         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
3130 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
3132         PR target/69551
3133         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
3134         SSE1, copy target into the temporary reg first before recursing
3135         on it.
3137 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3139         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
3140         with vm.
3142 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
3144         * ginclude/stdarg.h: Test __cplusplus instead of
3145         __GXX_EXPERIMENTAL_CXX0X__.
3147 2016-01-29  Richard Biener  <rguenther@suse.de>
3149         PR tree-optimization/69547
3150         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
3151         Do not mark clobbers necessary.
3152         (mark_all_reaching_defs_necessary_1): Likewise.
3154 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3156         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
3157         declaration name with %qs and print it in both error messages.
3158         Also fix indentation.
3160 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3162         PR other/69006
3163         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
3164         trailing blank line from error message.
3166 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
3168         PR c++/69462
3169         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
3170         for C++-11.
3172 2016-01-29  Richard Biener  <rguenther@suse.de>
3174         PR middle-end/69537
3175         * match.pd: Allow all integral types when simplifying a
3176         widening or sign-changing conversion.
3178 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3180         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
3181         back to setting codegen_error to fail codegen.
3183 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
3185         PR target/69459
3186         * config/i386/constraints.md (C): Only accept constant zero operand.
3187         (BC): New constraint.
3188         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
3189         instead of C constraint.
3190         * doc/md.texi (Machine Constraints): Update description
3191         of C constraint.
3193 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
3195         PR target/68400
3196         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
3198 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
3200         PR middle-end/69542
3201         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
3202         non-debug insns.
3204 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
3206         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
3207         branches if using guessed profile.
3209 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
3211         * graphite-optimize-isl.c (optimize_isl): Fix dump.
3213 2016-01-28  Richard Henderson  <rth@redhat.com>
3215         PR target/69305
3216         * config/aarch64/aarch64-modes.def (CC_Cmode): New
3217         * config/aarch64/aarch64-protos.h: Update.
3218         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
3219         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
3220         (aarch64_get_condition_code_1): Handle CC_Cmode.
3221         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
3222         (*add<mode>3_compareC_cconly_imm): New.
3223         (*add<mode>3_compareC_cconly): New.
3224         (*add<mode>3_compareC_imm): New.
3225         (add<mode>3_compareC): New.
3226         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
3227         to be first.  Use aarch64_carry_operation.
3228         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
3229         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
3230         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
3231         (subti3): Use subdi3_compare1.
3232         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
3233         (sub<mode>3_compare1): New.
3234         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
3235         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
3236         (*subsi3_carryin_uxtw): Likewise.
3237         (*ngc<mode>, *ngcsi_uxtw): Likewise.
3238         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
3239         * config/aarch64/iterators.md (DWI): New.
3240         * config/aarch64/predicates.md (aarch64_carry_operation): New.
3241         (aarch64_borrow_operation): New.
3243 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3245         * graphite-optimize-isl.c (optimize_isl): Print a different debug
3246         message when isl does not return a valid schedule.
3248 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3250         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3251         Remove comments from class declarations: they are already in the code
3252         close by the defs.
3254 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3256         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
3257         codegen_error_p.
3258         (ternary_op_to_tree): Same.
3259         (unary_op_to_tree): Same.
3260         (nary_op_to_tree): Same.
3261         (gcc_expression_from_isl_expr_op): Same.
3262         (gcc_expression_from_isl_expression): Same.
3263         (graphite_create_new_loop): Same.
3264         (graphite_create_new_loop_guard): Same.
3265         (build_iv_mapping): Same.
3266         (graphite_create_new_guard): Same.
3267         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
3268         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
3270 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3272         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
3273         instead of setting codegen_error to fail codegen.
3275 2016-01-28  Jason Merrill  <jason@redhat.com>
3277         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
3279 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3281         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3282         Remove CONST_INT_P check in CCMP cost calculation.
3284 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3286         * config/aarch64/aarch64.c (generic_vector_cost):
3287         Set vec_permute_cost.
3288         (cortexa57_vector_cost): Likewise.
3289         (exynosm1_vector_cost): Likewise.
3290         (xgene1_vector_cost): Likewise.
3291         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
3292         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
3293         Add vec_permute_cost entry.
3295 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3297         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
3298         immediate as %1.
3299         (add<mode>3_compare0): Likewise.
3300         (addsi3_compare0_uxtw): Likewise.
3301         (add<mode>3nr_compare0): Likewise.
3302         (compare_neg<mode>): Likewise.
3303         (<optab><mode>3): Likewise.
3305 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
3307         * tree-vect-stmts.c (vectorizable_comparison): Add
3308         NULL check for vectype.
3310 2016-01-28  Richard Biener  <rguenther@suse.de>
3312         PR tree-optimization/69466
3313         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3314         Account for PHIs we couldn't duplicate.
3316 2016-01-28  Martin Liska  <mliska@suse.cz>
3318         PR pch/68758
3319         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
3320         instead of ENABLE_VALGRIND_CHECKING.
3322 2016-01-27  Richard Henderson  <rth@redhat.com>
3324         PR rtl-opt/69447
3325         * lra-remat.c (subreg_regs): New.
3326         (dump_candidates_and_remat_bb_data): Dump it.
3327         (operand_to_remat): Reject if operand in subreg_regs.
3328         (set_bb_regs): Collect subreg_regs.
3329         (lra_remat): Init and free subreg_regs.  Compute
3330         calculate_local_reg_remat_bb_data before create_cands.
3332 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
3334         PR target/68986
3335         * config/i386/i386.c (ix86_update_stack_boundary): Don't
3336         change stack_alignment_needed for __tls_get_addr call.
3338 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
3340         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
3342 2016-01-27  Jeff Law  <law@redhat.com>
3344         PR tree-optimization/68398
3345         PR tree-optimization/69196
3346         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
3347         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
3348         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3349         Only count PHIs in the last block in the path.  The others will
3350         const/copy propagate away.  Add heuristic to allow more irreducible
3351         subloops to be created when it is likely profitable to do so.
3353         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3354         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
3355         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
3357 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3359         PR lto/69254
3360         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
3361         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
3362         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
3363         * tree-streamer-in.c: Include asan.h.
3364         (streamer_get_builtin_tree): For builtins in sanitizer
3365         range call initialize_sanitizer_builtins and retry.
3367 2016-01-27  Ian Lance Taylor  <iant@google.com>
3369         * common.opt (fkeep-gc-roots-live): New undocumented option.
3370         * tree-ssa-loop-ivopts.c (add_candidate_1): If
3371         -fkeep-gc-roots-live, skip pointers.
3372         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
3373         NULL.
3375 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
3377         PR target/69512
3378         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
3379         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
3381 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
3383         PR target/68380
3384         * configure.ac: NetBSD provides SSP in its C library.
3385         * configure: Updated.
3387 2016-01-27  Richard Biener  <rguenther@suse.de>
3389         PR tree-optimization/69166
3390         * tree-vect-loop.c (vect_is_simple_reduction): Always check
3391         reduction code for commutativity / associativity.
3393 2016-01-27  Martin Jambor  <mjambor@suse.cz>
3395         PR tree-optimization/69355
3396         * tree-sra.c (analyze_access_subtree): Correct hole detection when
3397         total_scalarization fails.
3399 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
3401         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
3402         power9.
3404 2016-01-27  Christian Bruel  <christian.bruel@st.com>
3406         PR target/69245
3407         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
3408         Move arm_reset_previous_fndecl and set_target_option_current_node in
3409         the conditional part.  Call save_restore_target_globals.
3410         * config/arm/arm.c (arm_set_current_function):
3411         Refactor to better support #pragma target and attribute mix.
3412         Call save_restore_target_globals.
3413         * config/arm/arm-protos.h (save_restore_target_globals): New function.
3415 2016-01-27  Martin Liska  <mliska@suse.cz>
3417         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
3418         reference for an HSA kernel and its host function.
3420 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3422         PR tree-optimization/69399
3423         * wide-int.h (wi::lrshift): For larger precisions, only
3424         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
3426 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
3428         * config/arc/predicates.md (proper_comparison_operator): Reject
3429         constant-constant comparison.
3431 2016-01-26  Tom de Vries  <tom@codesourcery.com>
3433         PR tree-optimization/69110
3434         * tree-data-ref.c (initialize_data_dependence_relation): Handle
3435         DR_NUM_DIMENSIONS == 0.
3437 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3438             Sebastian Pop  <s.pop@samsung.com>
3440         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
3441         isl_ast_op_cond and isl_ast_op_select.
3442         (gcc_expression_from_isl_expr_op): Same.
3444 2016-01-26  Jason Merrill  <jason@redhat.com>
3446         PR c++/68782
3447         * tree.c (recompute_constructor_flags): Split out from
3448         build_constructor.
3449         (verify_constructor_flags): New.
3450         * tree.h: Declare them.
3452 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
3454         PR rtl-optimization/69217
3455         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
3456         are no TYPE_FIELDS set for the record type.
3458 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3460         PR target/68662
3461         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
3462         toc_label_name unconditionally.
3463         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
3464         SYMBOL_REF string.  Use toc_label_name instead of constructing
3465         LCTOC1.
3466         (rs6000_elf_declare_function_name): Use toc_label_name instead of
3467         constructing LCTOC1.
3469 2016-01-26  Martin Sebor  <msebor@redhat.com>
3471         PR other/69477
3472         * doc/extend.texi (Common Type Attributes): Move text that talks about
3473         attribute packed from attribute aligned to the section discussing
3474         the former attribute for clarity.
3476 2016-01-26  Richard Henderson  <rth@redhat.com>
3478         PR middle-end/60908
3479         * trans-mem.c (tm_region_init): Mark entry block as visited.
3481 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
3483         PR other/69006
3484         * diagnostic-show-locus.c (layout::print_source_line): Replace
3485         call to pp_newline with call to layout::print_newline.
3486         (layout::print_annotation_line): Likewise.
3487         (layout::move_to_column): Likewise.
3488         (layout::print_any_fixits): After printing any fixits, print a
3489         trailing newline, if necessary.
3490         (layout::print_newline): New method, resetting any colorization
3491         before a newline.
3492         (diagnostic_show_locus): Move the pp_newline to before the
3493         early bailout.  Remove dummy block enclosing the layout instance.
3494         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
3495         of pp_newline_and_flush with pp_flush.
3496         (diagnostic_append_note): Delete use of pp_newline.
3497         (diagnostic_append_note_at_rich_loc): Delete.
3498         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
3499         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
3500         when newline characters are added to the buffer.
3502 2016-01-26  Michael Matz  <matz@suse.de>
3504         * configure.ac (ac_cv_std_swap_in_utility): New test.
3505         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
3506         * configure: Regenerate.
3507         * config.in: Regenerate.
3509 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
3511         * config/arc/arc.md (cstoresi4): Force operand into register.
3512         (arcset<code>): Fix predicate.
3513         (arcsetltu): Likewise.
3514         (arcsetgeu): Likewise.
3515         (arcsethi): Likewise.
3516         (arcsetls): Likewise.
3518 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3520         PR tree-optimization/69483
3521         * gimple-fold.c (canonicalize_constructor_val): Return NULL
3522         if base has error_mark_node type.
3524 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
3526         PR target/68620
3527         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
3528         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
3529         New helper macros.
3530         (vget_lane_f16): Handle big-endian.
3531         (vgetq_lane_f16): Likewise.
3532         (vset_lane_f16): Likewise.
3533         (vsetq_lane_f16): Likewise.
3534         * config/arm/iterators.md (VQXMOV): Add V8HF.
3535         (VDQ): Add V4HF and V8HF.
3536         (V_reg): Handle V4HF and V8HF.
3537         (Is_float_mode): Likewise.
3538         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
3539         neon_vdup_nv8hf): New patterns.
3540         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
3541         Use VD_LANE iterator.
3542         (neon_vld1_dup<mode>): Use VQ2 iterator.
3544 2016-01-26  Nathan Sidwell  <nathan@acm.org>
3546         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
3547         (set_oacc_fn_attrib): Add IS_KERNEL arg.
3548         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
3549         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
3550         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
3551         (oacc_validate_dims): Add LEVEL arg, don't return level.
3552         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
3553         oacc_validate_dims.
3554         (execute_oacc_device_lower): Adjust, add more dump output.
3555         * tree-ssa-loop.c (gate_oacc_kernels): Use
3556         oacc_fn_attrib_kernels_p.
3557         * tree-parloops.c (create_parallel_loop): Adjust
3558         set_oacc_fn_attrib call.
3560 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3562         PR lto/69254
3563         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
3564         (append_compiler_options): Handle -fcilkplus.
3565         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
3567 2016-01-26  Nick Clifton  <nickc@redhat.com>
3569         PR target/66655
3570         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
3571         been marked as DECL_ONE_ONLY but we do not the means to make it
3572         so, then do not allow it to bind locally.
3574 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3576         PR lto/69254
3577         * opts.h (parse_sanitizer_options): New prototype.
3578         * opts.c (sanitizer_opts): New array.
3579         (parse_sanitizer_options): New function.
3580         (common_handle_option): Use parse_sanitizer_options.
3582 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3584         PR target/68986
3585         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
3586         alignment adjustment to ...
3587         (ix86_update_stack_boundary): Here.  Don't over-align stack for
3588         __tls_get_addr.
3589         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
3590         if __tls_get_addr is called.
3592 2016-01-26  Christian Bruel  <christian.bruel@st.com>
3594         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
3596 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
3598         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
3600 2016-01-26  Richard Biener  <rguenther@suse.de>
3602         PR middle-end/69467
3603         * match.pd: Guard X * CST CMP 0 pattern with single_use.
3605 2016-01-26  Richard Biener  <rguenther@suse.de>
3607         PR tree-optimization/69452
3608         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
3609         (move_computations_dom_walker::before_dom_children): Rename
3610         to ...
3611         (move_computations_worker): This.
3612         (move_computations): Perform an RPO rather than a DOM walk.
3614 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3616         PR target/69442
3617         * combine.c (combine_instructions): For REG_EQUAL note with
3618         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
3619         to the underlying register.
3620         * doc/rtl.texi (REG_EQUAL): Document the behavior of
3621         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
3623 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
3625         PR target/67896
3626         * config/aarch64/aarch64-builtins.c
3627         (aarch64_init_simd_builtin_types): Do not set structural
3628         equality to __Poly{8,16,64,128}_t types.
3630 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
3632         PR tree-optimization/69400
3633         * wide-int.cc (wi_pack): Take the precision as argument and
3634         perform canonicalization here rather than in the callers.
3635         Use the main loop to handle all full-width HWIs.  Add a
3636         zero HWI if in_len isn't a full result.
3637         (wi::divmod_internal): Update accordingly.
3638         (wi::mul_internal): Likewise.  Simplify.
3640 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
3641             Sebastian Pop  <s.pop@samsung.com>
3643         * graphite-poly.c (apply_poly_transforms): Simplify.
3644         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
3645         (print_isl_map): Same.
3646         (print_isl_union_map): Same.
3647         (print_isl_schedule): New.
3648         (debug_isl_schedule): New.
3649         * graphite-dependences.c (scop_get_reads): Do not call
3650         isl_union_map_add_map that is undocumented isl functionality.
3651         (scop_get_must_writes): Same.
3652         (scop_get_may_writes): Same.
3653         (scop_get_original_schedule): Remove.
3654         (scop_get_dependences): Do not call isl_union_map_compute_flow that
3655         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
3656         (compute_deps): Remove.
3657         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
3658         (debug_schedule_ast): New.
3659         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
3660         set_separate_option.
3661         (graphite_regenerate_ast_isl): Add dump.
3662         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
3663         from scop->transformed_schedule.
3664         (graphite_regenerate_ast_isl): Add more dump.
3665         * graphite-optimize-isl.c (optimize_isl): Set
3666         scop->transformed_schedule.  Check whether schedules are equal.
3667         (apply_poly_transforms): Move here.
3668         * graphite-poly.c (apply_poly_transforms): ... from here.
3669         (free_poly_bb): Static.
3670         (free_scop): Static.
3671         (pbb_number_of_iterations_at_time): Remove.
3672         (print_isl_ast): New.
3673         (debug_isl_ast): New.
3674         (debug_scop_pbb): New.
3675         * graphite-scop-detection.c (print_edge): Move.
3676         (print_sese): Move.
3677         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3678         (build_scop_scattering): Remove.
3679         (create_pw_aff_from_tree): Assert instead of bailing out.
3680         (add_condition_to_pbb): Remove unused code, do not fail.
3681         (add_conditions_to_domain): Same.
3682         (add_conditions_to_constraints): Remove.
3683         (build_scop_context): New.
3684         (add_iter_domain_dimension): New.
3685         (build_iteration_domains): Initialize pbb->iterators.
3686         Call add_conditions_to_domain.
3687         (nested_in): New.
3688         (loop_at): New.
3689         (index_outermost_in_loop): New.
3690         (index_pbb_in_loop): New.
3691         (outermost_pbb_in): New.
3692         (add_in_sequence): New.
3693         (add_outer_projection): New.
3694         (outer_projection_mupa): New.
3695         (add_loop_schedule): New.
3696         (build_schedule_pbb): New.
3697         (build_schedule_loop): New.
3698         (embed_in_surrounding_loops): New.
3699         (build_schedule_loop_nest): New.
3700         (build_original_schedule): New.
3701         (build_poly_scop): Call build_original_schedule.
3702         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
3703         (free_poly_dr): Remove.
3704         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
3705         (free_poly_bb): Remove.
3706         (debug_loop_vec): Remove.
3707         (print_isl_ast): Declare.
3708         (debug_isl_ast): Declare.
3709         (scop_do_interchange): Remove.
3710         (scop_do_strip_mine): Remove.
3711         (scop_do_block): Remove.
3712         (flatten_all_loops): Remove.
3713         (optimize_isl): Remove.
3714         (pbb_number_of_iterations_at_time): Remove.
3715         (debug_scop_pbb): Declare.
3716         (print_schedule_ast): Declare.
3717         (debug_schedule_ast): Declare.
3718         (struct scop): Remove schedule.  Add original_schedule,
3719         transformed_schedule.
3720         (free_gimple_poly_bb): Remove.
3721         (print_generated_program): Remove.
3722         (debug_generated_program): Remove.
3723         (unify_scattering_dimensions): Remove.
3724         * sese.c (print_edge): ... here.
3725         (print_sese): ... here.
3726         (debug_edge): ... here.
3727         (debug_sese): ... here.
3728         * sese.h (print_edge): Declare.
3729         (print_sese): Declare.
3730         (dump_edge): Declare.
3731         (dump_sese): Declare.
3733 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
3734             Sebastian Pop  <s.pop@samsung.com>
3736         * Makefile.in: Set ISLVER in site.exp.
3738 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
3740         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
3741         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
3742         through DECL_VALUE_EXPR for expansion.
3744 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3746         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
3747         the frame info after reload completed.
3749 2016-01-25  Jeff Law  <law@redhat.com>
3751         PR tree-optimization/69196
3752         PR tree-optimization/68398
3753         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
3754         tree-ssa-threadupdate.c.
3755         (determine_bb_domination_status): Prototype
3756         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
3757         (determine_bb_domination_status): No longer static.
3758         (valid_jump_thread_path): Remove code to detect characteristics
3759         of the jump thread path not associated with correctness.
3760         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
3761         Correct test for thread path length.  Count PHIs for real operands as
3762         statements that need to be copied.  Do not count ASSERT_EXPRs.
3763         Look at all the blocks in the thread path.  Compute and selectively
3764         filter thread paths based on threading through the latch, threading
3765         a multiway branch or crossing a multiway branch.
3767 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3769         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
3770         decl with __attribute__ ((unused)) annotation.
3772 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
3774         PR target/69421
3775         * tree-vect-stmts.c (vectorizable_condition): Check vectype
3776         of operands is compatible with a statement vectype.
3778 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
3780         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
3781         improve wording for mixed storage order support.
3783 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
3785         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
3786         (vcvt_u64_f64): Likewise.
3787         (vcvta_s64_f64): Likewise.
3788         (vcvta_u64_f64): Likewise.
3789         (vcvtm_s64_f64): Likewise.
3790         (vcvtm_u64_f64): Likewise.
3791         (vcvtn_s64_f64): Likewise.
3792         (vcvtn_u64_f64): Likewise.
3793         (vcvtp_s64_f64): Likewise.
3794         (vcvtp_u64_f64): Likewise.
3796 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
3798         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
3799         (arc_init): Check validity mll64 option.
3800         (arc_save_restore): Use double load/store instruction.
3801         (arc_expand_movmem): Likewise.
3802         (arc_split_move): Don't split if we have double load/store
3803         instructions. Returns a boolean.
3804         (arc_process_double_reg_moves): Change function to return boolean
3805         instead of a sequence of instructions.
3806         (arc_dwarf_register_span): New function.
3807         * config/arc/arc-protos.h (arc_split_move): Change prototype.
3808         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
3809         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
3810         (*movdf_insn): Likewise.
3811         * config/arc/arc.opt (mll64): New option.
3812         * config/arc/predicates.md (even_register_operand): New predicate.
3813         * doc/invoke.texi (ARC Options): Add mll64 documentation.
3815 2016-01-25  Richard Biener  <rguenther@suse.de>
3817         PR lto/69393
3818         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
3819         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
3820         DECL_NAMELESS.
3821         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
3823 2016-01-25  Richard Biener  <rguenther@suse.de>
3825         PR tree-optimization/69376
3826         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
3827         flag.
3828         (VN_INFO_ANTI_RANGE_P): New inline.
3829         (VN_INFO_RANGE_TYPE): Likewise.
3830         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
3831         SSA_NAME_ANTI_RANGE_P.
3832         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
3833         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3834         Properly query VN_INFO_RANGE_TYPE.
3836 2016-01-25  Nick Clifton  <nickc@redhat.com>
3838         PR target/66655
3839         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
3841 2016-01-23  Tom de Vries  <tom@codesourcery.com>
3843         PR tree-optimization/69426
3844         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
3845         removed clobber.
3847 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
3849         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
3850         "the the" with "the" in the comments.
3851         * ipa-devirt.c (build_type_inheritance_graph,
3852         update_type_inheritance_graph): Likewise.
3853         * tree.c (build_function_type_list_1): Likewise.
3854         * cfgloopmanip.c (scale_loop_profile): Likewise.
3855         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
3856         * gimple-ssa-split-paths.c
3857         (find_block_to_duplicate_for_splitting_paths): Likewise.
3858         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
3859         * expr.c (convert_move): Likewise.
3860         * var-tracking.c (vt_stack_adjustments): Likewise.
3861         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3862         * tree-vrp.c (test_for_singularity): Likewise.
3864         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
3865         directly instead of building a temporary tree.
3867         PR bootstrap/69434
3868         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
3869         remove <algorithm> include.
3871 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
3873         PR target/69432
3874         * config/i386/i386.c: Include dojump.h.
3875         (expand_small_movmem_or_setmem,
3876         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
3877         fixes.
3878         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
3879         if dynamic_check != -1.
3881 2016-01-21  Jeff Law  <law@redhat.com>
3883         PR middle-end/69347
3884         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
3885         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
3886         into dominated_by_p.
3887         (cprop_into_successor_phis): Avoid unnecessary tests.
3889 2016-01-22  Richard Henderson  <rth@redhat.com>
3891         PR target/69416
3892         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
3893         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
3895 2016-01-22  Michael Matz  <matz@suse.de>
3897         * system.h (string, algorithm): Include only conditionally.
3898         (new): Include always under C++.
3899         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
3900         * final.c (toplevel): Ditto.
3901         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
3902         * genconditions.c (write_header): Make gencondmd.c define
3903         INCLUDE_STRING.
3904         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
3906         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
3907         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
3909 2016-01-22  Christian Bruel  <christian.bruel@st.com>
3911         PR target/68674
3912         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
3914 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3916         PR target/69403
3917         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
3918         define_insn_and_split.  Ensure operands[1] and operands[0] do not
3919         get assigned the same register.
3921 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3923         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
3925 2016-01-22  Christian Bruel  <christian.bruel@st.com>
3927         * config/arm/arm-c.c (arm_pragma_target_parse):
3928         Remove warn_builtin_macro_redefined overwrite.
3930 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3932         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
3933         flag_non_call_exceptions compatibility.
3935 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
3937         PR debug/66668
3938         * dwarf2out.c (add_child_die_after): New function.
3939         (dwarf_qual_info_t): New type.
3940         (dwarf_qual_info): New variable.
3941         (qualified_die_p): New function.
3942         (modified_type_die): For -fdebug-types-section, ensure
3943         canonical order of qualifiers.  Put qualified DIEs adjacent
3944         to the corresponding non-qualified type DIE and search there
3945         for existing qualified DIEs.
3947 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3949         * doc/extend.texi (scalar_storage_order type attribute): Document
3950         restriction on type punning and aliasing, and remove future tense.
3952 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
3954         PR target/69252
3955         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
3956         first stage.
3958 2016-01-21  Jeff Law  <law@redhat.com>
3960         PR middle-end/69347
3961         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
3962         useless call to record_temporary_equivalences.
3963         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
3964         allocate 10 slots in the bb_path vector and let it grow as needed.
3965         (fsm_find_control_statement_thread_paths): Similarly for the next_path
3966         vector.
3968 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
3970         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
3971         Detangle.
3972         * configure: Regenerate.
3974 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
3976         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
3977         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
3979 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
3981         PR middle-end/66178
3982         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
3983         drop EXPAND_INITIALIZER.
3984         * rtl.h (contains_symbolic_reference_p): Declare.
3985         * rtlanal.c (contains_symbolic_reference_p): New function.
3986         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
3987         a subtraction into a NOT if symbolic constants are involved.
3989 2016-01-21  Anton Blanchard  <anton@samba.org>
3990             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3992         PR target/63354
3993         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
3994         #define.
3995         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
3996         function.
3998 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
4000         * config/microblaze/microblaze.c
4001         (get_branch_target): New.
4002         (insert_wic_for_ilb_runout): New.
4003         (insert_wic): New.
4004         (microblaze_machine_dependent_reorg): New.
4005         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
4006         * config/microblaze/microblaze.md
4007         (UNSPEC_IPREFETCH): Define.
4008         (iprefetch): New pattern
4009         * config/microblaze/microblaze.opt
4010         (mxl-prefetch): New flag.
4012 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
4014         * config/microblaze/microblaze.h
4015         (FIXED_REGISTERS): Update in macro.
4016         (CALL_USED_REGISTERS): Update in macro.
4018 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
4020         PR rtl-optimization/68920
4021         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
4022         moves.
4024 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
4026         PR rtl-optimization/68990
4027         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
4028         pseudo instead of inheritance ones.
4030 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4031             Nick Clifton  <nickc@redhat.com>
4033         PR target/69129
4034         PR target/69012
4035         * config/mips/mips.c (mips_compute_frame_info): Initialise
4036         args_size and hard_frame_pointer_offset fields of the frame
4037         structure before calling mips_global_pointer.
4039 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
4041         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
4042         label reference.
4043         * configure: Regenerate.
4045 2016-01-21  Richard Biener  <rguenther@suse.de>
4047         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
4049 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
4051         * config/s390/s390.c (s390_asm_declare_function_size): Add code
4052         to actually emit the .size directive.
4054 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
4055              Jakub Jelinek  <jakub@redhat.com>
4057         PR target/69187
4058         PR target/65624
4059         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
4060         args array size by one to avoid buffer overflow.
4062 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
4064         * config/s390/s390.md (pool_section_start): Use switch_to_section
4065         to select proper read-only data section instead of hardcoding
4066         .rodata.
4067         (pool_section_end): Use switch_to_section to match the above.
4069 2016-01-21  Richard Biener  <rguenther@suse.de>
4071         PR tree-optimization/69378
4072         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
4073         (set_ssa_val_to): Use it for dominance checks taking into
4074         account not executable edges.
4076 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
4078         PR c++/69355
4079         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
4080         for bitsize instead of GET_MODE_PRECISION (mode).
4082 2016-01-20  Martin Sebor  <msebor@redhat.com>
4084         PR c/52291
4085         * extend.texi (__sync Builtins): Clarify the semantics of
4086         __sync_fetch_and_OP built-ins on pointers.
4087         (__atomic Builtins): Same.
4089 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4090             Sebastian Pop  <s.pop@samsung.com>
4092         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
4093         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
4094         (is_valid_rename): Same.
4095         (translate_isl_ast_to_gimple::get_rename): Same.
4096         (translate_isl_ast_to_gimple::rename_all_uses): Same.
4097         (translate_isl_ast_to_gimple::rename_uses): Same.
4098         (get_new_name): Check for close_phi nodes.
4099         (copy_loop_phi_args): Use phi_node_kind.
4100         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4101         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
4103 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4104             Sebastian Pop  <s.pop@samsung.com>
4106         Revert commit r229783.
4107         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4108         Remove use of parameter_rename_map.
4109         (copy_def): Remove.
4110         (copy_internal_parameters): Remove.
4111         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4112         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4113         (free_sese_info): Do not free parameter_rename_map.
4114         (set_rename): Do not use parameter_rename_map.
4115         (rename_uses): Update call to set_rename.
4116         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4117         * sese.h (parameter_rename_map_t): Remove.
4118         (struct sese_info_t): Remove field parameter_rename_map.
4120 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4121             Sebastian Pop  <s.pop@samsung.com>
4123         * graphite-isl-ast-to-gimple.c: Fix comment.
4124         * graphite-scop-detection.c (defined_in_loop_p): New.
4125         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
4126         names defined in loop.
4128 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4129             Sebastian Pop  <s.pop@samsung.com>
4131         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4132         Discard unstructured if-then-else regions.
4134 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4135             Sebastian Pop  <s.pop@samsung.com>
4137         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
4138         (cleanup_loop_iter_dom): Remove.
4139         (build_loop_iteration_domains): Remove.
4140         (build_scop_context): Remove.
4141         (build_scop_iteration_domain): Remove.
4142         (add_loop_constraints): New.
4143         (build_iteration_domains): New.
4144         (build_poly_scop): Call build_iteration_domains.
4146 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4147             Sebastian Pop  <s.pop@samsung.com>
4149         * graphite-scop-detection.c
4150         (scop_detection::harmful_loop_in_region): Free dom and loops.
4151         (scop_detection::loop_body_is_valid_scop): Free bbs.
4153 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4154             Sebastian Pop  <s.pop@samsung.com>
4156         * graphite-scop-detection.c (record_loop_in_sese): New.
4157         (gather_bbs::before_dom_children): Call record_loop_in_sese.
4158         (build_scops): Remove call to build_sese_loop_nests.
4159         * sese.c (sese_record_loop): Remove.
4160         (build_sese_loop_nests): Remove.
4161         (new_sese_info): Remove region->loops.
4162         (free_sese_info): Same.
4163         * sese.h (sese_contains_loop): Same.
4164         (build_sese_loop_nests): Remove.
4165         (sese_contains_loop): Remove.
4167 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4168             Sebastian Pop  <s.pop@samsung.com>
4170         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
4171         loop_is_valid_in_scop.
4172         (scop_detection::harmful_stmt_in_region): Renamed
4173         harmful_loop_in_region.
4174         Call loop_is_valid_in_scop.
4176 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4177             Sebastian Pop  <s.pop@samsung.com>
4179         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
4180         isl_ast_node_mark.
4182 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4183             Sebastian Pop  <s.pop@samsung.com>
4185         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
4186         * graphite.h (struct poly_bb): Remove field is_reduction.
4187         (PBB_IS_REDUCTION): Remove.
4189 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4190             Sebastian Pop  <s.pop@samsung.com>
4192         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
4193         (add_pdr_constraints): Same.
4194         (scop_get_reads): Same.
4195         (scop_get_must_writes): Same.
4196         (scop_get_may_writes): Same.
4197         (scop_get_original_schedule): Same.
4198         (extend_schedule): Same.
4199         (apply_schedule_on_deps): Same.
4200         (carries_deps): Same.
4201         (compute_deps): Same.
4202         (scop_get_dependences): Same.
4203         * graphite-isl-ast-to-gimple.c
4204         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
4205         * graphite-optimize-isl.c (get_schedule_for_band): Same.
4206         (get_schedule_for_band_list): Same.
4207         (get_schedule_map): Same.
4208         (apply_schedule_map_to_scop): Same.
4209         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
4210         (build_loop_iteration_domains): Same.
4211         (add_condition_to_pbb): Same.
4212         (add_param_constraints): Same.
4213         (pdr_add_memory_accesses): Same.
4214         (pdr_add_data_dimensions): Same.
4216 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
4218         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
4219         requirements.
4221 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
4223         * common.opt (feliminate-dwarf2-dups): Replace references to
4224         "DWARF 2" with just "DWARF".
4225         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
4226         * doc/extend.texi: Likewise.
4227         * doc/cpp.texi: Likewise.
4228         * doc/invoke.texi: Likewise.
4229         (Option Summary): Add -gdwarf to list of Debugging Options.
4230         (Debugging Options): Document -gdwarf.
4231         * doc/contrib.texi: Spell "DWARF" like that.
4233 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
4235         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
4236         warning.  Fix up formatting.
4238         PR middle-end/67653
4239         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
4240         attempt to mark memory input operand addressable and
4241         call prepare_gimple_addressable in that case.  Don't adjust
4242         input_location for diagnostics, use error_at instead.
4244 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
4246         * config/rs6000/ppc-auxv.h: New file.
4247         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
4248         (cpu_is): Likewise.
4249         (cpu_supports): Likewise.
4250         * config/rs6000/rs6000.c: include "ppc-auxv.h".
4251         (cpu_is_info): New variable.
4252         (cpu_supports_info): Likewise.
4253         (tcb_verification_symbol): Likewise.
4254         (cpu_builtin_p): Likewise.
4255         (cpu_expand_builtin): New function.
4256         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
4257         (rs6000_init_builtins): Likewise.
4258         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
4259         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
4260         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
4261         * configure: Regenerate.
4262         * config.in: Likewise.
4263         * doc/extend.texi (PowerPC Built-in Functions): Document
4264         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
4266 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
4268         PR target/68609
4269         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
4270         domain check.
4271         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
4272         for V4SFmode.
4274 2016-01-20  Richard Henderson  <rth@redhat.com>
4276         PR bootstrap/69343
4277         PR bootstrap/69339
4278         PR tree-opt/68964
4279         Revert:
4280         * tree.c (tm_define_builtin): New.
4281         (find_tm_vector_type): New.
4282         (build_tm_vector_builtins): New.
4283         (build_common_builtin_nodes): Call it.
4285 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
4287         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
4288         (arm_fp_ok): Likewise.
4289         (arm_fp): Likewise.
4290         (arm_crypto): Likewise.
4292 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
4293             Richard Biener  <rguenther@suse.de>
4295         PR tree-optimization/69328
4296         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
4297         vectors have same number of elements.
4298         (vectorizable_condition): Fix masked version recognition.
4300 2016-01-20  Richard Biener  <rguenther@suse.de>
4302         PR tree-optimization/69345
4303         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
4304         (VN_INFO_PTR_INFO): Likewise.
4305         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
4306         info when it is equal between non-dominating SSA names.
4307         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4308         Make sure to look at original SSA infos.
4310 2016-01-20  Jeff Law  <law@redhat.com>
4312         PR target/25114
4313         * config/m68k/predicates.md (pow2_m1_operand): New predicate
4314         extracted from ...
4315         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
4316         (pc_or_label_operand): New predicate.
4317         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
4318         tests for small integers that are 2^n - 1.
4320 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
4322         * doc/invoke.texi (Options Summary): Add '.' after @xref.
4324 2016-01-19  Jeff Law  <law@redhat.com>
4326         PR middle-end/69347
4327         * tree-ssa-threadbackwards.c
4328         (fsm_find_control_statement_thread_paths): Do not try to lookup
4329         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
4331 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4333         * doc/lto.texi: Remove text that says only Gold has linker plugin
4334         support.
4336 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
4338         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
4339         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
4340         the DIE accordingly.
4341         (modified_type_die): Add REVERSE parameter and pass it recursively,
4342         as well as to base_type_die.  Adjust presence check accordingly.
4343         (base_type_for_mode): Adjust call to modified_type_die.
4344         (add_type_attribute): Add REVERSE parameter and pass it to
4345         modified_type_die.
4346         (generic_parameter_die): Adjust call to add_type_attribute.
4347         (add_scalar_info): Likewise.
4348         (add_subscript_info): Likewise.
4349         (gen_array_type_die): Likewise.
4350         (gen_descr_array_type_die): Likewise.
4351         (gen_entry_point_die): Likewise.
4352         (gen_enumeration_type_die): Likewise.
4353         (gen_formal_parameter_die): Likewise.
4354         (gen_subprogram_die): Likewise.
4355         (gen_variable_die ): Likewise.
4356         (gen_const_die): Likewise.
4357         (gen_field_die): Likewise.
4358         (gen_pointer_type_die): Likewise.
4359         (gen_reference_type_die): Likewise.
4360         (gen_ptr_to_mbr_type_die): Likewise.
4361         (gen_inheritance_die): Likewise.
4362         (gen_subroutine_type_die): Likewise.
4363         (gen_typedef_die): Likewise.
4364         (force_type_die): Adjust call to modified_type_die.
4366 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
4368         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
4369         flow throughout the file.  Fix broken link to Objective-C 2.0
4370         documentation.
4371         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
4372         errors.
4374 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4376         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
4378 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4380         PR ipa/66223
4381         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
4382         (maybe_record_node): Record cxa_pure_virtual as the only possible
4383         target if there are not ohter candidates.
4384         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
4386 2016-01-19  Richard Biener  <rguenther@suse.de>
4388         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
4389         (get_memory_order): Likewise.
4391 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
4393         * tree-vect-stmts.c (vectorizable_store): Check
4394         rhs vectype.
4396 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
4398         PR jit/68446
4399         * gcc.c (driver::decode_argv): Add call to
4400         init_opts_obstack before init_options_struct.
4401         * opts.c (init_opts_obstack): Remove idempotency.
4402         (init_options_struct): Replace call to init_opts_obstack
4403         with a gcc_assert to verify that it has already been called.
4404         * toplev.c (toplev::main): Add call to init_opts_obstack before
4405         calls to init_options_struct.
4406         (toplev::finalize): Move cleanup of opts_obstack next to
4407         cleanup of save_decoded_options, clearing the latter, and
4408         save_decoded_options_count.
4410 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4412         PR target/69135
4413         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
4414         attribute to unconditional.  Remove %? from output template.
4416 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4417             Jiong Wang  <jiong.wang@arm.com>
4419         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
4420         generated from different expand order.
4422 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4424         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4425         Add support for CCMP costing.
4427 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4429         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
4430         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
4431         (fccmpe<mode>): Likewise.
4432         (fcmp): Rename to fcmp and globalize pattern.
4433         (fcmpe): Likewise.
4434         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
4435         (aarch64_gen_ccmp_next): Add FP support.
4437 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4439         * target.def (gen_ccmp_first): Update documentation.
4440         (gen_ccmp_next): Likewise.
4441         * doc/tm.texi (gen_ccmp_first): Update documentation.
4442         (gen_ccmp_next): Likewise.
4443         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
4444         expand_ccmp_expr_1.  Improve comments.
4445         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
4446         (ccmp_ior<mode>): Remove pattern.
4447         (cmp<mode>): Remove expand.
4448         (cmp): Globalize pattern.
4449         (cstorecc4): Use cc_register.
4450         (mov<mode>cc): Remove ccmp_cc_register check.
4451         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
4452         Simplify after removal of CC_DNE/* modes.
4453         (aarch64_ccmp_mode_to_code): Remove.
4454         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
4455         In 'k' case use integer as condition.
4456         (aarch64_nzcv_codes): Remove inverted cases.
4457         (aarch64_code_to_ccmode): Remove.
4458         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
4459         comparison with CC register to be used in folowing CCMP/branch/CSEL.
4460         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
4461         pattern.  Return the comparison with CC register.  Invert conditions
4462         when bitcode is OR.
4463         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
4464         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
4466 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4468         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4469         instrumented_version.
4471 2016-01-19  Richard Biener  <rguenther@suse.de>
4473         PR tree-optimization/69336
4474         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
4475         handled components with get_ref_base_and_extent.
4476         (equal_mem_array_ref_p): Adjust.
4478 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4480         PR debug/65779
4481         * shrink-wrap.c: Include valtrack.h.
4482         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
4483         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
4484         in between insn and where it will be moved to.  Call
4485         dead_debug_insert_temp.
4486         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
4487         first and dead_debug_local_finish at the end.
4488         For uses and defs bitmap, handle all regs in between REGNO and
4489         END_REGNO, not just the first one.
4491 2016-01-19  Richard Biener  <rguenther@suse.de>
4493         PR tree-optimization/69352
4494         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
4495         (equal_mem_array_ref_p): Constrain size and max size properly.
4496         Compare the reverse flag.
4498 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
4500         * ira.c (ira): Update regstat data if we deleted insns.
4502 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4504         PR rtl-optimization/68955
4505         PR rtl-optimization/64557
4506         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
4507         here.  Fix up formatting.
4508         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
4510 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4512         PR lto/69133
4513         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
4514         assume that the node has body.
4515         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
4516         check.
4518 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4520         * lto-streamer-out.c (lto_output): Do not stream instrumentation
4521         thunks.
4523 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4525         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
4526         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
4528 2016-01-19  Martin Jambor  <mjambor@suse.cz>
4529             Martin Liska  <mliska@suse.cz>
4530             Michael Matz  <matz@suse.de>
4532         * Makefile.in (OBJS): Add new source files.
4533         (GTFILES): Add hsa.c.
4534         * common.opt (disable_hsa): New variable.
4535         (-Whsa): New warning.
4536         * config.in (ENABLE_HSA): New.
4537         * configure.ac: Treat hsa differently from other accelerators.
4538         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
4539         $enable_offloading.
4540         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
4541         * doc/install.texi (Configuration): Document --with-hsa-runtime,
4542         --with-hsa-runtime-include, --with-hsa-runtime-lib and
4543         --with-hsa-kmt-lib.
4544         * doc/invoke.texi (-Whsa): Document.
4545         (hsa-gen-debug-stores): Likewise.
4546         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
4547         to invoke offload compiler for hsa acclerator.
4548         * opts.c (common_handle_option): Determine whether HSA offloading
4549         should be performed.
4550         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
4551         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
4552         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
4553         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
4554         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
4555         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
4556         GF_OMP_FOR_KIND_GRID_LOOP.
4557         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
4558         (pp_gimple_stmt_1): Likewise.
4559         * gimple-walk.c (walk_gimple_stmt): Likewise.
4560         * gimple.c (gimple_build_omp_grid_body): New function.
4561         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
4562         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
4563         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
4564         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
4565         GF_OMP_TEAMS_GRID_PHONY.
4566         (gimple_statement_omp_single_layout): Updated comments.
4567         (gimple_build_omp_grid_body): New function.
4568         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
4569         (gimple_omp_for_grid_phony): New function.
4570         (gimple_omp_for_set_grid_phony): Likewise.
4571         (gimple_omp_parallel_grid_phony): Likewise.
4572         (gimple_omp_parallel_set_grid_phony): Likewise.
4573         (gimple_omp_teams_grid_phony): Likewise.
4574         (gimple_omp_teams_set_grid_phony): Likewise.
4575         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
4576         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
4577         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
4578         (BUILT_IN_GOMP_TARGET): Updated type.
4579         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
4580         (adjust_for_condition): New function.
4581         (get_omp_for_step_from_incr): Likewise.
4582         (extract_omp_for_data): Moved parts to adjust_for_condition and
4583         get_omp_for_step_from_incr.
4584         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
4585         (fixup_child_record_type): Bail out if receiver_decl is NULL.
4586         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
4587         (scan_omp_parallel): Do not create child functions for phony
4588         constructs.
4589         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
4590         (scan_omp_1_op): Checking assert we are not remapping to
4591         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
4592         (parallel_needs_hsa_kernel_p): New function.
4593         (expand_parallel_call): Register apprpriate parallel child
4594         functions as HSA kernels.
4595         (grid_launch_attributes_trees): New type.
4596         (grid_attr_trees): New variable.
4597         (grid_create_kernel_launch_attr_types): New function.
4598         (grid_insert_store_range_dim): Likewise.
4599         (grid_get_kernel_launch_attributes): Likewise.
4600         (get_target_argument_identifier_1): Likewise.
4601         (get_target_argument_identifier): Likewise.
4602         (get_target_argument_value): Likewise.
4603         (push_target_argument_according_to_value): Likewise.
4604         (get_target_arguments): Likewise.
4605         (expand_omp_target): Call get_target_arguments instead of looking
4606         up for teams and thread limit.
4607         (grid_expand_omp_for_loop): New function.
4608         (grid_arg_decl_map): New type.
4609         (grid_remap_kernel_arg_accesses): New function.
4610         (grid_expand_target_kernel_body): New function.
4611         (expand_omp): Call it.
4612         (lower_omp_for): Do not emit phony constructs.
4613         (lower_omp_taskreg): Do not emit phony constructs but create for them
4614         a temporary variable receiver_decl.
4615         (lower_omp_taskreg): Do not emit phony constructs.
4616         (lower_omp_teams): Likewise.
4617         (lower_omp_grid_body): New function.
4618         (lower_omp_1): Call it.
4619         (grid_reg_assignment_to_local_var_p): New function.
4620         (grid_seq_only_contains_local_assignments): Likewise.
4621         (grid_find_single_omp_among_assignments_1): Likewise.
4622         (grid_find_single_omp_among_assignments): Likewise.
4623         (grid_find_ungridifiable_statement): Likewise.
4624         (grid_target_follows_gridifiable_pattern): Likewise.
4625         (grid_remap_prebody_decls): Likewise.
4626         (grid_copy_leading_local_assignments): Likewise.
4627         (grid_process_kernel_body_copy): Likewise.
4628         (grid_attempt_target_gridification): Likewise.
4629         (grid_gridify_all_targets_stmt): Likewise.
4630         (grid_gridify_all_targets): Likewise.
4631         (execute_lower_omp): Call grid_gridify_all_targets.
4632         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
4633         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
4634         (tree_omp_clause): Added union field dimension.
4635         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
4636         * tree.c (omp_clause_num_ops): Added number of arguments of
4637         OMP_CLAUSE__GRIDDIM_.
4638         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
4639         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
4640         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
4641         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
4642         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
4643         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
4644         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
4645         * tree-pass.h (make_pass_gen_hsail): Declare.
4646         (make_pass_ipa_hsa): Likewise.
4647         * ipa-hsa.c: New file.
4648         * lto-section-in.c (lto_section_name): Add hsa section name.
4649         * lto-streamer.h (lto_section_type): Add hsa section.
4650         * timevar.def (TV_IPA_HSA): New.
4651         * hsa-brig-format.h: New file.
4652         * hsa-brig.c: New file.
4653         * hsa-dump.c: Likewise.
4654         * hsa-gen.c: Likewise.
4655         * hsa.c: Likewise.
4656         * hsa.h: Likewise.
4657         * toplev.c (compile_file): Call hsa_output_brig.
4658         * hsa-regalloc.c: New file.
4660 2016-01-18  Jeff Law  <law@redhat.com>
4662         PR tree-optimization/69320
4663         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
4664         ranged object, do nothing if the RHS constant is not [0..1].
4665         (optimize_stmt): Comparing a boolean ranged object against a
4666         constant outside [0..1] results in a compile-time constant.
4668         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
4669         test.
4671 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
4673         * doc/invoke.texi (Invoking GCC): Add new section to menu.
4674         (Option Summary): Update to reflect new section and moved options.
4675         (C++ Dialect Options): Move -fstats to new section.
4676         (Debugging Options): Move all dump, statistics, and other GCC
4677         developer options to new section.  Rewrite section introduction
4678         and re-order remaining options to put the more basic ones first.
4679         (Optimization Options): Move -fira-verbose and -flto-report* to
4680         new section.
4681         (Developer Options): New section incorporating moved options.
4682         * doc/cppopts.texi (-dM): Update cross-reference.
4684 2016-01-18  Richard Henderson  <rth@redhat.com>
4686         PR target/69176
4687         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
4688         operands to pseudo only if CSE is expected.  Split long immediate
4689         operands only after reload, and for the stack pointer.
4690         (*add<GPI>3_pluslong): Remove.
4691         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
4692         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
4693         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
4694         (*add<GPI>3 peepholes): New.
4695         (*add<GPI>3 splitters): New.
4696         * config/aarch64/constraints.md (Upl): New.
4697         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
4699 2016-01-18  Richard Biener  <rguenther@suse.de>
4701         PR tree-optimization/69297
4702         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
4703         stmt at most once.
4704         (vect_bb_vectorization_profitable_p): Clear visited flag again.
4706 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
4708         PR middle-end/68542
4709         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
4710         of mixind vector and scalar types.
4711         (fold_relational_const): Add handling of vector
4712         comparison with boolean result.
4713         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
4714         comparison of vector operands with boolean result for EQ/NE only.
4715         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
4716         (verify_gimple_cond): Likewise.
4717         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
4718         valid type of VAL.
4720 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4722         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
4723         !TARGET_OCTEON.
4725 2016-01-18  Richard Biener  <rguenther@suse.de>
4727         PR middle-end/69308
4728         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
4730 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4732         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
4734 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4736         * omp-low.c (set_oacc_fn_attrib): Make extern.
4737         * omp-low.h (set_oacc_fn_attrib): Declare.
4738         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
4739         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
4740         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
4741         Add and handle function parameter oacc_kernels_p.
4742         (find_reduc_addr, get_omp_data_i_param): New function.
4743         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
4744         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
4745         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
4746         Calculate dominance info.  Skip loops that are not in a kernels region
4747         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
4748         (pass_parallelize_loops::execute): Call parallelize_loops with
4749         oacc_kernels_p argument.
4750         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
4751         New member function.
4752         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
4753         * passes.def: Add argument to pass_parallelize_loops instantation.
4755 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4757         * tree-parloops.c (pass_parallelize_loops::execute): Allow
4758         pass_parallelize_loops to be run outside the loop pipeline.
4760 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4762         * tree-scalar-evolution.c (follow_copies_to_constant): New.
4763         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
4765 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4767         PR target/63679
4768         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
4769         using get_ref_base_and_extent.
4770         (equal_mem_array_ref_p): New.
4771         (hashable_expr_equal_p): Add call to previous.
4773 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4775         PR target/63679
4776         * tree-sra.c (disqualified_constants, constant_decl_p): New.
4777         (sra_initialize): Allocate disqualified_constants.
4778         (sra_deinitialize): Free disqualified_constants.
4779         (disqualify_candidate): Update disqualified_constants when appropriate.
4780         (create_access): Scan for constant-pool entries as we go along.
4781         (scalarizable_type_p): Add check against type_contains_placeholder_p.
4782         (maybe_add_sra_candidate): Allow constant-pool entries.
4783         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
4784         (initialize_constant_pool_replacements): New.
4785         (sra_modify_assign): Avoid mangling assignments created by previous,
4786         and don't generate writes into constant pool.
4787         (sra_modify_function_body): Call initialize_constant_pool_replacements.
4789 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4791         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
4792         andnot instruction.
4793         (scalar_chain::convert_op): Likewise.
4794         * config/i386/i386.md (*andndi3_doubleword): New.
4796 2016-01-18  Richard Biener  <rguenther@suse.de>
4798         PR tree-optimization/69170
4799         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
4800         building a vector from scalar results of a pattern stmt.
4802 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
4804         * haifa-sched.c (autopref_multipass_init): Work around
4805         -Wmaybe-uninitialized warning.
4807 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4809         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
4810         against the constant 0.
4812 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4814         PR tree-optimization/68799
4815         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
4816         look up phi candidates in the statement-candidate map.
4817         (phi_add_costs): Likewise.
4818         (record_phi_increments): Likewise.
4819         (phi_incr_cost): Likewise.
4820         (ncd_with_phi): Likewise.
4821         (all_phi_incrs_profitable): Likewise.
4823 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
4825         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
4826         -Wmaybe-uninitialized warning.
4828 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
4830         * doc/invoke.texi (Invoking GCC): Add new section to menu.
4831         (Option Summary): Update to reflect new section and moved options.
4832         (C++ Dialect Options): Move -fvtable-verify and related options.
4833         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
4834         and profiling-related options.
4835         (Optimization Options): Move profile generation options and
4836         -fstack-protector and related options.
4837         (Instrumentation Options): New section incorporating moved options.
4838         (Code Generation Options): Move -finstrument-functions and
4839         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
4841 2016-01-16  Tom de Vries  <tom@codesourcery.com>
4843         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
4845 2016-01-16  Tom de Vries  <tom@codesourcery.com>
4847         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
4849 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
4851         * hash-table.h (hash_table::empty): Turn into an inline wrapper
4852         that checks whether the table is already empty.  Rename the
4853         original implementation to...
4854         (hash_table::empty_slot): ...this new private function.
4856 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
4858         PR diagnostic/68899
4859         * diagnostic-show-locus.c (layout::print_source_line): Move x
4860         offset of line until after call to
4861         get_line_width_without_trailing_whitespace.
4863 2016-01-15  Jeff Law  <law@redhat.com>
4865         PR tree-optimization/69270
4866         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
4867         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
4868         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
4869         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
4870         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
4871         ssa_name_has_boolean_range and constant_boolean_node.
4873 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4875         PR rtl-optimization/69030
4876         * lra-spills.c (remove_pseudos): Check nrefs and make the function
4877         returning bool.
4878         (spill_pseudos): Delete debug insn for dead pseudo.
4879         (lra_spill): Initiate spill_hard_reg and slots memory separately.
4881 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
4883         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
4884         New.
4885         (TYPES_UNOPUS): Likewise.
4886         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
4887         builtin type, from UNOP to UNOPUS.
4888         (lbtruncuv4sf): Likewise.
4889         (lbtruncuv2df): Likewise.
4890         (lrounduv2sf): Likewise.
4891         (lrounduv4sf): Likewise.
4892         (lrounduv2df): Likewise.
4893         (lroundusf): Likewise.
4894         (lroundusf): Likewise.
4895         (lceiluv2sf): Likewise.
4896         (lceiluv4sf): Likewise.
4897         (lceiluv2df): Likewise.
4898         (lceilusf): Likewise.
4899         (lceiludf): Likewise.
4900         (lflooruv2sf): Likewise.
4901         (lflooruv4sf): Likewise.
4902         (lflooruv2df): Likewise.
4903         (lfloorusf): Likewise.
4904         (lfloorudf): Likewise.
4905         (lfrintnuv2sf): Likewise.
4906         (lfrintnuv4sf): Likewise.
4907         (lfrintnuv2df): Likewise.
4908         (lfrintnusf): Likewise.
4909         (lfrintnudf): Likewise.
4910         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
4911         conversion.
4912         (vcvtq_u32_f32): Likewise.
4913         (vcvtq_u64_f64): Likewise.
4914         (vcvta_u32_f32): Likewise.
4915         (vcvtaq_u32_f32): Likewise.
4916         (vcvtaq_u64_f64): Likewise.
4917         (vcvtm_u32_f32): Likewise.
4918         (vcvtmq_u32_f32): Likewise.
4919         (vcvtmq_u64_f64): Likewise.
4920         (vcvtn_u32_f32): Likwise.
4921         (vcvtnq_u32_f32): Likewise.
4922         (vcvtnq_u64_f64): Likewise.
4923         (vcvtp_u32_f32): Likewise.
4924         (vcvtpq_u32_f32): Likewise.
4925         (vcvtpq_u64_f64): Likewise.
4926         (vcvtmd_u64_f64): Likewise.
4927         (vcvtms_u32_f32): Likewise.
4928         (vcvtad_u64_f64): Likewise.
4929         (vcvtas_u32_f32): Likewise.
4930         (vcvtnd_u64_f64): Likewise.
4931         (vcvtns_u32_f32): Likewise.
4932         (vcvtpd_u64_f64): Likewise.
4933         (vcvtps_u32_f32): Likewise.
4935 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4937         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
4938         CSEL of zero_extended registers.
4940 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4942         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
4943         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
4945 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4947         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
4948         false when argument string is not found in the attributes table
4949         at all.
4951 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
4953         PR target/68609
4954         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
4955         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
4956         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
4957         precision estimate.
4959 2016-01-15  Richard Biener  <rguenther@suse.de>
4961         PR tree-optimization/66856
4962         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
4963         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
4964         (vect_create_new_slp_node): Increment stmt reference count.
4965         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
4966         an SLP tree before swapping operands.
4967         (vect_build_slp_tree): Likewise.
4968         (destroy_bb_vec_info): Free stmt info after SLP instances.
4969         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
4970         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
4971         (STMT_VINFO_NUM_SLP_USES): New macro.
4973 2016-01-15  Richard Biener  <rguenther@suse.de>
4975         PR debug/69137
4976         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
4977         (add_linkage_name): ... here.
4978         (gen_typedef_die): Use add_linkage_name_raw instead of
4979         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
4980         if necessary.
4982 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
4984         * gimplify.c (oacc_default_clause): Decode reference and pointer
4985         types for both kernels and parallel regions.
4987 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
4989         PR middle-end/69246
4990         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
4992 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4994         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
4995         (convert_scalars_to_vector): Likewise.
4997 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
4999         * doc/extend.texi (Type Traits): Fix grammar.
5001 2016-01-15  Martin Jambor  <mjambor@suse.cz>
5003         * tree-inline.c (remap_decl): Use existing dclarations if
5004         remapping a type and prevent_decl_creation_for_types.
5005         (replace_locals_stmt): Do an initial remapping of non-VLA typed
5006         decls first.  Do real remapping with
5007         prevent_decl_creation_for_types set.
5008         * tree-inline.h (copy_body_data): New field
5009         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
5010         padding.
5012 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5014         * config/s390/s390.opt (mmvcle): More verbose help text.
5016 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5018         * config/s390/s390.opt: Add period to -mzvector option text.
5020 2016-01-15  Richard Biener  <rguenther@suse.de>
5022         PR tree-optimization/68961
5023         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
5024         of invariants in stores again.
5026 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5028         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
5030 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
5032         * config/i386/i386.c (ix86_expand_branch): Don't split
5033         DI mode xor instruction to SI mode.
5035 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
5037         PR ipa/68148
5038         * ipa-icf.c (sem_function::merge): Virtual functions may become
5039         reachable even if they address is not taken and there are no
5040         idrect calls.
5042 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
5044         * lto-streamer-out.c (subtract_estimated_size): New function.
5045         (get_symbol_initial_value): Use it.
5047 2016-01-15  Christian Bruel  <christian.bruel@st.com>
5049         PR target/65837
5050         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
5051         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
5052         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
5053         use add_builtin_function_ext_scope instead of add_builtin_function.
5054         (neon_set_p, neon_crypto_set_p): Remove.
5055         (arm_init_builtins): Always call arm_init_neon_builtins and
5056         arm_init_crypto_builtins.
5057         (arm_expand_builtin): Check that builtins are allowed for the arch.
5058         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
5059         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
5060         arm_init_neon_builtins call.
5062 2016-01-15  Richard Biener  <rguenther@suse.de>
5064         PR tree-optimization/69117
5065         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
5066         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
5067         of the leader conservatively.
5068         (free_scc_vn): Restore original SSA name infos.
5070 2016-01-14  Jeff Law  <law@redhat.com>
5072         PR tree-optimization/69270
5073         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
5074         single bit of precision, verify it's also unsigned.
5075         (record_edge_info): Use constant_boolean_node rather than fold_convert
5076         to convert boolean_true/boolean_false to the right type.
5078 2016-01-14  Richard Henderson  <rth@redhat.com>
5080         PR rtl-opt/69014
5081         * loop-doloop.c (record_reg_sets): New.
5082         (doloop_optimize): Reject the transform if the sequence
5083         clobbers registers live at the end of the loop block.
5084         (doloop_optimize_loops): Enable df_live if needed.
5086 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5088         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
5089         * gcc/config/rs6000/rs6000.c: Likewise.
5090         * gcc/config/rs6000/rs6000.h: Likewise.
5091         * gcc/config/rs6000/rs6000.md: Likewise.
5092         * gcc/doc/extend.texi: Likewsie.
5094 2016-01-14  Jeff Law  <law@redhat.com>
5096         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
5097         typo.
5099 2016-01-14  Richard Henderson  <rth@redhat.com>
5101         PR c/69272
5102         PR tree-opt/68964
5103         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
5104         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
5105         instead of builtin_decl_declared_p to test for declaration.
5107 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
5109         * doc/loop.texi (Loop Analysis and Representation): Document
5110         loop_depth function.
5112 2016-01-14  Tom de Vries  <tom@codesourcery.com>
5114         PR tree-optimization/68773
5115         * omp-low.c (expand_omp_target): Don't set force_output.
5116         * varpool.c (varpool_node::get_create): Same.
5117         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
5118         offload_funcs with force_output.
5120 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
5122         PR debug/69244
5123         * lra-eliminations.c (move_plus_up): Don't change anything if either
5124         the outer or inner subreg mode is not MODE_INT.
5125         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
5126         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
5128 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
5130         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
5131         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
5132         reduc_uplus_@var{m}): Remove.
5133         * expr.c (expand_expr_real_2): Remove expansion path for
5134         reduc_[us](min|max|plus) optabs.
5135         * optabs-tree.c (scalar_reduc_to_vector): Remove.
5136         * optabs-tree.h (scalar_reduc_to_vector): Remove.
5137         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
5138         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
5139         * tree-vect-loop.c (vectorizable_reduction): Remove test for
5140         reduc_[us](min|max|plus) optabs.
5142 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
5144         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
5145         (reduc_plus_scal_v2sf): New.
5146         (reduc_smax_v2sf): Rename to...
5147         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
5148         (reduc_smin_v2sf): Rename to...
5149         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
5151 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
5153         * alias.c (compare_base_symbol_refs): New function.
5154         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
5155         it.
5157 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
5159         PR middle-end/68146
5160         PR tree-optimization/69155
5161         * tree-complex.c: Include cfganal.h.
5162         (phis_to_revisit): New variable.
5163         (extract_component): Add phiarg_p argument.  Assert that returned
5164         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
5165         (update_phi_components): Partly rewrite to use loop over real/imag
5166         components instead of code duplication.  If extract_component returns
5167         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
5168         create_tmp_reg into the PHI node instead, and mention the phi triplet
5169         in phis_to_revisit.
5170         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
5171         in phis_to_revisit at the end.
5173 2016-01-14  Richard Biener  <rguenther@suse.de>
5175         PR tree-optimization/68060
5176         * tree-vect-loop.c (vect_is_simple_reduction): Check the
5177         outer loop reduction is only used in the inner loop before
5178         detecting a double reduction.
5180 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
5182         PR target/68269
5183         * combine.c (expand_field_assignment): Punt if compute_mode is
5184         unsupported scalar mode.
5186 2016-01-14  Richard Biener  <rguenther@suse.de>
5188         PR tree-optimization/66856
5189         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
5190         SLP node only if it built successfully.
5191         (vect_analyze_slp_instance): Adjust.
5193 2016-01-14  Jeff Law  <law@redhat.com>
5195         PR tree-optimization/69270
5196         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
5197         (record_edge_info): Use it.  Convert boolean_{true,false}_node
5198         to the type of op0.
5200 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
5202         PR ipa/66487
5203         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
5204         use block_ultimate_origin
5205         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
5207 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
5209         * doc/invoke.texi (Submodel Options): Rename section to
5210         "Machine-Dependent Options" to better reflect its content.
5211         Rewrite introductory text to remove archaic CPU names.
5212         Update references.
5214 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
5216         * doc/invoke.texi (Code Gen Options): Move section up in file,
5217         before target-specific options.  Update menu and option summary
5218         to reflect the new section ordering.
5220 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
5222         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
5223         (C++ Dialect Options): Add cross-reference to -std option.
5224         * doc/standards.texi (C++ Language): Document C++14 support.
5226 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5228         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
5229         for pack/unpack functions for __ibm128.
5230         (PACK_IF): Likewise.
5231         (UNPACK_IF): Likewise.
5233         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5234         support for __ibm128 pack/unpack functions.
5235         (rs6000_invalid_builtin): Likewise.
5236         (rs6000_init_builtins): Likewise.
5237         (rs6000_opt_masks): Likewise.
5239         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
5240         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
5241         functions
5242         (RS6000_BTM_COMMON): Likewise.
5244         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
5245         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
5246         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
5247         128-bit floating point.  Add support for the double values to be
5248         in Altivec registers for TF/IF packing and unpacking, but restrict
5249         TD packing sub-fields to be FPR registers.  Don't allow overlapped
5250         register support for packing.  Allow pack inputs to be memory
5251         locations.  Don't build generator functions for unpack<mode>_dm
5252         and unpack<mode>_nodm.
5253         (unpack<mode>_dm): Likewise.
5254         (unpack<mode>_nodm): Likewise.
5255         (pack<mode>): Likewise.
5257         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
5258         built-in functions to pack/unpack explicit __ibm128 values.
5259         (__builtin_unpack_ibm128): Likewise.
5261         * doc/extend.texi (PowerPC Built-in Functions): Document
5262         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
5264 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
5266         PR c/66208
5267         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
5268         Add new arg loc and pass it down as context.
5269         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
5270         to the location to use for the warning.
5271         (check_function_arguments): New arg loc.  All callers changed.  Pass
5272         it to check_function_nonnull.
5273         * c-common.h (check_function_arguments): Adjust declaration.
5275 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
5277         PR tree-optimization/69156
5278         * gimple.c (validate_type): Removed.
5279         (gimple_builtin_call_types_compatible_p): Use
5280         useless_type_conversion_p instead of validate_type.
5281         * value-prof.c (gimple_stringop_fixed_value): Fold
5282         icall_size to correct type.
5284 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
5286         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
5287         effects.
5289 2016-01-13  Richard Henderson  <rth@redhat.com>
5291         PR tree-opt/68964
5292         * target.def (builtin_tm_load, builtin_tm_store): Remove.
5293         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
5294         (ix86_builtin_tm_store): Remove.
5295         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5296         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5297         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5298         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5299         * doc/tm.texi: Rebuild.
5301         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
5302         (BUILT_IN_TM_MEMCPY_RTWN): New.
5303         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
5304         fallback from vector to integer helpers.
5305         (build_tm_load): Handle vector types directly, instead of
5306         via target hook.
5307         (build_tm_store): Likewise.
5308         (expand_assign_tm): Prepare for register types not handled by
5309         the above.  Copy them to memory and use memcpy.
5310         * tree.c (tm_define_builtin): New.
5311         (find_tm_vector_type): New.
5312         (build_tm_vector_builtins): New.
5313         (build_common_builtin_nodes): Call it.
5315 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
5317         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
5318         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
5320 2016-01-13  Tom de Vries  <tom@codesourcery.com>
5322         PR tree-optimization/69169
5323         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
5324         handled_struct_type param.
5325         (create_variable_info_for, intra_create_variable_infos): Call
5326         create_variable_info_for_1 with extra arg.
5328 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
5330         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
5331         and "armv8.1-a+crc" entries.
5333 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
5335         PR target/69228
5336         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
5337         Change first operand predicate from register_or_constm1_operand
5338         to register_operand.
5339         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
5340         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
5341         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
5342         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
5343         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
5344         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
5345         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
5346         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
5347         comparison with constm1_rtx from vec_prefetch_gen part.
5349 2016-01-13  Richard Biener  <rguenther@suse.de>
5351         PR tree-optimization/69013
5352         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
5353         Exchange assert for a test.
5355 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5357         PR target/69247
5358         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
5360 2016-01-13  Richard Biener  <rguenther@suse.de>
5362         PR tree-optimization/69242
5363         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
5364         assert with a check.
5366 2016-01-13  Richard Biener  <rguenther@suse.de>
5368         PR tree-optimization/69186
5369         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5370         Properly guard vect_update_misalignment_for_peel call.
5372 2016-01-12  Jeff Law  <law@redhat.com>
5374         PR tree-optimization/pr67755
5375         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
5376         "need_profile_correction".
5377         (thread_block_1): Initialize new field to false by default.  If we
5378         have multiple thread paths through a common joiner to different
5379         final targets, then set new field to true.
5380         (compute_path_counts): Only do count adjustment when it's really
5381         needed.
5383 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5385         * doc/invoke.texi (Spec Files): Move section down in file, past
5386         all command-line option descriptions.
5388 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5390         PR middle-end/54809
5391         * doc/gty.texi: Remove documentation of mark_hook.
5392         * gengtype.c (struct write_types_data): Remove code to support
5393         mark_hook attribute.
5394         (walk_type): Likewise.
5395         (write_func_for_structure): Likewise.
5397 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5399         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
5400         Directory Options, and -specs= to Overall Options.
5401         (Overall Options): Adjust similarly.  Reorder to group related
5402         options together.  Make -specs= cross-reference the spec file details.
5403         (Directory Options): Adjust similarly.
5405 2016-01-12  Jeff Law  <law@redhat.com>
5407         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
5409 2016-01-12  Olivier Hainque  <hainque@adacore.com>
5411         * gcc.c (spec_undefvar_allowed): New global.
5412         (process_command): Set to true when running for --version or --help,
5413         alone or together.
5414         (getenv_spec_function): When the variable is not defined, use the
5415         variable name as the variable value if we're allowed not to issue
5416         a fatal error.
5418 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
5420         PR tree-optimization/68911
5421         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
5422         information computed for expression "init + nit * step".
5424 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5426         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
5427         about name of GCC executable.  Remove deleted node from menu.
5428         (Directory Options) <-B>: Remove cross-reference to deleted node.
5429         (Target Options): Delete section.
5431 2016-01-12  Christian Bruel  <christian.bruel@st.com>
5433         PR target/69180
5434         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
5435         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
5437 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
5439         PR target/69198
5440         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
5441         aligned_mem is properly set for AVX512-VL floating point masked
5442         stores.
5444         PR target/69175
5445         * ifcvt.c (cond_exec_process_if_block): When removing the last
5446         insn from then_bb, remove also any possible barriers that follow it.
5448 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5450         PR target/68456
5451         PR target/69226
5452         * config/i386/iamcu.h (SIZE_TYPE): New macro.
5453         (PTRDIFF_TYPE): Likewise.
5454         (WCHAR_TYPE): Likewise.
5455         (WCHAR_TYPE_SIZE): Likewise.
5456         (STDINT_LONG32): Likewise.
5458 2016-01-12  Richard Biener  <rguenther@suse.de>
5460         PR tree-optimization/69053
5461         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
5462         convert initial value for cond reductions.
5464 2016-01-12  Richard Biener  <rguenther@suse.de>
5466         PR tree-optimization/69007
5467         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
5468         widen_sum after dot_prod and sad.
5470 2016-01-12  Richard Biener  <rguenther@suse.de>
5472         PR tree-optimization/69168
5473         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
5474         pattern stmt SLP type.
5475         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
5476         end up unused so cope with that case.
5478 2016-01-12  Richard Biener  <rguenther@suse.de>
5480         PR tree-optimization/69157
5481         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5482         stmts def type only during analyze phase.
5483         (vectorizable_call): Likewise.
5484         (vectorizable_simd_clone_call): Likewise.
5485         (vectorizable_conversion): Likewise.
5486         (vectorizable_assignment): Likewise.
5487         (vectorizable_shift): Likewise.
5488         (vectorizable_operation): Likewise.
5489         (vectorizable_store): Likewise.
5490         (vectorizable_load): Likewise.
5492 2016-01-12  Richard Biener  <rguenther@suse.de>
5494         PR tree-optimization/69174
5495         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
5496         space.
5497         (vectorizable_load): Properly compute the number of loads needed
5498         for permuted strided SLP loads and do not spuriously assign
5499         to SLP_TREE_VEC_STMTS.
5501 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
5503         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
5504         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
5505         (MD_EXEC_PREFIX): Remove.
5506         (MD_STARTFILE_PREFIX) Removee.
5507         (FILE_NAME_ABSOLUTE_P): Remove.
5508         (CPP_SPEC): Do not read macros from sys/version.h.
5509         (LINK_COMMAND_SPEC): Remove.
5510         (LOCAL_INCLUDE_DIR): Remove.
5511         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
5512         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
5513         (POST_LINK_SPEC): Define to invoke stubify after linker
5514         (LIBSTDCXX): Remove define
5515         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
5516         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
5517         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
5518         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
5519         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
5520         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
5521         (i386_djgpp_asm_named_section): Add propotype of new procedure
5523         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
5524         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
5525         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
5526         in config/i386/djgpp.h).
5527         (STANDARD_STARTFILE_PREFIX_2): Define identical to
5528         STANDARD_STARTFILE_PREFIX_1.
5529         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
5530         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
5531         installation errors.
5532         (MAX_OFILE_ALIGNMENT): Define to 128.
5533         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
5535         * config/i386/djgpp.c: New file. Add implementation of
5536         i386_djgpp_asm_named_section.
5538         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
5540         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
5541         Add rule for building djgpp.o.
5543 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5545         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
5546         (rtx_is_swappable_p): Reductions are swappable.
5547         (insn_is_swappable_p): V2DF reductions are swappable.
5549 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
5551         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
5552         reloads for other unsupported memory operands.
5554 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5555             Jim Wilson  <jim.wilson@linaro.org>
5557         PR target/69194
5558         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
5559         copy_to_mode_reg instead of force_reg.
5561 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5563         PR target/69225
5564         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
5565         TARGET_80387 is true.
5567 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
5569         PR target/69071
5570         * lra-eliminations.c (move_plus_up): Only move plus up
5571         if subreg of the constant can be simplified into constant
5572         and use the simplified subreg of the constant instead of
5573         the original constant.
5575         * fold-const.c (fold_convertible_p): Don't return true
5576         for conversion of VECTOR_TYPE to same sized integral type.
5577         (fold_convert_loc): Fix up formatting.  Fold conversion of
5578         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
5579         instead of NOP_EXPR.
5581         PR tree-optimization/69214
5582         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
5583         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5584         Formatting fix.
5586         PR tree-optimization/69207
5587         * tree-vect-slp.c (vect_get_constant_vectors): For
5588         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
5589         fold_convertible_p to vector_type's element type, and always
5590         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
5592 2016-01-11  Richard Biener  <rguenther@suse.de>
5594         PR tree-optimization/69173
5595         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
5596         fixup the cycle if all stmts are in a pattern.
5598 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
5600         PR middle-end/68999
5601         * alias.c (base_alias_check): Move check for addresses with
5602         alignment ANDs before the call for compare_base_decls.
5603         (memrefs_conflict_p): Return -1 for different decls
5604         that went through alignment adjustments.
5606 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5608         PR rtl-optimization/68796
5609         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
5610         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
5611         and QImode comparisons against zero with CC_NZmode.
5612         * config/aarch64/iterators.md (short_mask): New mode_attr.
5614 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5616         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
5617         (<avx512>_store<mode>_mask): Likewise.
5619 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
5620             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5622         PR rtl-optimization/68841
5623         * ifcvt.c (struct noce_if_info): Add orig_x field.
5624         (bbs_ok_for_cmove_arith): Add to_rename parameter.
5625         Don't record conflicts on to_rename if it's present.
5626         Allow memory destinations in sets.
5627         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
5628         blocks, passing orig_x to the checks.
5629         (noce_process_if_block): Set if_info->orig_x appropriately.
5631 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5633         PR tree-optimization/69069
5634         * tree-parloops.c (create_parallel_loop): Add missing phi args.
5636 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
5638         PR rtl-optimization/68920
5639         * config/i386/i386.c (ix86_option_override_internal): Restrict number
5640         of conditional moves for  RTL if-conversion to 1 for
5641         TARGET_ONE_IF_CONV_INSN.
5642         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
5643         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
5644         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
5645         parameter to restirct number of conditional moves for
5646         RTL if-conversion.
5647         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
5648         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
5649         conditionl moves.
5651 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
5653         PR bootstrap/69123
5654         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
5655         onepart vars.  Fix typo in comment.  Fix reversed condition in
5656         unshare test.
5657         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
5659         PR bootstrap/69123
5660         * var-tracking.c (dump_onepart_variable_differences): New.
5661         (dataflow_set_different): If a detailed dump is requested,
5662         delay early returns and dump differences between onepart
5663         variables present before and after, and added variables.
5665 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
5667         PR target/69010
5668         * expr.c (expand_expr_real_1): For boolean vector constants
5669         with a scalar mode use const_scalar_mask_from_tree.
5670         (const_scalar_mask_from_tree): New.
5671         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
5672         assigned to a mask type to handle constants.
5674 2016-01-11  Martin Jambor  <mjambor@suse.cz>
5676         PR ipa/69044
5677         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
5678         useless parameters if we cannot change function signature.
5680 2016-01-11  Martin Jambor  <mjambor@suse.cz>
5682         PR ipa/66616
5683         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
5684         flag.
5686 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5688         PR tree-optimization/69109
5689         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
5690         latch with phi.
5692 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5694         PR tree-optimization/69108
5695         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
5696         res is not used in a phi.
5698 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
5700         PR 67425
5701         * common.opt (frandom-seed): Fix parameter name.
5702         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
5704 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5706         PR tree-optimization/69058
5707         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
5708         not supported.
5710 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
5712         * config/arc/arc.opt (mdiv-rem): Add period to the end.
5713         (mcode-density): Likewise.
5715 2016-01-10  Tom de Vries  <tom@codesourcery.com>
5717         PR tree-optimization/69062
5718         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
5719         (parallelize_loops): Don't paralelize loop that has phi with address
5720         arg.
5722 2016-01-10  Tom de Vries  <tom@codesourcery.com>
5724         PR tree-optimization/69039
5725         * tree-parloops.c (try_create_reduction_list): Only allow single exit
5726         phi for reduction.
5728 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
5730         PR middle-end/68743
5731         * match.pd: Require target has function_c99_misc before doing
5732         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
5734 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
5736         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
5737         use GMPINC.
5738         * configure: Regenerate.
5740 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
5742         PR middle-end/50865
5743         PR tree-optimization/69097
5744         * fold-const.h (expr_not_equal_to): New prototype.
5745         * fold-const.c: Include stringpool.h and tree-ssanames.h.
5746         (expr_not_equal_to): New function.
5747         * match.pd (X % -Y is the same as X % Y): Don't optimize
5748         unless X is known not to be equal to minimum or Y is known
5749         not to be equal to -1.
5750         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
5751         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
5752         (simplify_stmt_using_ranges): Adjust caller.
5753         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
5754         substitute_and_fold.
5756 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
5758         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
5759         w/o DECL_NAME.
5761 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5763         PR tree-optimization/69167
5764         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
5765         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
5766         ops[0] comparison.
5767         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
5769 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
5770             Richard Biener  <rguenther@suse.de>
5772         PR tree-optimization/68707
5773         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
5774         instances that can be handled via vect_load_lanes.
5776 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
5778         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
5779         if we can't determine address equivalence.
5780         * alias.c (compare_base_decl): Update for changed return value of
5781         symtab_node::equal_address_to.
5783 2016-01-08  Jason Merrill  <jason@redhat.com>
5785         PR c++/68983
5786         PR c++/67557
5787         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
5788         * expr.c (store_field): Not here.
5789         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
5790         call with TREE_ADDRESSABLE type.
5791         * tree-cfg.c (verify_gimple_call): Adjust.
5793 2016-01-08  Olivier Hainque  <hainque@adacore.com>
5795         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
5796         libc_internal.
5798 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
5800         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
5801         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
5802         (reduc_smin_v2sf): Rename to...
5803         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
5804         (reduc_splus_v2sf): Rename to...
5805         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
5807 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5809         PR tree-optimization/69162
5810         * gimplify.c (gimplify_va_arg_expr): Encode original type of
5811         valist argument in another argument.
5812         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
5813         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
5814         to determine the va_list type, build a MEM_REF instead of
5815         build_fold_indirect_ref.
5817         PR tree-optimization/69172
5818         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
5819         gimple_build.
5821 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5823         PR tree-optimization/67781
5824         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5825         and cmpnop in two steps: first the ones not accessed in original
5826         gimple expression in a endian independent way and then the ones not
5827         accessed in the final result in an endian-specific way.
5829 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5831         PR tree-optimization/69083
5832         * tree-vect-slp.c (vect_get_constant_vectors): For
5833         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
5834         element type.  If op is fold_convertible_p to vector_type's element
5835         type, use NOP_EXPR instead of VCE.
5837 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
5839         PR rtl-optimization/67778
5840         PR rtl-optimization/68634
5841         PR rtl-optimization/68909
5842         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
5843         block from the stack until done with it.  Remove a superfluous
5844         bitmap set.  Remove a superfluous bitmap test.
5846 2016-01-07  Martin Sebor  <msebor@redhat.com>
5848         PR c/68966
5849         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
5850         constraint on the type of arguments.
5852 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
5854         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
5855         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
5856         unaligned_access on the gcc_options set.
5857         * config/arm/arm.c (arm_option_override_internal): Use
5858         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
5860 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
5862         PR target/69140
5863         * config/i386/i386.c (ix86_frame_pointer_required): Enable
5864         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
5866 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
5868         Revert
5869         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
5871         PR target/69140
5872         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5873         depending on frame_pointer_needed before remaining integer and SSE
5874         registers are saved.
5876 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5878         PR 1078
5879         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
5881 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5883         PR target/69171
5884         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
5885         Use the "xBm" constraint.
5886         (float<sseintvecmodelower><mode>2<mask_name><round_name):
5887         Likewise.
5888         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
5889         (sse_cvtsi2ssq<round_name>): Likewise.
5890         (sse_cvtss2si<round_name>): Likewise.
5891         (sse_cvtss2siq<round_name>): Likewise.
5892         (sse2_cvtsi2sdq<round_name>): Likewise.
5893         (sse2_cvtsd2si<round_name>): Likewise.
5894         (sse2_cvtsd2siq<round_name>): Likewise.
5895         * config/i386/subst.md (round_nimm_scalar_predicate): New
5896         predicate.
5898 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
5900         PR middle-end/67639
5901         * varasm.c (make_decl_rtl): Mark invalid register vars as
5902         DECL_EXTERNAL.
5904         PR rtl-optimization/66206
5905         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
5906         All callers changed.
5908 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
5910         PR tree-optimization/69141
5911         * tree-ssa-pre.c: Include langhooks.h.
5912         (eliminate_dom_walker::before_dom_children): Use
5913         lang_hooks.decl_printable_name instead of
5914         cgraph_node::get ()->name ().
5916         PR middle-end/68960
5917         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
5918         it and DECL_ALIGN too.
5920 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
5922         * config/mips/mips-ftypes.def: Sort to lexicographical order.
5924 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
5926         PR target/69140
5927         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5928         depending on frame_pointer_needed before remaining integer and SSE
5929         registers are saved.
5931 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5933         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
5934         mode iterator with VSX_M2.
5935         (*p9_vecstore_<mode>): Likewise.
5936         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
5937         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
5938         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
5939         (define_split for VSX_LE128 stores): Likewise.
5940         (define_peephole2 for TImode LE swaps): Likewise.
5941         (define_split for VSX_LE128 post-reload stores): Likewise.
5943 2016-01-06  Marek Polacek  <polacek@redhat.com>
5945         PR sanitizer/69099
5946         * convert.c (convert_to_integer_1): Adjust call to
5947         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
5948         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
5949         EXPR instead of ARG.
5950         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
5952 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5954         PR 1078
5955         * doc/extend.texi (RL78 Variable Attributes): New section.
5957 2016-01-05  Marek Polacek  <polacek@redhat.com>
5959         PR c/69104
5960         * builtins.c (get_memmodel): Use expansion point location rather than
5961         the input location.  Call warning_at rather than warning.
5962         (expand_builtin_atomic_compare_exchange): Likewise.
5963         (expand_builtin_atomic_load): Likewise.
5964         (expand_builtin_atomic_store): Likewise.
5965         (expand_builtin_atomic_clear): Likewise.
5967 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5969         PR target/68991
5970         * config/i386/i386.c (ix86_expand_vector_logical_operator):
5971         Replace nonimmediate_operand with vector_operand.
5972         * config/i386/predicates.md (vector_operand): New predicate.
5973         (general_vector_operand): Replace nonimmediate_operand with
5974         vector_operand.
5975         * config/i386/sse.md: Replace nonimmediate_operand with
5976         vector_operand and m constraint with Bm constraint on SSE
5977         patterns with 16-byte memory operand.
5978         * config/i386/subst.md (round_nimm_predicate): Replace
5979         nonimmediate_operand with vector_operand.
5980         (round_saeonly_nimm_predicate): Likewise.
5981         (round_saeonly_nimm_scalar_predicate): New.
5983 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5985         PR target/68991
5986         * config/i386/constraints.md (Bm): New constraint.
5987         * config/i386/predicates.md (vector_memory_operand): New
5988         predicate.
5989         * config/i386/sse.md: Replace xm with xBm in plusminus and
5990         any_logic patterns.
5992 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5994         PR 1078
5995         * doc/extend.texi (V850 Function Attributes): New section.
5996         (V850 Variable Attributes): New section.
5998 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6000         PR 1078
6001         * doc/extend.texi (MicroBlaze Function Attributes): Document
6002         interrupt_handler and fast_interrupt attributes.
6004 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
6006         PR other/60465
6007         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
6008         for local symbolic operands.
6009         * config/ia64/predicates.md (local_symbolic_operand64): New
6010         predicate.
6012 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6014         PR rtl-optimization/68651
6015         * combine.c (combine_simplify_rtx): Canonicalize x + x into
6016         x << 1.
6018 2016-01-05  Nathan Sidwell  <nathan@acm.org>
6020         * alias.c (compare_base_decls): Use symtab_node::get.
6022 2016-01-05  Nick Clifton  <nickc@redhat.com>
6024         PR target/68770
6025         * ira-costs.c (copy_cost): Initialise the t_icode field of the
6026         secondary_reload_info structure.
6028         PR target/66655
6029         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
6030         decls if weak support is available.
6032 2016-01-04  Martin Sebor  <msebor@redhat.com>
6034         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
6036 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
6038         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
6039         OPTION_MASK_P9_DFORM.
6041         * config/rs6000/constraints.md (wo constraint): New constraint for
6042         ISA 3.0 (power9).
6044         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
6045         for wo constraint.
6046         (rs6000_init_hard_regno_mode_ok): Likewise.
6048         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
6049         wo constraint.
6051         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
6052         expanders not to have constraints.  Add support for ISA 3.0 xxperm
6053         instruction.  Add support for fusing xxlor with xxperm.
6054         (altivec_vperm_<mode>_internal): Likewise.
6055         (altivec_vperm_v8hiv16qi): Likewise.
6056         (altivec_vperm_<mode>v16q): Likewise.
6057         (altivec_vperm_<mode>_uns): Likewise.
6058         (vperm_v8hiv4si): Likewise.
6059         (vperm_v16qiv8hi): Likewise.
6061         * doc/md.texi (RS/6000 constraints): Document wo constraint.
6063 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6065         Update copyright years.
6067         * gcc.c (process_command): Update copyright notice dates.
6068         * gcov-dump.c (print_version): Ditto.
6069         * gcov.c (print_version): Ditto.
6070         * gcov-tool.c (print_version): Ditto.
6071         * gengtype.c (create_file): Ditto.
6072         * doc/cpp.texi: Bump @copying's copyright year.
6073         * doc/cppinternals.texi: Ditto.
6074         * doc/gcc.texi: Ditto.
6075         * doc/gccint.texi: Ditto.
6076         * doc/gcov.texi: Ditto.
6077         * doc/install.texi: Ditto.
6078         * doc/invoke.texi: Ditto.
6080 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6082         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
6083         modes larger than TImode as TImode if NEON is not enabled.
6085 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6087         PR target/69100
6088         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
6089         mode for %f0-%f31 only if TARGET_FPU.
6091 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6093         PR target/69072
6094         * config/sparc/sparc.c (scan_record_type): Take into account subfields
6095         to compute the PACKED_P predicate.
6096         (function_arg_record_value): Minor tweaks.
6098 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6100         * doc/install.texi (--with-multilib-list): Describe the meaning of the
6101         option for arm*-*-* targets.
6103 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6105         * doc/extend.texi (Common Function Attributes): Move docs for
6106         MSP430-specific attributes to....
6107         (MSP430 Function Attributes): ...here.  Delete the redundant
6108         entries and copy-edit the remaining text.
6109         (MSP430 Variable Attributes): Use uniform format for index
6110         entries and add a cross-reference to the corresponding function
6111         attribute docs.
6113 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
6115         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
6116         -finite-math typo.
6117         (x86 Options): Likewise.
6119 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
6121         PR 1078
6123         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
6124         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
6125         to corresponding attribute.
6127 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
6129         * doc/extend.texi (Common Function Attributes) <noplt>: Move
6130         to correct alphabetization of table.  Copy-edit and correct
6131         markup.
6132         <stack_protect>: Likewise.
6133         <target_clones>: Likewise.
6134         <simd>: Likewise.
6135         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
6136         Correct punctuation.
6137         (Code Gen Options) <-fno-plt>: Copy-edit.
6139 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6141         PR target/68917
6142         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
6143         SI values.  Explicitly convert SI to DI and vice-versa.
6145 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
6147         PR tree-optimization/69070
6148         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
6149         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
6151         PR sanitizer/69055
6152         * ubsan.c (ubsan_instrument_float_cast): Call
6153         initialize_sanitizer_builtins.
6155         PR target/69015
6156         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
6158 Copyright (C) 2016 Free Software Foundation, Inc.
6160 Copying and distribution of this file, with or without modification,
6161 are permitted in any medium without royalty provided the copyright
6162 notice and this notice are preserved.