PR lto/69589
[official-gcc.git] / gcc / ChangeLog
blobba9f5b5795edcbc7ad57e0d2f1e81ca88bdcc2a9
1 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3         PR lto/69589
4         * cgraph.c (cgraph_node::dump): Dump split_part and indirect_call_target.
5         * cgraph.h (cgraph_node): Add indirect_call_target flag.
6         * ipa.c (has_addr_references_p): Cleanup.
7         (is_indirect_call_target_p): New.
8         (walk_polymorphic_call_targets): Do not mark virtuals that may be
9         called indirectly as local.
10         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
14         PR ipa/69630
15         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
16         on cxa_pure_virtual.
18 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20         PR lto/69589
21         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
23 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
25         PR lto/69589
26         * tree.c (need_assembler_name_p): Only record main variant type names.
28 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
30         PR target/70113.
31         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
32         Always define to 0 or 1.
33         (TARGET_FIX_ERR_A53_843419): New macro.
34         * config/aarch64/aarch64-elf-raw.h
35         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
36         * config/aarch64/aarch64-linux.h: Likewise.
37         * config/aarch64/aarch64.c
38         (aarch64_override_options_after_change_1): Do not default
39         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
40         843419 is on.
41         (aarch64_attributes): Handle fix-cortex-a53-843419.
42         (aarch64_can_inline_p): Likewise.
43         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
45 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
46         Jakub Jelinek <jakub@redhat.com>
48         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
49         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
50         DECL_COMMONS if flag_unconstrained_commons is set.
51         * tree-dfa.c (get_ref_base_and_extent): Likewise.
52         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
53         (funconstrained-commons): Document.
55 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
57         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
58         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
60 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
62         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
63         has a proper number of elements.
65 2016-03-10  Alan Modra  <amodra@gmail.com>
67         PR rtl-optimization/69195
68         PR rtl-optimization/47992
69         * ira.c (recorded_label_ref): Delete.
70         (update_equiv_regs): Return void.
71         (indirect_jump_optimize): New function.
72         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
73         before regstat_compute_ri.  Don't rebuild_jump_labels here.
74         Delete update_regstat.
76 2016-03-10  Richard Biener  <rguenther@suse.de>
78         PR tree-optimization/70128
79         * tree-ssa-structalias.c (set_uids_in_ptset): Set
80         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
82 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
84         PR tree-optimization/70152
85         * tree-sra.c (replace_removed_params_ssa_names): Copy over
86         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
88         PR target/70086
89         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
90         instead of gen_sse2_loadlpd.
91         * config/i386/sse.md (*vec_concatv2df): Rename to...
92         (vec_concatv2df): ... this.
94         PR tree-optimization/70127
95         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
97 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
99         PR c/68473
100         PR c++/70105
101         * diagnostic-show-locus.c (compatible_locations_p): New function.
102         (layout::layout): Sanitize ranges using compatible_locations_p.
104 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
106         PR c/68473
107         PR c++/70105
108         * diagnostic-show-locus.c (layout_range::layout_range): Replace
109         location_range param with three const expanded_locations * and a
110         bool.
111         (layout::layout): Replace call to
112         rich_location::lazily_expand_location with get_expanded_location.
113         Extract the range and perform location expansion here, passing
114         the results to the layout_range ctor.
115         * diagnostic.c (source_range::debug): Delete.
116         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
117         of rich_location::get_expanded_location.
118         * gcc-rich-location.c (get_range_for_expr): Delete.
119         (gcc_rich_location::add_expr): Reimplement to avoid the
120         rich_location::add_range overload that took a location_range,
121         passing a location_t instead.
123 2016-03-09  Richard Biener  <rguenther@suse.de>
124         Jakub Jelinek  <jakub@redhat.com>
126         PR tree-optimization/70138
127         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
128         Also skip vect_double_reduction_def.
130 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
132         PR target/70049
133         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
134         if the operand is "m".
136 2016-03-09  Nathan Sidwell  <nathan@acm.org>
138         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
140 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
142         * config/i386/i386.c (processor_target_table): Fix cost table
143         intialization order for znver1.
145 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
147         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
148         - becuase -> because.
149         * ipa-reference.c (ignore_module_statics): Likewise.
150         * cgraph.c (cgraph_node::get_body): Likewise.
151         * ipa-inline.c (early_inliner): Likewise.
152         * ipa-devirt.c (types_same_for_odr): Likewise.
153         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
154         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
156 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
158         * tree-ssa-math-opts.c: Fix typo in comment.
160 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
162         PR target/70110
163         * config/i386/i386.c (scalar_chain::make_vector_copies,
164         scalar_chain::convert_reg): Call end_sequence in between
165         get_insns and emit_conversion_insns rather than after both
166         calls.
168 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
170         PR target/70064
171         * config/i386/i386.h (machine_function): Add
172         pc_thunk_call_expanded flag.
173         (ix86_pc_thunk_call_expanded): New define.
174         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
175         (*set_got): Rename insn pattern from set_got.
176         (*set_got_labelled): Rename inst pattern from set_got_labelled.
177         * config/i386/i386.c (ix86_compute_frame_layout): Use
178         ix86_pc_thunk_call_expanded to prevent red-zone.
180 2016-03-07  Martin Jambor  <mjambor@suse.cz>
182         * hsa.h (hsa_get_ctor_statements): Declare.
183         (hsa_get_dtor_statements): Likewise.
184         (hsa_get_kernel_dispatch_type): Likewise.
185         * hsa.c (hsa_get_ctor_statements): New function.
186         (hsa_get_dtor_statements): Likewise.
187         (hsa_get_kernel_dispatch_type): Likewise.
188         * hsa-brig.c (hsa_cdtor_statements): Removed.
189         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
190         hsa_get_dtor_statements.
191         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
192         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
194 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
196         * config/arm/arm-cores.def (cortex-r8): New.
197         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
198         * config/arm/arm-tune.md: Likewise.
199         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
201 2016-03-07  Martin Sebor  <msebor@redhat.com>
203         PR rtl-optimization/19705
204         * doc/invoke.texi (Options That Control Optimization): Clarify
205         -fno-branch-count-reg.
207 2016-02-26  Richard Biener  <rguenther@suse.de>
208             Jeff Law  <law@redhat.com>
210         PR tree-optimization/69740
211         * cfghooks.c (remove_edge): Request loop fixups if we delete
212         an edge that might turn an irreducible loop into a natural
213         loop.
214         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
215         Move after definition of loops_state_clear.
217 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
219         PR rtl-optimization/69052
220         * rtlanal.c (commutative_operand_precedence): Set higher precedence
221         to CONST_WIDE_INT.
223 2016-03-07  Tom de Vries  <tom@codesourcery.com>
225         PR tree-optimization/70116
226         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
227         is_tm_ending stmts and ubsan/asan internal functions.
228         (find_duplicate): Use it.  Don't test is_tm_ending here.
230 2016-03-07  Richard Biener  <rguenther@suse.de>
232         PR tree-optimization/70115
233         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
234         (propagate_constants_for_unrolling): Use replace_uses_by.
236 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
238         PR middle-end/69916
239         * omp-low.c (struct oacc_loop): Add ifns.
240         (new_oacc_loop_raw): Initialize it.
241         (finish_oacc_loop): Clear mask & flags if no ifns.
242         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
243         (oacc_loop_xform_loop): Add ifns arg & adjust.
244         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
246 2016-03-07  Richard Henderson  <rth@redhat.com>
248         PR rtl-opt/70061
249         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
250         (insert_value_copy_on_edge): Likewise.
252 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
254         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
256 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
258         PR target/62281
259         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
261 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
263         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
265 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
267         Fix sseimul type attribute.
268         * config/i386/znver1.md
269         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
270         znver1_sseimul_avx256_load) : Fix the type attribute.
271         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
272         pipe usage and latency.
274 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
276         PR c++/70084
277         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
278         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
279         to the right type.
281 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
283         PR c/69973
284         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
286         PR rtl-optimization/69941
287         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
288         the reg share its mode.
290 2016-03-04  Jeff Law  <law@redhat.com>
292         PR tree-optimization/69196
293         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
294         If the both SSA_NAMEs are anonymous, then consider them unassociated
295         and include the PHI in the statement count.
297 2016-03-05  Tom de Vries  <tom@codesourcery.com>
299         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
300         construct in oacc routine.  Check for oacc region in oacc routine.
302 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
304         PR target/70062
305         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
306         2016-02-22 changes, instead don't recurse if RECUR is already true.
307         Don't change *dynamic_check if RECUR.  Adjust recursive caller
308         to pass true to the new argument.
309         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
311         PR target/70059
312         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
313         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
314         fixes.
315         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
317 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
319         PR rtl-optimization/57676
320         * lra-assigns.c (lra_assign): Guard test for maximum iterations
321         with flag_checking.
323 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
325         * tree-vect-patterns.c (search_type_for_mask): Handle
326         comparison of booleans.
328 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
330         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
331         Fix @xref usage.
333         PR debug/69947
334         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
335         all other ops that have dw_val_class_die_ref operands,
336         and DW_OP_GNU_entry_value.
338 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
340         PR rtl-optimization/69904
341         * config/arm/arm.c (arm_cannot_copy_insn_p):
342         Return true for load-exclusive instructions.
344 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
346         PR target/70021
347         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
348         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
349         the pattern no matter if it is used just by non-pattern, pattern
350         or mix thereof.
351         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
352         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
353         oprnd1 def_stmt is in pattern, don't look through it.
355 2016-03-03  Marek Polacek  <polacek@redhat.com>
357         PR middle-end/70050
358         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
360 2016-03-03  Martin Liska  <mliska@suse.cz>
362         PR tree-optimization/70043
363         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
364         previous statement if we see a debug statement.
366 2016-03-03  Richard Biener  <rguenther@suse.de>
368         PR tree-optimization/55936
369         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
370         parameter and guard unsafe equivalence use.
371         (vrp_evaluate_conditional_warnv_with_ops): Always use
372         safe equivalences but not via the quadratic compare_names
373         helper.
375 2016-03-03  Michael Collison  <michael.collison@linaro.org>
377         PR target/70014
378         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
379         for operand 1 to s_register_operand. Change predicate for operand
380         2 to arm_not_immediate_operand.
382 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
384         * doc/tm.texi: Regenerated.
386 2016-03-02  Richard Henderson  <rth@redhat.com>
388         PR rtl-opt/67145
389         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
390         simplification when all args are positive non-fixed registers.
392 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
394         * target.def (lra_p): Specify that new ports should use LRA.
396 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
398         PR libgomp/69555
399         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
400         gimplify_type_sizes the type they refer to.
401         (omp_notice_variable): Handle reference vars to VLAs.
402         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
403         reference to VLA decls in the second pass instead of first pass.
405 2016-03-02  Tom de Vries  <tom@codesourcery.com>
407         PR tree-optimization/68659
408         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
409         new_expr == NULL_TREE.
410         (get_new_name): Handle ADDR_EXPR.
412 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
414         PR rtl-optimization/69052
415         * loop-invariant.c (canonicalize_address): New function.
416         (inv_can_prop_to_addr_use): Check validity of address expression
417         which is canonicalized by above function.
419 2016-03-02  Alan Modra  <amodra@gmail.com>
421         PR ipa/69990
422         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
423         larger alignment.
425 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
427         PR target/70028
428         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
429         (*movhi_internal): Put mask moves from and to memory separately
430         from moves from/to GPRs.
432 2016-03-02  Richard Biener  <rguenther@suse.de>
434         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
435         GENERIC expressions in GIMPLE.
437 2016-03-02  Richard Biener  <rguenther@suse.de>
439         * config/i386/i386.c (type_natural_mode): Fix typo.
441 2016-03-02  Nick Clifton  <nickc@redhat.com>
443         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
445 2016-03-02  Richard Biener  <rguenther@suse.de>
446             Uros Bizjak  <ubizjak@gmail.com>
448         PR target/67278
449         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
451 2016-03-02  Richard Biener  <rguenther@suse.de>
453         PR middle-end/67278
454         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
456 2016-03-02  Marek Polacek  <polacek@redhat.com>
458         PR c/67854
459         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
460         "is promoted to" warning.
462 2016-03-01  DJ Delorie  <dj@redhat.com>
464         * config.gcc: Deprecate mep-*.
466 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
468         PR middle-end/70025
469         * lra-constraints.c (regno_val_use_in): New.
470         (match_reload): Use it instead of regno_use_in.
472 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
474         PR rtl-optimization/70007
475         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
476         references present in REG_EQUAL notes attached to non-SET patterns.
478 2016-03-01  Jeff Law  <law@redhat.com>
480         PR tree-optimization/69196
481         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
482         Appropriately clamp the number of statements to copy when the
483         thread path does not traverse a loop backedge.
485         PR tree-optimization/69196
486         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
487         Do count some PHIs in the thread path against the insn count.  Decrease
488         final statement count by one as the control statement in the last
489         block will get removed.  Remove special cased code for handling PHIs
490         in the last block.
492 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
494         PR target/70027
495         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
496         asm dialect alternatives to explicit GOTPCREL calls.
498 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
500         PR ada/70017
501         * ira.c (do_reload): Issue warning for generic stack checking here...
502         * reload1.c (reload): ...instead of here and streamline it.
504 2016-03-01  Nick Clifton  <nickc@redhat.com>
506         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
508 2016-03-01  Richard Biener  <rguenther@suse.de>
510         PR tree-optimization/69983
511         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
512         types and fall back to operand_equal_p.
514 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
516         Revert
517         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
519         * config/s390/constraints.md ("jm8"): New constraint.
520         * config/s390/predicates.md ("const_int_8bitset_operand"): New
521         predicate.
522         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
523         into ...
524         ("*setmem_long<setmem_and>"): New pattern.
525         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
526         into ...
527         ("*setmem_long_31z<setmem_and>"): New pattern.
528         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
529         New substitution rules with the required attributes.
532 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
534         Revert
535         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
537         * gensupport.c (process_substs_on_one_elem): Split loop to
538         complete mark_operands_used_in_match_dup on all expressions in the
539         vector first.
540         (adjust_operands_numbers): Inline into process_substs_on_one_elem
541         and remove function.
543 2016-03-01  Richard Biener  <rguenther@suse.de>
545         PR middle-end/70022
546         * fold-const.c (fold_indirect_ref_1): Fix range checking for
547         vector BIT_FIELD_REF extract.
549 2016-03-01  Richard Biener  <rguenther@suse.de>
551         PR tree-optimization/69994
552         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
554 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
556         PR tree-optimization/69956
557         * tree-vect-stmts.c (supportable_widening_operation): Support
558         multi-step conversion of boolean vectors.
559         (supportable_narrowing_operation): Likewise.
561 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
563         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
564         anymore.
566 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
568         * config/s390/subst.md (DSI_VI): New mode iterator.
569         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
570         * config/s390/vector.md ("vec_set<mode>"): Move expander before
571         the insn definition.
572         ("*vec_set<mode>"): Change predicate and add alternative to
573         support only either register or const_int operands as element
574         selector.
575         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
576         operands.
577         ("vec_extract<mode>"): New expander.
578         ("*vec_extract<mode>"): New insn definition supporting reg and
579         const_int element selectors.
580         ("*vec_extract<mode>_plus"): New insn definition supporting
581         reg+const_int element selectors.
582         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
583         following expander+insn definition.
584         ("<vec_shifts_name><mode>3"): New expander.
585         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
587 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
589         * config/s390/s390.md ("*tabort_1"): Change predicate to
590         nonmemory_operand.  Add a second alternative to cover
591         register as well as const int operands.
592         ("*tabort_1_plus"): New pattern definition.
594 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
596         * config/s390/s390.md ("*ashrdi3_cc_31")
597         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
598         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
599         Merge insn definitions into ...
600         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
601         New pattern definition.
602         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
603         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
604         ("*ashr<mode>3_and"): Merge insn definitions into ...
605         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
606         New pattern definition.
607         * config/s390/subst.md ("addr_style_op_cc_subst")
608         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
609         substitutions patterns plus attributes.
610         Add ashiftrt to SUBST iterator.
612 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
614         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
615         op2 to nonmemory_operand.
616         ("*<shift>di3_31", "*<shift>di3_31_and"):
617         Merge into single pattern definition ...
618         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
619         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
620         pattern definition ...
621         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
622         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
623         iterator.
625 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
627         * config/s390/predicates.md (const_int_6bitset_operand): New
628         predicate.
629         * config/s390/s390.md: Include subst.md.
630         ("rotl<mode>3"): New expander.
631         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
632         ...
633         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
634         * config/s390/subst.md: New file.
636 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
638         * config/s390/s390.md ("op_type", "atype", "length" attributes):
639         Remove RRR type.  It doesn't really exist.
640         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
641         attributes.
642         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
643         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
644         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
645         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
646         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
647         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
648         `enabled' attribute.
650 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
652         * gensupport.c (process_substs_on_one_elem): Split loop to
653         complete mark_operands_used_in_match_dup on all expressions in the
654         vector first.
655         (adjust_operands_numbers): Inline into process_substs_on_one_elem
656         and remove function.
658 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
660         PR target/69706
661         * config/sparc/sparc.c (NWORDS_UP): Rename to...
662         (CEIL_NWORDS): ...this.  Use CEIL macro.
663         (compute_fp_layout): Adjust to above renaming.
664         (function_arg_union_value): Likewise.
665         (sparc_arg_partial_bytes): Likewise.
666         (sparc_function_arg_advance): Likewise.
668 2016-02-29  Jeff Law  <law@redhat.com>
670         PR tree-optimization/70005
671         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
672         where an object with a boolean range is compared against a value
673         outside [0..1].
675         PR tree-optimization/69999
676         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
677         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
678         loop cleanups.
680 2016-02-29  Richard Biener  <rguenther@suse.de>
682         PR tree-optimization/69994
683         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
684         (get_unary_op): Look through nop conversions.
685         (ops_equal_values_p): New function, look for equality diregarding
686         nop conversions.
687         (eliminate_plus_minus_pair): Use ops_equal_values_p
688         (repropagate_negates): Do not use get_unary_op here.
690 2016-02-29  Martin Liska  <mliska@suse.cz>
692         * system.h: Poison ENABLE_CHECKING macro.
694 2016-02-29  Martin Liska  <mliska@suse.cz>
696         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
697         is presented in dump flags.
698         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
699         (hsa_regalloc): Likewise.
701 2016-02-19  Richard Biener  <rguenther@suse.de>
703         PR tree-optimization/69980
704         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
705         permutation of those we need to keep.
707 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
709         PR target/69706
710         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
711         (NWORDS_UP): ...this
712         (init_cumulative_args): Minor tweaks.
713         (sparc_promote_function_mode): Likewise.
714         (scan_record_type): Delete.
715         (traverse_record_type): New function template.
716         (classify_data_t): New structure type.
717         (classify_registers): New inline function.
718         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
719         exhausted.  Instantiate traverse_record_type on classify_registers and
720         deal with the case of a structure passed in slot #15 with no FP field
721         in the first word.
722         (assign_data_t): New structure type.
723         (compute_int_layout): New static function.
724         (compute_fp_layout): Likewise.
725         (count_registers): New inline function.
726         (assign_int_registers): New static function.
727         (assign_fp_registers): Likewise.
728         (assign_registers): New inline function.
729         (function_arg_record_value_1): Delete.
730         (function_arg_record_value_2): Likewise.
731         (function_arg_record_value_3): Likewise.
732         (function_arg_record_value): Adjust to above changes.  Instantiate
733         traverse_record_type on count_registers to first count the number of
734         registers to be used and then on assign_registers to assign them.
735         (function_arg_union_value): Adjust to above renaming.
736         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
737         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
738         case of a structure passed in slot #15
739         (sparc_function_arg_advance): Likewise.
740         (function_arg_padding): Minor tweak.
742 2016-02-29  Richard Biener  <rguenther@suse.de>
744         PR tree-optimization/69720
745         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
746         the adjustment_def path for possibly vectorized defs.
747         (vect_create_epilog_for_reduction): Handle vectorized initial
748         defs properly.
750 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
752         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
754 2016-02-27  Jeff Law  <law@redhat.com>
756         Revert
757         2016-02-26  Richard Biener  <rguenther@suse.de>
758                     Jeff Law  <law@redhat.com>
760         PR tree-optimization/69740
761         * cfghooks.c (remove_edge): Request loop fixups if we delete
762         an edge that might turn an irreducible loop into a natural
763         loop.
765 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
767         PR rtl-optimization/69896
768         * tree-vect-generic.c (get_compute_type): Avoid single element
769         vector types.
771 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
773         Rename the AArch64 tuning option and related functions to enable the
774         Newton series for the reciprocal square root to reflect its
775         approximative characteristic.
777         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
778         function to "aarch64_emit_approx_rsqrt".
779         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
780         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
781         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
782         (xgene1_tunings): Likewise.
783         (use_rsqrt_p): Likewise.
784         (aarch64_emit_swrsqrt): Use new function name.
785         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
786         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
787         text explaining this option.
788         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
790 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
792         PR target/69969
793         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
794         complain about -mallow-movmisalign without -mvsx if
795         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
797 2016-02-26  Joel Sherrill  <joel@rtems.org>
799         * config.gcc: Add x86_64-*-rtems*.
800         * gcc/config/i386/rtems-64.h: New file.
802 2016-02-26  Joel Sherrill  <joel@rtems.org>
804         * config.gcc: Add aarch64-*-rtems*.
805         * gcc/config/aarch64/rtems.h: New file.
807 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
809         PR target/69946
810         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
811         shift amount using %h.  Add comment.
813 2016-02-26  Richard Biener  <rguenther@suse.de>
814             Jeff Law  <law@redhat.com>
816         PR tree-optimization/69740
817         * cfghooks.c (remove_edge): Request loop fixups if we delete
818         an edge that might turn an irreducible loop into a natural
819         loop.
821 2016-02-26  Martin Jambor  <mjambor@suse.cz>
823         PR middle-end/69920
824         * tree-sra.c (sra_modify_assign): Do not remove loads of
825         uninitialized aggregates to SSA_NAMEs.
827 2016-02-26  Richard Henderson  <rth@redhat.com>
829         PR target/69709
830         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
831         pseudo in case the target rtx matches the source of the left
832         shift.
834 2016-02-26  Martin Jambor  <mjambor@suse.cz>
836         PR hsa/69568
837         * hsa.h (hsa_type_packed_p): Declare.
838         * hsa.c (hsa_type_packed_p): New function.
839         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
840         loads.
841         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
842         * hsa-brig.c (emit_basic_insn): Likewise.
844 2016-02-26  Martin Jambor  <mjambor@suse.cz>
846         pr hsa/69674
847         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
848         pointers.
849         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
851 2016-02-26  Martin Jambor  <mjambor@suse.cz>
853         * hsa.h (is_a_helper): New overload for hsa_op_immed for
854         hsa_op_with_type operands.
855         (hsa_unsigned_type_for_type): Declare.
856         * hsa.c (hsa_unsigned_type_for_type): New function.
857         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
858         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
859         the finalizer.  Do not emit extra move.
861 2016-02-26  Martin Jambor  <mjambor@suse.cz>
863         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
864         atomic operations in private segment.
866 2016-02-26  Martin Jambor  <mjambor@suse.cz>
868         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
869         statements to wi->info.  Also disallow omp simd constructs.
870         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
871         for not gridifying.  Dump special string for omp_for.
873 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
875         PR target/69245
876         * config/aarch64/aarch64.c (aarch64_set_current_function):
877         Save/restore target globals when switching to
878         target_option_default_node.
880 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
882         PR target/69613
883         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
884         Return 0 if !SHIFT_COUNT_TRUNCATED.
886 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
887             Eric Botcazou  <ebotcazou@adacore.com>
889         PR rtl-optimization/69891
890         * dse.c (scan_insn): If we can't figure out memset arguments
891         or they are non-constant, call clear_rhs_from_active_local_stores.
893 2016-02-26  Martin Liska  <mliska@suse.cz>
895         * doc/extend.texi: Mention clog10, clog10f an clog10l
896         in Builtins section.
898 2016-02-26  Martin Liska  <mliska@suse.cz>
900         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
901         CHECKING_P.
902         (resolve_args_picking_1): Likewise.
903         * dwarf2out.h (struct GTY): Likewise.
905 2016-02-26  Martin Liska  <mliska@suse.cz>
907         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
908         with flag_checking.
909         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
911 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
912             Martin Liska  <mliska@suse.cz>
914         * doc/install.texi: Mention --enable-valgrind-annotations.
916 2016-02-26  Richard Biener  <rguenther@suse.de>
918         PR tree-optimization/69551
919         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
920         looking through aliases adjust DECL_PT_UID to refer to the
921         ultimate alias target.
923 2016-02-25  Martin Liska  <mliska@suse.cz>
925         PR middle-end/69919
926         * alloc-pool.c (after_memory_report): New variable.
927         * alloc-pool.h (base_pool_allocator ::release): Do not use
928         the infrastructure if after_memory_report.
929         * toplev.c (toplev::main): Mark after memory report.
931 2016-02-25  Richard Biener  <rguenther@suse.de>
933         PR tree-optimization/48795
934         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
936 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
938         PR driver/68463
939         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
940         offloading is enabled and -fopenacc or -fopenmp is specified.
941         (CRTOFFLOADEND): Likewise.
942         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
943         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
944         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
945         (offload_objects_file_name): New static var.
946         (tool_cleanup): Remove offload_objects_file_name file.
947         (find_offloadbeginend): Replace with ...
948         (find_crtoffloadtable): ... this.
949         (run_gcc): Remove offload_argc and offload_argv.
950         Get offload_objects_file_name from -foffload-objects=... option.
951         Read names of object files with offload from this file, pass them to
952         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
953         don't pass offloadbegin and offloadend to the linker.  Don't pass
954         offload non-LTO files to the linker, because now they're not claimed.
956 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
958         PR ipa/69630
959         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
960         on builtin_unreachable.
962 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
964         PR rtl-optimization/69896
965         * regcprop.c: Include cfgrtl.h.
966         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
967         than remembered mode, either delete it (if noop_move_p), or
968         treat like copy_p but not noop_p instruction.
970 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
972         PR debug/69705
973         * dwarf2out.c (gen_variable_die): Work around buggy LTO
974         - allow NULL decl for Fortran DW_TAG_common_block variables.
976 2016-02-24  Jason Merrill  <jason@redhat.com>
978         * common.opt (flifetime-dse): Add -flifetime-dse=1.
980 2016-02-24  Richard Biener  <rguenther@suse.de>
981             Jakub Jelinek  <jakub@redhat.com>
983         PR middle-end/69760
984         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
985         conditionally executed ops to well-defined overflow behavior.
987 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
989         PR middle-end/69915
990         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
991         elements.
993 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
995         PR rtl-optimization/69886
996         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
997         argument.  Use it when checking validity of set instructions.
998         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
999         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
1000         callsite.
1001         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
1002         * store-motion.c (find_moveable_store): Update
1003         can_assign_to_reg_without_clobbers_p callsite.
1005 2016-02-24  Richard Biener  <rguenther@suse.de>
1007         PR middle-end/68963
1008         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
1009         bogus check.
1010         (record_nonwrapping_iv): Do not fall back to the low/high bound
1011         for non-constant IV bases if the stmt is not always executed.
1013 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1015         * config/arm/arm-cores.def (cortex-a32): New entry.
1016         * config/arm/arm-tables.opt: Regenerate.
1017         * config/arm/arm-tune.md: Regenerate.
1018         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
1019         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
1020         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
1021         for -mcpu and -mtune.
1023 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1025         PR target/69875
1026         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
1027         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
1028         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
1029         (atomic_loaddi_1): Delete.
1030         (atomic_loaddi): Rewrite expander using the above changes.
1032 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1034         PR c/69918
1035         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
1036         2 to 3.
1038 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1039             Richard Biener  <rguenth@suse.de>
1041         PR middle-end/69909
1042         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
1043         set_mem_attributes if tem is SSA_NAME which got expanded
1044         as a MEM.
1046 2016-02-24  Richard Biener  <rguenther@suse.de>
1048         PR tree-optimization/69907
1049         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
1050         end of permutations for BB vectorization.
1052 2016-02-24  Christian Bruel  <christian.bruel@st.com>
1054         * config/arm/arm-c.c (arm_option_override): Initialize
1055         target_option_current_node.
1056         * config/arm/arm.c (arm_pragma_target_parse): Replace
1057         build_target_option_node call by target_option_current_node.
1058         Set target_option_current_node.
1059         Fix comments.
1061 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
1063         PR target/69810
1064         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
1065         define_insn_and_split to define_insn.
1066         (zero_extendqi<mode>2_dot2): Same.
1067         (extendqi<mode>2_dot): Same.
1068         (extendqi<mode>2_dot2): Same.
1070 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
1072         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
1073         and add bypass for AES{D,E} and AESMC pairs.
1074         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
1075         and AESMC pairs.
1077 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
1079         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
1080         series for reciprocal square root in Exynos M1.
1082 2016-02-23  Martin Sebor  <msebor@redhat.com>
1084         PR c/69759
1085         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
1086         __builtin_alloca_with_align.
1088 2016-02-23  Richard Henderson  <rth@redhat.com>
1090         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
1091         (ix86_register_pragmas): Remove __seg_tls.
1092         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
1093         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
1094         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
1095         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
1096         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
1097         * doc/extend.texi (__seg_tls): Remove item.
1099 2016-02-23  Richard Biener  <rguenther@suse.de>
1101         * alloc-pool.h (struct allocation_object): Make id member
1102         conditional on CHECKING_P again.
1103         (get_instance): Adjust.
1104         (base_pool_allocator): Likewise.
1106 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
1108         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
1109         (parallelize_loops): In OpenACC kernels mode, set n_threads to
1110         zero.
1111         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
1112         flag_openacc.
1113         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1115 2016-02-23  Richard Biener  <rguenther@suse.de>
1117         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
1118         * bitmap.h (struct bitmap_usage): Likewise.
1119         (bitmap_move): Declare.
1120         * bitmap.c (register_overhead): Take size_t argument.
1121         (bitmap_move): New function.
1122         * df-problems.c (df_rd_transfer_function): Use bitmap_move
1123         to properly account overhead.
1124         * tree.c (free_node): Use tree_size.
1126 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
1128         PR c++/69902
1129         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
1130         when inverting comparison.
1132         PR c/69900
1133         * common.opt (Wunreachable-code): Add Warning flag.
1135 2016-02-23  Mark Wielaard  <mjw@redhat.com>
1136             Jakub Jelinek  <jakub@redhat.com>
1138         PR c/69911
1139         * cgraphunit.c (check_global_declaration): Check main_input_filename
1140         and DECL_SOURCE_FILE are not NULL.
1142 2016-02-23  Martin Jambor  <mjambor@suse.cz>
1144         PR tree-optimization/69666
1145         * tree-sra.c (sra_modify_assign): Do not attempt to create
1146         default_def replacements for unscalarizable regions.
1148 2016-02-20  Mark Wielaard  <mjw@redhat.com>
1150         PR c/28901
1151         * cgraphunit.c (check_global_declaration): Check level of
1152         warn_unused_const_variable and main_input_filename.
1153         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
1154         (-Wunused-variable): For C implies -Wunused-const-variable=1.
1155         (-Wunused-const-variable): Explain levels 1 and 2.
1157 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1159         PR target/69888
1160         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
1161         identical arguments.  Formatting and spelling fixes.
1163         PR target/69885
1164         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
1165         be specified.
1167         PR target/69894
1168         PR target/69895
1169         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
1170         and m68k-devices.def.
1171         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
1172         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
1174 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
1176         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
1177         and HImode registers.
1179 2016-02-22  Richard Biener  <rguenther@suse.de>
1181         PR tree-optimization/69882
1182         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
1183         preserve permutations present because of gaps.
1184         (vect_supported_load_permutation_p): Always continue checking
1185         permutations after vect_attempt_slp_rearrange_stmts.
1187 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
1189         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
1190         min_profitable_estimate, rather than min_profitable_iters.
1192 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1194         PR target/69885
1195         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
1196         SImode for last match_operand.
1198 2016-02-22  Martin Liska  <mliska@suse.cz>
1200         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
1201         return bitsize - 1 as the return value.
1203 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
1205         PR target/69806
1206         PR target/54089
1207         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
1208         Handle negative shift counts.
1209         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
1210         force_reg on the shift constant.
1211         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
1212         (lshrsi3_d): Handle negative shift counts.
1214 2016-02-22  Richard Biener  <rguenther@suse.de>
1215             Tom de Vries  <tom@codesourcery.com>
1217         * graph.c: Include dumpfile.h.
1218         (print_graph_cfg): Split into three overloads.
1219         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
1221 2016-02-22  Tom de Vries  <tom@codesourcery.com>
1223         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
1224         dump-fn.
1226 2016-02-22  Richard Biener  <rguenther@suse.de>
1228         PR ipa/37448
1229         * ipa-inline-transform.c (inline_call): When not updating
1230         overall summaries adjust self size by the growth estimate.
1231         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
1232         hash-set, do not update overall summaries here.  Renamed from ...
1233         (inline_to_all_callers): ... this which is now wrapping the
1234         above and performing delayed overall summary update.
1235         (early_inline_small_functions): Delay updating of the overall
1236         summary.
1238 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1240         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
1241         variable.
1243 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1245         PR driver/69805
1246         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
1247         :%* in %:gt() argument.
1248         (greater_than_spec_func): Adjust for expecting only numbers,
1249         if there are more than two numbers, compare the last two.
1251 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
1253         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
1254         -Wnarrowing with -std.
1256 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1258         PR c++/69851
1259         * expr.c (store_field): Don't use bit-field path if exp is
1260         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
1261         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
1262         and the assignment can be performed by bitwise copy.  Formatting
1263         fix.
1265         PR middle-end/69838
1266         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
1267         call copy_reg_eh_region_note_forward on before and/or after sequences
1268         and remove note from insn if it no longer can throw.
1270         PR target/69820
1271         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
1272         if TARGET_AVX512BW.
1274 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1276         * config/s390/vector.md: Add missing commutative operand markers
1277         to the patterns which qualify for one.
1278         * config/s390/vx-builtins.md: Likewise.
1280 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1282         * config/s390/vector.md (VI, VI_QHS): Add single element vector
1283         types to mode iterators.
1284         (vec_double): ... and mode attribute.
1285         * config/s390/vx-builtins.md (non_vec_int): Likewise.
1287 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1289         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
1290         Change the predicate of op2 from nonimmediate to general and let
1291         reload fix it if necessary.
1293 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1295         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
1297 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1299         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
1300         mode.
1302 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1304         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
1305         * config/s390/s390.c (s390_expand_vec_movstr): New function.
1306         * config/s390/s390.md ("movstr<P:mode>"): Call
1307         s390_expand_vec_movstr.
1309 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1311         * config/s390/s390.md: Add missing output modifier for operand 1
1312         to print it as address properly.
1314 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1316         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
1317         * config/s390/2964.md: New file.
1318         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
1319         of insn grouping attributes depending on the CPU level.
1320         (s390_get_unit_mask): New function.
1321         (s390_sched_score): Remove the OOO from the scheduling macros.
1322         Add loop to calculate a score for the instruction mix.
1323         (s390_sched_reorder): Likewise plus improve debug output.
1324         (s390_sched_variable_issue): Rename macros as above.  Calculate
1325         the unit distances after actually scheduling an insn.  Improve
1326         debug output.
1327         (s390_sched_init): Clear last_scheduled_unit_distance array.
1328         * config/s390/s390.md: Include 2964.md.
1330 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1332         PR target/69671
1333         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
1334         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
1335         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
1336         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
1337         *avx512f_<code>v8div16qi2_mask_1): New insns.
1339 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1341         PR target/68404
1342         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
1343         2016-02-09 change.
1345         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
1346         earlyclobber from target.  Use wF constraint for fused memory
1347         address.
1348         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1350 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1351             Martin Liska  <mliska@suse.cz>
1353         PR sanitizer/69863
1354         * cfgexpand.c (asan_sanitize_stack_p): New function.
1355         (partition_stack_vars): Use the function.
1356         (expand_stack_vars): Likewise.
1357         (defer_stack_allocation): Likewise.
1358         (expand_used_vars): Likewise.
1360 2016-02-18  Richard Biener  <rguenther@suse.de>
1362         PR middle-end/69553
1363         * fold-const.c (operand_equal_p): Properly compare offsets for
1364         IMAGPART_EXPR and ARRAY_REF.
1366 2016-02-18  Nick Clifton  <nickc@redhat.com>
1368         PR target/62254
1369         PR target/69610
1370         * config/arm/arm.c (arm_option_override_internal): Disable
1371         interworking if the target does not support thumb instructions.
1372         (arm_reload_in_hi): Handle the case where a register to register
1373         move needs reloading because there is no simple pattern to handle
1374         it.
1375         (arm_reload_out_hi): Likewise.
1377 2016-02-18  Richard Biener  <rguenther@suse.de>
1379         PR middle-end/69854
1380         * match.pd: Don't use fold_binary or fold_unary for folding
1381         constants.
1383 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
1385         PR c++/69850
1386         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
1387         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
1388         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
1389         warn on gimple_no_warning_p statements.
1391 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
1393         * doc/extend.texi (C++ Attributes): Correct description of
1394         warn_unused type attribute.
1396 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1398         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
1399         correct instruction.
1401 2016-02-17  Richard Biener  <rguenther@suse.de>
1403         PR rtl-optimization/69609
1404         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
1405         (find_traces_1_round): When ending a trace update cached priority
1406         of successors.
1407         (bb_to_key): Use cached priority when available.
1408         (copy_bb): Initialize cached priority.
1409         (reorder_basic_blocks_software_trace_cache): Likewise.
1411 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1413         PR target/69161
1414         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
1415         New predicate.
1416         (aarch64_comparison_operator): Break overly long line into two.
1417         (aarch64_comparison_operation): Likewise.
1418         * config/aarch64/aarch64.md (cstorecc4): Use
1419         aarch64_comparison_operator_mode instead of
1420         aarch64_comparison_operator.
1421         (cstore<mode>4): Likewise.
1422         (aarch64_cstore<mode>): Likewise.
1423         (*cstoresi_insn_uxtw): Likewise.
1424         (cstore<mode>_neg): Likewise.
1425         (*cstoresi_neg_uxtw): Likewise.
1427 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1429         PR target/69161
1430         * config/arm/predicates.md (arm_comparison_operator_mode):
1431         New predicate.
1432         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
1433         instead of arm_comparison_operator.
1434         (*mov_negscc): Likewise.
1435         (*mov_notscc): Likewise.
1436         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
1437         (*thumb2_mov_negscc): Likewise.
1438         (*thumb2_mov_negscc_strict_it): Likewise.
1439         (*thumb2_mov_notscc): Likewise.
1440         (*thumb2_mov_notscc_strict_it): Likewise.
1442 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
1444         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
1445         Add missing return.
1447 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
1449         * config/visium/visium.c (machine_libfunc_index): New enum.
1450         (machine_libfuncs): New structure.
1451         (visium_libfuncs): New static variable.
1452         (TARGET_INIT_LIBFUNCS): Define to...
1453         (visium_init_libfuncs): ...this.  New function.
1454         (expand_block_move_4): Use the appropriate libfunc.
1455         (expand_block_move_2): Likewise.
1456         (expand_block_move_1): Likewise.
1457         (expand_block_set_4): Likewise.
1458         (expand_block_set_2): Likewise.
1459         (expand_block_set_1): Likewise.
1460         (visium_trampoline_init): Likewise.
1462 2016-02-17  Nick Clifton  <nickc@redhat.com>
1464         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
1465         TI's devices.csv file as of March 2016.
1467 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1469         PR Target/48344
1470         * opts-global.c (handle_common_deferred_options): Introduce and
1471         initialize two global variables to remember command-line options
1472         specifying a stack-limiting register.
1473         * opts.h: Add extern declarations of the two new global variables.
1474         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
1475         variable based on the values of the two new global variables.
1477 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1479         PR c/69835
1480         * common.opt (Wnonnull-compare): New warning.
1481         * doc/invoke.texi (-Wnonnull): Remove text about comparison
1482         of arguments against NULL.
1483         (-Wnonnull-compare): Document.
1484         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
1485         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
1486         * passes.def (pass_warn_nonnull_compare): Add.
1487         * gimple-ssa-nonnull-compare.c: New file.
1489 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1491         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
1492         AARCH64_EXTRA_TUNE_RECIP_SQRT.
1494 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1496         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
1497         reciprocal sqrt for -mlow-precision-recip-sqrt.
1499 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1500             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1502         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
1503         always use lane loads to construct non-constant vectors.
1505 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1507         * config/aarch64/aarch64.md
1508         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
1509         constraints for operand 3.
1510         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
1512 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1513             Richard Biener  <rguenther@suse.de>
1515         PR tree-optimization/69820
1516         * tree-vect-patterns.c (type_conversion_p): Return false if
1517         *orig_type is unsigned single precision or boolean.
1518         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
1519         Formatting fix.
1521 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1523         PR rtl-optimization/69764
1524         PR rtl-optimization/69771
1525         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
1526         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
1528 2016-02-16  Richard Biener  <rguenther@suse.de>
1530         PR tree-optimization/69776
1531         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
1532         sets from caller.
1533         (indirect_refs_may_alias_p): Likewise.
1534         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
1535         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
1536         according to tbaa_p.
1537         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
1538         (optimize_stmt): For redundant store discovery do not allow tbaa.
1540 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
1542         PR tree-optimization/69714
1543         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
1544         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
1546 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
1548         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
1549         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
1550         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
1551         * config/arc/arc.c (arc_init): Check FPU options.
1552         (get_arc_condition_code): Handle new CC_FPU* modes.
1553         (arc_select_cc_mode): Likewise.
1554         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
1555         register pair only. Allow access for ARCv2 accumulator.
1556         (gen_compare_reg): Whenever we have FPU support use FPU compare
1557         instructions.
1558         (arc_reorg): Don't generate brcc insns when FPU compare
1559         instructions are involved.
1560         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
1561         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
1562         floating point emulation.
1563         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
1564         (REVERSE_CONDITION): Add new CC_FPU* modes.
1565         (TARGET_FP_SP_BASE): Define.
1566         (TARGET_FP_DP_BASE): Likewise.
1567         (TARGET_FP_SP_FUSED): Likewise.
1568         (TARGET_FP_DP_FUSED): Likewise.
1569         (TARGET_FP_SP_CONV): Likewise.
1570         (TARGET_FP_DP_CONV): Likewise.
1571         (TARGET_FP_SP_SQRT): Likewise.
1572         (TARGET_FP_DP_SQRT): Likewise.
1573         (TARGET_FP_DP_AX): Likewise.
1574         * config/arc/arc.md (ARCV2_ACC): New constant.
1575         (type): New fpu type attribute.
1576         (SDF): Conditional iterator.
1577         (cstore<mode>, cbranch<mode>): Change expand condition.
1578         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
1579         handles FPU/FPX cases as well.
1580         * config/arc/arc.opt (mfpu): New option.
1581         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
1582         Renamed.
1583         (adddf3, muldf3, subdf3): Removed.
1584         * config/arc/predicates.md (proper_comparison_operator): Recognize
1585         CC_FPU* modes.
1586         * config/arc/fpu.md: New file.
1587         * doc/invoke.texi (ARC Options): Document mfpu option.
1589 2016-02-16  Richard Biener  <rguenther@suse.de>
1591         PR rtl-optimization/69291
1592         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
1593         noce_operand_ok check.
1595 2016-02-16  Tom de Vries  <tom@codesourcery.com>
1597         PR lto/67709
1598         * omp-low.c (simd_clone_create): Remove call to
1599         symtab->call_cgraph_insertion_hooks.
1601 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1603         PR tree-optimization/69802
1604         * tree-ssa-reassoc.c (update_range_test): If op is
1605         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
1606         op == 1 test of precision 1 integral op, otherwise handle
1607         that case as op itself.  Fix up formatting.
1608         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
1609         up formatting.
1611 2016-02-16  Richard Biener  <rguenther@suse.de>
1613         PR tree-optimization/69586
1614         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
1615         types for conversion sources.
1617 2016-02-16  Richard Biener  <rguenther@suse.de>
1619         PR middle-end/69801
1620         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
1621         mask OEP_ADDRESS_OF.
1623 2016-02-16  Alan Modra  <amodra@gmail.com>
1625         PR target/68973
1626         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
1627         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
1628         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
1629         (p8_mtvsrwz): New.
1630         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
1631         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
1632         (p8_fmrgow_<mode>): Likewise.
1633         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
1634         changes.
1635         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
1636         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
1637         to use movdi_internal64.  Remove op0_di.
1638         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
1640 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
1642         Add support for the FCCMP insn types
1644         * config/aarch64/aarch64.md (fccmp): Change insn type.
1645         (fccmpe): Likewise.
1646         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
1647         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
1648         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
1649         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
1650         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
1651         * config/arm/types.md (fccmps): Add new insn type.
1652         (fccmpd): Likewise.
1654 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1656         * alias.c (get_alias_set): Fix a typo in comment.
1658 2016-02-15  Richard Biener  <rguenther@suse.de>
1660         PR tree-optimization/69595
1661         * match.pd: Complete range test simplification to true.
1663 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
1665         PR rtl-optimization/69648
1666         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
1667         pic_offset_table_rtx.
1669         PR rtl-optimization/69752
1670         * ira.c (update_equiv_regs): When looking for more than a single SET,
1671         also take other side effects into account.
1673 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
1675         * config/s390/s390.c (s390_function_profiler): Add a new sequence
1676         for z900+ CPUs in 31-bit mode.
1678 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
1680         * common/config/s390/s390-common.c (s390_supports_split_stack):
1681         New function.
1682         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
1683         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
1684         * config/s390/s390.c (struct machine_function): New field
1685         split_stack_varargs_pointer.
1686         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
1687         in s390_emit_prologue.
1688         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
1689         vararg pointer.
1690         (morestack_ref): New global.
1691         (SPLIT_STACK_AVAILABLE): New macro.
1692         (s390_expand_split_stack_prologue): New function.
1693         (s390_live_on_entry): New function.
1694         (s390_va_start): Use split-stack vararg pointer if appropriate.
1695         (s390_asm_file_end): Emit the split-stack note sections.
1696         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
1697         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
1698         (UNSPECV_SPLIT_STACK_CALL): New unspec.
1699         (UNSPECV_SPLIT_STACK_DATA): New unspec.
1700         (split_stack_prologue): New expand.
1701         (split_stack_space_check): New expand.
1702         (split_stack_data): New insn.
1703         (split_stack_call): New expand.
1704         (split_stack_call_*): New insn.
1705         (split_stack_cond_call): New expand.
1706         (split_stack_cond_call_*): New insn.
1708 2016-02-15  Richard Biener  <rguenther@suse.de>
1710         PR tree-optimization/69783
1711         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1712         Add trivially correct cases.
1714 2016-02-15  Tom de Vries  <tom@codesourcery.com>
1716         PR lto/69655
1717         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
1718         do_force_output.
1719         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
1721 2016-02-15  Richard Biener  <rguenther@suse.de>
1723         PR tree-optimization/69776
1724         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1725         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
1726         indicate whether we can use TBAA to disambiguate against stores.
1727         Use alias-set zero if not.
1728         (visit_reference_op_store): Do not use TBAA when looking up
1729         redundant stores.
1730         * tree-ssa-pre.c (compute_avail): Use TBAA here.
1731         (eliminate_dom_walker::before_dom_children): But not when looking
1732         up redundant stores.
1734 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
1736         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
1738 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1740         *  config/i386/znver1.md
1741         (znver1_pop, znver1_pop_mem,
1742         znver1_load_imov_double_store,
1743         znver1_load_imov_direct_store,
1744         znver1_load_imov_direct_load,
1745         znver1_load_imov_double_load): Add new.
1746         (znver1_insn, znver1_insn_load): Add icmov type.
1747         (znver1_sseavx_fma,
1748         znver1_sseavx_fma_load,
1749         znver1_avx256_fma,
1750         znver1_avx256_fma_load): Fix pipe usage.
1752 2016-02-14  Alan Modra  <amodra@gmail.com>
1754         PR target/68973
1755         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
1756         with an invalid hard reg, reload just the reg not the entire
1757         pre/post-inc/dec address expression.
1759 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
1761         PR target/67260
1762         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
1763         fixed R1_REG scratch reg.
1764         (sibcall_value_pcrel_fdpic): Likewise.
1766 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
1768         PR target/67636
1769         PR target/64345
1770         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
1772 2016-02-12  Walter Lee  <walt@tilera.com>
1774         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
1775         * config/tilegx/t-tilegx: Likewise.
1777 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1779         PR other/69554
1780         * diagnostic-show-locus.c (struct line_span): New struct.
1781         (layout::get_first_line): Delete.
1782         (layout::get_last_line): Delete.
1783         (layout::get_num_line_spans): New member function.
1784         (layout::get_line_span): Likewise.
1785         (layout::print_heading_for_line_span_index_p): Likewise.
1786         (layout::get_expanded_location): Likewise.
1787         (layout::calculate_line_spans): Likewise.
1788         (layout::m_first_line): Delete.
1789         (layout::m_last_line): Delete.
1790         (layout::m_line_spans): New field.
1791         (layout::layout): Update comment.  Replace m_first_line and
1792         m_last_line with m_line_spans, replacing their initialization
1793         with a call to calculate_line_spans.
1794         (diagnostic_show_locus): When printing source lines and
1795         annotations, rather than looping over a single span
1796         of lines, instead loop over each line_span within
1797         the layout, with an inner loop over the lines within them.
1798         Call the context's start_span callback when changing line spans.
1799         * diagnostic.c (diagnostic_initialize): Initialize start_span.
1800         (diagnostic_build_prefix): Break out the building of the location
1801         part of the string into...
1802         (diagnostic_get_location_text): ...this new function, rewriting
1803         it from nested ternary expressions to a sequence of "if"
1804         statements.
1805         (default_diagnostic_start_span_fn): New function.
1806         * diagnostic.h (diagnostic_start_span_fn): New typedef.
1807         (diagnostic_context::start_span): New field.
1808         (default_diagnostic_start_span_fn): New prototype.
1810 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1812         PR driver/69779
1813         * gcc.c (driver::finalize): Fix cleanup of "specs".
1815 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1817         PR driver/69265
1818         PR driver/69453
1819         * gcc.c (driver::driver): Initialize m_option_suggestions.
1820         (driver::~driver): Clean up m_option_suggestions.
1821         (suggest_option): Convert to...
1822         (driver::suggest_option): ...this, and split out into
1823         driver::build_option_suggestions and find_closest_string.
1824         (driver::build_option_suggestions): New function, from
1825         first half of suggest_option.  Special-case
1826         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
1827         the sanitizer_opts array.  For options of enum types, add the
1828         various enum values to the candidate strings.
1829         (driver::handle_unrecognized_options): Remove "const".
1830         * gcc.h (driver::handle_unrecognized_options): Likewise.
1831         (driver::build_option_suggestions): New decl.
1832         (driver::suggest_option): New decl.
1833         (driver::m_option_suggestions): New field.
1834         * opts-common.c (add_misspelling_candidates): New function.
1835         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
1836         and make non-static.
1837         * opts.h (sanitizer_opts): New array decl.
1838         (add_misspelling_candidates): New function decl.
1839         * spellcheck.c (find_closest_string): New function.
1840         * spellcheck.h (find_closest_string): New function decl.
1842 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
1844         PR rtl-optimization/69764
1845         PR rtl-optimization/69771
1846         * optabs.c (expand_binop_directly): For shift_optab_p, force
1847         convert_modes with VOIDmode if xop1 has VOIDmode.
1849 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
1851         PR target/69729
1852         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
1853         to correctly determine instrumentation thunks.
1855 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
1857         PR ipa/69241
1858         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
1859         type by reference, force lhs on the call.
1861         PR ipa/68672
1862         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
1863         Compute retval and retbnd early in all cases if split_part_return_p
1864         and return_bb is not EXIT.  Remove all clobber stmts and reset
1865         all debug stmts that refer to SSA_NAMEs defined in split part,
1866         except if it is retval, in that case replace the old retval with the
1867         lhs of the call to the split part.
1869 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1871         revert:
1872         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1874         PR middle-end/66726
1875         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1876         whose result is used in PHI.
1877         (maybe_optimize_range_tests): Likewise.
1878         (final_range_test_p): Likweise.
1880 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1882         PR middle-end/66726
1883         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1884         whose result is used in PHI.
1885         (maybe_optimize_range_tests): Likewise.
1886         (final_range_test_p): Likweise.
1888 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
1890         * cgraph.c: Spelling fixes - behaviour -> behavior and
1891         neighbour -> neighbor.
1892         * target.def: Likewise.
1893         * sel-sched.c: Likewise.
1894         * config/mips/mips.c: Likewise.
1895         * config/arc/arc.md: Likewise.
1896         * config/arm/cortex-a57.md: Likewise.
1897         * config/arm/arm.c: Likewise.
1898         * config/arm/neon.md: Likewise.
1899         * config/arm/arm-c.c: Likewise.
1900         * config/vms/vms-c.c: Likewise.
1901         * config/s390/s390.c: Likewise.
1902         * config/i386/znver1.md: Likewise.
1903         * config/i386/i386.c: Likewise.
1904         * config/ia64/hpux-unix2003.h: Likewise.
1905         * config/msp430/msp430.md: Likewise.
1906         * config/rx/rx.c: Likewise.
1907         * config/rx/rx.md: Likewise.
1908         * config/aarch64/aarch64-simd.md: Likewise.
1909         * config/aarch64/aarch64.c: Likewise.
1910         * config/nvptx/nvptx.c: Likewise.
1911         * config/bfin/bfin.c: Likewise.
1912         * config/cris/cris.opt: Likewise.
1913         * config/rs6000/rs6000.c: Likewise.
1914         * target.h: Likewise.
1915         * spellcheck.c: Likewise.
1916         * ira-build.c: Likewise.
1917         * tree-inline.c: Likewise.
1918         * builtins.c: Likewise.
1919         * lra-constraints.c: Likewise.
1920         * explow.c: Likewise.
1921         * hwint.h: Likewise.
1922         * targhooks.c: Likewise.
1923         * tree-vect-data-refs.c: Likewise.
1924         * expr.c: Likewise.
1925         * doc/tm.texi: Likewise.
1926         * doc/extend.texi: Likewise.
1927         * doc/install.texi: Likewise.
1928         * doc/md.texi: Likewise.
1929         * tree-ssa-tail-merge.c: Likewise.
1930         * sched-int.h: Likewise.
1931         * match.pd: Likewise.
1932         * sched-ebb.c: Likewise.
1933         * target.def (omit_struct_return_reg): Likewise.
1934         * gimple-ssa-isolate-paths.c: Likewise.
1935         (find_implicit_erroneous_behaviour): Renamed to...
1936         (find_implicit_erroneous_behavior): ... this.
1937         (find_explicit_erroneous_behaviour): Renamed to...
1938         (find_explicit_erroneous_behavior): ... this.
1939         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
1941 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
1943         PR rtl-optimization/64682
1944         PR rtl-optimization/69567
1945         PR rtl-optimization/69737
1946         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
1947         in I2 as well, just lose it.
1949 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1951         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
1952         New variable.
1953         (aarch64_last_printed_tune_string): Likewise.
1954         (aarch64_declare_function_name): Only output .arch assembler
1955         directive if it will be different from the previously output
1956         directive.  Same for .tune comment but only if -dA is set.
1957         (aarch64_start_file): New function.
1958         (TARGET_ASM_FILE_START): Define.
1960 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
1962         PR plugins/69758
1963         * Makefile.in (PLUGIN_HEADERS): Add params.list.
1965 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
1967         PR target/65313
1968         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
1969         -Wmaybe-uninitialized warning.
1971 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
1973         PR target/69713
1974         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
1976 2016-02-11  Richard Biener  <rguenther@suse.de>
1978         PR rtl-optimization/69291
1979         * ifcvt.c (noce_try_store_flag_constants): Do not allow
1980         subexpressions affected by changing the result.
1982 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
1984         PR target/69148
1985         * lra-constraints.c (curr_insn_transform): Find in/out operands
1986         for secondary memory moves.  Update dups.
1988 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
1990         PR tree-optimization/69652
1991         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
1992         to nested loop, did source re-formatting, skip debug statements,
1993         add check on statement with volatile operand, remove dead scalar
1994         statements.
1996 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
1997             Patrick Palka  <ppalka@gcc.gnu.org>
1999         PR ipa/69241
2000         PR c++/69649
2001         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
2002         calls if the return type is TREE_ADDRESSABLE.
2003         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
2004         * ipa-split.c (split_function): Fix doubled "we" in comment.
2005         Use void return type for the split part even if
2006         !split_point->split_part_set_retval.
2008 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
2010         PR tree-optimization/68021
2011         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
2012         when computing the value of biv cand by itself.
2014 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2016         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
2017         (cortexa57_tunings): Likewise.
2018         (cortexa72_tunings): Likewise.
2019         (arch_macro_fusion_pair_p): Add support for AES fusion.
2020         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
2021         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2022         Allow virtual registers before reload so early scheduling works.
2023         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
2024         correct latency and pipeline.
2025         (cortex_a57_crypto_complex): Likewise.
2026         (cortex_a57_crypto_xor): Likewise.
2027         (define_bypass): Add AES bypass.
2029 2016-02-10  Richard Biener  <rguenther@suse.de>
2031         PR tree-optimization/69726
2032         * passes.def: Add DCE pass before late uninit.
2033         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
2034         really fixup if-conversions job.
2036 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2038         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
2039         (arm_cortex_a57_tune): Likewise.
2040         (aarch_macro_fusion_pair_p): Add support for AES fusion.
2041         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
2043 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
2045         * timevar.def (TV_PHASE_DBGINFO): Delete.
2046         (TV_PHASE_CHECK_DBGINFO): Likewise.
2047         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
2049 2016-02-10  Richard Biener  <rguenther@suse.de>
2051         PR tree-optimization/69719
2052         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2053         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
2055 2016-02-09  Andrew Pinski  <apinski@cavium.com>
2057         PR tree-opt/69282
2058         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
2059         get_vcond_mask_icode returns false.
2061 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2063         PR target/68404
2064         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
2065         an ADDIS that adds a pointer to a large constant that sets the
2066         upper16 bits with a load operation.
2068 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
2070         PR target/68532
2071         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
2072         order.
2073         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
2074         endian.
2075         (vzipq_s16): Likewise.
2076         (vzipq_s32): Likewise.
2077         (vzipq_f32): Likewise.
2078         (vzipq_u8): Likewise.
2079         (vzipq_u16): Likewise.
2080         (vzipq_u32): Likewise.
2081         (vzipq_p8): Likewise.
2082         (vzipq_p16): Likewise.
2084 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
2086         PR target/68532
2087         * config/arm/arm.c (neon_endian_lane_map): New function.
2088         (neon_vector_pair_endian_lane_map): New function.
2089         (arm_evpc_neon_vuzp): Allow for big endian lane order.
2090         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
2091         endian.
2092         (vuzpq_s16): Likewise.
2093         (vuzpq_s32): Likewise.
2094         (vuzpq_f32): Likewise.
2095         (vuzpq_u8): Likewise.
2096         (vuzpq_u16): Likewise.
2097         (vuzpq_u32): Likewise.
2098         (vuzpq_p8): Likewise.
2099         (vuzpq_p16): Likewise.
2101 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
2103         PR target/69634
2104         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
2105         debug insns.
2107 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
2109         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
2110         truncate const_int operand 1 to QImode.
2112 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
2114         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
2115         corresponding to an abnormal edge.
2117 2016-02-09  Tom de Vries  <tom@codesourcery.com>
2119         PR tree-optimization/69599
2120         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
2121         function.
2122         (find_func_aliases_for_builtin_call, find_func_clobbers)
2123         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
2124         partition.
2126 2016-02-09  Richard Biener  <rguenther@suse.de>
2128         PR tree-optimization/69715
2129         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
2130         LHS on calls as non-rewritable.
2132 2016-02-09  Tom de Vries  <tom@codesourcery.com>
2134         PR lto/69707
2135         * lto-wrapper.c (append_diag_options): New function.
2136         (compile_offload_image): Call append_diag_options.
2138 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
2140         PR other/69722
2141         * doc/extend.texi (Flag Output Operands): Correct sectioning.
2142         Minor copy-edit to fix verb tenses.
2144 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
2146         PR tree-optimization/69209
2147         * ipa-split.c (split_function): If split part is not
2148         returning retval, retval has gimple type but is not
2149         gimple value, force it into a SSA_NAME first.
2151 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
2153         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
2154         outdated section.
2156 2016-02-08  Jason Merrill  <jason@redhat.com>
2158         PR c++/69631
2159         * convert.c (convert_to_integer_1): Check dofold on truncation
2160         distribution.
2161         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
2162         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
2163         Rename from *_nofold.
2164         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
2165         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
2167 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2169         PR target/60410
2170         * tree.c (build_common_tree_nodes): Remove short_double argument.
2171         All callers changed.
2172         * tree.h (build_common_tree_nodes): Adjust declaration.
2173         * doc/invoke.texi (-fshort-double): Remove documentation.
2174         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2175         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
2176         * lto-wrapper.c (merge_and_complain, append_compiler_options)
2177         (append_linker_options): Don't handle OPT_fshort_double.
2179         PR rtl-optimization/68730
2180         * lra-remat.c (insn_to_cand_activation): New static variable.
2181         (lra_remat): Allocate and free it.
2182         (create_cand): New arg activation. Initialize a field in
2183         insn_to_cand_activation if it is nonnull.
2184         (create_cands): Pass the activation insn to create_cand when making
2185         a candidate involving an output reload.  Reorganize code a little.
2186         (do_remat): Keep track of active status of candidates in a separate
2187         bitmap.
2189 2016-02-08  Richard Biener  <rguenther@suse.de>
2191         PR tree-optimization/69719
2192         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2193         Properly use absolute of the difference of the two offsets to
2194         compare or adjust the segment length.
2196 2016-02-08  Richard Biener  <rguenther@suse.de>
2197             Jeff Law  <law@redhat.com>
2199         PR target/68273
2200         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
2201         types for anonymous SSA names.
2203 2016-02-08   Richard Biener  <rguenther@suse.de>
2205         PR rtl-optimization/69274
2206         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
2208 2016-02-08  Jeff Law  <law@redhat.com>
2210         PR tree-optimization/65917
2211         * tree-ssa-dom.c (record_temporary_equivalences): Record both
2212         equivalences from if (x == y) style conditionals.
2213         (loop_depth_of_name): Remove.
2214         (record_equality): Remove loop depth check.
2215         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
2216         (const_and_copies::record_const_or_copy_raw): New member function.
2217         * tree-ssa-scopedtables.c
2218         (const_and_copies::record_const_or_copy_raw): New, factored out of
2219         (const_and_copies::record_const_or_copy): Call new member function.
2221 2016-02-05  Jeff Law  <law@redhat.com>
2223         PR tree-optimization/68541
2224         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
2225         (count_stmts_in_block): New function.
2226         (poor_ifcvt_candidate_code): Likewise.
2227         (is_feasible_trace): Add some heuristics to determine when path
2228         splitting is profitable.
2229         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
2230         is a diamond with a single exit.
2232 2016-02-05  Martin Sebor  <msebor@redhat.com>
2234         PR c++/69662
2235         * doc/invoke.texi: Update -Wplacement-new to take an optional
2236         argument.
2238 2016-02-06  Richard Henderson  <rth@redhat.com>
2240         PR c/69643
2241         * tree.c (tree_nop_conversion_p): Do not strip casts into or
2242         out of non-standard address spaces.
2244 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2246         PR rtl-optimization/69691
2247         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
2249 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
2251         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
2252         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
2253         (*ieee128_mfvsrd_64bit): Likewise.
2254         (*ieee128_mfvsrd_32bit): Likewise.
2256 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2258         PR target/69369
2259         Revert r232560:
2260         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2262         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2263         instrumented_version.
2265 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
2267         * doc/invoke.texi (Optimize Options): In table of --param options
2268         rename second occurrence of tracer-min-branch-ratio to
2269         tracer-min-branch-probability, rename
2270         tracer-min-branch-ratio-feedback to
2271         tracer-min-branch-probability-feedback and clarify description,
2272         rename sched-spec-state-edge-prob-cutoff to
2273         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
2274         to selsched-insns-to-rename, rename lto-minpartition to
2275         lto-min-partition, delete reorder-blocks-duplicate and
2276         reorder-blocks-duplicate-feedback.
2278 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2280         * config/s390/s390.c (s390_register_info_set_ranges): Remove
2281         superfluous loops.
2283 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2285         * doc/extend.texi: S/390: Correct some typos.
2287 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2289         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
2291 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2293         PR target/69625
2294         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
2295         (s390_register_info_gprtofpr): Use new macros above.
2296         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
2297         its name.
2298         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
2299         its name.  Adjust restore and save gpr ranges.
2300         (s390_register_info_set_ranges): New function.
2301         (s390_register_info): Use new macros above.  Call
2302         s390_register_info_set_ranges.
2303         (s390_optimize_register_info): Likewise.
2304         (s390_hard_regno_rename_ok): Use new macros.
2305         (s390_hard_regno_scratch_ok): Likewise.
2306         (s390_emit_epilogue): Likewise.
2307         (s390_can_use_return_insn): Likewise.
2308         (s390_optimize_prologue): Likewise.
2309         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
2311 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2313         PR bootstrap/69677
2314         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
2315         alignment fixes.
2316         (ix86_option_override_internal): Disable TARGET_STV even for
2317         -m{incoming,preferred}-stack-boundary=3.
2319 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2321         * config.gcc: Mark deprecated rtems targets as obsolete.
2323 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
2325         PR rtl-optimization/64682
2326         PR rtl-optimization/69567
2327         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
2328         before I2 only if the register is both used and set in I2.
2330 2016-02-04  DJ Delorie  <dj@redhat.com>
2332         * config/msp430/msp430.c (msp430_start_function): Add function type.
2334 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2336         PR fortran/69368
2337         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
2339 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
2341         PR rtl-optimization/69577
2342         Revert:
2343         2015-10-29  Richard Henderson  <rth@redhat.com>
2345         PR target/68124
2346         PR rtl-opt/67609
2347         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2348         sse check to the exact conditions of PR 67609.
2350 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2352         PR target/69667
2353         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
2354         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
2355         not allowed into the traditional Altivec registers.
2356         (movtd_64bit_nodm): Likewise.
2357         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2359 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
2361         * config/aarch64/cortex-a57-fma-steering.c
2362         (aarch64_register_fma_steering): Remove "static" from arguments
2363         to register_pass.
2365 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
2367         PR target/69619
2368         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
2369         twice when complex.
2371 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
2373         * doc/invoke.texi: Delete -mno-fma4.
2375 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
2377         PR rtl-optimization/69577
2378         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
2379         (find_subregs_of_mode): Update accordingly.  Iterate over partial
2380         definitions.
2382 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
2384         * config/arm/arm-protos.h (neon_reinterpret): Remove.
2385         * config/arm/arm.c (neon_reinterpret): Remove.
2386         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
2387         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
2388         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
2389         vreinterpretti): Remove.
2390         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
2391         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2392         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
2393         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
2394         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
2395         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
2396         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
2397         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
2398         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
2399         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
2400         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
2401         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
2402         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
2403         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
2404         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
2405         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
2406         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
2407         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
2408         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
2409         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
2410         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
2411         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
2412         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
2413         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
2414         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
2415         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
2416         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
2417         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
2418         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
2419         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
2420         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
2421         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
2422         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
2423         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
2424         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
2425         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
2426         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
2427         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
2428         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
2429         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
2430         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
2431         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
2432         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
2433         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
2434         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
2435         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
2436         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
2437         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
2438         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
2439         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
2440         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
2441         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
2442         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
2443         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
2444         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
2445         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
2446         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
2447         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
2448         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
2449         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
2450         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
2451         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
2452         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
2453         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
2454         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
2455         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
2456         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
2457         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
2458         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
2459         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
2460         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
2461         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
2462         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
2463         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
2464         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
2465         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
2466         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
2467         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
2468         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
2469         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
2470         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
2471         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
2472         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
2473         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
2474         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
2475         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
2476         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
2477         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
2478         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
2479         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
2480         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
2481         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
2482         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
2483         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
2484         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
2485         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
2486         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
2487         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
2488         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
2489         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
2490         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
2491         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
2492         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
2494 2016-02-04  Martin Liska  <mliska@suse.cz>
2496         PR sanitizer/69276
2497         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
2498         that are gimple_store_p.
2499         (maybe_instrument_call): Likewise.
2501 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
2503         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
2504         register scaling out of memory reference and comment why.
2506 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2508         PR target/65932
2509         PR target/67714
2510         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
2511         folding the source of a SET.
2513 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2515         PR target/65932
2516         PR target/67714
2517         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
2518         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
2520 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
2522         PR target/65932
2523         PR target/67714
2524         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
2525         HImode.
2527 2016-02-04  Christian Bruel  <christian.bruel@st.com>
2529         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
2530         * config/arm/arm.c (arm_set_current_function): Likewise.
2532 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2533             Ilya Enkovich  <enkovich.gnu@gmail.com>
2534             H.J. Lu  <hongjiu.lu@intel.com>
2536         PR target/69454
2537         * config/i386/i386.c (convert_scalars_to_vector): Remove
2538         stack alignment fixes.
2539         (ix86_option_override_internal): Disable TARGET_STV if stack
2540         might not be aligned enough.
2541         (ix86_minimum_alignment): Assert that TARGET_STV is false.
2543 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
2545         * gcc/config/i386/x86-tune.def: Disable default prefetching
2546         for -march=znver1.
2548 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2549             Vladimir Makarov  <vmakarov@redhat.com>
2551         PR target/69461
2552         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
2553         in validating fused toc addresses.
2555 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
2557         PR c/69627
2558         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
2559         range->m_caret fields if range->m_show_caret_p is false.
2561         PR target/69644
2562         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2563         Force oldval into register if it does not satisfy reg_or_short_operand
2564         predicate.  Fix up formatting.
2566 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
2567             Alexandre Oliva  <aoliva@redhat.com>
2569         PR target/69461
2570         * lra-constraints.c (simplify_operand_subreg): Check additionally
2571         address validity after potential reloading.
2572         (process_address_1): Check insns validity.  In case of failure do
2573         nothing.
2575 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2577         PR target/69118
2578         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
2579         Fix target.
2581 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
2583         * wide-int.cc (canonize_uhwi): New function.
2584         (wi::divmod_internal): Use it.
2586 2016-02-02  James Norris  <jnorris@codesourcery.com
2588         * gimplify.c (omp_notice_variable): Add usage check.
2590 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
2592         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
2593         like LE, GE, LT, GT when emitting relational operator.
2595 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
2597         * ira-costs.c (find_costs_and_classes): Add extra argument.
2598         * target.def (ira_change_pseudo_allocno_class): Add parameter.
2599         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
2600         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
2601         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
2602         Add best_class parameter, and return it if not ALL_REGS.
2603         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
2604         Add parameter.
2605         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
2606         Update target hook.
2608 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
2610         * config/aarch64/aarch64.c
2611         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
2612         (aarch64_ira_change_pseudo_allocno_class): New function.
2614 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
2616         PR target/67032
2617         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
2619 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2621         * config/avr/avr.c (avr_option_override): Set
2622         PARAM_ALLOW_STORE_DATA_RACES to 1.
2624 2016-02-02  Richard Biener  <rguenther@suse.de>
2626         PR tree-optimization/69595
2627         * match.pd: Add range test simplifications to true/false.
2629 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
2631         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
2632         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
2633         instead.
2635 2016-02-02  Richard Biener  <rguenther@suse.de>
2637         PR tree-optimization/69606
2638         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
2639         info on the result before moving a stmt.
2641 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
2643         PR middle-end/68542
2644         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
2645         branch with vector comparison.
2646         * config/i386/sse.md (VI48_AVX): New mode iterator.
2647         (define_expand "cbranch<mode>4): Add support for conditional branch
2648         with vector comparison.
2649         * tree-vect-loop.c (optimize_mask_stores): New function.
2650         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
2651         has_mask_store field of vect_info.
2652         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
2653         vectorized loops having masked stores after vec_info destroy.
2654         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
2655         correspondent macros.
2656         (optimize_mask_stores): Add prototype.
2658 2016-02-02  Alan Modra  <amodra@gmail.com>
2660         PR target/69548
2661         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
2662         allow subregs.
2664 2016-02-02  Alan Modra  <amodra@gmail.com>
2666         PR target/68662
2667         * config/rs6000/rs6000.c (need_toc_init): New var, set it
2668         whenever toc_label_name used.
2669         (rs6000_file_start): Don't set up toc section here,
2670         (rs6000_output_function_epilogue): do so here instead,
2671         (rs6000_xcoff_file_start): and here.
2672         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
2673         (load_toc_aix_di): Likewise.
2675 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2677         PR rtl-optimization/69592
2678         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
2679         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
2680         (num_sign_bit_copies_binary_arith_p): New inline function.
2681         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
2683 2016-02-01  Jeff Law  <law@redhat.com>
2685         PR tree-optimization/69580
2686         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
2687         * tree-ssa-threadbackward.c
2688         (fsm_find_control_statement_thread_paths): Do not try to walk
2689         through large PHI nodes.
2691 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2693         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
2694         when count is incremented above limit, don't analyze further
2695         insns afterwards.
2697         * omp-low.c (oacc_parse_default_dims): Avoid
2698         -Wsign-compare warning, make sure value fits into int
2699         rather than just unsigned int.
2701 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
2703         PR tree-optimization/67921
2704         * fold-const.c (split_tree): New parameters.  Convert pointer
2705         type variable part to proper type before negating.
2706         (fold_binary_loc): Pass new arguments to split_tree.
2708 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
2710         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
2711         (nvptx_goacc_validate_dims): Extend to handle global defaults.
2712         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
2713         * doc/tm.texti: Rebuilt.
2714         * doc/invoke.texi (fopenacc-dim): Document.
2715         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
2716         (append_compiler_options): Likewise.
2717         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
2718         (oacc_parse_default_dims): New.
2719         (oacc_validate_dims): Add USED arg.  Select non-unity default when
2720         possible.
2721         (oacc_loop_fixed_partitions): Return mask of used partitions.
2722         (oacc_loop_auto_partitions): Emit dump info.
2723         (oacc_loop_partition): Return mask of used partitions.
2724         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
2725         loop partitioning and validation calls.
2727 2016-02-01  Richard Biener  <rguenther@suse.de>
2729         PR middle-end/69556
2730         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
2732 2016-02-01  Richard Biener  <rguenther@suse.de>
2734         PR tree-optimization/69574
2735         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
2736         of asserting return chrec_dont_know.
2738 2016-02-01  Martin Liska  <mliska@suse.cz>
2740         * mem-stats-traits.h: Add copyright header.
2741         * mem-stats.h: Likewise.
2743 2016-02-01  Richard Biener  <rguenther@suse.de>
2745         PR tree-optimization/69579
2746         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
2747         Do not propagate through abnormal PHI results.
2749 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
2751         * postreload.c (reload_cse_simplify): Remove dead code.
2753 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2755         PR rtl-optimization/69570
2756         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
2757         if there is more than one set, not if there is a single set.
2759 2016-02-01  Richard Henderson  <rth@redhat.com>
2761         PR rtl-opt/69535
2762         * combine.c (make_compound_operation): When looking through a
2763         subreg, make sure to re-extend to the width of the outer mode.
2765 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
2767         PR tree-optimization/69546
2768         * wide-int.cc (wi::divmod_internal): For unsigned division
2769         where both operands fit into uhwi, if o1 is 1 and o0 has
2770         msb set, if divident_prec is larger than bits per hwi,
2771         clear another quotient word and return 2 instead of 1.
2772         Similarly for remainder with msb in HWI set, if dividend_prec
2773         is larger than bits per hwi.
2775 2016-01-29  Martin Jambor  <mjambor@suse.cz>
2777         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
2778         Use short lowercase names.
2779         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
2780         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
2781         acq_rel one.  Protect warning agains segfaults if
2782         get_memory_order_name returns NULL.
2783         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
2784         with release semantics.  Do not warn if get_memory_order already did.
2785         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
2786         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
2787         if get_memory_order already did.
2789 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
2791         * doc/install.texi: Document that isl-0.16 is supported.
2793 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
2795         PR target/69299
2796         * config/i386/constraints.md (Bm): Describe as special memory
2797         constraint.
2798         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
2799         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2800         * genpreds.c (struct constraint_data): Add is_special_memory.
2801         (have_special_memory_constraints, special_memory_start): New
2802         static vars.
2803         (special_memory_end): Ditto.
2804         (add_constraint): Add new arg is_special_memory.  Add code to
2805         process its true value.  Update have_special_memory_constraints.
2806         (process_define_constraint): Pass the new arg.
2807         (process_define_register_constraint): Ditto.
2808         (choose_enum_order): Process special memory.
2809         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
2810         function insn_extra_special_memory_constraint.
2811         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2812         * gensupport.c (process_rtx): Process
2813         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2814         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
2815         * ira-lives.c (single_reg_class): Use
2816         insn_extra_special_memory_constraint.
2817         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
2818         * lra-constraints.c (process_alt_operands): Ditto.
2819         (curr_insn_transform): Use insn_extra_special_memory_constraint.
2820         * recog.c (asm_operand_ok, preprocess_constraints): Process
2821         CT_SPECIAL_MEMORY.
2822         * reload.c (find_reloads): Ditto.
2823         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
2824         * stmt.c (parse_input_constraint): Use
2825         insn_extra_special_memory_constraint.
2827 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2829         PR target/69530
2830         * lra-splill.c (lra_final_code_change): Revert r229087 by
2831         removing all sub-registers.
2833 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
2835         PR target/65604
2836         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
2838 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
2840         PR target/69551
2841         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
2842         SSE1, copy target into the temporary reg first before recursing
2843         on it.
2845 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2847         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
2848         with vm.
2850 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
2852         * ginclude/stdarg.h: Test __cplusplus instead of
2853         __GXX_EXPERIMENTAL_CXX0X__.
2855 2016-01-29  Richard Biener  <rguenther@suse.de>
2857         PR tree-optimization/69547
2858         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2859         Do not mark clobbers necessary.
2860         (mark_all_reaching_defs_necessary_1): Likewise.
2862 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2864         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
2865         declaration name with %qs and print it in both error messages.
2866         Also fix indentation.
2868 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2870         PR other/69006
2871         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
2872         trailing blank line from error message.
2874 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
2876         PR c++/69462
2877         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
2878         for C++-11.
2880 2016-01-29  Richard Biener  <rguenther@suse.de>
2882         PR middle-end/69537
2883         * match.pd: Allow all integral types when simplifying a
2884         widening or sign-changing conversion.
2886 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2888         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
2889         back to setting codegen_error to fail codegen.
2891 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
2893         PR target/69459
2894         * config/i386/constraints.md (C): Only accept constant zero operand.
2895         (BC): New constraint.
2896         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
2897         instead of C constraint.
2898         * doc/md.texi (Machine Constraints): Update description
2899         of C constraint.
2901 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
2903         PR target/68400
2904         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
2906 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
2908         PR middle-end/69542
2909         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
2910         non-debug insns.
2912 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
2914         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
2915         branches if using guessed profile.
2917 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
2919         * graphite-optimize-isl.c (optimize_isl): Fix dump.
2921 2016-01-28  Richard Henderson  <rth@redhat.com>
2923         PR target/69305
2924         * config/aarch64/aarch64-modes.def (CC_Cmode): New
2925         * config/aarch64/aarch64-protos.h: Update.
2926         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
2927         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
2928         (aarch64_get_condition_code_1): Handle CC_Cmode.
2929         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
2930         (*add<mode>3_compareC_cconly_imm): New.
2931         (*add<mode>3_compareC_cconly): New.
2932         (*add<mode>3_compareC_imm): New.
2933         (add<mode>3_compareC): New.
2934         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
2935         to be first.  Use aarch64_carry_operation.
2936         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
2937         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
2938         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
2939         (subti3): Use subdi3_compare1.
2940         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
2941         (sub<mode>3_compare1): New.
2942         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
2943         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
2944         (*subsi3_carryin_uxtw): Likewise.
2945         (*ngc<mode>, *ngcsi_uxtw): Likewise.
2946         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
2947         * config/aarch64/iterators.md (DWI): New.
2948         * config/aarch64/predicates.md (aarch64_carry_operation): New.
2949         (aarch64_borrow_operation): New.
2951 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2953         * graphite-optimize-isl.c (optimize_isl): Print a different debug
2954         message when isl does not return a valid schedule.
2956 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2958         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2959         Remove comments from class declarations: they are already in the code
2960         close by the defs.
2962 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2964         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
2965         codegen_error_p.
2966         (ternary_op_to_tree): Same.
2967         (unary_op_to_tree): Same.
2968         (nary_op_to_tree): Same.
2969         (gcc_expression_from_isl_expr_op): Same.
2970         (gcc_expression_from_isl_expression): Same.
2971         (graphite_create_new_loop): Same.
2972         (graphite_create_new_loop_guard): Same.
2973         (build_iv_mapping): Same.
2974         (graphite_create_new_guard): Same.
2975         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
2976         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
2978 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2980         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
2981         instead of setting codegen_error to fail codegen.
2983 2016-01-28  Jason Merrill  <jason@redhat.com>
2985         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
2987 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
2989         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2990         Remove CONST_INT_P check in CCMP cost calculation.
2992 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
2994         * config/aarch64/aarch64.c (generic_vector_cost):
2995         Set vec_permute_cost.
2996         (cortexa57_vector_cost): Likewise.
2997         (exynosm1_vector_cost): Likewise.
2998         (xgene1_vector_cost): Likewise.
2999         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
3000         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
3001         Add vec_permute_cost entry.
3003 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3005         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
3006         immediate as %1.
3007         (add<mode>3_compare0): Likewise.
3008         (addsi3_compare0_uxtw): Likewise.
3009         (add<mode>3nr_compare0): Likewise.
3010         (compare_neg<mode>): Likewise.
3011         (<optab><mode>3): Likewise.
3013 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
3015         * tree-vect-stmts.c (vectorizable_comparison): Add
3016         NULL check for vectype.
3018 2016-01-28  Richard Biener  <rguenther@suse.de>
3020         PR tree-optimization/69466
3021         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3022         Account for PHIs we couldn't duplicate.
3024 2016-01-28  Martin Liska  <mliska@suse.cz>
3026         PR pch/68758
3027         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
3028         instead of ENABLE_VALGRIND_CHECKING.
3030 2016-01-27  Richard Henderson  <rth@redhat.com>
3032         PR rtl-opt/69447
3033         * lra-remat.c (subreg_regs): New.
3034         (dump_candidates_and_remat_bb_data): Dump it.
3035         (operand_to_remat): Reject if operand in subreg_regs.
3036         (set_bb_regs): Collect subreg_regs.
3037         (lra_remat): Init and free subreg_regs.  Compute
3038         calculate_local_reg_remat_bb_data before create_cands.
3040 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
3042         PR target/68986
3043         * config/i386/i386.c (ix86_update_stack_boundary): Don't
3044         change stack_alignment_needed for __tls_get_addr call.
3046 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
3048         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
3050 2016-01-27  Jeff Law  <law@redhat.com>
3052         PR tree-optimization/68398
3053         PR tree-optimization/69196
3054         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
3055         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
3056         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3057         Only count PHIs in the last block in the path.  The others will
3058         const/copy propagate away.  Add heuristic to allow more irreducible
3059         subloops to be created when it is likely profitable to do so.
3061         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3062         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
3063         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
3065 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3067         PR lto/69254
3068         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
3069         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
3070         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
3071         * tree-streamer-in.c: Include asan.h.
3072         (streamer_get_builtin_tree): For builtins in sanitizer
3073         range call initialize_sanitizer_builtins and retry.
3075 2016-01-27  Ian Lance Taylor  <iant@google.com>
3077         * common.opt (fkeep-gc-roots-live): New undocumented option.
3078         * tree-ssa-loop-ivopts.c (add_candidate_1): If
3079         -fkeep-gc-roots-live, skip pointers.
3080         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
3081         NULL.
3083 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
3085         PR target/69512
3086         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
3087         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
3089 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
3091         PR target/68380
3092         * configure.ac: NetBSD provides SSP in its C library.
3093         * configure: Updated.
3095 2016-01-27  Richard Biener  <rguenther@suse.de>
3097         PR tree-optimization/69166
3098         * tree-vect-loop.c (vect_is_simple_reduction): Always check
3099         reduction code for commutativity / associativity.
3101 2016-01-27  Martin Jambor  <mjambor@suse.cz>
3103         PR tree-optimization/69355
3104         * tree-sra.c (analyze_access_subtree): Correct hole detection when
3105         total_scalarization fails.
3107 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
3109         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
3110         power9.
3112 2016-01-27  Christian Bruel  <christian.bruel@st.com>
3114         PR target/69245
3115         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
3116         Move arm_reset_previous_fndecl and set_target_option_current_node in
3117         the conditional part.  Call save_restore_target_globals.
3118         * config/arm/arm.c (arm_set_current_function):
3119         Refactor to better support #pragma target and attribute mix.
3120         Call save_restore_target_globals.
3121         * config/arm/arm-protos.h (save_restore_target_globals): New function.
3123 2016-01-27  Martin Liska  <mliska@suse.cz>
3125         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
3126         reference for an HSA kernel and its host function.
3128 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3130         PR tree-optimization/69399
3131         * wide-int.h (wi::lrshift): For larger precisions, only
3132         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
3134 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
3136         * config/arc/predicates.md (proper_comparison_operator): Reject
3137         constant-constant comparison.
3139 2016-01-26  Tom de Vries  <tom@codesourcery.com>
3141         PR tree-optimization/69110
3142         * tree-data-ref.c (initialize_data_dependence_relation): Handle
3143         DR_NUM_DIMENSIONS == 0.
3145 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3146             Sebastian Pop  <s.pop@samsung.com>
3148         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
3149         isl_ast_op_cond and isl_ast_op_select.
3150         (gcc_expression_from_isl_expr_op): Same.
3152 2016-01-26  Jason Merrill  <jason@redhat.com>
3154         PR c++/68782
3155         * tree.c (recompute_constructor_flags): Split out from
3156         build_constructor.
3157         (verify_constructor_flags): New.
3158         * tree.h: Declare them.
3160 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
3162         PR rtl-optimization/69217
3163         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
3164         are no TYPE_FIELDS set for the record type.
3166 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3168         PR target/68662
3169         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
3170         toc_label_name unconditionally.
3171         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
3172         SYMBOL_REF string.  Use toc_label_name instead of constructing
3173         LCTOC1.
3174         (rs6000_elf_declare_function_name): Use toc_label_name instead of
3175         constructing LCTOC1.
3177 2016-01-26  Martin Sebor  <msebor@redhat.com>
3179         PR other/69477
3180         * doc/extend.texi (Common Type Attributes): Move text that talks about
3181         attribute packed from attribute aligned to the section discussing
3182         the former attribute for clarity.
3184 2016-01-26  Richard Henderson  <rth@redhat.com>
3186         PR middle-end/60908
3187         * trans-mem.c (tm_region_init): Mark entry block as visited.
3189 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
3191         PR other/69006
3192         * diagnostic-show-locus.c (layout::print_source_line): Replace
3193         call to pp_newline with call to layout::print_newline.
3194         (layout::print_annotation_line): Likewise.
3195         (layout::move_to_column): Likewise.
3196         (layout::print_any_fixits): After printing any fixits, print a
3197         trailing newline, if necessary.
3198         (layout::print_newline): New method, resetting any colorization
3199         before a newline.
3200         (diagnostic_show_locus): Move the pp_newline to before the
3201         early bailout.  Remove dummy block enclosing the layout instance.
3202         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
3203         of pp_newline_and_flush with pp_flush.
3204         (diagnostic_append_note): Delete use of pp_newline.
3205         (diagnostic_append_note_at_rich_loc): Delete.
3206         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
3207         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
3208         when newline characters are added to the buffer.
3210 2016-01-26  Michael Matz  <matz@suse.de>
3212         * configure.ac (ac_cv_std_swap_in_utility): New test.
3213         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
3214         * configure: Regenerate.
3215         * config.in: Regenerate.
3217 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
3219         * config/arc/arc.md (cstoresi4): Force operand into register.
3220         (arcset<code>): Fix predicate.
3221         (arcsetltu): Likewise.
3222         (arcsetgeu): Likewise.
3223         (arcsethi): Likewise.
3224         (arcsetls): Likewise.
3226 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3228         PR tree-optimization/69483
3229         * gimple-fold.c (canonicalize_constructor_val): Return NULL
3230         if base has error_mark_node type.
3232 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
3234         PR target/68620
3235         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
3236         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
3237         New helper macros.
3238         (vget_lane_f16): Handle big-endian.
3239         (vgetq_lane_f16): Likewise.
3240         (vset_lane_f16): Likewise.
3241         (vsetq_lane_f16): Likewise.
3242         * config/arm/iterators.md (VQXMOV): Add V8HF.
3243         (VDQ): Add V4HF and V8HF.
3244         (V_reg): Handle V4HF and V8HF.
3245         (Is_float_mode): Likewise.
3246         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
3247         neon_vdup_nv8hf): New patterns.
3248         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
3249         Use VD_LANE iterator.
3250         (neon_vld1_dup<mode>): Use VQ2 iterator.
3252 2016-01-26  Nathan Sidwell  <nathan@acm.org>
3254         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
3255         (set_oacc_fn_attrib): Add IS_KERNEL arg.
3256         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
3257         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
3258         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
3259         (oacc_validate_dims): Add LEVEL arg, don't return level.
3260         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
3261         oacc_validate_dims.
3262         (execute_oacc_device_lower): Adjust, add more dump output.
3263         * tree-ssa-loop.c (gate_oacc_kernels): Use
3264         oacc_fn_attrib_kernels_p.
3265         * tree-parloops.c (create_parallel_loop): Adjust
3266         set_oacc_fn_attrib call.
3268 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3270         PR lto/69254
3271         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
3272         (append_compiler_options): Handle -fcilkplus.
3273         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
3275 2016-01-26  Nick Clifton  <nickc@redhat.com>
3277         PR target/66655
3278         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
3279         been marked as DECL_ONE_ONLY but we do not the means to make it
3280         so, then do not allow it to bind locally.
3282 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3284         PR lto/69254
3285         * opts.h (parse_sanitizer_options): New prototype.
3286         * opts.c (sanitizer_opts): New array.
3287         (parse_sanitizer_options): New function.
3288         (common_handle_option): Use parse_sanitizer_options.
3290 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3292         PR target/68986
3293         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
3294         alignment adjustment to ...
3295         (ix86_update_stack_boundary): Here.  Don't over-align stack for
3296         __tls_get_addr.
3297         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
3298         if __tls_get_addr is called.
3300 2016-01-26  Christian Bruel  <christian.bruel@st.com>
3302         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
3304 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
3306         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
3308 2016-01-26  Richard Biener  <rguenther@suse.de>
3310         PR middle-end/69467
3311         * match.pd: Guard X * CST CMP 0 pattern with single_use.
3313 2016-01-26  Richard Biener  <rguenther@suse.de>
3315         PR tree-optimization/69452
3316         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
3317         (move_computations_dom_walker::before_dom_children): Rename
3318         to ...
3319         (move_computations_worker): This.
3320         (move_computations): Perform an RPO rather than a DOM walk.
3322 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3324         PR target/69442
3325         * combine.c (combine_instructions): For REG_EQUAL note with
3326         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
3327         to the underlying register.
3328         * doc/rtl.texi (REG_EQUAL): Document the behavior of
3329         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
3331 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
3333         PR target/67896
3334         * config/aarch64/aarch64-builtins.c
3335         (aarch64_init_simd_builtin_types): Do not set structural
3336         equality to __Poly{8,16,64,128}_t types.
3338 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
3340         PR tree-optimization/69400
3341         * wide-int.cc (wi_pack): Take the precision as argument and
3342         perform canonicalization here rather than in the callers.
3343         Use the main loop to handle all full-width HWIs.  Add a
3344         zero HWI if in_len isn't a full result.
3345         (wi::divmod_internal): Update accordingly.
3346         (wi::mul_internal): Likewise.  Simplify.
3348 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
3349             Sebastian Pop  <s.pop@samsung.com>
3351         * graphite-poly.c (apply_poly_transforms): Simplify.
3352         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
3353         (print_isl_map): Same.
3354         (print_isl_union_map): Same.
3355         (print_isl_schedule): New.
3356         (debug_isl_schedule): New.
3357         * graphite-dependences.c (scop_get_reads): Do not call
3358         isl_union_map_add_map that is undocumented isl functionality.
3359         (scop_get_must_writes): Same.
3360         (scop_get_may_writes): Same.
3361         (scop_get_original_schedule): Remove.
3362         (scop_get_dependences): Do not call isl_union_map_compute_flow that
3363         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
3364         (compute_deps): Remove.
3365         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
3366         (debug_schedule_ast): New.
3367         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
3368         set_separate_option.
3369         (graphite_regenerate_ast_isl): Add dump.
3370         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
3371         from scop->transformed_schedule.
3372         (graphite_regenerate_ast_isl): Add more dump.
3373         * graphite-optimize-isl.c (optimize_isl): Set
3374         scop->transformed_schedule.  Check whether schedules are equal.
3375         (apply_poly_transforms): Move here.
3376         * graphite-poly.c (apply_poly_transforms): ... from here.
3377         (free_poly_bb): Static.
3378         (free_scop): Static.
3379         (pbb_number_of_iterations_at_time): Remove.
3380         (print_isl_ast): New.
3381         (debug_isl_ast): New.
3382         (debug_scop_pbb): New.
3383         * graphite-scop-detection.c (print_edge): Move.
3384         (print_sese): Move.
3385         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3386         (build_scop_scattering): Remove.
3387         (create_pw_aff_from_tree): Assert instead of bailing out.
3388         (add_condition_to_pbb): Remove unused code, do not fail.
3389         (add_conditions_to_domain): Same.
3390         (add_conditions_to_constraints): Remove.
3391         (build_scop_context): New.
3392         (add_iter_domain_dimension): New.
3393         (build_iteration_domains): Initialize pbb->iterators.
3394         Call add_conditions_to_domain.
3395         (nested_in): New.
3396         (loop_at): New.
3397         (index_outermost_in_loop): New.
3398         (index_pbb_in_loop): New.
3399         (outermost_pbb_in): New.
3400         (add_in_sequence): New.
3401         (add_outer_projection): New.
3402         (outer_projection_mupa): New.
3403         (add_loop_schedule): New.
3404         (build_schedule_pbb): New.
3405         (build_schedule_loop): New.
3406         (embed_in_surrounding_loops): New.
3407         (build_schedule_loop_nest): New.
3408         (build_original_schedule): New.
3409         (build_poly_scop): Call build_original_schedule.
3410         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
3411         (free_poly_dr): Remove.
3412         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
3413         (free_poly_bb): Remove.
3414         (debug_loop_vec): Remove.
3415         (print_isl_ast): Declare.
3416         (debug_isl_ast): Declare.
3417         (scop_do_interchange): Remove.
3418         (scop_do_strip_mine): Remove.
3419         (scop_do_block): Remove.
3420         (flatten_all_loops): Remove.
3421         (optimize_isl): Remove.
3422         (pbb_number_of_iterations_at_time): Remove.
3423         (debug_scop_pbb): Declare.
3424         (print_schedule_ast): Declare.
3425         (debug_schedule_ast): Declare.
3426         (struct scop): Remove schedule.  Add original_schedule,
3427         transformed_schedule.
3428         (free_gimple_poly_bb): Remove.
3429         (print_generated_program): Remove.
3430         (debug_generated_program): Remove.
3431         (unify_scattering_dimensions): Remove.
3432         * sese.c (print_edge): ... here.
3433         (print_sese): ... here.
3434         (debug_edge): ... here.
3435         (debug_sese): ... here.
3436         * sese.h (print_edge): Declare.
3437         (print_sese): Declare.
3438         (dump_edge): Declare.
3439         (dump_sese): Declare.
3441 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
3442             Sebastian Pop  <s.pop@samsung.com>
3444         * Makefile.in: Set ISLVER in site.exp.
3446 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
3448         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
3449         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
3450         through DECL_VALUE_EXPR for expansion.
3452 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3454         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
3455         the frame info after reload completed.
3457 2016-01-25  Jeff Law  <law@redhat.com>
3459         PR tree-optimization/69196
3460         PR tree-optimization/68398
3461         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
3462         tree-ssa-threadupdate.c.
3463         (determine_bb_domination_status): Prototype
3464         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
3465         (determine_bb_domination_status): No longer static.
3466         (valid_jump_thread_path): Remove code to detect characteristics
3467         of the jump thread path not associated with correctness.
3468         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
3469         Correct test for thread path length.  Count PHIs for real operands as
3470         statements that need to be copied.  Do not count ASSERT_EXPRs.
3471         Look at all the blocks in the thread path.  Compute and selectively
3472         filter thread paths based on threading through the latch, threading
3473         a multiway branch or crossing a multiway branch.
3475 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3477         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
3478         decl with __attribute__ ((unused)) annotation.
3480 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
3482         PR target/69421
3483         * tree-vect-stmts.c (vectorizable_condition): Check vectype
3484         of operands is compatible with a statement vectype.
3486 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
3488         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
3489         improve wording for mixed storage order support.
3491 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
3493         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
3494         (vcvt_u64_f64): Likewise.
3495         (vcvta_s64_f64): Likewise.
3496         (vcvta_u64_f64): Likewise.
3497         (vcvtm_s64_f64): Likewise.
3498         (vcvtm_u64_f64): Likewise.
3499         (vcvtn_s64_f64): Likewise.
3500         (vcvtn_u64_f64): Likewise.
3501         (vcvtp_s64_f64): Likewise.
3502         (vcvtp_u64_f64): Likewise.
3504 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
3506         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
3507         (arc_init): Check validity mll64 option.
3508         (arc_save_restore): Use double load/store instruction.
3509         (arc_expand_movmem): Likewise.
3510         (arc_split_move): Don't split if we have double load/store
3511         instructions. Returns a boolean.
3512         (arc_process_double_reg_moves): Change function to return boolean
3513         instead of a sequence of instructions.
3514         (arc_dwarf_register_span): New function.
3515         * config/arc/arc-protos.h (arc_split_move): Change prototype.
3516         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
3517         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
3518         (*movdf_insn): Likewise.
3519         * config/arc/arc.opt (mll64): New option.
3520         * config/arc/predicates.md (even_register_operand): New predicate.
3521         * doc/invoke.texi (ARC Options): Add mll64 documentation.
3523 2016-01-25  Richard Biener  <rguenther@suse.de>
3525         PR lto/69393
3526         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
3527         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
3528         DECL_NAMELESS.
3529         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
3531 2016-01-25  Richard Biener  <rguenther@suse.de>
3533         PR tree-optimization/69376
3534         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
3535         flag.
3536         (VN_INFO_ANTI_RANGE_P): New inline.
3537         (VN_INFO_RANGE_TYPE): Likewise.
3538         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
3539         SSA_NAME_ANTI_RANGE_P.
3540         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
3541         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3542         Properly query VN_INFO_RANGE_TYPE.
3544 2016-01-25  Nick Clifton  <nickc@redhat.com>
3546         PR target/66655
3547         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
3549 2016-01-23  Tom de Vries  <tom@codesourcery.com>
3551         PR tree-optimization/69426
3552         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
3553         removed clobber.
3555 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
3557         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
3558         "the the" with "the" in the comments.
3559         * ipa-devirt.c (build_type_inheritance_graph,
3560         update_type_inheritance_graph): Likewise.
3561         * tree.c (build_function_type_list_1): Likewise.
3562         * cfgloopmanip.c (scale_loop_profile): Likewise.
3563         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
3564         * gimple-ssa-split-paths.c
3565         (find_block_to_duplicate_for_splitting_paths): Likewise.
3566         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
3567         * expr.c (convert_move): Likewise.
3568         * var-tracking.c (vt_stack_adjustments): Likewise.
3569         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3570         * tree-vrp.c (test_for_singularity): Likewise.
3572         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
3573         directly instead of building a temporary tree.
3575         PR bootstrap/69434
3576         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
3577         remove <algorithm> include.
3579 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
3581         PR target/69432
3582         * config/i386/i386.c: Include dojump.h.
3583         (expand_small_movmem_or_setmem,
3584         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
3585         fixes.
3586         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
3587         if dynamic_check != -1.
3589 2016-01-21  Jeff Law  <law@redhat.com>
3591         PR middle-end/69347
3592         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
3593         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
3594         into dominated_by_p.
3595         (cprop_into_successor_phis): Avoid unnecessary tests.
3597 2016-01-22  Richard Henderson  <rth@redhat.com>
3599         PR target/69416
3600         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
3601         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
3603 2016-01-22  Michael Matz  <matz@suse.de>
3605         * system.h (string, algorithm): Include only conditionally.
3606         (new): Include always under C++.
3607         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
3608         * final.c (toplevel): Ditto.
3609         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
3610         * genconditions.c (write_header): Make gencondmd.c define
3611         INCLUDE_STRING.
3612         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
3614         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
3615         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
3617 2016-01-22  Christian Bruel  <christian.bruel@st.com>
3619         PR target/68674
3620         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
3622 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3624         PR target/69403
3625         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
3626         define_insn_and_split.  Ensure operands[1] and operands[0] do not
3627         get assigned the same register.
3629 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3631         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
3633 2016-01-22  Christian Bruel  <christian.bruel@st.com>
3635         * config/arm/arm-c.c (arm_pragma_target_parse):
3636         Remove warn_builtin_macro_redefined overwrite.
3638 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3640         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
3641         flag_non_call_exceptions compatibility.
3643 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
3645         PR debug/66668
3646         * dwarf2out.c (add_child_die_after): New function.
3647         (dwarf_qual_info_t): New type.
3648         (dwarf_qual_info): New variable.
3649         (qualified_die_p): New function.
3650         (modified_type_die): For -fdebug-types-section, ensure
3651         canonical order of qualifiers.  Put qualified DIEs adjacent
3652         to the corresponding non-qualified type DIE and search there
3653         for existing qualified DIEs.
3655 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3657         * doc/extend.texi (scalar_storage_order type attribute): Document
3658         restriction on type punning and aliasing, and remove future tense.
3660 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
3662         PR target/69252
3663         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
3664         first stage.
3666 2016-01-21  Jeff Law  <law@redhat.com>
3668         PR middle-end/69347
3669         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
3670         useless call to record_temporary_equivalences.
3671         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
3672         allocate 10 slots in the bb_path vector and let it grow as needed.
3673         (fsm_find_control_statement_thread_paths): Similarly for the next_path
3674         vector.
3676 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
3678         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
3679         Detangle.
3680         * configure: Regenerate.
3682 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
3684         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
3685         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
3687 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
3689         PR middle-end/66178
3690         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
3691         drop EXPAND_INITIALIZER.
3692         * rtl.h (contains_symbolic_reference_p): Declare.
3693         * rtlanal.c (contains_symbolic_reference_p): New function.
3694         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
3695         a subtraction into a NOT if symbolic constants are involved.
3697 2016-01-21  Anton Blanchard  <anton@samba.org>
3698             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3700         PR target/63354
3701         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
3702         #define.
3703         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
3704         function.
3706 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
3708         * config/microblaze/microblaze.c
3709         (get_branch_target): New.
3710         (insert_wic_for_ilb_runout): New.
3711         (insert_wic): New.
3712         (microblaze_machine_dependent_reorg): New.
3713         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
3714         * config/microblaze/microblaze.md
3715         (UNSPEC_IPREFETCH): Define.
3716         (iprefetch): New pattern
3717         * config/microblaze/microblaze.opt
3718         (mxl-prefetch): New flag.
3720 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
3722         * config/microblaze/microblaze.h
3723         (FIXED_REGISTERS): Update in macro.
3724         (CALL_USED_REGISTERS): Update in macro.
3726 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
3728         PR rtl-optimization/68920
3729         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
3730         moves.
3732 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
3734         PR rtl-optimization/68990
3735         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
3736         pseudo instead of inheritance ones.
3738 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3739             Nick Clifton  <nickc@redhat.com>
3741         PR target/69129
3742         PR target/69012
3743         * config/mips/mips.c (mips_compute_frame_info): Initialise
3744         args_size and hard_frame_pointer_offset fields of the frame
3745         structure before calling mips_global_pointer.
3747 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
3749         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
3750         label reference.
3751         * configure: Regenerate.
3753 2016-01-21  Richard Biener  <rguenther@suse.de>
3755         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
3757 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
3759         * config/s390/s390.c (s390_asm_declare_function_size): Add code
3760         to actually emit the .size directive.
3762 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
3763              Jakub Jelinek  <jakub@redhat.com>
3765         PR target/69187
3766         PR target/65624
3767         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
3768         args array size by one to avoid buffer overflow.
3770 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
3772         * config/s390/s390.md (pool_section_start): Use switch_to_section
3773         to select proper read-only data section instead of hardcoding
3774         .rodata.
3775         (pool_section_end): Use switch_to_section to match the above.
3777 2016-01-21  Richard Biener  <rguenther@suse.de>
3779         PR tree-optimization/69378
3780         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
3781         (set_ssa_val_to): Use it for dominance checks taking into
3782         account not executable edges.
3784 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
3786         PR c++/69355
3787         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
3788         for bitsize instead of GET_MODE_PRECISION (mode).
3790 2016-01-20  Martin Sebor  <msebor@redhat.com>
3792         PR c/52291
3793         * extend.texi (__sync Builtins): Clarify the semantics of
3794         __sync_fetch_and_OP built-ins on pointers.
3795         (__atomic Builtins): Same.
3797 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3798             Sebastian Pop  <s.pop@samsung.com>
3800         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
3801         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
3802         (is_valid_rename): Same.
3803         (translate_isl_ast_to_gimple::get_rename): Same.
3804         (translate_isl_ast_to_gimple::rename_all_uses): Same.
3805         (translate_isl_ast_to_gimple::rename_uses): Same.
3806         (get_new_name): Check for close_phi nodes.
3807         (copy_loop_phi_args): Use phi_node_kind.
3808         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3809         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
3811 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3812             Sebastian Pop  <s.pop@samsung.com>
3814         Revert commit r229783.
3815         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3816         Remove use of parameter_rename_map.
3817         (copy_def): Remove.
3818         (copy_internal_parameters): Remove.
3819         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3820         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3821         (free_sese_info): Do not free parameter_rename_map.
3822         (set_rename): Do not use parameter_rename_map.
3823         (rename_uses): Update call to set_rename.
3824         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3825         * sese.h (parameter_rename_map_t): Remove.
3826         (struct sese_info_t): Remove field parameter_rename_map.
3828 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3829             Sebastian Pop  <s.pop@samsung.com>
3831         * graphite-isl-ast-to-gimple.c: Fix comment.
3832         * graphite-scop-detection.c (defined_in_loop_p): New.
3833         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
3834         names defined in loop.
3836 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3837             Sebastian Pop  <s.pop@samsung.com>
3839         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
3840         Discard unstructured if-then-else regions.
3842 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3843             Sebastian Pop  <s.pop@samsung.com>
3845         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
3846         (cleanup_loop_iter_dom): Remove.
3847         (build_loop_iteration_domains): Remove.
3848         (build_scop_context): Remove.
3849         (build_scop_iteration_domain): Remove.
3850         (add_loop_constraints): New.
3851         (build_iteration_domains): New.
3852         (build_poly_scop): Call build_iteration_domains.
3854 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3855             Sebastian Pop  <s.pop@samsung.com>
3857         * graphite-scop-detection.c
3858         (scop_detection::harmful_loop_in_region): Free dom and loops.
3859         (scop_detection::loop_body_is_valid_scop): Free bbs.
3861 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3862             Sebastian Pop  <s.pop@samsung.com>
3864         * graphite-scop-detection.c (record_loop_in_sese): New.
3865         (gather_bbs::before_dom_children): Call record_loop_in_sese.
3866         (build_scops): Remove call to build_sese_loop_nests.
3867         * sese.c (sese_record_loop): Remove.
3868         (build_sese_loop_nests): Remove.
3869         (new_sese_info): Remove region->loops.
3870         (free_sese_info): Same.
3871         * sese.h (sese_contains_loop): Same.
3872         (build_sese_loop_nests): Remove.
3873         (sese_contains_loop): Remove.
3875 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3876             Sebastian Pop  <s.pop@samsung.com>
3878         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
3879         loop_is_valid_in_scop.
3880         (scop_detection::harmful_stmt_in_region): Renamed
3881         harmful_loop_in_region.
3882         Call loop_is_valid_in_scop.
3884 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3885             Sebastian Pop  <s.pop@samsung.com>
3887         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
3888         isl_ast_node_mark.
3890 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3891             Sebastian Pop  <s.pop@samsung.com>
3893         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
3894         * graphite.h (struct poly_bb): Remove field is_reduction.
3895         (PBB_IS_REDUCTION): Remove.
3897 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3898             Sebastian Pop  <s.pop@samsung.com>
3900         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
3901         (add_pdr_constraints): Same.
3902         (scop_get_reads): Same.
3903         (scop_get_must_writes): Same.
3904         (scop_get_may_writes): Same.
3905         (scop_get_original_schedule): Same.
3906         (extend_schedule): Same.
3907         (apply_schedule_on_deps): Same.
3908         (carries_deps): Same.
3909         (compute_deps): Same.
3910         (scop_get_dependences): Same.
3911         * graphite-isl-ast-to-gimple.c
3912         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
3913         * graphite-optimize-isl.c (get_schedule_for_band): Same.
3914         (get_schedule_for_band_list): Same.
3915         (get_schedule_map): Same.
3916         (apply_schedule_map_to_scop): Same.
3917         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3918         (build_loop_iteration_domains): Same.
3919         (add_condition_to_pbb): Same.
3920         (add_param_constraints): Same.
3921         (pdr_add_memory_accesses): Same.
3922         (pdr_add_data_dimensions): Same.
3924 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
3926         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
3927         requirements.
3929 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
3931         * common.opt (feliminate-dwarf2-dups): Replace references to
3932         "DWARF 2" with just "DWARF".
3933         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
3934         * doc/extend.texi: Likewise.
3935         * doc/cpp.texi: Likewise.
3936         * doc/invoke.texi: Likewise.
3937         (Option Summary): Add -gdwarf to list of Debugging Options.
3938         (Debugging Options): Document -gdwarf.
3939         * doc/contrib.texi: Spell "DWARF" like that.
3941 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
3943         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
3944         warning.  Fix up formatting.
3946         PR middle-end/67653
3947         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
3948         attempt to mark memory input operand addressable and
3949         call prepare_gimple_addressable in that case.  Don't adjust
3950         input_location for diagnostics, use error_at instead.
3952 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
3954         * config/rs6000/ppc-auxv.h: New file.
3955         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
3956         (cpu_is): Likewise.
3957         (cpu_supports): Likewise.
3958         * config/rs6000/rs6000.c: include "ppc-auxv.h".
3959         (cpu_is_info): New variable.
3960         (cpu_supports_info): Likewise.
3961         (tcb_verification_symbol): Likewise.
3962         (cpu_builtin_p): Likewise.
3963         (cpu_expand_builtin): New function.
3964         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
3965         (rs6000_init_builtins): Likewise.
3966         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
3967         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
3968         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
3969         * configure: Regenerate.
3970         * config.in: Likewise.
3971         * doc/extend.texi (PowerPC Built-in Functions): Document
3972         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
3974 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
3976         PR target/68609
3977         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
3978         domain check.
3979         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
3980         for V4SFmode.
3982 2016-01-20  Richard Henderson  <rth@redhat.com>
3984         PR bootstrap/69343
3985         PR bootstrap/69339
3986         PR tree-opt/68964
3987         Revert:
3988         * tree.c (tm_define_builtin): New.
3989         (find_tm_vector_type): New.
3990         (build_tm_vector_builtins): New.
3991         (build_common_builtin_nodes): Call it.
3993 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
3995         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
3996         (arm_fp_ok): Likewise.
3997         (arm_fp): Likewise.
3998         (arm_crypto): Likewise.
4000 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
4001             Richard Biener  <rguenther@suse.de>
4003         PR tree-optimization/69328
4004         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
4005         vectors have same number of elements.
4006         (vectorizable_condition): Fix masked version recognition.
4008 2016-01-20  Richard Biener  <rguenther@suse.de>
4010         PR tree-optimization/69345
4011         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
4012         (VN_INFO_PTR_INFO): Likewise.
4013         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
4014         info when it is equal between non-dominating SSA names.
4015         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4016         Make sure to look at original SSA infos.
4018 2016-01-20  Jeff Law  <law@redhat.com>
4020         PR target/25114
4021         * config/m68k/predicates.md (pow2_m1_operand): New predicate
4022         extracted from ...
4023         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
4024         (pc_or_label_operand): New predicate.
4025         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
4026         tests for small integers that are 2^n - 1.
4028 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
4030         * doc/invoke.texi (Options Summary): Add '.' after @xref.
4032 2016-01-19  Jeff Law  <law@redhat.com>
4034         PR middle-end/69347
4035         * tree-ssa-threadbackwards.c
4036         (fsm_find_control_statement_thread_paths): Do not try to lookup
4037         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
4039 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4041         * doc/lto.texi: Remove text that says only Gold has linker plugin
4042         support.
4044 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
4046         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
4047         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
4048         the DIE accordingly.
4049         (modified_type_die): Add REVERSE parameter and pass it recursively,
4050         as well as to base_type_die.  Adjust presence check accordingly.
4051         (base_type_for_mode): Adjust call to modified_type_die.
4052         (add_type_attribute): Add REVERSE parameter and pass it to
4053         modified_type_die.
4054         (generic_parameter_die): Adjust call to add_type_attribute.
4055         (add_scalar_info): Likewise.
4056         (add_subscript_info): Likewise.
4057         (gen_array_type_die): Likewise.
4058         (gen_descr_array_type_die): Likewise.
4059         (gen_entry_point_die): Likewise.
4060         (gen_enumeration_type_die): Likewise.
4061         (gen_formal_parameter_die): Likewise.
4062         (gen_subprogram_die): Likewise.
4063         (gen_variable_die ): Likewise.
4064         (gen_const_die): Likewise.
4065         (gen_field_die): Likewise.
4066         (gen_pointer_type_die): Likewise.
4067         (gen_reference_type_die): Likewise.
4068         (gen_ptr_to_mbr_type_die): Likewise.
4069         (gen_inheritance_die): Likewise.
4070         (gen_subroutine_type_die): Likewise.
4071         (gen_typedef_die): Likewise.
4072         (force_type_die): Adjust call to modified_type_die.
4074 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
4076         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
4077         flow throughout the file.  Fix broken link to Objective-C 2.0
4078         documentation.
4079         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
4080         errors.
4082 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4084         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
4086 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4088         PR ipa/66223
4089         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
4090         (maybe_record_node): Record cxa_pure_virtual as the only possible
4091         target if there are not ohter candidates.
4092         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
4094 2016-01-19  Richard Biener  <rguenther@suse.de>
4096         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
4097         (get_memory_order): Likewise.
4099 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
4101         * tree-vect-stmts.c (vectorizable_store): Check
4102         rhs vectype.
4104 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
4106         PR jit/68446
4107         * gcc.c (driver::decode_argv): Add call to
4108         init_opts_obstack before init_options_struct.
4109         * opts.c (init_opts_obstack): Remove idempotency.
4110         (init_options_struct): Replace call to init_opts_obstack
4111         with a gcc_assert to verify that it has already been called.
4112         * toplev.c (toplev::main): Add call to init_opts_obstack before
4113         calls to init_options_struct.
4114         (toplev::finalize): Move cleanup of opts_obstack next to
4115         cleanup of save_decoded_options, clearing the latter, and
4116         save_decoded_options_count.
4118 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4120         PR target/69135
4121         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
4122         attribute to unconditional.  Remove %? from output template.
4124 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4125             Jiong Wang  <jiong.wang@arm.com>
4127         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
4128         generated from different expand order.
4130 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4132         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4133         Add support for CCMP costing.
4135 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4137         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
4138         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
4139         (fccmpe<mode>): Likewise.
4140         (fcmp): Rename to fcmp and globalize pattern.
4141         (fcmpe): Likewise.
4142         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
4143         (aarch64_gen_ccmp_next): Add FP support.
4145 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4147         * target.def (gen_ccmp_first): Update documentation.
4148         (gen_ccmp_next): Likewise.
4149         * doc/tm.texi (gen_ccmp_first): Update documentation.
4150         (gen_ccmp_next): Likewise.
4151         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
4152         expand_ccmp_expr_1.  Improve comments.
4153         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
4154         (ccmp_ior<mode>): Remove pattern.
4155         (cmp<mode>): Remove expand.
4156         (cmp): Globalize pattern.
4157         (cstorecc4): Use cc_register.
4158         (mov<mode>cc): Remove ccmp_cc_register check.
4159         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
4160         Simplify after removal of CC_DNE/* modes.
4161         (aarch64_ccmp_mode_to_code): Remove.
4162         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
4163         In 'k' case use integer as condition.
4164         (aarch64_nzcv_codes): Remove inverted cases.
4165         (aarch64_code_to_ccmode): Remove.
4166         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
4167         comparison with CC register to be used in folowing CCMP/branch/CSEL.
4168         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
4169         pattern.  Return the comparison with CC register.  Invert conditions
4170         when bitcode is OR.
4171         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
4172         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
4174 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4176         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4177         instrumented_version.
4179 2016-01-19  Richard Biener  <rguenther@suse.de>
4181         PR tree-optimization/69336
4182         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
4183         handled components with get_ref_base_and_extent.
4184         (equal_mem_array_ref_p): Adjust.
4186 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4188         PR debug/65779
4189         * shrink-wrap.c: Include valtrack.h.
4190         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
4191         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
4192         in between insn and where it will be moved to.  Call
4193         dead_debug_insert_temp.
4194         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
4195         first and dead_debug_local_finish at the end.
4196         For uses and defs bitmap, handle all regs in between REGNO and
4197         END_REGNO, not just the first one.
4199 2016-01-19  Richard Biener  <rguenther@suse.de>
4201         PR tree-optimization/69352
4202         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
4203         (equal_mem_array_ref_p): Constrain size and max size properly.
4204         Compare the reverse flag.
4206 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
4208         * ira.c (ira): Update regstat data if we deleted insns.
4210 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4212         PR rtl-optimization/68955
4213         PR rtl-optimization/64557
4214         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
4215         here.  Fix up formatting.
4216         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
4218 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4220         PR lto/69133
4221         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
4222         assume that the node has body.
4223         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
4224         check.
4226 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4228         * lto-streamer-out.c (lto_output): Do not stream instrumentation
4229         thunks.
4231 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4233         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
4234         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
4236 2016-01-19  Martin Jambor  <mjambor@suse.cz>
4237             Martin Liska  <mliska@suse.cz>
4238             Michael Matz  <matz@suse.de>
4240         * Makefile.in (OBJS): Add new source files.
4241         (GTFILES): Add hsa.c.
4242         * common.opt (disable_hsa): New variable.
4243         (-Whsa): New warning.
4244         * config.in (ENABLE_HSA): New.
4245         * configure.ac: Treat hsa differently from other accelerators.
4246         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
4247         $enable_offloading.
4248         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
4249         * doc/install.texi (Configuration): Document --with-hsa-runtime,
4250         --with-hsa-runtime-include, --with-hsa-runtime-lib and
4251         --with-hsa-kmt-lib.
4252         * doc/invoke.texi (-Whsa): Document.
4253         (hsa-gen-debug-stores): Likewise.
4254         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
4255         to invoke offload compiler for hsa acclerator.
4256         * opts.c (common_handle_option): Determine whether HSA offloading
4257         should be performed.
4258         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
4259         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
4260         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
4261         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
4262         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
4263         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
4264         GF_OMP_FOR_KIND_GRID_LOOP.
4265         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
4266         (pp_gimple_stmt_1): Likewise.
4267         * gimple-walk.c (walk_gimple_stmt): Likewise.
4268         * gimple.c (gimple_build_omp_grid_body): New function.
4269         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
4270         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
4271         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
4272         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
4273         GF_OMP_TEAMS_GRID_PHONY.
4274         (gimple_statement_omp_single_layout): Updated comments.
4275         (gimple_build_omp_grid_body): New function.
4276         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
4277         (gimple_omp_for_grid_phony): New function.
4278         (gimple_omp_for_set_grid_phony): Likewise.
4279         (gimple_omp_parallel_grid_phony): Likewise.
4280         (gimple_omp_parallel_set_grid_phony): Likewise.
4281         (gimple_omp_teams_grid_phony): Likewise.
4282         (gimple_omp_teams_set_grid_phony): Likewise.
4283         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
4284         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
4285         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
4286         (BUILT_IN_GOMP_TARGET): Updated type.
4287         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
4288         (adjust_for_condition): New function.
4289         (get_omp_for_step_from_incr): Likewise.
4290         (extract_omp_for_data): Moved parts to adjust_for_condition and
4291         get_omp_for_step_from_incr.
4292         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
4293         (fixup_child_record_type): Bail out if receiver_decl is NULL.
4294         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
4295         (scan_omp_parallel): Do not create child functions for phony
4296         constructs.
4297         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
4298         (scan_omp_1_op): Checking assert we are not remapping to
4299         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
4300         (parallel_needs_hsa_kernel_p): New function.
4301         (expand_parallel_call): Register apprpriate parallel child
4302         functions as HSA kernels.
4303         (grid_launch_attributes_trees): New type.
4304         (grid_attr_trees): New variable.
4305         (grid_create_kernel_launch_attr_types): New function.
4306         (grid_insert_store_range_dim): Likewise.
4307         (grid_get_kernel_launch_attributes): Likewise.
4308         (get_target_argument_identifier_1): Likewise.
4309         (get_target_argument_identifier): Likewise.
4310         (get_target_argument_value): Likewise.
4311         (push_target_argument_according_to_value): Likewise.
4312         (get_target_arguments): Likewise.
4313         (expand_omp_target): Call get_target_arguments instead of looking
4314         up for teams and thread limit.
4315         (grid_expand_omp_for_loop): New function.
4316         (grid_arg_decl_map): New type.
4317         (grid_remap_kernel_arg_accesses): New function.
4318         (grid_expand_target_kernel_body): New function.
4319         (expand_omp): Call it.
4320         (lower_omp_for): Do not emit phony constructs.
4321         (lower_omp_taskreg): Do not emit phony constructs but create for them
4322         a temporary variable receiver_decl.
4323         (lower_omp_taskreg): Do not emit phony constructs.
4324         (lower_omp_teams): Likewise.
4325         (lower_omp_grid_body): New function.
4326         (lower_omp_1): Call it.
4327         (grid_reg_assignment_to_local_var_p): New function.
4328         (grid_seq_only_contains_local_assignments): Likewise.
4329         (grid_find_single_omp_among_assignments_1): Likewise.
4330         (grid_find_single_omp_among_assignments): Likewise.
4331         (grid_find_ungridifiable_statement): Likewise.
4332         (grid_target_follows_gridifiable_pattern): Likewise.
4333         (grid_remap_prebody_decls): Likewise.
4334         (grid_copy_leading_local_assignments): Likewise.
4335         (grid_process_kernel_body_copy): Likewise.
4336         (grid_attempt_target_gridification): Likewise.
4337         (grid_gridify_all_targets_stmt): Likewise.
4338         (grid_gridify_all_targets): Likewise.
4339         (execute_lower_omp): Call grid_gridify_all_targets.
4340         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
4341         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
4342         (tree_omp_clause): Added union field dimension.
4343         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
4344         * tree.c (omp_clause_num_ops): Added number of arguments of
4345         OMP_CLAUSE__GRIDDIM_.
4346         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
4347         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
4348         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
4349         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
4350         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
4351         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
4352         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
4353         * tree-pass.h (make_pass_gen_hsail): Declare.
4354         (make_pass_ipa_hsa): Likewise.
4355         * ipa-hsa.c: New file.
4356         * lto-section-in.c (lto_section_name): Add hsa section name.
4357         * lto-streamer.h (lto_section_type): Add hsa section.
4358         * timevar.def (TV_IPA_HSA): New.
4359         * hsa-brig-format.h: New file.
4360         * hsa-brig.c: New file.
4361         * hsa-dump.c: Likewise.
4362         * hsa-gen.c: Likewise.
4363         * hsa.c: Likewise.
4364         * hsa.h: Likewise.
4365         * toplev.c (compile_file): Call hsa_output_brig.
4366         * hsa-regalloc.c: New file.
4368 2016-01-18  Jeff Law  <law@redhat.com>
4370         PR tree-optimization/69320
4371         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
4372         ranged object, do nothing if the RHS constant is not [0..1].
4373         (optimize_stmt): Comparing a boolean ranged object against a
4374         constant outside [0..1] results in a compile-time constant.
4376         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
4377         test.
4379 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
4381         * doc/invoke.texi (Invoking GCC): Add new section to menu.
4382         (Option Summary): Update to reflect new section and moved options.
4383         (C++ Dialect Options): Move -fstats to new section.
4384         (Debugging Options): Move all dump, statistics, and other GCC
4385         developer options to new section.  Rewrite section introduction
4386         and re-order remaining options to put the more basic ones first.
4387         (Optimization Options): Move -fira-verbose and -flto-report* to
4388         new section.
4389         (Developer Options): New section incorporating moved options.
4390         * doc/cppopts.texi (-dM): Update cross-reference.
4392 2016-01-18  Richard Henderson  <rth@redhat.com>
4394         PR target/69176
4395         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
4396         operands to pseudo only if CSE is expected.  Split long immediate
4397         operands only after reload, and for the stack pointer.
4398         (*add<GPI>3_pluslong): Remove.
4399         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
4400         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
4401         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
4402         (*add<GPI>3 peepholes): New.
4403         (*add<GPI>3 splitters): New.
4404         * config/aarch64/constraints.md (Upl): New.
4405         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
4407 2016-01-18  Richard Biener  <rguenther@suse.de>
4409         PR tree-optimization/69297
4410         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
4411         stmt at most once.
4412         (vect_bb_vectorization_profitable_p): Clear visited flag again.
4414 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
4416         PR middle-end/68542
4417         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
4418         of mixind vector and scalar types.
4419         (fold_relational_const): Add handling of vector
4420         comparison with boolean result.
4421         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
4422         comparison of vector operands with boolean result for EQ/NE only.
4423         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
4424         (verify_gimple_cond): Likewise.
4425         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
4426         valid type of VAL.
4428 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4430         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
4431         !TARGET_OCTEON.
4433 2016-01-18  Richard Biener  <rguenther@suse.de>
4435         PR middle-end/69308
4436         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
4438 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4440         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
4442 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4444         * omp-low.c (set_oacc_fn_attrib): Make extern.
4445         * omp-low.h (set_oacc_fn_attrib): Declare.
4446         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
4447         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
4448         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
4449         Add and handle function parameter oacc_kernels_p.
4450         (find_reduc_addr, get_omp_data_i_param): New function.
4451         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
4452         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
4453         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
4454         Calculate dominance info.  Skip loops that are not in a kernels region
4455         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
4456         (pass_parallelize_loops::execute): Call parallelize_loops with
4457         oacc_kernels_p argument.
4458         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
4459         New member function.
4460         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
4461         * passes.def: Add argument to pass_parallelize_loops instantation.
4463 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4465         * tree-parloops.c (pass_parallelize_loops::execute): Allow
4466         pass_parallelize_loops to be run outside the loop pipeline.
4468 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4470         * tree-scalar-evolution.c (follow_copies_to_constant): New.
4471         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
4473 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4475         PR target/63679
4476         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
4477         using get_ref_base_and_extent.
4478         (equal_mem_array_ref_p): New.
4479         (hashable_expr_equal_p): Add call to previous.
4481 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4483         PR target/63679
4484         * tree-sra.c (disqualified_constants, constant_decl_p): New.
4485         (sra_initialize): Allocate disqualified_constants.
4486         (sra_deinitialize): Free disqualified_constants.
4487         (disqualify_candidate): Update disqualified_constants when appropriate.
4488         (create_access): Scan for constant-pool entries as we go along.
4489         (scalarizable_type_p): Add check against type_contains_placeholder_p.
4490         (maybe_add_sra_candidate): Allow constant-pool entries.
4491         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
4492         (initialize_constant_pool_replacements): New.
4493         (sra_modify_assign): Avoid mangling assignments created by previous,
4494         and don't generate writes into constant pool.
4495         (sra_modify_function_body): Call initialize_constant_pool_replacements.
4497 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4499         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
4500         andnot instruction.
4501         (scalar_chain::convert_op): Likewise.
4502         * config/i386/i386.md (*andndi3_doubleword): New.
4504 2016-01-18  Richard Biener  <rguenther@suse.de>
4506         PR tree-optimization/69170
4507         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
4508         building a vector from scalar results of a pattern stmt.
4510 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
4512         * haifa-sched.c (autopref_multipass_init): Work around
4513         -Wmaybe-uninitialized warning.
4515 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4517         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
4518         against the constant 0.
4520 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4522         PR tree-optimization/68799
4523         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
4524         look up phi candidates in the statement-candidate map.
4525         (phi_add_costs): Likewise.
4526         (record_phi_increments): Likewise.
4527         (phi_incr_cost): Likewise.
4528         (ncd_with_phi): Likewise.
4529         (all_phi_incrs_profitable): Likewise.
4531 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
4533         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
4534         -Wmaybe-uninitialized warning.
4536 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
4538         * doc/invoke.texi (Invoking GCC): Add new section to menu.
4539         (Option Summary): Update to reflect new section and moved options.
4540         (C++ Dialect Options): Move -fvtable-verify and related options.
4541         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
4542         and profiling-related options.
4543         (Optimization Options): Move profile generation options and
4544         -fstack-protector and related options.
4545         (Instrumentation Options): New section incorporating moved options.
4546         (Code Generation Options): Move -finstrument-functions and
4547         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
4549 2016-01-16  Tom de Vries  <tom@codesourcery.com>
4551         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
4553 2016-01-16  Tom de Vries  <tom@codesourcery.com>
4555         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
4557 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
4559         * hash-table.h (hash_table::empty): Turn into an inline wrapper
4560         that checks whether the table is already empty.  Rename the
4561         original implementation to...
4562         (hash_table::empty_slot): ...this new private function.
4564 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
4566         PR diagnostic/68899
4567         * diagnostic-show-locus.c (layout::print_source_line): Move x
4568         offset of line until after call to
4569         get_line_width_without_trailing_whitespace.
4571 2016-01-15  Jeff Law  <law@redhat.com>
4573         PR tree-optimization/69270
4574         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
4575         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
4576         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
4577         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
4578         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
4579         ssa_name_has_boolean_range and constant_boolean_node.
4581 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4583         PR rtl-optimization/69030
4584         * lra-spills.c (remove_pseudos): Check nrefs and make the function
4585         returning bool.
4586         (spill_pseudos): Delete debug insn for dead pseudo.
4587         (lra_spill): Initiate spill_hard_reg and slots memory separately.
4589 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
4591         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
4592         New.
4593         (TYPES_UNOPUS): Likewise.
4594         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
4595         builtin type, from UNOP to UNOPUS.
4596         (lbtruncuv4sf): Likewise.
4597         (lbtruncuv2df): Likewise.
4598         (lrounduv2sf): Likewise.
4599         (lrounduv4sf): Likewise.
4600         (lrounduv2df): Likewise.
4601         (lroundusf): Likewise.
4602         (lroundusf): Likewise.
4603         (lceiluv2sf): Likewise.
4604         (lceiluv4sf): Likewise.
4605         (lceiluv2df): Likewise.
4606         (lceilusf): Likewise.
4607         (lceiludf): Likewise.
4608         (lflooruv2sf): Likewise.
4609         (lflooruv4sf): Likewise.
4610         (lflooruv2df): Likewise.
4611         (lfloorusf): Likewise.
4612         (lfloorudf): Likewise.
4613         (lfrintnuv2sf): Likewise.
4614         (lfrintnuv4sf): Likewise.
4615         (lfrintnuv2df): Likewise.
4616         (lfrintnusf): Likewise.
4617         (lfrintnudf): Likewise.
4618         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
4619         conversion.
4620         (vcvtq_u32_f32): Likewise.
4621         (vcvtq_u64_f64): Likewise.
4622         (vcvta_u32_f32): Likewise.
4623         (vcvtaq_u32_f32): Likewise.
4624         (vcvtaq_u64_f64): Likewise.
4625         (vcvtm_u32_f32): Likewise.
4626         (vcvtmq_u32_f32): Likewise.
4627         (vcvtmq_u64_f64): Likewise.
4628         (vcvtn_u32_f32): Likwise.
4629         (vcvtnq_u32_f32): Likewise.
4630         (vcvtnq_u64_f64): Likewise.
4631         (vcvtp_u32_f32): Likewise.
4632         (vcvtpq_u32_f32): Likewise.
4633         (vcvtpq_u64_f64): Likewise.
4634         (vcvtmd_u64_f64): Likewise.
4635         (vcvtms_u32_f32): Likewise.
4636         (vcvtad_u64_f64): Likewise.
4637         (vcvtas_u32_f32): Likewise.
4638         (vcvtnd_u64_f64): Likewise.
4639         (vcvtns_u32_f32): Likewise.
4640         (vcvtpd_u64_f64): Likewise.
4641         (vcvtps_u32_f32): Likewise.
4643 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4645         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
4646         CSEL of zero_extended registers.
4648 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4650         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
4651         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
4653 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4655         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
4656         false when argument string is not found in the attributes table
4657         at all.
4659 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
4661         PR target/68609
4662         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
4663         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
4664         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
4665         precision estimate.
4667 2016-01-15  Richard Biener  <rguenther@suse.de>
4669         PR tree-optimization/66856
4670         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
4671         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
4672         (vect_create_new_slp_node): Increment stmt reference count.
4673         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
4674         an SLP tree before swapping operands.
4675         (vect_build_slp_tree): Likewise.
4676         (destroy_bb_vec_info): Free stmt info after SLP instances.
4677         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
4678         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
4679         (STMT_VINFO_NUM_SLP_USES): New macro.
4681 2016-01-15  Richard Biener  <rguenther@suse.de>
4683         PR debug/69137
4684         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
4685         (add_linkage_name): ... here.
4686         (gen_typedef_die): Use add_linkage_name_raw instead of
4687         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
4688         if necessary.
4690 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
4692         * gimplify.c (oacc_default_clause): Decode reference and pointer
4693         types for both kernels and parallel regions.
4695 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
4697         PR middle-end/69246
4698         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
4700 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4702         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
4703         (convert_scalars_to_vector): Likewise.
4705 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
4707         * doc/extend.texi (Type Traits): Fix grammar.
4709 2016-01-15  Martin Jambor  <mjambor@suse.cz>
4711         * tree-inline.c (remap_decl): Use existing dclarations if
4712         remapping a type and prevent_decl_creation_for_types.
4713         (replace_locals_stmt): Do an initial remapping of non-VLA typed
4714         decls first.  Do real remapping with
4715         prevent_decl_creation_for_types set.
4716         * tree-inline.h (copy_body_data): New field
4717         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
4718         padding.
4720 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4722         * config/s390/s390.opt (mmvcle): More verbose help text.
4724 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4726         * config/s390/s390.opt: Add period to -mzvector option text.
4728 2016-01-15  Richard Biener  <rguenther@suse.de>
4730         PR tree-optimization/68961
4731         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
4732         of invariants in stores again.
4734 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4736         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
4738 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4740         * config/i386/i386.c (ix86_expand_branch): Don't split
4741         DI mode xor instruction to SI mode.
4743 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
4745         PR ipa/68148
4746         * ipa-icf.c (sem_function::merge): Virtual functions may become
4747         reachable even if they address is not taken and there are no
4748         idrect calls.
4750 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
4752         * lto-streamer-out.c (subtract_estimated_size): New function.
4753         (get_symbol_initial_value): Use it.
4755 2016-01-15  Christian Bruel  <christian.bruel@st.com>
4757         PR target/65837
4758         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
4759         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
4760         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
4761         use add_builtin_function_ext_scope instead of add_builtin_function.
4762         (neon_set_p, neon_crypto_set_p): Remove.
4763         (arm_init_builtins): Always call arm_init_neon_builtins and
4764         arm_init_crypto_builtins.
4765         (arm_expand_builtin): Check that builtins are allowed for the arch.
4766         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
4767         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
4768         arm_init_neon_builtins call.
4770 2016-01-15  Richard Biener  <rguenther@suse.de>
4772         PR tree-optimization/69117
4773         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
4774         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
4775         of the leader conservatively.
4776         (free_scc_vn): Restore original SSA name infos.
4778 2016-01-14  Jeff Law  <law@redhat.com>
4780         PR tree-optimization/69270
4781         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
4782         single bit of precision, verify it's also unsigned.
4783         (record_edge_info): Use constant_boolean_node rather than fold_convert
4784         to convert boolean_true/boolean_false to the right type.
4786 2016-01-14  Richard Henderson  <rth@redhat.com>
4788         PR rtl-opt/69014
4789         * loop-doloop.c (record_reg_sets): New.
4790         (doloop_optimize): Reject the transform if the sequence
4791         clobbers registers live at the end of the loop block.
4792         (doloop_optimize_loops): Enable df_live if needed.
4794 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4796         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
4797         * gcc/config/rs6000/rs6000.c: Likewise.
4798         * gcc/config/rs6000/rs6000.h: Likewise.
4799         * gcc/config/rs6000/rs6000.md: Likewise.
4800         * gcc/doc/extend.texi: Likewsie.
4802 2016-01-14  Jeff Law  <law@redhat.com>
4804         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
4805         typo.
4807 2016-01-14  Richard Henderson  <rth@redhat.com>
4809         PR c/69272
4810         PR tree-opt/68964
4811         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
4812         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
4813         instead of builtin_decl_declared_p to test for declaration.
4815 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
4817         * doc/loop.texi (Loop Analysis and Representation): Document
4818         loop_depth function.
4820 2016-01-14  Tom de Vries  <tom@codesourcery.com>
4822         PR tree-optimization/68773
4823         * omp-low.c (expand_omp_target): Don't set force_output.
4824         * varpool.c (varpool_node::get_create): Same.
4825         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
4826         offload_funcs with force_output.
4828 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
4830         PR debug/69244
4831         * lra-eliminations.c (move_plus_up): Don't change anything if either
4832         the outer or inner subreg mode is not MODE_INT.
4833         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
4834         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
4836 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
4838         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
4839         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
4840         reduc_uplus_@var{m}): Remove.
4841         * expr.c (expand_expr_real_2): Remove expansion path for
4842         reduc_[us](min|max|plus) optabs.
4843         * optabs-tree.c (scalar_reduc_to_vector): Remove.
4844         * optabs-tree.h (scalar_reduc_to_vector): Remove.
4845         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
4846         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
4847         * tree-vect-loop.c (vectorizable_reduction): Remove test for
4848         reduc_[us](min|max|plus) optabs.
4850 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
4852         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
4853         (reduc_plus_scal_v2sf): New.
4854         (reduc_smax_v2sf): Rename to...
4855         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
4856         (reduc_smin_v2sf): Rename to...
4857         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
4859 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
4861         * alias.c (compare_base_symbol_refs): New function.
4862         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
4863         it.
4865 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
4867         PR middle-end/68146
4868         PR tree-optimization/69155
4869         * tree-complex.c: Include cfganal.h.
4870         (phis_to_revisit): New variable.
4871         (extract_component): Add phiarg_p argument.  Assert that returned
4872         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
4873         (update_phi_components): Partly rewrite to use loop over real/imag
4874         components instead of code duplication.  If extract_component returns
4875         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
4876         create_tmp_reg into the PHI node instead, and mention the phi triplet
4877         in phis_to_revisit.
4878         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
4879         in phis_to_revisit at the end.
4881 2016-01-14  Richard Biener  <rguenther@suse.de>
4883         PR tree-optimization/68060
4884         * tree-vect-loop.c (vect_is_simple_reduction): Check the
4885         outer loop reduction is only used in the inner loop before
4886         detecting a double reduction.
4888 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
4890         PR target/68269
4891         * combine.c (expand_field_assignment): Punt if compute_mode is
4892         unsupported scalar mode.
4894 2016-01-14  Richard Biener  <rguenther@suse.de>
4896         PR tree-optimization/66856
4897         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
4898         SLP node only if it built successfully.
4899         (vect_analyze_slp_instance): Adjust.
4901 2016-01-14  Jeff Law  <law@redhat.com>
4903         PR tree-optimization/69270
4904         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
4905         (record_edge_info): Use it.  Convert boolean_{true,false}_node
4906         to the type of op0.
4908 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
4910         PR ipa/66487
4911         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
4912         use block_ultimate_origin
4913         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
4915 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
4917         * doc/invoke.texi (Submodel Options): Rename section to
4918         "Machine-Dependent Options" to better reflect its content.
4919         Rewrite introductory text to remove archaic CPU names.
4920         Update references.
4922 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
4924         * doc/invoke.texi (Code Gen Options): Move section up in file,
4925         before target-specific options.  Update menu and option summary
4926         to reflect the new section ordering.
4928 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
4930         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
4931         (C++ Dialect Options): Add cross-reference to -std option.
4932         * doc/standards.texi (C++ Language): Document C++14 support.
4934 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4936         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
4937         for pack/unpack functions for __ibm128.
4938         (PACK_IF): Likewise.
4939         (UNPACK_IF): Likewise.
4941         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
4942         support for __ibm128 pack/unpack functions.
4943         (rs6000_invalid_builtin): Likewise.
4944         (rs6000_init_builtins): Likewise.
4945         (rs6000_opt_masks): Likewise.
4947         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
4948         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
4949         functions
4950         (RS6000_BTM_COMMON): Likewise.
4952         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
4953         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
4954         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
4955         128-bit floating point.  Add support for the double values to be
4956         in Altivec registers for TF/IF packing and unpacking, but restrict
4957         TD packing sub-fields to be FPR registers.  Don't allow overlapped
4958         register support for packing.  Allow pack inputs to be memory
4959         locations.  Don't build generator functions for unpack<mode>_dm
4960         and unpack<mode>_nodm.
4961         (unpack<mode>_dm): Likewise.
4962         (unpack<mode>_nodm): Likewise.
4963         (pack<mode>): Likewise.
4965         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
4966         built-in functions to pack/unpack explicit __ibm128 values.
4967         (__builtin_unpack_ibm128): Likewise.
4969         * doc/extend.texi (PowerPC Built-in Functions): Document
4970         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
4972 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
4974         PR c/66208
4975         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
4976         Add new arg loc and pass it down as context.
4977         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
4978         to the location to use for the warning.
4979         (check_function_arguments): New arg loc.  All callers changed.  Pass
4980         it to check_function_nonnull.
4981         * c-common.h (check_function_arguments): Adjust declaration.
4983 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
4985         PR tree-optimization/69156
4986         * gimple.c (validate_type): Removed.
4987         (gimple_builtin_call_types_compatible_p): Use
4988         useless_type_conversion_p instead of validate_type.
4989         * value-prof.c (gimple_stringop_fixed_value): Fold
4990         icall_size to correct type.
4992 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
4994         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
4995         effects.
4997 2016-01-13  Richard Henderson  <rth@redhat.com>
4999         PR tree-opt/68964
5000         * target.def (builtin_tm_load, builtin_tm_store): Remove.
5001         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
5002         (ix86_builtin_tm_store): Remove.
5003         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5004         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5005         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5006         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5007         * doc/tm.texi: Rebuild.
5009         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
5010         (BUILT_IN_TM_MEMCPY_RTWN): New.
5011         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
5012         fallback from vector to integer helpers.
5013         (build_tm_load): Handle vector types directly, instead of
5014         via target hook.
5015         (build_tm_store): Likewise.
5016         (expand_assign_tm): Prepare for register types not handled by
5017         the above.  Copy them to memory and use memcpy.
5018         * tree.c (tm_define_builtin): New.
5019         (find_tm_vector_type): New.
5020         (build_tm_vector_builtins): New.
5021         (build_common_builtin_nodes): Call it.
5023 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
5025         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
5026         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
5028 2016-01-13  Tom de Vries  <tom@codesourcery.com>
5030         PR tree-optimization/69169
5031         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
5032         handled_struct_type param.
5033         (create_variable_info_for, intra_create_variable_infos): Call
5034         create_variable_info_for_1 with extra arg.
5036 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
5038         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
5039         and "armv8.1-a+crc" entries.
5041 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
5043         PR target/69228
5044         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
5045         Change first operand predicate from register_or_constm1_operand
5046         to register_operand.
5047         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
5048         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
5049         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
5050         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
5051         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
5052         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
5053         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
5054         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
5055         comparison with constm1_rtx from vec_prefetch_gen part.
5057 2016-01-13  Richard Biener  <rguenther@suse.de>
5059         PR tree-optimization/69013
5060         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
5061         Exchange assert for a test.
5063 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5065         PR target/69247
5066         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
5068 2016-01-13  Richard Biener  <rguenther@suse.de>
5070         PR tree-optimization/69242
5071         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
5072         assert with a check.
5074 2016-01-13  Richard Biener  <rguenther@suse.de>
5076         PR tree-optimization/69186
5077         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5078         Properly guard vect_update_misalignment_for_peel call.
5080 2016-01-12  Jeff Law  <law@redhat.com>
5082         PR tree-optimization/pr67755
5083         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
5084         "need_profile_correction".
5085         (thread_block_1): Initialize new field to false by default.  If we
5086         have multiple thread paths through a common joiner to different
5087         final targets, then set new field to true.
5088         (compute_path_counts): Only do count adjustment when it's really
5089         needed.
5091 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5093         * doc/invoke.texi (Spec Files): Move section down in file, past
5094         all command-line option descriptions.
5096 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5098         PR middle-end/54809
5099         * doc/gty.texi: Remove documentation of mark_hook.
5100         * gengtype.c (struct write_types_data): Remove code to support
5101         mark_hook attribute.
5102         (walk_type): Likewise.
5103         (write_func_for_structure): Likewise.
5105 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5107         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
5108         Directory Options, and -specs= to Overall Options.
5109         (Overall Options): Adjust similarly.  Reorder to group related
5110         options together.  Make -specs= cross-reference the spec file details.
5111         (Directory Options): Adjust similarly.
5113 2016-01-12  Jeff Law  <law@redhat.com>
5115         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
5117 2016-01-12  Olivier Hainque  <hainque@adacore.com>
5119         * gcc.c (spec_undefvar_allowed): New global.
5120         (process_command): Set to true when running for --version or --help,
5121         alone or together.
5122         (getenv_spec_function): When the variable is not defined, use the
5123         variable name as the variable value if we're allowed not to issue
5124         a fatal error.
5126 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
5128         PR tree-optimization/68911
5129         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
5130         information computed for expression "init + nit * step".
5132 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5134         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
5135         about name of GCC executable.  Remove deleted node from menu.
5136         (Directory Options) <-B>: Remove cross-reference to deleted node.
5137         (Target Options): Delete section.
5139 2016-01-12  Christian Bruel  <christian.bruel@st.com>
5141         PR target/69180
5142         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
5143         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
5145 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
5147         PR target/69198
5148         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
5149         aligned_mem is properly set for AVX512-VL floating point masked
5150         stores.
5152         PR target/69175
5153         * ifcvt.c (cond_exec_process_if_block): When removing the last
5154         insn from then_bb, remove also any possible barriers that follow it.
5156 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5158         PR target/68456
5159         PR target/69226
5160         * config/i386/iamcu.h (SIZE_TYPE): New macro.
5161         (PTRDIFF_TYPE): Likewise.
5162         (WCHAR_TYPE): Likewise.
5163         (WCHAR_TYPE_SIZE): Likewise.
5164         (STDINT_LONG32): Likewise.
5166 2016-01-12  Richard Biener  <rguenther@suse.de>
5168         PR tree-optimization/69053
5169         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
5170         convert initial value for cond reductions.
5172 2016-01-12  Richard Biener  <rguenther@suse.de>
5174         PR tree-optimization/69007
5175         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
5176         widen_sum after dot_prod and sad.
5178 2016-01-12  Richard Biener  <rguenther@suse.de>
5180         PR tree-optimization/69168
5181         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
5182         pattern stmt SLP type.
5183         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
5184         end up unused so cope with that case.
5186 2016-01-12  Richard Biener  <rguenther@suse.de>
5188         PR tree-optimization/69157
5189         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5190         stmts def type only during analyze phase.
5191         (vectorizable_call): Likewise.
5192         (vectorizable_simd_clone_call): Likewise.
5193         (vectorizable_conversion): Likewise.
5194         (vectorizable_assignment): Likewise.
5195         (vectorizable_shift): Likewise.
5196         (vectorizable_operation): Likewise.
5197         (vectorizable_store): Likewise.
5198         (vectorizable_load): Likewise.
5200 2016-01-12  Richard Biener  <rguenther@suse.de>
5202         PR tree-optimization/69174
5203         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
5204         space.
5205         (vectorizable_load): Properly compute the number of loads needed
5206         for permuted strided SLP loads and do not spuriously assign
5207         to SLP_TREE_VEC_STMTS.
5209 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
5211         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
5212         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
5213         (MD_EXEC_PREFIX): Remove.
5214         (MD_STARTFILE_PREFIX) Removee.
5215         (FILE_NAME_ABSOLUTE_P): Remove.
5216         (CPP_SPEC): Do not read macros from sys/version.h.
5217         (LINK_COMMAND_SPEC): Remove.
5218         (LOCAL_INCLUDE_DIR): Remove.
5219         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
5220         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
5221         (POST_LINK_SPEC): Define to invoke stubify after linker
5222         (LIBSTDCXX): Remove define
5223         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
5224         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
5225         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
5226         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
5227         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
5228         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
5229         (i386_djgpp_asm_named_section): Add propotype of new procedure
5231         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
5232         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
5233         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
5234         in config/i386/djgpp.h).
5235         (STANDARD_STARTFILE_PREFIX_2): Define identical to
5236         STANDARD_STARTFILE_PREFIX_1.
5237         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
5238         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
5239         installation errors.
5240         (MAX_OFILE_ALIGNMENT): Define to 128.
5241         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
5243         * config/i386/djgpp.c: New file. Add implementation of
5244         i386_djgpp_asm_named_section.
5246         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
5248         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
5249         Add rule for building djgpp.o.
5251 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5253         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
5254         (rtx_is_swappable_p): Reductions are swappable.
5255         (insn_is_swappable_p): V2DF reductions are swappable.
5257 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
5259         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
5260         reloads for other unsupported memory operands.
5262 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5263             Jim Wilson  <jim.wilson@linaro.org>
5265         PR target/69194
5266         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
5267         copy_to_mode_reg instead of force_reg.
5269 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5271         PR target/69225
5272         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
5273         TARGET_80387 is true.
5275 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
5277         PR target/69071
5278         * lra-eliminations.c (move_plus_up): Only move plus up
5279         if subreg of the constant can be simplified into constant
5280         and use the simplified subreg of the constant instead of
5281         the original constant.
5283         * fold-const.c (fold_convertible_p): Don't return true
5284         for conversion of VECTOR_TYPE to same sized integral type.
5285         (fold_convert_loc): Fix up formatting.  Fold conversion of
5286         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
5287         instead of NOP_EXPR.
5289         PR tree-optimization/69214
5290         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
5291         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5292         Formatting fix.
5294         PR tree-optimization/69207
5295         * tree-vect-slp.c (vect_get_constant_vectors): For
5296         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
5297         fold_convertible_p to vector_type's element type, and always
5298         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
5300 2016-01-11  Richard Biener  <rguenther@suse.de>
5302         PR tree-optimization/69173
5303         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
5304         fixup the cycle if all stmts are in a pattern.
5306 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
5308         PR middle-end/68999
5309         * alias.c (base_alias_check): Move check for addresses with
5310         alignment ANDs before the call for compare_base_decls.
5311         (memrefs_conflict_p): Return -1 for different decls
5312         that went through alignment adjustments.
5314 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5316         PR rtl-optimization/68796
5317         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
5318         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
5319         and QImode comparisons against zero with CC_NZmode.
5320         * config/aarch64/iterators.md (short_mask): New mode_attr.
5322 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5324         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
5325         (<avx512>_store<mode>_mask): Likewise.
5327 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
5328             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5330         PR rtl-optimization/68841
5331         * ifcvt.c (struct noce_if_info): Add orig_x field.
5332         (bbs_ok_for_cmove_arith): Add to_rename parameter.
5333         Don't record conflicts on to_rename if it's present.
5334         Allow memory destinations in sets.
5335         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
5336         blocks, passing orig_x to the checks.
5337         (noce_process_if_block): Set if_info->orig_x appropriately.
5339 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5341         PR tree-optimization/69069
5342         * tree-parloops.c (create_parallel_loop): Add missing phi args.
5344 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
5346         PR rtl-optimization/68920
5347         * config/i386/i386.c (ix86_option_override_internal): Restrict number
5348         of conditional moves for  RTL if-conversion to 1 for
5349         TARGET_ONE_IF_CONV_INSN.
5350         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
5351         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
5352         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
5353         parameter to restirct number of conditional moves for
5354         RTL if-conversion.
5355         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
5356         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
5357         conditionl moves.
5359 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
5361         PR bootstrap/69123
5362         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
5363         onepart vars.  Fix typo in comment.  Fix reversed condition in
5364         unshare test.
5365         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
5367         PR bootstrap/69123
5368         * var-tracking.c (dump_onepart_variable_differences): New.
5369         (dataflow_set_different): If a detailed dump is requested,
5370         delay early returns and dump differences between onepart
5371         variables present before and after, and added variables.
5373 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
5375         PR target/69010
5376         * expr.c (expand_expr_real_1): For boolean vector constants
5377         with a scalar mode use const_scalar_mask_from_tree.
5378         (const_scalar_mask_from_tree): New.
5379         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
5380         assigned to a mask type to handle constants.
5382 2016-01-11  Martin Jambor  <mjambor@suse.cz>
5384         PR ipa/69044
5385         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
5386         useless parameters if we cannot change function signature.
5388 2016-01-11  Martin Jambor  <mjambor@suse.cz>
5390         PR ipa/66616
5391         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
5392         flag.
5394 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5396         PR tree-optimization/69109
5397         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
5398         latch with phi.
5400 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5402         PR tree-optimization/69108
5403         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
5404         res is not used in a phi.
5406 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
5408         PR 67425
5409         * common.opt (frandom-seed): Fix parameter name.
5410         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
5412 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5414         PR tree-optimization/69058
5415         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
5416         not supported.
5418 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
5420         * config/arc/arc.opt (mdiv-rem): Add period to the end.
5421         (mcode-density): Likewise.
5423 2016-01-10  Tom de Vries  <tom@codesourcery.com>
5425         PR tree-optimization/69062
5426         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
5427         (parallelize_loops): Don't paralelize loop that has phi with address
5428         arg.
5430 2016-01-10  Tom de Vries  <tom@codesourcery.com>
5432         PR tree-optimization/69039
5433         * tree-parloops.c (try_create_reduction_list): Only allow single exit
5434         phi for reduction.
5436 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
5438         PR middle-end/68743
5439         * match.pd: Require target has function_c99_misc before doing
5440         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
5442 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
5444         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
5445         use GMPINC.
5446         * configure: Regenerate.
5448 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
5450         PR middle-end/50865
5451         PR tree-optimization/69097
5452         * fold-const.h (expr_not_equal_to): New prototype.
5453         * fold-const.c: Include stringpool.h and tree-ssanames.h.
5454         (expr_not_equal_to): New function.
5455         * match.pd (X % -Y is the same as X % Y): Don't optimize
5456         unless X is known not to be equal to minimum or Y is known
5457         not to be equal to -1.
5458         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
5459         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
5460         (simplify_stmt_using_ranges): Adjust caller.
5461         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
5462         substitute_and_fold.
5464 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
5466         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
5467         w/o DECL_NAME.
5469 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5471         PR tree-optimization/69167
5472         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
5473         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
5474         ops[0] comparison.
5475         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
5477 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
5478             Richard Biener  <rguenther@suse.de>
5480         PR tree-optimization/68707
5481         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
5482         instances that can be handled via vect_load_lanes.
5484 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
5486         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
5487         if we can't determine address equivalence.
5488         * alias.c (compare_base_decl): Update for changed return value of
5489         symtab_node::equal_address_to.
5491 2016-01-08  Jason Merrill  <jason@redhat.com>
5493         PR c++/68983
5494         PR c++/67557
5495         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
5496         * expr.c (store_field): Not here.
5497         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
5498         call with TREE_ADDRESSABLE type.
5499         * tree-cfg.c (verify_gimple_call): Adjust.
5501 2016-01-08  Olivier Hainque  <hainque@adacore.com>
5503         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
5504         libc_internal.
5506 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
5508         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
5509         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
5510         (reduc_smin_v2sf): Rename to...
5511         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
5512         (reduc_splus_v2sf): Rename to...
5513         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
5515 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5517         PR tree-optimization/69162
5518         * gimplify.c (gimplify_va_arg_expr): Encode original type of
5519         valist argument in another argument.
5520         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
5521         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
5522         to determine the va_list type, build a MEM_REF instead of
5523         build_fold_indirect_ref.
5525         PR tree-optimization/69172
5526         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
5527         gimple_build.
5529 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5531         PR tree-optimization/67781
5532         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5533         and cmpnop in two steps: first the ones not accessed in original
5534         gimple expression in a endian independent way and then the ones not
5535         accessed in the final result in an endian-specific way.
5537 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5539         PR tree-optimization/69083
5540         * tree-vect-slp.c (vect_get_constant_vectors): For
5541         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
5542         element type.  If op is fold_convertible_p to vector_type's element
5543         type, use NOP_EXPR instead of VCE.
5545 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
5547         PR rtl-optimization/67778
5548         PR rtl-optimization/68634
5549         PR rtl-optimization/68909
5550         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
5551         block from the stack until done with it.  Remove a superfluous
5552         bitmap set.  Remove a superfluous bitmap test.
5554 2016-01-07  Martin Sebor  <msebor@redhat.com>
5556         PR c/68966
5557         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
5558         constraint on the type of arguments.
5560 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
5562         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
5563         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
5564         unaligned_access on the gcc_options set.
5565         * config/arm/arm.c (arm_option_override_internal): Use
5566         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
5568 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
5570         PR target/69140
5571         * config/i386/i386.c (ix86_frame_pointer_required): Enable
5572         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
5574 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
5576         Revert
5577         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
5579         PR target/69140
5580         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5581         depending on frame_pointer_needed before remaining integer and SSE
5582         registers are saved.
5584 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5586         PR 1078
5587         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
5589 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5591         PR target/69171
5592         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
5593         Use the "xBm" constraint.
5594         (float<sseintvecmodelower><mode>2<mask_name><round_name):
5595         Likewise.
5596         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
5597         (sse_cvtsi2ssq<round_name>): Likewise.
5598         (sse_cvtss2si<round_name>): Likewise.
5599         (sse_cvtss2siq<round_name>): Likewise.
5600         (sse2_cvtsi2sdq<round_name>): Likewise.
5601         (sse2_cvtsd2si<round_name>): Likewise.
5602         (sse2_cvtsd2siq<round_name>): Likewise.
5603         * config/i386/subst.md (round_nimm_scalar_predicate): New
5604         predicate.
5606 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
5608         PR middle-end/67639
5609         * varasm.c (make_decl_rtl): Mark invalid register vars as
5610         DECL_EXTERNAL.
5612         PR rtl-optimization/66206
5613         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
5614         All callers changed.
5616 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
5618         PR tree-optimization/69141
5619         * tree-ssa-pre.c: Include langhooks.h.
5620         (eliminate_dom_walker::before_dom_children): Use
5621         lang_hooks.decl_printable_name instead of
5622         cgraph_node::get ()->name ().
5624         PR middle-end/68960
5625         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
5626         it and DECL_ALIGN too.
5628 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
5630         * config/mips/mips-ftypes.def: Sort to lexicographical order.
5632 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
5634         PR target/69140
5635         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5636         depending on frame_pointer_needed before remaining integer and SSE
5637         registers are saved.
5639 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5641         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
5642         mode iterator with VSX_M2.
5643         (*p9_vecstore_<mode>): Likewise.
5644         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
5645         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
5646         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
5647         (define_split for VSX_LE128 stores): Likewise.
5648         (define_peephole2 for TImode LE swaps): Likewise.
5649         (define_split for VSX_LE128 post-reload stores): Likewise.
5651 2016-01-06  Marek Polacek  <polacek@redhat.com>
5653         PR sanitizer/69099
5654         * convert.c (convert_to_integer_1): Adjust call to
5655         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
5656         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
5657         EXPR instead of ARG.
5658         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
5660 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5662         PR 1078
5663         * doc/extend.texi (RL78 Variable Attributes): New section.
5665 2016-01-05  Marek Polacek  <polacek@redhat.com>
5667         PR c/69104
5668         * builtins.c (get_memmodel): Use expansion point location rather than
5669         the input location.  Call warning_at rather than warning.
5670         (expand_builtin_atomic_compare_exchange): Likewise.
5671         (expand_builtin_atomic_load): Likewise.
5672         (expand_builtin_atomic_store): Likewise.
5673         (expand_builtin_atomic_clear): Likewise.
5675 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5677         PR target/68991
5678         * config/i386/i386.c (ix86_expand_vector_logical_operator):
5679         Replace nonimmediate_operand with vector_operand.
5680         * config/i386/predicates.md (vector_operand): New predicate.
5681         (general_vector_operand): Replace nonimmediate_operand with
5682         vector_operand.
5683         * config/i386/sse.md: Replace nonimmediate_operand with
5684         vector_operand and m constraint with Bm constraint on SSE
5685         patterns with 16-byte memory operand.
5686         * config/i386/subst.md (round_nimm_predicate): Replace
5687         nonimmediate_operand with vector_operand.
5688         (round_saeonly_nimm_predicate): Likewise.
5689         (round_saeonly_nimm_scalar_predicate): New.
5691 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5693         PR target/68991
5694         * config/i386/constraints.md (Bm): New constraint.
5695         * config/i386/predicates.md (vector_memory_operand): New
5696         predicate.
5697         * config/i386/sse.md: Replace xm with xBm in plusminus and
5698         any_logic patterns.
5700 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5702         PR 1078
5703         * doc/extend.texi (V850 Function Attributes): New section.
5704         (V850 Variable Attributes): New section.
5706 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5708         PR 1078
5709         * doc/extend.texi (MicroBlaze Function Attributes): Document
5710         interrupt_handler and fast_interrupt attributes.
5712 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
5714         PR other/60465
5715         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
5716         for local symbolic operands.
5717         * config/ia64/predicates.md (local_symbolic_operand64): New
5718         predicate.
5720 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5722         PR rtl-optimization/68651
5723         * combine.c (combine_simplify_rtx): Canonicalize x + x into
5724         x << 1.
5726 2016-01-05  Nathan Sidwell  <nathan@acm.org>
5728         * alias.c (compare_base_decls): Use symtab_node::get.
5730 2016-01-05  Nick Clifton  <nickc@redhat.com>
5732         PR target/68770
5733         * ira-costs.c (copy_cost): Initialise the t_icode field of the
5734         secondary_reload_info structure.
5736         PR target/66655
5737         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
5738         decls if weak support is available.
5740 2016-01-04  Martin Sebor  <msebor@redhat.com>
5742         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
5744 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5746         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5747         OPTION_MASK_P9_DFORM.
5749         * config/rs6000/constraints.md (wo constraint): New constraint for
5750         ISA 3.0 (power9).
5752         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
5753         for wo constraint.
5754         (rs6000_init_hard_regno_mode_ok): Likewise.
5756         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
5757         wo constraint.
5759         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
5760         expanders not to have constraints.  Add support for ISA 3.0 xxperm
5761         instruction.  Add support for fusing xxlor with xxperm.
5762         (altivec_vperm_<mode>_internal): Likewise.
5763         (altivec_vperm_v8hiv16qi): Likewise.
5764         (altivec_vperm_<mode>v16q): Likewise.
5765         (altivec_vperm_<mode>_uns): Likewise.
5766         (vperm_v8hiv4si): Likewise.
5767         (vperm_v16qiv8hi): Likewise.
5769         * doc/md.texi (RS/6000 constraints): Document wo constraint.
5771 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
5773         Update copyright years.
5775         * gcc.c (process_command): Update copyright notice dates.
5776         * gcov-dump.c (print_version): Ditto.
5777         * gcov.c (print_version): Ditto.
5778         * gcov-tool.c (print_version): Ditto.
5779         * gengtype.c (create_file): Ditto.
5780         * doc/cpp.texi: Bump @copying's copyright year.
5781         * doc/cppinternals.texi: Ditto.
5782         * doc/gcc.texi: Ditto.
5783         * doc/gccint.texi: Ditto.
5784         * doc/gcov.texi: Ditto.
5785         * doc/install.texi: Ditto.
5786         * doc/invoke.texi: Ditto.
5788 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5790         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
5791         modes larger than TImode as TImode if NEON is not enabled.
5793 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5795         PR target/69100
5796         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
5797         mode for %f0-%f31 only if TARGET_FPU.
5799 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5801         PR target/69072
5802         * config/sparc/sparc.c (scan_record_type): Take into account subfields
5803         to compute the PACKED_P predicate.
5804         (function_arg_record_value): Minor tweaks.
5806 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5808         * doc/install.texi (--with-multilib-list): Describe the meaning of the
5809         option for arm*-*-* targets.
5811 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5813         * doc/extend.texi (Common Function Attributes): Move docs for
5814         MSP430-specific attributes to....
5815         (MSP430 Function Attributes): ...here.  Delete the redundant
5816         entries and copy-edit the remaining text.
5817         (MSP430 Variable Attributes): Use uniform format for index
5818         entries and add a cross-reference to the corresponding function
5819         attribute docs.
5821 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
5823         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
5824         -finite-math typo.
5825         (x86 Options): Likewise.
5827 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
5829         PR 1078
5831         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
5832         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
5833         to corresponding attribute.
5835 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
5837         * doc/extend.texi (Common Function Attributes) <noplt>: Move
5838         to correct alphabetization of table.  Copy-edit and correct
5839         markup.
5840         <stack_protect>: Likewise.
5841         <target_clones>: Likewise.
5842         <simd>: Likewise.
5843         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
5844         Correct punctuation.
5845         (Code Gen Options) <-fno-plt>: Copy-edit.
5847 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5849         PR target/68917
5850         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
5851         SI values.  Explicitly convert SI to DI and vice-versa.
5853 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
5855         PR tree-optimization/69070
5856         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
5857         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
5859         PR sanitizer/69055
5860         * ubsan.c (ubsan_instrument_float_cast): Call
5861         initialize_sanitizer_builtins.
5863         PR target/69015
5864         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
5866 Copyright (C) 2016 Free Software Foundation, Inc.
5868 Copying and distribution of this file, with or without modification,
5869 are permitted in any medium without royalty provided the copyright
5870 notice and this notice are preserved.