Add option for whether ceil etc. can raise "inexact", adjust x86 conditions.
[official-gcc.git] / gcc / ChangeLog
blobd52fa3d1ffe49b35f3b9c460de036da17781e2dd
1 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
3         PR target/71276
4         PR target/71277
5         * common.opt (ffp-int-builtin-inexact): New option.
6         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
7         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
8         (ceil@var{m}2): Document dependence on this option.
9         * ipa-inline-transform.c (inline_call): Handle
10         flag_fp_int_builtin_inexact.
11         * ipa-inline.c (can_inline_edge_p): Likewise.
12         * config/i386/i386.md (rintxf2): Do not test
13         flag_unsafe_math_optimizations.
14         (rint<mode>2_frndint): New define_insn.
15         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
16         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
17         for 387 instead of extending and truncating.
18         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
19         !flag_trapping_math instead of flag_unsafe_math_optimizations.
20         Change to frndint<mode>2_<rounding>.
21         (frndintxf2_<rounding>_i387): Likewise.  Change to
22         frndint<mode>2_<rounding>_i387.
23         (<rounding_insn>xf2): Likewise.
24         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
25         !flag_trapping_math instead of flag_unsafe_math_optimizations for
26         x87.  Test TARGET_ROUND || !flag_trapping_math ||
27         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
28         SSE.  Use ROUND_NO_EXC in constant operand of
29         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
30         for 387 instead of extending and truncating.
32 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
33             Julia Koval  <julia.koval@intel.com>
35         PR target/66960
36         PR target/67630
37         PR target/67634
38         PR target/67841
39         PR target/68037
40         PR target/68618
41         PR target/68661
42         PR target/69575
43         PR target/69596
44         PR target/69734
45         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
46         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
47         all registers, except for function return registers if there are
48         no caller-saved registers.
49         (ix86_set_func_type): New function.
50         (ix86_set_current_function): Call ix86_set_func_type to set
51         no_caller_saved_registers and func_type.  Call reinit_regs if
52         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
53         nor x87 instructions in interrupt handler nor function with
54         no_caller_saved_registers attribute.
55         (ix86_function_ok_for_sibcall): Return false if there are no
56         caller-saved registers.
57         (type_natural_mode): Don't warn ABI change for MMX in interrupt
58         handler.
59         (ix86_function_arg_advance): Skip for callee in interrupt
60         handler.
61         (ix86_function_arg): Return special arguments in interrupt
62         handler.
63         (ix86_promote_function_mode): Promote pointer to word_mode only
64         for normal functions.
65         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
66         interrupt handler.
67         (ix86_epilogue_uses): New function.
68         (ix86_hard_regno_scratch_ok): Likewise.
69         (ix86_save_reg): Preserve all registers in interrupt handler
70         after reload.  Preserve all registers, except for function
71         return registers, if there are no caller-saved registers after
72         reload.
73         (find_drap_reg): Always use callee-saved register if there are
74         no caller-saved registers.
75         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
76         for interrupt handler.
77         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
78         Emit cld instruction if stringops are used in interrupt handler
79         or interrupt handler isn't a leaf function.
80         (ix86_expand_epilogue): Generate interrupt return for interrupt
81         handler and pop the 'ERROR_CODE' off the stack before interrupt
82         return in exception handler.
83         (ix86_expand_call): Disallow calling interrupt handler directly.
84         If there are no caller-saved registers, mark all registers that
85         are clobbered by the call which returns as clobbered.
86         (ix86_handle_no_caller_saved_registers_attribute): New function.
87         (ix86_handle_interrupt_attribute): Likewise.
88         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
89         attributes.
90         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
91         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
92         accumulation in interrupt function if stack may be realigned to
93         avoid DRAP.
94         (EPILOGUE_USES): New.
95         (function_type): New enum.
96         (machine_function): Add func_type and no_caller_saved_registers.
97         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
98         (interrupt_return): New pattern.
99         * doc/extend.texi: Document x86 interrupt and
100         no_caller_saved_registers attributes.
102 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
104         PR tree-optimization/52171
105         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
106         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
107         Look for constant strings.  Move some code to emit_block_cmp_hints
108         and use it.
109         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
110         * defaults.h (COMPARE_MAX_PIECES): New macro.
111         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
112         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
113         (clear_by_pieces_1): Don't declare.  Move definition before use.
114         (can_do_by_pieces): New static function.
115         (can_move_by_pieces): Use it.  Return bool.
116         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
117         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
118         (class pieces_addr); New.
119         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
120         pieces_addr::adjust, pieces_addr::increment_address,
121         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
122         functions for it.
123         (class op_by_pieces_d): New.
124         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
125         functions for it.
126         (class move_by_pieces_d, class compare_by_pieces_d,
127         class store_by_pieces_d): New subclasses of op_by_pieces_d.
128         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
129         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
130         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
131         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
132         compare_by_pieces_d::finish_mode): New member functions.
133         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
134         functions.
135         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
136         (emit_block_cmp_hints): New function.
137         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
138         use the newly defined classes.
139         * expr.h (by_pieces_constfn): New typedef.
140         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
141         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
142         (move_by_pieces_ninsns): Don't declare.
143         (can_move_by_pieces): Change return value to bool.
144         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
145         (compare_by_pieces_branch_ratio): New hook.
146         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
147         (by_pieces_ninsns): Declare.
148         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
149         COMPARE_BY_PIECES.
150         (default_compare_by_pieces_branch_ratio): New function.
151         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
152         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
153         * doc/tm.texi: Regenerate.
154         * tree-ssa-strlen.c: Include "builtins.h".
155         (handle_builtin_memcmp): New static function.
156         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
157         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
159 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
161         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
162         relevant stmts which are simple and invariant.
163         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
164         instead of simple and invariant
166 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
168         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
169         (vectorizable_reduction): Check for new relevant state.
170         (vectorizable_live_operation): vectorize live stmts using
171         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
172         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
173         (vect_stmt_relevant_p): Check for stmts which are only used live.
174         (process_use): Use of a stmt does not inherit it's live value.
175         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
176         (vect_analyze_stmt): Check for new relevant state.
177         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
178         outside the loop, but not inside it.
180 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
182         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New
183         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New
184         (vect_get_vec_def_for_operand): Split out code.
186 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
188         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
190 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
192         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
194 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
196         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
198 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
200         PR middle-end/71387
201         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
202         to noreturn e->callee->decl that has void return type and void
203         arguments, adjust gimple_call_fntype and remove lhs even if it had
204         previously addressable type.
206 2016-06-02  Jeff Law  <law@redhat.com>
208         PR tree-optimization/71328
209         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
210         error when checking for a jump back onto the copied path.
212 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
214         * config/microblaze/microblaze.c (get_branch_target): Add return
215         NULL_RTX for the non-CALL_P case.
216         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
217         (insert_wic): Remove unused local "j".
219 2016-06-02  Martin Liska  <mliska@suse.cz>
221         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
223 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
224             Julia Koval  <julia.koval@intel.com>
226         * function.c (assign_parm_setup_stack): Force source into a
227         register if needed.
228         * target.def (function_incoming_arg): Update documentation to
229         allow arbitrary address computation based on hard register.
230         * doc/tm.texi: Regenerated.
232 2016-06-02  Martin Liska  <mliska@suse.cz>
234         * predict.c (combine_predictions_for_bb): Fix first match in
235         cases where a first predictor contains more than one occurence
236         in list of predictors.  Take the best value in such case.
238 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
240         PR rtl-optimization/71295
241         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
242         offset would go over the size of the inner mode reject it.
244 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
246         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
247         x=x,x and v=v,m instead of x=x,m.
249         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
250         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
251         alternative to v=rm,C.
253         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
254         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
255         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
256         instead of vex for the last two above mentioned alternatives.
258 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
260         PR target/70830
261         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
263 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
265         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
267 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
269         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
270         from int to unsigned.
272 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
274         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
275         alternatives, eliminating preferred register class.  Add support
276         for the MTVSRDD instruction in ISA 3.0.
277         (vsx_splat_v4si_internal): Use splat_input_operand instead of
278         reg_or_indexed_operand.
279         (vsx_splat_v4sf_internal): Likewise.
281 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
283         PR target/71186
284         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
285         for loading up all 0's or all 1's.
287 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
289         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
291 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
293         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
294         extension.
295         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
296         * gcc.c (set_source_date_epoch_envvar): New function, sets
297         the SOURCE_DATE_EPOCH environment variable to the current time.
299 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
301         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
302         the factor for live Phi nodes.
304 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
306         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
307         * tree-parloops.c (parallelize_loops): likewise.
308         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
309         tree_unswitch_outer_loop): likewise.
311 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
313         PR middle-end/71371
314         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
315         around creation of the temporary.
317 2016-06-01  Richard Biener  <rguenther@suse.de>
319         PR tree-optimization/71366
320         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
321         (unloop_loops): Move removing edges here ...
322         (try_unroll_loop_completely): ... from here.
323         (try_peel_loop): ... and here.
324         (tree_unroll_loops_completely_1): Track parent loops via
325         bitmap of header BBs.
326         (tree_unroll_loops_completely): Adjust for that.
328 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
330         * config/rs6000/altivec.h (vec_slv): New macro.
331         (vec_srv): New macro.
332         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
333         (UNSPEC_VSRV): New value.
334         (vslv): New insn.
335         (vsrv): New insn.
336         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
337         (vsrv): New builtin definition.
338         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
339         define argument types for new builtin.
340         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
341         new builtin.
342         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
343         functions. 
345 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
346             Jocelyn Mayer  <l_indien@magic.fr>
348         PR target/67310
349         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
350         detect processor family for signature_CENTAUR_ebx.
351         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
352         signature_CENTAUR_ebx.
353         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
354         <default>: Pass x86-64 for has_longmode.
356 2016-06-01  Nathan Sidwell  <nathan@acm.org>
358         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
359         undefined weak.
361 2016-06-01  Richard Biener  <rguenther@suse.de>
363         PR tree-optimization/71261
364         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
365         of stmts successfully put in the bool pattern.  Remove
366         single-use restriction.
367         (adjust_bool_pattern_cast): Add cast at the use site via the
368         pattern def sequence.
369         (adjust_bool_pattern): Remove recursion, maintain a hash-map
370         of patterned defs.  Use the pattern def seqence instead of
371         multiple independent patterns.
372         (sort_after_uid): New qsort compare function.
373         (adjust_bool_stmts): New function to process stmts in the bool
374         pattern in IL order.
375         (vect_recog_bool_pattern): Adjust.
376         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
377         (ifcvt_walk_pattern_tree): Likewise.
378         (stmt_is_root_of_bool_pattern): Likewise.
379         (ifcvt_repair_bool_pattern): Likewise.
380         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
382 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
384         * loop-unroll.c (decide_unroll_constant_iterations,
385         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
386         likely upper bounds.
387         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
389 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
391         * tree-core.h (enum omp_clause_code): Remove
392         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
394 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
396         * config/arm/sync.md (arm_store_exclusive<mode>):
397         Use 'H' output modifier on operands[2] rather than creating a new
398         entry in out-of-bounds memory of the operands array.
399         (arm_store_release_exclusivedi): Likewise.
401 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
403         * config/arm/arm.c (arm_fusion_enabled_p): New function.
404         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
405         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
406         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
408 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
410         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
411         into account live statements for mask producers.
413 2016-06-01  Richard Biener  <rguenther@suse.de>
415         PR tree-optimization/71311
416         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
417         restrict to non-INTEGER_CST @0.
419 2016-06-01  Richard Biener  <rguenther@suse.de>
421         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
422         (relational patterns): Use :c to avoid pattern duplications.
424 2016-06-01  Richard Biener  <rguenther@suse.de>
426         * genmatch.c (comparison_code_p): New predicate.
427         (swap_tree_comparison): New function.
428         (commutate): Add for_vec parameter to append new for entries.
429         Support commutating relational operators by swapping it alongside
430         operands.
431         (lower_commutative): Adjust.
432         (dt_simplify::gen): Do not pass artificial operators to gen
433         functions.
434         (decision_tree::gen): Do not add artificial operators as parameters.
435         (parser::parse_expr): Verify operator commutativity when :c is
436         applied.  Allow :C to override this.
437         * match.pd: Adjust patterns to use :C instead of :c where required.
439 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
441         PR tree-optimization/71077
442         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
443         the combining step, use boolean_false_node and boolean_true_node
444         as the designated false/true return values.
446 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
448         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
449         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
450         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
451         PRED_LOOP_EXIT.
453 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
455         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
456         of flags impliying the register renaming.
457         * toplev.c (process_options): Do not imply flag_rename_registers with
458         loop peeling.
460 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
462         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
463         default implementation.
465 2016-05-31  Nathan Sidwell  <nathan@acm.org>
467         * dwarf2out.c (cur_line_info_table): Add GTY marker.
469 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
471         * config/sh/constraints.md (b): Remove constraint.
472         * config/sh/predicates.md (arith_reg_operand): Remove
473         TARGET_REGISTER_P.
474         * config/sh/sh-modes.def (PDI): Remove.
475         * config/sh/sh.c (sh_target_reg_class,
476         sh_optimize_target_register_callee_saved): Remove functions.
477         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
478         (sh_expand_epilogue): Update comment.
479         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
480         sh_secondary_reload): Remove TARGET_REGS related code.
481         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
482         TARGET_REGISTER_P): Remove macros.
483         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
484         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
485         TR1_REG, TR2_REG): Remove constants.
486         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
488 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
490         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
491         define_expand patterns.
492         (adddi3_compact): Rename to adddi3.
493         (subdi3_compact): Rename to subdi3.
494         (*negdi2): Rename to negdi2.
495         (*abs<mode>2): Rename to abs<mode>2.
497 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
499         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
500         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
501         (atomic_sub_fetchsi): ... this new pattern.
502         (mvtc): Add CC_REG clobber.
504 2016-05-31  Marek Polacek  <polacek@redhat.com>
506         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
508 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
510         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
511         aarch64_fusion_enabled_p to check for fusion capabilities.
513 2016-05-31  Richard Biener  <rguenther@suse.de>
515         PR tree-optimization/71352
516         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
517         minus one and a negate.
519 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
521         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
522         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
523         Delete prototype.
524         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
525         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
526         Remove use of aarch64_simd_attr_length_move, set length attribute
527         directly.
528         (*aarch64_be_movoi): Likewise.
529         (*aarch64_be_movci): Likewise.
530         (*aarch64_be_movxi): Likewise.
532 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
534         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
535         It no longer does that.
536         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
538 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
540         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
541         attribute __unused__.
543 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
545         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
546         * config/arm/arm.c (arm_arch_thumb1): Define.
547         (arm_option_override): Initialize arm_arch_thumb1.
548         * config/arm/arm.h (arm_arch_thumb1): Declare.
549         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
550         support Thumb-1 ISA.
552 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
554         PR target/71346
555         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
556         `Yv' for scalar operand.
558 2016-05-31  Tom de Vries  <tom@codesourcery.com>
560         PR tree-optimization/69068
561         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
562         phis with more than two args.
564 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
566         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
567         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
568         target.
570 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
572         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
573         tune_64.
574         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
575         support on SPARC.
576         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
577         cpu_32, cpu_64, tune_32 and tune_64.
578         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
580 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
582         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
584 2016-05-30  Andi Kleen  <ak@linux.intel.com>
586         * auto-profile.c (read_profile): Replace asserts with errors
587         when file does not exist.
588         * gcov-io.c (gcov_read_words): Dito.
590 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
592         * tree-cfg.c (print_loop): Print likely upper bounds.
594 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
596         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
597         * opts.c (default_options): Enable peel loops at -O3.
598         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
599         (try_peel_loop): Do not re-peel already peeled loops;
600         use likely upper bounds; fix profile updating.
601         (pass_complete_unroll::execute): Initialize peeled_loops.
603 2016-05-30  Martin Liska  <mliska@suse.cz>
605         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
606         computed costs by frequency of BB they belong to.
607         (get_scaled_computation_cost_at): New function.
609 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
610             Marc Glisse  <marc.glisse@inria.fr>
612         PR tree-optimization/71289
613         * match.pd (-1 / B < A, A > -1 / B): New transformations.
615 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
617         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
619 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
621         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
622         for peeled copies; avoid underflow when updating estimates; correctly
623         scale loop profile.
625 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
627         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
628         r236875. Corrected oe3 to oe2 as obvious.
630 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
632         PR middle-end/71269
633         PR middle-end/71252
634         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
635         that inserted stmt will not dominate stmts that defines its operand.
636         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
637         (rewrite_expr_tree_parallel): Likewise.
639 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
641         PR middle-end/71252
642         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
643         all fields including stmt_to_insert are swapped.
645 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
647         * predict.h (force_edge_cold): Declare.
648         * predict.c (force_edge_cold): New function.
649         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
650         updating.
651         (canonicalize_loop_induction_variables): Fix formating.
653 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
655         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
656         (visium_expand_copysign): Use gen_int_mode directly.
657         (visium_compute_frame_size): Minor tweaks.
659 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
661         * tree-vect-loop.c (vect_analyze_loop_2): Use
662         likely_max_stmt_executions_int.
664 2016-05-30  Tom de Vries  <tom@codesourcery.com>
666         PR tree-optimization/69067
667         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
669 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
671         PR target/71245
672         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
673         New peepholes to remove unneeded fild/fistp pairs.
674         (define_peephole2 atomic_loaddi_fpu): Ditto.
676 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
678         * predict.c (maybe_hot_frequency_p): Avoid division.
680 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
682         * doc/install.texi: Use https for shop.fsf.org.
684 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
686         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
687         likely_max_stmt_executions_int.
689 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
691         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
692         likely_max_stmt_executions_int.
694 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
696         * profile.c (compute_branch_probabilities): Do not report hitrates
697         here.
698         (branch_prob): Report hitrates here.
699         * predict.c (gimple_predict_edge): Do not assert profile status;
700         fix formatting issues.
702 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
704         * predict.c (edge_predicted_by_p): New function.
705         (predict_paths_for_bb): Do not put multiple predictions of the same type
706         on one edge.
708 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
710         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
711         commit.
713 2016-05-28  Alan Modra  <amodra@gmail.com>
715         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
717 2016-05-28  Alan Modra  <amodra@gmail.com>
719         PR rtl-optimization/71275
720         * ira.c (ira): Free dominance info.
722 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
724         * doc/sourcebuild.texi: New address for upstream Go repository.
726 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
728         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
729         (TARGET_ARM_V7M): Likewise.
731 2016-05-26  Jeff Law  <law@redhat.com>
733         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
734         (thread_across_edge): Remove calls to find_jump_threads_backwards.
735         * passes.def: Add jump threading passes before DOM/VRP.
736         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
737         argument to a basic block from an edge.  Remove tests which are
738         handled elsewhere.
739         (pass_data_thread_jumps, class pass_thread_jumps): New.
740         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
741         (make_pass_thread_jumps): Likewise.
742         * tree-pass.h (make_pass_thread_jumps): Declare.
744 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
746         * config/visium/visium-protos.h (split_double_move): Rename into...
747         (visium_split_double_move): ...this.
748         (visium_split_double_add): Declare.
749         * config/visium/visium.c (split_double_move): Rename into...
750         (visium_split_double_move): ...this.
751         (visium_split_double_add): New function.
752         (visium_expand_copysign): Renumber operands for consistency.
753         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
754         (DFmode move splitter): Likewise.
755         (*addi3_insn): Split by means of visium_split_double_add.
756         (*adddi3_insn_flags): Delete.
757         (*plus_plus_sltu<subst_arith>): New insn.
758         (*subdi3_insn): Split by means of visium_split_double_add.
759         (subdi3_insn_flags): Delete.
760         (*minus_minus_sltu<subst_arith>): New insn.
761         (*negdi2_insn): Split by means of visium_split_double_add.
762         (*negdi2_insn_flags): Delete.
764 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
766         * configure.ac: Treat a --with-headers option without argument
767         the same as the default (i.e. consult sys-include directory).
768         * configure: Regenerate.
770 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
772         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
773         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
774         prototype.
775         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
776         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
778 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
780         PR target/63596
781         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
782         tree-stdarg analysis results.
783         (aarch64_setup_incoming_varargs): Likewise.
785 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
787         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
788         va_list_gpr_counter_field and va_list_fpr_counter_field.
790 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
792         PR67609
793         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
794         * config/aarch64/aarch64.c
795         (aarch64_cannot_change_mode_class): Remove function.
796         * config/aarch64/aarch64-protos.h
797         (aarch64_cannot_change_mode_class): Remove.
799 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
801         * cfgloop.c (record_niter_bound): Record likely upper bounds.
802         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
803         get_likely_max_loop_iterations_int): New.
804         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
805         any_likely_upper_bound.
806         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
807         Declare.
808         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
809         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
810         upper bound.
811         (unroll_loop_constant_iterations): Likewise.
812         (unroll_loop_runtime_iterations): Likewise.
813         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
814         * lto-streamer-out.c (output_cfg): Likewise.
815         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
816         bounds.
817         (canonicalize_loop_induction_variables): Dump likely upper bounds.
818         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
819         (likely_max_loop_iterations): New.
820         (likely_max_loop_iterations_int): New.
821         (likely_max_stmt_executions): New.
822         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
823         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
824         likely_max_stmt_executions): Declare.
826 2016-05-27  Marek Polacek  <polacek@redhat.com>
828         PR middle-end/71308
829         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
831 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
833         * config/s390/s390.md (2x risbg splitters): Use
834         reg_overlap_mentioned_p instead of rtx_equal_p.
836 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
838         * combine.c (make_compound_operation): Take known zero bits into
839         account when checking for possible zero_extend.
841 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
843         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
844         Use const_int_operand for operand 2 predicate.  Simplify expand code
845         as a result.
847 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
849         PR middle-end/71279
850         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
851         into comparison.
853 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
855         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
856         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
857         that returns CC_SESWPmode and CC_ZESWPmode.
858         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
859         and CC_SESWPmode.
860         (aarch64_rtx_costs): Likewise.
862 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
864         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
865         for ISA 3.0 min/max support.
866         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
867         conditional move support.
868         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
869         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
870         available.
871         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
872         conditional moves where the comparison type is different from move
873         type.
874         (fp_minmax): New code iterator for smin/smax.
875         (minmax): New code attributes for min/max.
876         (SMINMAX): Likewise.
877         (smax<mode>3): Combine min, max insns into one insn using the
878         fp_minmax code iterator.  Add support for ISA 3.0 min/max
879         instructions that don't need -ffast-math.
880         (s<minmax><mode>3): Likewise.
881         (smax<mode>3_vsx): Likewise.
882         (smin<mode>3): Likewise.
883         (s<minmax><mode>3_vsx): Likewise.
884         (smin<mode>3_vsx): Likewise.
885         (pre-VSX min/max splitters): Likewise.
886         (s<minmax><mode>3_fpr): Likewise.
887         (movsfcc): Rewrite floating point conditional moves to combine
888         SFmode/DFmode into a single insn.
889         (mov<mode>cc): Likewise.
890         (movdfcc): Likewise.
891         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
892         SFDF2 iterators to handle all combinations.
893         (fseldfsf4): Likewise.
894         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
895         (fseldfdf4): Likewise.
896         (fselsfdf4): Likewise.
897         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
898         comparison instructions that set a 0/-1 mask, and use it for
899         floating point conditional move via XXSEL.
900         (fpmask<mode>): Likewise.
901         (xxsel<mode>): Likewise.
902         * config/rs6000/predicates.md (min_max_operator): Delete, no
903         longer used.
904         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
905         instructions that generate a 0/-1 mask for use with XXSEL.
906         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
907         say whether floating point min/max is available, either through
908         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
909         (TARGET_MINMAX_DF): Likewise.
911 2016-05-27  Alan Modra  <amodra@gmail.com>
913         PR rtl-optimization/71275
914         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
915         for update_equiv_regs and combine_and_move_insns.
917 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
919         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
920         if_then_else or cond RTXes to calculate attribute value.
921         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
922         <attr "length_immediate>: Ditto.
923         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
924         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
925         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
926         <attr "type">: Ditto.
927         <attr "prefix_data16">: Ditto.
928         <attr "prefix_extra">: Ditto.
929         <attr "length_immediate">: Ditto.
930         <attr "prefix">: Ditto.
931         (vec_set<mode>_0) <attr "isa">: Ditto.
932         <attr "prefix_extra">: Ditto.
933         <attr "length_immediate">: Ditto.
934         <attr "prefix">: Ditto.
935         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
936         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
937         (sse2_storelpd) <attr "prefix_data16">: Ditto.
938         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
939         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
940         <attr "length_immediate">: Ditto.
941         <attr "prefix">: Ditto.
942         (sse2_movsd) <attr "length_immediate">: Ditto.
943         <attr "prefix">: Ditto.
944         (vec_concatv2df)  <attr "isa">: Ditto.
945         <attr "prefix">: Ditto.
946         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
947         (*vec_extractv2di_1) <attr "isa">: Ditto.
948         <attr "type">: Ditto.
949         <attr "length_immediate">: Ditto.
950         <attr "prefix_rex">: Ditto.
951         <attr "prefix_extra">: Ditto.
952         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
953         <attr "prefix_extra">: Ditto.
954         <attr "length_immediate">: Ditto.
955         (vec_concatv2di) <attr "isa">: Ditto.
956         <attr "prefix_extra">: Ditto.
957         <attr "length_immediate">: Ditto.
958         <attr "prefix">: Ditto.
960 2016-05-26  Martin Liska  <mliska@suse.cz>
962         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
963         function.
964         (operator+): Likewise.
965         (operator-): Likewise.
966         (comp_cost::operator+=): Likewise.
967         (comp_cost::operator-=): Likewise.
968         (comp_cost::operator/=): Likewise.
969         (comp_cost::operator*=): Likewise.
970         (operator<): Likewise.
971         (operator==): Likewise.
972         (operator<=): Likewise.
973         (new_cost): Remove.
974         (infinite_cost_p): Likewise.
975         (add_costs): Likewise.
976         (sub_costs): Likewise.
977         (compare_costs): Likewise.
978         (set_group_iv_cost): Use the newly introduced functions.
979         (get_address_cost): Likewise.
980         (get_shiftadd_cost): Likewise.
981         (force_expr_to_var_cost): Likewise.
982         (split_address_cost): Likewise.
983         (ptr_difference_cost): Likewise.
984         (difference_cost): Likewise.
985         (get_computation_cost_at): Likewise.
986         (determine_group_iv_cost_generic): Likewise.
987         (determine_group_iv_cost_address): Likewise.
988         (determine_group_iv_cost_cond): Likewise.
989         (autoinc_possible_for_pair): Likewise.
990         (determine_group_iv_costs): Likewise.
991         (cheaper_cost_pair): Likewise.
992         (iv_ca_recount_cost): Likewise.
993         (iv_ca_set_no_cp): Likewise.
994         (iv_ca_set_cp): Likewise.
995         (iv_ca_cost): Likewise.
996         (iv_ca_new): Likewise.
997         (iv_ca_dump): Likewise.
998         (iv_ca_narrow): Likewise.
999         (iv_ca_prune): Likewise.
1000         (iv_ca_replace): Likewise.
1001         (try_add_cand_for): Likewise.
1002         (try_improve_iv_set): Likewise.
1003         (find_optimal_iv_set): Likewise.
1005 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
1007         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
1008         that internal functions will clobber all caller-saved registers.
1010 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
1012         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
1013         Return a better case_values_threshold when optimizing.
1015 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
1017         * config/aarch64/aarch64-simd.md (aarch64_combinez):
1018         Add ? to integer variant.
1019         (aarch64_combinez_be): Likewise.
1021 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
1023         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
1024         instead of x constraint.
1025         (vcvtps2ph256<mask_name>): Likewise.
1027         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
1028         alternative.  Formatting fix.
1030         * config/i386/sse.md
1031         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
1032         to ...
1033         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
1034         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
1035         maybe_evex prefix instead of vex.
1036         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
1037         EXT_REX_SSE_REG_P (op0) case in the splitter.
1039 2016-05-25  Jeff Law  <law@redhat.com>
1041         PR tree-optimization/71272
1042         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
1043         Update comments.  Add test for empty path.
1045 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
1047         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
1048         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
1049         special case builtin.
1050         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1051         code for ALTIVEC_BUILTIN_VEC_CMPNE.
1052         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1053         for __builtin_vec_cmpne.
1055 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1057         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
1058         redundant test and bail out if the type of the new operand is not
1059         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
1061 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
1063         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
1064         (x_ix86_target_flags_explicit): Remove.
1065         * config/i386/i386.c (ix86_function_specific_save): Do not copy
1066         x_ix86_target_flags_explicit.
1067         (ix86_function_specific_restore): Ditto.
1069 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
1070             H.J. Lu  <hongjiu.lu@intel.com>
1072         PR target/70738
1073         * common/config/i386/i386-common.c
1074         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
1075         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
1076         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
1077         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
1078         (-mgeneral-regs-only): Add new option.
1079         * config/i386/i386.c (ix86_option_override_internal): Don't enable
1080         x87 instructions if only general registers are allowed.
1081         (ix86_target_string): Add ix86_flags argument. Handle additional
1082         flags options through ix86_flags argument.  Update all callers.
1083         * doc/invoke.texi: Document -mgeneral-regs-only.
1085 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1087         PR rtl-optimization/66940
1088         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
1089         decrementing desired_val will not overflow before performing these
1090         operations.
1092 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
1094         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
1095         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
1096         * config/i386/i386.c (enum ix86_builtins): Add
1097         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
1098         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
1099         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
1100         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
1101         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
1102         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
1103         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
1104         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
1105         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
1106         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
1107         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
1108         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
1109         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
1110         __builtin_ia32_cvtps2dq512_mask.
1111         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
1112         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
1113         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
1114         * config/i386/sse.md
1115         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
1116         Rename to ...
1117         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
1118         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
1119         to ...
1120         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
1121         (avx512f_vec_pack_sfix_v8df): New define_expand.
1122         (avx512f_roundpd512): Rename to ...
1123         (avx512f_round<castmode>512): ... this.  Change iterator.
1124         (avx512f_roundps512_sfix): New define_expand.
1125         (round<mode>2_sfix): Change iterator.
1127 2016-05-25  Nick Clifton  <nickc@redhat.com>
1129         * config/msp430/msp430.c (msp430_attr): Produce an error if a
1130         static interrupt handler is detected.
1131         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
1132         default linker script.
1133         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
1134         the low part of a symbolic pointer.
1136 2016-05-25  Richard Biener  <rguenther@suse.de>
1138         PR tree-optimization/71261
1139         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
1140         interesting stmt instead of immediate uses when looking
1141         for the use operand to replace.
1143 2016-05-25  Martin Liska  <mliska@suse.cz>
1145         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
1147 2016-05-25  Richard Biener  <rguenther@suse.de>
1149         PR tree-optimization/71264
1150         * tree-vect-stmts.c (vect_init_vector): Properly deal with
1151         vector type val.
1153 2016-05-25  Martin Liska  <mliska@suse.cz>
1155         PR tree-optimization/71239
1156         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
1157         if DECL_SIZE is NULL.
1159 2016-05-25  Richard Biener  <rguenther@suse.de>
1161         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
1162         * tree-if-conv.c (pass_data_if_conversion): Use it.
1164 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1166         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
1167         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
1168         * varpool.c (varpool_node::get_availability): Likewise.
1170 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1172         * config/rs6000/altivec.md (VNEG iterator): New iterator for
1173         VNEGW/VNEGD instructions.
1174         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
1175         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
1176         support for ISA 3.0 VNEGW/VNEGD instructions.
1178 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
1180         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
1181         pointers inside OACC_DATA regions.
1182         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
1183         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
1184         (gimplify_adjust_omp_clauses): Fix typo in comment.
1186 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1188         * config/rs6000/altivec.md (VParity): New mode iterator for vector
1189         parity built-in functions.
1190         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
1191         zeros.
1192         (p9v_parity<mode>2): Likewise.
1193         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
1194         parity.
1195         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
1196         (parity<mode>2): ISA 3.0 expander for vector parity.
1197         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
1198         power9 built-ins.
1199         (BU_P9_64BIT_MISC_0): Likewise.
1200         (BU_P9_MISC_0): Likewise.
1201         (BU_P9V_AV_1): Likewise.
1202         (BU_P9V_AV_2): Likewise.
1203         (BU_P9V_AV_3): Likewise.
1204         (BU_P9V_AV_P): Likewise.
1205         (BU_P9V_VSX_1): Likewise.
1206         (BU_P9V_OVERLOAD_1): Likewise.
1207         (BU_P9V_OVERLOAD_2): Likewise.
1208         (BU_P9V_OVERLOAD_3): Likewise.
1209         (VCTZB): Add vector count trailing zeros support.
1210         (VCTZH): Likewise.
1211         (VCTZW): Likewise.
1212         (VCTZD): Likewise.
1213         (VPRTYBD): Add vector parity support.
1214         (VPRTYBQ): Likewise.
1215         (VPRTYBW): Likewise.
1216         (VCTZ): Add overloaded vector count trailing zeros support.
1217         (VPRTYB): Add overloaded vector parity support.
1218         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1219         overloaded vector count trailing zeros and parity instructions.
1220         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
1221         vector parity support.
1222         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
1223         trailing zeros support.
1224         (vec_cntlz): Likewise.
1225         (vec_vctzb): Likewise.
1226         (vec_vctzd): Likewise.
1227         (vec_vctzh): Likewise.
1228         (vec_vctzw): Likewise.
1229         (vec_vprtyb): Add ISA 3.0 vector parity support.
1230         (vec_vprtybd): Likewise.
1231         (vec_vprtybw): Likewise.
1232         (vec_vprtybq): Likewise.
1233         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1234         the ISA 3.0 vector count trailing zeros and vector parity built-in
1235         functions.
1237 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
1239         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
1240         when there is stmt_to_insert.
1242 2016-05-24  Martin Sebor  <msebor@redhat.com>
1244         PR c++/71147
1245         * tree.h (complete_or_array_type_p): New inline function.
1247 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
1249         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
1250         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
1251         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
1253         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
1254         Limit 1st alternative to noavx isa, split 2nd alternative into one
1255         noavx and one avx alternative, use *x and Bm in the former and
1256         x and m in the latter.
1258         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
1259         of sse4 for the first alternative, drop %v from the template
1260         and d operand modifier.  Split second alternative into one sse4_noavx
1261         and one avx alternative, use *x instead of *v in the former and v
1262         instead of *v in the latter.
1263         (*sse4_1_extractps): Use noavx isa instead of * for the first
1264         alternative, drop %v from the template.  Split second alternative into
1265         one noavx and one avx alternative, use *x instead of *v in the
1266         former and v instead of *v in the latter.
1267         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
1268         with noavx and the last one with avx.
1269         (sse4_1_phminposuw): Guard first alternative with noavx isa,
1270         split the second one into one noavx and one avx alternative,
1271         use *x and Bm in the former and x and m in the latter one.
1272         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
1273         alternatives.
1275         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
1276         first two alternatives to noavx, use *x instead of *v in the second
1277         one, add avx alternative without *.
1278         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
1279         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
1280         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
1282 2016-05-24  Jeff Law  <law@redhat.com>
1284         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
1285         New function, extracted from...
1286         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
1287         Allow simple copies and constant initializations in the SSA chain.
1289 2016-05-24  Marek Polacek  <polacek@redhat.com>
1291         PR c/71249
1292         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
1293         scope.
1295 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
1297         PR c++/71257
1298         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1299         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1300         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
1301         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
1302         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
1304 2016-05-24  Richard Biener  <rguenther@suse.de>
1306         PR tree-optimization/71240
1307         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
1308         has integral type.
1310 2016-05-24  Richard Biener  <rguenther@suse.de>
1312         PR tree-optimization/71230
1313         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
1315 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
1317         * tree-vectorizer.h (vectorizable_comparison): Delete.
1318         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
1319         PURE_SLP_STMT check.
1320         * tree-vect-stmts.c (vectorizable_call): Likewise.
1321         (vectorizable_simd_clone_call): Likewise.
1322         (vectorizable_conversion): Likewise.
1323         (vectorizable_assignment): Likewise.
1324         (vectorizable_shift): Likewise.
1325         (vectorizable_operation): Likewise.
1326         (vectorizable_load): Likewise.
1327         (vectorizable_condition): Likewise.
1328         (vectorizable_store): Likewise.  Assert that we don't have
1329         hybrid SLP.
1330         (vectorizable_comparison): Make static.  Remove redundant
1331         PURE_SLP_STMT check.
1332         (vect_transform_stmt): Assert that we always have an slp_node
1333         if PURE_SLP_STMT.
1335 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1337         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
1338         operands[2] against 1 with comparison against CONST1_RTX.
1339         (<shift>di3_neon): Likewise.
1340         * config/arm/predicates.md (const0_operand): Replace with comparison
1341         against CONST0_RTX.
1343 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1345         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
1346         operands[2] against 1 with comparison against CONST1_RTX.
1347         (ashrdi3): Likewise.
1348         (lshrdi3): Likewise.
1349         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
1350         UINTVAL.
1351         (ashrsi3): Likewise.
1352         (lshrsi3): Likewise.
1353         (rotrsi3): Likewise.
1354         (define_split above *compareqi_eq0): Likewise.
1355         (define_split above "prologue"): Likewise.
1356         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
1357         * config/arm/predicates.md (shift_operator): Likewise.
1358         (shift_nomul_operator): Likewise.
1359         (sat_shift_operator): Likewise.
1360         (thumb1_cmp_operand): Likewise.
1361         (const_neon_scalar_shift_amount_operand): Replace manual range
1362         check with IN_RANGE.
1363         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
1364         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
1366 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1368         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
1369         with HOST_WIDE_INT_1.
1370         (insv): Likewise.
1371         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
1372         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
1373         (arm_canonicalize_comparison): Likewise.
1374         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
1375         HOST_WIDE_INT_1.
1376         (thumb1_size_rtx_costs): Likewise.
1377         (vfp_const_double_index): Replace cast of 1 to unsigned
1378         HOST_WIDE_INT with HOST_WIDE_INT_1U.
1379         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
1380         HOST_WIDE_INT_1.
1381         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
1382         HOST_WIDE_INT with HOST_WIDE_INT_1U.
1383         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
1384         HOST_WIDE_INT with HOST_WIDE_INT_1.
1386 2016-05-24  Marek Polacek  <polacek@redhat.com>
1388         * tree-cfg.h (should_remove_lhs_p): New predicate.
1389         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1390         * gimplify.c (gimplify_modify_expr): Likewise.
1391         * tree-cfg.c (verify_gimple_call): Likewise.
1392         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1393         * gimple-fold.c: Include "tree-cfg.h".
1394         (gimple_fold_call): Use should_remove_lhs_p.
1396 2016-05-24  Richard Biener  <rguenther@suse.de>
1398         PR tree-optimization/71253
1399         * cfganal.h (control_dependences): Make robust against edge
1400         and BB removal.
1401         (control_dependences::control_dependences): Remove edge_list argument.
1402         (control_dependences::get_edge): Remove.
1403         (control_dependences::get_edge_src): Add.
1404         (control_dependences::get_edge_dest): Likewise.
1405         (control_dependences::m_el): Make a vector of edge src/dest index.
1406         * cfganal.c (control_dependences::find_control_dependence): Adjust.
1407         (control_dependences::control_dependences): Likewise.
1408         (control_dependences::~control_dependence): Likewise.
1409         (control_dependences::get_edge): Remove.
1410         (control_dependences::get_edge_src): Add.
1411         (control_dependences::get_edge_dest): Likewise.
1412         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
1413         get_edge_src.
1414         (perform_tree_ssa_dce): Adjust.
1415         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
1416         get_edge_src.
1417         (pass_loop_distribution::execute): Adjust.  Do loop destroying
1418         conditional on changed.
1420 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1422         PR target/69857
1423         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
1424         return.  Reindent transformation comment and mention the ARM state
1425         behavior.
1427 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
1429         PR middle-end/71252
1430         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
1431         after build_and_add_sum creates new use stmt.
1433 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
1435         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
1436         load_lanes/grouped_load classification comes first.  Don't check
1437         whether the vectorization factor is a multiple of the group size
1438         for load_lanes.
1440 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
1442         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
1443         GROUP_GAP for single-element interleaving.
1444         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
1445         variable.
1447 2016-05-24  Richard Biener  <rguenther@suse.de>
1449         PR middle-end/70434
1450         PR c/69504
1451         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
1452         bases which are accessed with non-invariant indices.
1453         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
1454         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
1456 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
1458         PR middle-end/71170
1459         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
1460         (add_to_ops_vec): Add stmt_to_insert.
1461         (add_repeat_to_ops_vec): Init stmt_to_insert.
1462         (insert_stmt_before_use): New.
1463         (transform_add_to_multiply): Remove mult_stmt insertion and add it
1464         to ops vector.
1465         (get_ops): Init stmt_to_insert.
1466         (maybe_optimize_range_tests): Likewise.
1467         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
1468         (rewrite_expr_tree_parallel): Likewise.
1469         (reassociate_bb): Likewise.
1471 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1473         PR target/71201
1474         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
1475         ISA 3.0 xxperm fusion alternative.
1476         (altivec_vperm_v8hiv16qi): Likewise.
1477         (altivec_vperm_<mode>_uns_internal): Likewise.
1478         (vperm_v8hiv4si): Likewise.
1479         (vperm_v16qiv8hi): Likewise.
1481 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1482             Kelvin Nilsen  <kelvin@gcc.gnu.org>
1484         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
1485         vpermr/xxpermr on ISA 3.0.
1486         (altivec_expand_vec_perm_le): Likewise.
1487         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
1488         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
1489         ISA 3.0.
1491 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
1493         * config/i386/i386.h (IS_STACK_MODE): Enable for
1494         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
1495         SSE_FLOAT_MODE_P macros.
1496         * config/i386/i386.c (ix86_preferred_reload_class): Use
1497         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
1498         Cleanup regclass processing for CONST_DOUBLE_P.
1499         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
1500         (ix86_rtx_costs): Remove redundant TARGET_80387 check
1501         with IS_STACK_MODE macro.
1502         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
1503         with TARGET_SSE2.
1504         (*movdf_internal): Use IS_STACK_MODE macro.
1505         (*movsf_internal): Ditto.
1507 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
1509         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
1510         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
1512 2016-05-23  Jeff Law  <law@redhat.com>
1514         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
1515         extracted from ...
1516         (fsm_find_control_statement_thread_paths): Call it.
1518 2016-05-23  Martin Jambor  <mjambor@suse.cz>
1520         PR ipa/71234
1521         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
1522         from_global_constant if t is not NULL.
1524 2016-05-23  Marek Polacek  <polacek@redhat.com>
1526         PR c/49859
1527         * common.opt (Wswitch-unreachable): New option.
1528         * doc/invoke.texi: Document -Wswitch-unreachable.
1529         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
1530         warning.
1532 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
1534         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
1535         TMR_INDEX is non-NULL.
1537 2016-05-23  Richard Biener  <rguenther@suse.de>
1539         PR tree-optimization/71230
1540         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
1541         (try_special_add_to_ops): ... here.  Always test for single-use.
1543 2016-05-23  Martin Jambor  <mjambor@suse.cz>
1545         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
1546         default block if a PHI node in the original one would be resized.
1548 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1550         PR tree-optimization/58135
1551         * tree-vect-slp.c: When group size is not multiple
1552         of vector size, allow splitting of store group at
1553         vector boundary.
1555 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
1557         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
1559 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
1561         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1562         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
1563         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
1564         of 64x2.
1566         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
1567         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
1568         v constraint instead of x and vinserti32x4 insn.
1570         * config/i386/sse.md (i128vldq): New mode iterator.
1571         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
1572         avx512dq and avx512vl alternatives.
1574         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
1575         constraint, use maybe_evex prefix instead of vex.
1576         (vec_dupv4sf): Use v constraint instead of x for output
1577         operand except for noavx alternative, use Yv constraint
1578         instead of x for input.  Use maybe_evex prefix instead of vex.
1579         (*vec_dupv4si): Likewise.
1580         (*vec_dupv2di): Likewise.
1582 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
1584         PR middle-end/40921
1585         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
1586         (linearize_expr_tree): Call try_special_add_to_ops.
1587         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
1589 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1591         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
1592         to computed stack_usage.
1594 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1596         PR target/71103
1597         * config/avr/avr.md (define_expand "mov<mode>"): If the source
1598         operand is subreg (symbol_ref) then move the symbol ref to register.
1600 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
1602         * tree.c (array_at_struct_end_p): Look through MEM_REF.
1604 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1606         PR middle-end/71179
1607         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
1608         VECTOR type.
1610 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
1612         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
1613         ranges by calling get_single_symbol and tidy up.  Look more closely
1614         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
1616 2016-05-20  Jeff Law  <law@redhat.com>
1618         * bitmap.c (bitmap_find_bit): Remove useless test.
1620 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
1622         * function.c (thread_prologue_and_epilogue_insns): Commit the
1623         insertion of the epilogue.
1625 2016-05-20  Martin Jambor  <mjambor@suse.cz>
1627         PR tree-optimization/70884
1628         * tree-sra.c (initialize_constant_pool_replacements): Do not check
1629         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
1630         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
1631         of constant pool data as a reason for scalarization.
1633 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
1635         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
1636         for naked functions.
1637         (thumb1_expand_prologue): Likewise.
1639 2016-05-20  Nathan Sidwell  <nathan@acm.org>
1641         * config/nvptx/nptx.c (nvptx_option_override): Only set
1642         flag_toplevel_reorder, if not explicitly specified.  Set
1643         flag_no_common, unless explicitly specified.
1645 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
1647         * calls.c (can_implement_as_sibling_call_p): Mark param
1648         reg_parm_stack_space with ATTRIBUTE_UNUSED.
1650 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
1652         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
1653         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
1654         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
1655         constants.
1656         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
1657         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
1658         and CASE_CONST_ANY.
1660 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
1662         * config/nvptx/nvptx.md (sincossf3): New pattern.
1664 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
1666         * calls.c (maybe_complain_about_tail_call): New function.
1667         (initialize_argument_information): Call
1668         maybe_complain_about_tail_call when clearing *may_tailcall.
1669         (can_implement_as_sibling_call_p): Call
1670         maybe_complain_about_tail_call when returning false.
1671         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
1672         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
1673         if tail-call optimization fails.
1674         * cfgexpand.c (expand_call_stmt): Initialize
1675         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
1676         * gimple-pretty-print.c (dump_gimple_call): Dump
1677         gimple_call_must_tail_p.
1678         * gimple.c (gimple_build_call_from_tree): Call
1679         gimple_call_set_must_tail with the value of
1680         CALL_EXPR_MUST_TAIL_CALL.
1681         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
1682         (gimple_call_set_must_tail): New function.
1683         (gimple_call_must_tail_p): New function.
1684         * print-tree.c (print_node): Update printing of TREE_STATIC
1685         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
1686         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
1687         trailing comment listing applicable flags.
1688         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
1690 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
1692         * calls.c (expand_call): Move "Rest of purposes for tail call
1693         optimizations to fail" to...
1694         (can_implement_as_sibling_call_p): ...this new function, and
1695         split into multiple "if" statements.
1697 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
1699         * cfgloop.h (expected_loop_iterations_unbounded,
1700         expected_loop_iterations): Unconstify.
1701         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
1702         profile with known upper bound; return 3 when profile is absent.
1703         (expected_loop_iterations): Update.
1705 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
1707         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
1708         and get_max_loop_iterations_int.
1710 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
1712         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
1713         realistic upper bounds here.
1715 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
1717         PR c++/71210
1718         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
1719         calls if the LHS is variable length or has addressable type.
1720         If targets[0]->decl is a noreturn call with void return type and
1721         zero arguments, adjust fntype and remove lhs in that case.
1723 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
1725         PR tree-optimization/71079
1726         PR tree-optimization/71206
1727         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
1729 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1731         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
1732         (get_vec_alignment_for_array_decl): Likewise.
1733         (get_vec_alignment_for_record_decl): Likewise.
1734         (increase_alignment::execute): Move code to find alignment to
1735         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
1736         (type_align_map): New hash_map.
1738 2016-05-20  Richard Guenther  <rguenther@suse.de>
1740         PR tree-optimization/29756
1741         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
1742         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
1743         * fold-const.c (operand_equal_p): Likewise.
1744         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
1745         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
1746         * tree-inline.c (estimate_operator_cost): Likewise.
1747         * tree-pretty-print.c (dump_generic_node): Likewise.
1748         * tree-ssa-operands.c (get_expr_operands): Likewise.
1749         * cfgexpand.c (expand_debug_expr): Likewise.
1750         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1751         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
1752         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
1753         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
1754         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
1755         (execute_update_addresses_taken): Do it.
1757 2016-05-20  Richard Biener  <rguenther@suse.de>
1759         PR tree-optimization/71185
1760         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
1761         register operations.
1763 2016-05-20  Richard Biener  <rguenther@suse.de>
1765         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
1766         gimple_seq_add_seq_without_update.
1767         (release_bb_predicate): Assert we have no operands to free.
1768         (if_convertible_loop_p_1): Calculate post dominators later.
1769         Do not free BB predicates here.
1770         (combine_blocks): Do not recompute BB predicates.
1771         (version_loop_for_if_conversion): Save BB predicates around
1772         loop versioning.
1774 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1776         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
1777         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
1778         code.  Ignore sibcalls on EDGE_IGNORE edges.
1779         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
1780         on edges for sibcalls that run without prologue.  The rest of the
1781         function is combined from...
1782         (fix_fake_fallthrough_edge): ... this, and ...
1783         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
1784         function argument, make it a local variable.
1786 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
1788         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
1789         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
1790         for 32-bit mode and SEH for 64-bit.
1791         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
1792         TARGET_64BIT_DEFAULT.
1794 2016-05-19  Ryan Burn  <contact@rnburn.com>
1796         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
1797         * gengtype.c (open_base_files): Add cilk.h to ifiles.
1799 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
1801         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
1802         force pending loads from memory.
1804 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1806         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
1807         (UNSPEC_DARN_32): New unspec constant.
1808         (UNSPEC_DARN_RAW): New unspec constant.
1809         (darn_32): New instruction.
1810         (darn_raw): New instruction.
1811         (darn): New instruction.
1812         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
1813         support and documentation for this macro.
1814         (BU_P9_MISC_1): New macro definition.
1815         (BU_P9_64BIT_MISC_0): New macro definition.
1816         (BU_P9_MISC_0): New macro definition.
1817         (darn_32): New builtin definition.
1818         (darn_raw): New builtin definition.
1819         (darn): New builtin definition.
1820         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
1821         RS6000_BUILTIN_0 directives to surround each occurrence of
1822         #include "rs6000-builtin.def".
1823         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
1824         RS6000_BTM_64BIT flags to the returned mask, depending on
1825         configuration.
1826         (def_builtin): Correct an error in the assignments made to the
1827         debugging variable attr_string.
1828         (rs6000_expand_builtin): Add support for no-operand built-in
1829         functions.
1830         (builtin_function_type): Remove fatal_error assertion that is no
1831         longer valid.
1832         (rs6000_common_init_builtins): Add support for no-operand built-in
1833         functions.
1834         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
1835         definition.
1836         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
1837         definition.
1838         (RS6000_BTM_64BIT): New macro definition.
1839         * doc/extend.texi: Document __builtin_darn (void),
1840         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
1841         functions.
1843 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
1845         * tree-vect-loop.c (vect_analyze_loop_2): Use also
1846         max_loop_iterations_int.
1848 2016-05-19  Marek Polacek  <polacek@redhat.com>
1850         PR tree-optimization/71031
1851         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
1852         condition and adjust the code a bit.
1854 2016-05-19  Martin Liska  <mliska@suse.cz>
1856         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
1857         auto_vec instead of vec.
1859 2016-05-19  Martin Liska  <mliska@suse.cz>
1861         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
1863 2016-05-19  Martin Liska  <mliska@suse.cz>
1865         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
1867 2016-05-19  Martin Liska  <mliska@suse.cz>
1869         * ipa-pure-const.c (set_function_state): Remove an existing
1870         funct_state.
1871         (remove_node_data): Do not free it as it's released
1872         in set_function_state.
1874 2016-05-19  Martin Liska  <mliska@suse.cz>
1876         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
1877         bitmap.
1879 2016-05-19  Martin Liska  <mliska@suse.cz>
1881         * omp-simd-clone.c (simd_clone_adjust): Release vector.
1883 2016-05-19  Martin Liska  <mliska@suse.cz>
1885         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
1886         an auto_vec instead of re-creating it.
1888 2016-05-19  Martin Liska  <mliska@suse.cz>
1890         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
1891         auto_vec instead of vec.
1893 2016-05-19  Martin Liska  <mliska@suse.cz>
1895         * lto-section-in.c (lto_get_section_data): Call
1896         lto_check_version with additional argument.
1897         * lto-streamer.c (lto_check_version): Add new argument.
1898         * lto-streamer.h (lto_check_version): Likewise.
1900 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1902         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
1903         Don't add cost of inner memory when handling sign-extended loads.
1905 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
1907         PR rtl-optimization/71148
1908         * cse.c (cse_main): Free dominance info.
1909         (rest_of_handle_cse): Don't free dominance info.
1910         (rest_of_handle_cse2): Likewise.
1911         (rest_of_handle_cse_after_global_opts): Likewise.
1913 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1915         PR target/71056
1916         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
1917         NULL_TREE early if NEON is not available.  Remove now redundant check
1918         in ARM_CHECK_BUILTIN_MODE.
1920 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
1922         PR sanitizer/64354
1923         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
1924         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
1925         * doc/cpp.texi: Document new macros.
1927 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
1929         PR tree-optimization/69848
1930         * tree-vect-loop.c (vectorizable_reduction): Don't factor
1931         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
1933 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
1935         * function.c (thread_prologue_and_epilogue_insn): Move the
1936         "goto epilogue_done" one block later.
1938 2016-05-19  Richard Biener  <rguenther@suse.de>
1940         PR tree-optimization/70729
1941         * passes.def: Move LIM pass before PRE.  Remove no longer
1942         required copyprop and move first DCE out of the loop pipeline.
1944 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
1946         PR driver/69265
1947         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
1948         (OBJS-libcommon-target): ...here.
1949         * opts-common.c: Include spellcheck.h.
1950         (cmdline_handle_error): Build a vec of valid options and use it
1951         to suggest provide hints for misspelled arguments.
1953 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
1955         PR c++/71100
1956         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
1957         lhs if it has TREE_ADDRESSABLE type.
1959 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
1961         PR target/71145
1962         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
1963         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
1965 2016-05-18  Martin Jambor  <mjambor@suse.cz>
1967         PR ipa/69708
1968         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
1969         input for NOP_EXPR pass-through functions.
1970         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
1971         aggregate global constant VAR_DECLs in constant jump functions.
1973 2016-05-18  Martin Jambor  <mjambor@suse.cz>
1975         PR ipa/69708
1976         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
1977         from TREE_READONLY parameters.
1979 2016-05-18  Martin Jambor  <mjambor@suse.cz>
1981         PR ipa/69708
1982         * cgraph.h (cgraph_indirect_call_info): New field
1983         guaranteed_unmodified.
1984         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
1985         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1986         appropriate.
1987         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
1988         pass the parameter value to ipa_find_agg_cst_for_param.
1989         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
1990         guaranteed_unmodified, store AA results there instead of bailing out
1991         if present.
1992         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
1993         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
1994         (find_constructor_constant_at_offset): New function.
1995         (ipa_find_agg_cst_from_init): Likewise.
1996         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
1997         static initializers of contants, report back through a new paameter
1998         from_global_constant if that was the case.
1999         (try_make_edge_direct_simple_call): Also pass parameter value to
2000         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
2001         appropriate.
2002         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
2003         (ipa_read_indirect_edge_info): Likewise.
2004         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
2005         (ipa_load_from_parm_agg): Likewise.
2007 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
2009         PR rtl-optimization/71150
2010         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
2011         check.
2013 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2015         PR target/70915
2016         * config/rs6000/constraints.md (wE constraint): New constraint
2017         for a vector constant that can be loaded with XXSPLTIB.
2018         (wM constraint): New constraint for a vector constant of a 1's.
2019         (wS constraint): New constraint for a vector constant that can be
2020         loaded with XXSPLTIB and a vector sign extend instruction.
2021         * config/rs6000/predicates.md (xxspltib_constant_split): New
2022         predicates for wE/wS constraints.
2023         (xxspltib_constant_nosplit): Likewise.
2024         (easy_vector_constant): Add support for constants that can be
2025         loaded via XXSPLTIB.
2026         (all_ones_constant): New predicate for vector constant with all
2027         1's set.
2028         (splat_input_operand): Add support for ISA 3.0 word splat operations.
2029         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
2030         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
2031         instruction and possibly with a sign extension.
2032         (output_vec_const_move): Add support for XXSPLTIB. If we are
2033         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
2034         instead of XXLXOR/XXLORC.
2035         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
2036         operations.
2037         (rs6000_legitimize_reload_address): Likewise.
2038         (rs6000_output_move_128bit): Use output_vec_const_move to emit
2039         constants.
2040         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
2041         combine VSX_M and VSX_M2 into one iterator.
2042         (VSX_M2): Likewise.
2043         (VSINT_84): New iterators for loading constants with XXSPLTIB.
2044         (VSINT_842): Likewise.
2045         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
2046         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
2047         XXSPLTIB instruction.
2048         (xxspltib_<mode>_nosplit): Likewise.
2049         (xxspltib_<mode>_split): New insn to load up constants with
2050         XXSPLTIB and a sign extend instruction.
2051         (vsx_mov<mode>): Replace single move that handled all vector types
2052         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
2053         moves (when -mvsx-timode is in effect) into the main vector
2054         moves.  Eliminate separate moves for <VSr> <VSa>, where the
2055         preferred register class (<VSr>) is listed first, and the
2056         secondary register class (<VSa>) is listed second with a '?' to
2057         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
2058         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
2059         that if the register was involved in a slow operation, the
2060         clear/set operation does not wait for the slow operation to
2061         finish.  Adjust the length attributes for 32-bit mode.  Use
2062         rs6000_output_move_128bit and drop the use of the string
2063         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
2064         spacing so that the alternatives and attributes don't generate
2065         long lines, and put things in columns, so that it is easier to
2066         match up the operands and attributes with the insn alternatives.
2067         (vsx_mov<mode>_64bit): Likewise.
2068         (vsx_mov<mode>_32bit): Likewise.
2069         (vsx_movti_64bit): Fold movti into normal vector moves.
2070         (vsx_movti_32bit): Likewise.
2071         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
2072         splat instructions.
2073         (vsx_splat_v4si_internal): Likewise.
2074         (vsx_splat_v4sf_internal): Likewise.
2075         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
2076         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
2077         extend vector elements.
2078         (vsx_sign_extend_hi_<mode>): Likewise.
2079         (vsx_sign_extend_si_v2di): Likewise.
2080         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
2081         declaration.
2082         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
2083         constraints.  Add trailing period to wL documentation.
2085 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
2087         PR middle-end/71020
2088         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
2089         * tree-dfa.c (replace_abnormal_ssa_names): New function.
2090         * tree-call-cdce.c: Include tree-dfa.h.
2091         (can_guard_call_p): New function, extracted from...
2092         (can_use_internal_fn): ...here.
2093         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
2094         and return void.
2095         (shrink_wrap_one_built_in_call): Likewise.
2096         (use_internal_fn): Likewise.
2097         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
2098         and return void.  Call replace_abnormal_ssa_names.
2099         (pass_call_cdce::execute): Check can_guard_call_p during the
2100         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
2101         will always change something.
2103 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2105         PR ipa/70646
2106         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
2107         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
2109 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2111         PR ipa/70646
2112         * ipa-inline.h (condition): New field size.
2113         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
2114         for comaprison and store it into the new condition.
2115         (evaluate_conditions_for_known_args): Use condition size to check
2116         access sizes for all but CHANGED conditions.
2117         (unmodified_parm_1): New parameter size_p, store access size into it.
2118         (unmodified_parm): Likewise.
2119         (unmodified_parm_or_parm_agg_item): Likewise.
2120         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
2121         (set_cond_stmt_execution_predicate): Extract access sizes and store
2122         them to conditions.
2123         (set_switch_stmt_execution_predicate): Likewise.
2124         (will_be_nonconstant_expr_predicate): Likewise.
2125         (will_be_nonconstant_predicate): Likewise.
2126         (inline_read_section): Stream condition size.
2127         (inline_write_summary): Likewise.
2129 2016-05-18  Richard Biener  <rguenther@suse.de>
2131         * tree-ssa-loop-im.c (determine_max_movement): Properly add
2132         condition cost to PHI cost instead of total_cost.
2134 2016-05-18  Martin Liska  <mliska@suse.cz>
2136         PR fortran/70856
2137         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
2138         merged variables.
2140 2016-05-18  Richard Biener  <rguenther@suse.de>
2142         * lto-streamer.h (LTO_major_version): Bump to 6.
2144 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
2146         * function.c (make_split_prologue_seq, make_prologue_seq,
2147         make_epilogue_seq): New functions, factored out from...
2148         (thread_prologue_and_epilogue_insns): Here.
2150 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
2152         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
2153         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
2154         of before.  Add a comment.
2156 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
2158         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
2159         expression pointer, not pointer to the pointer.
2161 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
2163         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
2164         (avx2_pbroadcast<mode>): Add another alternative with v instead
2165         of x constraints in it, using <pbroadcast_evex_isa> isa.
2166         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
2168         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
2169         constraint x instead of v in second alternative, add avx512bw
2170         alternative.
2172         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
2173         constraint x instead of v in second alternative, add avx512bw
2174         alternative.
2176         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
2177         constraint x instead of v in second alternative, add avx512bw
2178         alternative.
2180         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
2181         avx512bw alternative.
2183 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2185         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
2186         array to 128 chars.
2187         (define_insn "*andnottf3"): Ditto.
2188         (define_insn "*<code><mode>3"/any_logic): Ditto.
2189         (define_insn "*<code>tf3"/any_logic): Ditto.
2190         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
2191         operand to block AVX-512VL insn variant emit when it is not enabled.
2193 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2195         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
2196         constraint fot SF mode.
2198 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
2199             Kirill Yukhin  <kirill.yukhin@intel.com>
2201         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
2202         modifiers.
2203         (define_insn "rsqrt14<mode>"): Ditto.
2204         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2205         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2206         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
2207         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2208         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
2209         Ditto.
2210         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
2211         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
2212         * config/i386/i386.c (ix86_print_operand): Expand check for size
2213         override codes for Intel syntax.
2215 2016-05-18  Richard Biener  <rguenther@suse.de>
2217         PR tree-optimization/71168
2218         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
2219         initialization earlier.
2221 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
2223         * config/aarch64/aarch64-simd.md
2224         (aarch64_reduc_plus_internal<mode>): Rename to...
2225         (reduc_plus_scal): ...This, and remove previous implementation.
2227 2016-05-18  Richard Biener  <rguenther@suse.de>
2229         * passes.def: Put late dse and cd_dce in canonical order.
2231 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
2233         * ipa-inline-transform.c (preserve_function_body_p): Look for
2234         first non-thunk clone.
2235         (save_function_body): Save into first non-thunk.
2236         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
2237         up call stmt id.
2238         (lto_output_node): Inline thunks don't need body in every
2239         partition.
2240         * lto-streamer-in.c: Do not fixup thunk clones.
2241         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
2242         thunks.
2243         * tree-inline.c (copy_bb): Be prepared for target node to be new after
2244         folding suceeds.
2246 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
2248         PR middle-end/63586
2249         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
2250         (reassociate_bb): Call transform_add_to_multiply.
2252 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
2254         * config/aarch64/aarch64.c (all_extensions): Removed unused
2255         static variable.
2257 2016-05-17  Nathan Sidwell  <nathan@acm.org>
2259         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
2260         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
2262 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
2264         PR tree-optimization/54579
2265         PR middle-end/55299
2266         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
2268 2016-05-17  Marek Polacek  <polacek@redhat.com>
2270         PR ipa/71146
2271         * tree-inline.c (expand_call_inline): Call
2272         maybe_remove_unused_call_args.
2274 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
2276         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
2277         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
2278         * doc/md.texi (fmin@var{m}3): Likewise.
2280 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
2282         * match.pd (X & C): New transformation.
2284 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
2286         * match.pd (~X & Y): New transformation.
2288 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
2290         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
2291         information for new SSA_NAME.
2292         (simplify_conversion_using_ranges): Get range through get_range_info
2293         instead of get_value_range.
2295 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
2297         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
2298         Remove inline assembly.
2299         (vmvn_s16): Likewise.
2300         (vmvn_s32): Likewise.
2301         (vmvn_u8): Likewise.
2302         (vmvn_u16): Likewise.
2303         (vmvn_u32): Likewise.
2304         (vmvnq_s8): Likewise.
2305         (vmvnq_s16): Likewise.
2306         (vmvnq_s32): Likewise.
2307         (vmvnq_u8): Likewise.
2308         (vmvnq_u16): Likewise.
2309         (vmvnq_u32): Likewise.
2310         (vmvn_p8): Likewise.
2311         (vmvnq_p16): Likewise.
2313 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
2315         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
2316         Use builtin.
2317         (vmul_n_s16): Likewise.
2318         (vmul_n_s32): Likewise.
2319         (vmul_n_u16): Likewise.
2320         (vmul_n_u32): Likewise.
2321         (vmulq_n_f32): Likewise.
2322         (vmulq_n_f64): Likewise.
2323         (vmulq_n_s16): Likewise.
2324         (vmulq_n_s32): Likewise.
2325         (vmulq_n_u16): Likewise.
2326         (vmulq_n_u32): Likewise.
2328 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
2330         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
2331         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
2333 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
2335         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
2336         to *aarch64_fma4_elt_from_dup<mode>.
2337         (*aarch64_fnma4_elt_to_128df): Rename to
2338         *aarch64_fnma4_elt_from_dup<mode>.
2339         * config/aarch64/arm_neon.h (vfma_n_f64): New.
2340         (vfms_n_f32): Likewise.
2341         (vfms_n_f64): Likewise.
2342         (vfmsq_n_f32): Likewise.
2343         (vfmsq_n_f64): Likewise.
2345 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
2347         * wide-int.h: Change fixed_wide_int_storage from class to struct.
2349 2016-05-17  Richard Biener  <rguenther@suse.de>
2351         PR tree-optimization/71132
2352         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
2353         Only add control dependences for blocks in the loop.
2354         (build_rdg): Adjust.
2355         (generate_code_for_partition): Return whether loop should
2356         be destroyed and delay that.
2357         (distribute_loop): Likewise.
2358         (pass_loop_distribution::execute): Record loops to be destroyed
2359         and perform delayed destroying of loops.
2361 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2363         PR target/70809
2364         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
2366 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
2368         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
2370 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
2372         PR target/71114
2373         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
2374         insertion point for instructions generated by validize_mem.
2376 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
2378         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
2379         in brackets.
2381 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
2383         * config/aarch64/aarch64.c
2384         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
2385         rather than a macro.
2387 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
2389         * doc/invoke.texi (AArch64 Options): Various updates.
2391 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
2393         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
2394         into instrumentation thunks.
2395         * cif-code.def (CIF_CHKP): New.
2397 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
2399         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
2401 2016-05-16  Martin Jambor  <mjambor@suse.cz>
2403         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
2404         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
2406 2016-05-16  Marek Polacek  <polacek@redhat.com>
2408         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
2409         commentary.
2411 2016-05-16  Martin Jambor  <mjambor@suse.cz>
2413         PR hsa/70857
2414         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
2415         the outlined kernel function.
2417 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
2419         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
2420         (ISA_HAS_DLSA): Ditto.
2422 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
2424         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
2426 2016-05-16  Nathan Sidwell  <nathan@acm.org>
2428         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
2429         (nvptx_name_replacement): Restore.  Add comment.
2430         (write_fn_proto, write_fn_proto_from_insn,
2431         nvptx_output_call_insn): Restore
2432         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
2434 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
2436         * config/aarch64/aarch64.md
2437         (add<mode>3_compareC_cconly_imm): Remove use of %w.
2438         (add<mode>3_compareC_imm): Likewise.
2439         (<optab>si3_uxtw): Split into register and immediate variants.
2440         (andsi3_compare0_uxtw): Likewise.
2441         (and<mode>3_compare0): Likewise.
2442         (and<mode>3nr_compare0): Likewise.
2443         (stack_protect_test_<mode>): Don't use %x for memory operands.
2445 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
2447         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
2449 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
2451         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2452         Split integer shifts into shift_reg and bfm.
2453         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2454         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2455         (ror<mode>3_insn): Likewise.
2456         (<optab>si3_insn_uxtw): Likewise.
2457         (<optab><mode>3_insn): Change to rotate_imm.
2458         (extr<mode>5_insn_alt): Likewise.
2459         (extrsi5_insn_uxtw): Likewise.
2460         (extrsi5_insn_uxtw_alt): Likewise.
2462 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
2464         * doc/tm.texi: Regenerate.
2465         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
2466         (TARGET_INVALID_RETURN_TYPE): Remove.
2467         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
2468         TARGET_INVALID_RETURN_TYPE.
2469         * target.def (invalid_parameter_type): Remove.
2470         (invalid_return_type): Remove.
2472 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
2474         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
2475         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
2476         calls from thunk.
2477         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
2478         gimple body.
2479         (preserve_function_body_p): No need to preserve function body
2480         * cif-codes.def (CIF_THUNK): Remove.
2481         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
2483 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
2485         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
2487 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
2489         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
2490         for thunks.
2492 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
2494         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
2495         (inline_small_functions): Do not look for function symbol when
2496         resetting caches.
2498 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
2500         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
2501         of inline thunks
2503 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
2504             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2505             Jiong Wang  <jiong.wang@arm.com>
2507         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2508         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
2509         Define __ARM_FP16_ARGS when appropriate.
2510         * config/arm/arm.c (arm_invalid_parameter_type): Remove
2511         declaration.
2512         (arm_invalid_return_type): Likewise.
2513         (TARGET_INVALID_PARAMETER_TYPE): Remove.
2514         (TARGET_INVALID_RETURN_TYPE): Remove.
2515         (aapcs_vfp_sub_candidate): Allow HFmode.
2516         (aapcs_vfp_allocate): Add comment.  Support HFmode.
2517         (aapcs_vfp_allocate_return_reg): Likewise.
2518         (struct aapcs_cp_arg_layout): Slightly reword comments for
2519         is_return_candidate and allocate_return_reg.
2520         (output_mov_vfp): Update assert.
2521         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
2522         condition.
2523         (arm_invalid_parameter_type): Remove.
2524         (amr_invalid_return_type): Remove.
2525         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
2526         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
2527         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
2529 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
2531         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
2532         * config/aarch64/arch64-protos.h
2533         (aarch64_legitimize_reload_address): Remove.
2534         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
2535         Remove.
2537 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2539         * configure.ac: Add ACX_NONCANONICAL_HOST.
2540         * configure: Regenerate.
2541         * Makefile.in: Set host_noncanonical.
2543 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
2545         PR target/71097
2546         * config/i386/i386.md (*movtf_internal): Before register allocation,
2547         do not allow FP constants for CM_MEDIUM memory model, allow only
2548         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
2549         (*movxf_internal): Ditto.
2550         (*movdf_internal): Ditto.
2551         (*movsf_internal): Ditto.
2553 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
2555         PR rtl-optimization/67483
2556         * combine.c (make_compound_operation): Don't call extract_left_shift
2557         with negative shift amounts.
2559 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
2561         PR bootstrap/71071
2562         * fold-const.c (fold_checksum_tree): Allow modification
2563         of TYPE_ALIAS_SET during folding.
2565         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
2566         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
2567         (ix86_split_to_parts): Likewise.  Fix up formatting.
2569 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2571         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
2572         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
2573         printf format.
2575 2016-05-13  Nathan Sidwell  <nathan@acm.org>
2577         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
2578         (nvptx_name_replacement): Delete.
2579         (write_fn_proto, write_fn_proto_from_insn,
2580         nvptx_output_call_insn): Remove nvptx_name_replacement call.
2581         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
2582         * langhooks.c (add_builtin_funcction_common): Call
2583         targetm.mangle_decl_assembler_name.
2585         * config/nvptx/nvptx.c (write_fn_proto): Handle
2586         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
2588 2016-05-13  Martin Liska  <mliska@suse.cz>
2590         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
2591         and PRIu64 in printf format.
2593 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2595         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
2596         comment.
2598 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2600         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2601         Change --param max-completely-peeled-times to
2602         --param max-completely-peel-times in dump file printing.
2604 2016-05-13  Richard Biener  <rguenther@suse.de>
2606         PR tree-optimization/42587
2607         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
2608         (find_bswap_or_nop_1): Likewise.
2609         (bswap_replace): Likewise.
2611 2016-05-13  Martin Liska  <mliska@suse.cz>
2613         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
2614         Initialize a variable with default value.
2616 2016-05-13  Martin Liska  <mliska@suse.cz>
2618         * doc/invoke.texi: Enhance explanation of error recovery
2619         of sanitizers.
2621 2016-05-13  Martin Liska  <mliska@suse.cz>
2623         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
2624         (struct cost_pair): Change inv_expr_id (int) to inv_expr
2625         (iv_inv_expr_ent *).
2626         (struct iv_inv_expr_ent): Comment struct fields.
2627         (sort_iv_inv_expr_ent): New function.
2628         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
2629         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
2630         a hash_map between iv_inv_expr_ent and number of usages.
2631         (niter_for_exit): Fix coding style.
2632         (tree_ssa_iv_optimize_init): Use renamed variable.
2633         (determine_base_object): Fix coding style.
2634         (alloc_iv): Likewise.
2635         (find_interesting_uses_outside): Likewise.
2636         (add_candidate_1): Likewise.
2637         (add_standard_iv_candidates): Likewise.
2638         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
2639         (prepare_decl_rtl): Fix coding style.
2640         (get_address_cost): Likewise.
2641         (get_shiftadd_cost): Likewise.
2642         (force_expr_to_var_cost): Likewise.
2643         (compare_aff_trees): Likewise.
2644         (get_expr_id): Restructure the function.
2645         (get_loop_invariant_expr_id): Renamed to
2646         get_loop_invariant_expr.
2647         (get_computation_cost_at): Replace usage of inv_expr_id with
2648         inv_expr.
2649         (get_computation_cost): Likewise.
2650         (determine_group_iv_cost_generic): Likewise.
2651         (determine_group_iv_cost_address): Likewise.
2652         (iv_period): Fix coding style.
2653         (iv_elimination_compare_lt): Likewise.
2654         (may_eliminate_iv): Likewise.
2655         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
2656         inv_expr.
2657         (determine_group_iv_costs): Dump invariant expressions.
2658         (iv_ca_recount_cost): Use the newly added hash_map.
2659         (iv_ca_set_remove_invariants): Fix coding style.
2660         (iv_ca_set_add_invariants): Fix coding style.
2661         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
2662         invariants.
2663         (iv_ca_set_cp): Likewise.
2664         (iv_ca_new): Initialize the newly added hash_map and remove
2665         initialization of fields.
2666         (iv_ca_free): Delete the hash_map.
2667         (iv_ca_dump): Dump invariant expressions.
2668         (iv_ca_extend): Fix coding style.
2669         (try_add_cand_for): Likewise.
2670         (create_new_ivs): Dump information about # of avg iterations and
2671         # of used invariant expressions.
2672         (rewrite_use_compare): Fix coding style.
2673         (free_loop_data): Set default value for max_inv_expr_id.
2675 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2677         * cse.c (rest_of_handle_cse): Use cleanup_cfg
2678         returned value cse_cfg_altered computation.
2679         (rest_of_handle_cse2): Likewise.
2680         (rest_of_handle_cse_after_global_opts): Likewise.
2682 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2684         PR target/53440
2685         * config/arm/arm.c (arm32_output_mi_thunk): New.
2686         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
2687         to split Thumb1 vs TARGET_32BIT functionality.
2688         (arm_thumb1_mi_thunk): New.
2690 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2692         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
2693         to true.
2695 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2697         PR target/71080
2698         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
2700 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2702         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
2703         (expand_builtin_trap): Emit a regular call.
2704         (set_builtin_user_assembler_name): Remove obsolete cases.
2705         * dse.c (scan_insn): Adjust.
2706         * except.c: Include calls.h.
2707         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
2708         emit a regular call to setjmp.
2709         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
2710         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
2711         (emit_block_move_via_libcall): Delete.
2712         (block_move_fn): Delete.
2713         (init_block_move_fn): Likewise.
2714         (emit_block_move_libcall_fn): Likewise.
2715         (emit_block_op_via_libcall): New function.
2716         (set_storage_via_libcall): Tidy up and use memset builtin.
2717         (block_clear_fn): Delete.
2718         (init_block_clear_fn): Likewise.
2719         (clear_storage_libcall_fn): Likewise.
2720         (expand_assignment): Call emit_block_move_via_libcall.
2721         Do not include gt-expr.h.
2722         * expr.h (emit_block_op_via_libcall): Declare.
2723         (emit_block_copy_via_libcall): New inline function.
2724         (emit_block_move_via_libcall): Likewise.
2725         (emit_block_comp_via_libcall): Likewise.
2726         (block_clear_fn): Delete.
2727         (init_block_move_fn): Likewise.
2728         (init_block_clear_fn): Likewise.
2729         (emit_block_move_via_libcall): Likewise.
2730         (set_storage_via_libcall): Add default parameter value.
2731         * libfuncs.h (enum libfunc_index): Remove obsolete values.
2732         (abort_libfunc): Delete.
2733         (memcpy_libfunc): Likewise.
2734         (memmove_libfunc): Likewise.
2735         (memcmp_libfunc): Likewise.
2736         (memset_libfunc): Likewise.
2737         (setbits_libfunc): Likewise.
2738         (setjmp_libfunc): Likewise.
2739         (longjmp_libfunc): Likewise.
2740         (profile_function_entry_libfunc): Likewise.
2741         (profile_function_exit_libfunc): Likewise.
2742         (gcov_flush_libfunc): Likewise.
2743         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
2744         and DECL_VISIBILITY on the declaration.
2745         (init_optabs): Do not initialize obsolete libfuncs.
2746         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
2747         * tree-core.h (ECF_RET1): Define.
2748         (ECF_TM_PURE): Adjust.
2749         (ECF_TM_BUILTIN): Likewise.
2750         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
2751         (build_common_builtin_nodes): Initialize abort builtin.
2752         Add ECF_RET1 on memcpy, memmove and memset builtins.
2753         Pass final flags for alloca and alloca_with_align builtins.
2754         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
2755         obsolete builtins.
2756         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
2757         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
2758         set_storage_via_libcall and call emit_block_copy_via_libcall.
2760 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
2762         * config/i386/i386.md (*call_got_x32): Change operand 0 to
2763         DImode before it is passed to ix86_output_call_operand.
2764         (*call_value_got_x32): Ditto for operand 1.
2766 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
2768         PR rtl-optimization/70904
2769         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
2770         reload for wide mode.
2772 2016-05-12  Marek Polacek  <polacek@redhat.com>
2774         PR c/70756
2775         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
2776         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
2777         * langhooks.h (incomplete_type_error): Likewise.
2778         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
2779         parameter, pass it down to incomplete_type_error.
2780         * tree.h (size_in_bytes): New inline overload.
2781         (size_in_bytes_loc): Renamed from size_in_bytes.
2783 2016-05-12  Richard Biener  <rguenther@suse.de>
2785         PR tree-optimization/71059
2786         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
2787         nary before looking up or entering the expression into the VN
2788         hashes.
2789         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
2790         Make sure to re-use NARYs without result as inserted by
2791         phi-translation.
2793 2016-05-12  Richard Biener  <rguenther@suse.de>
2795         PR tree-optimization/71062
2796         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2797         field.
2798         * tree-ssa-structalias.c (set_uids_in_ptset): Set
2799         vars_contains_restrict if the var is a restrict tag.
2800         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
2801         do not disambiguate pointers against it.
2802         (dump_points_to_solution): Re-structure and adjust for new
2803         vars_contains_restrict flag.
2804         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
2806 2016-05-12  Martin Liska  <mliska@suse.cz>
2808         * doc/invoke.texi: Explain connection between
2809         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
2811 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
2813         PR tree-optimization/71006
2814         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2815         consider COND_EXPR as a mask producer.
2817 2016-05-12  Marek Polacek  <polacek@redhat.com>
2819         PR driver/71063
2820         * opts.c (common_handle_option): Detect missing argument for --help^.
2822 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2824         PR target/70830
2825         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
2826         when popping the PC and within an interrupt handler routine.
2827         Add missing tab to output of "ldmfd".
2828         (output_return_instruction): Output LDMFD with SP update rather
2829         than POP when returning from interrupt handler.
2831 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
2833         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
2834         TARGET_64BIT && TARGET_AVX512DQ.
2835         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
2836         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
2837         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
2838         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
2839         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
2840         (*vec_extractv4si_zext): Add avx512dq alternative.
2841         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
2842         use v instead of x constraint in other alternatives where possible.
2844         * config/i386/sse.md (sse2_loadld): Use v instead of x
2845         constraint in alternatives 0,1,4.
2847         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
2848         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
2849         v constraints instead of x and <pinsr_evex_isa> isa attribute.
2851         PR target/71019
2852         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
2853         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
2854         is not emitted unless TARGET_AVX512BW.
2855         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
2856         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
2857         for the result operand.
2859         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
2860         constraint instead of x in avx alternatives.  Use maybe_evex instead
2861         of vex prefix.
2863         * config/i386/constraints.md (Yv): New constraint.
2864         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
2865         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
2866         * config/i386/i386.md (avx512fvecmode): New mode attr.
2867         (*pushtf): Use v constraint instead of x.
2868         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
2869         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
2870         (*absneg<mode>2): Use Yv constraint instead of x constraint.
2871         (*absnegtf2_sse): Likewise.
2872         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
2873         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
2874         avx512f alternatives.
2875         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
2877 2016-05-12  Richard Biener  <rguenther@suse.de>
2879         PR tree-optimization/71060
2880         * tree-data-ref.c (initialize_data_dependence_relation): Do not
2881         require exact match of DR_BASE_OBJECT but only matching address and
2882         type.
2884 2016-05-12  Richard Biener  <rguenther@suse.de>
2886         PR tree-optimization/70986
2887         * cfganal.c: Include cfgloop.h.
2888         (dfs_find_deadend): Prefer to take edges exiting loops.
2890 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2892         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
2893         compile and run time.
2895 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
2897         PR c/43651
2898         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
2900 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
2902         * config/i386/i386.c (legitimize_pic_address): Use
2903         copy_to_suggested_reg instead of gen_movsi.
2905 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2907         * config/rs6000/predicates.md (quad_memory_operand): Move most of
2908         the code into quad_address_p and call it to share code with
2909         vsx_quad_dform_memory_operand.
2910         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
2911         d-form support.
2912         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
2913         bit instead of being a separate word.  Split -mpower9-dform into
2914         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2915         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
2916         for the register class supporting 128-bit quad word memory offsets.
2917         (mode_supports_vsx_dform_quad): Helper function to return if the
2918         register class uses quad word memory offsets.
2919         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
2920         (rs6000_debug_reg_global): Always print if we are using LRA or not.
2921         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
2922         instructions are enabled, set up the appropriate addr_masks for
2923         128-bit types.
2924         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
2925         -mpower9-dform-scalar, instead of -mpower9-dform.
2926         (rs6000_option_override_internal): Split -mpower9-dform into two
2927         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
2928         -mpower9-dform switch sets or clears both.  If we are not using
2929         the LRA register allocator, do not enable -mpower9-dform-vector by
2930         default.  If we are using LRA, enable -mpower9-dform-vector and
2931         -mvsx-timode if it is appropriate.  Issue a warning if either
2932         -mpower9-dform-vector or -mvsx-timode are explicitly used without
2933         enabling LRA.
2934         (quad_address_offset_p): New helper function to return if the
2935         offset is legal for quad word memory instructions.
2936         (quad_address_p): New function to determin if GPR or vector
2937         register quad word memory addresses are legal.
2938         (mem_operand_gpr): Validate quad word address offsets.
2939         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
2940         d-form (register + offset) instructions.
2941         (offsettable_ok_by_alignment): Likewise.
2942         (rs6000_legitimate_offset_address_p): Likewise.
2943         (legitimate_lo_sum_address_p): Likewise.
2944         (rs6000_legitimize_address): Likewise.
2945         (rs6000_legitimize_reload_address): Add more debug statements for
2946         -mdebug=addr.
2947         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
2948         d-form instructions.
2949         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
2950         d-form instructions.  Distinguish different cases in debug
2951         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
2952         d-form instructions.
2953         (rs6000_preferred_reload_class): Likewise.
2954         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
2955         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
2956         of the ISA 2.06 indexed memory instructions.
2957         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
2958         use them to save/restore the saved vector registers instead of
2959         using Altivec instructions.
2960         (rs6000_emit_epilogue): Likewise.
2961         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
2962         (rs6000_opt_masks): Split -mpower9-dform into
2963         -mpower9-dform-scalar and -mpower9-dform-vector.
2964         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
2965         was not selected.
2966         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
2967         ISA 3.0 vector indexed memory instructions, and fold the code into
2968         the normal mov<mode> patterns.
2969         (p9_vecstore_<mode>): Likewise.
2970         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
2971         instructions.
2972         (vsx_movti_64bit): Likewise.
2973         (vsx_movti_32bit): Likewise.
2974         * config/rs6000/constraints.md (wO constraint): New constraint for
2975         ISA 3.0 vector d-form support.
2976         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
2977         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
2978         include -mpower9-dform-vector until we switch over to LRA.
2979         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
2980         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2981         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
2982         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2983         for -mpower9-dform and -mlra.
2984         * doc/md.texi (wO constraint): Document wO constraint.
2986 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
2988         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
2989         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
2990         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
2991         Move handling of non-insn arguments inline into the sole user:
2992         (output_trans_func): ...here.
2993         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
2994         in emitted function prototype.
2995         (output_internal_insn_latency_func): Ditto.  Simplify.
2996         (output_internal_maximal_insn_latency_func): Ditto.  Delete
2997         always-unused argument.
2998         (output_insn_latency_func): Ditto.
2999         (output_maximal_insn_latency_func): Ditto.
3001 2016-05-11  Richard Biener  <rguenther@suse.de>
3003         PR tree-optimization/71055
3004         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
3005         sth with precision not equal to access size verify we don't chop
3006         off bits.
3008 2016-05-11  Richard Biener  <rguenther@suse.de>
3010         PR debug/71057
3011         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3012         (dwarf2out_finish): Move retry_incomplete_types call ...
3013         (dwarf2out_early_finish): ... here.
3015 2016-05-11  Richard Biener  <rguenther@suse.de>
3017         PR middle-end/71002
3018         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3019         if the langhook insists on it.
3020         * fold-const.c (make_bit_field_ref): Add arg for the original
3021         reference and preserve its alias-set.
3022         (decode_field_reference): Take exp by reference and adjust it
3023         to the original memory reference.
3024         (optimize_bit_field_compare): Adjust callers.
3025         (fold_truth_andor_1): Likewise.
3026         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
3028 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
3030         PR middle-end/70807
3031         * cfgrtl.h (delete_insn_and_edges): Now return bool.
3032         * cfgrtl.c (delete_insn_and_edges): Likewise.
3033         * config/i386/i386.c (convert_scalars_to_vector): Remove
3034         redundant code.
3035         * cse.c (cse_insn): Compute cse_cfg_altered.
3036         (delete_trivially_dead_insns): Likewise.
3037         (cse_cc_succs): Likewise.
3038         (rest_of_handle_cse): Free dominance info if required.
3039         (rest_of_handle_cse2): Likewise.
3040         (rest_of_handle_cse_after_global_opts): Likewise.
3042 2016-05-11  Alan Modra  <amodra@gmail.com>
3044         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3045         abi_v4_pass_in_fpr): New functions.
3046         (rs6000_function_arg_boundary): Exclude complex IBM long double
3047         from 64-bit alignment when ABI_V4.
3048         (rs6000_function_arg, rs6000_function_arg_advance_1,
3049         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3051 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
3053         PR rtl-optimization/71028
3054         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
3055         jump with just a return in the fallthrough block if the branch
3056         block contains just a return as well.
3058 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
3060         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
3061         * match.pd ((X & Y) ^ Y): ... this.
3062         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
3063         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
3065 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
3067         * read-md.c (require_char_ws): New function.
3068         (read_string): Simplify using require_char_ws.
3069         (handle_constants): Likewise.
3070         (handle_enum): Likewise.
3071         (handle_file): Likewise.
3072         * read-md.h (require_char_ws): New declaration.
3073         * read-rtl.c (read_conditions): Simplify using require_char_ws.
3074         (read_mapping): Likewise.
3075         (read_rtx_code): Likewise.
3076         (read_nested_rtx): Likewise.
3078 2016-05-10  James Norris  <jnorris@codesourcery.com>
3080         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
3081         if offloading is enabled and -fopenacc or -fopenmp is specified.
3082         (CRTOFFLOADEND): Likewise.
3083         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
3084         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
3086 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
3088         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
3089         gotoff_operand code paths.  Use copy_to_suggested_regs and
3090         expand_simple_binop where appropriate.  Cleanup.
3092 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3094         PR target/70799
3095         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
3096         integer constants.
3097         (dimode_scalar_chain::vector_const_cost): New.
3098         (dimode_scalar_chain::compute_convert_gain): Handle constants.
3099         (dimode_scalar_chain::convert_op): Likewise.
3100         (dimode_scalar_chain::convert_insn): Likewise.
3102 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
3104         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
3105         unary operation, not a binary one.
3107 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3109         PR middle-end/70877
3110         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
3111         calls with type casted fndecl.
3113 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3115         PR tree-optimization/70786
3116         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
3117         * calls.c (initialize_argument_information): Bind bounds
3118         with corresponding args passed by reference.
3120 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
3122         PR target/70927
3123         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
3124         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
3125         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
3126         accordingly.
3128 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3130         PR target/70963
3131         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
3132         code for a zero scale factor.
3133         (vsx_xvcvdpuxds_scale): Likewise.
3135 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
3137         * diagnostic-show-locus.c (layout::layout): Call show_ruler
3138         if show_ruler_p was set on the context.
3139         (layout::show_ruler): New method.
3140         * diagnostic.h (struct diagnostic_context): Add field
3141         "show_ruler_p".
3143 2016-05-10  Richard Biener  <rguenther@suse.de>
3145         PR tree-optimization/71039
3146         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
3147         (chk_uses): New function.
3148         (propagate_with_phi): Verify we can safely replicate the lhs of an
3149         aggregate assignment on all incoming edges.
3151 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
3153         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
3154         Forward declare.
3155         (rx_atomic_sequence): New class.
3156         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
3157         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
3158         non-inline.
3159         (rx_atomic_sequence::rx_atomic_sequence,
3160         rx_atomic_sequence::~rx_atomic_sequence): New functions.
3161         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
3162         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
3163         CTRLREG_INTB): New constants.
3164         (FETCHOP): New code iterator.
3165         (fethcop_name, fetchop_name2): New iterator code attributes.
3166         (QIHI): New mode iterator.
3167         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
3168         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
3169         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
3171 2016-05-10  Martin Liska  <mliska@suse.cz>
3173         * tree-inline.c (remap_dependence_clique): Do not remap
3174         debugging statements.
3176 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3178         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
3179         ("*fixuns_truncdfdi2_z13")
3180         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
3181         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
3182         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
3184 2016-05-10  Richard Biener  <rguenther@suse.de>
3186         PR tree-optimization/70497
3187         PR tree-optimization/28367
3188         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
3189         split out from ...
3190         (visit_reference_op_load): ... here.
3191         (vn_reference_lookup_3): Use it to handle subreg-like accesses
3192         with simplified BIT_FIELD_REFs.
3193         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
3194         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
3195         correctly.
3197 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
3199         * dwarf2out.c (add_abstract_origin_attribute): Adjust
3200         documentation comment.  For BLOCK nodes, add a
3201         DW_AT_abstract_origin attribute that points to the DIE generated
3202         for the origin BLOCK.
3203         (gen_lexical_block_die): Call add_abstract_origin_attribute for
3204         blocks from inlined functions.
3206 2016-05-10  Alan Modra  <amodra@gmail.com>
3208         PR target/70947
3209         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
3210         regrename modifying insns saving lr before __morestack call.
3211         * config/rs6000/rs6000.md (split_stack_return): Similarly for
3212         insns restoring lr after __morestack call.
3214 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
3216         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
3217         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
3218         expanders.
3219         * config/i386/sse.md (vec_interleave_high<mode>,
3220         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
3221         <avx512>_vpermt2var<mode>3_maskz): Likewise.
3223 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3225         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
3226         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
3227         parallel reassociation for power8 and forward.
3229 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
3231         * config/i386/i386.md (absneg splitters with general regs): Use
3232         general_reg_operand predicate.
3233         (btsq peephole2): Use x86_64_immediate_operand to check if new
3234         value is suitable for immediate operand.  Generate emitted insn
3235         using RTL expressions.
3236         (btcq peephole2): Ditto.
3237         (btrq peephole2): Ditto.  Generate correct immediate operand
3238         for AND masking.
3240 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
3242         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
3243         bitpos.
3245 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
3247         * tree-affine.c (wide_int_constant_multiple_p): Add missing
3248         pointer dereference.
3250 2016-05-09  Richard Biener  <rguenther@suse.de>
3252         PR tree-optimization/70985
3253         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
3254         op0 isn't a gimple register.
3256 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
3258         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
3259         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
3260         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
3261         (i6400_fpu_mult): New cpu units.
3262         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
3263         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
3264         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
3265         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
3266         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
3267         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
3268         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
3269         (i6400_msa_long_float4, i6400_msa_long_float5)
3270         (i6400_msa_long_float8, i6400_msa_fdiv_df)
3271         (i6400_msa_fdiv_sf): New reservations.
3272         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
3273         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
3274         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
3275         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
3276         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
3277         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
3278         (msa_short_cmp, msa_short_float2, msa_short_logic3)
3279         (msa_short_store4, msa_long_load, msa_short_store)
3280         (msa_long_logic, msa_long_float2, msa_long_float4)
3281         (msa_long_float5, msa_long_float8, msa_long_mult)
3282         (msa_long_fdiv, msa_long_div): New reservations.
3284 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
3285             Sameera Deshpande  <sameera.deshpande@imgtec.com>
3286             Matthew Fortune  <matthew.fortune@imgtec.com>
3287             Graham Stott  <graham.stott@imgtec.com>
3288             Chao-ying Fu  <chao-ying.fu@imgtec.com>
3290         * config.gcc: Add MSA header file for mips*-*-* target.
3291         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
3292         (Ubv8i, Urv8):  New constraints.
3293         * config/mips/mips-ftypes.def: Add function types for MSA
3294         builtins.
3295         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
3296         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
3297         * config/mips/mips-msa.md: New file.
3298         * config/mips/mips-protos.h
3299         (mips_split_128bit_const_insns): New prototype.
3300         (mips_msa_idiv_insns): Likewise.
3301         (mips_split_128bit_move): Likewise.
3302         (mips_split_128bit_move_p): Likewise.
3303         (mips_split_msa_copy_d): Likewise.
3304         (mips_split_msa_insert_d): Likewise.
3305         (mips_split_msa_fill_d): Likewise.
3306         (mips_expand_msa_branch): Likewise.
3307         (mips_const_vector_same_val_p): Likewise.
3308         (mips_const_vector_same_bytes_p): Likewise.
3309         (mips_const_vector_same_int_p): Likewise.
3310         (mips_const_vector_shuffle_set_p): Likewise.
3311         (mips_const_vector_bitimm_set_p): Likewise.
3312         (mips_const_vector_bitimm_clr_p): Likewise.
3313         (mips_msa_vec_parallel_const_half): Likewise.
3314         (mips_msa_output_division): Likewise.
3315         (mips_ldst_scaled_shift): Likewise.
3316         (mips_expand_vec_cond_expr): Likewise.
3317         * config/mips/mips.c (enum mips_builtin_type): Add
3318         MIPS_BUILTIN_MSA_TEST_BRANCH.
3319         (mips_gen_const_int_vector_shuffle): New prototype.
3320         (mips_const_vector_bitimm_set_p): New function.
3321         (mips_const_vector_bitimm_clr_p): Likewise.
3322         (mips_const_vector_same_val_p): Likewise.
3323         (mips_const_vector_same_bytes_p): Likewise.
3324         (mips_const_vector_same_int_p): Likewise.
3325         (mips_const_vector_shuffle_set_p): Likewise.
3326         (mips_symbol_insns): Forbid loading symbols via immediate for
3327         MSA.
3328         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
3329         stores.
3330         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
3331         MSA.
3332         (mips_lx_address_p): Add support load indexed address for MSA.
3333         (mips_address_insns): Add calculation of instructions needed for
3334         stores and loads for MSA.
3335         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
3336         CONST_VECTOR for MSA and let it fall through.
3337         (mips_ldst_scaled_shift): New function.
3338         (mips_subword_at_byte): Likewise.
3339         (mips_msa_idiv_insns): Likewise.
3340         (mips_legitimize_move): Validate MSA moves.
3341         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
3342         calculation of costs for MSA division.
3343         (mips_split_move_p): Check if MSA moves need splitting.
3344         (mips_split_move): Split MSA moves if necessary.
3345         (mips_split_128bit_move_p): New function.
3346         (mips_split_128bit_move): Likewise.
3347         (mips_split_msa_copy_d): Likewise.
3348         (mips_split_msa_insert_d): Likewise.
3349         (mips_split_msa_fill_d): Likewise.
3350         (mips_output_move): Handle MSA moves.
3351         (mips_expand_msa_branch): New function.
3352         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
3353         Reinstate 'y' modifier.
3354         (mips_file_start): Add MSA .gnu_attribute.
3355         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
3356         FPRs.
3357         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
3358         (mips_class_max_nregs): Add register size for MSA supported mode.
3359         (mips_cannot_change_mode_class): Allow conversion between MSA
3360         vector modes and TImode.
3361         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
3362         instruction.
3363         (mips_secondary_reload_class): Force MSA loads/stores via memory.
3364         (mips_preferred_simd_mode): Add preffered modes for MSA.
3365         (mips_vector_mode_supported_p): Add MSA supported modes.
3366         (mips_autovectorize_vector_sizes): New function.
3367         (mips_msa_output_division): Likewise.
3368         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
3369         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
3370         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
3371         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
3372         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
3373         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
3374         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
3375         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
3376         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
3377         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
3378         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
3379         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
3380         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
3381         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
3382         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
3383         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
3384         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
3385         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
3386         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
3387         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
3388         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
3389         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
3390         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
3391         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
3392         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
3393         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
3394         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
3395         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
3396         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
3397         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
3398         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
3399         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
3400         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
3401         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
3402         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
3403         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
3404         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
3405         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
3406         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
3407         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
3408         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
3409         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
3410         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
3411         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
3412         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3413         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3414         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3415         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3416         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3417         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3418         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3419         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3420         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
3421         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
3422         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
3423         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
3424         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
3425         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
3426         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
3427         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
3428         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
3429         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
3430         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
3431         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
3432         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
3433         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
3434         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
3435         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
3436         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
3437         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
3438         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
3439         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
3440         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
3441         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
3442         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
3443         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
3444         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
3445         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
3446         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
3447         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
3448         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
3449         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
3450         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
3451         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
3452         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
3453         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
3454         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
3455         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
3456         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
3457         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
3458         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
3459         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
3460         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
3461         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
3462         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
3463         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
3464         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
3465         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
3466         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
3467         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
3468         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
3469         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
3470         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
3471         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
3472         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
3473         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
3474         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
3475         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
3476         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
3477         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
3478         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
3479         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
3480         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
3481         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
3482         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
3483         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
3484         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
3485         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
3486         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
3487         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
3488         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
3489         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
3490         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
3491         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
3492         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
3493         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
3494         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
3495         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
3496         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
3497         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
3498         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
3499         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
3500         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
3501         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
3502         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
3503         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
3504         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
3505         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
3506         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
3507         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
3508         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
3509         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
3510         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
3511         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
3512         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
3513         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
3514         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
3515         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
3516         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
3517         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
3518         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
3519         move_v builtins.
3520         (mips_get_builtin_decl_index): New array.
3521         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
3522         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
3523         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
3524         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
3525         (mips_init_builtins): Initialize mips_get_builtin_decl_index
3526         array.
3527         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
3528         hook.
3529         (mips_expand_builtin_insn): Prepare operands for
3530         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
3531         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
3532         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
3533         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
3534         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
3535         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
3536         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
3537         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
3538         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
3539         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
3540         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
3541         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
3542         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
3543         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
3544         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
3545         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
3546         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
3547         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
3548         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
3549         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
3550         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
3551         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
3552         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
3553         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
3554         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
3555         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
3556         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
3557         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
3558         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
3559         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
3560         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
3561         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
3562         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
3563         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
3564         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
3565         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
3566         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
3567         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
3568         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
3569         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
3570         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
3571         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
3572         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
3573         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
3574         These are set implicitly and an error is reported if overridden.
3575         (mips_expand_builtin_msa_test_branch): New function.
3576         (mips_expand_msa_shuffle): Likewise.
3577         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
3578         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
3579         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
3580         (mips_expand_vec_unpack): Add support for MSA.
3581         (mips_expand_vector_init): Likewise.
3582         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
3583         instead of const0_rtx.
3584         (mips_msa_vec_parallel_const_half): New function.
3585         (mips_gen_const_int_vector): Likewise.
3586         (mips_gen_const_int_vector_shuffle): Likewise.
3587         (mips_expand_msa_cmp): Likewise.
3588         (mips_expand_vec_cond_expr): Likewise.
3589         * config/mips/mips.h
3590         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
3591         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
3592         specified.
3593         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
3594         (ISA_HAS_MSA): New macro.
3595         (UNITS_PER_MSA_REG): Likewise.
3596         (BITS_PER_MSA_REG): Likewise.
3597         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
3598         (MSA_REG_FIRST): New macro.
3599         (MSA_REG_LAST): Likewise.
3600         (MSA_REG_NUM): Likewise.
3601         (MSA_REG_P): Likewise.
3602         (MSA_REG_RTX_P): Likewise.
3603         (MSA_SUPPORTED_MODE_P): Likewise.
3604         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
3605         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
3606         * config/mips/mips.md: Include mips-msa.md.
3607         (alu_type): Add simd_add.
3608         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
3609         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
3610         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
3611         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
3612         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
3613         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
3614         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
3615         simd_move, simd_load, simd_store.  Choose "multi" for moves
3616         for "qword_mode".
3617         (qword_mode): New attribute.
3618         (insn_count): Add instruction count for quad moves.
3619         Increase the count for MIPS SIMD division.
3620         (UNITMODE): Add UNITMODEs for vector types.
3621         (addsub): New code iterator.
3622         * config/mips/mips.opt (mmsa): New option.
3623         * config/mips/msa.h: New file.
3624         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
3625         specified.
3626         * config/mips/mti-linux.h: Likewise.
3627         * config/mips/predicates.md
3628         (const_msa_branch_operand): New constraint.
3629         (const_uimm3_operand): Likewise.
3630         (const_uimm4_operand): Likewise.
3631         (const_uimm5_operand): Likewise.
3632         (const_uimm8_operand): Likewise.
3633         (const_imm5_operand): Likewise.
3634         (aq10b_operand): Likewise.
3635         (aq10h_operand): Likewise.
3636         (aq10w_operand): Likewise.
3637         (aq10d_operand): Likewise.
3638         (const_m1_operand): Likewise.
3639         (reg_or_m1_operand): Likewise.
3640         (const_exp_2_operand): Likewise.
3641         (const_exp_4_operand): Likewise.
3642         (const_exp_8_operand): Likewise.
3643         (const_exp_16_operand): Likewise.
3644         (const_vector_same_val_operand): Likewise.
3645         (const_vector_same_simm5_operand): Likewise.
3646         (const_vector_same_uimm5_operand): Likewise.
3647         (const_vector_same_uimm6_operand): Likewise.
3648         (const_vector_same_uimm8_operand): Likewise.
3649         (par_const_vector_shf_set_operand): Likewise.
3650         (reg_or_vector_same_val_operand): Likewise.
3651         (reg_or_vector_same_simm5_operand): Likewise.
3652         (reg_or_vector_same_uimm6_operand): Likewise.
3653         * doc/extend.texi (MIPS SIMD Architecture Functions): New
3654         section.
3655         * doc/invoke.texi (-mmsa): Document new option.
3657 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3659         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
3660         * configure: Regenerate.
3661         * config.in: Regenerate.
3662         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
3663         on -fvtable-verify.
3664         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
3665         (ENDFILE_VTV_SPEC): Define.
3667 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
3669         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
3670         registers in all interrupt handlers if necessary.
3671         (rl78_option_override): Add warning.
3672         (MUST_SAVE_MDUC_REGISTERS): New macro.
3673         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
3674         * config/rl78/rl78.c (check_mduc_usage): New function.
3675         (mduc_regs): New structure to hold MDUC register data.
3676         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
3677         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
3678         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
3679         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
3680         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
3681         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
3683 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
3685         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
3686         (tree-ssa-loop-niter.h): Ditto.
3687         (idx_within_array_bound, ref_within_array_bound): New functions.
3688         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
3689         Factor out check on writable base object to ...
3690         (base_object_writable): ... here.
3692 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3694         * config/arm/arm.md (probe_stack): Add modes to set source
3695         and destination.
3697 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
3699         * regrename.c (base_reg_class_for_rename): New static function.
3700         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
3702 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
3704         * cgraph.c (thunk_adjust): Export.
3705         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
3706         * cgraphunit.c (thunk_adjust): Export.
3707         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
3708         thunks.
3709         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
3710         inlinable.
3711         * tree-inline.c (expand_call_inline): Expand thunks inline.
3713 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
3715         PR target/70998
3716         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
3717         (*sse2_vd_cvtss2sd): Ditto.
3718         * config/i386/i386.md
3719         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
3720         Generate *sse2_vd_cvtsd2ss pattern.
3721         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
3722         Generate *sse2_vd_cvtss2sd pattern.
3724 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
3726         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
3727         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
3728         users.
3730 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
3732         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
3733         * config/sh/sh.c: Define and declare variables on first use throughout
3734         the file.
3735         (current_function_interrupt): Change to bool type.
3736         (frame_insn): Rename to emit_frame_insn and update users.
3737         (push_regs): Use bool for 'interrupt_handler' argument.
3738         (save_schedule_s): Remove.
3739         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
3740         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
3741         targetm.asm_out.unaligned_op.di.
3742         (gen_far_branch): Remove redundant forward declaration.
3743         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
3744         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
3745         (sh_set_return_address, sh_function_ok_for_sibcall,
3746         scavenge_reg): Update comments.
3747         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
3748         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
3749         (sh_attr_renesas_p): Remove unnecessary parentheses.
3750         (branch_dest): Simplify.
3751         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
3752         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
3753         (CUMULATIVE_ARGS): Change macro to typedef.
3754         (current_function_interrupt): Change to bool type.
3755         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
3756         Surround with __cplusplus ifdef.
3757         (sh_compare_op0, sh_compare_op1): Remove.
3758         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
3760 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
3762         * config/arm/arm.md: (arch): Add neon.
3763         (arch_enabled): Return yes for arch neon when TARGET_NEON.
3764         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
3765         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
3766         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
3767         attributes for alt renumbering.  Mark alt 3 as non-predicable.
3768         (thumb2_movdf_vfp): Likewise.
3770 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
3772         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
3773         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
3774         (*andqi_1): Add preferred_for_speed attribute to disparage
3775         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
3776         (*<code>qi_1): Ditto.
3777         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
3778         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
3779         (*ashlqi3_1): Ditto.
3780         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
3781         Add preferred_for_size attribute to disparage alternative 0 and
3782         preferred_for_speed attribute to disparage alternative 1 for
3783         TARGET_PARTIAL_REG_STALL targets.
3785 2016-05-07  Tom de Vries  <tom@codesourcery.com>
3787         PR tree-optimization/70956
3788         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3789         def.
3791 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
3793         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
3794         * config/sh/sh.c (sh_cbranch_distance): Implement it.
3795         * config/sh/sh.md (branch_zero): Remove define_attr.
3796         (define_delay): Disable delay slot if branch distance is one insn.
3798 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
3800         * config/i386/i386.md (LEAMODE): New mode attribute.
3801         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
3802         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
3803         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
3804         operand 2 predicate.
3805         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
3806         (*lea<mode>_general_3): Ditto.
3807         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
3809 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
3811         * genmddump.c (main): Convert argv from char ** to const char **.
3813 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
3815         * coretypes.h (OVERRIDE): New macro.
3816         (FINAL): New macro.
3818 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
3820         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
3821         allow coalescing if the types are compatible.
3823 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
3825         * pass_manager.h (pass_manager::register_pass_name): New method.
3826         (pass_manager::get_pass_by_name): New method.
3827         (pass_manager::create_pass_tab): New method.
3828         (pass_manager::m_name_to_pass_map): New field.
3829         * passes.c (name_to_pass_map): Delete global in favor of field
3830         "m_name_to_pass_map" of pass_manager.
3831         (register_pass_name): Rename from a function to...
3832         (pass_manager::register_pass_name): ...this method, updating
3833         for renaming of global "name_to_pass_map" to field
3834         "m_name_to_pass_map".
3835         (create_pass_tab): Rename from a function to...
3836         (pass_manager::create_pass_tab): ...this method, updating
3837         for renaming of global "name_to_pass_map" to field.
3838         (get_pass_by_name): Rename from a function to...
3839         (pass_manager::get_pass_by_name): ...this method.
3840         (enable_disable_pass): Convert use of get_pass_by_name to
3841         a method call, locating the pass_manager singleton.
3843 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
3845         * genattr-common.c (main): Convert argv from char ** to const char **.
3846         * genattr.c (main): Likewise.
3847         * genattrtab.c (main): Likewise.
3848         * genautomata.c (initiate_automaton_gen): Likewise.
3849         (main): Likewise.
3850         * gencodes.c (main): Likewise.
3851         * genconditions.c (main): Likewise.
3852         * genconfig.c (main): Likewise.
3853         * genconstants.c (main): Likewise.
3854         * genemit.c (main): Likewise.
3855         * genenums.c (main): Likewise.
3856         * genextract.c (main): Likewise.
3857         * genflags.c (main): Likewise.
3858         * genmddeps.c (main): Likewise.
3859         * genopinit.c (main): Likewise.
3860         * genoutput.c (main): Likewise.
3861         * genpeep.c (main): Likewise.
3862         * genpreds.c (main): Likewise.
3863         * genrecog.c (main): Likewise.
3864         * gensupport.c (init_rtx_reader_args_cb): Likewise.
3865         (init_rtx_reader_args): Likewise.
3866         * gensupport.h (init_rtx_reader_args_cb): Likewise.
3867         (init_rtx_reader_args): Likewise.
3868         * gentarget-def.c (main): Likewise.
3869         * read-md.c (read_md_files): Likewise.
3870         * read-md.h (read_md_files): Likewise.
3872 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
3874         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
3875         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
3876         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
3877         Remove unused predicate.
3878         (register_and_not_fp_reg_operand): Ditto.
3880 2016-05-06  Martin Liska  <mliska@suse.cz>
3882         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
3883         instead of vec as the vector is local to the function.
3885 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
3887         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
3888         avx512bw alternative.
3890         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
3891         before the ashr<mode>3 pattern.
3893         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
3894         v instead of x in vex or maybe_vex alternatives, use
3895         maybe_evex instead of vex in prefix.
3897         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
3898         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
3899         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
3900         in vex or maybe_vex alternatives, use maybe_evex instead of vex
3901         in prefix.
3903         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
3904         v instead of x in vex or maybe_vex alternatives, use
3905         maybe_evex instead of vex in prefix.
3907         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
3908         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
3909         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
3910         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
3911         alternatives, use maybe_evex instead of vex in prefix.
3913         * config/i386/sse.md (vec_interleave_lowv4sf,
3914         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
3915         v instead of x in vex or maybe_vex alternatives, use
3916         maybe_evex instead of vex in prefix.
3918         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
3919         v instead of x in vex or maybe_vex alternatives, use
3920         maybe_evex instead of vex in prefix.
3922         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
3923         v constraint instead of x.
3925 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
3927         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3928         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3929         equality first.
3931 2016-05-06  Richard Biener  <rguenther@suse.de>
3933         PR tree-optimization/70948
3934         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3935         Properly clobber all fields of va_list for __builtin_va_start.
3937 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
3939         PR debug/70935
3940         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3941         loop latch destination.
3943 2016-05-06  Martin Liska  <mliska@suse.cz>
3945         * tree-ssa-uninit.c: Apply manual changes
3946         to the GNU coding style.
3947         (prune_uninit_phi_opnds): Rename from
3948         prune_uninit_phi_opnds_in_unrealizable_paths.
3950 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3952         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
3953         mspace): Remove deprecated options.
3954         * doc/invoke.texi (SH options): Remove -mspace.
3956 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3958         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
3960 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3962         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
3963         corresponding combine split pattern.
3965 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3967         PR target/58219
3968         * config/sh/predicates.md (long_displacement_mem_operand): New.
3969         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
3970         Add movi20, movi20s alternatives.  Adjust length attribute for
3971         alternatives.
3972         (movsi_ie): Allow for any FPU.  Adjust length attribute for
3973         alternatives.
3974         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
3975         attribute for alternatives.
3976         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
3977         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
3978         length attribute for alternatives.
3980 2016-05-06  Richard Biener  <rguenther@suse.de>
3982         PR tree-optimization/70960
3983         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
3985 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3987         PR target/52933
3988         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
3989         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
3991 2016-05-06  Marek Polacek  <polacek@redhat.com>
3993         PR sanitizer/70875
3994         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
3996 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
3998         PR target/54089
3999         * config/sh/sh.md (*rotcr): Add another variant.
4001 2016-05-06  Richard Biener  <rguenther@suse.de>
4003         PR middle-end/70931
4004         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4006 2016-05-06  Richard Biener  <rguenther@suse.de>
4008         PR middle-end/70941
4009         * fold-const.c (split_tree): Always convert to the original type
4010         before negating.
4012 2016-05-06  Richard Biener  <rguenther@suse.de>
4014         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
4015         (fwprop_addr): Likewise.
4017 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
4019         PR target/70873
4020         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
4021         New prototype.
4022         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
4023         * config/i386/i386.md (push mem splitter): Use find_constant_src in
4024         the splitter condition.
4025         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
4026         the splitter condition.
4027         (FP float_extend load splitter): Ditto.
4029 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
4031         * config/i386/i386.md (peehole2 patterns): Change true_regnum
4032         to REGNO in all peephole2 patterns.
4033         (post-reload splitters): Change true_regnum to REGNO in
4034         post-reload splitters.
4035         (zero_extend splitters): Use general_reg_operand and
4036         nonimmediate_gr_operand predicates.
4038 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
4040         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
4041         v constraint instead of x.
4043 2016-05-05  Alan Modra  <amodra@gmail.com>
4045         PR target/68662
4046         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
4047         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
4048         TARGET_NO_FP_IN_TOC for -mrelocatable.
4049         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
4050         TARGET_RELOCATABLE test.
4051         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4052         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4053         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4054         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4055         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4056         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4057         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4058         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4059         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
4060         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4061         Likewise.
4062         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
4063         (rs6000_stack_info): Likewise.
4064         (rs6000_elf_asm_out_constructor): Likewise.
4065         (rs6000_elf_asm_out_destructor): Likewise.
4066         (rs6000_elf_declare_function_name): Likewise.
4067         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
4068         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
4069         Don't define.
4071 2016-05-05  Alan Modra  <amodra@gmail.com>
4073         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
4075 2016-05-05  Alan Modra  <amodra@gmail.com>
4077         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
4078         out-of-line gpr restore for one or two regs if that would add
4079         a save of lr.
4081 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
4083         PR target/70873
4084         * config/i386/i386.md
4085         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
4086         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
4087         as operand 0 predicate.
4088         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
4089         Ditto.
4090         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
4091         Ditto.  Emit the pattern using RTX.
4093         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
4094         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
4095         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
4096         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
4097         Ditto.
4098         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
4099         sse_reg_operand as operand 0 predicate.
4101         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
4102         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
4103         instead of gen_rtx_REG.
4104         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
4105         Ditto.
4107 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4109         * function.c (emit_use_return_register_into_block): Delete.
4110         (gen_return_pattern): Delete.
4111         (emit_return_into_block): Delete.
4112         (active_insn_between): Delete.
4113         (convert_jumps_to_returns): Delete.
4114         (emit_return_for_exit): Delete.
4115         (thread_prologue_and_epilogue_insns): Delete all code dealing with
4116         simple_return for shrink-wrapped blocks.
4117         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
4118         end of blocks that need one.
4119         (get_unconverted_simple_return): Delete.
4120         (convert_to_simple_return): Delete.
4121         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
4122         (convert_to_simple_return): Ditto.
4124 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4126         * cfgcleanup.c (bb_is_just_return): New function.
4127         (try_optimize_cfg): Simplify jumps to return, branches to return,
4128         and branches around return.
4130 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4132         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
4133         branch to a return.
4135 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
4137         PR c++/70906
4138         PR c++/70933
4139         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
4140         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
4141         assert flags & OEP_HASH_CHECK, instead of asserting it
4142         never happens.  Handle TARGET_EXPR.
4143         * fold-const.c (operand_equal_p): For hash verification,
4144         or in OEP_HASH_CHECK into flags.
4146 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4148         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4149         comment.
4150         (compute_samebase_partition_bases): Fix typo.
4152 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
4154         * config/i386/sse.md (vec_interleave_highv8sf,
4155         vec_interleave_lowv8sf, vec_interleave_highv4df,
4156         vec_interleave_lowv4df): Remove constraints from expanders.
4158         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
4160 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
4162         * tree-inline.c (expand_call_inline): Fix path dealing with
4163         making lhs of call statement undefined.
4165 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
4167         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4168         Check availability on NODE, too.
4169         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
4170         (cgraph_node::call_for_symbol_and_aliases): Likewise.
4171         (varpool_node::call_for_symbol_and_aliase): Likewise.
4172         * ipa-pure-const.c (add_new_function): Analyze all bodies.
4173         (propagate_pure_const): Propagate across interposable functions, too.
4174         (skip_function_for_local_pure_const): Do not skip interposable bodies
4175         with aliases.
4176         (pass_local_pure_const::execute): Update.
4178 2016-05-04  Marek Polacek  <polacek@redhat.com>
4180         * doc/invoke.texi: Document -Wdangling-else.
4182 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4184         * config.gcc: Error out when conflicting multilib is detected.  Do not
4185         loop over multilibs since no combination is legal.
4187 2016-05-04  Alan Modra  <amodra@gmail.com>
4189         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
4190         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
4191         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4192         Align .toc.
4194 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
4196         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
4197         Clean up p5600 comments.
4199 2016-05-04  Richard Biener  <rguenther@suse.de>
4201         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
4202         constructor simplifications.
4203         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
4205 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
4207         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
4208         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
4209         result.set_rtx is null instead of aborting.
4210         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
4211         Always enable.
4212         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
4213         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
4214         *mov<mode>_store_postinc): New patterns.
4216 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
4218         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
4219         as commutative.  Check both conversions are NOP.
4220         ((A & B) OP (C & B)): Remove.
4222 2016-05-04  Alan Modra  <amodra@gmail.com>
4224         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
4226 2016-05-04  Alan Modra  <amodra@gmail.com>
4228         PR target/70866
4229         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
4230         when cr2,3,4 are all fixed regs.
4232 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
4234         PR rtl-optimization/57193
4235         * opts.c (default_options_table): Revert OPT_frename_registers change.
4236         * doc/invoke.texi (-frename-registers, -O2): Likewise.
4238 2016-05-03  Martin Sebor  <msebor@redhat.com>
4240         PR c++/66561
4241         * builtins.c (fold_builtin_FILE): New function.
4242         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
4243         (fold_builtin_0): Call them.
4244         * gimplify.c (gimplify_call_expr): Remove the handling of
4245         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
4247         PR c++/66561
4248         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
4249         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
4250         constants.
4252         PR c++/66639
4253         * doc/extend.texi (Function Names as Strings): Update __func__,
4254         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
4255         constants.
4257 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4258             Richard Biener  <rguenther@suse.de>
4260         PR tree-optimization/70916
4261         * tree-if-conv.c: Include cfganal.h.
4262         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
4263         and remove_fake_exit_edges around the optimization pass.
4265 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
4267         * cgraph.c (symbol_table::create_edge): Set inline_failed.
4268         (cgraph_edge::make_direct): Likewise.
4269         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
4270         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
4271         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
4272         (CIF_THUNK): New code.
4273         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
4274         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
4275         (compute_inline_parameters): Set inline_failed for thunks.
4276         (inline_analyze_function): Cleanup.
4277         * ipa-inline.c (can_inline_edge_p): Do not deal with
4278         call_stmt_cannot_inline_p.
4279         (can_early_inline_edge_p): Likewise.
4280         (early_inliner): Initialize inline_failed.
4281         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
4283 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
4285         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
4286         from nonimm_ssenomem_operand.
4287         (nonimm_ssenomem_operand): New predicate.
4288         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
4289         as operand 0 predicate.
4290         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
4291         Disable unsupported alternatives using "enabled" attribute.
4292         Use register_ssemem_operand as operand 0 predicate.
4293         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
4295 2016-05-03  Marek Polacek  <polacek@redhat.com>
4297         PR c/70859
4298         * input.c (expansion_point_location): New function.
4299         * input.h (expansion_point_location): Declare.
4301 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4303         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
4304         occurence with frame_offset_ ones.
4306 2016-05-03  Alan Modra  <amodra@gmail.com>
4308         PR rtl-optimization/70890
4309         * ira.c (combine_and_move_insns): When moving def_insn, remove
4310         equivs on use_insn.
4312 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4314         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
4315         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
4316         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
4317         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
4319 2016-05-03  Alan Modra  <amodra@gmail.com>
4321         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
4322         for SAVE_MULTIPLE/STORE_MULTIPLE.
4324 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4326         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
4327         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
4329 2016-05-03  Richard Biener  <rguenther@suse.de>
4331         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
4332         default true.
4333         (gimplify_arg): Likewise.
4334         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
4335         re-writing the result to a decl if required.
4336         (internal_get_tmp_var): Add allow_ssa parameter
4337         and override into_ssa with it.
4338         (get_formal_tmp_var): Adjust.
4339         (get_initialized_tmp_var): Add allow_ssa parameter.
4340         (gimplify_arg): Add allow_ssa parameter and avoid generating
4341         SSA names for the result false.
4342         (gimplify_call_expr): If the call may return twice do not
4343         gimplify parameters into SSA.
4344         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
4345         (gimplify_modify_expr): Adjust assert.  For noreturn calls
4346         with a SSA name LHS adjust its def.
4347         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
4348         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
4349         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
4350         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
4351         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
4352         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
4353         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
4354         (optimize_target_teams): Do not allow SSA names for clause operands.
4355         (gimplify_expr): Likewise for where we mark the result addressable.
4356         * passes.def (pass_init_datastructures): Remove.
4357         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
4358         (rewrite_stmt): Likewise.
4359         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
4360         (replace_locals_op): Replace SSA names.
4361         (copy_gimple_seq_and_replace_locals): Init src_cfun.
4362         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
4363         * cgraph.c (release_function_body): Free CFG annotations only
4364         when we have a CFG.  Simplify.
4365         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
4366         force_gimple_operand instead of get_initialized_tmp_var.
4367         * tree-pass.h (make_pass_init_datastructures): Remove.
4368         * tree-ssa.c (execute_init_datastructures): Remove.
4369         (pass_data_init_datastructures): Likewise.
4370         (class pass_init_datastructures): Likewise.
4371         (make_pass_init_datastructures): Likewise.
4372         * omp-low.c (create_omp_child_function): Init SSA data structures.
4373         (grid_expand_target_grid_body): Likewise.
4374         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
4375         name before adding it to names_to_release.
4376         (remove_bb): Always release SSA defs.
4377         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
4378         before dereferencing it.
4379         * cgraphunit.c (init_lowered_empty_function): Always
4380         int SSA data structures.
4381         * tree-ssanames.c (release_defs): Remove assert that we are in
4382         SSA form.
4383         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
4385 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4386             Uros Bizjak  <ubizjak@gmail.com>
4388         PR rtl-optimization/70467
4389         * config/i386/predicates.md (x86_64_hilo_int_operand,
4390         x86_64_hilo_general_operand): New predicates.
4391         * config/i386/constraints.md (Wd): New constraint.
4392         * config/i386/i386.md (mode attr di): Use Wd instead of e.
4393         (general_hilo_operand): New mode attr.
4394         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
4395         instead of <general_operand>.
4396         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
4397         x86_64_hilo_general_operand instead of <general_operand>.
4399 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4401         PR tree-optimization/70916
4402         * tree-if-conv.c (constant_or_ssa_name): Removed.
4403         (fold_build_cond_expr): Use is_gimple_val instead of
4404         constant_or_ssa_name.
4406         PR tree-optimization/70916
4407         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4408         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4410         PR target/49244
4411         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
4412         (optimize_atomic_bit_test_and): New function.
4413         (pass_fold_builtins::execute): Use it.
4414         * optabs.def (atomic_bit_test_and_set_optab,
4415         atomic_bit_test_and_complement_optab,
4416         atomic_bit_test_and_reset_optab): New optabs.
4417         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
4418         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
4419         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
4420         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
4421         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
4422         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
4423         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
4424         * doc/md.texi (atomic_bit_test_and_set@var{mode},
4425         atomic_bit_test_and_complement@var{mode},
4426         atomic_bit_test_and_reset@var{mode}): Document.
4427         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
4428         atomic_bit_test_and_complement<mode>,
4429         atomic_bit_test_and_reset<mode>): New expanders.
4430         (atomic_bit_test_and_set<mode>_1,
4431         atomic_bit_test_and_complement<mode>_1,
4432         atomic_bit_test_and_reset<mode>_1): New insns.
4434 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
4436         PR rtl-optimization/70687
4437         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
4438         instead of unsigned HOST_WIDE_INT.
4440 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
4442         PR rtl-optimization/44281
4443         * hard-reg-set.h (struct target_hard_regs): New field
4444         x_fixed_nonglobal_reg_set.
4445         (fixed_nonglobal_reg_set): New macro.
4446         * reginfo.c (init_reg_sets_1): Initialize it.
4447         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
4448         of fixed_reg_set.
4449         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
4451 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
4453         PR tree-optimization/56541
4454         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
4455         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
4456         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
4457         (any_complicated_phi): new static variable.
4458         (aggressive_if_conv): delete.
4459         (if_convertible_phi_p): support phis with more than two arguments.
4460         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
4461         critical pred edges.
4462         (ifcvt_split_critical_edges): support phis with more than two
4463         arguments by checking new parameter.  only split critical edges
4464         if needed.
4465         (tree_if_conversion): handle simd pragma marked loop using new
4466         local variable aggressive_if_conv.  check any_complicated_phi.
4468 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
4470         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
4471         before using it.
4473 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
4475         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
4476         cbase.
4478 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
4480         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
4481         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
4482         define_insn_and_split.
4483         (mulsi3_i): New define_insn_and_split.
4484         (mulsi3_call): Convert to define_insn.
4485         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
4486         Remove constraints.
4488 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4490         * machmode.h (mode_complex): Add support to give the complex mode
4491         for a given mode.
4492         (GET_MODE_COMPLEX_MODE): Likewise.
4493         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
4494         stored by build_complex_type and gfc_build_complex_type instead of
4495         trying to figure out the appropriate mode based on the size. Raise
4496         an assertion error, if the type was not set.
4497         * genmodes.c (struct mode_data): Add field for the complex type of
4498         the given type.
4499         (blank_mode): Likewise.
4500         (make_complex_modes): Remember the complex mode created in the
4501         base type.
4502         (emit_mode_complex): Write out the mode_complex array to map a
4503         type mode to the complex version.
4504         (emit_insn_modes_c): Likewise.
4505         * tree.c (build_complex_type): Set the complex type to use before
4506         calling layout_type.
4507         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
4508         support for __float128 complex datatypes.
4509         (rs6000_hard_regno_mode_ok): Likewise.
4510         (rs6000_setup_reg_addr_masks): Likewise.
4511         (rs6000_complex_function_value): Likewise.
4512         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
4513         __float128 and __ibm128 complex.
4514         (FLOAT128_IBM_P): Likewise.
4515         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4516         * doc/extend.texi (Additional Floating Types): Document that
4517         -mfloat128 must be used to enable __float128.  Document complex
4518         __float128 and __ibm128 support.
4520 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
4522         PR target/49244
4523         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
4524         char/short arguments promoted to int because of promote_prototypes.
4526 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
4528         * config/i386/predicates.md (register_ssemem_operand): New predicate.
4529         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
4530         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
4531         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
4532         alternatives using "enabled" attribute.  Use register_ssemem_operand
4533         as operand 1 predicate.
4534         (*cmpi<unord>xf_i387): Split XFmode pattern from
4535         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
4536         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
4537         *absneg<mode>2_i387.  Disable unsupported alternatives using
4538         "enabled" attribute.
4539         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
4541 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
4543         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
4544         marker.
4545         (oacc_loop_process): Check mask for loop termination.
4547 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
4549         * cif-code.def (CIF_THUNK): Add.
4550         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
4551         accidental change.
4553 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
4555         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
4556         (dump_inline_summary): Dump it.
4557         (fp_expression_p): New predicate.
4558         (estimate_function_body_sizes): Use it.
4559         (inline_merge_summary): Merge fp_expressions.
4560         (inline_read_section): Read fp_expressions.
4561         (inline_write_summary): Write fp_expressions.
4562         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
4563         codegen boundary if either caller or callee is !fp_expressions.
4564         * ipa-inline.h (inline_summary): Add fp_expressions.
4565         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
4566         to fp_expressions be sure the fp generation flags are updated.
4568 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
4570         PR rtl-optimization/70467
4571         * cse.c (cse_insn): Handle no-op MEM moves after folding.
4573         PR rtl-optimization/70467
4574         * ipa-pure-const.c (check_call): Handle internal calls even in
4575         ipa mode like in local mode.
4577 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4579         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
4581 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
4583         * match.pd (X u< X, X u> X): New transformations.
4585 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
4587         * flag-types.h (enum warn_strict_overflow_code): Move ...
4588         * coretypes.h: ... here.
4589         * fold-const.h (fold_overflow_warning): Declare.
4590         * fold-const.c (fold_overflow_warning): Make non-static.
4591         (fold_comparison): Move the transformation of X +- C1 CMP C2
4592         into X CMP C2 -+ C1 ...
4593         * match.pd: ... here.
4594         * gimple-fold.c (fold_stmt_1): Protect with
4595         fold_defer_overflow_warnings.
4597 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
4599         * omp-low.c (struct oacc_loop): Add 'inner' field.
4600         (new_oacc_loop_raw): Initialize it to zero.
4601         (oacc_loop_fixed_partitions): Initialize it.
4602         (oacc_loop_auto_partitions): Partition outermost loop to outermost
4603         available partitioning.
4605 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
4607         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
4608         register_operand.
4609         (umulsidi3): Likewise.
4610         (indirect_jump): Fix jump instruction assembly patterns.
4612 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
4614         PR target/70860
4615         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4616         (nvptx_function_value): Assert non-NULL cfun.
4618 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
4620         PR rtl-optimization/70886
4621         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
4623         * cselib.h (rtx_equal_for_cselib_1): Declare.
4624         (rtx_equal_for_cselib_p: New inline function.
4625         * cselib.c (rtx_equal_for_cselib_p): Delete.
4626         (rtx_equal_for_cselib_1): Make public.
4628 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
4630         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
4631         (register_mixssei387nonimm_operand): Remove predicate.
4632         * config/i386/i386.md (*fop_<mode>_comm): Merge from
4633         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
4634         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
4635         for TARGET_MIX_SSE_I387 alternatives.
4636         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
4637         Disable unsupported alternatives using "enabled" attribute.  Use
4638         nonimm_ssenomem_operand as operand 1 predicate.  Also check
4639         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
4641 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
4643         * tree.c (cst_and_fits_in_hwi): Simplify.
4645 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
4647         * tree.h (wi::to_wide): New function.
4648         * expr.c (expand_expr_real_1): Use wi::to_wide.
4649         * fold-const.c (int_const_binop_1): Likewise.
4650         (extract_muldiv_1): Likewise.
4652 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
4654         * wide-int.h: Update offset_int and widest_int documentation.
4655         (WI_SIGNED_SHIFT_RESULT): New macro.
4656         (wi::binary_shift): Define signed_shift_result_type for
4657         shifts on offset_int- and widest_int-like types.
4658         (generic_wide_int): Support <<= and >>= if << and >> are supported.
4659         * tree.h (int_bit_position): Use shift operators instead of wi::
4660          shifts.
4661         * alias.c (adjust_offset_for_component_ref): Likewise.
4662         * expr.c (get_inner_reference): Likewise.
4663         * fold-const.c (fold_comparison): Likewise.
4664         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
4665         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
4666         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4667         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4668         (stmt_kills_ref_p): Likewise.
4669         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
4670         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
4671         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4672         (ao_ref_init_from_vn_reference): Likewise.
4674 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
4676         * wide-int.h: Update offset_int and widest_int documentation.
4677         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
4678         (wi::binary_traits): Allow ordered comparisons between offset_int and
4679         offset_int, between widest_int and widest_int, and between either
4680         of these types and basic C types.
4681         (operator <, <=, >, >=): Define for the same combinations.
4682         * tree.h (tree_int_cst_lt): Use comparison operators instead
4683         of wi:: comparisons.
4684         (tree_int_cst_le): Likewise.
4685         * gimple-fold.c (fold_array_ctor_reference): Likewise.
4686         (fold_nonarray_ctor_reference): Likewise.
4687         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
4688         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
4689         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
4690         * tree-sra.c (completely_scalarize): Likewise.
4691         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
4692         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
4693         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
4694         (check_for_binary_op_overflow): Likewise.
4695         (search_for_addr_array): Likewise.
4696         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
4698 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
4700         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
4701         (arc_save_restore): Likewise.
4702         (arc_dwarf_register_span): Likewise.
4703         (arc_output_pic_addr_const): Initialize suffix variable.
4705 2016-05-02  Martin Liska  <mliska@suse.cz>
4707         * symbol-summary.h (function_summary::function_summary):
4708         Remove checking assert for all cgraph nodes.
4709         (function_summary::get): Check summary_uid.
4710         (symtab_insertion): Check summary_uid.
4712 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
4714         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
4715         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
4716         bmaskn instruction.
4717         (arc_dwarf_register_span): Remove enum keyword.
4718         (compact_memory_operand_p): New function.
4719         * config/arc/arc.h (reg_class): Add code density register classes.
4720         (REG_CLASS_NAMES): Likewise.
4721         (REG_CLASS_CONTENTS): Likewise.
4722         * config/arc/arc.md (*movqi_insn): Add code density instructions.
4723         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
4724         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
4725         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
4726         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
4727         constraints.
4728         (h, Rcd, Rsd, Rzd): New register constraints.
4729         (T): Use compact_memory_operand_p function.
4730         * config/arc/predicates.md (compact_load_memory_operand): Remove.
4732 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
4734         * config/sh/sh.md (*negnegt, *movtt): Remove.
4736 2016-05-02  Marek Polacek  <polacek@redhat.com>
4737             Tom de Vries  <tom@codesourcery.com>
4739         PR tree-optimization/70700
4740         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
4741         bigger than FIRST_REF_NODE.
4743 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
4745         PR target/52898
4746         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
4747         TARGET_CMPEQDI_T.
4748         (prepare_cbranch_operands): Don't use scratch register.  Assume that
4749         function is used when pseudos can be created.
4750         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
4751         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
4752         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
4753         define_expand.  Allow it only when pseudos can be created.
4754         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
4756 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
4758         * config/i386/constraints.md (BC): Only allow -1 operands.
4759         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
4760         Add "enabled" attribute.  Update XI mode attribute calculation.
4761         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
4762         (*movoi_internal_avx): Update XI mode attribute calculation.
4763         (*movti_internal): Ditto.
4765 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
4767         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
4768         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
4770 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4772         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
4773         statement on instruction code.  Remove trailing spaces.
4774         (altivec_expand_stv_builtin): Likewise.
4776 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
4778         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
4779         (TARGET_FPU_DOUBLE): Simplify.
4780         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
4781         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
4782         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
4783         with 'TARGET_FPU_DOUBLE'.
4784         * config/sh/sh.md: Likewise.
4786 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
4788         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
4789         SH_DIV_STR_FOR_SIZE): Remove.
4790         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
4791         SH_DIV_STR_FOR_SIZE): Remove.
4793 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
4795         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
4796         logical_reg_operand): Delete.
4797         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
4798         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
4799         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
4800         match_operand and match_test.
4801         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
4802         variables on their first use.  Return bool values.
4803         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
4804         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
4805         arith_reg_operand for input operand.  Remove empty constraints.
4806         (xorsi3): Delete.
4807         (*xorsi3_compact): Rename to xorsi3.
4808         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
4809         (*zero_extend<mode>si2_disp_mem): Update comment.
4810         (mov_nop): Delete.
4812 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
4814         * config/sh/t-sh: Remove SH5 support.
4815         * config.gcc: Likewise.
4816         * configure: Likewise.
4818 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4820         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
4822 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
4824         * config/sh/sh.c (register_sh_passes, sh_option_override,
4825         sh_print_operand, prepare_move_operands,
4826         sh_can_follow_jump): Remove TARGET_SH1 checks.
4827         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
4828         PROMOTE_MODE): Likewise.
4829         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
4830         movdi): Likewise.
4832 2016-04-30  Alan Modra  <amodra@gmail.com>
4834         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
4835         restoring when fixed_reg_p, but allow out-of-line or stmw save.
4836         Check for user regs later to avoid unnecessary looping over regs.
4837         Merge user reg check with non-saved reg check.  Don't force
4838         inline VR restore when static chain used.
4839         (rs6000_frame_related): Omit eh_frame info for user regs when
4840         saving.
4841         (fixed_regs_p): Delete.
4843 2016-04-30  Alan Modra  <amodra@gmail.com>
4845         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
4846         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
4847         Update all uses.
4849 2016-04-30  Alan Modra  <amodra@gmail.com>
4851         PR target/69645
4852         * config/rs6000/rs6000.c (fixed_reg_p): New function.
4853         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
4854         Update all uses.
4856 2016-04-30  Alan Modra  <amodra@gmail.com>
4858         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4859         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
4860         flag_pic test for Darwin.
4862 2016-04-30  Alan Modra  <amodra@gmail.com>
4864         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
4865         throw_calls_crossed.
4866         (REG_FREQ_CALLS_CROSSED): Delete.
4867         (REG_N_THROWING_CALLS_CROSSED): Delete.
4868         * regstat.c (regstat_bb_compute_ri): Don't calculate
4869         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
4870         (dump_reg_info): Don't print call cross frequency.
4871         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
4872         and REG_N_THROWING_CALLS_CROSSED.
4874 2016-04-30  Alan Modra  <amodra@gmail.com>
4876         * regs.h (struct reg_info_t): Delete live_length.
4877         (REG_LIVE_LENGTH): Delete macro.
4878         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
4879         local_live, local_processed and local_live_last_luid params.
4880         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
4881         Formatting fixes.
4882         (regstat_compute_ri): Adjust for above.  Don't set
4883         REG_LIVE_LENGTH.
4884         (dump_reg_info): Don't print live length.
4885         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
4886         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
4887         Localize loop_depth var.
4889 2016-04-30  Alan Modra  <amodra@gmail.com>
4891         * ira.c (enum valid_equiv): New.
4892         (validate_equiv_mem): Return enum.
4893         (update_equiv_mem): Create replacement in more cases.
4894         (add_store_equivs): Update validate_equiv_mem call.
4896 2016-04-30  Alan Modra  <amodra@gmail.com>
4898         * ira.c (combine_and_move_insns): Rather than scanning insns,
4899         use DF infrastucture to find use and def insns.
4901 2016-04-30  Alan Modra  <amodra@gmail.com>
4903         ira.c (combine_and_move_insns): Move invariant conditions..
4904         (ira.c): ..to here.  Call combine_and_move_insns before
4905         add_store_equivs.  Call grow_reg_equivs later.  Allocate
4906         req_equiv later using max_reg_num() rather than global max_regno.
4907         (contains_replace_regs): Delete.
4908         (add_store_equivs): Remove contains_replace_regs test.
4910 2016-04-30  Alan Modra  <amodra@gmail.com>
4912         * ira.c (struct equiv_mem_data): New.
4913         (equiv_mem, equiv_mem_modified): Delete static vars.
4914         (validate_equiv_mem_from_store): Use "data" param to communicate..
4915         (validate_equiv_mem): ..from here.
4917 2016-04-30  Alan Modra  <amodra@gmail.com>
4919         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
4920         split out from..
4921         (update_reg_equivs): ..here.  Move allocation and freeing of
4922         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
4923         end_alias_analysis to..
4924         (ira): ..here.
4926 2016-04-30  Alan Modra  <amodra@gmail.com>
4928         * ira.c (pdx_subregs): Delete.
4929         (struct equivalence): Add pdx_subregs field.
4930         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
4931         pdx_subregs access.
4932         (update_equiv_regs): Don't create or free pdx_subregs.  Update
4933         pdx_subregs access.
4935 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4937         * config/rs6000/altivec.h: Change definitions of vec_xl and
4938         vec_xst.
4939         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
4940         (LD_ELEMREV_V2DI): New.
4941         (LD_ELEMREV_V4SF): New.
4942         (LD_ELEMREV_V4SI): New.
4943         (LD_ELEMREV_V8HI): New.
4944         (LD_ELEMREV_V16QI): New.
4945         (ST_ELEMREV_V2DF): New.
4946         (ST_ELEMREV_V2DI): New.
4947         (ST_ELEMREV_V4SF): New.
4948         (ST_ELEMREV_V4SI): New.
4949         (ST_ELEMREV_V8HI): New.
4950         (ST_ELEMREV_V16QI): New.
4951         (XL): New.
4952         (XST): New.
4953         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4954         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
4955         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
4956         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
4957         (altivec_expand_builtin): Add handling for
4958         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
4959         (rs6000_invalid_builtin): Add error-checking for
4960         RS6000_BTM_P9_VECTOR.
4961         (altivec_init_builtins): Define builtins used to implement vec_xl
4962         and vec_xst.
4963         (rs6000_builtin_mask_names): Define power9-vector.
4964         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
4965         (RS6000_BTM_P9_VECTOR): Define.
4966         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
4967         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
4968         (vsx_ld_elemrev_v2df): Likewise.
4969         (vsx_ld_elemrev_v4sf): Likewise.
4970         (vsx_ld_elemrev_v4si): Likewise.
4971         (vsx_ld_elemrev_v8hi): Likewise.
4972         (vsx_ld_elemrev_v16qi): Likewise.
4973         (vsx_st_elemrev_v2df): Likewise.
4974         (vsx_st_elemrev_v2di): Likewise.
4975         (vsx_st_elemrev_v4sf): Likewise.
4976         (vsx_st_elemrev_v4si): Likewise.
4977         (vsx_st_elemrev_v8hi): Likewise.
4978         (vsx_st_elemrev_v16qi): Likewise.
4979         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
4980         grammar.
4982 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
4984         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
4985         out into ...
4986         (simplify_control_stmt_condition_1): ... here.  Recurse into
4987         BIT_AND_EXPRs and BIT_IOR_EXPRs.
4989 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
4991         PR target/69810
4992         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
4993         (zero_extendqi<mode>2_dot): Revert earlier conversion from
4994         define_insn_and_split to define_insn.
4995         (zero_extendqi<mode>2_dot2): Same.
4996         (extendqi<mode>2_dot): Same.
4997         (extendqi<mode>2_dot2): Same.
4999 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5001         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
5002         (probe_stack): New expander.
5003         (probe_stack_<mode>): New insn pattern.
5005 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5007         * config/i386/i386.md
5008         (operations with memory inputs setting flags peephole2):
5009         Remove uneeded REG_P checks.  Cleanup pattern generation.
5011 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5013         * tree-vect-loop.c (vect_transform_loop): Fix
5014         nb_iterations_upper_bound computation for vectorized loop.
5016 2016-04-29  Marek Polacek  <polacek@redhat.com>
5017             Jakub Jelinek  <jakub@redhat.com>
5019         PR sanitizer/70342
5020         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
5021         TARGET_EXPR_SLOT as a base.
5023 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
5025         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
5026         with 'rCm2' constraints to limit possible immediate size.
5027         (*load_zeroextendqisi_update): Likewise.
5028         (*load_signextendqisi_update): Likewise.
5029         (*loadhi_update): Likewise.
5030         (*load_zeroextendhisi_update): Likewise.
5031         (*load_signextendhisi_update): Likewise.
5032         (*loadsi_update): Likewise.
5033         (*loadsf_update): Likewise.
5035 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5037         * config/i386/predicates.md (constm1_operand): Fix comparison.
5039 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
5041         * testsuite/gcc.target/arc/ieee_eq.c: New test.
5043 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
5045         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
5046         remaining SH5 related settings.
5047         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
5048         shmedia_prepare_call_address): Delete.
5049         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
5050         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
5051         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
5052         UNSUPPORTED_SH2A): Remove m5 checks.
5053         (sh_divide_strategy_e): Remove SH5 division strategies.
5054         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
5055         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
5057 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5059         * config/s390/s390.c (s390_rtx_costs): Update documentation.
5061 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5063         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
5064         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
5065         Change lder to ldr.
5066         * config/s390/vector.md ("mov<mode>"): Likewise.
5068 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
5070         * config/s390/constraints.md ("U", "W"): Invoke
5071         s390_mem_constraint with "ZR" and "ZT".
5072         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
5073         addresses when using LRA.  Accept also short displacements for S
5074         and T constraints.  Do not check for long displacement target for
5075         S and T constraints.
5076         (s390_mem_constraint): Remove handling of U and W constraints.
5077         * config/s390/s390.md (various patterns): Remove the short
5078         displacement constraints (Q and R) if a long displacement
5079         constraint is present.  Add longdisp as required CPU capability.
5080         * config/s390/vector.md: Likewise.
5081         * config/s390/vx-builtins.md: Likewise.
5083 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5085         PR target/60040
5086         * reload1.c (reload): Call finish_spills before
5087         restarting reload loop. Skip select_reload_regs
5088         if update_eliminables_and_spill returns true.
5090 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
5092         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
5093         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
5094         (umulhisi3_imm): Update predicates and constraint letters.
5095         (umulhisi3_reg): Declare instruction as commutative.
5096         * config/arc/constraints.md (J12, J16): New constraints.
5097         * config/arc/predicates.md (short_unsigned_const_operand): New
5098         predicate.
5099         (arc_short_operand): Likewise.
5100         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
5102 2016-04-29  Richard Biener  <rguenther@suse.de>
5104         PR tree-optimization/13962
5105         PR tree-optimization/65686
5106         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
5107         * tree-ssa-alias.c (ptrs_compare_unequal): New function
5108         using PTA to compare pointers.
5109         * match.pd: Add pattern for pointer equality compare simplification
5110         using ptrs_compare_unequal.
5112 2016-04-29  Richard Biener  <rguenther@suse.de>
5114         * stor-layout.c (layout_type): Do not build a pointer-to-element
5115         type for arrays.
5117 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5119         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
5120         Use SWI mode iterator.  Use general_reg_operand predicate.
5121         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
5122         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
5123         predicates.
5125 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
5127         PR middle-end/70843
5128         * fold-const.c (operand_equal_p): Don't verify hash value equality
5129         if arg0 == arg1.
5130         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
5131         and OMP_CLAUSE.
5133 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
5135         PR target/70858
5136         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
5137         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
5138         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
5139         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
5140         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
5142 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
5144         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
5145         to info.  Don't initialize separate fields to 0.  Clean up
5146         formatting a bit.
5148 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
5150         * config/i386/i386.md (peephole2s for operations with memory inputs):
5151         Use SWI mode iterator.
5152         (peephole2s for operations with memory outputs): Ditto.
5153         Do not check for stack checking probe.
5155         (probe_stack): Remove expander.
5157 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5158             Andrew Burgess  <andrew.burgess@embecosm.com>
5160         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
5161         operands as 32-bits.
5163 2016-04-28  Jason Merrill  <jason@redhat.com>
5165         * gdbinit.in: Skip line-map.h.
5167 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5168             Andrew Burgess  <andrew.burgess@embecosm.com>
5170         * config/arc/arc.c (arc_conditional_register_usage): Take
5171         TARGET_RRQ_CLASS into account.
5172         (arc_print_operand): Support printing 'p' and 's' operands.
5173         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
5174         as 0.
5175         (TARGET_RRQ_CLASS): Define.
5176         (IS_POWEROF2_OR_0_P): Define.
5177         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
5178         alternatives.
5179         (*tst_movb): New define_insn.
5180         (*tst): Avoid recognition if it could prevent '*tst_movb'
5181         combination; replace c/CnL with c/Chs alternative.
5182         (*tst_bitfield_tst): New define_insn.
5183         (*tst_bitfield_asr): New define_insn.
5184         (*tst_bitfield): New define_insn.
5185         (andsi3_i): Add Rrq variant.
5186         (extzv): New define_expand.
5187         (insv): New define_expand.
5188         (*insv_i): New define_insn.
5189         (*movb): New define_insn.
5190         (*movb_signed): New define_insn.
5191         (*movb_high): New define_insn.
5192         (*movb_high_signed): New define_insn.
5193         (*movb_high_signed + 1): New define_split pattern.
5194         (*mrgb): New define_insn.
5195         (*mrgb + 1): New define_peephole2 pattern.
5196         (*mrgb + 2): New define_peephole2 pattern.
5197         * config/arc/arc.opt (mbitops): New option for nps400, uses
5198         TARGET_NPS_BITOPS_DEFAULT.
5199         * config/arc/constraints.md (q): Make register class conditional.
5200         (Rrq): New register constraint.
5201         (Chs): New constraint.
5202         (Clo): New constraint.
5203         (Chi): New constraint.
5204         (Cbf): New constraint.
5205         (Cbn): New constraint.
5206         (C18): New constraint.
5207         (Cbi): New constraint.
5209 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
5211         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
5212         dst->popcount.
5213         (bitmap_intersection_of_preds): Ditto.
5214         (bitmap_union_of_succs): Ditto.
5215         (bitmap_union_of_preds): Ditto.
5216         * sbitmap.c (do_popcount): Delete.
5217         (BITMAP_DEBUGGING): Delete.
5218         (sbitmap_verify_popcount): Delete.
5219         (sbitmap_alloc): Don't initialize the popcount field.
5220         (sbitmap_alloc_with_popcount): Delete.
5221         (sbitmap_resize): Don't resize the popcount array.
5222         (sbitmap_vector_alloc): Don't initialize the popcount field.
5223         (bitmap_copy): Don't copy the popcount array.
5224         (bitmap_clear): Don't clear the popcount array.
5225         (bitmap_clear): Delete the popcount array handling.
5226         (bitmap_ior_and_compl): Delete the popcount assert.
5227         (bitmap_not): Ditto.
5228         (bitmap_and_compl): Ditto.
5229         (bitmap_and): Delete the popcount array handling.
5230         (bitmap_xor): Ditto.
5231         (bitmap_ior): Ditto.
5232         (bitmap_or_and): Delete the popcount assert.
5233         (bitmap_and_or): Ditto.
5234         (popcount_table): Delete.
5235         (sbitmap_elt_popcount): Delete.
5236         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
5237         (bitmap_set_bit): Delete the popcount assert.
5238         (bitmap_clear_bit): Ditto.
5239         (sbitmap_free): Don't free the popcount array.
5240         (sbitmap_alloc_with_popcount): Delete declaration.
5241         (sbitmap_popcount): Ditto.
5243 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5244             Andrew Burgess  <andrew.burgess@embecosm.com>
5246         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
5247         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
5248         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
5249         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
5250         * config/arc/arc.opt (mcmem): New option.
5251         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
5252         supply length for r/m alternative.
5253         (*extendqisi2_ac): Likewise.
5254         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
5255         r/Uex alternative.
5256         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
5257         (movhi_insn): Likewise.
5258         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
5259         (*zero_extendqihi2_i): Add r/Ucm alternative.
5260         (*zero_extendqisi2_ac): Likewise.
5261         (*zero_extendhisi2_i): Likewise.
5262         * config/arc/constraints.md (Uex): New memory constraint.
5263         (Ucm): New define_constraint.
5264         * config/arc/predicates.md (long_immediate_loadstore_operand):
5265         Return 0 for MEM with cmem_address address.
5266         (cmem_address_0): New predicates.
5267         (cmem_address_1): Likewise.
5268         (cmem_address_2): Likewise.
5269         (cmem_address): Likewise.
5271 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
5273         * config/rs6000/rs6000.c (machine_function): Rename
5274         insn_chain_scanned_p to spe_insn_chain_scanned_p.
5275         (rs6000_stack_info): Adjust.
5277 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5278             Andrew Burgess  <andrew.burgess@embecosm.com>
5280         * config/arc/constraints.md (Usd): Convert to define_constraint.
5281         (Us<): Likewise.
5282         (Us>): Likewise.
5284 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
5286         PR target/70821
5287         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
5288         Add new peephole2 where the first insn is *mov<mode>_or instead of
5289         *mov<mode>_internal.
5291 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
5293         * tracer.c (bb_seen): Make static.
5295 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
5297         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
5298         support, setup defaults.
5299         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
5300         * config/arc/arc.c (arc_init): Add NPS400 support.
5301         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
5302         (TARGET_ARC700): NPS400 is also an ARC700.
5303         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
5305 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
5307         PR target/70668
5308         * config/nds32/nds32.md (casesi): Don't access the operands array
5309         out of bounds.
5311 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
5313         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
5314         (or $-1,reg peephole2): Ditto.
5315         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
5317 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
5319         * doc/extend.texi (Common Function Attributes) [optimize]:
5320         Discourage use of the optimize attribute.
5322 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
5324         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
5325         special case builtin.
5326         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
5327         ALTIVEC_BUILTIN_VEC_ADDE.
5328         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5329         support for ALTIVEC_BUILTIN_VEC_ADDE.
5330         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5331         for __builtin_vec_adde.
5333 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
5335         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
5336         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
5338 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5340         PR testsuite/70595
5341         * doc/sourcebuild.texi (Effective-Target Keywords, Other
5342         attributes): Document cilkplus_runtime.
5344 2016-04-28  Martin Jambor  <mjambor@suse.cz>
5346         * tree-cfg.c (verify_expr): Verify that local declarations belong to
5347         this function.  Call verify_expr on MEM_REFs and bases of other
5348         handled_components.
5350 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5352         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
5353         for WORD_REGISTER_OPERATIONS to runtime check.
5355 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
5357         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
5359 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
5361         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
5362         big-endian compilation.
5363         * config/arc/arc.md (addf3): Likewise.
5364         (subdf3): Likewise.
5365         (muldf3): Likewise.
5367 2016-04-28  Richard Biener  <rguenther@suse.de>
5369         PR tree-optimization/70840
5370         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
5371         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
5372         Mark x * pow(x,c) -> pow(x,c+1) commutative.
5373         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
5375 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5377         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
5378         and explain why in a comment.
5380 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
5382         * config/arc/arc.md (cpu_facility): Add fpx variant.
5383         (subdf3): Prohibit use reverse sub when assist operations option
5384         is enabled.
5385         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
5386         instructions only when FPX is enabled.
5387         * testsuite/gcc.target/arc/trsub.c: New test.
5389 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
5391         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
5392         mult_operator when calculating "type" attribute.
5393         (*fop_<mode>_1_i387): Ditto.
5394         (*fop_xf_1_i387): Ditto.
5395         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
5396         Use std::swap to swap operands.  Use RTL expressions to generate
5397         converted pattern.
5399 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
5400             Joern Rennecke  <joern.rennecke@embecosm.com>
5402         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
5403         declaration.
5404         (emit_pic_move): Remove.
5405         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
5406         * config/arc/arc.c (emit_pic_move): Removed.
5407         (TARGET_HAVE_TLS): Define.
5408         (arc_conditional_register_usage): Test for arc_tp_regno.
5409         (arc_print_operand, arc_print_operand_address): Handle TLS
5410         unspecs.
5411         (arc_needs_pcl_p): New function.
5412         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
5413         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
5414         (arc_raw_symbolic_reference_mentioned_p): Likewise.
5415         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
5416         (arc_legitimize_tls_address): Likewise.
5417         (DTPOFF_ZERO_SYM): Define.
5418         (arc_legitimize_pic_address): Make it static, handle TLS cases.
5419         (arc_output_pic_addr_const): Print TLS unspecs.
5420         (prepare_pic_move): New function, replaces emit_pic_move.
5421         (arc_legitimate_constant_p): Handle TLS unspecs.
5422         (arc_legitimate_address_p): Likewise.
5423         (arc_rewrite_small_data_p): Use assert for TLS constants.
5424         (prepare_move_operands): Use prepare_pic_move.
5425         (arc_legitimize_address): Legitimize tls addresses.
5426         (arc_epilogue_uses): Check for arc_tp_regno.
5427         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
5428         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
5429         Define.
5430         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
5431         Likewise.
5432         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
5433         %(arc_tls_extra_start_spec).
5434         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
5435         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
5436         (EH_USES): Define.
5437         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
5438         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
5439         (UNSPEC_TLS_OFF): Add.
5440         (R10_REG): Define.
5441         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
5442         (get_thread_pointersi): New patterns.
5443         * config/arc/arc.opt (mtp-regno): New option.
5444         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
5445         (move_dest_operand): Likewise.
5446         * configure: Regenerate.
5447         * configure.ac: Add arc*-*-* case to test for tls.
5448         * doc/invoke.texi (ARC options): Document mtp-regno.
5450 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
5452         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
5453         the new ARC HS SIMD instructions.
5454         (arc_preferred_simd_mode): New function.
5455         (arc_autovectorize_vector_sizes): Likewise.
5456         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5457         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5458         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
5459         (arc_init_builtins): Add new SIMD builtin types.
5460         (arc_split_move): Handle 64 bit vector moves.
5461         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
5462         (TARGET_PLUS_QMACW): Define.
5463         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
5464         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
5465         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
5466         (VSUBADD4H): New builtins.
5467         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
5468         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
5470 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
5471             Matthias Klose  <doko@debian.org>
5473         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
5475 2016-04-28  Richard Biener  <rguenther@suse.de>
5477         PR middle-end/70777
5478         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
5479         canonicalization.
5481 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
5483         * common/config/sh/sh-common.c: Remove SH5 support.
5484         * config/sh/constraints.md: Likewise.
5485         * config/sh/config/sh/elf.h: Likewise.
5486         * config/sh/linux.h: Likewise.
5487         * config/sh/netbsd-elf.h: Likewise.
5488         * config/sh/predicates.md: Likewise.
5489         * config/sh/sh-c.c: Likewise.
5490         * config/sh/sh-protos.h: Likewise.
5491         * config/sh/sh.c: Likewise.
5492         * config/sh/sh.h: Likewise.
5493         * config/sh/sh.md: Likewise.
5494         * config/sh/sh.opt: Likewise.
5495         * config/sh/sync.md: Likewise.
5496         * config/sh/sh64.h: Delete.
5497         * config/sh/shmedia.h: Likewise.
5498         * config/sh/shmedia.md: Likewise.
5499         * config/sh/sshmedia.h: Likewise.
5500         * config/sh/t-netbsd-sh5-64: Likewise.
5501         * config/sh/t-sh64: Likewise.
5502         * config/sh/ushmedia.h: Likewise.
5504 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
5506         * config/i386/i386.md (sign_extend to memory peephole2s): Use
5507         general_reg_operand instead of register_operand predicate.
5509 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5511         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
5513 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
5515         * match.pd (A - B > A, A + B < A): New transformations.
5517 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
5519         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
5520         which defaults to true.  Emit an outer pair of parentheses only if
5521         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
5522         don't emit parentheses for the right-hand operand.
5524 2016-04-27  Jeff Law  <law@redhat.com>
5526         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
5528 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5530         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
5531         (altivec_lvx_<mode>_internal): Document.
5532         (altivec_lvx_<mode>_2op): New define_insn.
5533         (altivec_lvx_<mode>_1op): Likewise.
5534         (altivec_lvx_<mode>_2op_si): Likewise.
5535         (altivec_lvx_<mode>_1op_si): Likewise.
5536         (altivec_stvx_<mode>): Remove.
5537         (altivec_stvx_<mode>_internal): Document.
5538         (altivec_stvx_<mode>_2op): New define_insn.
5539         (altivec_stvx_<mode>_1op): Likewise.
5540         (altivec_stvx_<mode>_2op_si): Likewise.
5541         (altivec_stvx_<mode>_1op_si): Likewise.
5542         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5543         Expand vec_ld and vec_st during parsing.
5544         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
5545         changes.
5546         (altivec_expand_stvx_be): Likewise.
5547         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
5548         address-masking behavior in RTL.
5549         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
5550         address-masking behavior in RTL.
5551         (altivec_expand_builtin): Change builtin code arguments for calls
5552         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
5553         (insn_is_swappable_p): Avoid incorrect swap optimization in the
5554         presence of lvx/stvx patterns.
5555         (alignment_with_canonical_addr): New function.
5556         (alignment_mask): Likewise.
5557         (find_alignment_op): Likewise.
5558         (recombine_lvx_pattern): Likewise.
5559         (recombine_stvx_pattern): Likewise.
5560         (recombine_lvx_stvx_patterns): Likewise.
5561         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
5562         stvx patterns from expand.
5563         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
5564         expansions.
5565         (vector_altivec_store_<mode>): Likewise.
5567 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
5569         * config/aarch64/aarch64.md
5570         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
5571         remove the "fp" attributes.
5572         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
5573         add the "simd" attributes.
5574         (*movdf_aarch64): Likewise.
5575         (*movtf_aarch64): Remove the "fp" attributes.
5576         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
5577         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
5579 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
5581         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
5582         rtx to rtx_code_label *.
5583         * rtl.h (maybe_set_first_label_num): Likewise.
5585 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
5587         * df-core.c (df_add_problem): Make the problem param be const.
5588         (df_remove_problem): Make local "problem" be const.
5589         * df-problems.c (problem_RD): Make const.
5590         (problem_LR): Likewise.
5591         (problem_LIVE): Likewise.
5592         (problem_MIR): Likewise.
5593         (problem_CHAIN): Likewise.
5594         (problem_WORD_LR): Likewise.
5595         (problem_NOTE): Likewise.
5596         (problem_MD): Likewise.
5597         * df-scan.c (problem_SCAN): Likewise.
5598         * df.h (struct df_problem): Make field "dependent_problem" be
5599         const.
5600         (struct dataflow): Likewise for field "problem".
5601         (df_add_problem): Make param const.
5603 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
5605         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
5606         inter-unit moves to/from vector registers are enabled.  Do not disable
5607         for TARGET_MMX.
5609 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
5611         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
5612         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
5613         #define to...
5614         (enum df_problem_id): ...this new enum.
5615         (struct df_problem): Convert field "id" from "int" to
5616         enum df_problem_id.
5618 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
5620         * rtl.def: Update comment for "things in the instruction chain" to
5621         reflect the removal of the leading "i" field for INSN_UID in
5622         r210360.  Fix bogus apostrophe.
5624 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
5626         * config/i386/i386.md
5627         (lea arith with mem operand + setcc peephole2): Set operator mode.
5629 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
5631         PR target/70155
5632         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
5633         (dimode_scalar_to_vector_candidate_p): This.
5634         (timode_scalar_to_vector_candidate_p): New function.
5635         (scalar_to_vector_candidate_p): Likewise.
5636         (timode_check_non_convertible_regs): Likewise.
5637         (timode_remove_non_convertible_regs): Likewise.
5638         (remove_non_convertible_regs): Likewise.
5639         (remove_non_convertible_regs): Renamed to ...
5640         (dimode_remove_non_convertible_regs): This.
5641         (scalar_chain::~scalar_chain): Make it virtual.
5642         (scalar_chain::compute_convert_gain): Make it pure virtual.
5643         (scalar_chain::mark_dual_mode_def): Likewise.
5644         (scalar_chain::convert_insn): Likewise.
5645         (scalar_chain::convert_registers): Likewise.
5646         (scalar_chain::add_to_queue): Make it protected.
5647         (scalar_chain::emit_conversion_insns): Likewise.
5648         (scalar_chain::replace_with_subreg): Likewise.
5649         (scalar_chain::replace_with_subreg_in_insn): Likewise.
5650         (scalar_chain::convert_op): Likewise.
5651         (scalar_chain::convert_reg): Likewise.
5652         (scalar_chain::make_vector_copies): Likewise.
5653         (scalar_chain::convert_registers): New pure virtual function.
5654         (class dimode_scalar_chain): New class.
5655         (class timode_scalar_chain): Likewise.
5656         (scalar_chain::mark_dual_mode_def): Renamed to ...
5657         (dimode_scalar_chain::mark_dual_mode_def): This.
5658         (timode_scalar_chain::mark_dual_mode_def): New function.
5659         (timode_scalar_chain::convert_insn): Likewise.
5660         (dimode_scalar_chain::convert_registers): Likewise.
5661         (scalar_chain::compute_convert_gain): Renamed to ...
5662         (dimode_scalar_chain::compute_convert_gain): This.
5663         (scalar_chain::replace_with_subreg): Renamed to ...
5664         (dimode_scalar_chain::replace_with_subreg): This.
5665         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
5666         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
5667         (scalar_chain::make_vector_copies): Renamed to ...
5668         (dimode_scalar_chain::make_vector_copies): This.
5669         (scalar_chain::convert_reg): Renamed to ...
5670         (dimode_scalar_chain::convert_reg ): This.
5671         (scalar_chain::convert_op): Renamed to ...
5672         (dimode_scalar_chain::convert_op): This.
5673         (scalar_chain::convert_insn): Renamed to ...
5674         (dimode_scalar_chain::convert_insn): This.
5675         (scalar_chain::convert): Call convert_registers.
5676         (convert_scalars_to_vector): Change to scalar_chain pointer to
5677         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
5678         in 32-bit mode.  Delete scalar_chain pointer.  Call
5679         free_dominance_info in 64-bit mode.
5680         (pass_stv::gate): Remove TARGET_64BIT check.
5681         (ix86_option_override): Put the 64-bit STV pass before the CSE
5682         pass.
5684 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
5686         * dwarf2out.h (struct dw_loc_descr_node): Remove the
5687         dw_loc_frame_offset field.
5688         * dwarf2out.c (new_loc_descr): Likewise.
5689         (resolve_args_picking_1): Turn the VISITED hash set into a
5690         FRAME_OFFSET hash map. Use it to associate a frame offset to
5691         visited nodes. Remove uses of the CHECKING_P macro.
5692         (resolve_args_picking): Update call to resolve_args_picking_1.
5694 2016-04-27  Martin Liska  <mliska@suse.cz>
5696         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
5697         (free_loop_data): Release vuses of groups.
5699 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
5701         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
5702         instead of redundant use_id and boolean have_use_for.
5703         (struct iv_use): Change sub_id into group_id.  Remove field next.
5704         Move fields: related_cands, n_map_members, cost_map and selected
5705         to ...
5706         (struct iv_group): ... here.  New structure.
5707         (struct iv_common_cand): Use structure declaration directly.
5708         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
5709         (MAX_CONSIDERED_USES): Rename macro to ...
5710         (MAX_CONSIDERED_GROUPS): ... here.
5711         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
5712         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
5713         (dump_uses): Rename to ...
5714         (dump_groups): ... here.  Update all uses.
5715         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
5716         (find_induction_variables): Refactor format of dump information.
5717         (record_sub_use): Delete.
5718         (record_use): Update all uses.
5719         (record_group): New function.
5720         (record_group_use, find_interesting_uses_op): Call above functions.
5721         Update all uses.
5722         (find_interesting_uses_cond): Ditto.
5723         (group_compare_offset): New function.
5724         (split_all_small_groups): Rename to ...
5725         (split_small_address_groups_p): ... here.  Update all uses.
5726         (split_address_groups):  Update all uses.
5727         (find_interesting_uses): Refactor format of dump information.
5728         (add_candidate_1): Update all uses.  Remove redundant check on iv,
5729         base and step.
5730         (add_candidate, record_common_cand): Remove redundant assert.
5731         (add_iv_candidate_for_biv): Update use.
5732         (add_iv_candidate_derived_from_uses): Update all uses.
5733         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
5734         (alloc_use_cost_map): Ditto.
5735         (set_use_iv_cost, get_use_iv_cost): Rename to ...
5736         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
5737         (determine_use_iv_cost_generic): Ditto.
5738         (determine_group_iv_cost_generic): Ditto.
5739         (determine_use_iv_cost_address): Ditto.
5740         (determine_group_iv_cost_address): Ditto.
5741         (determine_use_iv_cost_condition): Ditto.
5742         (determine_group_iv_cost_cond): Ditto.
5743         (determine_use_iv_cost): Ditto.
5744         (determine_group_iv_cost): Ditto.
5745         (set_autoinc_for_original_candidates): Update all uses.
5746         (find_iv_candidates): Update all uses.  Refactor dump information.
5747         (determine_use_iv_costs): Ditto.
5748         (determine_iv_costs): Ditto.
5749         (iv_ca_cand_for_use): Rename to ...
5750         (iv_ca_cand_for_group): ... here.  Update all uses.
5751         (iv_ca_add_use, iv_ca_add_group): Ditto.
5752         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
5753         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
5754         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
5755         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
5756         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
5757         (create_new_iv, adjust_iv_update_pos): Ditto.
5758         (rewrite_use_address): Delete.
5759         (rewrite_use_address_1): Rename to ...
5760         (rewrite_use_address): ... here.
5761         (rewrite_use_compare): Update all uses.
5762         (rewrite_use): Delete.
5763         (rewrite_uses): Rename to ...
5764         (rewrite_groups): ... here.  Update all uses.
5765         (remove_unused_ivs, free_loop_data): Update all uses.
5766         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
5768 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5770         * rtlanal.c (nonzero_bits1): Convert preprocessor check
5771         for WORD_REGISTER_OPERATIONS to runtime check.
5773 2016-04-27  Richard Biener  <rguenther@suse.de>
5775         PR ipa/70760
5776         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
5777         aggregate_value_p to determine if a function result is
5778         returned by reference.
5779         (ipa_pta_execute): Functions having their address taken are
5780         not automatically nonlocal.
5782 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
5784         PR sanitizer/70683
5785         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
5786         * fold-const.c (operand_equal_p): If flag_checking and
5787         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
5788         and if it returns non-zero, assert iterative_hash_expr on both
5789         args is the same.
5791 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
5793         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
5795 2016-04-27  Nick Clifton  <nickc@redhat.com>
5797         PR middle-end/49889
5798         * varasm.c (merge_weak): Generate an error if an attempt is made
5799         to convert a non-weak static function into a weak, public function.
5801 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5803         * params.def (MAX_PARTITION_SIZE): New param.
5804         * doc/invoke.texi: Document lto-max-partition.
5806 2016-04-27  Richard Biener  <rguenther@suse.de>
5808         PR ipa/70785
5809         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
5810         function cummulating used_from_other_partition, externally_visible
5811         and force_output from aliases.
5812         (refered_from_nonlocal_var): Likewise.
5813         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
5814         node flags properly.
5816 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
5818         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
5819         (-Wmemset-elt-size): New item.
5821 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5823         PR ada/70759
5824         * stor-layout.h (internal_reference_types): Delete.
5825         * stor-layout.c (reference_types_internal): Likewise.
5826         (internal_reference_types): Likewise.
5827         (layout_type) <REFERENCE_TYPE>: Adjust.
5829 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
5831         PR sanitizer/70683
5832         * tree.h (inchash::add_expr): Add FLAGS argument.
5833         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
5834         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
5835         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
5836         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
5837         if swap_tree_comparison (code) is smaller than code, hash that
5838         and arguments in the other order.  Hash CONVERT_EXPR the same
5839         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
5840         of ADDR_EXPR of decl as the decl itself.  Add or remove
5841         OEP_ADDRESS_OF from recursive flags as needed.  For
5842         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
5843         operands commutatively and only the third one normally.
5844         For internal CALL_EXPR hash in CALL_EXPR_IFN.
5846 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5848         * config/rtems.h (LIB_SPEC): Add -latomic.
5850 2016-04-27  Joel Sherrill  <joel@rtems.org>
5852         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
5853         xilink.ld and flags not relevant to RTEMS.
5855 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5857         * toplev.c (backend_init_target): Avoid calling init_reload when using
5858         LRA.
5860 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
5862         * reorg.c (try_merge_delay_insns): Declare i and j inside the
5863         for loops rather than one for the whole function.
5865 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
5867         * match.pd (X + CST CMP X): New transformation.
5869 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
5871         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
5872         * fold-const.c (fold_binary_loc): Remove 2 transformations
5873         superseded by match.pd.
5874         * match.pd (x+x -> x*2): Generalize to integers.
5876 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
5878         * config/i386/i386.md (operation on memory peephole): Duplicate an
5879         existing peephole and adapt it to match lea rather than an operation
5880         that clobbers CC.
5882         PR rtl-optimization/57193
5883         * opts.c (default_options_table): Add OPT_frename_registers at -O2
5884         and above.
5885         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
5887 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
5889         * tree-if-conv.c (any_pred_load_store): New static variable.
5890         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
5891         any_pred_load_store instead of and_mask_load_store.
5892         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
5893         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
5894         (combine_blocks, tree_if_conversion): Ditto.
5896 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
5898         PR tree-optimization/70771
5899         PR tree-optimization/70775
5900         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
5901         virtual PHI nodes.  Delete parameter.
5902         (if_convertible_loop_p_1): Delete argument to above function.
5903         (predicate_all_scalar_phis): Delete code handling single-argument
5904         PHIs.
5905         (tree_if_conversion): Mark and update virtual SSA.
5907 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5909         PR target/61821
5910         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
5911         (x86_elf_aligned_common): Rename to ...
5912         (x86_elf_aligned_decl_common): ... this.
5913         Add decl arg.  Switch to .lbss for largecomm object.  Use
5914         LARGECOMM_SECTION_ASM_OP.
5915         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
5916         renaming.
5917         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
5918         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
5919         Pass new decl arg.
5920         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5921         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
5923 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5925         PR target/59407
5926         * config/i386/i386.c (SECTION_LARGE): Define.
5927         (x86_64_elf_select_section): Set it for large data/bss sections.
5928         Only clear SECTION_WRITE for .lrodata.
5929         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
5930         data/bss sections.
5931         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
5932         * varasm.c (default_elf_asm_named_section): Grow flagchars.
5933         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
5934         SECTION_MACH_DEP.
5935         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
5936         * doc/tm.texi: Regenerate.
5938 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
5940         PR bootstrap/70704
5941         * configure.ac (--enable-checking): Document extra flag, for
5942         non-release builds default to --enable-checking=yes,extra.
5943         If misc checking and extra checking, define CHECKING_P to 2 instead
5944         of 1.
5945         * common.opt (fchecking=): Add.
5946         * doc/invoke.texi (-fchecking=): Document.
5947         * doc/install.texi: Document --enable-checking changes.
5948         * configure: Regenerated.
5949         * config.in: Regenerated.
5951 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
5953         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
5954         attribute instead of which_alternative.
5955         * config/i386/sse.md (*mov<mode>_internal): Ditto.
5956         Use EXT_REX_SSE_REG_P where appropriate.
5958 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
5960         * config/i386/predicates.md (const0_operand): Do not match
5961         const_wide_int code.
5962         (const1_operand): Ditto.
5964 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
5966         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
5967         for SSE constm1 operands and TARGET_AVX512VL.
5968         (*movti_internal): Ditto.
5969         (*mov<mode>_or): Use constm1_operand predicate.
5970         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
5971         for SSE vector_all_ones operands and TARGET_AVX512VL.
5972         * config/i386/predicates.md (constm1_operand): New predicate.
5973         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
5974         emission of constant -1 load.
5976 2016-04-25  Jason Merrill  <jason@redhat.com>
5978         * gdbinit.in: Skip is-a.h.
5980         * attribs.c (register_scoped_attributes): Fix logic.
5981         * attribs.h: Declare register_scoped_attributes.
5983 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5985         * config/rs6000/rs6000-builtin.def: Correct pasto error for
5986         stxvd2x and stxvw4x built-in functions.
5988 2016-04-25  DJ Delorie  <dj@redhat.com>
5990         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
5991         (ashrhi3): Likewise.
5992         (lshrhi3): Likewise.
5994 2016-04-25  Richard Biener  <rguenther@suse.de>
5996         PR tree-optimization/70780
5997         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
5998         wasn't visited yet.
5999         (compute_antic): Mark blocks with abnormal preds as visited as
6000         they have a final empty antic-in solution already.
6002 2016-04-25  Michael Collison  <michael.collison@linaro.org>
6004         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
6006 2016-04-25  Michael Collison  <michael.collison@linaro.org>
6008         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
6009         mode is VQI to improve mixed mode vectorization.
6010         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
6011         define_insn to match low half of signed vaddw.
6012         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
6013         define_insn to match high half of signed vaddw.
6014         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
6015         define_insn to match low half of unsigned vaddw.
6016         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
6017         define_insn to match high half of unsigned vaddw.
6018         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
6019         (arm_simd_check_vect_par_cnst_half_p): Likewise.
6020         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
6021         for new function.
6022         (arm_simd_check_vect_par_cnst_half_p): Likewise.
6023         * config/arm/predicates.md (vect_par_constant_high): Support
6024         big endian and simplify by calling
6025         arm_simd_check_vect_par_cnst_half
6026         (vect_par_constant_low): Likewise.
6028 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
6030         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
6031         predicate for operand 2.
6033 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
6034             H.J. Lu  <hongjiu.lu@intel.com>
6036         * config/i386/i386-protos.h (standard_sse_constant_p): Add
6037         machine_mode argument.
6038         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
6039         constm1_rtx operands.  For VOIDmode constants, get mode from
6040         pred_mode.  Check mode size if the mode is supported by ABI.
6041         (standard_sse_constant_opcode): Do not use standard_constant_p.
6042         Strictly check ABI support for all-ones operands.
6043         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
6044         immediates. Update calls to standard_sse_constant_p.
6045         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
6046         (ix86_rtx_costs): Ditto.
6047         * config/i386/i386.md (*movxi_internal_avx512f): Use
6048         nonimmediate_or_sse_const_operand instead of vector_move_operand.
6049         Use (v,BC) alternative instead of (v,C). Use register_operand
6050         checks instead of MEM_P.
6051         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
6052         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
6053         isa attribute.  Use register_operand checks instead of MEM_P.
6054         (*movti_internal): Use nonimmediate_or_sse_const_operand for
6055         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
6056         alternative and corresponding sse2 isa attribute.
6057         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
6058         to standard_sse_constant_p.
6059         (FP constant splitters): Ditto.
6060         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
6061         (C): Ditto.
6062         * config/i386/predicates.md (constm1_operand): Remove.
6063         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
6064         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
6065         vector_all_ones_operand instead of constm1_operand.
6067 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6069         * print-rtl.c (print_rtx_insn_vec): New function.
6070         * print-rtl.h: New prototype.
6071         * store-motion.c (struct st_expr): Make avail_stores a vector.
6072         (st_expr_entry): Adjust.
6073         (free_st_expr_entry): Likewise.
6074         (print_store_motion_mems): Likewise.
6075         (find_moveable_store): Likewise.
6076         (compute_store_table): Likewise.
6077         (delete_store): Likewise.
6078         (build_store_vectors): Likewise.
6080 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6082         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
6084 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6086         * vec.h (vec_safe_contains): New function.
6087         (vec::contains): Likewise.
6088         (vec::begin): Likewise.
6089         (vec::end): Likewise.
6091 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
6093         PR sanitizer/70712
6094         * cfgexpand.c (expand_stack_vars): Fix typo.
6096 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6098         * system.h (list, map, set, vector): Include conditionally.
6099         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
6100         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
6101         * ipa-icf.c (INCLUDE_LIST): Define.
6102         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
6103         * config/sh/sh.c (INCLUDE_VECTOR): Define.
6104         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
6105         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
6106         * cp/logic.cc (INCLUDE_LIST): Define.
6107         * fortran/trans-common.c (INCLUDE_MAP): Define.
6109 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6111         * auto-profile.c: Remove <string.h> include.
6112         * ipa-icf-gimple.c: Remove <list> include.
6113         * diagnostic.c: Remove <new> include.
6114         * genmatch.c: Likewise.
6115         * pretty-print.c: Likewise.
6116         * toplev.c: Likewise
6117         * c/c-objc-common.c: Likewise.
6118         * cp/error.c: Likewise.
6119         * fortran/error.c: Likewise.
6121 2016-04-22  Richard Biener  <rguenther@suse.de>
6123         * lto-streamer-in.c (input_ssa_names): Do not allocate
6124         GIMPLE_NOP for all SSA names.
6125         * lto-streamer-out.c (output_ssa_names): Do not output
6126         SSA names that should have been released.
6128 2016-04-22  Richard Biener  <rguenther@suse.de>
6130         PR tree-optimization/70740
6131         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
6132         VDEF.
6134 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6136         PR target/70750
6137         * config/i386/predicates.md (call_insn_operand): Replace
6138         sibcall_memory_operand with memory_operand.
6140 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
6142         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
6143         has_single_use() tests.
6144         (register_edge_assert_for_1): Likewise.
6145         (find_assert_locations_1): Check the liveness bitmap instead of
6146         checking has_single_use().
6148 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
6150         PR target/70728
6151         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
6152         Extract AVX-512BW constraint from AVX.
6154 2016-04-21  Richard Biener  <rguenther@suse.de>
6156         PR tree-optimization/70725
6157         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
6158         for phi_convertible_by_degenerating_args.
6159         (predicate_all_scalar_phis): Handle single-argument PHIs.
6161 2016-04-21  Richard Biener  <rguenther@suse.de>
6163         PR middle-end/70747
6164         * fold-const.c (fold_comparison): Return properly typed
6165         constant boolean.
6167 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
6169         PR tree-optimization/70715
6170         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6171         after expanding BASE using expand_simple_operations.
6173 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
6175         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
6176         New transformations.
6178 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
6180         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
6182 2016-04-20  Jan Hubicka  <jh@suse.cz>
6184         * ipa-inline.c (can_inline_edge_p): Pass caller info to
6185         ultiimate_alias_target.
6186         (update_callee_keys): Likewise.
6187         (lookup_recursive_calls): Likewise.
6188         (speculation_useful_p): Likewise.
6190 2016-04-20  Jan Hubicka  <jh@suse.cz>
6192         PR ipa/70018
6193         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
6194         (set_nothrow_flag_1): ... this; handle interposition correctly;
6195         recurse on aliases and thunks.
6196         (cgraph_node::set_nothrow_flag): New.
6197         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
6198         functions compiled with non-call exceptions that binds to current
6199         def.
6200         (propagate_nothrow): Be safe WRT interposition.
6201         * cgraph.h (set_nothrow_flag): Update prototype.
6203 2016-04-18  Jan Hubicka  <jh@suse.cz>
6205         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6206         max_loop_iterations_int.
6207         (tree_unswitch_outer_loop): Likewise.
6209 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
6211         PR tree-optimization/69489
6212         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
6213         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
6214         Revise dump message.
6215         (if_convertible_bb_p): Remove check on edge count of basic block's
6216         predecessors.
6218 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
6220         PR tree-optimization/56625
6221         PR tree-optimization/69489
6222         * tree-data-ref.h (DR_INNERMOST): New macro.
6223         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
6224         hashing struct innermost_loop_behavior.
6225         (ref_DR_map): Remove.
6226         (innermost_DR_map): New map.
6227         (baseref_DR_map): Revise comment.
6228         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
6229         to innermost_DR_map accroding to its innermost loop behavior.
6230         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
6231         to its innermost loop behavior.
6232         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
6233         Add initialization for innermost_DR_map.  Record memory reference
6234         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
6235         have innermost loop behavior.
6236         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
6237         innermost_DR_map.
6239 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
6241         * config/i386/i386.md (*lea<mode>_general_1): Rename from
6242         *lea_general_1.  Use explicit SWI12 mode interator.
6243         (*lea<mode>_general_2): Rename from *lea_general_2.
6244         Use explicit SWI12 mode interator.
6245         (*lea<mode>_general_3): Rename from *lea_general_3.
6246         Use explicit SWI12 mode interator.
6247         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
6248         Use explicit SWI12 mode interator.
6249         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
6250         Use explicit SWI48 mode interator.
6252 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
6254         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
6255         Short-cut unaligned load and store cases.  Handle all integer
6256         vector modes.
6257         (ix86_expand_vector_move_misalign): Short-cut unaligned load
6258         and store cases.  Call ix86_avx256_split_vector_move_misalign
6259         directly without checking mode class.
6261 2016-04-20  Andrew Pinski  <apinski@cavium.com>
6262             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6264         PR target/64971
6265         * config/aarch64/aarch64.md (sibcall): Force call
6266         address to be DImode for ILP32.
6267         (sibcall_value): Likewise.
6269 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
6271         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
6273 2016-04-20  Richard Biener  <rguenther@suse.de>
6275         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
6276         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
6277         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
6278         (maybe_push_res_to_seq): Adjust.
6279         * gimple-fold.c (maybe_build_generic_op): Likewise.
6281 2016-04-20  Marek Polacek  <polacek@redhat.com>
6283         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
6284         rather than true.
6286 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
6288         * config/i386/sse.md (vec_unpacks_lo_hi): Always
6289         use kmovw to support AVX512F target.
6291 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
6293         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
6295 2016-04-20  Marek Polacek  <polacek@redhat.com>
6297         PR tree-optimization/70725
6298         * tree-if-conv.c (is_false_predicate): New function.
6299         (predicate_mem_writes): Use it.
6301 2016-04-20  Richard Biener  <rguenther@suse.de>
6303         PR tree-optimization/70726
6304         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
6305         shift amounts from a pattern stmt operand.
6307 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6309         PR target/70674
6310         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
6311         stack_restore_from_fpr pattern when restoring r15.
6312         (s390_optimize_prologue): Strip away the memory barrier in the
6313         parallel when trying to get rid of restore insns.
6314         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
6315         definition for loading the stack pointer from an FPR.  Compared to
6316         the normal move insn this pattern includes a full memory barrier.
6318 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
6320         PR middle-end/70680
6321         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
6322         implicitly linear or lastprivate iterator on the outer context.
6324 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
6326         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
6327         alignment check.
6328         * config/i386/i386.md (ssememalign): Removed.
6329         * config/i386/sse.md: Remove ssememalign attribute from patterns.
6331 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
6333         PR target/69201
6334         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
6335         const short * to __builtin_ia32_loaddquhi512_mask.
6336         (_mm512_maskz_loadu_epi16): Likewise.
6337         (_mm512_mask_storeu_epi16): Pass short * to
6338         __builtin_ia32_storedquhi512_mask.
6339         (_mm512_mask_loadu_epi8): Pass const char * to
6340         __builtin_ia32_loaddquqi512_mask.
6341         (_mm512_maskz_loadu_epi8): Likewise.
6342         (_mm512_mask_storeu_epi8): Pass char * to
6343         __builtin_ia32_storedquqi512_mask.
6344         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
6345         const double * to __builtin_ia32_loadupd512_mask.
6346         (_mm512_mask_loadu_pd): Likewise.
6347         (_mm512_maskz_loadu_pd): Likewise.
6348         (_mm512_storeu_pd): Pass double * to
6349         __builtin_ia32_storeupd512_mask.
6350         (_mm512_mask_storeu_pd): Likewise.
6351         (_mm512_loadu_ps): Pass const float * to
6352         __builtin_ia32_loadups512_mask.
6353         (_mm512_mask_loadu_ps): Likewise.
6354         (_mm512_maskz_loadu_ps): Likewise.
6355         (_mm512_storeu_ps): Pass float * to
6356         __builtin_ia32_storeups512_mask.
6357         (_mm512_mask_storeu_ps): Likewise.
6358         (_mm512_mask_loadu_epi64): Pass const long long * to
6359         __builtin_ia32_loaddqudi512_mask.
6360         (_mm512_maskz_loadu_epi64): Likewise.
6361         (_mm512_mask_storeu_epi64): Pass long long *
6362         to __builtin_ia32_storedqudi512_mask.
6363         (_mm512_loadu_si512): Pass const int * to
6364         __builtin_ia32_loaddqusi512_mask.
6365         (_mm512_mask_loadu_epi32): Likewise.
6366         (_mm512_maskz_loadu_epi32): Likewise.
6367         (_mm512_storeu_si512): Pass int * to
6368         __builtin_ia32_storedqusi512_mask.
6369         (_mm512_mask_storeu_epi32): Likewise.
6370         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
6371         char * to __builtin_ia32_storedquqi256_mask.
6372         (_mm_mask_storeu_epi8): Likewise.
6373         (_mm256_mask_loadu_epi16): Pass const short * to
6374         __builtin_ia32_loaddquhi256_mask.
6375         (_mm256_maskz_loadu_epi16): Likewise.
6376         (_mm_mask_loadu_epi16): Pass const short * to
6377         __builtin_ia32_loaddquhi128_mask.
6378         (_mm_maskz_loadu_epi16): Likewise.
6379         (_mm256_mask_loadu_epi8): Pass const char * to
6380         __builtin_ia32_loaddquqi256_mask.
6381         (_mm256_maskz_loadu_epi8): Likewise.
6382         (_mm_mask_loadu_epi8): Pass const char * to
6383         __builtin_ia32_loaddquqi128_mask.
6384         (_mm_maskz_loadu_epi8): Likewise.
6385         (_mm256_mask_storeu_epi16): Pass short * to.
6386         __builtin_ia32_storedquhi256_mask.
6387         (_mm_mask_storeu_epi16): Pass short * to.
6388         __builtin_ia32_storedquhi128_mask.
6389         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
6390         const double * to __builtin_ia32_loadupd256_mask.
6391         (_mm256_maskz_loadu_pd): Likewise.
6392         (_mm_mask_loadu_pd): Pass onst double * to
6393         __builtin_ia32_loadupd128_mask.
6394         (_mm_maskz_loadu_pd): Likewise.
6395         (_mm256_mask_storeu_pd): Pass double * to
6396         __builtin_ia32_storeupd256_mask.
6397         (_mm_mask_storeu_pd): Pass double * to
6398         __builtin_ia32_storeupd128_mask.
6399         (_mm256_mask_loadu_ps): Pass const float * to
6400         __builtin_ia32_loadups256_mask.
6401         (_mm256_maskz_loadu_ps): Likewise.
6402         (_mm_mask_loadu_ps): Pass const float * to
6403         __builtin_ia32_loadups128_mask.
6404         (_mm_maskz_loadu_ps): Likewise.
6405         (_mm256_mask_storeu_ps): Pass float * to
6406         __builtin_ia32_storeups256_mask.
6407         (_mm_mask_storeu_ps): ass float * to
6408         __builtin_ia32_storeups128_mask.
6409         (_mm256_mask_loadu_epi64): Pass const long long * to
6410         __builtin_ia32_loaddqudi256_mask.
6411         (_mm256_maskz_loadu_epi64): Likewise.
6412         (_mm_mask_loadu_epi64): Pass const long long * to
6413         __builtin_ia32_loaddqudi128_mask.
6414         (_mm_maskz_loadu_epi64): Likewise.
6415         (_mm256_mask_storeu_epi64): Pass long long * to
6416         __builtin_ia32_storedqudi256_mask.
6417         (_mm_mask_storeu_epi64): Pass long long * to
6418         __builtin_ia32_storedqudi128_mask.
6419         (_mm256_mask_loadu_epi32): Pass const int * to
6420         __builtin_ia32_loaddqusi256_mask.
6421         (_mm256_maskz_loadu_epi32): Likewise.
6422         (_mm_mask_loadu_epi32): Pass const int * to
6423         __builtin_ia32_loaddqusi128_mask.
6424         (_mm_maskz_loadu_epi32): Likewise.
6425         (_mm256_mask_storeu_epi32): Pass int * to
6426         __builtin_ia32_storedqusi256_mask.
6427         (_mm_mask_storeu_epi32): Pass int * to
6428         __builtin_ia32_storedqusi128_mask.
6429         * config/i386/i386-builtin-types.def (PCSHORT): New.
6430         (PINT64): Likewise.
6431         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
6432         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
6433         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
6434         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
6435         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
6436         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
6437         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
6438         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
6439         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
6440         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
6441         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
6442         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
6443         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
6444         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
6445         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
6446         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
6447         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
6448         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
6449         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
6450         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
6451         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
6452         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
6453         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
6454         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
6455         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
6456         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
6457         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
6458         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
6459         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
6460         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
6461         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
6462         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
6463         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
6464         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
6465         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
6466         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
6467         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
6468         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
6469         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
6470         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
6471         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
6472         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
6473         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
6474         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
6475         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
6476         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
6477         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
6478         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
6479         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
6480         use UNSPEC_STOREU.
6481         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
6482         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
6483         load nor store.
6484         (ix86_expand_vector_move_misalign): Likewise.
6485         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
6486         to scalar function prototype for unaligned load/store builtins.
6487         (ix86_expand_special_args_builtin): Updated.
6488         * config/i386/sse.md (UNSPEC_LOADU): Removed.
6489         (UNSPEC_STOREU): Likewise.
6490         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
6491         (VI_ULOADSTORE_F_AVX512VL): Likewise.
6492         (ssescalarsize): Handle V4TI, V2TI and V1TI.
6493         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6494         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6495         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
6496         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
6497         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
6498         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
6499         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
6500         (<avx512>_storedqu<mode>_mask): Likewise.
6501         (*sse4_2_pcmpestr_unaligned): Likewise.
6502         (*sse4_2_pcmpistr_unaligned): Likewise.
6503         (*mov<mode>_internal): Renamed to ...
6504         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
6505         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
6506         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
6507         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
6509 2016-04-19  Richard Biener  <rguenther@suse.de>
6511         PR tree-optimization/70171
6512         * tree-ssa-phiprop.c: Include stor-layout.h.
6513         (phiprop_insert_phi): Handle the aggregate copy case.
6514         (propagate_with_phi): Likewise.
6516 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
6518         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
6519         instead of simplify_gen_subreg (... , 0).
6520         (ix86_delegitimize_address): Ditto.
6521         (ix86_split_divmod): Ditto.
6522         (ix86_split_copysign_const): Ditto.
6523         (ix86_split_copysign_var): Ditto.
6524         (ix86_expand_args_builtin): Ditto.
6525         (ix86_expand_round_builtin): Ditto.
6526         (ix86_expand_special_args_builtin): Ditto.
6527         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
6528         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
6529         (udivmodqi4): Ditto.
6530         (absneg splitters): Ditto.
6531         (*jcc_bt<mode>_1): Ditto.
6533 2016-04-19  Richard Biener  <rguenther@suse.de>
6535         PR tree-optimization/70724
6536         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
6537         restoring out from ...
6538         (free_scc_vn): ... here.
6539         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
6540         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
6541         tail merging.
6542         (pass_fre::execute): Restore SSA info.
6544 2016-04-19  Richard Biener  <rguenther@suse.de>
6546         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
6547         * gimple-walk.c (walk_gimple_op): Initialize it.
6548         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
6549         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
6550         remapping SSA names of defs.
6551         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
6552         adjustment.
6554 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6556         PR middle-end/70689
6557         * lra-constraints.c (equiv_substition_p): New.
6558         (process_alt_operands): Use it.
6559         (swap_operands): Swap it.
6560         (curr_insn_transform): Update it.
6562 2016-04-18  Michael Matz  <matz@suse.de>
6564         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
6565         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
6566         * tree-core.h (tree_type_common.align): Use bit-field.
6567         (tree_type_common.spare): New.
6568         (tree_decl_common.off_align): Make smaller.
6569         (tree_decl_common.align): Use bit-field.
6571         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
6572         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
6573         (scan_sharing_clauses): Ditto.
6574         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6575         (omp_finish_file): Ditto.
6576         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
6577         (layout_decl): Ditto.
6578         (relayout_decl): Ditto.
6579         (finalize_record_size): Use SET_TYPE_ALIGN.
6580         (finalize_type_size): Ditto.
6581         (finish_builtin_struct): Ditto.
6582         (layout_type): Ditto.
6583         (initialize_sizetypes): Ditto.
6584         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
6585         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
6586         (lookup_field_for_decl): Use SET_DECL_ALIGN.
6587         (get_chain_field): Ditto.
6588         (get_trampoline_type): Ditto.
6589         (get_nl_goto_field): Ditto.
6590         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6591         SET_DECL_ALIGN.
6592         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
6593         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
6594         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6595         (build_qualified_type): Use SET_TYPE_ALIGN.
6596         (build_aligned_type, build_range_type_1): Ditto.
6597         (build_atomic_base): Ditto.
6598         (build_common_tree_nodes): Ditto.
6599         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
6600         (expand_one_stack_var_at): Ditto.
6601         * coverage.c (build_var): Use SET_DECL_ALIGN.
6602         * except.c (init_eh): Ditto.
6603         * function.c (assign_parm_setup_block): Ditto.
6604         * symtab.c (increase_alignment_1): Ditto.
6605         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
6606         * tree-vect-stmts.c (ensure_base_align): Ditto.
6607         * varasm.c (align_variable): Ditto.
6608         (assemble_variable): Ditto.
6609         (build_constant_desc): Ditto.
6610         (output_constant_def_contents): Ditto.
6612         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
6613         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
6614         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
6615         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
6616         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
6618 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
6620         PR target/70708
6621         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
6622         replace %vmovsd with "%vmovq".
6623         (vec_concatv2df): Likewise.
6625 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
6627         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
6628         (*vec_extractv2si_0): Ditto.
6629         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
6630         (zero_extended_scalar_load_operand splitters): Ditto.
6631         (vec_extract splitters): Ditto.
6632         (*vec_extractv4si_0_zext): Ditto.
6633         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
6634         and lowpart_subreg.
6635         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
6636         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
6637         (*sse4_1_extractps): Use lowpart_subreg.
6638         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
6640 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6642         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
6643         gld requirements.
6644         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
6645         Mention Solaris 11 packaging changes.
6646         Update gas and gld requirements.
6647         Remove reference to pre-Solaris 10 bug.
6648         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
6649         systems and bugs.
6650         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
6651         with cc.
6653 2016-04-17  Jan Hubicka  <jh@suse.cz>
6655         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
6656         max_loop_iterations_int.
6658 2016-04-18  Richard Biener  <rguenther@suse.de>
6660         PR tree-optimization/43434
6661         * tree-ssa-structalias.c (struct vls_data): New.
6662         (visit_loadstore): Handle all pointer-based accesses.
6663         (compute_dependence_clique): Compute a bitmap of restrict tags
6664         assigned bases and pass it to visit_loadstore.
6666 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
6668         PR target/70711
6669         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
6670         armv8.1-a and armv8.1-a+crc.
6672 2016-04-18  Richard Biener  <rguenther@suse.de>
6674         PR tree-optimization/70701
6675         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
6676         references after translating through a memcpy.
6678 2016-04-18  Richard Biener  <rguenther@suse.de>
6680         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
6681         (compute_antic): ... here.  For partial antic use regular
6682         postorder and scrap iteration.
6683         (compute_partial_antic_aux): Remove unused return value.
6684         (init_pre): Do not allocate postorder.
6685         (fini_pre): Do not free postorder.
6687 2016-04-18  Richard Biener  <rguenther@suse.de>
6689         PR middle-end/37870
6690         * expmed.c (extract_bit_field_1): Remove broken case
6691         using a wider MODE_INT mode.
6693 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
6695         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
6696         unless compiling with at least GCC-4.8.
6698 2016-04-17  Jan Hubicka  <jh@suse.cz>
6700         PR bootstrap/70706
6701         * graphite.c (graphite_finalize): Update call to
6702         tree_estimate_probability.
6703         * predict.h (tree_estimate_probability): Update prototype.
6705 2016-04-17  Jan Hubicka  <jh@suse.cz>
6707         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
6708         (tree_estimate_probability): Likewise.
6709         (pass_profile::execute): Update.
6710         (report_predictor_hitrates): New function.
6711         * profile.c (compute_branch_probabilities): Use it.
6712         * predict.h (report_predictor_hitrates): Declare.
6714 2016-04-17  Jan Hubicka  <jh@suse.cz>
6716         PR ipa/70018
6717         * cgraph.h (cgraph_node::set_const_flag,
6718         cgraph_node::set_pure_flag): Update prototype to return bool;
6719         update comment.
6720         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
6721         of interposable symbol are interposable, too.
6722         (cgraph_set_const_flag_1): Rename to ...
6723         (set_const_flag_1): ... this one; change to self recursive function
6724         instead of call_for_symbol_thunks_and_aliases. Handle correctly
6725         clearnig the flag in all variants and also virtual thunks of const
6726         functions are pure; track if any change was done.
6727         (cgraph_node::set_const_flag): Update.
6728         (struct set_pure_flag_info): New struct.
6729         (cgraph_set_pure_flag_1): Rename to ...
6730         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
6731         rather than pointer encoded flags; track if any changes was done;
6732         handle correctly clearning flag and setting flag of aliases already
6733         declared const.
6734         (cgraph_node::set_pure_flag): Update.
6735         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
6737 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6739         PR other/70433
6740         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
6741         backslash in label.
6743 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6745         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
6746         '{}<> ' as escape-for-record.
6748 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6750         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
6751         structure.
6753 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6755         PR other/70185
6756         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
6757         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
6758         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
6759         * passes.c (finish_optimization_passes): Only call
6760         finish_graph_dump_file if dfi->graph_dump_initialized.
6761         (execute_function_dump, pass_init_dump_file): Use
6762         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
6764 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6766         PR tree-optimization/70256
6767         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
6768         (debug_varmap): New function.
6770 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6772         PR other/70183
6773         * passes.c (pass_manager::register_pass): Propagate pflags.
6775 2016-04-17  Tom de Vries  <tom@codesourcery.com>
6777         PR other/68875
6778         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
6779         * passes.c (pass_manager::pass_manager): Declare and init p_start in
6780         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
6781         check if it's equal to p_start.
6782         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
6784 2016-04-15  Jan Hubicka  <jh@suse.cz>
6786         PR ipa/70018
6787         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
6788         function does not bind to current def.
6789         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
6790         handle conservatively calls to functions that does not need to bind
6791         to current def.
6792         (check_call): Update call of worse_state.
6793         (ignore_edge_for_nothrow): Update.
6794         (ignore_edge_for_pure_const): Likewise.
6795         (propagate_pure_const): Update calls to worse_state.
6796         (skip_function_for_local_pure_const): Reformat comments.
6798 2016-04-15  Jan Hubicka  <jh@suse.cz>
6800         PR ipa/70018
6801         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
6802         (cgraph_node::function_symbol): Likewise.
6803         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6804         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
6805         (symtab_node::ultimate_alias_target): Add REF parameter.
6806         (symtab_node::binds_to_current_def_p): Declare.
6807         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
6808         (cgraph_node::function_symbol): Likewise.
6809         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6810         (cgraph_node::get_availability): Likewise.
6811         (cgraph_edge::binds_to_current_def_p): New inline function.
6812         (varpool_node::get_availability): Add REF parameter.
6813         (varpool_node::ultimate_alias_target): Likewise.
6814         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
6815         (symtab_node::binds_to_current_def_p): Likewise.
6816         * varpool.c (varpool_node::get_availability): Likewise.
6818 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
6820         PR target/70662
6821         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
6822         Fix mode size check.
6824 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
6826         * BASE-VER: Set to 7.0.0.
6828 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
6830         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
6832 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6834         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
6835         architecture revisions.
6837 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
6839         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
6840         * config/i386/i386.c (ix86_using_red_zone): No longer static.
6841         * config/i386/i386.md (stack decrement to push peepholes): Guard
6842         with !x86_using_red_zone ().
6844 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
6846         PR c++/70675
6847         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
6848         to dump_generic_node.
6849         (NIY): Pass also flags to do_niy.
6851 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6853         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
6854         (simd_clone_vector_of_formal_parm_types)
6855         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
6856         (simd_clone_mangle, simd_clone_create)
6857         (simd_clone_adjust_return_type, create_tmp_simd_array)
6858         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
6859         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
6860         (ipa_simd_modify_function_body, simd_clone_linear_addend)
6861         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
6862         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
6863         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
6864         * omp-simd-clone.c: ... this new file.
6865         (simd_clone_vector_of_formal_parm_types): Make it static.
6866         * Makefile.in (OBJS): Add omp-simd-clone.o.
6868 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
6870         PR target/70662
6871         * config/i386/sse.md: Use proper memory operand modifiers.
6874 2016-04-15  Richard Biener  <rguenther@suse.de>
6875         Alan Modra  <amodra@gmail.com>
6877         PR tree-optimization/70130
6878         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
6879         when alignment stays not the same and no not use the realign
6880         scheme then.
6882 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6884         PR target/70669
6885         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6886         direct move handlers for KFmode. Change TFmode handlers test from
6887         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
6889 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
6891         PR c++/70594
6892         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
6893         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
6894         (inlined_polymorphic_ctor_dtor_block_p): Use it.
6895         * tree-ssa-live.c (remove_unused_scope_block_p): When
6896         in_ctor_dtor_block, avoid discarding not just BLOCKs with
6897         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
6898         block_ultimate_origin is FUNCTION_DECL.
6899         (remove_unused_locals): If current_function_decl is
6900         polymorphic_ctor_dtor_p, pass initial true to
6901         remove_unused_scope_block_p' is_ctor_dtor_block.
6903 2016-04-14  Martin Sebor  <msebor@redhat.com>
6905         PR c++/69517
6906         PR c++/70019
6907         PR c++/70588
6908         * doc/extend.texi (Variable Length): Revert.
6910 2016-04-14  Marek Polacek  <polacek@redhat.com>
6911             Jan Hubicka  <hubicka@ucw.cz>
6913         PR c++/70029
6914         * tree.c (verify_type): Disable the canonical type of main variant
6915         check.
6917 2016-04-14  Jason Merrill  <jason@redhat.com>
6919         * cfgexpand.c, expr.c: Revert previous change.
6921 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
6923         PR middle-end/70643
6924         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
6925         when building a mem ref for the incoming reduction variable.
6927 2016-04-14  Richard Biener  <rguenther@suse.de>
6929         PR tree-optimization/70614
6930         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
6931         loop if the evolution dropped to chrec_dont_know.
6932         (interpret_condition_phi): Likewise.
6934 2016-04-14  Richard Biener  <rguenther@suse.de>
6936         PR tree-optimization/70623
6937         * tree-ssa-pre.c (changed_blocks): Make global ...
6938         (compute_antic): ... local here.  Move and fix worklist
6939         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
6940         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
6941         worklist handling, dump when ANTIC_IN changed.
6942         (compute_partial_antic_aux): Remove worklist handling.
6943         (init_pre): Do not compute post dominators.  Add a comment about
6944         the CFG order chosen.
6945         (fini_pre): Do not free post dominators.
6947 2016-04-13  Martin Sebor  <msebor@redhat.com>
6949         PR c++/69517
6950         PR c++/70019
6951         PR c++/70588
6952         * doc/extend.texi (Variable Length): Document C++ specifics.
6954 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
6956         PR c++/70641
6957         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
6958         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
6959         eh edges have been purged.
6961         PR c++/70594
6962         * tree-sra.c (create_access_replacement,
6963         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
6964         gets fancy name.
6965         * tree-pretty-print.c (dump_fancy_name): New function.
6966         (dump_decl_name, dump_generic_node): Use it.
6968 2016-04-13  Jason Merrill  <jason@redhat.com>
6970         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
6971         * expr.c (expand_expr_real_1): Likewise.
6973 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6975         * config/i386/i386.md (kunpckhi): Swap operands.
6976         (kunpcksi): Likewise.
6977         (kunpckdi): Likewise.
6978         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
6979         (vec_pack_trunc_<mode>): Likewise.
6981 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
6983         PR debug/70628
6984         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
6986         PR middle-end/70633
6987         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
6988         gimplification turns some element into non-constant.
6990         PR debug/70628
6991         * rtl.h (convert_memory_address_addr_space_1): New prototype.
6992         * explow.c (convert_memory_address_addr_space_1): No longer static,
6993         add NO_EMIT argument and don't call convert_modes if true, pass
6994         it down recursively, remove break after return.
6995         (convert_memory_address_addr_space): Adjust caller.
6996         * simplify-rtx.c (simplify_unary_operation_1): Call
6997         convert_memory_address_addr_space_1 instead of convert_memory_address,
6998         if it returns NULL, don't simplify.
7000 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
7002         PR target/70630
7003         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
7005 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7007         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7008         Bump the upper SIMDLEN limits, so that if the return type or
7009         characteristic type if the return type is void can be passed in
7010         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
7011         allowed.
7013 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7015         PR target/70640
7016         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
7017         Do not use "=" constraint on an input constraint.
7018         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7019         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7020         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
7021         generates (neg (abs ...)) instead of (abs ...).
7023 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7025         PR rtl-optimization/70596
7026         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
7027         just invalidate LRA data and reset them.  Adjust dump wording.
7029 2016-04-12  Martin Liska  <mliska@suse.cz>
7031         Revert
7032         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
7034         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7035         estimates here.
7036         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7037         max_loop_iterations_int.
7038         (tree_unswitch_outer_loop): Likewise.
7039         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7040         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7042 2016-04-12  Tom de Vries  <tom@codesourcery.com>
7044         PR tree-optimization/68756
7045         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
7046         instead of new_name.
7048 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7050         PR tree-optimization/70602
7051         * tree-sra.c (generate_subtree_copies): Don't write anything into
7052         constant pool decls.
7054         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
7055         regardless whether there are depend clauses or not.
7057 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7059         PR target/70381
7060         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
7061         target attribute and pragma from changing the -mfloat128
7062         and -mfloat128-hardware options.
7064         * doc/extend.texi (Additional Floating Types): Document PowerPC
7065         __float128 restrictions.
7067 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7069         PR target/70133
7070         * config/aarch64/driver-aarch64.c
7071         (aarch64_get_extension_string_for_isa_flags): New.
7072         (arch_extension): Rename to...
7073         (aarch64_arch_extension): ...This.
7074         (ext_to_feat_string): Rename to...
7075         (aarch64_extensions): ...This.
7076         (aarch64_core_data): Keep track of architecture extension flags.
7077         (cpu_data): Rename to...
7078         (aarch64_cpu_data): ...This.
7079         (aarch64_arch_driver_info): Keep track of architecture extension
7080         flags.
7081         (get_arch_name_from_id): Rename to...
7082         (get_arch_from_id): ...This, change return type.
7083         (host_detect_local_cpu): Update and reformat for renames, handle
7084         extensions through common infrastructure.
7086 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7088         PR target/70133
7089         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
7090         track of a canonical flag name.
7091         (all_extensions): Likewise.
7092         (arch_to_arch_name): Also track extension flags enabled by the arch.
7093         (all_architectures): Likewise.
7094         (aarch64_parse_extension): Move to here.
7095         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
7096         rework.
7097         (aarch64_rewrite_selected_cpu): Update for above change.
7098         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
7099         are handled, such that the single explicit value enabled by an
7100         extension is kept seperate from the implicit values it also enables.
7101         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
7102         to here.
7103         (aarch64_parse_extension): New.
7104         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
7105         here to config/aarch64/aarch64-protos.h.
7106         (aarch64_parse_extension): Move from here to
7107         common/config/aarch64/aarch64-common.c.
7108         (aarch64_option_print): Update.
7109         (aarch64_declare_function_name): Likewise.
7110         (aarch64_start_file): Likewise.
7111         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
7112         the canonical flag for extensions.
7113         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
7114         flags.
7116 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7118         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
7119         AARCH64_FL_CRC.
7121 2016-04-09  Tom de Vries  <tom@codesourcery.com>
7123         PR tree-optimization/68953
7124         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
7125         first to last subscript.
7127 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
7129         PR tree-optimization/70586
7130         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
7131         for any calls.
7133 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
7135         PR lto/70289
7136         PR ipa/70348
7137         PR tree-optimization/70373
7138         PR middle-end/70533
7139         PR middle-end/70534
7140         PR middle-end/70535
7141         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
7142         clauses for acc parallel reductions as necessary.  Error on those
7143         that are private.
7144         * omp-low.c (scan_sharing_clauses): Don't install variables which
7145         are used in acc parallel reductions.
7146         (lower_rec_input_clauses): Remove dead code.
7147         (lower_oacc_reductions): Add support for reference reductions.
7148         (lower_reduction_clauses): Remove dead code.
7149         (lower_omp_target): Don't remap variables appearing in acc parallel
7150         reductions.
7151         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
7153 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
7155         PR middle-end/70593
7156         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
7157         with multiple SSA_NAME defs, force the outputs other than first
7158         to be live before calling live_track_process_def on each output.
7160         PR rtl-optimization/70574
7161         * fwprop.c (forward_propagate_and_simplify): Don't add
7162         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
7163         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
7164         paradoxical subregs within *loc.
7166 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
7168         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
7169         -ftree-parallelize-loops={0,1}.
7170         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
7171         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
7172         * config/ia64/hpux.h (LIB_SPEC): Likewise.
7173         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7174         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7176 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
7178         PR sanitizer/70541
7179         * asan.c (instrument_derefs): If we get unknown location, extract it
7180         with EXPR_LOCATION.
7181         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
7183 2016-04-08  Tom de Vries  <tom@codesourcery.com>
7185         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
7186         implicit firstprivate clause.
7188 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7190         PR target/70566
7191         * config/arm/thumb2.md (tst + branch-> lsls + branch
7192         peephole below *orsi_not_shiftsi_si): Require that condition
7193         register is dead after the peephole.
7194         (second peephole after the above): Likewise.
7196 2016-04-08  Alan Modra  <amodra@gmail.com>
7198         PR target/70117
7199         * builtins.c (fold_builtin_classify): For IBM extended precision,
7200         look at just the high-order double to test for NaN.
7201         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
7202         test just the high double for Inf but both doubles for subnormal
7203         limit.
7205 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
7207         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
7208         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
7209         node->simdclone->mask_mode != VOIDmode masks.
7210         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
7211         earlier, use it instead of node->simdclone.
7212         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7213         Set clonei->mask_mode.
7215 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
7217         PR c/70436
7218         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
7219         Pass it through to cp_parser_already_scoped_statement.
7220         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
7221         it through to cp_parser_statement.
7222         (cp_parser_statement): Pass IF_P through to
7223         cp_parser_iteration_statement.
7224         (cp_parser_pragma): Adjust call to
7225         cp_parser_iteration_statement.
7227 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
7229         PR c/70436
7230         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
7231         resolve a future -Wparentheses warning.
7232         * omp-low.c (scan_sharing_clauses): Likewise.
7233         * tree-parloops.c (eliminate_local_variables): Likewise.
7235 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
7237         PR rtl-optimization/70398
7238         * lra-constraints.c (process_address_1): Check zero scale and code
7239         for reloading with zero scale.
7241 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
7243         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
7244         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
7246 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
7248         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7249         Add support for AVX512F clones, include them by default for
7250         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
7251         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
7252         up to 128.
7254         PR middle-end/70550
7255         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
7256         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
7257         firstprivate clauses.
7258         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
7259         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
7260         (lower_omp_target): Set TREE_NO_WARNING for
7261         non-addressable possibly uninitialized vars which are copied into
7262         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
7264 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
7266         * config/pa/predicates.md (integer_store_memory_operand): Accept
7267         REG+D operands with a large offset when reload_in_progress is true.
7268         (floating_point_store_memory_operand): Likewise.
7270 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
7272         PR c++/70336
7273         * match.pd (nested int casts): Limit to GIMPLE.
7275 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
7277         PR ipa/66223
7278         * ipa-devirt.c (maybe_record_node): Fix comment; use
7279         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
7281 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
7283         PR rtl-optimization/70542
7284         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
7285         if there are any uses other than insn or debug insns.
7287 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
7288             Jakub Jelinek  <jakub@redhat.com>
7290         PR tree-optimization/70509
7291         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
7292         Shift HOST_WIDE_INT_1U instead of 1.
7294 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
7296         PR tree-optimization/70509
7297         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
7298         of the vector base type for index.
7300 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
7302         PR target/70510
7303         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
7305 2016-04-05  Richard Biener  <rguenther@suse.de>
7307         PR tree-optimization/70526
7308         * tree-sra.c (build_ref_for_offset): Use prev_base to
7309         extract the alias pointer type.
7311 2016-04-05  Richard Biener  <rguenther@suse.de>
7313         * dse.c (struct store_info): Remove alias_set member.
7314         (struct read_info_type): Likewise.
7315         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
7316         spill_deleted, clear_alias_set_lookup): Remove.
7317         (get_group_info): Remove dead base == NULL_RTX case.
7318         (dse_step0): Remove initialization of removed variables.
7319         (delete_dead_store_insn): Reomve alias set dumping.
7320         (free_read_records): Remove alias_set handling.
7321         (canon_address): Remove alias_set_out parameter.
7322         (record_store): Remove spill_alias_set, it's always zero.
7323         (check_mem_read_rtx): Likewise.
7324         (dse_step2): Rename from ...
7325         (dse_step2_nospill): ... this.  Adjust.
7326         (scan_stores): Rename from ...
7327         (scan_stores_nospill): ... this.
7328         (scan_reads): Rename from ...
7329         (scan_reads_nospill): ... this.
7330         (scan_stores_spill, scan_reads_spill): Remove.
7331         (dse_step3_scan): Remove for_spills argument which is always false.
7332         (dse_step3): Likewise.
7333         (dse_step5): Rename from ...
7334         (dse_step5_nospill): ... this.  Remove alias_set handling.
7335         (rest_of_handle_dse): Adjust.
7337 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
7339         PR target/70525
7340         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
7341         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
7342         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
7343         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
7345 2016-04-05  Richard Biener  <rguenther@suse.de>
7347         PR middle-end/70499
7348         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
7349         non-register type temporaries into SSA.
7351 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
7353         PR ipa/66223
7354         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
7355         calls when sanitizing.
7356         (possible_polymorphic_call_target_p): Fix formatting.
7358 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7359             Jakub Jelinek <jakub@redhat.com>
7361         PR middle-end/70457
7362         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
7363         to ensure a call statement is compatible with a built-in's
7364         prototype.
7365         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
7366         Likewise.
7368 2016-04-04  Richard Biener  <rguenther@suse.de>
7370         PR rtl-optimization/70484
7371         * rtl.h (canon_output_dependence): Declare.
7372         * alias.c (canon_output_dependence): New function.
7373         * dse.c (record_store): Use canon_output_dependence rather
7374         than canon_true_dependence.
7376 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
7378         PR ipa/68881
7379         * cgraph.h (symtab_node::copy_visibility_from): New function.
7380         * symtab.c (symtab_node::copy_visibility_from): New function.
7381         * ipa-visibility.c (optimize_weakref): New function.
7382         (function_and_variable_visibility): Use it.
7384 2016-04-04  Martin Liska  <mliska@suse.cz>
7386         PR hsa/70402
7387         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
7388         value that is really in range handled by SBR instruction.
7389         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
7390         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
7391         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
7393 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
7395         PR target/70416
7396         PR target/67391
7397         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
7398         set, but not for SP_REG operands.
7400 2016-04-02  Martin Sebor  <msebor@redhat.com>
7402         PR c++/67376
7403         * fold-const.c (maybe_nonzero_address): New function.
7404         (fold_comparison): Call it.  Fold equality and relational
7405         expressions involving null pointers.
7406         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
7408 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
7410         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
7411         the "Y" constraint (scalar FP 0.0 immediate).
7413         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
7414         Add the "const_double" to the list of operand constraints.
7416 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
7418         PR rtl-optimization/70467
7419         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
7420         If low word of the last operand is 0, just emit addition/subtraction
7421         for the high word.
7423 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7425         PR target/70404
7426         * config/s390/s390.c (s390_expand_insv): Check for everything
7427         constant instead of just VOIDmode stuff.
7429 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7431         PR target/70496
7432         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
7434 2016-04-01  Nathan Sidwell  <nathan@acm.org>
7436         * tree.def (TRY_CATCH_EXPR): Correct documentation.
7438 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7440         PR rtl-optimization/70461
7441         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
7442         is necessary.
7444 2016-03-31  Martin Liska  <mliska@suse.cz>
7446         PR hsa/70399
7447         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
7448         a tree value or an immediate integer value to a buffer
7449         that is eventually copied to a BRIG section.
7450         (emit_immediate_operand): Call the function here.
7451         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
7452         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
7453         of class' fields that are removed.
7454         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
7455         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
7456         m_brig_repr_size fields.
7458 2016-03-31  Martin Liska  <mliska@suse.cz>
7460         PR hsa/70391
7461         * hsa-gen.c (hsa_function_representation::update_dominance): New
7462         function.
7463         (convert_addr_to_flat_segment): Likewise.
7464         (gen_hsa_memory_set): New alignment argument.
7465         (gen_hsa_ctor_assignment): Likewise.
7466         (gen_hsa_insns_for_single_assignment): Provide alignment
7467         to gen_hsa_ctor_assignment.
7468         (gen_hsa_insns_for_direct_call): Add new argument.
7469         (expand_lhs_of_string_op): New function.
7470         (expand_string_operation_builtin): Likewise.
7471         (expand_memory_copy): New function.
7472         (expand_memory_set): New function.
7473         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
7474         (convert_switch_statements): Change signature.
7475         (generate_hsa): Use a return value of the function.
7476         (pass_gen_hsail::execute): Do not call
7477         convert_switch_statements here.
7478         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
7479         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
7480         (hsa_function_representation::update_dominance): New function.
7482 2016-03-31  Martin Liska  <mliska@suse.cz>
7484         PR hsa/70391
7485         * hsa-brig.c (emit_directive_variable): Emit alignment
7486         according to hsa_symbol::m_align.
7487         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
7488         (dump_hsa_symbol): Dump alignment of HSA symbols.
7489         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
7490         (gen_hsa_addr_with_align): New function.
7491         (hsa_bitmemref_alignment): Use newly added function.
7492         (gen_hsa_insns_for_load): Likewise.
7493         (gen_hsa_insns_for_store): Likewise.
7494         (gen_hsa_memory_copy): New argument added.
7495         (gen_hsa_insns_for_single_assignment): Respect
7496         alignment for assignments processed via gen_hsa_memory_copy.
7497         (gen_hsa_insns_for_direct_call): Likewise.
7498         (gen_hsa_insns_for_return): Likewise.
7499         (gen_function_def_parameters): Set default alignment.
7500         * hsa.c (hsa_object_alignment): New function.
7501         (hsa_byte_alignment): Pasted function.
7502         * hsa.h (hsa_symbol::m_align): New field.
7504 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
7506         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
7507         scratch field for goto case.
7509 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
7511         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
7513 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
7515         PR target/70442
7516         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
7517         (scalar_chain::convert_insn): Call convert_op for reg
7518         moves to handle undefined registers.
7520 2016-03-31  Nathan Sidwell  <nathan@acm.org>
7522         PR c++/70393
7523         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
7524         Assert we don't want to move backwards.
7526 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
7528         PR target/70453
7529         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
7531 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
7533         PR rtl-optimization/70460
7534         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
7535         with operand from REG_LABEL_OPERAND, instead substitute
7536         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
7537         Don't do anything for REG_NON_LOCAL_GOTO jumps.
7539 2016-03-31  Martin Liska  <mliska@suse.cz>
7541         * passes.c (execute_one_pass): Do not call
7542         todo_after for a discarded function.
7544 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
7546         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
7547         (no_cost, infinite_cost): Initialize the new field.
7548         (get_computation_cost_at): Record setup cost.
7549         (determine_use_iv_cost_address): Skip cost computation for sub
7550         uses if we can estimate it without losing accuracy.
7552 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
7554         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7555         estimates here.
7556         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7557         max_loop_iterations_int.
7558         (tree_unswitch_outer_loop): Likewise.
7559         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7560         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7562 2016-03-30  Richard Biener  <rguenther@suse.de>
7564         PR middle-end/70450
7565         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
7567 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
7569         PR target/70421
7570         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
7571         in gen_blendm expander.
7573 2016-03-30  Nick Clifton  <nickc@redhat.com>
7575         PR target/62254
7576         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
7577         case where we are already provided with an SImode SUBREG.
7579 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7581         PR target/70439
7582         * config/i386/i386.c (ix86_expand_epilogue): Properly check
7583         conflict between DRAP register and __builtin_eh_return.
7585 2016-03-30  Michael Matz  <matz@suse.de>
7586             Richard Biener  <rguenther@suse.de>
7588         PR ipa/12392
7589         * ipa-polymorphic-call.c (struct type_change_info): Change
7590         speculative to an unsigned allowing to limit the work we do.
7591         (csftc_abort_walking_p): New inline function..
7592         (check_stmt_for_type_change): Limit the number of may-defs
7593         skipped for speculative devirtualization to
7594         max-speculative-devirt-maydefs.
7595         * params.def (max-speculative-devirt-maydefs): New param.
7596         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
7598 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
7600         PR target/63890
7601         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
7602         and TARGET_MACHO.
7604 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
7606         PR tree-optimization/59124
7607         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
7608         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
7610 2016-03-29  Jeff Law  <law@redhat.com>
7612         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
7614 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
7616         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
7617         to HOST_WIDE_INT.
7619 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
7621         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
7622         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
7623         gcrt0.o if linking dynamically.
7625 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
7627         PR ipa/70283
7628         * ipa-devirt.c (methods_equal_p): New function.
7629         (compare_virtual_tables): Use it.
7630         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
7631         * cgraphclones.c (clone_function_name_1): Use
7632         symbol_table::symbol_suffix_separator.
7633         * coverage.c (build_var): Likewise.
7634         * symtab.c (symbol_table::symbol_suffix_separator): New.
7636 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
7638         PR rtl-optimization/70429
7639         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
7640         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
7641         mode != result_mode.
7643         PR c++/70353
7644         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
7646         PR tree-optimization/70405
7647         * ssa-iterators.h (num_imm_uses): Add missing braces.
7649 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7651         PR rtl-optimization/68695
7652         * ira-color.c (allocno_copy_cost_saving): New.
7653         (improve_allocation): Use it.
7655 2016-03-29  Richard Henderson  <rth@redhat.com>
7657         PR middle-end/70355
7658         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
7660 2016-03-29  Richard Biener  <rguenther@suse.de>
7662         PR middle-end/70424
7663         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
7664         use alignment returned by get_pointer_alignment_1 if it is
7665         bigger than BITS_PER_UNIT.
7666         * builtins.c (get_pointer_alignment_1): Do not return true
7667         for alignment extracted from SSA info.
7669 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
7671         * config/ft32/ft32.opt (mnodiv): New.
7672         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
7673         * doc/invoke.texi (FT32 Options -mnodiv): New.
7675 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
7677         PR target/70406
7678         * config/i386/i386.md (define_split, andn): Fix modes.
7680 2016-03-26  Richard Biener  <rguenther@suse.de>
7681             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7683         PR ipa/70366
7684         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
7685         instead of
7686         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
7687         as 2nd argument to cl_optimization_restore().
7689 2016-03-25  Richard Henderson  <rth@redhat.com>
7691         PR target/70120
7692         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
7693         * config/aarch64/aarch64-protos.h: Declare it.
7694         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
7696 2016-03-25  Alan Modra  <amodra@gmail.com>
7698         PR target/70052
7699         * config/rs6000/constraints.md (j): Simplify.
7700         * config/rs6000/predicates.md (easy_fp_constant): Exclude
7701         decimal float 0.D.
7702         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
7703         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
7704          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
7705         in all constraint alternatives.
7706         (movtd_64bit_nodm): Delete "j" constraint alternative.
7708 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
7710         * tree-ssa-propagate.c: Enhance docs for
7711         SSA_PROP_NOT_INTERESTING.
7713 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
7715         * doc/extend.texi: Fix typo in documentation to pure attribute.
7717 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
7719         PR target/70319
7720         * config/pa/pa.md (bswapdi2): Use a scratch register.
7722 2016-03-24  Richard Henderson  <rth@redhat.com>
7724         PR middle-end/69845
7725         * fold-const.c (extract_muldiv_1): Correct test for multiplication
7726         overflow.
7728 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
7730         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
7731         using ix86_expand_binary_operator instead of gen_andsi3.
7733 2016-03-24  Richard Biener  <rguenther@suse.de>
7735         PR tree-optimization/70396
7736         * tree-vect-stmts.c (vectorizable_comparison): Use
7737         get_vectype_for_scalar_type.
7739 2016-03-24  Richard Biener  <rguenther@suse.de>
7741         PR middle-end/70370
7742         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
7743         with register bases.
7745 2016-03-24  Richard Biener  <rguenther@suse.de>
7747         PR tree-optimization/70372
7748         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
7749         build_all_ones_cst to also handle vector types correctly.
7751 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7753         PR target/70381
7754         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
7755         -mfloat128 here.
7757 2016-03-23  Marek Polacek  <polacek@redhat.com>
7759         PR c++/69884
7760         * doc/invoke.texi: Document -Wignored-attributes.
7762 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
7764         PR tree-optimization/69042
7765         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
7766         parameter from 30 to 40.
7768 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
7770         PR tree-optimization/69042
7771         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
7772         for use with constant offset stripped in base.
7774 2016-03-23  Richard Biener  <rguenther@suse.de>
7776         PR middle-end/70251
7777         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
7778         mode compatibility check.
7779         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7781 2016-03-23  Jeff Law  <law@redhat.com>
7783         PR tree-optimization/64058
7784         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
7785         CONFLICT_COUNT.
7786         (struct ssa_conflicts): Move up earlier in the file.
7787         (conflicts_, var_map_): New static variables.
7788         (initialize_conflict_count): New function to initialize the
7789         CONFLICT_COUNT field for each conflict pair.
7790         (compare_pairs): Lazily initialize the conflict count and use it
7791         as the first tie-breaker.
7792         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
7793         and wipe conflicts_ and map_ around the call to qsort.  Remove
7794         special case for 2 coalesce pairs.
7795         * bitmap.c (bitmap_count_unique_bits): New function.
7796         (bitmap_count_bits_in_word): New function, extracted from
7797         bitmap_count_bits.
7798         (bitmap_count_bits): Use bitmap_count_bits_in_word.
7799         * bitmap.h (bitmap_count_unique_bits): Declare it.
7801 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
7803         PR target/69917
7804         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
7805         transparent alias chain for decl assembler name.
7806         * config/sol2.c (solaris_assemble_visibility): Likewise.
7808 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7810         * config/arm/arm1020e.md (1020call_op): Reduce reservation
7811         duration.
7812         (v10_fdivs): Likewise.
7813         (v10_fdivd): Likewise.
7815 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7817         PR driver/70132
7818         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
7819         to not call fclose twice on file.
7821 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
7823         PR tree-optimization/70354
7824         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7825         oprnd0 is wider than oprnd1 and there is a cast from the wider
7826         type to oprnd1, mask it with the mask of the narrower type.
7828         PR target/70321
7829         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
7830         Optimize TARGET_STV splitters, if high or low word of last argument
7831         is 0 or -1.
7833 2016-03-22  Jeff Law  <law@redhat.com>
7835         PR target/70232
7836         tree-ssa-threadbackward.c
7837         (fsm_find_control_statement_thread_paths): Correctly distinguish
7838         between old style jump threads vs FSM jump threads.
7840 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
7842         PR target/70302
7843         * config/i386/i386.c (scalar_chain::convert_op): Support
7844         uninitialized register usage case.
7846 2016-03-22  Richard Biener  <rguenther@suse.de>
7848         PR middle-end/70251
7849         * genmatch.c (gen_transform): Adjust last parameter to a three-state
7850         int...
7851         (capture::gen_transform): ... to change behavior when substituting
7852         a condition into cond or not-cond expr context.
7853         (dt_simplify::gen_1): Adjust.
7854         * gimple-match-head.c: Include gimplify.h for unshare_expr.
7855         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
7856         last change and instead change to
7857         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
7858         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7860 2016-03-22  Anthony Green  <green@moxielogic.com>
7862         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
7863         issue for moxiebox targets.
7864         (CC1PLUS_SPEC): Ditto.
7866 2016-03-22  Richard Biener  <rguenther@suse.de>
7868         PR middle-end/70333
7869         * fold-const.c (extract_muldiv_1): Properly perform multiplication
7870         in the wide type.
7872 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
7874         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
7876 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
7878         PR target/70325
7879         * config/i386/i386.c (def_builtin): Handle
7880         OPTION_MASK_ISA_AVX512VL to be and-ed with other
7881         bits.
7882         (const struct builtin_description bdesc_special_args[]):
7883         Remove duplicate ISA bits.
7885 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
7887         PR target/70329
7888         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
7889         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
7890         in a way that works also for AVX512BW.
7892         PR target/70300
7893         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
7894         instead of source if operands[1] is xmm16 and above and
7895         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
7896         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
7898         PR c++/70295
7899         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
7900         on assign if (*from_p) is a comparison, set it to
7901         TREE_NO_WARNING (*from_p).
7903 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
7905         PR middle-end/70326
7906         * lra.c (restore_scratches): Ignore deleted insns.
7908 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
7909             Jakub Jelinek  <jakub@redhat.com>
7911         PR tree-optimization/70317
7912         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
7913         to HONOR_NANS.
7915 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
7917         PR target/70327
7918         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
7919         of ix86_expand_move.
7920         (movoi): Ditto.
7921         (movti): Use general_operand for operand 1 predicate.
7923 2016-03-21  Martin Liska  <mliska@suse.cz>
7925         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
7926         insns.
7927         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
7929 2016-03-21  Martin Liska  <mliska@suse.cz>
7931         PR ipa/70306
7932         * ipa-icf.c (sem_function::parse): Skip static
7933         constructors and destructors.
7935 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
7937         PR target/70296
7938         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
7939         function-like macro, peek following token(s) if it is followed
7940         by CPP_OPEN_PAREN token with optional padding in between, and
7941         if not, don't treat it like a macro.
7943 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7944             Alexander Monakov  <amonakov@ispras.ru>
7946         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
7947         for the stabs debug format.
7949 2016-03-21  Richard Biener  <rguenther@suse.de>
7951         PR tree-optimization/70310
7952         * tree-vect-generic.c (expand_vector_condition): Fold the built
7953         condition.
7955 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
7957         PR target/70293
7958         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
7959         Block third alternative for AVX-512VL target,
7961 2016-03-21  Martin Liska  <mliska@suse.cz>
7963         PR hsa/70234
7964         * hsa-brig.c (emit_function_directives): Mark unemitted
7965         global variables for emission.
7966         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
7967         (get_symbol_for_decl): Likewise.
7968         * hsa.h (struct hsa_symbol): New flag.
7970 2016-03-21  Richard Biener  <rguenther@suse.de>
7972         PR tree-optimization/70288
7973         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
7974         we do not estimate unsimplified all-constant conditionals or
7975         switches as optimized away.
7977 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
7979         PR rtl-optimization/69102
7980         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
7981         when we have a readonly dependency context.
7983 2016-03-18  Jeff Law  <law@redhat.com>
7985         PR rtl-optimization/70263
7986         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
7987         (update_equiv_regs): When trying to move a store to after the insn
7988         that sets the source of the store, make sure the store occurs after
7989         the insn that sets the source of the store.  When successful note
7990         the REG_EQUIV note created in the dump file.
7992 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
7993             Bernd Schmidt  <bschmidt@redhat.com>
7995         * doc/extend.texi: Document more potential problems with basic asms.
7997 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
7999         PR rtl-optimization/70278
8000         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
8001         VOIDmode.
8003 2016-03-18  Jason Merrill  <jason@redhat.com>
8005         * calls.c (load_register_parameters): Fix zero size sibcall logic.
8007 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
8009         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
8010         values to 128b regs.
8012 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8014         PR tree-optimization/70252
8015         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
8016         boolean vector has a proper number of elements.
8017         (supportable_narrowing_operation): Likewise.
8019 2016-03-18  Tom de Vries  <tom@codesourcery.com>
8021         PR ipa/70269
8022         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
8024 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
8026         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
8027         instead of replace_rtx for DEBUG_INSNs.
8029 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8031         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
8032         load type reservations.
8034 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
8036         PR target/70188
8037         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
8038         define_constraint for "Q" and "T" constraints.
8040 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
8042         Tweak the pipeline model for Exynos M1
8044         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
8045         model.
8047 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
8049         PR c/70264
8050         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
8051         where one or both locations aren't within a line_map.
8053 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8055         PR driver/70192
8056         * opts.c (finish_options): Don't set flag_pie to the default if
8057         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
8058         if it is -1.
8060 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
8062         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
8063         true as ALL_REGS argument to replace_rtx.
8065 2016-03-17  Richard Biener  <rguenther@suse.de>
8067         PR debug/70271
8068         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
8069         last.
8071 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
8073         PR target/70245
8074         * rtl.h (replace_rtx): Add ALL_REGS argument.
8075         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
8076         equality and assert mode is the same, instead of just rtx pointer
8077         equality.
8078         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
8079         true as ALL_REGS argument to replace_rtx.
8081 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
8083         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
8084         for boolean vector with vector mode only.
8085         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8087 2016-03-17  Nick Clifton  <nickc@redhat.com>
8089         PR target/70162
8090         * config/rx/rx.c (rx_print_integer): Print negative constants in
8091         decimal.
8093 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
8095         PR target/70261
8096         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
8098 2016-03-16  Richard Henderson  <rth@redhat.com>
8099             Richard Biener  <rguenth@suse.de>
8101         PR middle-end/70240
8102         PR middle-end/68215
8103         PR tree-opt/68714
8104         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
8105         first operand as is_gimple_condexpr.
8107         PR middle-end/70240
8108         PR middle-end/68215
8109         Revert r231575
8110         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
8111         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
8112         Do not gimplify the result.
8113         (do_unop): Adjust call to tree_vec_extract.
8114         (do_binop): Likewise.
8115         (do_compare): Likewise.
8116         (do_plus_minus): Likewise.
8117         (do_negate): Likewise.
8118         (expand_vector_condition): Likewise.
8119         (do_cond): Likewise.
8121 2016-03-16  Richard Henderson  <rth@redhat.com>
8123         PR target/70048
8124         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
8125         (aarch64_classify_address): Use it.
8126         (aarch64_legitimize_address): Force all subexpressions of PLUS
8127         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
8129 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
8130             Richard Biener  <rguenth@suse.de>
8132         PR target/70245
8133         * rtlanal.c (replace_rtx): For REG, if from is a REG,
8134         return to even if only REGNO is equal, and assert
8135         mode is the same.
8137 2016-03-11  Jeff Law  <law@redhat.com>
8139         PR rtl-optimization/70224
8140         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
8142 2016-03-16  Richard Henderson  <rth@redhat.com>
8144         PR middle-end/70199
8145         * function.h (struct function): Add has_forced_label_in_static.
8146         * gimplify.c (force_labels_r): Set it.
8147         * lto-streamer-in.c (input_struct_function_base): Read it.
8148         * lto-streamer-out.c (output_struct_function_base): Write it.
8149         * tree-inline.c (has_label_address_in_static_1): Remove.
8150         (copy_forbidden): Remove fndecl parameter; test
8151         has_forced_label_in_static.
8152         (inline_forbidden_p): Update call to copy_forbidden.
8153         (tree_versionable_function_p): Likewise.
8154         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
8155         (chkp_versioning): Likewise.
8156         * tree-inline.h (copy_forbidden): Update decl.
8158 2016-03-16  Marek Polacek  <polacek@redhat.com>
8160         PR c/70093
8161         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
8162         function being thunked if the result type doesn't have fixed size.
8163         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
8164         doesn't have fixed size.
8166 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
8168         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
8169         reporting malformed loop nest.
8171 2016-03-16  Tom de Vries  <tom@codesourcery.com>
8173         PR lto/70187
8174         * ipa-devirt.c (possible_polymorphic_call_targets): Move
8175         nodes.length () == 1 test to before first nodes[0] access.
8177 2016-03-16  Tom de Vries  <tom@codesourcery.com>
8179         PR tree-optimization/68715
8180         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
8181         single_pred_p test.
8183 2016-03-16  Tom de Vries  <tom@codesourcery.com>
8185         PR tree-optimization/68809
8186         * graphite-scop-detection.c (same_close_phi_node): Test if result types
8187         are the same.
8189 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
8190             Sandra Loosemore  <sandra@codesourcery.com>
8192         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
8193         on leaf attribute. Mention ELF interposition problems.
8195 2016-03-16  Alan Modra  <amodra@gmail.com>
8197         PR rtl-optimization/69195
8198         PR rtl-optimization/47992
8199         * ira.c (indirect_jump_optimize): Ignore artificial defs.
8200         Add comments.
8202 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
8204         PR bootstrap/69513
8205         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
8207 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8209         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
8211 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
8213         PR rtl-optimization/70222
8214         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
8215         optimization if mode is different from result_mode, queue up masking
8216         of the result in outer_op.  Formatting fix.
8218         PR middle-end/70239
8219         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
8220         of safe_grow.
8222 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8224         PR rtl-optimization/69032
8225         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
8226         looping backwards over basic block insns.
8228 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8230         PR target/66660
8231         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
8232         to non-speculative when propagating trap bits.
8234 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8236         PR rtl-optimization/63384
8237         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
8238         DEBUG_INSN_P insns.
8240 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8242         PR target/64411
8243         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
8244         factored out from ...
8245         (sched_analyze_insn): ... here.
8246         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
8247         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
8248         get_implicit_reg_pending_clobbers in it.
8249         (setup_id_reg_sets): Use setup_id_implicit_regs.
8250         (deps_init_id): Ditto.
8252 2016-03-15  Tom de Vries  <tom@codesourcery.com>
8254         PR ipa/70161
8255         * cgraph.c (cgraph_node::get_body): Save, reset and restore
8256         dump_file_name.
8257         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
8258         execute_function_dump.
8259         (execute_one_pass): Don't dump function if it will be dumped after ipa
8260         transform.
8262 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
8264         * genrecog.c (match_pattern_2): If pred is NULL don't call
8265         safe_predicate_mode on it.
8267 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
8269         PR middle-end/70219
8270         * lra-constraints.c (delete_move_and_clobber): Change assertion
8271         to also allow dregno == 0.
8273 2016-03-14  Richard Henderson  <rth@redhat.com>
8275         PR tree-opt/68714
8276         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
8277         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
8278         (reassociate_bb): Use optimize_vec_cond_expr; avoid
8279         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
8280         on vectors.
8282 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
8284         PR target/70083
8285         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
8286         regs.
8287         (lra_create_live_ranges_1): initialize hard register biggest_mode to
8288         VOIDmode.
8289         * lra-constraints.c (split_reg): For hard regs, try to find the
8290         biggest single-register mode used in the function.
8292 2016-03-14  Richard Biener  <rguenther@suse.de>
8294         PR tree-optimization/56365
8295         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
8296         constants to compare against.
8298 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
8300         PR target/70098
8301         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8302         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
8303         (define_split for the GPR case): Use int_reg_operand instead of
8304         gpc_reg_operand for the output.
8306 2016-03-14  Tom de Vries  <tom@codesourcery.com>
8308         PR tree-optimization/70045
8309         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
8310         create_empty_if_region_on_edge argument.
8312 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
8314         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
8315         (STACK_CHECK_PROTECT): Likewise.
8316         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
8317         (STACK_CHECK_PROTECT): Likewise.
8318         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
8319         (STACK_CHECK_PROTECT): Likewise.
8320         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
8321         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8322         (STACK_CHECK_PROTECT): Likewise.
8324 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
8326         PR rtl-optimization/69307
8327         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
8328         registers in modes that span more than one register.
8330 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
8332         PR target/69614
8333         * lra-constraints.c (delete_move_and_clobber): New.
8334         (remove_inheritance_pseudos): Use it.
8336 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
8338         PR ada/70017
8339         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
8340         the libcall is LCT_THROW.
8341         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
8342         for the checking routine.
8344 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8346         PR target/70131
8347         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
8348         optimization if we have direct move.
8349         (roundu32<mode>2_fprs): Likewise.
8351 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
8353         PR target/70123
8354         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
8355         be rematerialized.
8356         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
8357         Arguments swapped.  All callers changed.  Take reg_renumber into
8358         account, and Calculate and compare register ranges for hard regs.
8360 2016-03-11  Jeff Law  <law@redhat.com>
8362         PR tree-optimization/70190
8363         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8364         Handle cases where we can not extract the taken edge, even though we
8365         found a constant value.
8367         PR tree-optimization/64058
8368         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
8369         (num_coalesce_pairs): Move up earlier in file.
8370         (find_coalesce_pair): Initialize the INDEX field for each pair
8371         discovered.
8372         (compare_pairs): No longer sort on the elements in each pair.
8373         Instead break ties with the index of the coalesce pair.
8375 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8377         PR target/70002
8378         * config/aarch64/aarch64-protos.h
8379         (aarch64_save_restore_target_globals): New prototype.
8380         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
8381         Call the above when popping pragma.
8382         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
8383         New function.
8384         (aarch64_set_current_function): Rewrite using the above.
8386 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
8388         PR tree-optimization/70177
8389         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
8390         (extract_ops_from_tree): ... this.  In the 2 argument
8391         overload remove _1 suffix.
8392         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
8393         (extract_ops_from_tree): ... this.
8394         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
8395         Adjust callers.
8396         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8397         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
8398         extract_ops_from_tree instead of 2 operand one.
8400 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
8402         PR tree-optimization/70013
8403         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
8404         for constant-pool entries.
8406 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
8408         PR rtl-optimization/70174
8409         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
8410         followed by gen_lowpart on force_reg instead of just gen_lowpart.
8412         PR tree-optimization/70169
8413         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
8414         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
8415         for unknown codes.
8417 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
8418             Jakub Jelinek  <jakub@redhat.com>
8420         PR target/70160
8421         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
8422         of uninitialized values.
8424 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8426         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
8427         define_expand.
8428         ("*trunctddd2"): New pattern definition.
8429         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
8430         TD->DD truncation.
8432 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8434         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
8435         definitions for BFP and DFP rounding modes.
8436         ("fixuns_truncdddi2", "fixuns_trunctddi2")
8437         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
8438         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
8439         ("fix_trunctf<mode>2"): Use the new constants instead of magic
8440         numbers.
8442 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8444         * config/s390/constraints.md: Adjust comment.
8445         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
8446         s390_decompose_addrstyle_without_index.
8447         * config/s390/predicates.md (shift_count_or_setmem_operand):
8448         Rename to setmem_operand.
8449         * config/s390/s390-protos.h
8450         (s390_decompose_shift_count): Rename to
8451         s390_decompose_addrstyle_without_index.
8452         * config/s390/s390.c (s390_decompose_shift_count)
8453         (s390_mem_constraint, print_shift_count_operand)
8454         (print_operand_address, print_operand): Rename
8455         s390_decompose_shift_count to
8456         s390_decompose_addrstyle_without_index and rename
8457         print_shift_count_operand to print_addrstyle_operand troughout the
8458         file.
8459         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
8460         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
8461         Rename shift_count_or_setmem_operand to setmem_operand.
8462         * config/s390/vx-builtins.md ("vec_insert<mode>")
8463         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
8464         nonmemory_operand.
8466 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8468         PR target/70168
8469         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8470         Handle overlapping retval and newval.
8472 2016-03-10  Nick Clifton  <nickc@redhat.com>
8474         PR target/7044
8475         * config/aarch64/aarch64.c
8476         (aarch64_override_options_after_change_1): When forcing
8477         flag_omit_frame_pointer to be true, use a special value that can
8478         be detected if this function is called again, thus preventing
8479         flag_omit_leaf_frame_pointer from being forced to be false.
8481 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8483         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8484         Set x_flag_omit_leaf_frame_pointer when handling
8485         -momit-leaf-frame-pointer.
8487 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
8489         PR lto/69589
8490         * cgraph.c (cgraph_node::dump): Dump split_part and
8491         indirect_call_target.
8492         * cgraph.h (cgraph_node): Add indirect_call_target flag.
8493         * ipa.c (has_addr_references_p): Cleanup.
8494         (is_indirect_call_target_p): New.
8495         (walk_polymorphic_call_targets): Do not mark virtuals that may be
8496         called indirectly as local.
8497         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
8499 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
8501         PR ipa/69630
8502         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8503         on cxa_pure_virtual.
8505 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
8507         PR lto/69589
8508         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
8510 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
8512         PR lto/69589
8513         * tree.c (need_assembler_name_p): Only record main variant type names.
8515 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
8517         PR target/70113.
8518         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
8519         Always define to 0 or 1.
8520         (TARGET_FIX_ERR_A53_843419): New macro.
8521         * config/aarch64/aarch64-elf-raw.h
8522         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
8523         * config/aarch64/aarch64-linux.h: Likewise.
8524         * config/aarch64/aarch64.c
8525         (aarch64_override_options_after_change_1): Do not default
8526         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
8527         843419 is on.
8528         (aarch64_attributes): Handle fix-cortex-a53-843419.
8529         (aarch64_can_inline_p): Likewise.
8530         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
8532 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
8533         Jakub Jelinek <jakub@redhat.com>
8535         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
8536         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
8537         DECL_COMMONS if flag_unconstrained_commons is set.
8538         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8539         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
8540         (funconstrained-commons): Document.
8542 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
8544         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
8545         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
8547 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
8549         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
8550         has a proper number of elements.
8552 2016-03-10  Alan Modra  <amodra@gmail.com>
8554         PR rtl-optimization/69195
8555         PR rtl-optimization/47992
8556         * ira.c (recorded_label_ref): Delete.
8557         (update_equiv_regs): Return void.
8558         (indirect_jump_optimize): New function.
8559         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
8560         before regstat_compute_ri.  Don't rebuild_jump_labels here.
8561         Delete update_regstat.
8563 2016-03-10  Richard Biener  <rguenther@suse.de>
8565         PR tree-optimization/70128
8566         * tree-ssa-structalias.c (set_uids_in_ptset): Set
8567         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
8569 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
8571         PR tree-optimization/70152
8572         * tree-sra.c (replace_removed_params_ssa_names): Copy over
8573         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
8575         PR target/70086
8576         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
8577         instead of gen_sse2_loadlpd.
8578         * config/i386/sse.md (*vec_concatv2df): Rename to...
8579         (vec_concatv2df): ... this.
8581         PR tree-optimization/70127
8582         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
8584 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
8586         PR c/68473
8587         PR c++/70105
8588         * diagnostic-show-locus.c (compatible_locations_p): New function.
8589         (layout::layout): Sanitize ranges using compatible_locations_p.
8591 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
8593         PR c/68473
8594         PR c++/70105
8595         * diagnostic-show-locus.c (layout_range::layout_range): Replace
8596         location_range param with three const expanded_locations * and a
8597         bool.
8598         (layout::layout): Replace call to
8599         rich_location::lazily_expand_location with get_expanded_location.
8600         Extract the range and perform location expansion here, passing
8601         the results to the layout_range ctor.
8602         * diagnostic.c (source_range::debug): Delete.
8603         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
8604         of rich_location::get_expanded_location.
8605         * gcc-rich-location.c (get_range_for_expr): Delete.
8606         (gcc_rich_location::add_expr): Reimplement to avoid the
8607         rich_location::add_range overload that took a location_range,
8608         passing a location_t instead.
8610 2016-03-09  Richard Biener  <rguenther@suse.de>
8611         Jakub Jelinek  <jakub@redhat.com>
8613         PR tree-optimization/70138
8614         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8615         Also skip vect_double_reduction_def.
8617 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
8619         PR target/70049
8620         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
8621         if the operand is "m".
8623 2016-03-09  Nathan Sidwell  <nathan@acm.org>
8625         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
8627 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8629         * config/i386/i386.c (processor_target_table): Fix cost table
8630         intialization order for znver1.
8632 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
8634         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
8635         - becuase -> because.
8636         * ipa-reference.c (ignore_module_statics): Likewise.
8637         * cgraph.c (cgraph_node::get_body): Likewise.
8638         * ipa-inline.c (early_inliner): Likewise.
8639         * ipa-devirt.c (types_same_for_odr): Likewise.
8640         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8641         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
8643 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8645         * tree-ssa-math-opts.c: Fix typo in comment.
8647 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
8649         PR target/70110
8650         * config/i386/i386.c (scalar_chain::make_vector_copies,
8651         scalar_chain::convert_reg): Call end_sequence in between
8652         get_insns and emit_conversion_insns rather than after both
8653         calls.
8655 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
8657         PR target/70064
8658         * config/i386/i386.h (machine_function): Add
8659         pc_thunk_call_expanded flag.
8660         (ix86_pc_thunk_call_expanded): New define.
8661         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
8662         (*set_got): Rename insn pattern from set_got.
8663         (*set_got_labelled): Rename inst pattern from set_got_labelled.
8664         * config/i386/i386.c (ix86_compute_frame_layout): Use
8665         ix86_pc_thunk_call_expanded to prevent red-zone.
8667 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8669         * hsa.h (hsa_get_ctor_statements): Declare.
8670         (hsa_get_dtor_statements): Likewise.
8671         (hsa_get_kernel_dispatch_type): Likewise.
8672         * hsa.c (hsa_get_ctor_statements): New function.
8673         (hsa_get_dtor_statements): Likewise.
8674         (hsa_get_kernel_dispatch_type): Likewise.
8675         * hsa-brig.c (hsa_cdtor_statements): Removed.
8676         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
8677         hsa_get_dtor_statements.
8678         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
8679         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
8681 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8683         * config/arm/arm-cores.def (cortex-r8): New.
8684         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
8685         * config/arm/arm-tune.md: Likewise.
8686         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
8688 2016-03-07  Martin Sebor  <msebor@redhat.com>
8690         PR rtl-optimization/19705
8691         * doc/invoke.texi (Options That Control Optimization): Clarify
8692         -fno-branch-count-reg.
8694 2016-02-26  Richard Biener  <rguenther@suse.de>
8695             Jeff Law  <law@redhat.com>
8697         PR tree-optimization/69740
8698         * cfghooks.c (remove_edge): Request loop fixups if we delete
8699         an edge that might turn an irreducible loop into a natural
8700         loop.
8701         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
8702         Move after definition of loops_state_clear.
8704 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
8706         PR rtl-optimization/69052
8707         * rtlanal.c (commutative_operand_precedence): Set higher precedence
8708         to CONST_WIDE_INT.
8710 2016-03-07  Tom de Vries  <tom@codesourcery.com>
8712         PR tree-optimization/70116
8713         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
8714         is_tm_ending stmts and ubsan/asan internal functions.
8715         (find_duplicate): Use it.  Don't test is_tm_ending here.
8717 2016-03-07  Richard Biener  <rguenther@suse.de>
8719         PR tree-optimization/70115
8720         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
8721         (propagate_constants_for_unrolling): Use replace_uses_by.
8723 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
8725         PR middle-end/69916
8726         * omp-low.c (struct oacc_loop): Add ifns.
8727         (new_oacc_loop_raw): Initialize it.
8728         (finish_oacc_loop): Clear mask & flags if no ifns.
8729         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
8730         (oacc_loop_xform_loop): Add ifns arg & adjust.
8731         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
8733 2016-03-07  Richard Henderson  <rth@redhat.com>
8735         PR rtl-opt/70061
8736         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
8737         (insert_value_copy_on_edge): Likewise.
8739 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8741         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
8743 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8745         PR target/62281
8746         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
8748 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8750         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
8752 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8754         Fix sseimul type attribute.
8755         * config/i386/znver1.md
8756         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
8757         znver1_sseimul_avx256_load) : Fix the type attribute.
8758         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
8759         pipe usage and latency.
8761 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
8763         PR c++/70084
8764         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
8765         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
8766         to the right type.
8768 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
8770         PR c/69973
8771         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
8773         PR rtl-optimization/69941
8774         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
8775         the reg share its mode.
8777 2016-03-04  Jeff Law  <law@redhat.com>
8779         PR tree-optimization/69196
8780         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8781         If the both SSA_NAMEs are anonymous, then consider them unassociated
8782         and include the PHI in the statement count.
8784 2016-03-05  Tom de Vries  <tom@codesourcery.com>
8786         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
8787         construct in oacc routine.  Check for oacc region in oacc routine.
8789 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
8791         PR target/70062
8792         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
8793         2016-02-22 changes, instead don't recurse if RECUR is already true.
8794         Don't change *dynamic_check if RECUR.  Adjust recursive caller
8795         to pass true to the new argument.
8796         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
8798         PR target/70059
8799         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8800         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
8801         fixes.
8802         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
8804 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
8806         PR rtl-optimization/57676
8807         * lra-assigns.c (lra_assign): Guard test for maximum iterations
8808         with flag_checking.
8810 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
8812         * tree-vect-patterns.c (search_type_for_mask): Handle
8813         comparison of booleans.
8815 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
8817         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
8818         Fix @xref usage.
8820         PR debug/69947
8821         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
8822         all other ops that have dw_val_class_die_ref operands,
8823         and DW_OP_GNU_entry_value.
8825 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8827         PR rtl-optimization/69904
8828         * config/arm/arm.c (arm_cannot_copy_insn_p):
8829         Return true for load-exclusive instructions.
8831 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
8833         PR target/70021
8834         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
8835         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
8836         the pattern no matter if it is used just by non-pattern, pattern
8837         or mix thereof.
8838         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
8839         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8840         oprnd1 def_stmt is in pattern, don't look through it.
8842 2016-03-03  Marek Polacek  <polacek@redhat.com>
8844         PR middle-end/70050
8845         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
8847 2016-03-03  Martin Liska  <mliska@suse.cz>
8849         PR tree-optimization/70043
8850         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
8851         previous statement if we see a debug statement.
8853 2016-03-03  Richard Biener  <rguenther@suse.de>
8855         PR tree-optimization/55936
8856         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
8857         parameter and guard unsafe equivalence use.
8858         (vrp_evaluate_conditional_warnv_with_ops): Always use
8859         safe equivalences but not via the quadratic compare_names
8860         helper.
8862 2016-03-03  Michael Collison  <michael.collison@linaro.org>
8864         PR target/70014
8865         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
8866         for operand 1 to s_register_operand. Change predicate for operand
8867         2 to arm_not_immediate_operand.
8869 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
8871         * doc/tm.texi: Regenerated.
8873 2016-03-02  Richard Henderson  <rth@redhat.com>
8875         PR rtl-opt/67145
8876         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
8877         simplification when all args are positive non-fixed registers.
8879 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8881         * target.def (lra_p): Specify that new ports should use LRA.
8883 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
8885         PR libgomp/69555
8886         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
8887         gimplify_type_sizes the type they refer to.
8888         (omp_notice_variable): Handle reference vars to VLAs.
8889         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
8890         reference to VLA decls in the second pass instead of first pass.
8892 2016-03-02  Tom de Vries  <tom@codesourcery.com>
8894         PR tree-optimization/68659
8895         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
8896         new_expr == NULL_TREE.
8897         (get_new_name): Handle ADDR_EXPR.
8899 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
8901         PR rtl-optimization/69052
8902         * loop-invariant.c (canonicalize_address): New function.
8903         (inv_can_prop_to_addr_use): Check validity of address expression
8904         which is canonicalized by above function.
8906 2016-03-02  Alan Modra  <amodra@gmail.com>
8908         PR ipa/69990
8909         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
8910         larger alignment.
8912 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
8914         PR target/70028
8915         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
8916         (*movhi_internal): Put mask moves from and to memory separately
8917         from moves from/to GPRs.
8919 2016-03-02  Richard Biener  <rguenther@suse.de>
8921         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
8922         GENERIC expressions in GIMPLE.
8924 2016-03-02  Richard Biener  <rguenther@suse.de>
8926         * config/i386/i386.c (type_natural_mode): Fix typo.
8928 2016-03-02  Nick Clifton  <nickc@redhat.com>
8930         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
8932 2016-03-02  Richard Biener  <rguenther@suse.de>
8933             Uros Bizjak  <ubizjak@gmail.com>
8935         PR target/67278
8936         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
8938 2016-03-02  Richard Biener  <rguenther@suse.de>
8940         PR middle-end/67278
8941         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
8943 2016-03-02  Marek Polacek  <polacek@redhat.com>
8945         PR c/67854
8946         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
8947         "is promoted to" warning.
8949 2016-03-01  DJ Delorie  <dj@redhat.com>
8951         * config.gcc: Deprecate mep-*.
8953 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
8955         PR middle-end/70025
8956         * lra-constraints.c (regno_val_use_in): New.
8957         (match_reload): Use it instead of regno_use_in.
8959 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
8961         PR rtl-optimization/70007
8962         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
8963         references present in REG_EQUAL notes attached to non-SET patterns.
8965 2016-03-01  Jeff Law  <law@redhat.com>
8967         PR tree-optimization/69196
8968         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8969         Appropriately clamp the number of statements to copy when the
8970         thread path does not traverse a loop backedge.
8972         PR tree-optimization/69196
8973         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8974         Do count some PHIs in the thread path against the insn count.  Decrease
8975         final statement count by one as the control statement in the last
8976         block will get removed.  Remove special cased code for handling PHIs
8977         in the last block.
8979 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
8981         PR target/70027
8982         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
8983         asm dialect alternatives to explicit GOTPCREL calls.
8985 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
8987         PR ada/70017
8988         * ira.c (do_reload): Issue warning for generic stack checking here...
8989         * reload1.c (reload): ...instead of here and streamline it.
8991 2016-03-01  Nick Clifton  <nickc@redhat.com>
8993         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
8995 2016-03-01  Richard Biener  <rguenther@suse.de>
8997         PR tree-optimization/69983
8998         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
8999         types and fall back to operand_equal_p.
9001 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9003         Revert
9004         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9006         * config/s390/constraints.md ("jm8"): New constraint.
9007         * config/s390/predicates.md ("const_int_8bitset_operand"): New
9008         predicate.
9009         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
9010         into ...
9011         ("*setmem_long<setmem_and>"): New pattern.
9012         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
9013         into ...
9014         ("*setmem_long_31z<setmem_and>"): New pattern.
9015         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
9016         New substitution rules with the required attributes.
9019 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9021         Revert
9022         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9024         * gensupport.c (process_substs_on_one_elem): Split loop to
9025         complete mark_operands_used_in_match_dup on all expressions in the
9026         vector first.
9027         (adjust_operands_numbers): Inline into process_substs_on_one_elem
9028         and remove function.
9030 2016-03-01  Richard Biener  <rguenther@suse.de>
9032         PR middle-end/70022
9033         * fold-const.c (fold_indirect_ref_1): Fix range checking for
9034         vector BIT_FIELD_REF extract.
9036 2016-03-01  Richard Biener  <rguenther@suse.de>
9038         PR tree-optimization/69994
9039         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
9041 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
9043         PR tree-optimization/69956
9044         * tree-vect-stmts.c (supportable_widening_operation): Support
9045         multi-step conversion of boolean vectors.
9046         (supportable_narrowing_operation): Likewise.
9048 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9050         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
9051         anymore.
9053 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9055         * config/s390/subst.md (DSI_VI): New mode iterator.
9056         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
9057         * config/s390/vector.md ("vec_set<mode>"): Move expander before
9058         the insn definition.
9059         ("*vec_set<mode>"): Change predicate and add alternative to
9060         support only either register or const_int operands as element
9061         selector.
9062         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
9063         operands.
9064         ("vec_extract<mode>"): New expander.
9065         ("*vec_extract<mode>"): New insn definition supporting reg and
9066         const_int element selectors.
9067         ("*vec_extract<mode>_plus"): New insn definition supporting
9068         reg+const_int element selectors.
9069         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
9070         following expander+insn definition.
9071         ("<vec_shifts_name><mode>3"): New expander.
9072         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
9074 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9076         * config/s390/s390.md ("*tabort_1"): Change predicate to
9077         nonmemory_operand.  Add a second alternative to cover
9078         register as well as const int operands.
9079         ("*tabort_1_plus"): New pattern definition.
9081 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9083         * config/s390/s390.md ("*ashrdi3_cc_31")
9084         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
9085         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
9086         Merge insn definitions into ...
9087         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9088         New pattern definition.
9089         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
9090         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
9091         ("*ashr<mode>3_and"): Merge insn definitions into ...
9092         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9093         New pattern definition.
9094         * config/s390/subst.md ("addr_style_op_cc_subst")
9095         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
9096         substitutions patterns plus attributes.
9097         Add ashiftrt to SUBST iterator.
9099 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9101         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
9102         op2 to nonmemory_operand.
9103         ("*<shift>di3_31", "*<shift>di3_31_and"):
9104         Merge into single pattern definition ...
9105         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
9106         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
9107         pattern definition ...
9108         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
9109         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
9110         iterator.
9112 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9114         * config/s390/predicates.md (const_int_6bitset_operand): New
9115         predicate.
9116         * config/s390/s390.md: Include subst.md.
9117         ("rotl<mode>3"): New expander.
9118         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
9119         ...
9120         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
9121         * config/s390/subst.md: New file.
9123 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9125         * config/s390/s390.md ("op_type", "atype", "length" attributes):
9126         Remove RRR type.  It doesn't really exist.
9127         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
9128         attributes.
9129         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
9130         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
9131         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
9132         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
9133         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
9134         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
9135         `enabled' attribute.
9137 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9139         * gensupport.c (process_substs_on_one_elem): Split loop to
9140         complete mark_operands_used_in_match_dup on all expressions in the
9141         vector first.
9142         (adjust_operands_numbers): Inline into process_substs_on_one_elem
9143         and remove function.
9145 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
9147         PR target/69706
9148         * config/sparc/sparc.c (NWORDS_UP): Rename to...
9149         (CEIL_NWORDS): ...this.  Use CEIL macro.
9150         (compute_fp_layout): Adjust to above renaming.
9151         (function_arg_union_value): Likewise.
9152         (sparc_arg_partial_bytes): Likewise.
9153         (sparc_function_arg_advance): Likewise.
9155 2016-02-29  Jeff Law  <law@redhat.com>
9157         PR tree-optimization/70005
9158         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
9159         where an object with a boolean range is compared against a value
9160         outside [0..1].
9162         PR tree-optimization/69999
9163         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
9164         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
9165         loop cleanups.
9167 2016-02-29  Richard Biener  <rguenther@suse.de>
9169         PR tree-optimization/69994
9170         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
9171         (get_unary_op): Look through nop conversions.
9172         (ops_equal_values_p): New function, look for equality diregarding
9173         nop conversions.
9174         (eliminate_plus_minus_pair): Use ops_equal_values_p
9175         (repropagate_negates): Do not use get_unary_op here.
9177 2016-02-29  Martin Liska  <mliska@suse.cz>
9179         * system.h: Poison ENABLE_CHECKING macro.
9181 2016-02-29  Martin Liska  <mliska@suse.cz>
9183         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
9184         is presented in dump flags.
9185         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9186         (hsa_regalloc): Likewise.
9188 2016-02-19  Richard Biener  <rguenther@suse.de>
9190         PR tree-optimization/69980
9191         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
9192         permutation of those we need to keep.
9194 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
9196         PR target/69706
9197         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
9198         (NWORDS_UP): ...this
9199         (init_cumulative_args): Minor tweaks.
9200         (sparc_promote_function_mode): Likewise.
9201         (scan_record_type): Delete.
9202         (traverse_record_type): New function template.
9203         (classify_data_t): New structure type.
9204         (classify_registers): New inline function.
9205         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
9206         exhausted.  Instantiate traverse_record_type on classify_registers and
9207         deal with the case of a structure passed in slot #15 with no FP field
9208         in the first word.
9209         (assign_data_t): New structure type.
9210         (compute_int_layout): New static function.
9211         (compute_fp_layout): Likewise.
9212         (count_registers): New inline function.
9213         (assign_int_registers): New static function.
9214         (assign_fp_registers): Likewise.
9215         (assign_registers): New inline function.
9216         (function_arg_record_value_1): Delete.
9217         (function_arg_record_value_2): Likewise.
9218         (function_arg_record_value_3): Likewise.
9219         (function_arg_record_value): Adjust to above changes.  Instantiate
9220         traverse_record_type on count_registers to first count the number of
9221         registers to be used and then on assign_registers to assign them.
9222         (function_arg_union_value): Adjust to above renaming.
9223         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
9224         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
9225         case of a structure passed in slot #15
9226         (sparc_function_arg_advance): Likewise.
9227         (function_arg_padding): Minor tweak.
9229 2016-02-29  Richard Biener  <rguenther@suse.de>
9231         PR tree-optimization/69720
9232         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
9233         the adjustment_def path for possibly vectorized defs.
9234         (vect_create_epilog_for_reduction): Handle vectorized initial
9235         defs properly.
9237 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
9239         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
9241 2016-02-27  Jeff Law  <law@redhat.com>
9243         Revert
9244         2016-02-26  Richard Biener  <rguenther@suse.de>
9245                     Jeff Law  <law@redhat.com>
9247         PR tree-optimization/69740
9248         * cfghooks.c (remove_edge): Request loop fixups if we delete
9249         an edge that might turn an irreducible loop into a natural
9250         loop.
9252 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
9254         PR rtl-optimization/69896
9255         * tree-vect-generic.c (get_compute_type): Avoid single element
9256         vector types.
9258 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
9260         Rename the AArch64 tuning option and related functions to enable the
9261         Newton series for the reciprocal square root to reflect its
9262         approximative characteristic.
9264         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
9265         function to "aarch64_emit_approx_rsqrt".
9266         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
9267         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
9268         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
9269         (xgene1_tunings): Likewise.
9270         (use_rsqrt_p): Likewise.
9271         (aarch64_emit_swrsqrt): Use new function name.
9272         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
9273         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
9274         text explaining this option.
9275         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
9277 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
9279         PR target/69969
9280         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9281         complain about -mallow-movmisalign without -mvsx if
9282         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
9284 2016-02-26  Joel Sherrill  <joel@rtems.org>
9286         * config.gcc: Add x86_64-*-rtems*.
9287         * config/i386/rtems-64.h: New file.
9289 2016-02-26  Joel Sherrill  <joel@rtems.org>
9291         * config.gcc: Add aarch64-*-rtems*.
9292         * config/aarch64/rtems.h: New file.
9294 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
9296         PR target/69946
9297         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
9298         shift amount using %h.  Add comment.
9300 2016-02-26  Richard Biener  <rguenther@suse.de>
9301             Jeff Law  <law@redhat.com>
9303         PR tree-optimization/69740
9304         * cfghooks.c (remove_edge): Request loop fixups if we delete
9305         an edge that might turn an irreducible loop into a natural
9306         loop.
9308 2016-02-26  Martin Jambor  <mjambor@suse.cz>
9310         PR middle-end/69920
9311         * tree-sra.c (sra_modify_assign): Do not remove loads of
9312         uninitialized aggregates to SSA_NAMEs.
9314 2016-02-26  Richard Henderson  <rth@redhat.com>
9316         PR target/69709
9317         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
9318         pseudo in case the target rtx matches the source of the left
9319         shift.
9321 2016-02-26  Martin Jambor  <mjambor@suse.cz>
9323         PR hsa/69568
9324         * hsa.h (hsa_type_packed_p): Declare.
9325         * hsa.c (hsa_type_packed_p): New function.
9326         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
9327         loads.
9328         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
9329         * hsa-brig.c (emit_basic_insn): Likewise.
9331 2016-02-26  Martin Jambor  <mjambor@suse.cz>
9333         pr hsa/69674
9334         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
9335         pointers.
9336         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
9338 2016-02-26  Martin Jambor  <mjambor@suse.cz>
9340         * hsa.h (is_a_helper): New overload for hsa_op_immed for
9341         hsa_op_with_type operands.
9342         (hsa_unsigned_type_for_type): Declare.
9343         * hsa.c (hsa_unsigned_type_for_type): New function.
9344         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
9345         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
9346         the finalizer.  Do not emit extra move.
9348 2016-02-26  Martin Jambor  <mjambor@suse.cz>
9350         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
9351         atomic operations in private segment.
9353 2016-02-26  Martin Jambor  <mjambor@suse.cz>
9355         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
9356         statements to wi->info.  Also disallow omp simd constructs.
9357         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
9358         for not gridifying.  Dump special string for omp_for.
9360 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9362         PR target/69245
9363         * config/aarch64/aarch64.c (aarch64_set_current_function):
9364         Save/restore target globals when switching to
9365         target_option_default_node.
9367 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9369         PR target/69613
9370         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
9371         Return 0 if !SHIFT_COUNT_TRUNCATED.
9373 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
9374             Eric Botcazou  <ebotcazou@adacore.com>
9376         PR rtl-optimization/69891
9377         * dse.c (scan_insn): If we can't figure out memset arguments
9378         or they are non-constant, call clear_rhs_from_active_local_stores.
9380 2016-02-26  Martin Liska  <mliska@suse.cz>
9382         * doc/extend.texi: Mention clog10, clog10f an clog10l
9383         in Builtins section.
9385 2016-02-26  Martin Liska  <mliska@suse.cz>
9387         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
9388         CHECKING_P.
9389         (resolve_args_picking_1): Likewise.
9390         * dwarf2out.h (struct GTY): Likewise.
9392 2016-02-26  Martin Liska  <mliska@suse.cz>
9394         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
9395         with flag_checking.
9396         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9398 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9399             Martin Liska  <mliska@suse.cz>
9401         * doc/install.texi: Mention --enable-valgrind-annotations.
9403 2016-02-26  Richard Biener  <rguenther@suse.de>
9405         PR tree-optimization/69551
9406         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
9407         looking through aliases adjust DECL_PT_UID to refer to the
9408         ultimate alias target.
9410 2016-02-25  Martin Liska  <mliska@suse.cz>
9412         PR middle-end/69919
9413         * alloc-pool.c (after_memory_report): New variable.
9414         * alloc-pool.h (base_pool_allocator ::release): Do not use
9415         the infrastructure if after_memory_report.
9416         * toplev.c (toplev::main): Mark after memory report.
9418 2016-02-25  Richard Biener  <rguenther@suse.de>
9420         PR tree-optimization/48795
9421         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
9423 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
9425         PR driver/68463
9426         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
9427         offloading is enabled and -fopenacc or -fopenmp is specified.
9428         (CRTOFFLOADEND): Likewise.
9429         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
9430         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
9431         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
9432         (offload_objects_file_name): New static var.
9433         (tool_cleanup): Remove offload_objects_file_name file.
9434         (find_offloadbeginend): Replace with ...
9435         (find_crtoffloadtable): ... this.
9436         (run_gcc): Remove offload_argc and offload_argv.
9437         Get offload_objects_file_name from -foffload-objects=... option.
9438         Read names of object files with offload from this file, pass them to
9439         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
9440         don't pass offloadbegin and offloadend to the linker.  Don't pass
9441         offload non-LTO files to the linker, because now they're not claimed.
9443 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
9445         PR ipa/69630
9446         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
9447         on builtin_unreachable.
9449 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
9451         PR rtl-optimization/69896
9452         * regcprop.c: Include cfgrtl.h.
9453         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
9454         than remembered mode, either delete it (if noop_move_p), or
9455         treat like copy_p but not noop_p instruction.
9457 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
9459         PR debug/69705
9460         * dwarf2out.c (gen_variable_die): Work around buggy LTO
9461         - allow NULL decl for Fortran DW_TAG_common_block variables.
9463 2016-02-24  Jason Merrill  <jason@redhat.com>
9465         * common.opt (flifetime-dse): Add -flifetime-dse=1.
9467 2016-02-24  Richard Biener  <rguenther@suse.de>
9468             Jakub Jelinek  <jakub@redhat.com>
9470         PR middle-end/69760
9471         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
9472         conditionally executed ops to well-defined overflow behavior.
9474 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
9476         PR middle-end/69915
9477         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
9478         elements.
9480 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9482         PR rtl-optimization/69886
9483         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
9484         argument.  Use it when checking validity of set instructions.
9485         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
9486         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
9487         callsite.
9488         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
9489         * store-motion.c (find_moveable_store): Update
9490         can_assign_to_reg_without_clobbers_p callsite.
9492 2016-02-24  Richard Biener  <rguenther@suse.de>
9494         PR middle-end/68963
9495         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
9496         bogus check.
9497         (record_nonwrapping_iv): Do not fall back to the low/high bound
9498         for non-constant IV bases if the stmt is not always executed.
9500 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9502         * config/arm/arm-cores.def (cortex-a32): New entry.
9503         * config/arm/arm-tables.opt: Regenerate.
9504         * config/arm/arm-tune.md: Regenerate.
9505         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
9506         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
9507         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
9508         for -mcpu and -mtune.
9510 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9512         PR target/69875
9513         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
9514         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
9515         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
9516         (atomic_loaddi_1): Delete.
9517         (atomic_loaddi): Rewrite expander using the above changes.
9519 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
9521         PR c/69918
9522         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
9523         2 to 3.
9525 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
9526             Richard Biener  <rguenth@suse.de>
9528         PR middle-end/69909
9529         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
9530         set_mem_attributes if tem is SSA_NAME which got expanded
9531         as a MEM.
9533 2016-02-24  Richard Biener  <rguenther@suse.de>
9535         PR tree-optimization/69907
9536         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
9537         end of permutations for BB vectorization.
9539 2016-02-24  Christian Bruel  <christian.bruel@st.com>
9541         * config/arm/arm-c.c (arm_option_override): Initialize
9542         target_option_current_node.
9543         * config/arm/arm.c (arm_pragma_target_parse): Replace
9544         build_target_option_node call by target_option_current_node.
9545         Set target_option_current_node.
9546         Fix comments.
9548 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
9550         PR target/69810
9551         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
9552         define_insn_and_split to define_insn.
9553         (zero_extendqi<mode>2_dot2): Same.
9554         (extendqi<mode>2_dot): Same.
9555         (extendqi<mode>2_dot2): Same.
9557 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
9559         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
9560         and add bypass for AES{D,E} and AESMC pairs.
9561         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
9562         and AESMC pairs.
9564 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
9566         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
9567         series for reciprocal square root in Exynos M1.
9569 2016-02-23  Martin Sebor  <msebor@redhat.com>
9571         PR c/69759
9572         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
9573         __builtin_alloca_with_align.
9575 2016-02-23  Richard Henderson  <rth@redhat.com>
9577         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
9578         (ix86_register_pragmas): Remove __seg_tls.
9579         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
9580         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
9581         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
9582         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
9583         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
9584         * doc/extend.texi (__seg_tls): Remove item.
9586 2016-02-23  Richard Biener  <rguenther@suse.de>
9588         * alloc-pool.h (struct allocation_object): Make id member
9589         conditional on CHECKING_P again.
9590         (get_instance): Adjust.
9591         (base_pool_allocator): Likewise.
9593 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
9595         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
9596         (parallelize_loops): In OpenACC kernels mode, set n_threads to
9597         zero.
9598         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
9599         flag_openacc.
9600         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9602 2016-02-23  Richard Biener  <rguenther@suse.de>
9604         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
9605         * bitmap.h (struct bitmap_usage): Likewise.
9606         (bitmap_move): Declare.
9607         * bitmap.c (register_overhead): Take size_t argument.
9608         (bitmap_move): New function.
9609         * df-problems.c (df_rd_transfer_function): Use bitmap_move
9610         to properly account overhead.
9611         * tree.c (free_node): Use tree_size.
9613 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
9615         PR c++/69902
9616         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
9617         when inverting comparison.
9619         PR c/69900
9620         * common.opt (Wunreachable-code): Add Warning flag.
9622 2016-02-23  Mark Wielaard  <mjw@redhat.com>
9623             Jakub Jelinek  <jakub@redhat.com>
9625         PR c/69911
9626         * cgraphunit.c (check_global_declaration): Check main_input_filename
9627         and DECL_SOURCE_FILE are not NULL.
9629 2016-02-23  Martin Jambor  <mjambor@suse.cz>
9631         PR tree-optimization/69666
9632         * tree-sra.c (sra_modify_assign): Do not attempt to create
9633         default_def replacements for unscalarizable regions.
9635 2016-02-20  Mark Wielaard  <mjw@redhat.com>
9637         PR c/28901
9638         * cgraphunit.c (check_global_declaration): Check level of
9639         warn_unused_const_variable and main_input_filename.
9640         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
9641         (-Wunused-variable): For C implies -Wunused-const-variable=1.
9642         (-Wunused-const-variable): Explain levels 1 and 2.
9644 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
9646         PR target/69888
9647         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
9648         identical arguments.  Formatting and spelling fixes.
9650         PR target/69885
9651         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
9652         be specified.
9654         PR target/69894
9655         PR target/69895
9656         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
9657         and m68k-devices.def.
9658         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
9659         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
9661 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
9663         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
9664         and HImode registers.
9666 2016-02-22  Richard Biener  <rguenther@suse.de>
9668         PR tree-optimization/69882
9669         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
9670         preserve permutations present because of gaps.
9671         (vect_supported_load_permutation_p): Always continue checking
9672         permutations after vect_attempt_slp_rearrange_stmts.
9674 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
9676         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
9677         min_profitable_estimate, rather than min_profitable_iters.
9679 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
9681         PR target/69885
9682         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
9683         SImode for last match_operand.
9685 2016-02-22  Martin Liska  <mliska@suse.cz>
9687         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
9688         return bitsize - 1 as the return value.
9690 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
9692         PR target/69806
9693         PR target/54089
9694         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
9695         Handle negative shift counts.
9696         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
9697         force_reg on the shift constant.
9698         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
9699         (lshrsi3_d): Handle negative shift counts.
9701 2016-02-22  Richard Biener  <rguenther@suse.de>
9702             Tom de Vries  <tom@codesourcery.com>
9704         * graph.c: Include dumpfile.h.
9705         (print_graph_cfg): Split into three overloads.
9706         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
9708 2016-02-22  Tom de Vries  <tom@codesourcery.com>
9710         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
9711         dump-fn.
9713 2016-02-22  Richard Biener  <rguenther@suse.de>
9715         PR ipa/37448
9716         * ipa-inline-transform.c (inline_call): When not updating
9717         overall summaries adjust self size by the growth estimate.
9718         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
9719         hash-set, do not update overall summaries here.  Renamed from ...
9720         (inline_to_all_callers): ... this which is now wrapping the
9721         above and performing delayed overall summary update.
9722         (early_inline_small_functions): Delay updating of the overall
9723         summary.
9725 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9727         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
9728         variable.
9730 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
9732         PR driver/69805
9733         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
9734         :%* in %:gt() argument.
9735         (greater_than_spec_func): Adjust for expecting only numbers,
9736         if there are more than two numbers, compare the last two.
9738 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
9740         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
9741         -Wnarrowing with -std.
9743 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
9745         PR c++/69851
9746         * expr.c (store_field): Don't use bit-field path if exp is
9747         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
9748         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
9749         and the assignment can be performed by bitwise copy.  Formatting
9750         fix.
9752         PR middle-end/69838
9753         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
9754         call copy_reg_eh_region_note_forward on before and/or after sequences
9755         and remove note from insn if it no longer can throw.
9757         PR target/69820
9758         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
9759         if TARGET_AVX512BW.
9761 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9763         * config/s390/vector.md: Add missing commutative operand markers
9764         to the patterns which qualify for one.
9765         * config/s390/vx-builtins.md: Likewise.
9767 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9769         * config/s390/vector.md (VI, VI_QHS): Add single element vector
9770         types to mode iterators.
9771         (vec_double): ... and mode attribute.
9772         * config/s390/vx-builtins.md (non_vec_int): Likewise.
9774 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9776         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
9777         Change the predicate of op2 from nonimmediate to general and let
9778         reload fix it if necessary.
9780 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9782         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
9784 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9786         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
9787         mode.
9789 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9791         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
9792         * config/s390/s390.c (s390_expand_vec_movstr): New function.
9793         * config/s390/s390.md ("movstr<P:mode>"): Call
9794         s390_expand_vec_movstr.
9796 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9798         * config/s390/s390.md: Add missing output modifier for operand 1
9799         to print it as address properly.
9801 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9803         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
9804         * config/s390/2964.md: New file.
9805         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
9806         of insn grouping attributes depending on the CPU level.
9807         (s390_get_unit_mask): New function.
9808         (s390_sched_score): Remove the OOO from the scheduling macros.
9809         Add loop to calculate a score for the instruction mix.
9810         (s390_sched_reorder): Likewise plus improve debug output.
9811         (s390_sched_variable_issue): Rename macros as above.  Calculate
9812         the unit distances after actually scheduling an insn.  Improve
9813         debug output.
9814         (s390_sched_init): Clear last_scheduled_unit_distance array.
9815         * config/s390/s390.md: Include 2964.md.
9817 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
9819         PR target/69671
9820         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
9821         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
9822         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
9823         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
9824         *avx512f_<code>v8div16qi2_mask_1): New insns.
9826 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9828         PR target/68404
9829         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
9830         2016-02-09 change.
9832         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
9833         earlyclobber from target.  Use wF constraint for fused memory
9834         address.
9835         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
9837 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
9838             Martin Liska  <mliska@suse.cz>
9840         PR sanitizer/69863
9841         * cfgexpand.c (asan_sanitize_stack_p): New function.
9842         (partition_stack_vars): Use the function.
9843         (expand_stack_vars): Likewise.
9844         (defer_stack_allocation): Likewise.
9845         (expand_used_vars): Likewise.
9847 2016-02-18  Richard Biener  <rguenther@suse.de>
9849         PR middle-end/69553
9850         * fold-const.c (operand_equal_p): Properly compare offsets for
9851         IMAGPART_EXPR and ARRAY_REF.
9853 2016-02-18  Nick Clifton  <nickc@redhat.com>
9855         PR target/62254
9856         PR target/69610
9857         * config/arm/arm.c (arm_option_override_internal): Disable
9858         interworking if the target does not support thumb instructions.
9859         (arm_reload_in_hi): Handle the case where a register to register
9860         move needs reloading because there is no simple pattern to handle
9861         it.
9862         (arm_reload_out_hi): Likewise.
9864 2016-02-18  Richard Biener  <rguenther@suse.de>
9866         PR middle-end/69854
9867         * match.pd: Don't use fold_binary or fold_unary for folding
9868         constants.
9870 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
9872         PR c++/69850
9873         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
9874         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
9875         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
9876         warn on gimple_no_warning_p statements.
9878 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
9880         * doc/extend.texi (C++ Attributes): Correct description of
9881         warn_unused type attribute.
9883 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9885         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
9886         correct instruction.
9888 2016-02-17  Richard Biener  <rguenther@suse.de>
9890         PR rtl-optimization/69609
9891         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
9892         (find_traces_1_round): When ending a trace update cached priority
9893         of successors.
9894         (bb_to_key): Use cached priority when available.
9895         (copy_bb): Initialize cached priority.
9896         (reorder_basic_blocks_software_trace_cache): Likewise.
9898 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9900         PR target/69161
9901         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
9902         New predicate.
9903         (aarch64_comparison_operator): Break overly long line into two.
9904         (aarch64_comparison_operation): Likewise.
9905         * config/aarch64/aarch64.md (cstorecc4): Use
9906         aarch64_comparison_operator_mode instead of
9907         aarch64_comparison_operator.
9908         (cstore<mode>4): Likewise.
9909         (aarch64_cstore<mode>): Likewise.
9910         (*cstoresi_insn_uxtw): Likewise.
9911         (cstore<mode>_neg): Likewise.
9912         (*cstoresi_neg_uxtw): Likewise.
9914 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9916         PR target/69161
9917         * config/arm/predicates.md (arm_comparison_operator_mode):
9918         New predicate.
9919         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
9920         instead of arm_comparison_operator.
9921         (*mov_negscc): Likewise.
9922         (*mov_notscc): Likewise.
9923         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
9924         (*thumb2_mov_negscc): Likewise.
9925         (*thumb2_mov_negscc_strict_it): Likewise.
9926         (*thumb2_mov_notscc): Likewise.
9927         (*thumb2_mov_notscc_strict_it): Likewise.
9929 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
9931         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
9932         Add missing return.
9934 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
9936         * config/visium/visium.c (machine_libfunc_index): New enum.
9937         (machine_libfuncs): New structure.
9938         (visium_libfuncs): New static variable.
9939         (TARGET_INIT_LIBFUNCS): Define to...
9940         (visium_init_libfuncs): ...this.  New function.
9941         (expand_block_move_4): Use the appropriate libfunc.
9942         (expand_block_move_2): Likewise.
9943         (expand_block_move_1): Likewise.
9944         (expand_block_set_4): Likewise.
9945         (expand_block_set_2): Likewise.
9946         (expand_block_set_1): Likewise.
9947         (visium_trampoline_init): Likewise.
9949 2016-02-17  Nick Clifton  <nickc@redhat.com>
9951         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
9952         TI's devices.csv file as of March 2016.
9954 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9956         PR Target/48344
9957         * opts-global.c (handle_common_deferred_options): Introduce and
9958         initialize two global variables to remember command-line options
9959         specifying a stack-limiting register.
9960         * opts.h: Add extern declarations of the two new global variables.
9961         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
9962         variable based on the values of the two new global variables.
9964 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
9966         PR c/69835
9967         * common.opt (Wnonnull-compare): New warning.
9968         * doc/invoke.texi (-Wnonnull): Remove text about comparison
9969         of arguments against NULL.
9970         (-Wnonnull-compare): Document.
9971         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
9972         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
9973         * passes.def (pass_warn_nonnull_compare): Add.
9974         * gimple-ssa-nonnull-compare.c: New file.
9976 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
9978         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
9979         AARCH64_EXTRA_TUNE_RECIP_SQRT.
9981 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
9983         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
9984         reciprocal sqrt for -mlow-precision-recip-sqrt.
9986 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
9987             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9989         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
9990         always use lane loads to construct non-constant vectors.
9992 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
9994         * config/aarch64/aarch64.md
9995         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
9996         constraints for operand 3.
9997         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
9999 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10000             Richard Biener  <rguenther@suse.de>
10002         PR tree-optimization/69820
10003         * tree-vect-patterns.c (type_conversion_p): Return false if
10004         *orig_type is unsigned single precision or boolean.
10005         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
10006         Formatting fix.
10008 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10010         PR rtl-optimization/69764
10011         PR rtl-optimization/69771
10012         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
10013         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
10015 2016-02-16  Richard Biener  <rguenther@suse.de>
10017         PR tree-optimization/69776
10018         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
10019         sets from caller.
10020         (indirect_refs_may_alias_p): Likewise.
10021         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
10022         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
10023         according to tbaa_p.
10024         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
10025         (optimize_stmt): For redundant store discovery do not allow tbaa.
10027 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
10029         PR tree-optimization/69714
10030         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
10031         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
10033 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
10035         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
10036         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
10037         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
10038         * config/arc/arc.c (arc_init): Check FPU options.
10039         (get_arc_condition_code): Handle new CC_FPU* modes.
10040         (arc_select_cc_mode): Likewise.
10041         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
10042         register pair only. Allow access for ARCv2 accumulator.
10043         (gen_compare_reg): Whenever we have FPU support use FPU compare
10044         instructions.
10045         (arc_reorg): Don't generate brcc insns when FPU compare
10046         instructions are involved.
10047         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
10048         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
10049         floating point emulation.
10050         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
10051         (REVERSE_CONDITION): Add new CC_FPU* modes.
10052         (TARGET_FP_SP_BASE): Define.
10053         (TARGET_FP_DP_BASE): Likewise.
10054         (TARGET_FP_SP_FUSED): Likewise.
10055         (TARGET_FP_DP_FUSED): Likewise.
10056         (TARGET_FP_SP_CONV): Likewise.
10057         (TARGET_FP_DP_CONV): Likewise.
10058         (TARGET_FP_SP_SQRT): Likewise.
10059         (TARGET_FP_DP_SQRT): Likewise.
10060         (TARGET_FP_DP_AX): Likewise.
10061         * config/arc/arc.md (ARCV2_ACC): New constant.
10062         (type): New fpu type attribute.
10063         (SDF): Conditional iterator.
10064         (cstore<mode>, cbranch<mode>): Change expand condition.
10065         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
10066         handles FPU/FPX cases as well.
10067         * config/arc/arc.opt (mfpu): New option.
10068         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
10069         Renamed.
10070         (adddf3, muldf3, subdf3): Removed.
10071         * config/arc/predicates.md (proper_comparison_operator): Recognize
10072         CC_FPU* modes.
10073         * config/arc/fpu.md: New file.
10074         * doc/invoke.texi (ARC Options): Document mfpu option.
10076 2016-02-16  Richard Biener  <rguenther@suse.de>
10078         PR rtl-optimization/69291
10079         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
10080         noce_operand_ok check.
10082 2016-02-16  Tom de Vries  <tom@codesourcery.com>
10084         PR lto/67709
10085         * omp-low.c (simd_clone_create): Remove call to
10086         symtab->call_cgraph_insertion_hooks.
10088 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10090         PR tree-optimization/69802
10091         * tree-ssa-reassoc.c (update_range_test): If op is
10092         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
10093         op == 1 test of precision 1 integral op, otherwise handle
10094         that case as op itself.  Fix up formatting.
10095         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
10096         up formatting.
10098 2016-02-16  Richard Biener  <rguenther@suse.de>
10100         PR tree-optimization/69586
10101         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
10102         types for conversion sources.
10104 2016-02-16  Richard Biener  <rguenther@suse.de>
10106         PR middle-end/69801
10107         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
10108         mask OEP_ADDRESS_OF.
10110 2016-02-16  Alan Modra  <amodra@gmail.com>
10112         PR target/68973
10113         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
10114         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
10115         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
10116         (p8_mtvsrwz): New.
10117         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
10118         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
10119         (p8_fmrgow_<mode>): Likewise.
10120         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
10121         changes.
10122         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
10123         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
10124         to use movdi_internal64.  Remove op0_di.
10125         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
10127 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
10129         Add support for the FCCMP insn types
10131         * config/aarch64/aarch64.md (fccmp): Change insn type.
10132         (fccmpe): Likewise.
10133         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
10134         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
10135         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
10136         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
10137         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
10138         * config/arm/types.md (fccmps): Add new insn type.
10139         (fccmpd): Likewise.
10141 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10143         * alias.c (get_alias_set): Fix a typo in comment.
10145 2016-02-15  Richard Biener  <rguenther@suse.de>
10147         PR tree-optimization/69595
10148         * match.pd: Complete range test simplification to true.
10150 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
10152         PR rtl-optimization/69648
10153         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
10154         pic_offset_table_rtx.
10156         PR rtl-optimization/69752
10157         * ira.c (update_equiv_regs): When looking for more than a single SET,
10158         also take other side effects into account.
10160 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
10162         * config/s390/s390.c (s390_function_profiler): Add a new sequence
10163         for z900+ CPUs in 31-bit mode.
10165 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
10167         * common/config/s390/s390-common.c (s390_supports_split_stack):
10168         New function.
10169         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
10170         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
10171         * config/s390/s390.c (struct machine_function): New field
10172         split_stack_varargs_pointer.
10173         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
10174         in s390_emit_prologue.
10175         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
10176         vararg pointer.
10177         (morestack_ref): New global.
10178         (SPLIT_STACK_AVAILABLE): New macro.
10179         (s390_expand_split_stack_prologue): New function.
10180         (s390_live_on_entry): New function.
10181         (s390_va_start): Use split-stack vararg pointer if appropriate.
10182         (s390_asm_file_end): Emit the split-stack note sections.
10183         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
10184         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
10185         (UNSPECV_SPLIT_STACK_CALL): New unspec.
10186         (UNSPECV_SPLIT_STACK_DATA): New unspec.
10187         (split_stack_prologue): New expand.
10188         (split_stack_space_check): New expand.
10189         (split_stack_data): New insn.
10190         (split_stack_call): New expand.
10191         (split_stack_call_*): New insn.
10192         (split_stack_cond_call): New expand.
10193         (split_stack_cond_call_*): New insn.
10195 2016-02-15  Richard Biener  <rguenther@suse.de>
10197         PR tree-optimization/69783
10198         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10199         Add trivially correct cases.
10201 2016-02-15  Tom de Vries  <tom@codesourcery.com>
10203         PR lto/69655
10204         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
10205         do_force_output.
10206         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
10208 2016-02-15  Richard Biener  <rguenther@suse.de>
10210         PR tree-optimization/69776
10211         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10212         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
10213         indicate whether we can use TBAA to disambiguate against stores.
10214         Use alias-set zero if not.
10215         (visit_reference_op_store): Do not use TBAA when looking up
10216         redundant stores.
10217         * tree-ssa-pre.c (compute_avail): Use TBAA here.
10218         (eliminate_dom_walker::before_dom_children): But not when looking
10219         up redundant stores.
10221 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
10223         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
10225 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10227         *  config/i386/znver1.md
10228         (znver1_pop, znver1_pop_mem,
10229         znver1_load_imov_double_store,
10230         znver1_load_imov_direct_store,
10231         znver1_load_imov_direct_load,
10232         znver1_load_imov_double_load): Add new.
10233         (znver1_insn, znver1_insn_load): Add icmov type.
10234         (znver1_sseavx_fma,
10235         znver1_sseavx_fma_load,
10236         znver1_avx256_fma,
10237         znver1_avx256_fma_load): Fix pipe usage.
10239 2016-02-14  Alan Modra  <amodra@gmail.com>
10241         PR target/68973
10242         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
10243         with an invalid hard reg, reload just the reg not the entire
10244         pre/post-inc/dec address expression.
10246 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
10248         PR target/67260
10249         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
10250         fixed R1_REG scratch reg.
10251         (sibcall_value_pcrel_fdpic): Likewise.
10253 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
10255         PR target/67636
10256         PR target/64345
10257         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
10259 2016-02-12  Walter Lee  <walt@tilera.com>
10261         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
10262         * config/tilegx/t-tilegx: Likewise.
10264 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
10266         PR other/69554
10267         * diagnostic-show-locus.c (struct line_span): New struct.
10268         (layout::get_first_line): Delete.
10269         (layout::get_last_line): Delete.
10270         (layout::get_num_line_spans): New member function.
10271         (layout::get_line_span): Likewise.
10272         (layout::print_heading_for_line_span_index_p): Likewise.
10273         (layout::get_expanded_location): Likewise.
10274         (layout::calculate_line_spans): Likewise.
10275         (layout::m_first_line): Delete.
10276         (layout::m_last_line): Delete.
10277         (layout::m_line_spans): New field.
10278         (layout::layout): Update comment.  Replace m_first_line and
10279         m_last_line with m_line_spans, replacing their initialization
10280         with a call to calculate_line_spans.
10281         (diagnostic_show_locus): When printing source lines and
10282         annotations, rather than looping over a single span
10283         of lines, instead loop over each line_span within
10284         the layout, with an inner loop over the lines within them.
10285         Call the context's start_span callback when changing line spans.
10286         * diagnostic.c (diagnostic_initialize): Initialize start_span.
10287         (diagnostic_build_prefix): Break out the building of the location
10288         part of the string into...
10289         (diagnostic_get_location_text): ...this new function, rewriting
10290         it from nested ternary expressions to a sequence of "if"
10291         statements.
10292         (default_diagnostic_start_span_fn): New function.
10293         * diagnostic.h (diagnostic_start_span_fn): New typedef.
10294         (diagnostic_context::start_span): New field.
10295         (default_diagnostic_start_span_fn): New prototype.
10297 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
10299         PR driver/69779
10300         * gcc.c (driver::finalize): Fix cleanup of "specs".
10302 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
10304         PR driver/69265
10305         PR driver/69453
10306         * gcc.c (driver::driver): Initialize m_option_suggestions.
10307         (driver::~driver): Clean up m_option_suggestions.
10308         (suggest_option): Convert to...
10309         (driver::suggest_option): ...this, and split out into
10310         driver::build_option_suggestions and find_closest_string.
10311         (driver::build_option_suggestions): New function, from
10312         first half of suggest_option.  Special-case
10313         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
10314         the sanitizer_opts array.  For options of enum types, add the
10315         various enum values to the candidate strings.
10316         (driver::handle_unrecognized_options): Remove "const".
10317         * gcc.h (driver::handle_unrecognized_options): Likewise.
10318         (driver::build_option_suggestions): New decl.
10319         (driver::suggest_option): New decl.
10320         (driver::m_option_suggestions): New field.
10321         * opts-common.c (add_misspelling_candidates): New function.
10322         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
10323         and make non-static.
10324         * opts.h (sanitizer_opts): New array decl.
10325         (add_misspelling_candidates): New function decl.
10326         * spellcheck.c (find_closest_string): New function.
10327         * spellcheck.h (find_closest_string): New function decl.
10329 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
10331         PR rtl-optimization/69764
10332         PR rtl-optimization/69771
10333         * optabs.c (expand_binop_directly): For shift_optab_p, force
10334         convert_modes with VOIDmode if xop1 has VOIDmode.
10336 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
10338         PR target/69729
10339         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
10340         to correctly determine instrumentation thunks.
10342 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
10344         PR ipa/69241
10345         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
10346         type by reference, force lhs on the call.
10348         PR ipa/68672
10349         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
10350         Compute retval and retbnd early in all cases if split_part_return_p
10351         and return_bb is not EXIT.  Remove all clobber stmts and reset
10352         all debug stmts that refer to SSA_NAMEs defined in split part,
10353         except if it is retval, in that case replace the old retval with the
10354         lhs of the call to the split part.
10356 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10358         revert:
10359         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10361         PR middle-end/66726
10362         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
10363         whose result is used in PHI.
10364         (maybe_optimize_range_tests): Likewise.
10365         (final_range_test_p): Likweise.
10367 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10369         PR middle-end/66726
10370         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
10371         whose result is used in PHI.
10372         (maybe_optimize_range_tests): Likewise.
10373         (final_range_test_p): Likweise.
10375 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
10377         * cgraph.c: Spelling fixes - behaviour -> behavior and
10378         neighbour -> neighbor.
10379         * target.def: Likewise.
10380         * sel-sched.c: Likewise.
10381         * config/mips/mips.c: Likewise.
10382         * config/arc/arc.md: Likewise.
10383         * config/arm/cortex-a57.md: Likewise.
10384         * config/arm/arm.c: Likewise.
10385         * config/arm/neon.md: Likewise.
10386         * config/arm/arm-c.c: Likewise.
10387         * config/vms/vms-c.c: Likewise.
10388         * config/s390/s390.c: Likewise.
10389         * config/i386/znver1.md: Likewise.
10390         * config/i386/i386.c: Likewise.
10391         * config/ia64/hpux-unix2003.h: Likewise.
10392         * config/msp430/msp430.md: Likewise.
10393         * config/rx/rx.c: Likewise.
10394         * config/rx/rx.md: Likewise.
10395         * config/aarch64/aarch64-simd.md: Likewise.
10396         * config/aarch64/aarch64.c: Likewise.
10397         * config/nvptx/nvptx.c: Likewise.
10398         * config/bfin/bfin.c: Likewise.
10399         * config/cris/cris.opt: Likewise.
10400         * config/rs6000/rs6000.c: Likewise.
10401         * target.h: Likewise.
10402         * spellcheck.c: Likewise.
10403         * ira-build.c: Likewise.
10404         * tree-inline.c: Likewise.
10405         * builtins.c: Likewise.
10406         * lra-constraints.c: Likewise.
10407         * explow.c: Likewise.
10408         * hwint.h: Likewise.
10409         * targhooks.c: Likewise.
10410         * tree-vect-data-refs.c: Likewise.
10411         * expr.c: Likewise.
10412         * doc/tm.texi: Likewise.
10413         * doc/extend.texi: Likewise.
10414         * doc/install.texi: Likewise.
10415         * doc/md.texi: Likewise.
10416         * tree-ssa-tail-merge.c: Likewise.
10417         * sched-int.h: Likewise.
10418         * match.pd: Likewise.
10419         * sched-ebb.c: Likewise.
10420         * target.def (omit_struct_return_reg): Likewise.
10421         * gimple-ssa-isolate-paths.c: Likewise.
10422         (find_implicit_erroneous_behaviour): Renamed to...
10423         (find_implicit_erroneous_behavior): ... this.
10424         (find_explicit_erroneous_behaviour): Renamed to...
10425         (find_explicit_erroneous_behavior): ... this.
10426         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
10428 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
10430         PR rtl-optimization/64682
10431         PR rtl-optimization/69567
10432         PR rtl-optimization/69737
10433         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
10434         in I2 as well, just lose it.
10436 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10438         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
10439         New variable.
10440         (aarch64_last_printed_tune_string): Likewise.
10441         (aarch64_declare_function_name): Only output .arch assembler
10442         directive if it will be different from the previously output
10443         directive.  Same for .tune comment but only if -dA is set.
10444         (aarch64_start_file): New function.
10445         (TARGET_ASM_FILE_START): Define.
10447 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
10449         PR plugins/69758
10450         * Makefile.in (PLUGIN_HEADERS): Add params.list.
10452 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
10454         PR target/65313
10455         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
10456         -Wmaybe-uninitialized warning.
10458 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
10460         PR target/69713
10461         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
10463 2016-02-11  Richard Biener  <rguenther@suse.de>
10465         PR rtl-optimization/69291
10466         * ifcvt.c (noce_try_store_flag_constants): Do not allow
10467         subexpressions affected by changing the result.
10469 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
10471         PR target/69148
10472         * lra-constraints.c (curr_insn_transform): Find in/out operands
10473         for secondary memory moves.  Update dups.
10475 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
10477         PR tree-optimization/69652
10478         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
10479         to nested loop, did source re-formatting, skip debug statements,
10480         add check on statement with volatile operand, remove dead scalar
10481         statements.
10483 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
10484             Patrick Palka  <ppalka@gcc.gnu.org>
10486         PR ipa/69241
10487         PR c++/69649
10488         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
10489         calls if the return type is TREE_ADDRESSABLE.
10490         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
10491         * ipa-split.c (split_function): Fix doubled "we" in comment.
10492         Use void return type for the split part even if
10493         !split_point->split_part_set_retval.
10495 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
10497         PR tree-optimization/68021
10498         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
10499         when computing the value of biv cand by itself.
10501 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
10503         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
10504         (cortexa57_tunings): Likewise.
10505         (cortexa72_tunings): Likewise.
10506         (arch_macro_fusion_pair_p): Add support for AES fusion.
10507         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
10508         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
10509         Allow virtual registers before reload so early scheduling works.
10510         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
10511         correct latency and pipeline.
10512         (cortex_a57_crypto_complex): Likewise.
10513         (cortex_a57_crypto_xor): Likewise.
10514         (define_bypass): Add AES bypass.
10516 2016-02-10  Richard Biener  <rguenther@suse.de>
10518         PR tree-optimization/69726
10519         * passes.def: Add DCE pass before late uninit.
10520         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
10521         really fixup if-conversions job.
10523 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
10525         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
10526         (arm_cortex_a57_tune): Likewise.
10527         (aarch_macro_fusion_pair_p): Add support for AES fusion.
10528         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
10530 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
10532         * timevar.def (TV_PHASE_DBGINFO): Delete.
10533         (TV_PHASE_CHECK_DBGINFO): Likewise.
10534         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
10536 2016-02-10  Richard Biener  <rguenther@suse.de>
10538         PR tree-optimization/69719
10539         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10540         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
10542 2016-02-09  Andrew Pinski  <apinski@cavium.com>
10544         PR tree-opt/69282
10545         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
10546         get_vcond_mask_icode returns false.
10548 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
10550         PR target/68404
10551         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
10552         an ADDIS that adds a pointer to a large constant that sets the
10553         upper16 bits with a load operation.
10555 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
10557         PR target/68532
10558         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
10559         order.
10560         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
10561         endian.
10562         (vzipq_s16): Likewise.
10563         (vzipq_s32): Likewise.
10564         (vzipq_f32): Likewise.
10565         (vzipq_u8): Likewise.
10566         (vzipq_u16): Likewise.
10567         (vzipq_u32): Likewise.
10568         (vzipq_p8): Likewise.
10569         (vzipq_p16): Likewise.
10571 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
10573         PR target/68532
10574         * config/arm/arm.c (neon_endian_lane_map): New function.
10575         (neon_vector_pair_endian_lane_map): New function.
10576         (arm_evpc_neon_vuzp): Allow for big endian lane order.
10577         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
10578         endian.
10579         (vuzpq_s16): Likewise.
10580         (vuzpq_s32): Likewise.
10581         (vuzpq_f32): Likewise.
10582         (vuzpq_u8): Likewise.
10583         (vuzpq_u16): Likewise.
10584         (vuzpq_u32): Likewise.
10585         (vuzpq_p8): Likewise.
10586         (vuzpq_p16): Likewise.
10588 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
10590         PR target/69634
10591         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
10592         debug insns.
10594 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
10596         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
10597         truncate const_int operand 1 to QImode.
10599 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
10601         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
10602         corresponding to an abnormal edge.
10604 2016-02-09  Tom de Vries  <tom@codesourcery.com>
10606         PR tree-optimization/69599
10607         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
10608         function.
10609         (find_func_aliases_for_builtin_call, find_func_clobbers)
10610         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
10611         partition.
10613 2016-02-09  Richard Biener  <rguenther@suse.de>
10615         PR tree-optimization/69715
10616         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
10617         LHS on calls as non-rewritable.
10619 2016-02-09  Tom de Vries  <tom@codesourcery.com>
10621         PR lto/69707
10622         * lto-wrapper.c (append_diag_options): New function.
10623         (compile_offload_image): Call append_diag_options.
10625 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
10627         PR other/69722
10628         * doc/extend.texi (Flag Output Operands): Correct sectioning.
10629         Minor copy-edit to fix verb tenses.
10631 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
10633         PR tree-optimization/69209
10634         * ipa-split.c (split_function): If split part is not
10635         returning retval, retval has gimple type but is not
10636         gimple value, force it into a SSA_NAME first.
10638 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
10640         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
10641         outdated section.
10643 2016-02-08  Jason Merrill  <jason@redhat.com>
10645         PR c++/69631
10646         * convert.c (convert_to_integer_1): Check dofold on truncation
10647         distribution.
10648         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
10649         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
10650         Rename from *_nofold.
10651         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
10652         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
10654 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
10656         PR target/60410
10657         * tree.c (build_common_tree_nodes): Remove short_double argument.
10658         All callers changed.
10659         * tree.h (build_common_tree_nodes): Adjust declaration.
10660         * doc/invoke.texi (-fshort-double): Remove documentation.
10661         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10662         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
10663         * lto-wrapper.c (merge_and_complain, append_compiler_options)
10664         (append_linker_options): Don't handle OPT_fshort_double.
10666         PR rtl-optimization/68730
10667         * lra-remat.c (insn_to_cand_activation): New static variable.
10668         (lra_remat): Allocate and free it.
10669         (create_cand): New arg activation. Initialize a field in
10670         insn_to_cand_activation if it is nonnull.
10671         (create_cands): Pass the activation insn to create_cand when making
10672         a candidate involving an output reload.  Reorganize code a little.
10673         (do_remat): Keep track of active status of candidates in a separate
10674         bitmap.
10676 2016-02-08  Richard Biener  <rguenther@suse.de>
10678         PR tree-optimization/69719
10679         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10680         Properly use absolute of the difference of the two offsets to
10681         compare or adjust the segment length.
10683 2016-02-08  Richard Biener  <rguenther@suse.de>
10684             Jeff Law  <law@redhat.com>
10686         PR target/68273
10687         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
10688         types for anonymous SSA names.
10690 2016-02-08   Richard Biener  <rguenther@suse.de>
10692         PR rtl-optimization/69274
10693         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
10695 2016-02-08  Jeff Law  <law@redhat.com>
10697         PR tree-optimization/65917
10698         * tree-ssa-dom.c (record_temporary_equivalences): Record both
10699         equivalences from if (x == y) style conditionals.
10700         (loop_depth_of_name): Remove.
10701         (record_equality): Remove loop depth check.
10702         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
10703         (const_and_copies::record_const_or_copy_raw): New member function.
10704         * tree-ssa-scopedtables.c
10705         (const_and_copies::record_const_or_copy_raw): New, factored out of
10706         (const_and_copies::record_const_or_copy): Call new member function.
10708 2016-02-05  Jeff Law  <law@redhat.com>
10710         PR tree-optimization/68541
10711         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
10712         (count_stmts_in_block): New function.
10713         (poor_ifcvt_candidate_code): Likewise.
10714         (is_feasible_trace): Add some heuristics to determine when path
10715         splitting is profitable.
10716         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
10717         is a diamond with a single exit.
10719 2016-02-05  Martin Sebor  <msebor@redhat.com>
10721         PR c++/69662
10722         * doc/invoke.texi: Update -Wplacement-new to take an optional
10723         argument.
10725 2016-02-06  Richard Henderson  <rth@redhat.com>
10727         PR c/69643
10728         * tree.c (tree_nop_conversion_p): Do not strip casts into or
10729         out of non-standard address spaces.
10731 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
10733         PR rtl-optimization/69691
10734         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
10736 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
10738         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
10739         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
10740         (*ieee128_mfvsrd_64bit): Likewise.
10741         (*ieee128_mfvsrd_32bit): Likewise.
10743 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
10745         PR target/69369
10746         Revert r232560:
10747         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10749         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10750         instrumented_version.
10752 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
10754         * doc/invoke.texi (Optimize Options): In table of --param options
10755         rename second occurrence of tracer-min-branch-ratio to
10756         tracer-min-branch-probability, rename
10757         tracer-min-branch-ratio-feedback to
10758         tracer-min-branch-probability-feedback and clarify description,
10759         rename sched-spec-state-edge-prob-cutoff to
10760         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
10761         to selsched-insns-to-rename, rename lto-minpartition to
10762         lto-min-partition, delete reorder-blocks-duplicate and
10763         reorder-blocks-duplicate-feedback.
10765 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10767         * config/s390/s390.c (s390_register_info_set_ranges): Remove
10768         superfluous loops.
10770 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10772         * doc/extend.texi: S/390: Correct some typos.
10774 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10776         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
10778 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10780         PR target/69625
10781         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
10782         (s390_register_info_gprtofpr): Use new macros above.
10783         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
10784         its name.
10785         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
10786         its name.  Adjust restore and save gpr ranges.
10787         (s390_register_info_set_ranges): New function.
10788         (s390_register_info): Use new macros above.  Call
10789         s390_register_info_set_ranges.
10790         (s390_optimize_register_info): Likewise.
10791         (s390_hard_regno_rename_ok): Use new macros.
10792         (s390_hard_regno_scratch_ok): Likewise.
10793         (s390_emit_epilogue): Likewise.
10794         (s390_can_use_return_insn): Likewise.
10795         (s390_optimize_prologue): Likewise.
10796         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
10798 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
10800         PR bootstrap/69677
10801         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
10802         alignment fixes.
10803         (ix86_option_override_internal): Disable TARGET_STV even for
10804         -m{incoming,preferred}-stack-boundary=3.
10806 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10808         * config.gcc: Mark deprecated rtems targets as obsolete.
10810 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
10812         PR rtl-optimization/64682
10813         PR rtl-optimization/69567
10814         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
10815         before I2 only if the register is both used and set in I2.
10817 2016-02-04  DJ Delorie  <dj@redhat.com>
10819         * config/msp430/msp430.c (msp430_start_function): Add function type.
10821 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
10823         PR fortran/69368
10824         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
10826 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
10828         PR rtl-optimization/69577
10829         Revert:
10830         2015-10-29  Richard Henderson  <rth@redhat.com>
10832         PR target/68124
10833         PR rtl-opt/67609
10834         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
10835         sse check to the exact conditions of PR 67609.
10837 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
10839         PR target/69667
10840         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
10841         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
10842         not allowed into the traditional Altivec registers.
10843         (movtd_64bit_nodm): Likewise.
10844         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10846 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
10848         * config/aarch64/cortex-a57-fma-steering.c
10849         (aarch64_register_fma_steering): Remove "static" from arguments
10850         to register_pass.
10852 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
10854         PR target/69619
10855         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
10856         twice when complex.
10858 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
10860         * doc/invoke.texi: Delete -mno-fma4.
10862 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
10864         PR rtl-optimization/69577
10865         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
10866         (find_subregs_of_mode): Update accordingly.  Iterate over partial
10867         definitions.
10869 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
10871         * config/arm/arm-protos.h (neon_reinterpret): Remove.
10872         * config/arm/arm.c (neon_reinterpret): Remove.
10873         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
10874         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
10875         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
10876         vreinterpretti): Remove.
10877         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10878         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10879         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
10880         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
10881         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
10882         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
10883         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
10884         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
10885         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
10886         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
10887         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
10888         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
10889         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
10890         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
10891         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
10892         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
10893         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
10894         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
10895         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
10896         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
10897         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
10898         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
10899         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
10900         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
10901         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
10902         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
10903         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
10904         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
10905         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
10906         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
10907         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
10908         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
10909         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
10910         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
10911         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
10912         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
10913         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
10914         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
10915         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
10916         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
10917         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
10918         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
10919         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
10920         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
10921         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
10922         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
10923         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
10924         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
10925         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
10926         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
10927         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
10928         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
10929         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
10930         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
10931         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
10932         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
10933         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
10934         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
10935         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
10936         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
10937         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
10938         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
10939         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
10940         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
10941         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
10942         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
10943         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
10944         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
10945         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
10946         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
10947         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
10948         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
10949         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
10950         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
10951         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
10952         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
10953         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
10954         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
10955         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
10956         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
10957         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
10958         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
10959         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
10960         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
10961         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
10962         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
10963         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
10964         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
10965         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
10966         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
10967         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
10968         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
10969         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
10970         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
10971         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
10972         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
10973         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
10974         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
10975         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
10976         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
10977         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
10978         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
10979         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
10981 2016-02-04  Martin Liska  <mliska@suse.cz>
10983         PR sanitizer/69276
10984         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
10985         that are gimple_store_p.
10986         (maybe_instrument_call): Likewise.
10988 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
10990         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
10991         register scaling out of memory reference and comment why.
10993 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10995         PR target/65932
10996         PR target/67714
10997         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
10998         folding the source of a SET.
11000 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11002         PR target/65932
11003         PR target/67714
11004         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
11005         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
11007 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
11009         PR target/65932
11010         PR target/67714
11011         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
11012         HImode.
11014 2016-02-04  Christian Bruel  <christian.bruel@st.com>
11016         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
11017         * config/arm/arm.c (arm_set_current_function): Likewise.
11019 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
11020             Ilya Enkovich  <enkovich.gnu@gmail.com>
11021             H.J. Lu  <hongjiu.lu@intel.com>
11023         PR target/69454
11024         * config/i386/i386.c (convert_scalars_to_vector): Remove
11025         stack alignment fixes.
11026         (ix86_option_override_internal): Disable TARGET_STV if stack
11027         might not be aligned enough.
11028         (ix86_minimum_alignment): Assert that TARGET_STV is false.
11030 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
11032         * config/i386/x86-tune.def: Disable default prefetching
11033         for -march=znver1.
11035 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11036             Vladimir Makarov  <vmakarov@redhat.com>
11038         PR target/69461
11039         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
11040         in validating fused toc addresses.
11042 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
11044         PR c/69627
11045         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
11046         range->m_caret fields if range->m_show_caret_p is false.
11048         PR target/69644
11049         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11050         Force oldval into register if it does not satisfy reg_or_short_operand
11051         predicate.  Fix up formatting.
11053 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
11054             Alexandre Oliva  <aoliva@redhat.com>
11056         PR target/69461
11057         * lra-constraints.c (simplify_operand_subreg): Check additionally
11058         address validity after potential reloading.
11059         (process_address_1): Check insns validity.  In case of failure do
11060         nothing.
11062 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
11064         PR target/69118
11065         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
11066         Fix target.
11068 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
11070         * wide-int.cc (canonize_uhwi): New function.
11071         (wi::divmod_internal): Use it.
11073 2016-02-02  James Norris  <jnorris@codesourcery.com
11075         * gimplify.c (omp_notice_variable): Add usage check.
11077 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
11079         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
11080         like LE, GE, LT, GT when emitting relational operator.
11082 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
11084         * ira-costs.c (find_costs_and_classes): Add extra argument.
11085         * target.def (ira_change_pseudo_allocno_class): Add parameter.
11086         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
11087         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
11088         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
11089         Add best_class parameter, and return it if not ALL_REGS.
11090         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
11091         Add parameter.
11092         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
11093         Update target hook.
11095 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
11097         * config/aarch64/aarch64.c
11098         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
11099         (aarch64_ira_change_pseudo_allocno_class): New function.
11101 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
11103         PR target/67032
11104         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
11106 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11108         * config/avr/avr.c (avr_option_override): Set
11109         PARAM_ALLOW_STORE_DATA_RACES to 1.
11111 2016-02-02  Richard Biener  <rguenther@suse.de>
11113         PR tree-optimization/69595
11114         * match.pd: Add range test simplifications to true/false.
11116 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11118         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
11119         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
11120         instead.
11122 2016-02-02  Richard Biener  <rguenther@suse.de>
11124         PR tree-optimization/69606
11125         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
11126         info on the result before moving a stmt.
11128 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
11130         PR middle-end/68542
11131         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
11132         branch with vector comparison.
11133         * config/i386/sse.md (VI48_AVX): New mode iterator.
11134         (define_expand "cbranch<mode>4): Add support for conditional branch
11135         with vector comparison.
11136         * tree-vect-loop.c (optimize_mask_stores): New function.
11137         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
11138         has_mask_store field of vect_info.
11139         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
11140         vectorized loops having masked stores after vec_info destroy.
11141         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
11142         correspondent macros.
11143         (optimize_mask_stores): Add prototype.
11145 2016-02-02  Alan Modra  <amodra@gmail.com>
11147         PR target/69548
11148         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
11149         allow subregs.
11151 2016-02-02  Alan Modra  <amodra@gmail.com>
11153         PR target/68662
11154         * config/rs6000/rs6000.c (need_toc_init): New var, set it
11155         whenever toc_label_name used.
11156         (rs6000_file_start): Don't set up toc section here,
11157         (rs6000_output_function_epilogue): do so here instead,
11158         (rs6000_xcoff_file_start): and here.
11159         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
11160         (load_toc_aix_di): Likewise.
11162 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
11164         PR rtl-optimization/69592
11165         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
11166         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
11167         (num_sign_bit_copies_binary_arith_p): New inline function.
11168         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
11170 2016-02-01  Jeff Law  <law@redhat.com>
11172         PR tree-optimization/69580
11173         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
11174         * tree-ssa-threadbackward.c
11175         (fsm_find_control_statement_thread_paths): Do not try to walk
11176         through large PHI nodes.
11178 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
11180         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
11181         when count is incremented above limit, don't analyze further
11182         insns afterwards.
11184         * omp-low.c (oacc_parse_default_dims): Avoid
11185         -Wsign-compare warning, make sure value fits into int
11186         rather than just unsigned int.
11188 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
11190         PR tree-optimization/67921
11191         * fold-const.c (split_tree): New parameters.  Convert pointer
11192         type variable part to proper type before negating.
11193         (fold_binary_loc): Pass new arguments to split_tree.
11195 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
11197         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
11198         (nvptx_goacc_validate_dims): Extend to handle global defaults.
11199         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
11200         * doc/tm.texti: Rebuilt.
11201         * doc/invoke.texi (fopenacc-dim): Document.
11202         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
11203         (append_compiler_options): Likewise.
11204         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
11205         (oacc_parse_default_dims): New.
11206         (oacc_validate_dims): Add USED arg.  Select non-unity default when
11207         possible.
11208         (oacc_loop_fixed_partitions): Return mask of used partitions.
11209         (oacc_loop_auto_partitions): Emit dump info.
11210         (oacc_loop_partition): Return mask of used partitions.
11211         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
11212         loop partitioning and validation calls.
11214 2016-02-01  Richard Biener  <rguenther@suse.de>
11216         PR middle-end/69556
11217         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
11219 2016-02-01  Richard Biener  <rguenther@suse.de>
11221         PR tree-optimization/69574
11222         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
11223         of asserting return chrec_dont_know.
11225 2016-02-01  Martin Liska  <mliska@suse.cz>
11227         * mem-stats-traits.h: Add copyright header.
11228         * mem-stats.h: Likewise.
11230 2016-02-01  Richard Biener  <rguenther@suse.de>
11232         PR tree-optimization/69579
11233         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
11234         Do not propagate through abnormal PHI results.
11236 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11238         * postreload.c (reload_cse_simplify): Remove dead code.
11240 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
11242         PR rtl-optimization/69570
11243         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
11244         if there is more than one set, not if there is a single set.
11246 2016-02-01  Richard Henderson  <rth@redhat.com>
11248         PR rtl-opt/69535
11249         * combine.c (make_compound_operation): When looking through a
11250         subreg, make sure to re-extend to the width of the outer mode.
11252 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
11254         PR tree-optimization/69546
11255         * wide-int.cc (wi::divmod_internal): For unsigned division
11256         where both operands fit into uhwi, if o1 is 1 and o0 has
11257         msb set, if divident_prec is larger than bits per hwi,
11258         clear another quotient word and return 2 instead of 1.
11259         Similarly for remainder with msb in HWI set, if dividend_prec
11260         is larger than bits per hwi.
11262 2016-01-29  Martin Jambor  <mjambor@suse.cz>
11264         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
11265         Use short lowercase names.
11266         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
11267         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
11268         acq_rel one.  Protect warning agains segfaults if
11269         get_memory_order_name returns NULL.
11270         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
11271         with release semantics.  Do not warn if get_memory_order already did.
11272         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
11273         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
11274         if get_memory_order already did.
11276 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
11278         * doc/install.texi: Document that isl-0.16 is supported.
11280 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
11282         PR target/69299
11283         * config/i386/constraints.md (Bm): Describe as special memory
11284         constraint.
11285         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
11286         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11287         * genpreds.c (struct constraint_data): Add is_special_memory.
11288         (have_special_memory_constraints, special_memory_start): New
11289         static vars.
11290         (special_memory_end): Ditto.
11291         (add_constraint): Add new arg is_special_memory.  Add code to
11292         process its true value.  Update have_special_memory_constraints.
11293         (process_define_constraint): Pass the new arg.
11294         (process_define_register_constraint): Ditto.
11295         (choose_enum_order): Process special memory.
11296         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
11297         function insn_extra_special_memory_constraint.
11298         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11299         * gensupport.c (process_rtx): Process
11300         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11301         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
11302         * ira-lives.c (single_reg_class): Use
11303         insn_extra_special_memory_constraint.
11304         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
11305         * lra-constraints.c (process_alt_operands): Ditto.
11306         (curr_insn_transform): Use insn_extra_special_memory_constraint.
11307         * recog.c (asm_operand_ok, preprocess_constraints): Process
11308         CT_SPECIAL_MEMORY.
11309         * reload.c (find_reloads): Ditto.
11310         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
11311         * stmt.c (parse_input_constraint): Use
11312         insn_extra_special_memory_constraint.
11314 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
11316         PR target/69530
11317         * lra-splill.c (lra_final_code_change): Revert r229087 by
11318         removing all sub-registers.
11320 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
11322         PR target/65604
11323         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
11325 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
11327         PR target/69551
11328         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
11329         SSE1, copy target into the temporary reg first before recursing
11330         on it.
11332 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
11334         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
11335         with vm.
11337 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
11339         * ginclude/stdarg.h: Test __cplusplus instead of
11340         __GXX_EXPERIMENTAL_CXX0X__.
11342 2016-01-29  Richard Biener  <rguenther@suse.de>
11344         PR tree-optimization/69547
11345         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
11346         Do not mark clobbers necessary.
11347         (mark_all_reaching_defs_necessary_1): Likewise.
11349 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11351         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
11352         declaration name with %qs and print it in both error messages.
11353         Also fix indentation.
11355 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11357         PR other/69006
11358         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
11359         trailing blank line from error message.
11361 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
11363         PR c++/69462
11364         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
11365         for C++-11.
11367 2016-01-29  Richard Biener  <rguenther@suse.de>
11369         PR middle-end/69537
11370         * match.pd: Allow all integral types when simplifying a
11371         widening or sign-changing conversion.
11373 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
11375         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
11376         back to setting codegen_error to fail codegen.
11378 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
11380         PR target/69459
11381         * config/i386/constraints.md (C): Only accept constant zero operand.
11382         (BC): New constraint.
11383         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
11384         instead of C constraint.
11385         * doc/md.texi (Machine Constraints): Update description
11386         of C constraint.
11388 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11390         PR target/68400
11391         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
11393 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
11395         PR middle-end/69542
11396         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
11397         non-debug insns.
11399 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
11401         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
11402         branches if using guessed profile.
11404 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
11406         * graphite-optimize-isl.c (optimize_isl): Fix dump.
11408 2016-01-28  Richard Henderson  <rth@redhat.com>
11410         PR target/69305
11411         * config/aarch64/aarch64-modes.def (CC_Cmode): New
11412         * config/aarch64/aarch64-protos.h: Update.
11413         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
11414         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
11415         (aarch64_get_condition_code_1): Handle CC_Cmode.
11416         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
11417         (*add<mode>3_compareC_cconly_imm): New.
11418         (*add<mode>3_compareC_cconly): New.
11419         (*add<mode>3_compareC_imm): New.
11420         (add<mode>3_compareC): New.
11421         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
11422         to be first.  Use aarch64_carry_operation.
11423         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
11424         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
11425         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
11426         (subti3): Use subdi3_compare1.
11427         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
11428         (sub<mode>3_compare1): New.
11429         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
11430         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
11431         (*subsi3_carryin_uxtw): Likewise.
11432         (*ngc<mode>, *ngcsi_uxtw): Likewise.
11433         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
11434         * config/aarch64/iterators.md (DWI): New.
11435         * config/aarch64/predicates.md (aarch64_carry_operation): New.
11436         (aarch64_borrow_operation): New.
11438 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
11440         * graphite-optimize-isl.c (optimize_isl): Print a different debug
11441         message when isl does not return a valid schedule.
11443 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
11445         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11446         Remove comments from class declarations: they are already in the code
11447         close by the defs.
11449 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
11451         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
11452         codegen_error_p.
11453         (ternary_op_to_tree): Same.
11454         (unary_op_to_tree): Same.
11455         (nary_op_to_tree): Same.
11456         (gcc_expression_from_isl_expr_op): Same.
11457         (gcc_expression_from_isl_expression): Same.
11458         (graphite_create_new_loop): Same.
11459         (graphite_create_new_loop_guard): Same.
11460         (build_iv_mapping): Same.
11461         (graphite_create_new_guard): Same.
11462         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
11463         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
11465 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
11467         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
11468         instead of setting codegen_error to fail codegen.
11470 2016-01-28  Jason Merrill  <jason@redhat.com>
11472         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
11474 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
11476         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
11477         Remove CONST_INT_P check in CCMP cost calculation.
11479 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
11481         * config/aarch64/aarch64.c (generic_vector_cost):
11482         Set vec_permute_cost.
11483         (cortexa57_vector_cost): Likewise.
11484         (exynosm1_vector_cost): Likewise.
11485         (xgene1_vector_cost): Likewise.
11486         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
11487         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
11488         Add vec_permute_cost entry.
11490 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
11492         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
11493         immediate as %1.
11494         (add<mode>3_compare0): Likewise.
11495         (addsi3_compare0_uxtw): Likewise.
11496         (add<mode>3nr_compare0): Likewise.
11497         (compare_neg<mode>): Likewise.
11498         (<optab><mode>3): Likewise.
11500 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
11502         * tree-vect-stmts.c (vectorizable_comparison): Add
11503         NULL check for vectype.
11505 2016-01-28  Richard Biener  <rguenther@suse.de>
11507         PR tree-optimization/69466
11508         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11509         Account for PHIs we couldn't duplicate.
11511 2016-01-28  Martin Liska  <mliska@suse.cz>
11513         PR pch/68758
11514         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
11515         instead of ENABLE_VALGRIND_CHECKING.
11517 2016-01-27  Richard Henderson  <rth@redhat.com>
11519         PR rtl-opt/69447
11520         * lra-remat.c (subreg_regs): New.
11521         (dump_candidates_and_remat_bb_data): Dump it.
11522         (operand_to_remat): Reject if operand in subreg_regs.
11523         (set_bb_regs): Collect subreg_regs.
11524         (lra_remat): Init and free subreg_regs.  Compute
11525         calculate_local_reg_remat_bb_data before create_cands.
11527 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
11529         PR target/68986
11530         * config/i386/i386.c (ix86_update_stack_boundary): Don't
11531         change stack_alignment_needed for __tls_get_addr call.
11533 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
11535         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
11537 2016-01-27  Jeff Law  <law@redhat.com>
11539         PR tree-optimization/68398
11540         PR tree-optimization/69196
11541         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
11542         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
11543         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11544         Only count PHIs in the last block in the path.  The others will
11545         const/copy propagate away.  Add heuristic to allow more irreducible
11546         subloops to be created when it is likely profitable to do so.
11548         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11549         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
11550         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
11552 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
11554         PR lto/69254
11555         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
11556         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
11557         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
11558         * tree-streamer-in.c: Include asan.h.
11559         (streamer_get_builtin_tree): For builtins in sanitizer
11560         range call initialize_sanitizer_builtins and retry.
11562 2016-01-27  Ian Lance Taylor  <iant@google.com>
11564         * common.opt (fkeep-gc-roots-live): New undocumented option.
11565         * tree-ssa-loop-ivopts.c (add_candidate_1): If
11566         -fkeep-gc-roots-live, skip pointers.
11567         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
11568         NULL.
11570 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
11572         PR target/69512
11573         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
11574         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
11576 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
11578         PR target/68380
11579         * configure.ac: NetBSD provides SSP in its C library.
11580         * configure: Updated.
11582 2016-01-27  Richard Biener  <rguenther@suse.de>
11584         PR tree-optimization/69166
11585         * tree-vect-loop.c (vect_is_simple_reduction): Always check
11586         reduction code for commutativity / associativity.
11588 2016-01-27  Martin Jambor  <mjambor@suse.cz>
11590         PR tree-optimization/69355
11591         * tree-sra.c (analyze_access_subtree): Correct hole detection when
11592         total_scalarization fails.
11594 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
11596         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
11597         power9.
11599 2016-01-27  Christian Bruel  <christian.bruel@st.com>
11601         PR target/69245
11602         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
11603         Move arm_reset_previous_fndecl and set_target_option_current_node in
11604         the conditional part.  Call save_restore_target_globals.
11605         * config/arm/arm.c (arm_set_current_function):
11606         Refactor to better support #pragma target and attribute mix.
11607         Call save_restore_target_globals.
11608         * config/arm/arm-protos.h (save_restore_target_globals): New function.
11610 2016-01-27  Martin Liska  <mliska@suse.cz>
11612         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
11613         reference for an HSA kernel and its host function.
11615 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
11617         PR tree-optimization/69399
11618         * wide-int.h (wi::lrshift): For larger precisions, only
11619         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
11621 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
11623         * config/arc/predicates.md (proper_comparison_operator): Reject
11624         constant-constant comparison.
11626 2016-01-26  Tom de Vries  <tom@codesourcery.com>
11628         PR tree-optimization/69110
11629         * tree-data-ref.c (initialize_data_dependence_relation): Handle
11630         DR_NUM_DIMENSIONS == 0.
11632 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
11633             Sebastian Pop  <s.pop@samsung.com>
11635         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
11636         isl_ast_op_cond and isl_ast_op_select.
11637         (gcc_expression_from_isl_expr_op): Same.
11639 2016-01-26  Jason Merrill  <jason@redhat.com>
11641         PR c++/68782
11642         * tree.c (recompute_constructor_flags): Split out from
11643         build_constructor.
11644         (verify_constructor_flags): New.
11645         * tree.h: Declare them.
11647 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
11649         PR rtl-optimization/69217
11650         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
11651         are no TYPE_FIELDS set for the record type.
11653 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
11655         PR target/68662
11656         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
11657         toc_label_name unconditionally.
11658         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
11659         SYMBOL_REF string.  Use toc_label_name instead of constructing
11660         LCTOC1.
11661         (rs6000_elf_declare_function_name): Use toc_label_name instead of
11662         constructing LCTOC1.
11664 2016-01-26  Martin Sebor  <msebor@redhat.com>
11666         PR other/69477
11667         * doc/extend.texi (Common Type Attributes): Move text that talks about
11668         attribute packed from attribute aligned to the section discussing
11669         the former attribute for clarity.
11671 2016-01-26  Richard Henderson  <rth@redhat.com>
11673         PR middle-end/60908
11674         * trans-mem.c (tm_region_init): Mark entry block as visited.
11676 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
11678         PR other/69006
11679         * diagnostic-show-locus.c (layout::print_source_line): Replace
11680         call to pp_newline with call to layout::print_newline.
11681         (layout::print_annotation_line): Likewise.
11682         (layout::move_to_column): Likewise.
11683         (layout::print_any_fixits): After printing any fixits, print a
11684         trailing newline, if necessary.
11685         (layout::print_newline): New method, resetting any colorization
11686         before a newline.
11687         (diagnostic_show_locus): Move the pp_newline to before the
11688         early bailout.  Remove dummy block enclosing the layout instance.
11689         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
11690         of pp_newline_and_flush with pp_flush.
11691         (diagnostic_append_note): Delete use of pp_newline.
11692         (diagnostic_append_note_at_rich_loc): Delete.
11693         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
11694         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
11695         when newline characters are added to the buffer.
11697 2016-01-26  Michael Matz  <matz@suse.de>
11699         * configure.ac (ac_cv_std_swap_in_utility): New test.
11700         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
11701         * configure: Regenerate.
11702         * config.in: Regenerate.
11704 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
11706         * config/arc/arc.md (cstoresi4): Force operand into register.
11707         (arcset<code>): Fix predicate.
11708         (arcsetltu): Likewise.
11709         (arcsetgeu): Likewise.
11710         (arcsethi): Likewise.
11711         (arcsetls): Likewise.
11713 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
11715         PR tree-optimization/69483
11716         * gimple-fold.c (canonicalize_constructor_val): Return NULL
11717         if base has error_mark_node type.
11719 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
11721         PR target/68620
11722         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
11723         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
11724         New helper macros.
11725         (vget_lane_f16): Handle big-endian.
11726         (vgetq_lane_f16): Likewise.
11727         (vset_lane_f16): Likewise.
11728         (vsetq_lane_f16): Likewise.
11729         * config/arm/iterators.md (VQXMOV): Add V8HF.
11730         (VDQ): Add V4HF and V8HF.
11731         (V_reg): Handle V4HF and V8HF.
11732         (Is_float_mode): Likewise.
11733         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
11734         neon_vdup_nv8hf): New patterns.
11735         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
11736         Use VD_LANE iterator.
11737         (neon_vld1_dup<mode>): Use VQ2 iterator.
11739 2016-01-26  Nathan Sidwell  <nathan@acm.org>
11741         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
11742         (set_oacc_fn_attrib): Add IS_KERNEL arg.
11743         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
11744         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
11745         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
11746         (oacc_validate_dims): Add LEVEL arg, don't return level.
11747         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
11748         oacc_validate_dims.
11749         (execute_oacc_device_lower): Adjust, add more dump output.
11750         * tree-ssa-loop.c (gate_oacc_kernels): Use
11751         oacc_fn_attrib_kernels_p.
11752         * tree-parloops.c (create_parallel_loop): Adjust
11753         set_oacc_fn_attrib call.
11755 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
11757         PR lto/69254
11758         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
11759         (append_compiler_options): Handle -fcilkplus.
11760         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
11762 2016-01-26  Nick Clifton  <nickc@redhat.com>
11764         PR target/66655
11765         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
11766         been marked as DECL_ONE_ONLY but we do not the means to make it
11767         so, then do not allow it to bind locally.
11769 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
11771         PR lto/69254
11772         * opts.h (parse_sanitizer_options): New prototype.
11773         * opts.c (sanitizer_opts): New array.
11774         (parse_sanitizer_options): New function.
11775         (common_handle_option): Use parse_sanitizer_options.
11777 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
11779         PR target/68986
11780         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
11781         alignment adjustment to ...
11782         (ix86_update_stack_boundary): Here.  Don't over-align stack for
11783         __tls_get_addr.
11784         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
11785         if __tls_get_addr is called.
11787 2016-01-26  Christian Bruel  <christian.bruel@st.com>
11789         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
11791 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11793         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
11795 2016-01-26  Richard Biener  <rguenther@suse.de>
11797         PR middle-end/69467
11798         * match.pd: Guard X * CST CMP 0 pattern with single_use.
11800 2016-01-26  Richard Biener  <rguenther@suse.de>
11802         PR tree-optimization/69452
11803         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
11804         (move_computations_dom_walker::before_dom_children): Rename
11805         to ...
11806         (move_computations_worker): This.
11807         (move_computations): Perform an RPO rather than a DOM walk.
11809 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
11811         PR target/69442
11812         * combine.c (combine_instructions): For REG_EQUAL note with
11813         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
11814         to the underlying register.
11815         * doc/rtl.texi (REG_EQUAL): Document the behavior of
11816         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
11818 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
11820         PR target/67896
11821         * config/aarch64/aarch64-builtins.c
11822         (aarch64_init_simd_builtin_types): Do not set structural
11823         equality to __Poly{8,16,64,128}_t types.
11825 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
11827         PR tree-optimization/69400
11828         * wide-int.cc (wi_pack): Take the precision as argument and
11829         perform canonicalization here rather than in the callers.
11830         Use the main loop to handle all full-width HWIs.  Add a
11831         zero HWI if in_len isn't a full result.
11832         (wi::divmod_internal): Update accordingly.
11833         (wi::mul_internal): Likewise.  Simplify.
11835 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
11836             Sebastian Pop  <s.pop@samsung.com>
11838         * graphite-poly.c (apply_poly_transforms): Simplify.
11839         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
11840         (print_isl_map): Same.
11841         (print_isl_union_map): Same.
11842         (print_isl_schedule): New.
11843         (debug_isl_schedule): New.
11844         * graphite-dependences.c (scop_get_reads): Do not call
11845         isl_union_map_add_map that is undocumented isl functionality.
11846         (scop_get_must_writes): Same.
11847         (scop_get_may_writes): Same.
11848         (scop_get_original_schedule): Remove.
11849         (scop_get_dependences): Do not call isl_union_map_compute_flow that
11850         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
11851         (compute_deps): Remove.
11852         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
11853         (debug_schedule_ast): New.
11854         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
11855         set_separate_option.
11856         (graphite_regenerate_ast_isl): Add dump.
11857         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
11858         from scop->transformed_schedule.
11859         (graphite_regenerate_ast_isl): Add more dump.
11860         * graphite-optimize-isl.c (optimize_isl): Set
11861         scop->transformed_schedule.  Check whether schedules are equal.
11862         (apply_poly_transforms): Move here.
11863         * graphite-poly.c (apply_poly_transforms): ... from here.
11864         (free_poly_bb): Static.
11865         (free_scop): Static.
11866         (pbb_number_of_iterations_at_time): Remove.
11867         (print_isl_ast): New.
11868         (debug_isl_ast): New.
11869         (debug_scop_pbb): New.
11870         * graphite-scop-detection.c (print_edge): Move.
11871         (print_sese): Move.
11872         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
11873         (build_scop_scattering): Remove.
11874         (create_pw_aff_from_tree): Assert instead of bailing out.
11875         (add_condition_to_pbb): Remove unused code, do not fail.
11876         (add_conditions_to_domain): Same.
11877         (add_conditions_to_constraints): Remove.
11878         (build_scop_context): New.
11879         (add_iter_domain_dimension): New.
11880         (build_iteration_domains): Initialize pbb->iterators.
11881         Call add_conditions_to_domain.
11882         (nested_in): New.
11883         (loop_at): New.
11884         (index_outermost_in_loop): New.
11885         (index_pbb_in_loop): New.
11886         (outermost_pbb_in): New.
11887         (add_in_sequence): New.
11888         (add_outer_projection): New.
11889         (outer_projection_mupa): New.
11890         (add_loop_schedule): New.
11891         (build_schedule_pbb): New.
11892         (build_schedule_loop): New.
11893         (embed_in_surrounding_loops): New.
11894         (build_schedule_loop_nest): New.
11895         (build_original_schedule): New.
11896         (build_poly_scop): Call build_original_schedule.
11897         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
11898         (free_poly_dr): Remove.
11899         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
11900         (free_poly_bb): Remove.
11901         (debug_loop_vec): Remove.
11902         (print_isl_ast): Declare.
11903         (debug_isl_ast): Declare.
11904         (scop_do_interchange): Remove.
11905         (scop_do_strip_mine): Remove.
11906         (scop_do_block): Remove.
11907         (flatten_all_loops): Remove.
11908         (optimize_isl): Remove.
11909         (pbb_number_of_iterations_at_time): Remove.
11910         (debug_scop_pbb): Declare.
11911         (print_schedule_ast): Declare.
11912         (debug_schedule_ast): Declare.
11913         (struct scop): Remove schedule.  Add original_schedule,
11914         transformed_schedule.
11915         (free_gimple_poly_bb): Remove.
11916         (print_generated_program): Remove.
11917         (debug_generated_program): Remove.
11918         (unify_scattering_dimensions): Remove.
11919         * sese.c (print_edge): ... here.
11920         (print_sese): ... here.
11921         (debug_edge): ... here.
11922         (debug_sese): ... here.
11923         * sese.h (print_edge): Declare.
11924         (print_sese): Declare.
11925         (dump_edge): Declare.
11926         (dump_sese): Declare.
11928 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
11929             Sebastian Pop  <s.pop@samsung.com>
11931         * Makefile.in: Set ISLVER in site.exp.
11933 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
11935         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
11936         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
11937         through DECL_VALUE_EXPR for expansion.
11939 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11941         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
11942         the frame info after reload completed.
11944 2016-01-25  Jeff Law  <law@redhat.com>
11946         PR tree-optimization/69196
11947         PR tree-optimization/68398
11948         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
11949         tree-ssa-threadupdate.c.
11950         (determine_bb_domination_status): Prototype
11951         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
11952         (determine_bb_domination_status): No longer static.
11953         (valid_jump_thread_path): Remove code to detect characteristics
11954         of the jump thread path not associated with correctness.
11955         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
11956         Correct test for thread path length.  Count PHIs for real operands as
11957         statements that need to be copied.  Do not count ASSERT_EXPRs.
11958         Look at all the blocks in the thread path.  Compute and selectively
11959         filter thread paths based on threading through the latch, threading
11960         a multiway branch or crossing a multiway branch.
11962 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11964         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
11965         decl with __attribute__ ((unused)) annotation.
11967 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
11969         PR target/69421
11970         * tree-vect-stmts.c (vectorizable_condition): Check vectype
11971         of operands is compatible with a statement vectype.
11973 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
11975         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
11976         improve wording for mixed storage order support.
11978 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
11980         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
11981         (vcvt_u64_f64): Likewise.
11982         (vcvta_s64_f64): Likewise.
11983         (vcvta_u64_f64): Likewise.
11984         (vcvtm_s64_f64): Likewise.
11985         (vcvtm_u64_f64): Likewise.
11986         (vcvtn_s64_f64): Likewise.
11987         (vcvtn_u64_f64): Likewise.
11988         (vcvtp_s64_f64): Likewise.
11989         (vcvtp_u64_f64): Likewise.
11991 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
11993         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
11994         (arc_init): Check validity mll64 option.
11995         (arc_save_restore): Use double load/store instruction.
11996         (arc_expand_movmem): Likewise.
11997         (arc_split_move): Don't split if we have double load/store
11998         instructions. Returns a boolean.
11999         (arc_process_double_reg_moves): Change function to return boolean
12000         instead of a sequence of instructions.
12001         (arc_dwarf_register_span): New function.
12002         * config/arc/arc-protos.h (arc_split_move): Change prototype.
12003         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
12004         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
12005         (*movdf_insn): Likewise.
12006         * config/arc/arc.opt (mll64): New option.
12007         * config/arc/predicates.md (even_register_operand): New predicate.
12008         * doc/invoke.texi (ARC Options): Add mll64 documentation.
12010 2016-01-25  Richard Biener  <rguenther@suse.de>
12012         PR lto/69393
12013         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
12014         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
12015         DECL_NAMELESS.
12016         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
12018 2016-01-25  Richard Biener  <rguenther@suse.de>
12020         PR tree-optimization/69376
12021         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
12022         flag.
12023         (VN_INFO_ANTI_RANGE_P): New inline.
12024         (VN_INFO_RANGE_TYPE): Likewise.
12025         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
12026         SSA_NAME_ANTI_RANGE_P.
12027         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
12028         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12029         Properly query VN_INFO_RANGE_TYPE.
12031 2016-01-25  Nick Clifton  <nickc@redhat.com>
12033         PR target/66655
12034         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
12036 2016-01-23  Tom de Vries  <tom@codesourcery.com>
12038         PR tree-optimization/69426
12039         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
12040         removed clobber.
12042 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
12044         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
12045         "the the" with "the" in the comments.
12046         * ipa-devirt.c (build_type_inheritance_graph,
12047         update_type_inheritance_graph): Likewise.
12048         * tree.c (build_function_type_list_1): Likewise.
12049         * cfgloopmanip.c (scale_loop_profile): Likewise.
12050         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
12051         * gimple-ssa-split-paths.c
12052         (find_block_to_duplicate_for_splitting_paths): Likewise.
12053         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
12054         * expr.c (convert_move): Likewise.
12055         * var-tracking.c (vt_stack_adjustments): Likewise.
12056         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
12057         * tree-vrp.c (test_for_singularity): Likewise.
12059         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
12060         directly instead of building a temporary tree.
12062         PR bootstrap/69434
12063         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
12064         remove <algorithm> include.
12066 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
12068         PR target/69432
12069         * config/i386/i386.c: Include dojump.h.
12070         (expand_small_movmem_or_setmem,
12071         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
12072         fixes.
12073         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
12074         if dynamic_check != -1.
12076 2016-01-21  Jeff Law  <law@redhat.com>
12078         PR middle-end/69347
12079         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
12080         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
12081         into dominated_by_p.
12082         (cprop_into_successor_phis): Avoid unnecessary tests.
12084 2016-01-22  Richard Henderson  <rth@redhat.com>
12086         PR target/69416
12087         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
12088         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
12090 2016-01-22  Michael Matz  <matz@suse.de>
12092         * system.h (string, algorithm): Include only conditionally.
12093         (new): Include always under C++.
12094         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
12095         * final.c (toplevel): Ditto.
12096         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
12097         * genconditions.c (write_header): Make gencondmd.c define
12098         INCLUDE_STRING.
12099         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
12101         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
12102         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
12104 2016-01-22  Christian Bruel  <christian.bruel@st.com>
12106         PR target/68674
12107         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
12109 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12111         PR target/69403
12112         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
12113         define_insn_and_split.  Ensure operands[1] and operands[0] do not
12114         get assigned the same register.
12116 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
12118         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
12120 2016-01-22  Christian Bruel  <christian.bruel@st.com>
12122         * config/arm/arm-c.c (arm_pragma_target_parse):
12123         Remove warn_builtin_macro_redefined overwrite.
12125 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12127         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
12128         flag_non_call_exceptions compatibility.
12130 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
12132         PR debug/66668
12133         * dwarf2out.c (add_child_die_after): New function.
12134         (dwarf_qual_info_t): New type.
12135         (dwarf_qual_info): New variable.
12136         (qualified_die_p): New function.
12137         (modified_type_die): For -fdebug-types-section, ensure
12138         canonical order of qualifiers.  Put qualified DIEs adjacent
12139         to the corresponding non-qualified type DIE and search there
12140         for existing qualified DIEs.
12142 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12144         * doc/extend.texi (scalar_storage_order type attribute): Document
12145         restriction on type punning and aliasing, and remove future tense.
12147 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
12149         PR target/69252
12150         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
12151         first stage.
12153 2016-01-21  Jeff Law  <law@redhat.com>
12155         PR middle-end/69347
12156         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
12157         useless call to record_temporary_equivalences.
12158         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
12159         allocate 10 slots in the bb_path vector and let it grow as needed.
12160         (fsm_find_control_statement_thread_paths): Similarly for the next_path
12161         vector.
12163 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
12165         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
12166         Detangle.
12167         * configure: Regenerate.
12169 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
12171         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
12172         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
12174 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
12176         PR middle-end/66178
12177         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
12178         drop EXPAND_INITIALIZER.
12179         * rtl.h (contains_symbolic_reference_p): Declare.
12180         * rtlanal.c (contains_symbolic_reference_p): New function.
12181         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
12182         a subtraction into a NOT if symbolic constants are involved.
12184 2016-01-21  Anton Blanchard  <anton@samba.org>
12185             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12187         PR target/63354
12188         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
12189         #define.
12190         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
12191         function.
12193 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
12195         * config/microblaze/microblaze.c
12196         (get_branch_target): New.
12197         (insert_wic_for_ilb_runout): New.
12198         (insert_wic): New.
12199         (microblaze_machine_dependent_reorg): New.
12200         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
12201         * config/microblaze/microblaze.md
12202         (UNSPEC_IPREFETCH): Define.
12203         (iprefetch): New pattern
12204         * config/microblaze/microblaze.opt
12205         (mxl-prefetch): New flag.
12207 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
12209         * config/microblaze/microblaze.h
12210         (FIXED_REGISTERS): Update in macro.
12211         (CALL_USED_REGISTERS): Update in macro.
12213 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
12215         PR rtl-optimization/68920
12216         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
12217         moves.
12219 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
12221         PR rtl-optimization/68990
12222         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
12223         pseudo instead of inheritance ones.
12225 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12226             Nick Clifton  <nickc@redhat.com>
12228         PR target/69129
12229         PR target/69012
12230         * config/mips/mips.c (mips_compute_frame_info): Initialise
12231         args_size and hard_frame_pointer_offset fields of the frame
12232         structure before calling mips_global_pointer.
12234 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
12236         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
12237         label reference.
12238         * configure: Regenerate.
12240 2016-01-21  Richard Biener  <rguenther@suse.de>
12242         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
12244 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
12246         * config/s390/s390.c (s390_asm_declare_function_size): Add code
12247         to actually emit the .size directive.
12249 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
12250              Jakub Jelinek  <jakub@redhat.com>
12252         PR target/69187
12253         PR target/65624
12254         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
12255         args array size by one to avoid buffer overflow.
12257 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
12259         * config/s390/s390.md (pool_section_start): Use switch_to_section
12260         to select proper read-only data section instead of hardcoding
12261         .rodata.
12262         (pool_section_end): Use switch_to_section to match the above.
12264 2016-01-21  Richard Biener  <rguenther@suse.de>
12266         PR tree-optimization/69378
12267         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
12268         (set_ssa_val_to): Use it for dominance checks taking into
12269         account not executable edges.
12271 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
12273         PR c++/69355
12274         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
12275         for bitsize instead of GET_MODE_PRECISION (mode).
12277 2016-01-20  Martin Sebor  <msebor@redhat.com>
12279         PR c/52291
12280         * extend.texi (__sync Builtins): Clarify the semantics of
12281         __sync_fetch_and_OP built-ins on pointers.
12282         (__atomic Builtins): Same.
12284 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12285             Sebastian Pop  <s.pop@samsung.com>
12287         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
12288         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
12289         (is_valid_rename): Same.
12290         (translate_isl_ast_to_gimple::get_rename): Same.
12291         (translate_isl_ast_to_gimple::rename_all_uses): Same.
12292         (translate_isl_ast_to_gimple::rename_uses): Same.
12293         (get_new_name): Check for close_phi nodes.
12294         (copy_loop_phi_args): Use phi_node_kind.
12295         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
12296         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
12298 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12299             Sebastian Pop  <s.pop@samsung.com>
12301         Revert commit r229783.
12302         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12303         Remove use of parameter_rename_map.
12304         (copy_def): Remove.
12305         (copy_internal_parameters): Remove.
12306         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
12307         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
12308         (free_sese_info): Do not free parameter_rename_map.
12309         (set_rename): Do not use parameter_rename_map.
12310         (rename_uses): Update call to set_rename.
12311         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
12312         * sese.h (parameter_rename_map_t): Remove.
12313         (struct sese_info_t): Remove field parameter_rename_map.
12315 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12316             Sebastian Pop  <s.pop@samsung.com>
12318         * graphite-isl-ast-to-gimple.c: Fix comment.
12319         * graphite-scop-detection.c (defined_in_loop_p): New.
12320         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
12321         names defined in loop.
12323 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12324             Sebastian Pop  <s.pop@samsung.com>
12326         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
12327         Discard unstructured if-then-else regions.
12329 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12330             Sebastian Pop  <s.pop@samsung.com>
12332         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
12333         (cleanup_loop_iter_dom): Remove.
12334         (build_loop_iteration_domains): Remove.
12335         (build_scop_context): Remove.
12336         (build_scop_iteration_domain): Remove.
12337         (add_loop_constraints): New.
12338         (build_iteration_domains): New.
12339         (build_poly_scop): Call build_iteration_domains.
12341 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12342             Sebastian Pop  <s.pop@samsung.com>
12344         * graphite-scop-detection.c
12345         (scop_detection::harmful_loop_in_region): Free dom and loops.
12346         (scop_detection::loop_body_is_valid_scop): Free bbs.
12348 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12349             Sebastian Pop  <s.pop@samsung.com>
12351         * graphite-scop-detection.c (record_loop_in_sese): New.
12352         (gather_bbs::before_dom_children): Call record_loop_in_sese.
12353         (build_scops): Remove call to build_sese_loop_nests.
12354         * sese.c (sese_record_loop): Remove.
12355         (build_sese_loop_nests): Remove.
12356         (new_sese_info): Remove region->loops.
12357         (free_sese_info): Same.
12358         * sese.h (sese_contains_loop): Same.
12359         (build_sese_loop_nests): Remove.
12360         (sese_contains_loop): Remove.
12362 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12363             Sebastian Pop  <s.pop@samsung.com>
12365         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
12366         loop_is_valid_in_scop.
12367         (scop_detection::harmful_stmt_in_region): Renamed
12368         harmful_loop_in_region.
12369         Call loop_is_valid_in_scop.
12371 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12372             Sebastian Pop  <s.pop@samsung.com>
12374         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
12375         isl_ast_node_mark.
12377 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12378             Sebastian Pop  <s.pop@samsung.com>
12380         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
12381         * graphite.h (struct poly_bb): Remove field is_reduction.
12382         (PBB_IS_REDUCTION): Remove.
12384 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
12385             Sebastian Pop  <s.pop@samsung.com>
12387         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
12388         (add_pdr_constraints): Same.
12389         (scop_get_reads): Same.
12390         (scop_get_must_writes): Same.
12391         (scop_get_may_writes): Same.
12392         (scop_get_original_schedule): Same.
12393         (extend_schedule): Same.
12394         (apply_schedule_on_deps): Same.
12395         (carries_deps): Same.
12396         (compute_deps): Same.
12397         (scop_get_dependences): Same.
12398         * graphite-isl-ast-to-gimple.c
12399         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
12400         * graphite-optimize-isl.c (get_schedule_for_band): Same.
12401         (get_schedule_for_band_list): Same.
12402         (get_schedule_map): Same.
12403         (apply_schedule_map_to_scop): Same.
12404         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12405         (build_loop_iteration_domains): Same.
12406         (add_condition_to_pbb): Same.
12407         (add_param_constraints): Same.
12408         (pdr_add_memory_accesses): Same.
12409         (pdr_add_data_dimensions): Same.
12411 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
12413         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
12414         requirements.
12416 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
12418         * common.opt (feliminate-dwarf2-dups): Replace references to
12419         "DWARF 2" with just "DWARF".
12420         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
12421         * doc/extend.texi: Likewise.
12422         * doc/cpp.texi: Likewise.
12423         * doc/invoke.texi: Likewise.
12424         (Option Summary): Add -gdwarf to list of Debugging Options.
12425         (Debugging Options): Document -gdwarf.
12426         * doc/contrib.texi: Spell "DWARF" like that.
12428 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
12430         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
12431         warning.  Fix up formatting.
12433         PR middle-end/67653
12434         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
12435         attempt to mark memory input operand addressable and
12436         call prepare_gimple_addressable in that case.  Don't adjust
12437         input_location for diagnostics, use error_at instead.
12439 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
12441         * config/rs6000/ppc-auxv.h: New file.
12442         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
12443         (cpu_is): Likewise.
12444         (cpu_supports): Likewise.
12445         * config/rs6000/rs6000.c: include "ppc-auxv.h".
12446         (cpu_is_info): New variable.
12447         (cpu_supports_info): Likewise.
12448         (tcb_verification_symbol): Likewise.
12449         (cpu_builtin_p): Likewise.
12450         (cpu_expand_builtin): New function.
12451         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
12452         (rs6000_init_builtins): Likewise.
12453         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
12454         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
12455         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
12456         * configure: Regenerate.
12457         * config.in: Likewise.
12458         * doc/extend.texi (PowerPC Built-in Functions): Document
12459         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
12461 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
12463         PR target/68609
12464         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
12465         domain check.
12466         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
12467         for V4SFmode.
12469 2016-01-20  Richard Henderson  <rth@redhat.com>
12471         PR bootstrap/69343
12472         PR bootstrap/69339
12473         PR tree-opt/68964
12474         Revert:
12475         * tree.c (tm_define_builtin): New.
12476         (find_tm_vector_type): New.
12477         (build_tm_vector_builtins): New.
12478         (build_common_builtin_nodes): Call it.
12480 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
12482         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
12483         (arm_fp_ok): Likewise.
12484         (arm_fp): Likewise.
12485         (arm_crypto): Likewise.
12487 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
12488             Richard Biener  <rguenther@suse.de>
12490         PR tree-optimization/69328
12491         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
12492         vectors have same number of elements.
12493         (vectorizable_condition): Fix masked version recognition.
12495 2016-01-20  Richard Biener  <rguenther@suse.de>
12497         PR tree-optimization/69345
12498         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
12499         (VN_INFO_PTR_INFO): Likewise.
12500         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
12501         info when it is equal between non-dominating SSA names.
12502         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12503         Make sure to look at original SSA infos.
12505 2016-01-20  Jeff Law  <law@redhat.com>
12507         PR target/25114
12508         * config/m68k/predicates.md (pow2_m1_operand): New predicate
12509         extracted from ...
12510         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
12511         (pc_or_label_operand): New predicate.
12512         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
12513         tests for small integers that are 2^n - 1.
12515 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
12517         * doc/invoke.texi (Options Summary): Add '.' after @xref.
12519 2016-01-19  Jeff Law  <law@redhat.com>
12521         PR middle-end/69347
12522         * tree-ssa-threadbackwards.c
12523         (fsm_find_control_statement_thread_paths): Do not try to lookup
12524         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
12526 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12528         * doc/lto.texi: Remove text that says only Gold has linker plugin
12529         support.
12531 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
12533         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
12534         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
12535         the DIE accordingly.
12536         (modified_type_die): Add REVERSE parameter and pass it recursively,
12537         as well as to base_type_die.  Adjust presence check accordingly.
12538         (base_type_for_mode): Adjust call to modified_type_die.
12539         (add_type_attribute): Add REVERSE parameter and pass it to
12540         modified_type_die.
12541         (generic_parameter_die): Adjust call to add_type_attribute.
12542         (add_scalar_info): Likewise.
12543         (add_subscript_info): Likewise.
12544         (gen_array_type_die): Likewise.
12545         (gen_descr_array_type_die): Likewise.
12546         (gen_entry_point_die): Likewise.
12547         (gen_enumeration_type_die): Likewise.
12548         (gen_formal_parameter_die): Likewise.
12549         (gen_subprogram_die): Likewise.
12550         (gen_variable_die ): Likewise.
12551         (gen_const_die): Likewise.
12552         (gen_field_die): Likewise.
12553         (gen_pointer_type_die): Likewise.
12554         (gen_reference_type_die): Likewise.
12555         (gen_ptr_to_mbr_type_die): Likewise.
12556         (gen_inheritance_die): Likewise.
12557         (gen_subroutine_type_die): Likewise.
12558         (gen_typedef_die): Likewise.
12559         (force_type_die): Adjust call to modified_type_die.
12561 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
12563         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
12564         flow throughout the file.  Fix broken link to Objective-C 2.0
12565         documentation.
12566         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
12567         errors.
12569 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
12571         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
12573 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12575         PR ipa/66223
12576         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
12577         (maybe_record_node): Record cxa_pure_virtual as the only possible
12578         target if there are not ohter candidates.
12579         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
12581 2016-01-19  Richard Biener  <rguenther@suse.de>
12583         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
12584         (get_memory_order): Likewise.
12586 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
12588         * tree-vect-stmts.c (vectorizable_store): Check
12589         rhs vectype.
12591 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
12593         PR jit/68446
12594         * gcc.c (driver::decode_argv): Add call to
12595         init_opts_obstack before init_options_struct.
12596         * opts.c (init_opts_obstack): Remove idempotency.
12597         (init_options_struct): Replace call to init_opts_obstack
12598         with a gcc_assert to verify that it has already been called.
12599         * toplev.c (toplev::main): Add call to init_opts_obstack before
12600         calls to init_options_struct.
12601         (toplev::finalize): Move cleanup of opts_obstack next to
12602         cleanup of save_decoded_options, clearing the latter, and
12603         save_decoded_options_count.
12605 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12607         PR target/69135
12608         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
12609         attribute to unconditional.  Remove %? from output template.
12611 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
12612             Jiong Wang  <jiong.wang@arm.com>
12614         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
12615         generated from different expand order.
12617 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
12619         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12620         Add support for CCMP costing.
12622 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
12624         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
12625         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
12626         (fccmpe<mode>): Likewise.
12627         (fcmp): Rename to fcmp and globalize pattern.
12628         (fcmpe): Likewise.
12629         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
12630         (aarch64_gen_ccmp_next): Add FP support.
12632 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
12634         * target.def (gen_ccmp_first): Update documentation.
12635         (gen_ccmp_next): Likewise.
12636         * doc/tm.texi (gen_ccmp_first): Update documentation.
12637         (gen_ccmp_next): Likewise.
12638         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
12639         expand_ccmp_expr_1.  Improve comments.
12640         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
12641         (ccmp_ior<mode>): Remove pattern.
12642         (cmp<mode>): Remove expand.
12643         (cmp): Globalize pattern.
12644         (cstorecc4): Use cc_register.
12645         (mov<mode>cc): Remove ccmp_cc_register check.
12646         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
12647         Simplify after removal of CC_DNE/* modes.
12648         (aarch64_ccmp_mode_to_code): Remove.
12649         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
12650         In 'k' case use integer as condition.
12651         (aarch64_nzcv_codes): Remove inverted cases.
12652         (aarch64_code_to_ccmode): Remove.
12653         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
12654         comparison with CC register to be used in folowing CCMP/branch/CSEL.
12655         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
12656         pattern.  Return the comparison with CC register.  Invert conditions
12657         when bitcode is OR.
12658         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
12659         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
12661 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12663         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12664         instrumented_version.
12666 2016-01-19  Richard Biener  <rguenther@suse.de>
12668         PR tree-optimization/69336
12669         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
12670         handled components with get_ref_base_and_extent.
12671         (equal_mem_array_ref_p): Adjust.
12673 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
12675         PR debug/65779
12676         * shrink-wrap.c: Include valtrack.h.
12677         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
12678         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
12679         in between insn and where it will be moved to.  Call
12680         dead_debug_insert_temp.
12681         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
12682         first and dead_debug_local_finish at the end.
12683         For uses and defs bitmap, handle all regs in between REGNO and
12684         END_REGNO, not just the first one.
12686 2016-01-19  Richard Biener  <rguenther@suse.de>
12688         PR tree-optimization/69352
12689         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
12690         (equal_mem_array_ref_p): Constrain size and max size properly.
12691         Compare the reverse flag.
12693 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
12695         * ira.c (ira): Update regstat data if we deleted insns.
12697 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
12699         PR rtl-optimization/68955
12700         PR rtl-optimization/64557
12701         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
12702         here.  Fix up formatting.
12703         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
12705 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12707         PR lto/69133
12708         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
12709         assume that the node has body.
12710         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
12711         check.
12713 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12715         * lto-streamer-out.c (lto_output): Do not stream instrumentation
12716         thunks.
12718 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12720         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
12721         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
12723 2016-01-19  Martin Jambor  <mjambor@suse.cz>
12724             Martin Liska  <mliska@suse.cz>
12725             Michael Matz  <matz@suse.de>
12727         * Makefile.in (OBJS): Add new source files.
12728         (GTFILES): Add hsa.c.
12729         * common.opt (disable_hsa): New variable.
12730         (-Whsa): New warning.
12731         * config.in (ENABLE_HSA): New.
12732         * configure.ac: Treat hsa differently from other accelerators.
12733         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
12734         $enable_offloading.
12735         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
12736         * doc/install.texi (Configuration): Document --with-hsa-runtime,
12737         --with-hsa-runtime-include, --with-hsa-runtime-lib and
12738         --with-hsa-kmt-lib.
12739         * doc/invoke.texi (-Whsa): Document.
12740         (hsa-gen-debug-stores): Likewise.
12741         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
12742         to invoke offload compiler for hsa acclerator.
12743         * opts.c (common_handle_option): Determine whether HSA offloading
12744         should be performed.
12745         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
12746         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
12747         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
12748         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
12749         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
12750         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
12751         GF_OMP_FOR_KIND_GRID_LOOP.
12752         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
12753         (pp_gimple_stmt_1): Likewise.
12754         * gimple-walk.c (walk_gimple_stmt): Likewise.
12755         * gimple.c (gimple_build_omp_grid_body): New function.
12756         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
12757         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
12758         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
12759         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
12760         GF_OMP_TEAMS_GRID_PHONY.
12761         (gimple_statement_omp_single_layout): Updated comments.
12762         (gimple_build_omp_grid_body): New function.
12763         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
12764         (gimple_omp_for_grid_phony): New function.
12765         (gimple_omp_for_set_grid_phony): Likewise.
12766         (gimple_omp_parallel_grid_phony): Likewise.
12767         (gimple_omp_parallel_set_grid_phony): Likewise.
12768         (gimple_omp_teams_grid_phony): Likewise.
12769         (gimple_omp_teams_set_grid_phony): Likewise.
12770         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
12771         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
12772         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
12773         (BUILT_IN_GOMP_TARGET): Updated type.
12774         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
12775         (adjust_for_condition): New function.
12776         (get_omp_for_step_from_incr): Likewise.
12777         (extract_omp_for_data): Moved parts to adjust_for_condition and
12778         get_omp_for_step_from_incr.
12779         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
12780         (fixup_child_record_type): Bail out if receiver_decl is NULL.
12781         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
12782         (scan_omp_parallel): Do not create child functions for phony
12783         constructs.
12784         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
12785         (scan_omp_1_op): Checking assert we are not remapping to
12786         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
12787         (parallel_needs_hsa_kernel_p): New function.
12788         (expand_parallel_call): Register apprpriate parallel child
12789         functions as HSA kernels.
12790         (grid_launch_attributes_trees): New type.
12791         (grid_attr_trees): New variable.
12792         (grid_create_kernel_launch_attr_types): New function.
12793         (grid_insert_store_range_dim): Likewise.
12794         (grid_get_kernel_launch_attributes): Likewise.
12795         (get_target_argument_identifier_1): Likewise.
12796         (get_target_argument_identifier): Likewise.
12797         (get_target_argument_value): Likewise.
12798         (push_target_argument_according_to_value): Likewise.
12799         (get_target_arguments): Likewise.
12800         (expand_omp_target): Call get_target_arguments instead of looking
12801         up for teams and thread limit.
12802         (grid_expand_omp_for_loop): New function.
12803         (grid_arg_decl_map): New type.
12804         (grid_remap_kernel_arg_accesses): New function.
12805         (grid_expand_target_kernel_body): New function.
12806         (expand_omp): Call it.
12807         (lower_omp_for): Do not emit phony constructs.
12808         (lower_omp_taskreg): Do not emit phony constructs but create for them
12809         a temporary variable receiver_decl.
12810         (lower_omp_taskreg): Do not emit phony constructs.
12811         (lower_omp_teams): Likewise.
12812         (lower_omp_grid_body): New function.
12813         (lower_omp_1): Call it.
12814         (grid_reg_assignment_to_local_var_p): New function.
12815         (grid_seq_only_contains_local_assignments): Likewise.
12816         (grid_find_single_omp_among_assignments_1): Likewise.
12817         (grid_find_single_omp_among_assignments): Likewise.
12818         (grid_find_ungridifiable_statement): Likewise.
12819         (grid_target_follows_gridifiable_pattern): Likewise.
12820         (grid_remap_prebody_decls): Likewise.
12821         (grid_copy_leading_local_assignments): Likewise.
12822         (grid_process_kernel_body_copy): Likewise.
12823         (grid_attempt_target_gridification): Likewise.
12824         (grid_gridify_all_targets_stmt): Likewise.
12825         (grid_gridify_all_targets): Likewise.
12826         (execute_lower_omp): Call grid_gridify_all_targets.
12827         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
12828         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
12829         (tree_omp_clause): Added union field dimension.
12830         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
12831         * tree.c (omp_clause_num_ops): Added number of arguments of
12832         OMP_CLAUSE__GRIDDIM_.
12833         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
12834         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
12835         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
12836         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
12837         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
12838         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
12839         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
12840         * tree-pass.h (make_pass_gen_hsail): Declare.
12841         (make_pass_ipa_hsa): Likewise.
12842         * ipa-hsa.c: New file.
12843         * lto-section-in.c (lto_section_name): Add hsa section name.
12844         * lto-streamer.h (lto_section_type): Add hsa section.
12845         * timevar.def (TV_IPA_HSA): New.
12846         * hsa-brig-format.h: New file.
12847         * hsa-brig.c: New file.
12848         * hsa-dump.c: Likewise.
12849         * hsa-gen.c: Likewise.
12850         * hsa.c: Likewise.
12851         * hsa.h: Likewise.
12852         * toplev.c (compile_file): Call hsa_output_brig.
12853         * hsa-regalloc.c: New file.
12855 2016-01-18  Jeff Law  <law@redhat.com>
12857         PR tree-optimization/69320
12858         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
12859         ranged object, do nothing if the RHS constant is not [0..1].
12860         (optimize_stmt): Comparing a boolean ranged object against a
12861         constant outside [0..1] results in a compile-time constant.
12863         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
12864         test.
12866 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
12868         * doc/invoke.texi (Invoking GCC): Add new section to menu.
12869         (Option Summary): Update to reflect new section and moved options.
12870         (C++ Dialect Options): Move -fstats to new section.
12871         (Debugging Options): Move all dump, statistics, and other GCC
12872         developer options to new section.  Rewrite section introduction
12873         and re-order remaining options to put the more basic ones first.
12874         (Optimization Options): Move -fira-verbose and -flto-report* to
12875         new section.
12876         (Developer Options): New section incorporating moved options.
12877         * doc/cppopts.texi (-dM): Update cross-reference.
12879 2016-01-18  Richard Henderson  <rth@redhat.com>
12881         PR target/69176
12882         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
12883         operands to pseudo only if CSE is expected.  Split long immediate
12884         operands only after reload, and for the stack pointer.
12885         (*add<GPI>3_pluslong): Remove.
12886         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
12887         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
12888         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
12889         (*add<GPI>3 peepholes): New.
12890         (*add<GPI>3 splitters): New.
12891         * config/aarch64/constraints.md (Upl): New.
12892         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
12894 2016-01-18  Richard Biener  <rguenther@suse.de>
12896         PR tree-optimization/69297
12897         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
12898         stmt at most once.
12899         (vect_bb_vectorization_profitable_p): Clear visited flag again.
12901 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
12903         PR middle-end/68542
12904         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
12905         of mixind vector and scalar types.
12906         (fold_relational_const): Add handling of vector
12907         comparison with boolean result.
12908         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
12909         comparison of vector operands with boolean result for EQ/NE only.
12910         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
12911         (verify_gimple_cond): Likewise.
12912         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
12913         valid type of VAL.
12915 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
12917         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
12918         !TARGET_OCTEON.
12920 2016-01-18  Richard Biener  <rguenther@suse.de>
12922         PR middle-end/69308
12923         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
12925 2016-01-18  Tom de Vries  <tom@codesourcery.com>
12927         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
12929 2016-01-18  Tom de Vries  <tom@codesourcery.com>
12931         * omp-low.c (set_oacc_fn_attrib): Make extern.
12932         * omp-low.h (set_oacc_fn_attrib): Declare.
12933         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
12934         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
12935         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
12936         Add and handle function parameter oacc_kernels_p.
12937         (find_reduc_addr, get_omp_data_i_param): New function.
12938         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
12939         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
12940         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
12941         Calculate dominance info.  Skip loops that are not in a kernels region
12942         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
12943         (pass_parallelize_loops::execute): Call parallelize_loops with
12944         oacc_kernels_p argument.
12945         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
12946         New member function.
12947         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
12948         * passes.def: Add argument to pass_parallelize_loops instantation.
12950 2016-01-18  Tom de Vries  <tom@codesourcery.com>
12952         * tree-parloops.c (pass_parallelize_loops::execute): Allow
12953         pass_parallelize_loops to be run outside the loop pipeline.
12955 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
12957         * tree-scalar-evolution.c (follow_copies_to_constant): New.
12958         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
12960 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
12962         PR target/63679
12963         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
12964         using get_ref_base_and_extent.
12965         (equal_mem_array_ref_p): New.
12966         (hashable_expr_equal_p): Add call to previous.
12968 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
12970         PR target/63679
12971         * tree-sra.c (disqualified_constants, constant_decl_p): New.
12972         (sra_initialize): Allocate disqualified_constants.
12973         (sra_deinitialize): Free disqualified_constants.
12974         (disqualify_candidate): Update disqualified_constants when appropriate.
12975         (create_access): Scan for constant-pool entries as we go along.
12976         (scalarizable_type_p): Add check against type_contains_placeholder_p.
12977         (maybe_add_sra_candidate): Allow constant-pool entries.
12978         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
12979         (initialize_constant_pool_replacements): New.
12980         (sra_modify_assign): Avoid mangling assignments created by previous,
12981         and don't generate writes into constant pool.
12982         (sra_modify_function_body): Call initialize_constant_pool_replacements.
12984 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12986         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
12987         andnot instruction.
12988         (scalar_chain::convert_op): Likewise.
12989         * config/i386/i386.md (*andndi3_doubleword): New.
12991 2016-01-18  Richard Biener  <rguenther@suse.de>
12993         PR tree-optimization/69170
12994         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
12995         building a vector from scalar results of a pattern stmt.
12997 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
12999         * haifa-sched.c (autopref_multipass_init): Work around
13000         -Wmaybe-uninitialized warning.
13002 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13004         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
13005         against the constant 0.
13007 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13009         PR tree-optimization/68799
13010         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
13011         look up phi candidates in the statement-candidate map.
13012         (phi_add_costs): Likewise.
13013         (record_phi_increments): Likewise.
13014         (phi_incr_cost): Likewise.
13015         (ncd_with_phi): Likewise.
13016         (all_phi_incrs_profitable): Likewise.
13018 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
13020         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
13021         -Wmaybe-uninitialized warning.
13023 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
13025         * doc/invoke.texi (Invoking GCC): Add new section to menu.
13026         (Option Summary): Update to reflect new section and moved options.
13027         (C++ Dialect Options): Move -fvtable-verify and related options.
13028         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
13029         and profiling-related options.
13030         (Optimization Options): Move profile generation options and
13031         -fstack-protector and related options.
13032         (Instrumentation Options): New section incorporating moved options.
13033         (Code Generation Options): Move -finstrument-functions and
13034         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
13036 2016-01-16  Tom de Vries  <tom@codesourcery.com>
13038         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
13040 2016-01-16  Tom de Vries  <tom@codesourcery.com>
13042         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
13044 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
13046         * hash-table.h (hash_table::empty): Turn into an inline wrapper
13047         that checks whether the table is already empty.  Rename the
13048         original implementation to...
13049         (hash_table::empty_slot): ...this new private function.
13051 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
13053         PR diagnostic/68899
13054         * diagnostic-show-locus.c (layout::print_source_line): Move x
13055         offset of line until after call to
13056         get_line_width_without_trailing_whitespace.
13058 2016-01-15  Jeff Law  <law@redhat.com>
13060         PR tree-optimization/69270
13061         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
13062         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
13063         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
13064         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
13065         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
13066         ssa_name_has_boolean_range and constant_boolean_node.
13068 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
13070         PR rtl-optimization/69030
13071         * lra-spills.c (remove_pseudos): Check nrefs and make the function
13072         returning bool.
13073         (spill_pseudos): Delete debug insn for dead pseudo.
13074         (lra_spill): Initiate spill_hard_reg and slots memory separately.
13076 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
13078         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
13079         New.
13080         (TYPES_UNOPUS): Likewise.
13081         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
13082         builtin type, from UNOP to UNOPUS.
13083         (lbtruncuv4sf): Likewise.
13084         (lbtruncuv2df): Likewise.
13085         (lrounduv2sf): Likewise.
13086         (lrounduv4sf): Likewise.
13087         (lrounduv2df): Likewise.
13088         (lroundusf): Likewise.
13089         (lroundusf): Likewise.
13090         (lceiluv2sf): Likewise.
13091         (lceiluv4sf): Likewise.
13092         (lceiluv2df): Likewise.
13093         (lceilusf): Likewise.
13094         (lceiludf): Likewise.
13095         (lflooruv2sf): Likewise.
13096         (lflooruv4sf): Likewise.
13097         (lflooruv2df): Likewise.
13098         (lfloorusf): Likewise.
13099         (lfloorudf): Likewise.
13100         (lfrintnuv2sf): Likewise.
13101         (lfrintnuv4sf): Likewise.
13102         (lfrintnuv2df): Likewise.
13103         (lfrintnusf): Likewise.
13104         (lfrintnudf): Likewise.
13105         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
13106         conversion.
13107         (vcvtq_u32_f32): Likewise.
13108         (vcvtq_u64_f64): Likewise.
13109         (vcvta_u32_f32): Likewise.
13110         (vcvtaq_u32_f32): Likewise.
13111         (vcvtaq_u64_f64): Likewise.
13112         (vcvtm_u32_f32): Likewise.
13113         (vcvtmq_u32_f32): Likewise.
13114         (vcvtmq_u64_f64): Likewise.
13115         (vcvtn_u32_f32): Likwise.
13116         (vcvtnq_u32_f32): Likewise.
13117         (vcvtnq_u64_f64): Likewise.
13118         (vcvtp_u32_f32): Likewise.
13119         (vcvtpq_u32_f32): Likewise.
13120         (vcvtpq_u64_f64): Likewise.
13121         (vcvtmd_u64_f64): Likewise.
13122         (vcvtms_u32_f32): Likewise.
13123         (vcvtad_u64_f64): Likewise.
13124         (vcvtas_u32_f32): Likewise.
13125         (vcvtnd_u64_f64): Likewise.
13126         (vcvtns_u32_f32): Likewise.
13127         (vcvtpd_u64_f64): Likewise.
13128         (vcvtps_u32_f32): Likewise.
13130 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13132         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
13133         CSEL of zero_extended registers.
13135 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13137         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
13138         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
13140 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13142         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
13143         false when argument string is not found in the attributes table
13144         at all.
13146 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
13148         PR target/68609
13149         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
13150         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
13151         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
13152         precision estimate.
13154 2016-01-15  Richard Biener  <rguenther@suse.de>
13156         PR tree-optimization/66856
13157         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
13158         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
13159         (vect_create_new_slp_node): Increment stmt reference count.
13160         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
13161         an SLP tree before swapping operands.
13162         (vect_build_slp_tree): Likewise.
13163         (destroy_bb_vec_info): Free stmt info after SLP instances.
13164         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
13165         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
13166         (STMT_VINFO_NUM_SLP_USES): New macro.
13168 2016-01-15  Richard Biener  <rguenther@suse.de>
13170         PR debug/69137
13171         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
13172         (add_linkage_name): ... here.
13173         (gen_typedef_die): Use add_linkage_name_raw instead of
13174         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
13175         if necessary.
13177 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13179         * gimplify.c (oacc_default_clause): Decode reference and pointer
13180         types for both kernels and parallel regions.
13182 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
13184         PR middle-end/69246
13185         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
13187 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
13189         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
13190         (convert_scalars_to_vector): Likewise.
13192 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
13194         * doc/extend.texi (Type Traits): Fix grammar.
13196 2016-01-15  Martin Jambor  <mjambor@suse.cz>
13198         * tree-inline.c (remap_decl): Use existing dclarations if
13199         remapping a type and prevent_decl_creation_for_types.
13200         (replace_locals_stmt): Do an initial remapping of non-VLA typed
13201         decls first.  Do real remapping with
13202         prevent_decl_creation_for_types set.
13203         * tree-inline.h (copy_body_data): New field
13204         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
13205         padding.
13207 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13209         * config/s390/s390.opt (mmvcle): More verbose help text.
13211 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13213         * config/s390/s390.opt: Add period to -mzvector option text.
13215 2016-01-15  Richard Biener  <rguenther@suse.de>
13217         PR tree-optimization/68961
13218         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
13219         of invariants in stores again.
13221 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13223         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
13225 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
13227         * config/i386/i386.c (ix86_expand_branch): Don't split
13228         DI mode xor instruction to SI mode.
13230 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
13232         PR ipa/68148
13233         * ipa-icf.c (sem_function::merge): Virtual functions may become
13234         reachable even if they address is not taken and there are no
13235         idrect calls.
13237 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
13239         * lto-streamer-out.c (subtract_estimated_size): New function.
13240         (get_symbol_initial_value): Use it.
13242 2016-01-15  Christian Bruel  <christian.bruel@st.com>
13244         PR target/65837
13245         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
13246         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
13247         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
13248         use add_builtin_function_ext_scope instead of add_builtin_function.
13249         (neon_set_p, neon_crypto_set_p): Remove.
13250         (arm_init_builtins): Always call arm_init_neon_builtins and
13251         arm_init_crypto_builtins.
13252         (arm_expand_builtin): Check that builtins are allowed for the arch.
13253         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
13254         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
13255         arm_init_neon_builtins call.
13257 2016-01-15  Richard Biener  <rguenther@suse.de>
13259         PR tree-optimization/69117
13260         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
13261         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
13262         of the leader conservatively.
13263         (free_scc_vn): Restore original SSA name infos.
13265 2016-01-14  Jeff Law  <law@redhat.com>
13267         PR tree-optimization/69270
13268         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
13269         single bit of precision, verify it's also unsigned.
13270         (record_edge_info): Use constant_boolean_node rather than fold_convert
13271         to convert boolean_true/boolean_false to the right type.
13273 2016-01-14  Richard Henderson  <rth@redhat.com>
13275         PR rtl-opt/69014
13276         * loop-doloop.c (record_reg_sets): New.
13277         (doloop_optimize): Reject the transform if the sequence
13278         clobbers registers live at the end of the loop block.
13279         (doloop_optimize_loops): Enable df_live if needed.
13281 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13283         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
13284         * config/rs6000/rs6000.c: Likewise.
13285         * config/rs6000/rs6000.h: Likewise.
13286         * config/rs6000/rs6000.md: Likewise.
13287         * doc/extend.texi: Likewsie.
13289 2016-01-14  Jeff Law  <law@redhat.com>
13291         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
13292         typo.
13294 2016-01-14  Richard Henderson  <rth@redhat.com>
13296         PR c/69272
13297         PR tree-opt/68964
13298         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
13299         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
13300         instead of builtin_decl_declared_p to test for declaration.
13302 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
13304         * doc/loop.texi (Loop Analysis and Representation): Document
13305         loop_depth function.
13307 2016-01-14  Tom de Vries  <tom@codesourcery.com>
13309         PR tree-optimization/68773
13310         * omp-low.c (expand_omp_target): Don't set force_output.
13311         * varpool.c (varpool_node::get_create): Same.
13312         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
13313         offload_funcs with force_output.
13315 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
13317         PR debug/69244
13318         * lra-eliminations.c (move_plus_up): Don't change anything if either
13319         the outer or inner subreg mode is not MODE_INT.
13320         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
13321         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
13323 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
13325         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
13326         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
13327         reduc_uplus_@var{m}): Remove.
13328         * expr.c (expand_expr_real_2): Remove expansion path for
13329         reduc_[us](min|max|plus) optabs.
13330         * optabs-tree.c (scalar_reduc_to_vector): Remove.
13331         * optabs-tree.h (scalar_reduc_to_vector): Remove.
13332         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
13333         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
13334         * tree-vect-loop.c (vectorizable_reduction): Remove test for
13335         reduc_[us](min|max|plus) optabs.
13337 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
13339         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
13340         (reduc_plus_scal_v2sf): New.
13341         (reduc_smax_v2sf): Rename to...
13342         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
13343         (reduc_smin_v2sf): Rename to...
13344         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
13346 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
13348         * alias.c (compare_base_symbol_refs): New function.
13349         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
13350         it.
13352 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
13354         PR middle-end/68146
13355         PR tree-optimization/69155
13356         * tree-complex.c: Include cfganal.h.
13357         (phis_to_revisit): New variable.
13358         (extract_component): Add phiarg_p argument.  Assert that returned
13359         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
13360         (update_phi_components): Partly rewrite to use loop over real/imag
13361         components instead of code duplication.  If extract_component returns
13362         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
13363         create_tmp_reg into the PHI node instead, and mention the phi triplet
13364         in phis_to_revisit.
13365         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
13366         in phis_to_revisit at the end.
13368 2016-01-14  Richard Biener  <rguenther@suse.de>
13370         PR tree-optimization/68060
13371         * tree-vect-loop.c (vect_is_simple_reduction): Check the
13372         outer loop reduction is only used in the inner loop before
13373         detecting a double reduction.
13375 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
13377         PR target/68269
13378         * combine.c (expand_field_assignment): Punt if compute_mode is
13379         unsupported scalar mode.
13381 2016-01-14  Richard Biener  <rguenther@suse.de>
13383         PR tree-optimization/66856
13384         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
13385         SLP node only if it built successfully.
13386         (vect_analyze_slp_instance): Adjust.
13388 2016-01-14  Jeff Law  <law@redhat.com>
13390         PR tree-optimization/69270
13391         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
13392         (record_edge_info): Use it.  Convert boolean_{true,false}_node
13393         to the type of op0.
13395 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
13397         PR ipa/66487
13398         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
13399         use block_ultimate_origin
13400         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
13402 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
13404         * doc/invoke.texi (Submodel Options): Rename section to
13405         "Machine-Dependent Options" to better reflect its content.
13406         Rewrite introductory text to remove archaic CPU names.
13407         Update references.
13409 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
13411         * doc/invoke.texi (Code Gen Options): Move section up in file,
13412         before target-specific options.  Update menu and option summary
13413         to reflect the new section ordering.
13415 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
13417         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
13418         (C++ Dialect Options): Add cross-reference to -std option.
13419         * doc/standards.texi (C++ Language): Document C++14 support.
13421 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13423         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
13424         for pack/unpack functions for __ibm128.
13425         (PACK_IF): Likewise.
13426         (UNPACK_IF): Likewise.
13428         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13429         support for __ibm128 pack/unpack functions.
13430         (rs6000_invalid_builtin): Likewise.
13431         (rs6000_init_builtins): Likewise.
13432         (rs6000_opt_masks): Likewise.
13434         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
13435         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
13436         functions
13437         (RS6000_BTM_COMMON): Likewise.
13439         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
13440         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
13441         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
13442         128-bit floating point.  Add support for the double values to be
13443         in Altivec registers for TF/IF packing and unpacking, but restrict
13444         TD packing sub-fields to be FPR registers.  Don't allow overlapped
13445         register support for packing.  Allow pack inputs to be memory
13446         locations.  Don't build generator functions for unpack<mode>_dm
13447         and unpack<mode>_nodm.
13448         (unpack<mode>_dm): Likewise.
13449         (unpack<mode>_nodm): Likewise.
13450         (pack<mode>): Likewise.
13452         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
13453         built-in functions to pack/unpack explicit __ibm128 values.
13454         (__builtin_unpack_ibm128): Likewise.
13456         * doc/extend.texi (PowerPC Built-in Functions): Document
13457         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
13459 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
13461         PR c/66208
13462         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
13463         Add new arg loc and pass it down as context.
13464         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
13465         to the location to use for the warning.
13466         (check_function_arguments): New arg loc.  All callers changed.  Pass
13467         it to check_function_nonnull.
13468         * c-common.h (check_function_arguments): Adjust declaration.
13470 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
13472         PR tree-optimization/69156
13473         * gimple.c (validate_type): Removed.
13474         (gimple_builtin_call_types_compatible_p): Use
13475         useless_type_conversion_p instead of validate_type.
13476         * value-prof.c (gimple_stringop_fixed_value): Fold
13477         icall_size to correct type.
13479 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
13481         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
13482         effects.
13484 2016-01-13  Richard Henderson  <rth@redhat.com>
13486         PR tree-opt/68964
13487         * target.def (builtin_tm_load, builtin_tm_store): Remove.
13488         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
13489         (ix86_builtin_tm_store): Remove.
13490         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13491         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13492         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13493         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13494         * doc/tm.texi: Rebuild.
13496         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
13497         (BUILT_IN_TM_MEMCPY_RTWN): New.
13498         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
13499         fallback from vector to integer helpers.
13500         (build_tm_load): Handle vector types directly, instead of
13501         via target hook.
13502         (build_tm_store): Likewise.
13503         (expand_assign_tm): Prepare for register types not handled by
13504         the above.  Copy them to memory and use memcpy.
13505         * tree.c (tm_define_builtin): New.
13506         (find_tm_vector_type): New.
13507         (build_tm_vector_builtins): New.
13508         (build_common_builtin_nodes): Call it.
13510 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
13512         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
13513         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
13515 2016-01-13  Tom de Vries  <tom@codesourcery.com>
13517         PR tree-optimization/69169
13518         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
13519         handled_struct_type param.
13520         (create_variable_info_for, intra_create_variable_infos): Call
13521         create_variable_info_for_1 with extra arg.
13523 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
13525         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
13526         and "armv8.1-a+crc" entries.
13528 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
13530         PR target/69228
13531         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
13532         Change first operand predicate from register_or_constm1_operand
13533         to register_operand.
13534         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
13535         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
13536         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
13537         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
13538         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
13539         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
13540         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
13541         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
13542         comparison with constm1_rtx from vec_prefetch_gen part.
13544 2016-01-13  Richard Biener  <rguenther@suse.de>
13546         PR tree-optimization/69013
13547         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
13548         Exchange assert for a test.
13550 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13552         PR target/69247
13553         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
13555 2016-01-13  Richard Biener  <rguenther@suse.de>
13557         PR tree-optimization/69242
13558         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
13559         assert with a check.
13561 2016-01-13  Richard Biener  <rguenther@suse.de>
13563         PR tree-optimization/69186
13564         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13565         Properly guard vect_update_misalignment_for_peel call.
13567 2016-01-12  Jeff Law  <law@redhat.com>
13569         PR tree-optimization/pr67755
13570         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
13571         "need_profile_correction".
13572         (thread_block_1): Initialize new field to false by default.  If we
13573         have multiple thread paths through a common joiner to different
13574         final targets, then set new field to true.
13575         (compute_path_counts): Only do count adjustment when it's really
13576         needed.
13578 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
13580         * doc/invoke.texi (Spec Files): Move section down in file, past
13581         all command-line option descriptions.
13583 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13585         PR middle-end/54809
13586         * doc/gty.texi: Remove documentation of mark_hook.
13587         * gengtype.c (struct write_types_data): Remove code to support
13588         mark_hook attribute.
13589         (walk_type): Likewise.
13590         (write_func_for_structure): Likewise.
13592 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
13594         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
13595         Directory Options, and -specs= to Overall Options.
13596         (Overall Options): Adjust similarly.  Reorder to group related
13597         options together.  Make -specs= cross-reference the spec file details.
13598         (Directory Options): Adjust similarly.
13600 2016-01-12  Jeff Law  <law@redhat.com>
13602         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
13604 2016-01-12  Olivier Hainque  <hainque@adacore.com>
13606         * gcc.c (spec_undefvar_allowed): New global.
13607         (process_command): Set to true when running for --version or --help,
13608         alone or together.
13609         (getenv_spec_function): When the variable is not defined, use the
13610         variable name as the variable value if we're allowed not to issue
13611         a fatal error.
13613 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
13615         PR tree-optimization/68911
13616         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
13617         information computed for expression "init + nit * step".
13619 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
13621         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
13622         about name of GCC executable.  Remove deleted node from menu.
13623         (Directory Options) <-B>: Remove cross-reference to deleted node.
13624         (Target Options): Delete section.
13626 2016-01-12  Christian Bruel  <christian.bruel@st.com>
13628         PR target/69180
13629         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
13630         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
13632 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
13634         PR target/69198
13635         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
13636         aligned_mem is properly set for AVX512-VL floating point masked
13637         stores.
13639         PR target/69175
13640         * ifcvt.c (cond_exec_process_if_block): When removing the last
13641         insn from then_bb, remove also any possible barriers that follow it.
13643 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
13645         PR target/68456
13646         PR target/69226
13647         * config/i386/iamcu.h (SIZE_TYPE): New macro.
13648         (PTRDIFF_TYPE): Likewise.
13649         (WCHAR_TYPE): Likewise.
13650         (WCHAR_TYPE_SIZE): Likewise.
13651         (STDINT_LONG32): Likewise.
13653 2016-01-12  Richard Biener  <rguenther@suse.de>
13655         PR tree-optimization/69053
13656         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
13657         convert initial value for cond reductions.
13659 2016-01-12  Richard Biener  <rguenther@suse.de>
13661         PR tree-optimization/69007
13662         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
13663         widen_sum after dot_prod and sad.
13665 2016-01-12  Richard Biener  <rguenther@suse.de>
13667         PR tree-optimization/69168
13668         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
13669         pattern stmt SLP type.
13670         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
13671         end up unused so cope with that case.
13673 2016-01-12  Richard Biener  <rguenther@suse.de>
13675         PR tree-optimization/69157
13676         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
13677         stmts def type only during analyze phase.
13678         (vectorizable_call): Likewise.
13679         (vectorizable_simd_clone_call): Likewise.
13680         (vectorizable_conversion): Likewise.
13681         (vectorizable_assignment): Likewise.
13682         (vectorizable_shift): Likewise.
13683         (vectorizable_operation): Likewise.
13684         (vectorizable_store): Likewise.
13685         (vectorizable_load): Likewise.
13687 2016-01-12  Richard Biener  <rguenther@suse.de>
13689         PR tree-optimization/69174
13690         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
13691         space.
13692         (vectorizable_load): Properly compute the number of loads needed
13693         for permuted strided SLP loads and do not spuriously assign
13694         to SLP_TREE_VEC_STMTS.
13696 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
13698         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
13699         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
13700         (MD_EXEC_PREFIX): Remove.
13701         (MD_STARTFILE_PREFIX) Removee.
13702         (FILE_NAME_ABSOLUTE_P): Remove.
13703         (CPP_SPEC): Do not read macros from sys/version.h.
13704         (LINK_COMMAND_SPEC): Remove.
13705         (LOCAL_INCLUDE_DIR): Remove.
13706         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
13707         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
13708         (POST_LINK_SPEC): Define to invoke stubify after linker
13709         (LIBSTDCXX): Remove define
13710         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
13711         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
13712         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
13713         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
13714         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
13715         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
13716         (i386_djgpp_asm_named_section): Add propotype of new procedure
13718         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
13719         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
13720         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
13721         in config/i386/djgpp.h).
13722         (STANDARD_STARTFILE_PREFIX_2): Define identical to
13723         STANDARD_STARTFILE_PREFIX_1.
13724         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
13725         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
13726         installation errors.
13727         (MAX_OFILE_ALIGNMENT): Define to 128.
13728         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
13730         * config/i386/djgpp.c: New file. Add implementation of
13731         i386_djgpp_asm_named_section.
13733         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
13735         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
13736         Add rule for building djgpp.o.
13738 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13740         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
13741         (rtx_is_swappable_p): Reductions are swappable.
13742         (insn_is_swappable_p): V2DF reductions are swappable.
13744 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
13746         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
13747         reloads for other unsupported memory operands.
13749 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13750             Jim Wilson  <jim.wilson@linaro.org>
13752         PR target/69194
13753         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
13754         copy_to_mode_reg instead of force_reg.
13756 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
13758         PR target/69225
13759         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
13760         TARGET_80387 is true.
13762 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
13764         PR target/69071
13765         * lra-eliminations.c (move_plus_up): Only move plus up
13766         if subreg of the constant can be simplified into constant
13767         and use the simplified subreg of the constant instead of
13768         the original constant.
13770         * fold-const.c (fold_convertible_p): Don't return true
13771         for conversion of VECTOR_TYPE to same sized integral type.
13772         (fold_convert_loc): Fix up formatting.  Fold conversion of
13773         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
13774         instead of NOP_EXPR.
13776         PR tree-optimization/69214
13777         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
13778         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
13779         Formatting fix.
13781         PR tree-optimization/69207
13782         * tree-vect-slp.c (vect_get_constant_vectors): For
13783         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
13784         fold_convertible_p to vector_type's element type, and always
13785         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
13787 2016-01-11  Richard Biener  <rguenther@suse.de>
13789         PR tree-optimization/69173
13790         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
13791         fixup the cycle if all stmts are in a pattern.
13793 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
13795         PR middle-end/68999
13796         * alias.c (base_alias_check): Move check for addresses with
13797         alignment ANDs before the call for compare_base_decls.
13798         (memrefs_conflict_p): Return -1 for different decls
13799         that went through alignment adjustments.
13801 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13803         PR rtl-optimization/68796
13804         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
13805         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
13806         and QImode comparisons against zero with CC_NZmode.
13807         * config/aarch64/iterators.md (short_mask): New mode_attr.
13809 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
13811         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
13812         (<avx512>_store<mode>_mask): Likewise.
13814 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
13815             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13817         PR rtl-optimization/68841
13818         * ifcvt.c (struct noce_if_info): Add orig_x field.
13819         (bbs_ok_for_cmove_arith): Add to_rename parameter.
13820         Don't record conflicts on to_rename if it's present.
13821         Allow memory destinations in sets.
13822         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
13823         blocks, passing orig_x to the checks.
13824         (noce_process_if_block): Set if_info->orig_x appropriately.
13826 2016-01-11  Tom de Vries  <tom@codesourcery.com>
13828         PR tree-optimization/69069
13829         * tree-parloops.c (create_parallel_loop): Add missing phi args.
13831 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
13833         PR rtl-optimization/68920
13834         * config/i386/i386.c (ix86_option_override_internal): Restrict number
13835         of conditional moves for  RTL if-conversion to 1 for
13836         TARGET_ONE_IF_CONV_INSN.
13837         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
13838         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
13839         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
13840         parameter to restirct number of conditional moves for
13841         RTL if-conversion.
13842         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
13843         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
13844         conditionl moves.
13846 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
13848         PR bootstrap/69123
13849         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
13850         onepart vars.  Fix typo in comment.  Fix reversed condition in
13851         unshare test.
13852         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
13854         PR bootstrap/69123
13855         * var-tracking.c (dump_onepart_variable_differences): New.
13856         (dataflow_set_different): If a detailed dump is requested,
13857         delay early returns and dump differences between onepart
13858         variables present before and after, and added variables.
13860 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
13862         PR target/69010
13863         * expr.c (expand_expr_real_1): For boolean vector constants
13864         with a scalar mode use const_scalar_mask_from_tree.
13865         (const_scalar_mask_from_tree): New.
13866         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
13867         assigned to a mask type to handle constants.
13869 2016-01-11  Martin Jambor  <mjambor@suse.cz>
13871         PR ipa/69044
13872         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
13873         useless parameters if we cannot change function signature.
13875 2016-01-11  Martin Jambor  <mjambor@suse.cz>
13877         PR ipa/66616
13878         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
13879         flag.
13881 2016-01-11  Tom de Vries  <tom@codesourcery.com>
13883         PR tree-optimization/69109
13884         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
13885         latch with phi.
13887 2016-01-11  Tom de Vries  <tom@codesourcery.com>
13889         PR tree-optimization/69108
13890         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
13891         res is not used in a phi.
13893 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
13895         PR 67425
13896         * common.opt (frandom-seed): Fix parameter name.
13897         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
13899 2016-01-11  Tom de Vries  <tom@codesourcery.com>
13901         PR tree-optimization/69058
13902         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
13903         not supported.
13905 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
13907         * config/arc/arc.opt (mdiv-rem): Add period to the end.
13908         (mcode-density): Likewise.
13910 2016-01-10  Tom de Vries  <tom@codesourcery.com>
13912         PR tree-optimization/69062
13913         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
13914         (parallelize_loops): Don't paralelize loop that has phi with address
13915         arg.
13917 2016-01-10  Tom de Vries  <tom@codesourcery.com>
13919         PR tree-optimization/69039
13920         * tree-parloops.c (try_create_reduction_list): Only allow single exit
13921         phi for reduction.
13923 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
13925         PR middle-end/68743
13926         * match.pd: Require target has function_c99_misc before doing
13927         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
13929 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
13931         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
13932         use GMPINC.
13933         * configure: Regenerate.
13935 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
13937         PR middle-end/50865
13938         PR tree-optimization/69097
13939         * fold-const.h (expr_not_equal_to): New prototype.
13940         * fold-const.c: Include stringpool.h and tree-ssanames.h.
13941         (expr_not_equal_to): New function.
13942         * match.pd (X % -Y is the same as X % Y): Don't optimize
13943         unless X is known not to be equal to minimum or Y is known
13944         not to be equal to -1.
13945         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
13946         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
13947         (simplify_stmt_using_ranges): Adjust caller.
13948         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
13949         substitute_and_fold.
13951 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
13953         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
13954         w/o DECL_NAME.
13956 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
13958         PR tree-optimization/69167
13959         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
13960         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
13961         ops[0] comparison.
13962         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
13964 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
13965             Richard Biener  <rguenther@suse.de>
13967         PR tree-optimization/68707
13968         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
13969         instances that can be handled via vect_load_lanes.
13971 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
13973         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
13974         if we can't determine address equivalence.
13975         * alias.c (compare_base_decl): Update for changed return value of
13976         symtab_node::equal_address_to.
13978 2016-01-08  Jason Merrill  <jason@redhat.com>
13980         PR c++/68983
13981         PR c++/67557
13982         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
13983         * expr.c (store_field): Not here.
13984         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
13985         call with TREE_ADDRESSABLE type.
13986         * tree-cfg.c (verify_gimple_call): Adjust.
13988 2016-01-08  Olivier Hainque  <hainque@adacore.com>
13990         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
13991         libc_internal.
13993 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
13995         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
13996         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
13997         (reduc_smin_v2sf): Rename to...
13998         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
13999         (reduc_splus_v2sf): Rename to...
14000         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
14002 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
14004         PR tree-optimization/69162
14005         * gimplify.c (gimplify_va_arg_expr): Encode original type of
14006         valist argument in another argument.
14007         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
14008         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
14009         to determine the va_list type, build a MEM_REF instead of
14010         build_fold_indirect_ref.
14012         PR tree-optimization/69172
14013         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
14014         gimple_build.
14016 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14018         PR tree-optimization/67781
14019         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
14020         and cmpnop in two steps: first the ones not accessed in original
14021         gimple expression in a endian independent way and then the ones not
14022         accessed in the final result in an endian-specific way.
14024 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
14026         PR tree-optimization/69083
14027         * tree-vect-slp.c (vect_get_constant_vectors): For
14028         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
14029         element type.  If op is fold_convertible_p to vector_type's element
14030         type, use NOP_EXPR instead of VCE.
14032 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
14034         PR rtl-optimization/67778
14035         PR rtl-optimization/68634
14036         PR rtl-optimization/68909
14037         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
14038         block from the stack until done with it.  Remove a superfluous
14039         bitmap set.  Remove a superfluous bitmap test.
14041 2016-01-07  Martin Sebor  <msebor@redhat.com>
14043         PR c/68966
14044         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
14045         constraint on the type of arguments.
14047 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
14049         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
14050         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
14051         unaligned_access on the gcc_options set.
14052         * config/arm/arm.c (arm_option_override_internal): Use
14053         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
14055 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
14057         PR target/69140
14058         * config/i386/i386.c (ix86_frame_pointer_required): Enable
14059         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
14061 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
14063         Revert
14064         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
14066         PR target/69140
14067         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14068         depending on frame_pointer_needed before remaining integer and SSE
14069         registers are saved.
14071 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14073         PR 1078
14074         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
14076 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14078         PR target/69171
14079         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
14080         Use the "xBm" constraint.
14081         (float<sseintvecmodelower><mode>2<mask_name><round_name):
14082         Likewise.
14083         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
14084         (sse_cvtsi2ssq<round_name>): Likewise.
14085         (sse_cvtss2si<round_name>): Likewise.
14086         (sse_cvtss2siq<round_name>): Likewise.
14087         (sse2_cvtsi2sdq<round_name>): Likewise.
14088         (sse2_cvtsd2si<round_name>): Likewise.
14089         (sse2_cvtsd2siq<round_name>): Likewise.
14090         * config/i386/subst.md (round_nimm_scalar_predicate): New
14091         predicate.
14093 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
14095         PR middle-end/67639
14096         * varasm.c (make_decl_rtl): Mark invalid register vars as
14097         DECL_EXTERNAL.
14099         PR rtl-optimization/66206
14100         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
14101         All callers changed.
14103 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
14105         PR tree-optimization/69141
14106         * tree-ssa-pre.c: Include langhooks.h.
14107         (eliminate_dom_walker::before_dom_children): Use
14108         lang_hooks.decl_printable_name instead of
14109         cgraph_node::get ()->name ().
14111         PR middle-end/68960
14112         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
14113         it and DECL_ALIGN too.
14115 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
14117         * config/mips/mips-ftypes.def: Sort to lexicographical order.
14119 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
14121         PR target/69140
14122         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14123         depending on frame_pointer_needed before remaining integer and SSE
14124         registers are saved.
14126 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14128         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
14129         mode iterator with VSX_M2.
14130         (*p9_vecstore_<mode>): Likewise.
14131         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
14132         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
14133         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
14134         (define_split for VSX_LE128 stores): Likewise.
14135         (define_peephole2 for TImode LE swaps): Likewise.
14136         (define_split for VSX_LE128 post-reload stores): Likewise.
14138 2016-01-06  Marek Polacek  <polacek@redhat.com>
14140         PR sanitizer/69099
14141         * convert.c (convert_to_integer_1): Adjust call to
14142         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
14143         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
14144         EXPR instead of ARG.
14145         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
14147 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
14149         PR 1078
14150         * doc/extend.texi (RL78 Variable Attributes): New section.
14152 2016-01-05  Marek Polacek  <polacek@redhat.com>
14154         PR c/69104
14155         * builtins.c (get_memmodel): Use expansion point location rather than
14156         the input location.  Call warning_at rather than warning.
14157         (expand_builtin_atomic_compare_exchange): Likewise.
14158         (expand_builtin_atomic_load): Likewise.
14159         (expand_builtin_atomic_store): Likewise.
14160         (expand_builtin_atomic_clear): Likewise.
14162 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
14164         PR target/68991
14165         * config/i386/i386.c (ix86_expand_vector_logical_operator):
14166         Replace nonimmediate_operand with vector_operand.
14167         * config/i386/predicates.md (vector_operand): New predicate.
14168         (general_vector_operand): Replace nonimmediate_operand with
14169         vector_operand.
14170         * config/i386/sse.md: Replace nonimmediate_operand with
14171         vector_operand and m constraint with Bm constraint on SSE
14172         patterns with 16-byte memory operand.
14173         * config/i386/subst.md (round_nimm_predicate): Replace
14174         nonimmediate_operand with vector_operand.
14175         (round_saeonly_nimm_predicate): Likewise.
14176         (round_saeonly_nimm_scalar_predicate): New.
14178 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
14180         PR target/68991
14181         * config/i386/constraints.md (Bm): New constraint.
14182         * config/i386/predicates.md (vector_memory_operand): New
14183         predicate.
14184         * config/i386/sse.md: Replace xm with xBm in plusminus and
14185         any_logic patterns.
14187 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
14189         PR 1078
14190         * doc/extend.texi (V850 Function Attributes): New section.
14191         (V850 Variable Attributes): New section.
14193 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
14195         PR 1078
14196         * doc/extend.texi (MicroBlaze Function Attributes): Document
14197         interrupt_handler and fast_interrupt attributes.
14199 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
14201         PR other/60465
14202         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
14203         for local symbolic operands.
14204         * config/ia64/predicates.md (local_symbolic_operand64): New
14205         predicate.
14207 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14209         PR rtl-optimization/68651
14210         * combine.c (combine_simplify_rtx): Canonicalize x + x into
14211         x << 1.
14213 2016-01-05  Nathan Sidwell  <nathan@acm.org>
14215         * alias.c (compare_base_decls): Use symtab_node::get.
14217 2016-01-05  Nick Clifton  <nickc@redhat.com>
14219         PR target/68770
14220         * ira-costs.c (copy_cost): Initialise the t_icode field of the
14221         secondary_reload_info structure.
14223         PR target/66655
14224         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
14225         decls if weak support is available.
14227 2016-01-04  Martin Sebor  <msebor@redhat.com>
14229         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
14231 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14233         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14234         OPTION_MASK_P9_DFORM.
14236         * config/rs6000/constraints.md (wo constraint): New constraint for
14237         ISA 3.0 (power9).
14239         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
14240         for wo constraint.
14241         (rs6000_init_hard_regno_mode_ok): Likewise.
14243         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
14244         wo constraint.
14246         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
14247         expanders not to have constraints.  Add support for ISA 3.0 xxperm
14248         instruction.  Add support for fusing xxlor with xxperm.
14249         (altivec_vperm_<mode>_internal): Likewise.
14250         (altivec_vperm_v8hiv16qi): Likewise.
14251         (altivec_vperm_<mode>v16q): Likewise.
14252         (altivec_vperm_<mode>_uns): Likewise.
14253         (vperm_v8hiv4si): Likewise.
14254         (vperm_v16qiv8hi): Likewise.
14256         * doc/md.texi (RS/6000 constraints): Document wo constraint.
14258 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
14260         Update copyright years.
14262         * gcc.c (process_command): Update copyright notice dates.
14263         * gcov-dump.c (print_version): Ditto.
14264         * gcov.c (print_version): Ditto.
14265         * gcov-tool.c (print_version): Ditto.
14266         * gengtype.c (create_file): Ditto.
14267         * doc/cpp.texi: Bump @copying's copyright year.
14268         * doc/cppinternals.texi: Ditto.
14269         * doc/gcc.texi: Ditto.
14270         * doc/gccint.texi: Ditto.
14271         * doc/gcov.texi: Ditto.
14272         * doc/install.texi: Ditto.
14273         * doc/invoke.texi: Ditto.
14275 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14277         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
14278         modes larger than TImode as TImode if NEON is not enabled.
14280 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14282         PR target/69100
14283         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
14284         mode for %f0-%f31 only if TARGET_FPU.
14286 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14288         PR target/69072
14289         * config/sparc/sparc.c (scan_record_type): Take into account subfields
14290         to compute the PACKED_P predicate.
14291         (function_arg_record_value): Minor tweaks.
14293 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14295         * doc/install.texi (--with-multilib-list): Describe the meaning of the
14296         option for arm*-*-* targets.
14298 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
14300         * doc/extend.texi (Common Function Attributes): Move docs for
14301         MSP430-specific attributes to....
14302         (MSP430 Function Attributes): ...here.  Delete the redundant
14303         entries and copy-edit the remaining text.
14304         (MSP430 Variable Attributes): Use uniform format for index
14305         entries and add a cross-reference to the corresponding function
14306         attribute docs.
14308 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
14310         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
14311         -finite-math typo.
14312         (x86 Options): Likewise.
14314 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
14316         PR 1078
14318         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
14319         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
14320         to corresponding attribute.
14322 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
14324         * doc/extend.texi (Common Function Attributes) <noplt>: Move
14325         to correct alphabetization of table.  Copy-edit and correct
14326         markup.
14327         <stack_protect>: Likewise.
14328         <target_clones>: Likewise.
14329         <simd>: Likewise.
14330         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
14331         Correct punctuation.
14332         (Code Gen Options) <-fno-plt>: Copy-edit.
14334 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14336         PR target/68917
14337         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
14338         SI values.  Explicitly convert SI to DI and vice-versa.
14340 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
14342         PR tree-optimization/69070
14343         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
14344         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
14346         PR sanitizer/69055
14347         * ubsan.c (ubsan_instrument_float_cast): Call
14348         initialize_sanitizer_builtins.
14350         PR target/69015
14351         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
14353 Copyright (C) 2016 Free Software Foundation, Inc.
14355 Copying and distribution of this file, with or without modification,
14356 are permitted in any medium without royalty provided the copyright
14357 notice and this notice are preserved.