tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid use of profile...
[gcc.git] / gcc / ChangeLog
1 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
2
3 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4 use of profile unless profile status is PROFILE_READ.
5 * profile.c (compute_branch_probabilities): Set profile status
6 only after reporting predictor hitrates.
7
8 2016-06-03 Joseph Myers <joseph@codesourcery.com>
9
10 PR target/71276
11 PR target/71277
12 * common.opt (ffp-int-builtin-inexact): New option.
13 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
14 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
15 (ceil@var{m}2): Document dependence on this option.
16 * ipa-inline-transform.c (inline_call): Handle
17 flag_fp_int_builtin_inexact.
18 * ipa-inline.c (can_inline_edge_p): Likewise.
19 * config/i386/i386.md (rintxf2): Do not test
20 flag_unsafe_math_optimizations.
21 (rint<mode>2_frndint): New define_insn.
22 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
23 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
24 for 387 instead of extending and truncating.
25 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
26 !flag_trapping_math instead of flag_unsafe_math_optimizations.
27 Change to frndint<mode>2_<rounding>.
28 (frndintxf2_<rounding>_i387): Likewise. Change to
29 frndint<mode>2_<rounding>_i387.
30 (<rounding_insn>xf2): Likewise.
31 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
32 !flag_trapping_math instead of flag_unsafe_math_optimizations for
33 x87. Test TARGET_ROUND || !flag_trapping_math ||
34 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
35 SSE. Use ROUND_NO_EXC in constant operand of
36 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
37 for 387 instead of extending and truncating.
38
39 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
40 Julia Koval <julia.koval@intel.com>
41
42 PR target/66960
43 PR target/67630
44 PR target/67634
45 PR target/67841
46 PR target/68037
47 PR target/68618
48 PR target/68661
49 PR target/69575
50 PR target/69596
51 PR target/69734
52 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
53 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
54 all registers, except for function return registers if there are
55 no caller-saved registers.
56 (ix86_set_func_type): New function.
57 (ix86_set_current_function): Call ix86_set_func_type to set
58 no_caller_saved_registers and func_type. Call reinit_regs if
59 caller-saved registers are changed. Don't allow MPX, SSE, MMX
60 nor x87 instructions in interrupt handler nor function with
61 no_caller_saved_registers attribute.
62 (ix86_function_ok_for_sibcall): Return false if there are no
63 caller-saved registers.
64 (type_natural_mode): Don't warn ABI change for MMX in interrupt
65 handler.
66 (ix86_function_arg_advance): Skip for callee in interrupt
67 handler.
68 (ix86_function_arg): Return special arguments in interrupt
69 handler.
70 (ix86_promote_function_mode): Promote pointer to word_mode only
71 for normal functions.
72 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
73 interrupt handler.
74 (ix86_epilogue_uses): New function.
75 (ix86_hard_regno_scratch_ok): Likewise.
76 (ix86_save_reg): Preserve all registers in interrupt handler
77 after reload. Preserve all registers, except for function
78 return registers, if there are no caller-saved registers after
79 reload.
80 (find_drap_reg): Always use callee-saved register if there are
81 no caller-saved registers.
82 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
83 for interrupt handler.
84 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
85 Emit cld instruction if stringops are used in interrupt handler
86 or interrupt handler isn't a leaf function.
87 (ix86_expand_epilogue): Generate interrupt return for interrupt
88 handler and pop the 'ERROR_CODE' off the stack before interrupt
89 return in exception handler.
90 (ix86_expand_call): Disallow calling interrupt handler directly.
91 If there are no caller-saved registers, mark all registers that
92 are clobbered by the call which returns as clobbered.
93 (ix86_handle_no_caller_saved_registers_attribute): New function.
94 (ix86_handle_interrupt_attribute): Likewise.
95 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
96 attributes.
97 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
98 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
99 accumulation in interrupt function if stack may be realigned to
100 avoid DRAP.
101 (EPILOGUE_USES): New.
102 (function_type): New enum.
103 (machine_function): Add func_type and no_caller_saved_registers.
104 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
105 (interrupt_return): New pattern.
106 * doc/extend.texi: Document x86 interrupt and
107 no_caller_saved_registers attributes.
108
109 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
110
111 PR tree-optimization/52171
112 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
113 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
114 Look for constant strings. Move some code to emit_block_cmp_hints
115 and use it.
116 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
117 * defaults.h (COMPARE_MAX_PIECES): New macro.
118 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
119 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
120 (clear_by_pieces_1): Don't declare. Move definition before use.
121 (can_do_by_pieces): New static function.
122 (can_move_by_pieces): Use it. Return bool.
123 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
124 OP. All callers changed. Handle COMPARE_BY_PIECES.
125 (class pieces_addr); New.
126 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
127 pieces_addr::adjust, pieces_addr::increment_address,
128 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
129 functions for it.
130 (class op_by_pieces_d): New.
131 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
132 functions for it.
133 (class move_by_pieces_d, class compare_by_pieces_d,
134 class store_by_pieces_d): New subclasses of op_by_pieces_d.
135 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
136 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
137 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
138 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
139 compare_by_pieces_d::finish_mode): New member functions.
140 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
141 functions.
142 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
143 (emit_block_cmp_hints): New function.
144 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
145 use the newly defined classes.
146 * expr.h (by_pieces_constfn): New typedef.
147 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
148 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
149 (move_by_pieces_ninsns): Don't declare.
150 (can_move_by_pieces): Change return value to bool.
151 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
152 (compare_by_pieces_branch_ratio): New hook.
153 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
154 (by_pieces_ninsns): Declare.
155 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
156 COMPARE_BY_PIECES.
157 (default_compare_by_pieces_branch_ratio): New function.
158 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
159 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
160 * doc/tm.texi: Regenerate.
161 * tree-ssa-strlen.c: Include "builtins.h".
162 (handle_builtin_memcmp): New static function.
163 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
164 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
165
166 2016-06-03 Alan Hayward <alan.hayward@arm.com>
167
168 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
169 relevant stmts which are simple and invariant.
170 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
171 instead of simple and invariant
172
173 2016-06-03 Alan Hayward <alan.hayward@arm.com>
174
175 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
176 (vectorizable_reduction): Check for new relevant state.
177 (vectorizable_live_operation): vectorize live stmts using
178 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
179 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
180 (vect_stmt_relevant_p): Check for stmts which are only used live.
181 (process_use): Use of a stmt does not inherit it's live value.
182 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
183 (vect_analyze_stmt): Check for new relevant state.
184 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
185 outside the loop, but not inside it.
186
187 2016-06-03 Alan Hayward <alan.hayward@arm.com>
188
189 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New
190 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New
191 (vect_get_vec_def_for_operand): Split out code.
192
193 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
194
195 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
196
197 2016-06-03 Alan Hayward <alan.hayward@arm.com>
198
199 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
200
201 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
202
203 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
204
205 2016-06-03 Jakub Jelinek <jakub@redhat.com>
206
207 PR middle-end/71387
208 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
209 to noreturn e->callee->decl that has void return type and void
210 arguments, adjust gimple_call_fntype and remove lhs even if it had
211 previously addressable type.
212
213 2016-06-02 Jeff Law <law@redhat.com>
214
215 PR tree-optimization/71328
216 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
217 error when checking for a jump back onto the copied path.
218
219 2016-06-02 David Malcolm <dmalcolm@redhat.com>
220
221 * config/microblaze/microblaze.c (get_branch_target): Add return
222 NULL_RTX for the non-CALL_P case.
223 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
224 (insert_wic): Remove unused local "j".
225
226 2016-06-02 Martin Liska <mliska@suse.cz>
227
228 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
229
230 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
231 Julia Koval <julia.koval@intel.com>
232
233 * function.c (assign_parm_setup_stack): Force source into a
234 register if needed.
235 * target.def (function_incoming_arg): Update documentation to
236 allow arbitrary address computation based on hard register.
237 * doc/tm.texi: Regenerated.
238
239 2016-06-02 Martin Liska <mliska@suse.cz>
240
241 * predict.c (combine_predictions_for_bb): Fix first match in
242 cases where a first predictor contains more than one occurence
243 in list of predictors. Take the best value in such case.
244
245 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
246
247 PR rtl-optimization/71295
248 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
249 offset would go over the size of the inner mode reject it.
250
251 2016-06-02 Jakub Jelinek <jakub@redhat.com>
252
253 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
254 x=x,x and v=v,m instead of x=x,m.
255
256 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
257 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
258 alternative to v=rm,C.
259
260 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
261 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
262 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
263 instead of vex for the last two above mentioned alternatives.
264
265 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
266
267 PR target/70830
268 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
269
270 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
271
272 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
273
274 2016-06-01 David Malcolm <dmalcolm@redhat.com>
275
276 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
277 from int to unsigned.
278
279 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
280
281 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
282 alternatives, eliminating preferred register class. Add support
283 for the MTVSRDD instruction in ISA 3.0.
284 (vsx_splat_v4si_internal): Use splat_input_operand instead of
285 reg_or_indexed_operand.
286 (vsx_splat_v4sf_internal): Likewise.
287
288 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
289
290 PR target/71186
291 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
292 for loading up all 0's or all 1's.
293
294 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
295
296 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
297
298 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
299
300 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
301 extension.
302 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
303 * gcc.c (set_source_date_epoch_envvar): New function, sets
304 the SOURCE_DATE_EPOCH environment variable to the current time.
305
306 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
307
308 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
309 the factor for live Phi nodes.
310
311 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
312
313 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
314 * tree-parloops.c (parallelize_loops): likewise.
315 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
316 tree_unswitch_outer_loop): likewise.
317
318 2016-06-01 Jakub Jelinek <jakub@redhat.com>
319
320 PR middle-end/71371
321 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
322 around creation of the temporary.
323
324 2016-06-01 Richard Biener <rguenther@suse.de>
325
326 PR tree-optimization/71366
327 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
328 (unloop_loops): Move removing edges here ...
329 (try_unroll_loop_completely): ... from here.
330 (try_peel_loop): ... and here.
331 (tree_unroll_loops_completely_1): Track parent loops via
332 bitmap of header BBs.
333 (tree_unroll_loops_completely): Adjust for that.
334
335 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
336
337 * config/rs6000/altivec.h (vec_slv): New macro.
338 (vec_srv): New macro.
339 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
340 (UNSPEC_VSRV): New value.
341 (vslv): New insn.
342 (vsrv): New insn.
343 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
344 (vsrv): New builtin definition.
345 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
346 define argument types for new builtin.
347 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
348 new builtin.
349 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
350 functions.
351
352 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
353 Jocelyn Mayer <l_indien@magic.fr>
354
355 PR target/67310
356 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
357 detect processor family for signature_CENTAUR_ebx.
358 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
359 signature_CENTAUR_ebx.
360 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
361 <default>: Pass x86-64 for has_longmode.
362
363 2016-06-01 Nathan Sidwell <nathan@acm.org>
364
365 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
366 undefined weak.
367
368 2016-06-01 Richard Biener <rguenther@suse.de>
369
370 PR tree-optimization/71261
371 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
372 of stmts successfully put in the bool pattern. Remove
373 single-use restriction.
374 (adjust_bool_pattern_cast): Add cast at the use site via the
375 pattern def sequence.
376 (adjust_bool_pattern): Remove recursion, maintain a hash-map
377 of patterned defs. Use the pattern def seqence instead of
378 multiple independent patterns.
379 (sort_after_uid): New qsort compare function.
380 (adjust_bool_stmts): New function to process stmts in the bool
381 pattern in IL order.
382 (vect_recog_bool_pattern): Adjust.
383 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
384 (ifcvt_walk_pattern_tree): Likewise.
385 (stmt_is_root_of_bool_pattern): Likewise.
386 (ifcvt_repair_bool_pattern): Likewise.
387 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
388
389 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
390
391 * loop-unroll.c (decide_unroll_constant_iterations,
392 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
393 likely upper bounds.
394 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
395
396 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
397
398 * tree-core.h (enum omp_clause_code): Remove
399 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
400
401 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402
403 * config/arm/sync.md (arm_store_exclusive<mode>):
404 Use 'H' output modifier on operands[2] rather than creating a new
405 entry in out-of-bounds memory of the operands array.
406 (arm_store_release_exclusivedi): Likewise.
407
408 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
409
410 * config/arm/arm.c (arm_fusion_enabled_p): New function.
411 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
412 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
413 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
414
415 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
416
417 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
418 into account live statements for mask producers.
419
420 2016-06-01 Richard Biener <rguenther@suse.de>
421
422 PR tree-optimization/71311
423 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
424 restrict to non-INTEGER_CST @0.
425
426 2016-06-01 Richard Biener <rguenther@suse.de>
427
428 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
429 (relational patterns): Use :c to avoid pattern duplications.
430
431 2016-06-01 Richard Biener <rguenther@suse.de>
432
433 * genmatch.c (comparison_code_p): New predicate.
434 (swap_tree_comparison): New function.
435 (commutate): Add for_vec parameter to append new for entries.
436 Support commutating relational operators by swapping it alongside
437 operands.
438 (lower_commutative): Adjust.
439 (dt_simplify::gen): Do not pass artificial operators to gen
440 functions.
441 (decision_tree::gen): Do not add artificial operators as parameters.
442 (parser::parse_expr): Verify operator commutativity when :c is
443 applied. Allow :C to override this.
444 * match.pd: Adjust patterns to use :C instead of :c where required.
445
446 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
447
448 PR tree-optimization/71077
449 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
450 the combining step, use boolean_false_node and boolean_true_node
451 as the designated false/true return values.
452
453 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
454
455 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
456 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
457 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
458 PRED_LOOP_EXIT.
459
460 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
461
462 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
463 of flags impliying the register renaming.
464 * toplev.c (process_options): Do not imply flag_rename_registers with
465 loop peeling.
466
467 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
468
469 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
470 default implementation.
471
472 2016-05-31 Nathan Sidwell <nathan@acm.org>
473
474 * dwarf2out.c (cur_line_info_table): Add GTY marker.
475
476 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
477
478 * config/sh/constraints.md (b): Remove constraint.
479 * config/sh/predicates.md (arith_reg_operand): Remove
480 TARGET_REGISTER_P.
481 * config/sh/sh-modes.def (PDI): Remove.
482 * config/sh/sh.c (sh_target_reg_class,
483 sh_optimize_target_register_callee_saved): Remove functions.
484 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
485 (sh_expand_epilogue): Update comment.
486 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
487 sh_secondary_reload): Remove TARGET_REGS related code.
488 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
489 TARGET_REGISTER_P): Remove macros.
490 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
491 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
492 TR1_REG, TR2_REG): Remove constants.
493 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
494
495 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
496
497 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
498 define_expand patterns.
499 (adddi3_compact): Rename to adddi3.
500 (subdi3_compact): Rename to subdi3.
501 (*negdi2): Rename to negdi2.
502 (*abs<mode>2): Rename to abs<mode>2.
503
504 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
505
506 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
507 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
508 (atomic_sub_fetchsi): ... this new pattern.
509 (mvtc): Add CC_REG clobber.
510
511 2016-05-31 Marek Polacek <polacek@redhat.com>
512
513 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
514
515 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
516
517 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
518 aarch64_fusion_enabled_p to check for fusion capabilities.
519
520 2016-05-31 Richard Biener <rguenther@suse.de>
521
522 PR tree-optimization/71352
523 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
524 minus one and a negate.
525
526 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
527
528 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
529 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
530 Delete prototype.
531 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
532 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
533 Remove use of aarch64_simd_attr_length_move, set length attribute
534 directly.
535 (*aarch64_be_movoi): Likewise.
536 (*aarch64_be_movci): Likewise.
537 (*aarch64_be_movxi): Likewise.
538
539 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
540
541 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
542 It no longer does that.
543 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
544
545 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
546
547 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
548 attribute __unused__.
549
550 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
551
552 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
553 * config/arm/arm.c (arm_arch_thumb1): Define.
554 (arm_option_override): Initialize arm_arch_thumb1.
555 * config/arm/arm.h (arm_arch_thumb1): Declare.
556 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
557 support Thumb-1 ISA.
558
559 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
560
561 PR target/71346
562 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
563 `Yv' for scalar operand.
564
565 2016-05-31 Tom de Vries <tom@codesourcery.com>
566
567 PR tree-optimization/69068
568 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
569 phis with more than two args.
570
571 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
572
573 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
574 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
575 target.
576
577 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
578
579 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
580 tune_64.
581 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
582 support on SPARC.
583 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
584 cpu_32, cpu_64, tune_32 and tune_64.
585 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
586
587 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
588
589 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
590
591 2016-05-30 Andi Kleen <ak@linux.intel.com>
592
593 * auto-profile.c (read_profile): Replace asserts with errors
594 when file does not exist.
595 * gcov-io.c (gcov_read_words): Dito.
596
597 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
598
599 * tree-cfg.c (print_loop): Print likely upper bounds.
600
601 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
602
603 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
604 * opts.c (default_options): Enable peel loops at -O3.
605 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
606 (try_peel_loop): Do not re-peel already peeled loops;
607 use likely upper bounds; fix profile updating.
608 (pass_complete_unroll::execute): Initialize peeled_loops.
609
610 2016-05-30 Martin Liska <mliska@suse.cz>
611
612 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
613 computed costs by frequency of BB they belong to.
614 (get_scaled_computation_cost_at): New function.
615
616 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
617 Marc Glisse <marc.glisse@inria.fr>
618
619 PR tree-optimization/71289
620 * match.pd (-1 / B < A, A > -1 / B): New transformations.
621
622 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
623
624 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
625
626 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
627
628 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
629 for peeled copies; avoid underflow when updating estimates; correctly
630 scale loop profile.
631
632 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
633
634 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
635 r236875. Corrected oe3 to oe2 as obvious.
636
637 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
638
639 PR middle-end/71269
640 PR middle-end/71252
641 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
642 that inserted stmt will not dominate stmts that defines its operand.
643 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
644 (rewrite_expr_tree_parallel): Likewise.
645
646 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
647
648 PR middle-end/71252
649 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
650 all fields including stmt_to_insert are swapped.
651
652 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
653
654 * predict.h (force_edge_cold): Declare.
655 * predict.c (force_edge_cold): New function.
656 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
657 updating.
658 (canonicalize_loop_induction_variables): Fix formating.
659
660 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
661
662 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
663 (visium_expand_copysign): Use gen_int_mode directly.
664 (visium_compute_frame_size): Minor tweaks.
665
666 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
667
668 * tree-vect-loop.c (vect_analyze_loop_2): Use
669 likely_max_stmt_executions_int.
670
671 2016-05-30 Tom de Vries <tom@codesourcery.com>
672
673 PR tree-optimization/69067
674 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
675
676 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
677
678 PR target/71245
679 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
680 New peepholes to remove unneeded fild/fistp pairs.
681 (define_peephole2 atomic_loaddi_fpu): Ditto.
682
683 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
684
685 * predict.c (maybe_hot_frequency_p): Avoid division.
686
687 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
688
689 * doc/install.texi: Use https for shop.fsf.org.
690
691 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
692
693 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
694 likely_max_stmt_executions_int.
695
696 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
697
698 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
699 likely_max_stmt_executions_int.
700
701 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
702
703 * profile.c (compute_branch_probabilities): Do not report hitrates
704 here.
705 (branch_prob): Report hitrates here.
706 * predict.c (gimple_predict_edge): Do not assert profile status;
707 fix formatting issues.
708
709 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
710
711 * predict.c (edge_predicted_by_p): New function.
712 (predict_paths_for_bb): Do not put multiple predictions of the same type
713 on one edge.
714
715 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
716
717 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
718 commit.
719
720 2016-05-28 Alan Modra <amodra@gmail.com>
721
722 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
723
724 2016-05-28 Alan Modra <amodra@gmail.com>
725
726 PR rtl-optimization/71275
727 * ira.c (ira): Free dominance info.
728
729 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
730
731 * doc/sourcebuild.texi: New address for upstream Go repository.
732
733 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
734
735 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
736 (TARGET_ARM_V7M): Likewise.
737
738 2016-05-26 Jeff Law <law@redhat.com>
739
740 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
741 (thread_across_edge): Remove calls to find_jump_threads_backwards.
742 * passes.def: Add jump threading passes before DOM/VRP.
743 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
744 argument to a basic block from an edge. Remove tests which are
745 handled elsewhere.
746 (pass_data_thread_jumps, class pass_thread_jumps): New.
747 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
748 (make_pass_thread_jumps): Likewise.
749 * tree-pass.h (make_pass_thread_jumps): Declare.
750
751 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
752
753 * config/visium/visium-protos.h (split_double_move): Rename into...
754 (visium_split_double_move): ...this.
755 (visium_split_double_add): Declare.
756 * config/visium/visium.c (split_double_move): Rename into...
757 (visium_split_double_move): ...this.
758 (visium_split_double_add): New function.
759 (visium_expand_copysign): Renumber operands for consistency.
760 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
761 (DFmode move splitter): Likewise.
762 (*addi3_insn): Split by means of visium_split_double_add.
763 (*adddi3_insn_flags): Delete.
764 (*plus_plus_sltu<subst_arith>): New insn.
765 (*subdi3_insn): Split by means of visium_split_double_add.
766 (subdi3_insn_flags): Delete.
767 (*minus_minus_sltu<subst_arith>): New insn.
768 (*negdi2_insn): Split by means of visium_split_double_add.
769 (*negdi2_insn_flags): Delete.
770
771 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
772
773 * configure.ac: Treat a --with-headers option without argument
774 the same as the default (i.e. consult sys-include directory).
775 * configure: Regenerate.
776
777 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
778
779 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
780 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
781 prototype.
782 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
783 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
784
785 2016-05-27 Jiong Wang <jiong.wang@arm.com>
786
787 PR target/63596
788 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
789 tree-stdarg analysis results.
790 (aarch64_setup_incoming_varargs): Likewise.
791
792 2016-05-27 Jiong Wang <jiong.wang@arm.com>
793
794 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
795 va_list_gpr_counter_field and va_list_fpr_counter_field.
796
797 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
798
799 PR67609
800 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
801 * config/aarch64/aarch64.c
802 (aarch64_cannot_change_mode_class): Remove function.
803 * config/aarch64/aarch64-protos.h
804 (aarch64_cannot_change_mode_class): Remove.
805
806 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
807
808 * cfgloop.c (record_niter_bound): Record likely upper bounds.
809 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
810 get_likely_max_loop_iterations_int): New.
811 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
812 any_likely_upper_bound.
813 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
814 Declare.
815 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
816 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
817 upper bound.
818 (unroll_loop_constant_iterations): Likewise.
819 (unroll_loop_runtime_iterations): Likewise.
820 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
821 * lto-streamer-out.c (output_cfg): Likewise.
822 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
823 bounds.
824 (canonicalize_loop_induction_variables): Dump likely upper bounds.
825 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
826 (likely_max_loop_iterations): New.
827 (likely_max_loop_iterations_int): New.
828 (likely_max_stmt_executions): New.
829 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
830 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
831 likely_max_stmt_executions): Declare.
832
833 2016-05-27 Marek Polacek <polacek@redhat.com>
834
835 PR middle-end/71308
836 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
837
838 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
839
840 * config/s390/s390.md (2x risbg splitters): Use
841 reg_overlap_mentioned_p instead of rtx_equal_p.
842
843 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
844
845 * combine.c (make_compound_operation): Take known zero bits into
846 account when checking for possible zero_extend.
847
848 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
849
850 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
851 Use const_int_operand for operand 2 predicate. Simplify expand code
852 as a result.
853
854 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
855
856 PR middle-end/71279
857 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
858 into comparison.
859
860 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
861
862 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
863 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
864 that returns CC_SESWPmode and CC_ZESWPmode.
865 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
866 and CC_SESWPmode.
867 (aarch64_rtx_costs): Likewise.
868
869 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
870
871 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
872 for ISA 3.0 min/max support.
873 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
874 conditional move support.
875 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
876 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
877 available.
878 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
879 conditional moves where the comparison type is different from move
880 type.
881 (fp_minmax): New code iterator for smin/smax.
882 (minmax): New code attributes for min/max.
883 (SMINMAX): Likewise.
884 (smax<mode>3): Combine min, max insns into one insn using the
885 fp_minmax code iterator. Add support for ISA 3.0 min/max
886 instructions that don't need -ffast-math.
887 (s<minmax><mode>3): Likewise.
888 (smax<mode>3_vsx): Likewise.
889 (smin<mode>3): Likewise.
890 (s<minmax><mode>3_vsx): Likewise.
891 (smin<mode>3_vsx): Likewise.
892 (pre-VSX min/max splitters): Likewise.
893 (s<minmax><mode>3_fpr): Likewise.
894 (movsfcc): Rewrite floating point conditional moves to combine
895 SFmode/DFmode into a single insn.
896 (mov<mode>cc): Likewise.
897 (movdfcc): Likewise.
898 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
899 SFDF2 iterators to handle all combinations.
900 (fseldfsf4): Likewise.
901 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
902 (fseldfdf4): Likewise.
903 (fselsfdf4): Likewise.
904 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
905 comparison instructions that set a 0/-1 mask, and use it for
906 floating point conditional move via XXSEL.
907 (fpmask<mode>): Likewise.
908 (xxsel<mode>): Likewise.
909 * config/rs6000/predicates.md (min_max_operator): Delete, no
910 longer used.
911 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
912 instructions that generate a 0/-1 mask for use with XXSEL.
913 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
914 say whether floating point min/max is available, either through
915 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
916 (TARGET_MINMAX_DF): Likewise.
917
918 2016-05-27 Alan Modra <amodra@gmail.com>
919
920 PR rtl-optimization/71275
921 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
922 for update_equiv_regs and combine_and_move_insns.
923
924 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
925
926 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
927 if_then_else or cond RTXes to calculate attribute value.
928 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
929 <attr "length_immediate>: Ditto.
930 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
931 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
932 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
933 <attr "type">: Ditto.
934 <attr "prefix_data16">: Ditto.
935 <attr "prefix_extra">: Ditto.
936 <attr "length_immediate">: Ditto.
937 <attr "prefix">: Ditto.
938 (vec_set<mode>_0) <attr "isa">: Ditto.
939 <attr "prefix_extra">: Ditto.
940 <attr "length_immediate">: Ditto.
941 <attr "prefix">: Ditto.
942 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
943 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
944 (sse2_storelpd) <attr "prefix_data16">: Ditto.
945 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
946 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
947 <attr "length_immediate">: Ditto.
948 <attr "prefix">: Ditto.
949 (sse2_movsd) <attr "length_immediate">: Ditto.
950 <attr "prefix">: Ditto.
951 (vec_concatv2df) <attr "isa">: Ditto.
952 <attr "prefix">: Ditto.
953 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
954 (*vec_extractv2di_1) <attr "isa">: Ditto.
955 <attr "type">: Ditto.
956 <attr "length_immediate">: Ditto.
957 <attr "prefix_rex">: Ditto.
958 <attr "prefix_extra">: Ditto.
959 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
960 <attr "prefix_extra">: Ditto.
961 <attr "length_immediate">: Ditto.
962 (vec_concatv2di) <attr "isa">: Ditto.
963 <attr "prefix_extra">: Ditto.
964 <attr "length_immediate">: Ditto.
965 <attr "prefix">: Ditto.
966
967 2016-05-26 Martin Liska <mliska@suse.cz>
968
969 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
970 function.
971 (operator+): Likewise.
972 (operator-): Likewise.
973 (comp_cost::operator+=): Likewise.
974 (comp_cost::operator-=): Likewise.
975 (comp_cost::operator/=): Likewise.
976 (comp_cost::operator*=): Likewise.
977 (operator<): Likewise.
978 (operator==): Likewise.
979 (operator<=): Likewise.
980 (new_cost): Remove.
981 (infinite_cost_p): Likewise.
982 (add_costs): Likewise.
983 (sub_costs): Likewise.
984 (compare_costs): Likewise.
985 (set_group_iv_cost): Use the newly introduced functions.
986 (get_address_cost): Likewise.
987 (get_shiftadd_cost): Likewise.
988 (force_expr_to_var_cost): Likewise.
989 (split_address_cost): Likewise.
990 (ptr_difference_cost): Likewise.
991 (difference_cost): Likewise.
992 (get_computation_cost_at): Likewise.
993 (determine_group_iv_cost_generic): Likewise.
994 (determine_group_iv_cost_address): Likewise.
995 (determine_group_iv_cost_cond): Likewise.
996 (autoinc_possible_for_pair): Likewise.
997 (determine_group_iv_costs): Likewise.
998 (cheaper_cost_pair): Likewise.
999 (iv_ca_recount_cost): Likewise.
1000 (iv_ca_set_no_cp): Likewise.
1001 (iv_ca_set_cp): Likewise.
1002 (iv_ca_cost): Likewise.
1003 (iv_ca_new): Likewise.
1004 (iv_ca_dump): Likewise.
1005 (iv_ca_narrow): Likewise.
1006 (iv_ca_prune): Likewise.
1007 (iv_ca_replace): Likewise.
1008 (try_add_cand_for): Likewise.
1009 (try_improve_iv_set): Likewise.
1010 (find_optimal_iv_set): Likewise.
1011
1012 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
1013
1014 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
1015 that internal functions will clobber all caller-saved registers.
1016
1017 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
1018
1019 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
1020 Return a better case_values_threshold when optimizing.
1021
1022 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
1023
1024 * config/aarch64/aarch64-simd.md (aarch64_combinez):
1025 Add ? to integer variant.
1026 (aarch64_combinez_be): Likewise.
1027
1028 2016-05-26 Jakub Jelinek <jakub@redhat.com>
1029
1030 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
1031 instead of x constraint.
1032 (vcvtps2ph256<mask_name>): Likewise.
1033
1034 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
1035 alternative. Formatting fix.
1036
1037 * config/i386/sse.md
1038 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
1039 to ...
1040 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
1041 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
1042 maybe_evex prefix instead of vex.
1043 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
1044 EXT_REX_SSE_REG_P (op0) case in the splitter.
1045
1046 2016-05-25 Jeff Law <law@redhat.com>
1047
1048 PR tree-optimization/71272
1049 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
1050 Update comments. Add test for empty path.
1051
1052 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
1053
1054 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
1055 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
1056 special case builtin.
1057 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1058 code for ALTIVEC_BUILTIN_VEC_CMPNE.
1059 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1060 for __builtin_vec_cmpne.
1061
1062 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
1063
1064 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
1065 redundant test and bail out if the type of the new operand is not
1066 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
1067
1068 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
1069
1070 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
1071 (x_ix86_target_flags_explicit): Remove.
1072 * config/i386/i386.c (ix86_function_specific_save): Do not copy
1073 x_ix86_target_flags_explicit.
1074 (ix86_function_specific_restore): Ditto.
1075
1076 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
1077 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 PR target/70738
1080 * common/config/i386/i386-common.c
1081 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
1082 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
1083 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
1084 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
1085 (-mgeneral-regs-only): Add new option.
1086 * config/i386/i386.c (ix86_option_override_internal): Don't enable
1087 x87 instructions if only general registers are allowed.
1088 (ix86_target_string): Add ix86_flags argument. Handle additional
1089 flags options through ix86_flags argument. Update all callers.
1090 * doc/invoke.texi: Document -mgeneral-regs-only.
1091
1092 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1093
1094 PR rtl-optimization/66940
1095 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
1096 decrementing desired_val will not overflow before performing these
1097 operations.
1098
1099 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
1100
1101 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
1102 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
1103 * config/i386/i386.c (enum ix86_builtins): Add
1104 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
1105 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
1106 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
1107 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
1108 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
1109 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
1110 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
1111 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
1112 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
1113 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
1114 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
1115 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
1116 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
1117 __builtin_ia32_cvtps2dq512_mask.
1118 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
1119 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
1120 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
1121 * config/i386/sse.md
1122 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
1123 Rename to ...
1124 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
1125 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
1126 to ...
1127 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
1128 (avx512f_vec_pack_sfix_v8df): New define_expand.
1129 (avx512f_roundpd512): Rename to ...
1130 (avx512f_round<castmode>512): ... this. Change iterator.
1131 (avx512f_roundps512_sfix): New define_expand.
1132 (round<mode>2_sfix): Change iterator.
1133
1134 2016-05-25 Nick Clifton <nickc@redhat.com>
1135
1136 * config/msp430/msp430.c (msp430_attr): Produce an error if a
1137 static interrupt handler is detected.
1138 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
1139 default linker script.
1140 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
1141 the low part of a symbolic pointer.
1142
1143 2016-05-25 Richard Biener <rguenther@suse.de>
1144
1145 PR tree-optimization/71261
1146 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
1147 interesting stmt instead of immediate uses when looking
1148 for the use operand to replace.
1149
1150 2016-05-25 Martin Liska <mliska@suse.cz>
1151
1152 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
1153
1154 2016-05-25 Richard Biener <rguenther@suse.de>
1155
1156 PR tree-optimization/71264
1157 * tree-vect-stmts.c (vect_init_vector): Properly deal with
1158 vector type val.
1159
1160 2016-05-25 Martin Liska <mliska@suse.cz>
1161
1162 PR tree-optimization/71239
1163 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
1164 if DECL_SIZE is NULL.
1165
1166 2016-05-25 Richard Biener <rguenther@suse.de>
1167
1168 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
1169 * tree-if-conv.c (pass_data_if_conversion): Use it.
1170
1171 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1172
1173 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
1174 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
1175 * varpool.c (varpool_node::get_availability): Likewise.
1176
1177 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1178
1179 * config/rs6000/altivec.md (VNEG iterator): New iterator for
1180 VNEGW/VNEGD instructions.
1181 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
1182 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
1183 support for ISA 3.0 VNEGW/VNEGD instructions.
1184
1185 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
1186
1187 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
1188 pointers inside OACC_DATA regions.
1189 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
1190 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
1191 (gimplify_adjust_omp_clauses): Fix typo in comment.
1192
1193 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1194
1195 * config/rs6000/altivec.md (VParity): New mode iterator for vector
1196 parity built-in functions.
1197 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
1198 zeros.
1199 (p9v_parity<mode>2): Likewise.
1200 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
1201 parity.
1202 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
1203 (parity<mode>2): ISA 3.0 expander for vector parity.
1204 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
1205 power9 built-ins.
1206 (BU_P9_64BIT_MISC_0): Likewise.
1207 (BU_P9_MISC_0): Likewise.
1208 (BU_P9V_AV_1): Likewise.
1209 (BU_P9V_AV_2): Likewise.
1210 (BU_P9V_AV_3): Likewise.
1211 (BU_P9V_AV_P): Likewise.
1212 (BU_P9V_VSX_1): Likewise.
1213 (BU_P9V_OVERLOAD_1): Likewise.
1214 (BU_P9V_OVERLOAD_2): Likewise.
1215 (BU_P9V_OVERLOAD_3): Likewise.
1216 (VCTZB): Add vector count trailing zeros support.
1217 (VCTZH): Likewise.
1218 (VCTZW): Likewise.
1219 (VCTZD): Likewise.
1220 (VPRTYBD): Add vector parity support.
1221 (VPRTYBQ): Likewise.
1222 (VPRTYBW): Likewise.
1223 (VCTZ): Add overloaded vector count trailing zeros support.
1224 (VPRTYB): Add overloaded vector parity support.
1225 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1226 overloaded vector count trailing zeros and parity instructions.
1227 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
1228 vector parity support.
1229 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
1230 trailing zeros support.
1231 (vec_cntlz): Likewise.
1232 (vec_vctzb): Likewise.
1233 (vec_vctzd): Likewise.
1234 (vec_vctzh): Likewise.
1235 (vec_vctzw): Likewise.
1236 (vec_vprtyb): Add ISA 3.0 vector parity support.
1237 (vec_vprtybd): Likewise.
1238 (vec_vprtybw): Likewise.
1239 (vec_vprtybq): Likewise.
1240 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1241 the ISA 3.0 vector count trailing zeros and vector parity built-in
1242 functions.
1243
1244 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1245
1246 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
1247 when there is stmt_to_insert.
1248
1249 2016-05-24 Martin Sebor <msebor@redhat.com>
1250
1251 PR c++/71147
1252 * tree.h (complete_or_array_type_p): New inline function.
1253
1254 2016-05-24 Jakub Jelinek <jakub@redhat.com>
1255
1256 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
1257 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
1258 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
1259
1260 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
1261 Limit 1st alternative to noavx isa, split 2nd alternative into one
1262 noavx and one avx alternative, use *x and Bm in the former and
1263 x and m in the latter.
1264
1265 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
1266 of sse4 for the first alternative, drop %v from the template
1267 and d operand modifier. Split second alternative into one sse4_noavx
1268 and one avx alternative, use *x instead of *v in the former and v
1269 instead of *v in the latter.
1270 (*sse4_1_extractps): Use noavx isa instead of * for the first
1271 alternative, drop %v from the template. Split second alternative into
1272 one noavx and one avx alternative, use *x instead of *v in the
1273 former and v instead of *v in the latter.
1274 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
1275 with noavx and the last one with avx.
1276 (sse4_1_phminposuw): Guard first alternative with noavx isa,
1277 split the second one into one noavx and one avx alternative,
1278 use *x and Bm in the former and x and m in the latter one.
1279 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
1280 alternatives.
1281
1282 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
1283 first two alternatives to noavx, use *x instead of *v in the second
1284 one, add avx alternative without *.
1285 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
1286 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
1287 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
1288
1289 2016-05-24 Jeff Law <law@redhat.com>
1290
1291 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
1292 New function, extracted from...
1293 (fsm_find_control_statement_thread_paths): Here. Use the new function.
1294 Allow simple copies and constant initializations in the SSA chain.
1295
1296 2016-05-24 Marek Polacek <polacek@redhat.com>
1297
1298 PR c/71249
1299 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
1300 scope.
1301
1302 2016-05-24 Jakub Jelinek <jakub@redhat.com>
1303
1304 PR c++/71257
1305 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1306 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1307 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
1308 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
1309 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
1310
1311 2016-05-24 Richard Biener <rguenther@suse.de>
1312
1313 PR tree-optimization/71240
1314 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
1315 has integral type.
1316
1317 2016-05-24 Richard Biener <rguenther@suse.de>
1318
1319 PR tree-optimization/71230
1320 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
1321
1322 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1323
1324 * tree-vectorizer.h (vectorizable_comparison): Delete.
1325 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
1326 PURE_SLP_STMT check.
1327 * tree-vect-stmts.c (vectorizable_call): Likewise.
1328 (vectorizable_simd_clone_call): Likewise.
1329 (vectorizable_conversion): Likewise.
1330 (vectorizable_assignment): Likewise.
1331 (vectorizable_shift): Likewise.
1332 (vectorizable_operation): Likewise.
1333 (vectorizable_load): Likewise.
1334 (vectorizable_condition): Likewise.
1335 (vectorizable_store): Likewise. Assert that we don't have
1336 hybrid SLP.
1337 (vectorizable_comparison): Make static. Remove redundant
1338 PURE_SLP_STMT check.
1339 (vect_transform_stmt): Assert that we always have an slp_node
1340 if PURE_SLP_STMT.
1341
1342 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1343
1344 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
1345 operands[2] against 1 with comparison against CONST1_RTX.
1346 (<shift>di3_neon): Likewise.
1347 * config/arm/predicates.md (const0_operand): Replace with comparison
1348 against CONST0_RTX.
1349
1350 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1351
1352 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
1353 operands[2] against 1 with comparison against CONST1_RTX.
1354 (ashrdi3): Likewise.
1355 (lshrdi3): Likewise.
1356 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
1357 UINTVAL.
1358 (ashrsi3): Likewise.
1359 (lshrsi3): Likewise.
1360 (rotrsi3): Likewise.
1361 (define_split above *compareqi_eq0): Likewise.
1362 (define_split above "prologue"): Likewise.
1363 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
1364 * config/arm/predicates.md (shift_operator): Likewise.
1365 (shift_nomul_operator): Likewise.
1366 (sat_shift_operator): Likewise.
1367 (thumb1_cmp_operand): Likewise.
1368 (const_neon_scalar_shift_amount_operand): Replace manual range
1369 check with IN_RANGE.
1370 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
1371 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
1372
1373 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1374
1375 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
1376 with HOST_WIDE_INT_1.
1377 (insv): Likewise.
1378 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
1379 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
1380 (arm_canonicalize_comparison): Likewise.
1381 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
1382 HOST_WIDE_INT_1.
1383 (thumb1_size_rtx_costs): Likewise.
1384 (vfp_const_double_index): Replace cast of 1 to unsigned
1385 HOST_WIDE_INT with HOST_WIDE_INT_1U.
1386 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
1387 HOST_WIDE_INT_1.
1388 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
1389 HOST_WIDE_INT with HOST_WIDE_INT_1U.
1390 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
1391 HOST_WIDE_INT with HOST_WIDE_INT_1.
1392
1393 2016-05-24 Marek Polacek <polacek@redhat.com>
1394
1395 * tree-cfg.h (should_remove_lhs_p): New predicate.
1396 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1397 * gimplify.c (gimplify_modify_expr): Likewise.
1398 * tree-cfg.c (verify_gimple_call): Likewise.
1399 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1400 * gimple-fold.c: Include "tree-cfg.h".
1401 (gimple_fold_call): Use should_remove_lhs_p.
1402
1403 2016-05-24 Richard Biener <rguenther@suse.de>
1404
1405 PR tree-optimization/71253
1406 * cfganal.h (control_dependences): Make robust against edge
1407 and BB removal.
1408 (control_dependences::control_dependences): Remove edge_list argument.
1409 (control_dependences::get_edge): Remove.
1410 (control_dependences::get_edge_src): Add.
1411 (control_dependences::get_edge_dest): Likewise.
1412 (control_dependences::m_el): Make a vector of edge src/dest index.
1413 * cfganal.c (control_dependences::find_control_dependence): Adjust.
1414 (control_dependences::control_dependences): Likewise.
1415 (control_dependences::~control_dependence): Likewise.
1416 (control_dependences::get_edge): Remove.
1417 (control_dependences::get_edge_src): Add.
1418 (control_dependences::get_edge_dest): Likewise.
1419 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
1420 get_edge_src.
1421 (perform_tree_ssa_dce): Adjust.
1422 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
1423 get_edge_src.
1424 (pass_loop_distribution::execute): Adjust. Do loop destroying
1425 conditional on changed.
1426
1427 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1428
1429 PR target/69857
1430 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
1431 return. Reindent transformation comment and mention the ARM state
1432 behavior.
1433
1434 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1435
1436 PR middle-end/71252
1437 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
1438 after build_and_add_sum creates new use stmt.
1439
1440 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1441
1442 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
1443 load_lanes/grouped_load classification comes first. Don't check
1444 whether the vectorization factor is a multiple of the group size
1445 for load_lanes.
1446
1447 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1448
1449 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
1450 GROUP_GAP for single-element interleaving.
1451 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
1452 variable.
1453
1454 2016-05-24 Richard Biener <rguenther@suse.de>
1455
1456 PR middle-end/70434
1457 PR c/69504
1458 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
1459 bases which are accessed with non-invariant indices.
1460 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
1461 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
1462
1463 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1464
1465 PR middle-end/71170
1466 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
1467 (add_to_ops_vec): Add stmt_to_insert.
1468 (add_repeat_to_ops_vec): Init stmt_to_insert.
1469 (insert_stmt_before_use): New.
1470 (transform_add_to_multiply): Remove mult_stmt insertion and add it
1471 to ops vector.
1472 (get_ops): Init stmt_to_insert.
1473 (maybe_optimize_range_tests): Likewise.
1474 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
1475 (rewrite_expr_tree_parallel): Likewise.
1476 (reassociate_bb): Likewise.
1477
1478 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1479
1480 PR target/71201
1481 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
1482 ISA 3.0 xxperm fusion alternative.
1483 (altivec_vperm_v8hiv16qi): Likewise.
1484 (altivec_vperm_<mode>_uns_internal): Likewise.
1485 (vperm_v8hiv4si): Likewise.
1486 (vperm_v16qiv8hi): Likewise.
1487
1488 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1489 Kelvin Nilsen <kelvin@gcc.gnu.org>
1490
1491 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
1492 vpermr/xxpermr on ISA 3.0.
1493 (altivec_expand_vec_perm_le): Likewise.
1494 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
1495 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
1496 ISA 3.0.
1497
1498 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
1499
1500 * config/i386/i386.h (IS_STACK_MODE): Enable for
1501 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
1502 SSE_FLOAT_MODE_P macros.
1503 * config/i386/i386.c (ix86_preferred_reload_class): Use
1504 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
1505 Cleanup regclass processing for CONST_DOUBLE_P.
1506 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
1507 (ix86_rtx_costs): Remove redundant TARGET_80387 check
1508 with IS_STACK_MODE macro.
1509 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
1510 with TARGET_SSE2.
1511 (*movdf_internal): Use IS_STACK_MODE macro.
1512 (*movsf_internal): Ditto.
1513
1514 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
1515
1516 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
1517 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
1518
1519 2016-05-23 Jeff Law <law@redhat.com>
1520
1521 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
1522 extracted from ...
1523 (fsm_find_control_statement_thread_paths): Call it.
1524
1525 2016-05-23 Martin Jambor <mjambor@suse.cz>
1526
1527 PR ipa/71234
1528 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
1529 from_global_constant if t is not NULL.
1530
1531 2016-05-23 Marek Polacek <polacek@redhat.com>
1532
1533 PR c/49859
1534 * common.opt (Wswitch-unreachable): New option.
1535 * doc/invoke.texi: Document -Wswitch-unreachable.
1536 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
1537 warning.
1538
1539 2016-05-23 Bin Cheng <bin.cheng@arm.com>
1540
1541 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
1542 TMR_INDEX is non-NULL.
1543
1544 2016-05-23 Richard Biener <rguenther@suse.de>
1545
1546 PR tree-optimization/71230
1547 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
1548 (try_special_add_to_ops): ... here. Always test for single-use.
1549
1550 2016-05-23 Martin Jambor <mjambor@suse.cz>
1551
1552 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
1553 default block if a PHI node in the original one would be resized.
1554
1555 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1556
1557 PR tree-optimization/58135
1558 * tree-vect-slp.c: When group size is not multiple
1559 of vector size, allow splitting of store group at
1560 vector boundary.
1561
1562 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
1563
1564 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
1565
1566 2016-05-22 Jakub Jelinek <jakub@redhat.com>
1567
1568 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1569 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
1570 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
1571 of 64x2.
1572
1573 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
1574 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
1575 v constraint instead of x and vinserti32x4 insn.
1576
1577 * config/i386/sse.md (i128vldq): New mode iterator.
1578 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
1579 avx512dq and avx512vl alternatives.
1580
1581 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
1582 constraint, use maybe_evex prefix instead of vex.
1583 (vec_dupv4sf): Use v constraint instead of x for output
1584 operand except for noavx alternative, use Yv constraint
1585 instead of x for input. Use maybe_evex prefix instead of vex.
1586 (*vec_dupv4si): Likewise.
1587 (*vec_dupv2di): Likewise.
1588
1589 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
1590
1591 PR middle-end/40921
1592 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
1593 (linearize_expr_tree): Call try_special_add_to_ops.
1594 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
1595
1596 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1597
1598 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
1599 to computed stack_usage.
1600
1601 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1602
1603 PR target/71103
1604 * config/avr/avr.md (define_expand "mov<mode>"): If the source
1605 operand is subreg (symbol_ref) then move the symbol ref to register.
1606
1607 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
1608
1609 * tree.c (array_at_struct_end_p): Look through MEM_REF.
1610
1611 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1612
1613 PR middle-end/71179
1614 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
1615 VECTOR type.
1616
1617 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1618
1619 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
1620 ranges by calling get_single_symbol and tidy up. Look more closely
1621 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
1622
1623 2016-05-20 Jeff Law <law@redhat.com>
1624
1625 * bitmap.c (bitmap_find_bit): Remove useless test.
1626
1627 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1628
1629 * function.c (thread_prologue_and_epilogue_insns): Commit the
1630 insertion of the epilogue.
1631
1632 2016-05-20 Martin Jambor <mjambor@suse.cz>
1633
1634 PR tree-optimization/70884
1635 * tree-sra.c (initialize_constant_pool_replacements): Do not check
1636 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
1637 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
1638 of constant pool data as a reason for scalarization.
1639
1640 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1641
1642 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
1643 for naked functions.
1644 (thumb1_expand_prologue): Likewise.
1645
1646 2016-05-20 Nathan Sidwell <nathan@acm.org>
1647
1648 * config/nvptx/nptx.c (nvptx_option_override): Only set
1649 flag_toplevel_reorder, if not explicitly specified. Set
1650 flag_no_common, unless explicitly specified.
1651
1652 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1653
1654 * calls.c (can_implement_as_sibling_call_p): Mark param
1655 reg_parm_stack_space with ATTRIBUTE_UNUSED.
1656
1657 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
1658
1659 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
1660 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
1661 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
1662 constants.
1663 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
1664 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
1665 and CASE_CONST_ANY.
1666
1667 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
1668
1669 * config/nvptx/nvptx.md (sincossf3): New pattern.
1670
1671 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1672
1673 * calls.c (maybe_complain_about_tail_call): New function.
1674 (initialize_argument_information): Call
1675 maybe_complain_about_tail_call when clearing *may_tailcall.
1676 (can_implement_as_sibling_call_p): Call
1677 maybe_complain_about_tail_call when returning false.
1678 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
1679 ensure try_tail_call is set. Call maybe_complain_about_tail_call
1680 if tail-call optimization fails.
1681 * cfgexpand.c (expand_call_stmt): Initialize
1682 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
1683 * gimple-pretty-print.c (dump_gimple_call): Dump
1684 gimple_call_must_tail_p.
1685 * gimple.c (gimple_build_call_from_tree): Call
1686 gimple_call_set_must_tail with the value of
1687 CALL_EXPR_MUST_TAIL_CALL.
1688 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
1689 (gimple_call_set_must_tail): New function.
1690 (gimple_call_must_tail_p): New function.
1691 * print-tree.c (print_node): Update printing of TREE_STATIC
1692 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
1693 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
1694 trailing comment listing applicable flags.
1695 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
1696
1697 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1698
1699 * calls.c (expand_call): Move "Rest of purposes for tail call
1700 optimizations to fail" to...
1701 (can_implement_as_sibling_call_p): ...this new function, and
1702 split into multiple "if" statements.
1703
1704 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1705
1706 * cfgloop.h (expected_loop_iterations_unbounded,
1707 expected_loop_iterations): Unconstify.
1708 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
1709 profile with known upper bound; return 3 when profile is absent.
1710 (expected_loop_iterations): Update.
1711
1712 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1713
1714 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
1715 and get_max_loop_iterations_int.
1716
1717 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1718
1719 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
1720 realistic upper bounds here.
1721
1722 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1723
1724 PR c++/71210
1725 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
1726 calls if the LHS is variable length or has addressable type.
1727 If targets[0]->decl is a noreturn call with void return type and
1728 zero arguments, adjust fntype and remove lhs in that case.
1729
1730 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
1731
1732 PR tree-optimization/71079
1733 PR tree-optimization/71206
1734 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
1735
1736 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1737
1738 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
1739 (get_vec_alignment_for_array_decl): Likewise.
1740 (get_vec_alignment_for_record_decl): Likewise.
1741 (increase_alignment::execute): Move code to find alignment to
1742 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
1743 (type_align_map): New hash_map.
1744
1745 2016-05-20 Richard Guenther <rguenther@suse.de>
1746
1747 PR tree-optimization/29756
1748 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
1749 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
1750 * fold-const.c (operand_equal_p): Likewise.
1751 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
1752 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
1753 * tree-inline.c (estimate_operator_cost): Likewise.
1754 * tree-pretty-print.c (dump_generic_node): Likewise.
1755 * tree-ssa-operands.c (get_expr_operands): Likewise.
1756 * cfgexpand.c (expand_debug_expr): Likewise.
1757 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1758 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
1759 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
1760 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
1761 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
1762 (execute_update_addresses_taken): Do it.
1763
1764 2016-05-20 Richard Biener <rguenther@suse.de>
1765
1766 PR tree-optimization/71185
1767 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
1768 register operations.
1769
1770 2016-05-20 Richard Biener <rguenther@suse.de>
1771
1772 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
1773 gimple_seq_add_seq_without_update.
1774 (release_bb_predicate): Assert we have no operands to free.
1775 (if_convertible_loop_p_1): Calculate post dominators later.
1776 Do not free BB predicates here.
1777 (combine_blocks): Do not recompute BB predicates.
1778 (version_loop_for_if_conversion): Save BB predicates around
1779 loop versioning.
1780
1781 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1782
1783 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
1784 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
1785 code. Ignore sibcalls on EDGE_IGNORE edges.
1786 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
1787 on edges for sibcalls that run without prologue. The rest of the
1788 function is combined from...
1789 (fix_fake_fallthrough_edge): ... this, and ...
1790 (try_shrink_wrapping): ... a part of this. Remove the bb_with
1791 function argument, make it a local variable.
1792
1793 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
1794
1795 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
1796 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
1797 for 32-bit mode and SEH for 64-bit.
1798 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
1799 TARGET_64BIT_DEFAULT.
1800
1801 2016-05-19 Ryan Burn <contact@rnburn.com>
1802
1803 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
1804 * gengtype.c (open_base_files): Add cilk.h to ifiles.
1805
1806 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
1807
1808 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
1809 force pending loads from memory.
1810
1811 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
1812
1813 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
1814 (UNSPEC_DARN_32): New unspec constant.
1815 (UNSPEC_DARN_RAW): New unspec constant.
1816 (darn_32): New instruction.
1817 (darn_raw): New instruction.
1818 (darn): New instruction.
1819 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
1820 support and documentation for this macro.
1821 (BU_P9_MISC_1): New macro definition.
1822 (BU_P9_64BIT_MISC_0): New macro definition.
1823 (BU_P9_MISC_0): New macro definition.
1824 (darn_32): New builtin definition.
1825 (darn_raw): New builtin definition.
1826 (darn): New builtin definition.
1827 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
1828 RS6000_BUILTIN_0 directives to surround each occurrence of
1829 #include "rs6000-builtin.def".
1830 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
1831 RS6000_BTM_64BIT flags to the returned mask, depending on
1832 configuration.
1833 (def_builtin): Correct an error in the assignments made to the
1834 debugging variable attr_string.
1835 (rs6000_expand_builtin): Add support for no-operand built-in
1836 functions.
1837 (builtin_function_type): Remove fatal_error assertion that is no
1838 longer valid.
1839 (rs6000_common_init_builtins): Add support for no-operand built-in
1840 functions.
1841 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
1842 definition.
1843 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
1844 definition.
1845 (RS6000_BTM_64BIT): New macro definition.
1846 * doc/extend.texi: Document __builtin_darn (void),
1847 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
1848 functions.
1849
1850 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
1851
1852 * tree-vect-loop.c (vect_analyze_loop_2): Use also
1853 max_loop_iterations_int.
1854
1855 2016-05-19 Marek Polacek <polacek@redhat.com>
1856
1857 PR tree-optimization/71031
1858 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
1859 condition and adjust the code a bit.
1860
1861 2016-05-19 Martin Liska <mliska@suse.cz>
1862
1863 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
1864 auto_vec instead of vec.
1865
1866 2016-05-19 Martin Liska <mliska@suse.cz>
1867
1868 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
1869
1870 2016-05-19 Martin Liska <mliska@suse.cz>
1871
1872 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
1873
1874 2016-05-19 Martin Liska <mliska@suse.cz>
1875
1876 * ipa-pure-const.c (set_function_state): Remove an existing
1877 funct_state.
1878 (remove_node_data): Do not free it as it's released
1879 in set_function_state.
1880
1881 2016-05-19 Martin Liska <mliska@suse.cz>
1882
1883 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
1884 bitmap.
1885
1886 2016-05-19 Martin Liska <mliska@suse.cz>
1887
1888 * omp-simd-clone.c (simd_clone_adjust): Release vector.
1889
1890 2016-05-19 Martin Liska <mliska@suse.cz>
1891
1892 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
1893 an auto_vec instead of re-creating it.
1894
1895 2016-05-19 Martin Liska <mliska@suse.cz>
1896
1897 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
1898 auto_vec instead of vec.
1899
1900 2016-05-19 Martin Liska <mliska@suse.cz>
1901
1902 * lto-section-in.c (lto_get_section_data): Call
1903 lto_check_version with additional argument.
1904 * lto-streamer.c (lto_check_version): Add new argument.
1905 * lto-streamer.h (lto_check_version): Likewise.
1906
1907 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1908
1909 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
1910 Don't add cost of inner memory when handling sign-extended loads.
1911
1912 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
1913
1914 PR rtl-optimization/71148
1915 * cse.c (cse_main): Free dominance info.
1916 (rest_of_handle_cse): Don't free dominance info.
1917 (rest_of_handle_cse2): Likewise.
1918 (rest_of_handle_cse_after_global_opts): Likewise.
1919
1920 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1921
1922 PR target/71056
1923 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
1924 NULL_TREE early if NEON is not available. Remove now redundant check
1925 in ARM_CHECK_BUILTIN_MODE.
1926
1927 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
1928
1929 PR sanitizer/64354
1930 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
1931 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
1932 * doc/cpp.texi: Document new macros.
1933
1934 2016-05-19 Bin Cheng <bin.cheng@arm.com>
1935
1936 PR tree-optimization/69848
1937 * tree-vect-loop.c (vectorizable_reduction): Don't factor
1938 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
1939
1940 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1941
1942 * function.c (thread_prologue_and_epilogue_insn): Move the
1943 "goto epilogue_done" one block later.
1944
1945 2016-05-19 Richard Biener <rguenther@suse.de>
1946
1947 PR tree-optimization/70729
1948 * passes.def: Move LIM pass before PRE. Remove no longer
1949 required copyprop and move first DCE out of the loop pipeline.
1950
1951 2016-05-18 David Malcolm <dmalcolm@redhat.com>
1952
1953 PR driver/69265
1954 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
1955 (OBJS-libcommon-target): ...here.
1956 * opts-common.c: Include spellcheck.h.
1957 (cmdline_handle_error): Build a vec of valid options and use it
1958 to suggest provide hints for misspelled arguments.
1959
1960 2016-05-18 Jakub Jelinek <jakub@redhat.com>
1961
1962 PR c++/71100
1963 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
1964 lhs if it has TREE_ADDRESSABLE type.
1965
1966 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1967
1968 PR target/71145
1969 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
1970 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
1971
1972 2016-05-18 Martin Jambor <mjambor@suse.cz>
1973
1974 PR ipa/69708
1975 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
1976 input for NOP_EXPR pass-through functions.
1977 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
1978 aggregate global constant VAR_DECLs in constant jump functions.
1979
1980 2016-05-18 Martin Jambor <mjambor@suse.cz>
1981
1982 PR ipa/69708
1983 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
1984 from TREE_READONLY parameters.
1985
1986 2016-05-18 Martin Jambor <mjambor@suse.cz>
1987
1988 PR ipa/69708
1989 * cgraph.h (cgraph_indirect_call_info): New field
1990 guaranteed_unmodified.
1991 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
1992 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1993 appropriate.
1994 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
1995 pass the parameter value to ipa_find_agg_cst_for_param.
1996 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
1997 guaranteed_unmodified, store AA results there instead of bailing out
1998 if present.
1999 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
2000 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
2001 (find_constructor_constant_at_offset): New function.
2002 (ipa_find_agg_cst_from_init): Likewise.
2003 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
2004 static initializers of contants, report back through a new paameter
2005 from_global_constant if that was the case.
2006 (try_make_edge_direct_simple_call): Also pass parameter value to
2007 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
2008 appropriate.
2009 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
2010 (ipa_read_indirect_edge_info): Likewise.
2011 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
2012 (ipa_load_from_parm_agg): Likewise.
2013
2014 2016-05-18 Jiong Wang <jiong.wang@arm.com>
2015
2016 PR rtl-optimization/71150
2017 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
2018 check.
2019
2020 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2021
2022 PR target/70915
2023 * config/rs6000/constraints.md (wE constraint): New constraint
2024 for a vector constant that can be loaded with XXSPLTIB.
2025 (wM constraint): New constraint for a vector constant of a 1's.
2026 (wS constraint): New constraint for a vector constant that can be
2027 loaded with XXSPLTIB and a vector sign extend instruction.
2028 * config/rs6000/predicates.md (xxspltib_constant_split): New
2029 predicates for wE/wS constraints.
2030 (xxspltib_constant_nosplit): Likewise.
2031 (easy_vector_constant): Add support for constants that can be
2032 loaded via XXSPLTIB.
2033 (all_ones_constant): New predicate for vector constant with all
2034 1's set.
2035 (splat_input_operand): Add support for ISA 3.0 word splat operations.
2036 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
2037 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
2038 instruction and possibly with a sign extension.
2039 (output_vec_const_move): Add support for XXSPLTIB. If we are
2040 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
2041 instead of XXLXOR/XXLORC.
2042 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
2043 operations.
2044 (rs6000_legitimize_reload_address): Likewise.
2045 (rs6000_output_move_128bit): Use output_vec_const_move to emit
2046 constants.
2047 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
2048 combine VSX_M and VSX_M2 into one iterator.
2049 (VSX_M2): Likewise.
2050 (VSINT_84): New iterators for loading constants with XXSPLTIB.
2051 (VSINT_842): Likewise.
2052 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
2053 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
2054 XXSPLTIB instruction.
2055 (xxspltib_<mode>_nosplit): Likewise.
2056 (xxspltib_<mode>_split): New insn to load up constants with
2057 XXSPLTIB and a sign extend instruction.
2058 (vsx_mov<mode>): Replace single move that handled all vector types
2059 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
2060 moves (when -mvsx-timode is in effect) into the main vector
2061 moves. Eliminate separate moves for <VSr> <VSa>, where the
2062 preferred register class (<VSr>) is listed first, and the
2063 secondary register class (<VSa>) is listed second with a '?' to
2064 discourage use. Prefer loading 0/-1 in any VSX register for ISA
2065 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
2066 that if the register was involved in a slow operation, the
2067 clear/set operation does not wait for the slow operation to
2068 finish. Adjust the length attributes for 32-bit mode. Use
2069 rs6000_output_move_128bit and drop the use of the string
2070 instructions for 32-bit movti when -mvsx-timode is in effect. Use
2071 spacing so that the alternatives and attributes don't generate
2072 long lines, and put things in columns, so that it is easier to
2073 match up the operands and attributes with the insn alternatives.
2074 (vsx_mov<mode>_64bit): Likewise.
2075 (vsx_mov<mode>_32bit): Likewise.
2076 (vsx_movti_64bit): Fold movti into normal vector moves.
2077 (vsx_movti_32bit): Likewise.
2078 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
2079 splat instructions.
2080 (vsx_splat_v4si_internal): Likewise.
2081 (vsx_splat_v4sf_internal): Likewise.
2082 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
2083 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
2084 extend vector elements.
2085 (vsx_sign_extend_hi_<mode>): Likewise.
2086 (vsx_sign_extend_si_v2di): Likewise.
2087 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
2088 declaration.
2089 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
2090 constraints. Add trailing period to wL documentation.
2091
2092 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
2093
2094 PR middle-end/71020
2095 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
2096 * tree-dfa.c (replace_abnormal_ssa_names): New function.
2097 * tree-call-cdce.c: Include tree-dfa.h.
2098 (can_guard_call_p): New function, extracted from...
2099 (can_use_internal_fn): ...here.
2100 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
2101 and return void.
2102 (shrink_wrap_one_built_in_call): Likewise.
2103 (use_internal_fn): Likewise.
2104 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
2105 and return void. Call replace_abnormal_ssa_names.
2106 (pass_call_cdce::execute): Check can_guard_call_p during the
2107 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
2108 will always change something.
2109
2110 2016-05-18 Martin Jambor <mjambor@suse.cz>
2111
2112 PR ipa/70646
2113 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
2114 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
2115
2116 2016-05-18 Martin Jambor <mjambor@suse.cz>
2117
2118 PR ipa/70646
2119 * ipa-inline.h (condition): New field size.
2120 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
2121 for comaprison and store it into the new condition.
2122 (evaluate_conditions_for_known_args): Use condition size to check
2123 access sizes for all but CHANGED conditions.
2124 (unmodified_parm_1): New parameter size_p, store access size into it.
2125 (unmodified_parm): Likewise.
2126 (unmodified_parm_or_parm_agg_item): Likewise.
2127 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
2128 (set_cond_stmt_execution_predicate): Extract access sizes and store
2129 them to conditions.
2130 (set_switch_stmt_execution_predicate): Likewise.
2131 (will_be_nonconstant_expr_predicate): Likewise.
2132 (will_be_nonconstant_predicate): Likewise.
2133 (inline_read_section): Stream condition size.
2134 (inline_write_summary): Likewise.
2135
2136 2016-05-18 Richard Biener <rguenther@suse.de>
2137
2138 * tree-ssa-loop-im.c (determine_max_movement): Properly add
2139 condition cost to PHI cost instead of total_cost.
2140
2141 2016-05-18 Martin Liska <mliska@suse.cz>
2142
2143 PR fortran/70856
2144 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
2145 merged variables.
2146
2147 2016-05-18 Richard Biener <rguenther@suse.de>
2148
2149 * lto-streamer.h (LTO_major_version): Bump to 6.
2150
2151 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
2152
2153 * function.c (make_split_prologue_seq, make_prologue_seq,
2154 make_epilogue_seq): New functions, factored out from...
2155 (thread_prologue_and_epilogue_insns): Here.
2156
2157 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
2158
2159 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
2160 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
2161 of before. Add a comment.
2162
2163 2016-05-18 Bin Cheng <bin.cheng@arm.com>
2164
2165 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
2166 expression pointer, not pointer to the pointer.
2167
2168 2016-05-18 Jakub Jelinek <jakub@redhat.com>
2169
2170 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
2171 (avx2_pbroadcast<mode>): Add another alternative with v instead
2172 of x constraints in it, using <pbroadcast_evex_isa> isa.
2173 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
2174
2175 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
2176 constraint x instead of v in second alternative, add avx512bw
2177 alternative.
2178
2179 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
2180 constraint x instead of v in second alternative, add avx512bw
2181 alternative.
2182
2183 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
2184 constraint x instead of v in second alternative, add avx512bw
2185 alternative.
2186
2187 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
2188 avx512bw alternative.
2189
2190 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
2191
2192 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
2193 array to 128 chars.
2194 (define_insn "*andnottf3"): Ditto.
2195 (define_insn "*<code><mode>3"/any_logic): Ditto.
2196 (define_insn "*<code>tf3"/any_logic): Ditto.
2197 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
2198 operand to block AVX-512VL insn variant emit when it is not enabled.
2199
2200 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
2201
2202 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
2203 constraint fot SF mode.
2204
2205 2016-05-18 Petr Murzin <petr.murzin@intel.com>
2206 Kirill Yukhin <kirill.yukhin@intel.com>
2207
2208 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
2209 modifiers.
2210 (define_insn "rsqrt14<mode>"): Ditto.
2211 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2212 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2213 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
2214 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2215 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
2216 Ditto.
2217 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
2218 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
2219 * config/i386/i386.c (ix86_print_operand): Expand check for size
2220 override codes for Intel syntax.
2221
2222 2016-05-18 Richard Biener <rguenther@suse.de>
2223
2224 PR tree-optimization/71168
2225 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
2226 initialization earlier.
2227
2228 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
2229
2230 * config/aarch64/aarch64-simd.md
2231 (aarch64_reduc_plus_internal<mode>): Rename to...
2232 (reduc_plus_scal): ...This, and remove previous implementation.
2233
2234 2016-05-18 Richard Biener <rguenther@suse.de>
2235
2236 * passes.def: Put late dse and cd_dce in canonical order.
2237
2238 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
2239
2240 * ipa-inline-transform.c (preserve_function_body_p): Look for
2241 first non-thunk clone.
2242 (save_function_body): Save into first non-thunk.
2243 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
2244 up call stmt id.
2245 (lto_output_node): Inline thunks don't need body in every
2246 partition.
2247 * lto-streamer-in.c: Do not fixup thunk clones.
2248 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
2249 thunks.
2250 * tree-inline.c (copy_bb): Be prepared for target node to be new after
2251 folding suceeds.
2252
2253 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
2254
2255 PR middle-end/63586
2256 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
2257 (reassociate_bb): Call transform_add_to_multiply.
2258
2259 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
2260
2261 * config/aarch64/aarch64.c (all_extensions): Removed unused
2262 static variable.
2263
2264 2016-05-17 Nathan Sidwell <nathan@acm.org>
2265
2266 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
2267 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
2268
2269 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
2270
2271 PR tree-optimization/54579
2272 PR middle-end/55299
2273 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
2274
2275 2016-05-17 Marek Polacek <polacek@redhat.com>
2276
2277 PR ipa/71146
2278 * tree-inline.c (expand_call_inline): Call
2279 maybe_remove_unused_call_args.
2280
2281 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
2282
2283 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
2284 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
2285 * doc/md.texi (fmin@var{m}3): Likewise.
2286
2287 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
2288
2289 * match.pd (X & C): New transformation.
2290
2291 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
2292
2293 * match.pd (~X & Y): New transformation.
2294
2295 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
2296
2297 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
2298 information for new SSA_NAME.
2299 (simplify_conversion_using_ranges): Get range through get_range_info
2300 instead of get_value_range.
2301
2302 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2303
2304 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
2305 Remove inline assembly.
2306 (vmvn_s16): Likewise.
2307 (vmvn_s32): Likewise.
2308 (vmvn_u8): Likewise.
2309 (vmvn_u16): Likewise.
2310 (vmvn_u32): Likewise.
2311 (vmvnq_s8): Likewise.
2312 (vmvnq_s16): Likewise.
2313 (vmvnq_s32): Likewise.
2314 (vmvnq_u8): Likewise.
2315 (vmvnq_u16): Likewise.
2316 (vmvnq_u32): Likewise.
2317 (vmvn_p8): Likewise.
2318 (vmvnq_p16): Likewise.
2319
2320 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2321
2322 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
2323 Use builtin.
2324 (vmul_n_s16): Likewise.
2325 (vmul_n_s32): Likewise.
2326 (vmul_n_u16): Likewise.
2327 (vmul_n_u32): Likewise.
2328 (vmulq_n_f32): Likewise.
2329 (vmulq_n_f64): Likewise.
2330 (vmulq_n_s16): Likewise.
2331 (vmulq_n_s32): Likewise.
2332 (vmulq_n_u16): Likewise.
2333 (vmulq_n_u32): Likewise.
2334
2335 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2336
2337 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
2338 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
2339
2340 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2341
2342 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
2343 to *aarch64_fma4_elt_from_dup<mode>.
2344 (*aarch64_fnma4_elt_to_128df): Rename to
2345 *aarch64_fnma4_elt_from_dup<mode>.
2346 * config/aarch64/arm_neon.h (vfma_n_f64): New.
2347 (vfms_n_f32): Likewise.
2348 (vfms_n_f64): Likewise.
2349 (vfmsq_n_f32): Likewise.
2350 (vfmsq_n_f64): Likewise.
2351
2352 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
2353
2354 * wide-int.h: Change fixed_wide_int_storage from class to struct.
2355
2356 2016-05-17 Richard Biener <rguenther@suse.de>
2357
2358 PR tree-optimization/71132
2359 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
2360 Only add control dependences for blocks in the loop.
2361 (build_rdg): Adjust.
2362 (generate_code_for_partition): Return whether loop should
2363 be destroyed and delay that.
2364 (distribute_loop): Likewise.
2365 (pass_loop_distribution::execute): Record loops to be destroyed
2366 and perform delayed destroying of loops.
2367
2368 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2369
2370 PR target/70809
2371 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
2372
2373 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2374
2375 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
2376
2377 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
2378
2379 PR target/71114
2380 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
2381 insertion point for instructions generated by validize_mem.
2382
2383 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2384
2385 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
2386 in brackets.
2387
2388 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2389
2390 * config/aarch64/aarch64.c
2391 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
2392 rather than a macro.
2393
2394 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2395
2396 * doc/invoke.texi (AArch64 Options): Various updates.
2397
2398 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2399
2400 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
2401 into instrumentation thunks.
2402 * cif-code.def (CIF_CHKP): New.
2403
2404 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
2405
2406 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
2407
2408 2016-05-16 Martin Jambor <mjambor@suse.cz>
2409
2410 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
2411 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
2412
2413 2016-05-16 Marek Polacek <polacek@redhat.com>
2414
2415 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
2416 commentary.
2417
2418 2016-05-16 Martin Jambor <mjambor@suse.cz>
2419
2420 PR hsa/70857
2421 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
2422 the outlined kernel function.
2423
2424 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
2425
2426 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
2427 (ISA_HAS_DLSA): Ditto.
2428
2429 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
2430
2431 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
2432
2433 2016-05-16 Nathan Sidwell <nathan@acm.org>
2434
2435 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
2436 (nvptx_name_replacement): Restore. Add comment.
2437 (write_fn_proto, write_fn_proto_from_insn,
2438 nvptx_output_call_insn): Restore
2439 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
2440
2441 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2442
2443 * config/aarch64/aarch64.md
2444 (add<mode>3_compareC_cconly_imm): Remove use of %w.
2445 (add<mode>3_compareC_imm): Likewise.
2446 (<optab>si3_uxtw): Split into register and immediate variants.
2447 (andsi3_compare0_uxtw): Likewise.
2448 (and<mode>3_compare0): Likewise.
2449 (and<mode>3nr_compare0): Likewise.
2450 (stack_protect_test_<mode>): Don't use %x for memory operands.
2451
2452 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
2453
2454 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
2455
2456 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2457
2458 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2459 Split integer shifts into shift_reg and bfm.
2460 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2461 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2462 (ror<mode>3_insn): Likewise.
2463 (<optab>si3_insn_uxtw): Likewise.
2464 (<optab><mode>3_insn): Change to rotate_imm.
2465 (extr<mode>5_insn_alt): Likewise.
2466 (extrsi5_insn_uxtw): Likewise.
2467 (extrsi5_insn_uxtw_alt): Likewise.
2468
2469 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2470
2471 * doc/tm.texi: Regenerate.
2472 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
2473 (TARGET_INVALID_RETURN_TYPE): Remove.
2474 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
2475 TARGET_INVALID_RETURN_TYPE.
2476 * target.def (invalid_parameter_type): Remove.
2477 (invalid_return_type): Remove.
2478
2479 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2480
2481 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
2482 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
2483 calls from thunk.
2484 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
2485 gimple body.
2486 (preserve_function_body_p): No need to preserve function body
2487 * cif-codes.def (CIF_THUNK): Remove.
2488 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
2489
2490 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2491
2492 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
2493
2494 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2495
2496 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
2497 for thunks.
2498
2499 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2500
2501 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
2502 (inline_small_functions): Do not look for function symbol when
2503 resetting caches.
2504
2505 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2506
2507 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
2508 of inline thunks
2509
2510 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2511 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2512 Jiong Wang <jiong.wang@arm.com>
2513
2514 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2515 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
2516 Define __ARM_FP16_ARGS when appropriate.
2517 * config/arm/arm.c (arm_invalid_parameter_type): Remove
2518 declaration.
2519 (arm_invalid_return_type): Likewise.
2520 (TARGET_INVALID_PARAMETER_TYPE): Remove.
2521 (TARGET_INVALID_RETURN_TYPE): Remove.
2522 (aapcs_vfp_sub_candidate): Allow HFmode.
2523 (aapcs_vfp_allocate): Add comment. Support HFmode.
2524 (aapcs_vfp_allocate_return_reg): Likewise.
2525 (struct aapcs_cp_arg_layout): Slightly reword comments for
2526 is_return_candidate and allocate_return_reg.
2527 (output_mov_vfp): Update assert.
2528 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
2529 condition.
2530 (arm_invalid_parameter_type): Remove.
2531 (amr_invalid_return_type): Remove.
2532 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
2533 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
2534 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
2535
2536 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2537
2538 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
2539 * config/aarch64/arch64-protos.h
2540 (aarch64_legitimize_reload_address): Remove.
2541 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
2542 Remove.
2543
2544 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
2545
2546 * configure.ac: Add ACX_NONCANONICAL_HOST.
2547 * configure: Regenerate.
2548 * Makefile.in: Set host_noncanonical.
2549
2550 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
2551
2552 PR target/71097
2553 * config/i386/i386.md (*movtf_internal): Before register allocation,
2554 do not allow FP constants for CM_MEDIUM memory model, allow only
2555 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
2556 (*movxf_internal): Ditto.
2557 (*movdf_internal): Ditto.
2558 (*movsf_internal): Ditto.
2559
2560 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
2561
2562 PR rtl-optimization/67483
2563 * combine.c (make_compound_operation): Don't call extract_left_shift
2564 with negative shift amounts.
2565
2566 2016-05-13 Jakub Jelinek <jakub@redhat.com>
2567
2568 PR bootstrap/71071
2569 * fold-const.c (fold_checksum_tree): Allow modification
2570 of TYPE_ALIAS_SET during folding.
2571
2572 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
2573 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
2574 (ix86_split_to_parts): Likewise. Fix up formatting.
2575
2576 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
2577
2578 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
2579 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
2580 printf format.
2581
2582 2016-05-13 Nathan Sidwell <nathan@acm.org>
2583
2584 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
2585 (nvptx_name_replacement): Delete.
2586 (write_fn_proto, write_fn_proto_from_insn,
2587 nvptx_output_call_insn): Remove nvptx_name_replacement call.
2588 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
2589 * langhooks.c (add_builtin_funcction_common): Call
2590 targetm.mangle_decl_assembler_name.
2591
2592 * config/nvptx/nvptx.c (write_fn_proto): Handle
2593 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
2594
2595 2016-05-13 Martin Liska <mliska@suse.cz>
2596
2597 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
2598 and PRIu64 in printf format.
2599
2600 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2601
2602 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
2603 comment.
2604
2605 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2606
2607 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2608 Change --param max-completely-peeled-times to
2609 --param max-completely-peel-times in dump file printing.
2610
2611 2016-05-13 Richard Biener <rguenther@suse.de>
2612
2613 PR tree-optimization/42587
2614 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
2615 (find_bswap_or_nop_1): Likewise.
2616 (bswap_replace): Likewise.
2617
2618 2016-05-13 Martin Liska <mliska@suse.cz>
2619
2620 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
2621 Initialize a variable with default value.
2622
2623 2016-05-13 Martin Liska <mliska@suse.cz>
2624
2625 * doc/invoke.texi: Enhance explanation of error recovery
2626 of sanitizers.
2627
2628 2016-05-13 Martin Liska <mliska@suse.cz>
2629
2630 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
2631 (struct cost_pair): Change inv_expr_id (int) to inv_expr
2632 (iv_inv_expr_ent *).
2633 (struct iv_inv_expr_ent): Comment struct fields.
2634 (sort_iv_inv_expr_ent): New function.
2635 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
2636 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
2637 a hash_map between iv_inv_expr_ent and number of usages.
2638 (niter_for_exit): Fix coding style.
2639 (tree_ssa_iv_optimize_init): Use renamed variable.
2640 (determine_base_object): Fix coding style.
2641 (alloc_iv): Likewise.
2642 (find_interesting_uses_outside): Likewise.
2643 (add_candidate_1): Likewise.
2644 (add_standard_iv_candidates): Likewise.
2645 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
2646 (prepare_decl_rtl): Fix coding style.
2647 (get_address_cost): Likewise.
2648 (get_shiftadd_cost): Likewise.
2649 (force_expr_to_var_cost): Likewise.
2650 (compare_aff_trees): Likewise.
2651 (get_expr_id): Restructure the function.
2652 (get_loop_invariant_expr_id): Renamed to
2653 get_loop_invariant_expr.
2654 (get_computation_cost_at): Replace usage of inv_expr_id with
2655 inv_expr.
2656 (get_computation_cost): Likewise.
2657 (determine_group_iv_cost_generic): Likewise.
2658 (determine_group_iv_cost_address): Likewise.
2659 (iv_period): Fix coding style.
2660 (iv_elimination_compare_lt): Likewise.
2661 (may_eliminate_iv): Likewise.
2662 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
2663 inv_expr.
2664 (determine_group_iv_costs): Dump invariant expressions.
2665 (iv_ca_recount_cost): Use the newly added hash_map.
2666 (iv_ca_set_remove_invariants): Fix coding style.
2667 (iv_ca_set_add_invariants): Fix coding style.
2668 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
2669 invariants.
2670 (iv_ca_set_cp): Likewise.
2671 (iv_ca_new): Initialize the newly added hash_map and remove
2672 initialization of fields.
2673 (iv_ca_free): Delete the hash_map.
2674 (iv_ca_dump): Dump invariant expressions.
2675 (iv_ca_extend): Fix coding style.
2676 (try_add_cand_for): Likewise.
2677 (create_new_ivs): Dump information about # of avg iterations and
2678 # of used invariant expressions.
2679 (rewrite_use_compare): Fix coding style.
2680 (free_loop_data): Set default value for max_inv_expr_id.
2681
2682 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
2683
2684 * cse.c (rest_of_handle_cse): Use cleanup_cfg
2685 returned value cse_cfg_altered computation.
2686 (rest_of_handle_cse2): Likewise.
2687 (rest_of_handle_cse_after_global_opts): Likewise.
2688
2689 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2690
2691 PR target/53440
2692 * config/arm/arm.c (arm32_output_mi_thunk): New.
2693 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
2694 to split Thumb1 vs TARGET_32BIT functionality.
2695 (arm_thumb1_mi_thunk): New.
2696
2697 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2698
2699 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
2700 to true.
2701
2702 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2703
2704 PR target/71080
2705 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
2706
2707 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
2708
2709 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
2710 (expand_builtin_trap): Emit a regular call.
2711 (set_builtin_user_assembler_name): Remove obsolete cases.
2712 * dse.c (scan_insn): Adjust.
2713 * except.c: Include calls.h.
2714 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
2715 emit a regular call to setjmp.
2716 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
2717 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
2718 (emit_block_move_via_libcall): Delete.
2719 (block_move_fn): Delete.
2720 (init_block_move_fn): Likewise.
2721 (emit_block_move_libcall_fn): Likewise.
2722 (emit_block_op_via_libcall): New function.
2723 (set_storage_via_libcall): Tidy up and use memset builtin.
2724 (block_clear_fn): Delete.
2725 (init_block_clear_fn): Likewise.
2726 (clear_storage_libcall_fn): Likewise.
2727 (expand_assignment): Call emit_block_move_via_libcall.
2728 Do not include gt-expr.h.
2729 * expr.h (emit_block_op_via_libcall): Declare.
2730 (emit_block_copy_via_libcall): New inline function.
2731 (emit_block_move_via_libcall): Likewise.
2732 (emit_block_comp_via_libcall): Likewise.
2733 (block_clear_fn): Delete.
2734 (init_block_move_fn): Likewise.
2735 (init_block_clear_fn): Likewise.
2736 (emit_block_move_via_libcall): Likewise.
2737 (set_storage_via_libcall): Add default parameter value.
2738 * libfuncs.h (enum libfunc_index): Remove obsolete values.
2739 (abort_libfunc): Delete.
2740 (memcpy_libfunc): Likewise.
2741 (memmove_libfunc): Likewise.
2742 (memcmp_libfunc): Likewise.
2743 (memset_libfunc): Likewise.
2744 (setbits_libfunc): Likewise.
2745 (setjmp_libfunc): Likewise.
2746 (longjmp_libfunc): Likewise.
2747 (profile_function_entry_libfunc): Likewise.
2748 (profile_function_exit_libfunc): Likewise.
2749 (gcov_flush_libfunc): Likewise.
2750 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
2751 and DECL_VISIBILITY on the declaration.
2752 (init_optabs): Do not initialize obsolete libfuncs.
2753 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
2754 * tree-core.h (ECF_RET1): Define.
2755 (ECF_TM_PURE): Adjust.
2756 (ECF_TM_BUILTIN): Likewise.
2757 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
2758 (build_common_builtin_nodes): Initialize abort builtin.
2759 Add ECF_RET1 on memcpy, memmove and memset builtins.
2760 Pass final flags for alloca and alloca_with_align builtins.
2761 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
2762 obsolete builtins.
2763 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
2764 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
2765 set_storage_via_libcall and call emit_block_copy_via_libcall.
2766
2767 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
2768
2769 * config/i386/i386.md (*call_got_x32): Change operand 0 to
2770 DImode before it is passed to ix86_output_call_operand.
2771 (*call_value_got_x32): Ditto for operand 1.
2772
2773 2016-05-12 Jiong Wang <jiong.wang@arm.com>
2774
2775 PR rtl-optimization/70904
2776 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
2777 reload for wide mode.
2778
2779 2016-05-12 Marek Polacek <polacek@redhat.com>
2780
2781 PR c/70756
2782 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
2783 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
2784 * langhooks.h (incomplete_type_error): Likewise.
2785 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
2786 parameter, pass it down to incomplete_type_error.
2787 * tree.h (size_in_bytes): New inline overload.
2788 (size_in_bytes_loc): Renamed from size_in_bytes.
2789
2790 2016-05-12 Richard Biener <rguenther@suse.de>
2791
2792 PR tree-optimization/71059
2793 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
2794 nary before looking up or entering the expression into the VN
2795 hashes.
2796 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
2797 Make sure to re-use NARYs without result as inserted by
2798 phi-translation.
2799
2800 2016-05-12 Richard Biener <rguenther@suse.de>
2801
2802 PR tree-optimization/71062
2803 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2804 field.
2805 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2806 vars_contains_restrict if the var is a restrict tag.
2807 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
2808 do not disambiguate pointers against it.
2809 (dump_points_to_solution): Re-structure and adjust for new
2810 vars_contains_restrict flag.
2811 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
2812
2813 2016-05-12 Martin Liska <mliska@suse.cz>
2814
2815 * doc/invoke.texi: Explain connection between
2816 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
2817
2818 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
2819
2820 PR tree-optimization/71006
2821 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2822 consider COND_EXPR as a mask producer.
2823
2824 2016-05-12 Marek Polacek <polacek@redhat.com>
2825
2826 PR driver/71063
2827 * opts.c (common_handle_option): Detect missing argument for --help^.
2828
2829 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2830
2831 PR target/70830
2832 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
2833 when popping the PC and within an interrupt handler routine.
2834 Add missing tab to output of "ldmfd".
2835 (output_return_instruction): Output LDMFD with SP update rather
2836 than POP when returning from interrupt handler.
2837
2838 2016-05-12 Jakub Jelinek <jakub@redhat.com>
2839
2840 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
2841 TARGET_64BIT && TARGET_AVX512DQ.
2842 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
2843 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
2844 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
2845 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
2846 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
2847 (*vec_extractv4si_zext): Add avx512dq alternative.
2848 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
2849 use v instead of x constraint in other alternatives where possible.
2850
2851 * config/i386/sse.md (sse2_loadld): Use v instead of x
2852 constraint in alternatives 0,1,4.
2853
2854 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
2855 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
2856 v constraints instead of x and <pinsr_evex_isa> isa attribute.
2857
2858 PR target/71019
2859 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
2860 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
2861 is not emitted unless TARGET_AVX512BW.
2862 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
2863 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
2864 for the result operand.
2865
2866 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
2867 constraint instead of x in avx alternatives. Use maybe_evex instead
2868 of vex prefix.
2869
2870 * config/i386/constraints.md (Yv): New constraint.
2871 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
2872 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
2873 * config/i386/i386.md (avx512fvecmode): New mode attr.
2874 (*pushtf): Use v constraint instead of x.
2875 (*movtf_internal): Likewise. For TARGET_AVX512VL and
2876 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
2877 (*absneg<mode>2): Use Yv constraint instead of x constraint.
2878 (*absnegtf2_sse): Likewise.
2879 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
2880 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
2881 avx512f alternatives.
2882 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
2883
2884 2016-05-12 Richard Biener <rguenther@suse.de>
2885
2886 PR tree-optimization/71060
2887 * tree-data-ref.c (initialize_data_dependence_relation): Do not
2888 require exact match of DR_BASE_OBJECT but only matching address and
2889 type.
2890
2891 2016-05-12 Richard Biener <rguenther@suse.de>
2892
2893 PR tree-optimization/70986
2894 * cfganal.c: Include cfgloop.h.
2895 (dfs_find_deadend): Prefer to take edges exiting loops.
2896
2897 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2898
2899 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
2900 compile and run time.
2901
2902 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2903
2904 PR c/43651
2905 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
2906
2907 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
2908
2909 * config/i386/i386.c (legitimize_pic_address): Use
2910 copy_to_suggested_reg instead of gen_movsi.
2911
2912 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2913
2914 * config/rs6000/predicates.md (quad_memory_operand): Move most of
2915 the code into quad_address_p and call it to share code with
2916 vsx_quad_dform_memory_operand.
2917 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
2918 d-form support.
2919 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
2920 bit instead of being a separate word. Split -mpower9-dform into
2921 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2922 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
2923 for the register class supporting 128-bit quad word memory offsets.
2924 (mode_supports_vsx_dform_quad): Helper function to return if the
2925 register class uses quad word memory offsets.
2926 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
2927 (rs6000_debug_reg_global): Always print if we are using LRA or not.
2928 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
2929 instructions are enabled, set up the appropriate addr_masks for
2930 128-bit types.
2931 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
2932 -mpower9-dform-scalar, instead of -mpower9-dform.
2933 (rs6000_option_override_internal): Split -mpower9-dform into two
2934 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
2935 -mpower9-dform switch sets or clears both. If we are not using
2936 the LRA register allocator, do not enable -mpower9-dform-vector by
2937 default. If we are using LRA, enable -mpower9-dform-vector and
2938 -mvsx-timode if it is appropriate. Issue a warning if either
2939 -mpower9-dform-vector or -mvsx-timode are explicitly used without
2940 enabling LRA.
2941 (quad_address_offset_p): New helper function to return if the
2942 offset is legal for quad word memory instructions.
2943 (quad_address_p): New function to determin if GPR or vector
2944 register quad word memory addresses are legal.
2945 (mem_operand_gpr): Validate quad word address offsets.
2946 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
2947 d-form (register + offset) instructions.
2948 (offsettable_ok_by_alignment): Likewise.
2949 (rs6000_legitimate_offset_address_p): Likewise.
2950 (legitimate_lo_sum_address_p): Likewise.
2951 (rs6000_legitimize_address): Likewise.
2952 (rs6000_legitimize_reload_address): Add more debug statements for
2953 -mdebug=addr.
2954 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
2955 d-form instructions.
2956 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
2957 d-form instructions. Distinguish different cases in debug
2958 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
2959 d-form instructions.
2960 (rs6000_preferred_reload_class): Likewise.
2961 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
2962 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
2963 of the ISA 2.06 indexed memory instructions.
2964 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
2965 use them to save/restore the saved vector registers instead of
2966 using Altivec instructions.
2967 (rs6000_emit_epilogue): Likewise.
2968 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
2969 (rs6000_opt_masks): Split -mpower9-dform into
2970 -mpower9-dform-scalar and -mpower9-dform-vector.
2971 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
2972 was not selected.
2973 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
2974 ISA 3.0 vector indexed memory instructions, and fold the code into
2975 the normal mov<mode> patterns.
2976 (p9_vecstore_<mode>): Likewise.
2977 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
2978 instructions.
2979 (vsx_movti_64bit): Likewise.
2980 (vsx_movti_32bit): Likewise.
2981 * config/rs6000/constraints.md (wO constraint): New constraint for
2982 ISA 3.0 vector d-form support.
2983 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
2984 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
2985 include -mpower9-dform-vector until we switch over to LRA.
2986 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
2987 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2988 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
2989 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2990 for -mpower9-dform and -mlra.
2991 * doc/md.texi (wO constraint): Document wO constraint.
2992
2993 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
2994
2995 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
2996 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
2997 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
2998 Move handling of non-insn arguments inline into the sole user:
2999 (output_trans_func): ...here.
3000 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
3001 in emitted function prototype.
3002 (output_internal_insn_latency_func): Ditto. Simplify.
3003 (output_internal_maximal_insn_latency_func): Ditto. Delete
3004 always-unused argument.
3005 (output_insn_latency_func): Ditto.
3006 (output_maximal_insn_latency_func): Ditto.
3007
3008 2016-05-11 Richard Biener <rguenther@suse.de>
3009
3010 PR tree-optimization/71055
3011 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
3012 sth with precision not equal to access size verify we don't chop
3013 off bits.
3014
3015 2016-05-11 Richard Biener <rguenther@suse.de>
3016
3017 PR debug/71057
3018 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3019 (dwarf2out_finish): Move retry_incomplete_types call ...
3020 (dwarf2out_early_finish): ... here.
3021
3022 2016-05-11 Richard Biener <rguenther@suse.de>
3023
3024 PR middle-end/71002
3025 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3026 if the langhook insists on it.
3027 * fold-const.c (make_bit_field_ref): Add arg for the original
3028 reference and preserve its alias-set.
3029 (decode_field_reference): Take exp by reference and adjust it
3030 to the original memory reference.
3031 (optimize_bit_field_compare): Adjust callers.
3032 (fold_truth_andor_1): Likewise.
3033 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
3034
3035 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
3036
3037 PR middle-end/70807
3038 * cfgrtl.h (delete_insn_and_edges): Now return bool.
3039 * cfgrtl.c (delete_insn_and_edges): Likewise.
3040 * config/i386/i386.c (convert_scalars_to_vector): Remove
3041 redundant code.
3042 * cse.c (cse_insn): Compute cse_cfg_altered.
3043 (delete_trivially_dead_insns): Likewise.
3044 (cse_cc_succs): Likewise.
3045 (rest_of_handle_cse): Free dominance info if required.
3046 (rest_of_handle_cse2): Likewise.
3047 (rest_of_handle_cse_after_global_opts): Likewise.
3048
3049 2016-05-11 Alan Modra <amodra@gmail.com>
3050
3051 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3052 abi_v4_pass_in_fpr): New functions.
3053 (rs6000_function_arg_boundary): Exclude complex IBM long double
3054 from 64-bit alignment when ABI_V4.
3055 (rs6000_function_arg, rs6000_function_arg_advance_1,
3056 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3057
3058 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
3059
3060 PR rtl-optimization/71028
3061 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
3062 jump with just a return in the fallthrough block if the branch
3063 block contains just a return as well.
3064
3065 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
3066
3067 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
3068 * match.pd ((X & Y) ^ Y): ... this.
3069 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
3070 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
3071
3072 2016-05-10 David Malcolm <dmalcolm@redhat.com>
3073
3074 * read-md.c (require_char_ws): New function.
3075 (read_string): Simplify using require_char_ws.
3076 (handle_constants): Likewise.
3077 (handle_enum): Likewise.
3078 (handle_file): Likewise.
3079 * read-md.h (require_char_ws): New declaration.
3080 * read-rtl.c (read_conditions): Simplify using require_char_ws.
3081 (read_mapping): Likewise.
3082 (read_rtx_code): Likewise.
3083 (read_nested_rtx): Likewise.
3084
3085 2016-05-10 James Norris <jnorris@codesourcery.com>
3086
3087 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
3088 if offloading is enabled and -fopenacc or -fopenmp is specified.
3089 (CRTOFFLOADEND): Likewise.
3090 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
3091 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
3092
3093 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
3094
3095 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
3096 gotoff_operand code paths. Use copy_to_suggested_regs and
3097 expand_simple_binop where appropriate. Cleanup.
3098
3099 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3100
3101 PR target/70799
3102 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
3103 integer constants.
3104 (dimode_scalar_chain::vector_const_cost): New.
3105 (dimode_scalar_chain::compute_convert_gain): Handle constants.
3106 (dimode_scalar_chain::convert_op): Likewise.
3107 (dimode_scalar_chain::convert_insn): Likewise.
3108
3109 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
3110
3111 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
3112 unary operation, not a binary one.
3113
3114 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3115
3116 PR middle-end/70877
3117 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
3118 calls with type casted fndecl.
3119
3120 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3121
3122 PR tree-optimization/70786
3123 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
3124 * calls.c (initialize_argument_information): Bind bounds
3125 with corresponding args passed by reference.
3126
3127 2016-05-10 Jakub Jelinek <jakub@redhat.com>
3128
3129 PR target/70927
3130 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
3131 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
3132 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
3133 accordingly.
3134
3135 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3136
3137 PR target/70963
3138 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
3139 code for a zero scale factor.
3140 (vsx_xvcvdpuxds_scale): Likewise.
3141
3142 2016-05-10 David Malcolm <dmalcolm@redhat.com>
3143
3144 * diagnostic-show-locus.c (layout::layout): Call show_ruler
3145 if show_ruler_p was set on the context.
3146 (layout::show_ruler): New method.
3147 * diagnostic.h (struct diagnostic_context): Add field
3148 "show_ruler_p".
3149
3150 2016-05-10 Richard Biener <rguenther@suse.de>
3151
3152 PR tree-optimization/71039
3153 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
3154 (chk_uses): New function.
3155 (propagate_with_phi): Verify we can safely replicate the lhs of an
3156 aggregate assignment on all incoming edges.
3157
3158 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
3159
3160 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
3161 Forward declare.
3162 (rx_atomic_sequence): New class.
3163 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
3164 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
3165 non-inline.
3166 (rx_atomic_sequence::rx_atomic_sequence,
3167 rx_atomic_sequence::~rx_atomic_sequence): New functions.
3168 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
3169 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
3170 CTRLREG_INTB): New constants.
3171 (FETCHOP): New code iterator.
3172 (fethcop_name, fetchop_name2): New iterator code attributes.
3173 (QIHI): New mode iterator.
3174 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
3175 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
3176 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
3177
3178 2016-05-10 Martin Liska <mliska@suse.cz>
3179
3180 * tree-inline.c (remap_dependence_clique): Do not remap
3181 debugging statements.
3182
3183 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3184
3185 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
3186 ("*fixuns_truncdfdi2_z13")
3187 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
3188 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
3189 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
3190
3191 2016-05-10 Richard Biener <rguenther@suse.de>
3192
3193 PR tree-optimization/70497
3194 PR tree-optimization/28367
3195 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
3196 split out from ...
3197 (visit_reference_op_load): ... here.
3198 (vn_reference_lookup_3): Use it to handle subreg-like accesses
3199 with simplified BIT_FIELD_REFs.
3200 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
3201 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
3202 correctly.
3203
3204 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
3205
3206 * dwarf2out.c (add_abstract_origin_attribute): Adjust
3207 documentation comment. For BLOCK nodes, add a
3208 DW_AT_abstract_origin attribute that points to the DIE generated
3209 for the origin BLOCK.
3210 (gen_lexical_block_die): Call add_abstract_origin_attribute for
3211 blocks from inlined functions.
3212
3213 2016-05-10 Alan Modra <amodra@gmail.com>
3214
3215 PR target/70947
3216 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
3217 regrename modifying insns saving lr before __morestack call.
3218 * config/rs6000/rs6000.md (split_stack_return): Similarly for
3219 insns restoring lr after __morestack call.
3220
3221 2016-05-09 Jakub Jelinek <jakub@redhat.com>
3222
3223 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
3224 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
3225 expanders.
3226 * config/i386/sse.md (vec_interleave_high<mode>,
3227 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
3228 <avx512>_vpermt2var<mode>3_maskz): Likewise.
3229
3230 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3231
3232 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
3233 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
3234 parallel reassociation for power8 and forward.
3235
3236 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
3237
3238 * config/i386/i386.md (absneg splitters with general regs): Use
3239 general_reg_operand predicate.
3240 (btsq peephole2): Use x86_64_immediate_operand to check if new
3241 value is suitable for immediate operand. Generate emitted insn
3242 using RTL expressions.
3243 (btcq peephole2): Ditto.
3244 (btrq peephole2): Ditto. Generate correct immediate operand
3245 for AND masking.
3246
3247 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
3248
3249 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
3250 bitpos.
3251
3252 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
3253
3254 * tree-affine.c (wide_int_constant_multiple_p): Add missing
3255 pointer dereference.
3256
3257 2016-05-09 Richard Biener <rguenther@suse.de>
3258
3259 PR tree-optimization/70985
3260 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
3261 op0 isn't a gimple register.
3262
3263 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
3264
3265 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
3266 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
3267 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
3268 (i6400_fpu_mult): New cpu units.
3269 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
3270 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
3271 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
3272 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
3273 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
3274 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
3275 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
3276 (i6400_msa_long_float4, i6400_msa_long_float5)
3277 (i6400_msa_long_float8, i6400_msa_fdiv_df)
3278 (i6400_msa_fdiv_sf): New reservations.
3279 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
3280 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
3281 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
3282 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
3283 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
3284 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
3285 (msa_short_cmp, msa_short_float2, msa_short_logic3)
3286 (msa_short_store4, msa_long_load, msa_short_store)
3287 (msa_long_logic, msa_long_float2, msa_long_float4)
3288 (msa_long_float5, msa_long_float8, msa_long_mult)
3289 (msa_long_fdiv, msa_long_div): New reservations.
3290
3291 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
3292 Sameera Deshpande <sameera.deshpande@imgtec.com>
3293 Matthew Fortune <matthew.fortune@imgtec.com>
3294 Graham Stott <graham.stott@imgtec.com>
3295 Chao-ying Fu <chao-ying.fu@imgtec.com>
3296
3297 * config.gcc: Add MSA header file for mips*-*-* target.
3298 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
3299 (Ubv8i, Urv8): New constraints.
3300 * config/mips/mips-ftypes.def: Add function types for MSA
3301 builtins.
3302 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
3303 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
3304 * config/mips/mips-msa.md: New file.
3305 * config/mips/mips-protos.h
3306 (mips_split_128bit_const_insns): New prototype.
3307 (mips_msa_idiv_insns): Likewise.
3308 (mips_split_128bit_move): Likewise.
3309 (mips_split_128bit_move_p): Likewise.
3310 (mips_split_msa_copy_d): Likewise.
3311 (mips_split_msa_insert_d): Likewise.
3312 (mips_split_msa_fill_d): Likewise.
3313 (mips_expand_msa_branch): Likewise.
3314 (mips_const_vector_same_val_p): Likewise.
3315 (mips_const_vector_same_bytes_p): Likewise.
3316 (mips_const_vector_same_int_p): Likewise.
3317 (mips_const_vector_shuffle_set_p): Likewise.
3318 (mips_const_vector_bitimm_set_p): Likewise.
3319 (mips_const_vector_bitimm_clr_p): Likewise.
3320 (mips_msa_vec_parallel_const_half): Likewise.
3321 (mips_msa_output_division): Likewise.
3322 (mips_ldst_scaled_shift): Likewise.
3323 (mips_expand_vec_cond_expr): Likewise.
3324 * config/mips/mips.c (enum mips_builtin_type): Add
3325 MIPS_BUILTIN_MSA_TEST_BRANCH.
3326 (mips_gen_const_int_vector_shuffle): New prototype.
3327 (mips_const_vector_bitimm_set_p): New function.
3328 (mips_const_vector_bitimm_clr_p): Likewise.
3329 (mips_const_vector_same_val_p): Likewise.
3330 (mips_const_vector_same_bytes_p): Likewise.
3331 (mips_const_vector_same_int_p): Likewise.
3332 (mips_const_vector_shuffle_set_p): Likewise.
3333 (mips_symbol_insns): Forbid loading symbols via immediate for
3334 MSA.
3335 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
3336 stores.
3337 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
3338 MSA.
3339 (mips_lx_address_p): Add support load indexed address for MSA.
3340 (mips_address_insns): Add calculation of instructions needed for
3341 stores and loads for MSA.
3342 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
3343 CONST_VECTOR for MSA and let it fall through.
3344 (mips_ldst_scaled_shift): New function.
3345 (mips_subword_at_byte): Likewise.
3346 (mips_msa_idiv_insns): Likewise.
3347 (mips_legitimize_move): Validate MSA moves.
3348 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
3349 calculation of costs for MSA division.
3350 (mips_split_move_p): Check if MSA moves need splitting.
3351 (mips_split_move): Split MSA moves if necessary.
3352 (mips_split_128bit_move_p): New function.
3353 (mips_split_128bit_move): Likewise.
3354 (mips_split_msa_copy_d): Likewise.
3355 (mips_split_msa_insert_d): Likewise.
3356 (mips_split_msa_fill_d): Likewise.
3357 (mips_output_move): Handle MSA moves.
3358 (mips_expand_msa_branch): New function.
3359 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
3360 Reinstate 'y' modifier.
3361 (mips_file_start): Add MSA .gnu_attribute.
3362 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
3363 FPRs.
3364 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
3365 (mips_class_max_nregs): Add register size for MSA supported mode.
3366 (mips_cannot_change_mode_class): Allow conversion between MSA
3367 vector modes and TImode.
3368 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
3369 instruction.
3370 (mips_secondary_reload_class): Force MSA loads/stores via memory.
3371 (mips_preferred_simd_mode): Add preffered modes for MSA.
3372 (mips_vector_mode_supported_p): Add MSA supported modes.
3373 (mips_autovectorize_vector_sizes): New function.
3374 (mips_msa_output_division): Likewise.
3375 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
3376 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
3377 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
3378 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
3379 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
3380 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
3381 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
3382 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
3383 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
3384 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
3385 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
3386 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
3387 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
3388 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
3389 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
3390 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
3391 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
3392 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
3393 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
3394 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
3395 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
3396 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
3397 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
3398 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
3399 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
3400 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
3401 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
3402 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
3403 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
3404 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
3405 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
3406 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
3407 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
3408 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
3409 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
3410 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
3411 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
3412 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
3413 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
3414 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
3415 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
3416 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
3417 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
3418 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
3419 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3420 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3421 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3422 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3423 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3424 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3425 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3426 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3427 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
3428 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
3429 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
3430 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
3431 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
3432 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
3433 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
3434 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
3435 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
3436 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
3437 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
3438 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
3439 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
3440 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
3441 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
3442 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
3443 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
3444 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
3445 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
3446 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
3447 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
3448 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
3449 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
3450 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
3451 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
3452 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
3453 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
3454 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
3455 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
3456 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
3457 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
3458 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
3459 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
3460 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
3461 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
3462 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
3463 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
3464 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
3465 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
3466 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
3467 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
3468 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
3469 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
3470 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
3471 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
3472 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
3473 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
3474 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
3475 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
3476 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
3477 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
3478 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
3479 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
3480 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
3481 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
3482 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
3483 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
3484 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
3485 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
3486 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
3487 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
3488 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
3489 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
3490 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
3491 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
3492 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
3493 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
3494 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
3495 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
3496 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
3497 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
3498 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
3499 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
3500 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
3501 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
3502 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
3503 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
3504 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
3505 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
3506 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
3507 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
3508 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
3509 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
3510 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
3511 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
3512 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
3513 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
3514 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
3515 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
3516 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
3517 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
3518 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
3519 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
3520 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
3521 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
3522 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
3523 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
3524 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
3525 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
3526 move_v builtins.
3527 (mips_get_builtin_decl_index): New array.
3528 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
3529 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
3530 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
3531 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
3532 (mips_init_builtins): Initialize mips_get_builtin_decl_index
3533 array.
3534 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
3535 hook.
3536 (mips_expand_builtin_insn): Prepare operands for
3537 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
3538 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
3539 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
3540 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
3541 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
3542 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
3543 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
3544 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
3545 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
3546 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
3547 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
3548 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
3549 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
3550 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
3551 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
3552 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
3553 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
3554 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
3555 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
3556 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
3557 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
3558 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
3559 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
3560 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
3561 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
3562 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
3563 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
3564 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
3565 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
3566 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
3567 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
3568 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
3569 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
3570 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
3571 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
3572 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
3573 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
3574 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
3575 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
3576 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
3577 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
3578 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
3579 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
3580 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
3581 These are set implicitly and an error is reported if overridden.
3582 (mips_expand_builtin_msa_test_branch): New function.
3583 (mips_expand_msa_shuffle): Likewise.
3584 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
3585 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
3586 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
3587 (mips_expand_vec_unpack): Add support for MSA.
3588 (mips_expand_vector_init): Likewise.
3589 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
3590 instead of const0_rtx.
3591 (mips_msa_vec_parallel_const_half): New function.
3592 (mips_gen_const_int_vector): Likewise.
3593 (mips_gen_const_int_vector_shuffle): Likewise.
3594 (mips_expand_msa_cmp): Likewise.
3595 (mips_expand_vec_cond_expr): Likewise.
3596 * config/mips/mips.h
3597 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
3598 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
3599 specified.
3600 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
3601 (ISA_HAS_MSA): New macro.
3602 (UNITS_PER_MSA_REG): Likewise.
3603 (BITS_PER_MSA_REG): Likewise.
3604 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
3605 (MSA_REG_FIRST): New macro.
3606 (MSA_REG_LAST): Likewise.
3607 (MSA_REG_NUM): Likewise.
3608 (MSA_REG_P): Likewise.
3609 (MSA_REG_RTX_P): Likewise.
3610 (MSA_SUPPORTED_MODE_P): Likewise.
3611 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
3612 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
3613 * config/mips/mips.md: Include mips-msa.md.
3614 (alu_type): Add simd_add.
3615 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
3616 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
3617 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
3618 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
3619 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
3620 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
3621 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
3622 simd_move, simd_load, simd_store. Choose "multi" for moves
3623 for "qword_mode".
3624 (qword_mode): New attribute.
3625 (insn_count): Add instruction count for quad moves.
3626 Increase the count for MIPS SIMD division.
3627 (UNITMODE): Add UNITMODEs for vector types.
3628 (addsub): New code iterator.
3629 * config/mips/mips.opt (mmsa): New option.
3630 * config/mips/msa.h: New file.
3631 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
3632 specified.
3633 * config/mips/mti-linux.h: Likewise.
3634 * config/mips/predicates.md
3635 (const_msa_branch_operand): New constraint.
3636 (const_uimm3_operand): Likewise.
3637 (const_uimm4_operand): Likewise.
3638 (const_uimm5_operand): Likewise.
3639 (const_uimm8_operand): Likewise.
3640 (const_imm5_operand): Likewise.
3641 (aq10b_operand): Likewise.
3642 (aq10h_operand): Likewise.
3643 (aq10w_operand): Likewise.
3644 (aq10d_operand): Likewise.
3645 (const_m1_operand): Likewise.
3646 (reg_or_m1_operand): Likewise.
3647 (const_exp_2_operand): Likewise.
3648 (const_exp_4_operand): Likewise.
3649 (const_exp_8_operand): Likewise.
3650 (const_exp_16_operand): Likewise.
3651 (const_vector_same_val_operand): Likewise.
3652 (const_vector_same_simm5_operand): Likewise.
3653 (const_vector_same_uimm5_operand): Likewise.
3654 (const_vector_same_uimm6_operand): Likewise.
3655 (const_vector_same_uimm8_operand): Likewise.
3656 (par_const_vector_shf_set_operand): Likewise.
3657 (reg_or_vector_same_val_operand): Likewise.
3658 (reg_or_vector_same_simm5_operand): Likewise.
3659 (reg_or_vector_same_uimm6_operand): Likewise.
3660 * doc/extend.texi (MIPS SIMD Architecture Functions): New
3661 section.
3662 * doc/invoke.texi (-mmsa): Document new option.
3663
3664 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3665
3666 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
3667 * configure: Regenerate.
3668 * config.in: Regenerate.
3669 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
3670 on -fvtable-verify.
3671 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
3672 (ENDFILE_VTV_SPEC): Define.
3673
3674 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
3675
3676 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
3677 registers in all interrupt handlers if necessary.
3678 (rl78_option_override): Add warning.
3679 (MUST_SAVE_MDUC_REGISTERS): New macro.
3680 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
3681 * config/rl78/rl78.c (check_mduc_usage): New function.
3682 (mduc_regs): New structure to hold MDUC register data.
3683 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
3684 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
3685 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
3686 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
3687 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
3688 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
3689
3690 2016-05-09 Bin Cheng <bin.cheng@arm.com>
3691
3692 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
3693 (tree-ssa-loop-niter.h): Ditto.
3694 (idx_within_array_bound, ref_within_array_bound): New functions.
3695 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
3696 Factor out check on writable base object to ...
3697 (base_object_writable): ... here.
3698
3699 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3700
3701 * config/arm/arm.md (probe_stack): Add modes to set source
3702 and destination.
3703
3704 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
3705
3706 * regrename.c (base_reg_class_for_rename): New static function.
3707 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
3708
3709 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
3710
3711 * cgraph.c (thunk_adjust): Export.
3712 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
3713 * cgraphunit.c (thunk_adjust): Export.
3714 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
3715 thunks.
3716 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
3717 inlinable.
3718 * tree-inline.c (expand_call_inline): Expand thunks inline.
3719
3720 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
3721
3722 PR target/70998
3723 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
3724 (*sse2_vd_cvtss2sd): Ditto.
3725 * config/i386/i386.md
3726 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
3727 Generate *sse2_vd_cvtsd2ss pattern.
3728 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
3729 Generate *sse2_vd_cvtss2sd pattern.
3730
3731 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3732
3733 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
3734 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
3735 users.
3736
3737 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3738
3739 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
3740 * config/sh/sh.c: Define and declare variables on first use throughout
3741 the file.
3742 (current_function_interrupt): Change to bool type.
3743 (frame_insn): Rename to emit_frame_insn and update users.
3744 (push_regs): Use bool for 'interrupt_handler' argument.
3745 (save_schedule_s): Remove.
3746 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
3747 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
3748 targetm.asm_out.unaligned_op.di.
3749 (gen_far_branch): Remove redundant forward declaration.
3750 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
3751 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
3752 (sh_set_return_address, sh_function_ok_for_sibcall,
3753 scavenge_reg): Update comments.
3754 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
3755 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
3756 (sh_attr_renesas_p): Remove unnecessary parentheses.
3757 (branch_dest): Simplify.
3758 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
3759 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
3760 (CUMULATIVE_ARGS): Change macro to typedef.
3761 (current_function_interrupt): Change to bool type.
3762 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
3763 Surround with __cplusplus ifdef.
3764 (sh_compare_op0, sh_compare_op1): Remove.
3765 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
3766
3767 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
3768
3769 * config/arm/arm.md: (arch): Add neon.
3770 (arch_enabled): Return yes for arch neon when TARGET_NEON.
3771 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
3772 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
3773 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
3774 attributes for alt renumbering. Mark alt 3 as non-predicable.
3775 (thumb2_movdf_vfp): Likewise.
3776
3777 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
3778
3779 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
3780 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
3781 (*andqi_1): Add preferred_for_speed attribute to disparage
3782 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
3783 (*<code>qi_1): Ditto.
3784 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
3785 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
3786 (*ashlqi3_1): Ditto.
3787 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
3788 Add preferred_for_size attribute to disparage alternative 0 and
3789 preferred_for_speed attribute to disparage alternative 1 for
3790 TARGET_PARTIAL_REG_STALL targets.
3791
3792 2016-05-07 Tom de Vries <tom@codesourcery.com>
3793
3794 PR tree-optimization/70956
3795 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3796 def.
3797
3798 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
3799
3800 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
3801 * config/sh/sh.c (sh_cbranch_distance): Implement it.
3802 * config/sh/sh.md (branch_zero): Remove define_attr.
3803 (define_delay): Disable delay slot if branch distance is one insn.
3804
3805 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3806
3807 * config/i386/i386.md (LEAMODE): New mode attribute.
3808 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
3809 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
3810 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
3811 operand 2 predicate.
3812 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
3813 (*lea<mode>_general_3): Ditto.
3814 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
3815
3816 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3817
3818 * genmddump.c (main): Convert argv from char ** to const char **.
3819
3820 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3821
3822 * coretypes.h (OVERRIDE): New macro.
3823 (FINAL): New macro.
3824
3825 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
3826
3827 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
3828 allow coalescing if the types are compatible.
3829
3830 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3831
3832 * pass_manager.h (pass_manager::register_pass_name): New method.
3833 (pass_manager::get_pass_by_name): New method.
3834 (pass_manager::create_pass_tab): New method.
3835 (pass_manager::m_name_to_pass_map): New field.
3836 * passes.c (name_to_pass_map): Delete global in favor of field
3837 "m_name_to_pass_map" of pass_manager.
3838 (register_pass_name): Rename from a function to...
3839 (pass_manager::register_pass_name): ...this method, updating
3840 for renaming of global "name_to_pass_map" to field
3841 "m_name_to_pass_map".
3842 (create_pass_tab): Rename from a function to...
3843 (pass_manager::create_pass_tab): ...this method, updating
3844 for renaming of global "name_to_pass_map" to field.
3845 (get_pass_by_name): Rename from a function to...
3846 (pass_manager::get_pass_by_name): ...this method.
3847 (enable_disable_pass): Convert use of get_pass_by_name to
3848 a method call, locating the pass_manager singleton.
3849
3850 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3851
3852 * genattr-common.c (main): Convert argv from char ** to const char **.
3853 * genattr.c (main): Likewise.
3854 * genattrtab.c (main): Likewise.
3855 * genautomata.c (initiate_automaton_gen): Likewise.
3856 (main): Likewise.
3857 * gencodes.c (main): Likewise.
3858 * genconditions.c (main): Likewise.
3859 * genconfig.c (main): Likewise.
3860 * genconstants.c (main): Likewise.
3861 * genemit.c (main): Likewise.
3862 * genenums.c (main): Likewise.
3863 * genextract.c (main): Likewise.
3864 * genflags.c (main): Likewise.
3865 * genmddeps.c (main): Likewise.
3866 * genopinit.c (main): Likewise.
3867 * genoutput.c (main): Likewise.
3868 * genpeep.c (main): Likewise.
3869 * genpreds.c (main): Likewise.
3870 * genrecog.c (main): Likewise.
3871 * gensupport.c (init_rtx_reader_args_cb): Likewise.
3872 (init_rtx_reader_args): Likewise.
3873 * gensupport.h (init_rtx_reader_args_cb): Likewise.
3874 (init_rtx_reader_args): Likewise.
3875 * gentarget-def.c (main): Likewise.
3876 * read-md.c (read_md_files): Likewise.
3877 * read-md.h (read_md_files): Likewise.
3878
3879 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3880
3881 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
3882 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
3883 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
3884 Remove unused predicate.
3885 (register_and_not_fp_reg_operand): Ditto.
3886
3887 2016-05-06 Martin Liska <mliska@suse.cz>
3888
3889 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
3890 instead of vec as the vector is local to the function.
3891
3892 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3893
3894 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
3895 avx512bw alternative.
3896
3897 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
3898 before the ashr<mode>3 pattern.
3899
3900 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
3901 v instead of x in vex or maybe_vex alternatives, use
3902 maybe_evex instead of vex in prefix.
3903
3904 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
3905 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
3906 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
3907 in vex or maybe_vex alternatives, use maybe_evex instead of vex
3908 in prefix.
3909
3910 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
3911 v instead of x in vex or maybe_vex alternatives, use
3912 maybe_evex instead of vex in prefix.
3913
3914 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
3915 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
3916 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
3917 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
3918 alternatives, use maybe_evex instead of vex in prefix.
3919
3920 * config/i386/sse.md (vec_interleave_lowv4sf,
3921 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
3922 v instead of x in vex or maybe_vex alternatives, use
3923 maybe_evex instead of vex in prefix.
3924
3925 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
3926 v instead of x in vex or maybe_vex alternatives, use
3927 maybe_evex instead of vex in prefix.
3928
3929 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
3930 v constraint instead of x.
3931
3932 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
3933
3934 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3935 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3936 equality first.
3937
3938 2016-05-06 Richard Biener <rguenther@suse.de>
3939
3940 PR tree-optimization/70948
3941 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3942 Properly clobber all fields of va_list for __builtin_va_start.
3943
3944 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
3945
3946 PR debug/70935
3947 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3948 loop latch destination.
3949
3950 2016-05-06 Martin Liska <mliska@suse.cz>
3951
3952 * tree-ssa-uninit.c: Apply manual changes
3953 to the GNU coding style.
3954 (prune_uninit_phi_opnds): Rename from
3955 prune_uninit_phi_opnds_in_unrealizable_paths.
3956
3957 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3958
3959 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
3960 mspace): Remove deprecated options.
3961 * doc/invoke.texi (SH options): Remove -mspace.
3962
3963 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3964
3965 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
3966
3967 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3968
3969 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
3970 corresponding combine split pattern.
3971
3972 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3973
3974 PR target/58219
3975 * config/sh/predicates.md (long_displacement_mem_operand): New.
3976 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
3977 Add movi20, movi20s alternatives. Adjust length attribute for
3978 alternatives.
3979 (movsi_ie): Allow for any FPU. Adjust length attribute for
3980 alternatives.
3981 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
3982 attribute for alternatives.
3983 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
3984 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
3985 length attribute for alternatives.
3986
3987 2016-05-06 Richard Biener <rguenther@suse.de>
3988
3989 PR tree-optimization/70960
3990 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
3991
3992 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3993
3994 PR target/52933
3995 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
3996 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
3997
3998 2016-05-06 Marek Polacek <polacek@redhat.com>
3999
4000 PR sanitizer/70875
4001 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
4002
4003 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4004
4005 PR target/54089
4006 * config/sh/sh.md (*rotcr): Add another variant.
4007
4008 2016-05-06 Richard Biener <rguenther@suse.de>
4009
4010 PR middle-end/70931
4011 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4012
4013 2016-05-06 Richard Biener <rguenther@suse.de>
4014
4015 PR middle-end/70941
4016 * fold-const.c (split_tree): Always convert to the original type
4017 before negating.
4018
4019 2016-05-06 Richard Biener <rguenther@suse.de>
4020
4021 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
4022 (fwprop_addr): Likewise.
4023
4024 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
4025
4026 PR target/70873
4027 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
4028 New prototype.
4029 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
4030 * config/i386/i386.md (push mem splitter): Use find_constant_src in
4031 the splitter condition.
4032 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
4033 the splitter condition.
4034 (FP float_extend load splitter): Ditto.
4035
4036 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
4037
4038 * config/i386/i386.md (peehole2 patterns): Change true_regnum
4039 to REGNO in all peephole2 patterns.
4040 (post-reload splitters): Change true_regnum to REGNO in
4041 post-reload splitters.
4042 (zero_extend splitters): Use general_reg_operand and
4043 nonimmediate_gr_operand predicates.
4044
4045 2016-05-05 Jakub Jelinek <jakub@redhat.com>
4046
4047 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
4048 v constraint instead of x.
4049
4050 2016-05-05 Alan Modra <amodra@gmail.com>
4051
4052 PR target/68662
4053 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
4054 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
4055 TARGET_NO_FP_IN_TOC for -mrelocatable.
4056 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
4057 TARGET_RELOCATABLE test.
4058 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4059 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4060 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4061 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4062 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4063 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4064 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4065 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4066 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
4067 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4068 Likewise.
4069 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
4070 (rs6000_stack_info): Likewise.
4071 (rs6000_elf_asm_out_constructor): Likewise.
4072 (rs6000_elf_asm_out_destructor): Likewise.
4073 (rs6000_elf_declare_function_name): Likewise.
4074 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
4075 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
4076 Don't define.
4077
4078 2016-05-05 Alan Modra <amodra@gmail.com>
4079
4080 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
4081
4082 2016-05-05 Alan Modra <amodra@gmail.com>
4083
4084 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
4085 out-of-line gpr restore for one or two regs if that would add
4086 a save of lr.
4087
4088 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
4089
4090 PR target/70873
4091 * config/i386/i386.md
4092 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
4093 Change to post-epilogue_completed late splitter. Use sse_reg_operand
4094 as operand 0 predicate.
4095 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
4096 Ditto.
4097 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
4098 Ditto. Emit the pattern using RTX.
4099
4100 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
4101 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
4102 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
4103 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
4104 Ditto.
4105 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
4106 sse_reg_operand as operand 0 predicate.
4107
4108 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
4109 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
4110 instead of gen_rtx_REG.
4111 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
4112 Ditto.
4113
4114 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4115
4116 * function.c (emit_use_return_register_into_block): Delete.
4117 (gen_return_pattern): Delete.
4118 (emit_return_into_block): Delete.
4119 (active_insn_between): Delete.
4120 (convert_jumps_to_returns): Delete.
4121 (emit_return_for_exit): Delete.
4122 (thread_prologue_and_epilogue_insns): Delete all code dealing with
4123 simple_return for shrink-wrapped blocks.
4124 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
4125 end of blocks that need one.
4126 (get_unconverted_simple_return): Delete.
4127 (convert_to_simple_return): Delete.
4128 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
4129 (convert_to_simple_return): Ditto.
4130
4131 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4132
4133 * cfgcleanup.c (bb_is_just_return): New function.
4134 (try_optimize_cfg): Simplify jumps to return, branches to return,
4135 and branches around return.
4136
4137 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4138
4139 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
4140 branch to a return.
4141
4142 2016-05-04 Jakub Jelinek <jakub@redhat.com>
4143
4144 PR c++/70906
4145 PR c++/70933
4146 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
4147 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
4148 assert flags & OEP_HASH_CHECK, instead of asserting it
4149 never happens. Handle TARGET_EXPR.
4150 * fold-const.c (operand_equal_p): For hash verification,
4151 or in OEP_HASH_CHECK into flags.
4152
4153 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
4154
4155 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4156 comment.
4157 (compute_samebase_partition_bases): Fix typo.
4158
4159 2016-05-04 Jakub Jelinek <jakub@redhat.com>
4160
4161 * config/i386/sse.md (vec_interleave_highv8sf,
4162 vec_interleave_lowv8sf, vec_interleave_highv4df,
4163 vec_interleave_lowv4df): Remove constraints from expanders.
4164
4165 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
4166
4167 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
4168
4169 * tree-inline.c (expand_call_inline): Fix path dealing with
4170 making lhs of call statement undefined.
4171
4172 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
4173
4174 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4175 Check availability on NODE, too.
4176 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
4177 (cgraph_node::call_for_symbol_and_aliases): Likewise.
4178 (varpool_node::call_for_symbol_and_aliase): Likewise.
4179 * ipa-pure-const.c (add_new_function): Analyze all bodies.
4180 (propagate_pure_const): Propagate across interposable functions, too.
4181 (skip_function_for_local_pure_const): Do not skip interposable bodies
4182 with aliases.
4183 (pass_local_pure_const::execute): Update.
4184
4185 2016-05-04 Marek Polacek <polacek@redhat.com>
4186
4187 * doc/invoke.texi: Document -Wdangling-else.
4188
4189 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4190
4191 * config.gcc: Error out when conflicting multilib is detected. Do not
4192 loop over multilibs since no combination is legal.
4193
4194 2016-05-04 Alan Modra <amodra@gmail.com>
4195
4196 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
4197 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
4198 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4199 Align .toc.
4200
4201 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
4202
4203 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
4204 Clean up p5600 comments.
4205
4206 2016-05-04 Richard Biener <rguenther@suse.de>
4207
4208 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
4209 constructor simplifications.
4210 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
4211
4212 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
4213
4214 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
4215 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
4216 result.set_rtx is null instead of aborting.
4217 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
4218 Always enable.
4219 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
4220 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
4221 *mov<mode>_store_postinc): New patterns.
4222
4223 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
4224
4225 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
4226 as commutative. Check both conversions are NOP.
4227 ((A & B) OP (C & B)): Remove.
4228
4229 2016-05-04 Alan Modra <amodra@gmail.com>
4230
4231 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
4232
4233 2016-05-04 Alan Modra <amodra@gmail.com>
4234
4235 PR target/70866
4236 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
4237 when cr2,3,4 are all fixed regs.
4238
4239 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
4240
4241 PR rtl-optimization/57193
4242 * opts.c (default_options_table): Revert OPT_frename_registers change.
4243 * doc/invoke.texi (-frename-registers, -O2): Likewise.
4244
4245 2016-05-03 Martin Sebor <msebor@redhat.com>
4246
4247 PR c++/66561
4248 * builtins.c (fold_builtin_FILE): New function.
4249 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
4250 (fold_builtin_0): Call them.
4251 * gimplify.c (gimplify_call_expr): Remove the handling of
4252 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
4253
4254 PR c++/66561
4255 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
4256 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
4257 constants.
4258
4259 PR c++/66639
4260 * doc/extend.texi (Function Names as Strings): Update __func__,
4261 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
4262 constants.
4263
4264 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4265 Richard Biener <rguenther@suse.de>
4266
4267 PR tree-optimization/70916
4268 * tree-if-conv.c: Include cfganal.h.
4269 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
4270 and remove_fake_exit_edges around the optimization pass.
4271
4272 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
4273
4274 * cgraph.c (symbol_table::create_edge): Set inline_failed.
4275 (cgraph_edge::make_direct): Likewise.
4276 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
4277 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
4278 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
4279 (CIF_THUNK): New code.
4280 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
4281 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
4282 (compute_inline_parameters): Set inline_failed for thunks.
4283 (inline_analyze_function): Cleanup.
4284 * ipa-inline.c (can_inline_edge_p): Do not deal with
4285 call_stmt_cannot_inline_p.
4286 (can_early_inline_edge_p): Likewise.
4287 (early_inliner): Initialize inline_failed.
4288 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
4289
4290 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
4291
4292 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
4293 from nonimm_ssenomem_operand.
4294 (nonimm_ssenomem_operand): New predicate.
4295 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
4296 as operand 0 predicate.
4297 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
4298 Disable unsupported alternatives using "enabled" attribute.
4299 Use register_ssemem_operand as operand 0 predicate.
4300 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
4301
4302 2016-05-03 Marek Polacek <polacek@redhat.com>
4303
4304 PR c/70859
4305 * input.c (expansion_point_location): New function.
4306 * input.h (expansion_point_location): Declare.
4307
4308 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
4309
4310 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
4311 occurence with frame_offset_ ones.
4312
4313 2016-05-03 Alan Modra <amodra@gmail.com>
4314
4315 PR rtl-optimization/70890
4316 * ira.c (combine_and_move_insns): When moving def_insn, remove
4317 equivs on use_insn.
4318
4319 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
4320
4321 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
4322 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
4323 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
4324 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
4325
4326 2016-05-03 Alan Modra <amodra@gmail.com>
4327
4328 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
4329 for SAVE_MULTIPLE/STORE_MULTIPLE.
4330
4331 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4332
4333 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
4334 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
4335
4336 2016-05-03 Richard Biener <rguenther@suse.de>
4337
4338 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
4339 default true.
4340 (gimplify_arg): Likewise.
4341 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
4342 re-writing the result to a decl if required.
4343 (internal_get_tmp_var): Add allow_ssa parameter
4344 and override into_ssa with it.
4345 (get_formal_tmp_var): Adjust.
4346 (get_initialized_tmp_var): Add allow_ssa parameter.
4347 (gimplify_arg): Add allow_ssa parameter and avoid generating
4348 SSA names for the result false.
4349 (gimplify_call_expr): If the call may return twice do not
4350 gimplify parameters into SSA.
4351 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
4352 (gimplify_modify_expr): Adjust assert. For noreturn calls
4353 with a SSA name LHS adjust its def.
4354 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
4355 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
4356 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
4357 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
4358 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
4359 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
4360 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
4361 (optimize_target_teams): Do not allow SSA names for clause operands.
4362 (gimplify_expr): Likewise for where we mark the result addressable.
4363 * passes.def (pass_init_datastructures): Remove.
4364 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
4365 (rewrite_stmt): Likewise.
4366 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
4367 (replace_locals_op): Replace SSA names.
4368 (copy_gimple_seq_and_replace_locals): Init src_cfun.
4369 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
4370 * cgraph.c (release_function_body): Free CFG annotations only
4371 when we have a CFG. Simplify.
4372 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
4373 force_gimple_operand instead of get_initialized_tmp_var.
4374 * tree-pass.h (make_pass_init_datastructures): Remove.
4375 * tree-ssa.c (execute_init_datastructures): Remove.
4376 (pass_data_init_datastructures): Likewise.
4377 (class pass_init_datastructures): Likewise.
4378 (make_pass_init_datastructures): Likewise.
4379 * omp-low.c (create_omp_child_function): Init SSA data structures.
4380 (grid_expand_target_grid_body): Likewise.
4381 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
4382 name before adding it to names_to_release.
4383 (remove_bb): Always release SSA defs.
4384 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
4385 before dereferencing it.
4386 * cgraphunit.c (init_lowered_empty_function): Always
4387 int SSA data structures.
4388 * tree-ssanames.c (release_defs): Remove assert that we are in
4389 SSA form.
4390 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
4391
4392 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4393 Uros Bizjak <ubizjak@gmail.com>
4394
4395 PR rtl-optimization/70467
4396 * config/i386/predicates.md (x86_64_hilo_int_operand,
4397 x86_64_hilo_general_operand): New predicates.
4398 * config/i386/constraints.md (Wd): New constraint.
4399 * config/i386/i386.md (mode attr di): Use Wd instead of e.
4400 (general_hilo_operand): New mode attr.
4401 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
4402 instead of <general_operand>.
4403 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
4404 x86_64_hilo_general_operand instead of <general_operand>.
4405
4406 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4407
4408 PR tree-optimization/70916
4409 * tree-if-conv.c (constant_or_ssa_name): Removed.
4410 (fold_build_cond_expr): Use is_gimple_val instead of
4411 constant_or_ssa_name.
4412
4413 PR tree-optimization/70916
4414 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4415 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4416
4417 PR target/49244
4418 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
4419 (optimize_atomic_bit_test_and): New function.
4420 (pass_fold_builtins::execute): Use it.
4421 * optabs.def (atomic_bit_test_and_set_optab,
4422 atomic_bit_test_and_complement_optab,
4423 atomic_bit_test_and_reset_optab): New optabs.
4424 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
4425 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
4426 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
4427 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
4428 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
4429 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
4430 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
4431 * doc/md.texi (atomic_bit_test_and_set@var{mode},
4432 atomic_bit_test_and_complement@var{mode},
4433 atomic_bit_test_and_reset@var{mode}): Document.
4434 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
4435 atomic_bit_test_and_complement<mode>,
4436 atomic_bit_test_and_reset<mode>): New expanders.
4437 (atomic_bit_test_and_set<mode>_1,
4438 atomic_bit_test_and_complement<mode>_1,
4439 atomic_bit_test_and_reset<mode>_1): New insns.
4440
4441 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
4442
4443 PR rtl-optimization/70687
4444 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
4445 instead of unsigned HOST_WIDE_INT.
4446
4447 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
4448
4449 PR rtl-optimization/44281
4450 * hard-reg-set.h (struct target_hard_regs): New field
4451 x_fixed_nonglobal_reg_set.
4452 (fixed_nonglobal_reg_set): New macro.
4453 * reginfo.c (init_reg_sets_1): Initialize it.
4454 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
4455 of fixed_reg_set.
4456 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
4457
4458 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4459
4460 PR tree-optimization/56541
4461 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
4462 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
4463 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
4464 (any_complicated_phi): new static variable.
4465 (aggressive_if_conv): delete.
4466 (if_convertible_phi_p): support phis with more than two arguments.
4467 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
4468 critical pred edges.
4469 (ifcvt_split_critical_edges): support phis with more than two
4470 arguments by checking new parameter. only split critical edges
4471 if needed.
4472 (tree_if_conversion): handle simd pragma marked loop using new
4473 local variable aggressive_if_conv. check any_complicated_phi.
4474
4475 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4476
4477 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
4478 before using it.
4479
4480 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4481
4482 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
4483 cbase.
4484
4485 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
4486
4487 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
4488 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
4489 define_insn_and_split.
4490 (mulsi3_i): New define_insn_and_split.
4491 (mulsi3_call): Convert to define_insn.
4492 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
4493 Remove constraints.
4494
4495 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4496
4497 * machmode.h (mode_complex): Add support to give the complex mode
4498 for a given mode.
4499 (GET_MODE_COMPLEX_MODE): Likewise.
4500 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
4501 stored by build_complex_type and gfc_build_complex_type instead of
4502 trying to figure out the appropriate mode based on the size. Raise
4503 an assertion error, if the type was not set.
4504 * genmodes.c (struct mode_data): Add field for the complex type of
4505 the given type.
4506 (blank_mode): Likewise.
4507 (make_complex_modes): Remember the complex mode created in the
4508 base type.
4509 (emit_mode_complex): Write out the mode_complex array to map a
4510 type mode to the complex version.
4511 (emit_insn_modes_c): Likewise.
4512 * tree.c (build_complex_type): Set the complex type to use before
4513 calling layout_type.
4514 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
4515 support for __float128 complex datatypes.
4516 (rs6000_hard_regno_mode_ok): Likewise.
4517 (rs6000_setup_reg_addr_masks): Likewise.
4518 (rs6000_complex_function_value): Likewise.
4519 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
4520 __float128 and __ibm128 complex.
4521 (FLOAT128_IBM_P): Likewise.
4522 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4523 * doc/extend.texi (Additional Floating Types): Document that
4524 -mfloat128 must be used to enable __float128. Document complex
4525 __float128 and __ibm128 support.
4526
4527 2016-05-02 Jakub Jelinek <jakub@redhat.com>
4528
4529 PR target/49244
4530 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
4531 char/short arguments promoted to int because of promote_prototypes.
4532
4533 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
4534
4535 * config/i386/predicates.md (register_ssemem_operand): New predicate.
4536 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
4537 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
4538 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
4539 alternatives using "enabled" attribute. Use register_ssemem_operand
4540 as operand 1 predicate.
4541 (*cmpi<unord>xf_i387): Split XFmode pattern from
4542 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
4543 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
4544 *absneg<mode>2_i387. Disable unsupported alternatives using
4545 "enabled" attribute.
4546 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
4547
4548 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4549
4550 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
4551 marker.
4552 (oacc_loop_process): Check mask for loop termination.
4553
4554 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
4555
4556 * cif-code.def (CIF_THUNK): Add.
4557 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
4558 accidental change.
4559
4560 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
4561
4562 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
4563 (dump_inline_summary): Dump it.
4564 (fp_expression_p): New predicate.
4565 (estimate_function_body_sizes): Use it.
4566 (inline_merge_summary): Merge fp_expressions.
4567 (inline_read_section): Read fp_expressions.
4568 (inline_write_summary): Write fp_expressions.
4569 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
4570 codegen boundary if either caller or callee is !fp_expressions.
4571 * ipa-inline.h (inline_summary): Add fp_expressions.
4572 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
4573 to fp_expressions be sure the fp generation flags are updated.
4574
4575 2016-05-02 Jakub Jelinek <jakub@redhat.com>
4576
4577 PR rtl-optimization/70467
4578 * cse.c (cse_insn): Handle no-op MEM moves after folding.
4579
4580 PR rtl-optimization/70467
4581 * ipa-pure-const.c (check_call): Handle internal calls even in
4582 ipa mode like in local mode.
4583
4584 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4585
4586 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
4587
4588 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
4589
4590 * match.pd (X u< X, X u> X): New transformations.
4591
4592 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
4593
4594 * flag-types.h (enum warn_strict_overflow_code): Move ...
4595 * coretypes.h: ... here.
4596 * fold-const.h (fold_overflow_warning): Declare.
4597 * fold-const.c (fold_overflow_warning): Make non-static.
4598 (fold_comparison): Move the transformation of X +- C1 CMP C2
4599 into X CMP C2 -+ C1 ...
4600 * match.pd: ... here.
4601 * gimple-fold.c (fold_stmt_1): Protect with
4602 fold_defer_overflow_warnings.
4603
4604 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4605
4606 * omp-low.c (struct oacc_loop): Add 'inner' field.
4607 (new_oacc_loop_raw): Initialize it to zero.
4608 (oacc_loop_fixed_partitions): Initialize it.
4609 (oacc_loop_auto_partitions): Partition outermost loop to outermost
4610 available partitioning.
4611
4612 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4613
4614 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
4615 register_operand.
4616 (umulsidi3): Likewise.
4617 (indirect_jump): Fix jump instruction assembly patterns.
4618
4619 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
4620
4621 PR target/70860
4622 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4623 (nvptx_function_value): Assert non-NULL cfun.
4624
4625 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
4626
4627 PR rtl-optimization/70886
4628 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
4629
4630 * cselib.h (rtx_equal_for_cselib_1): Declare.
4631 (rtx_equal_for_cselib_p: New inline function.
4632 * cselib.c (rtx_equal_for_cselib_p): Delete.
4633 (rtx_equal_for_cselib_1): Make public.
4634
4635 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
4636
4637 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
4638 (register_mixssei387nonimm_operand): Remove predicate.
4639 * config/i386/i386.md (*fop_<mode>_comm): Merge from
4640 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
4641 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
4642 for TARGET_MIX_SSE_I387 alternatives.
4643 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
4644 Disable unsupported alternatives using "enabled" attribute. Use
4645 nonimm_ssenomem_operand as operand 1 predicate. Also check
4646 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
4647
4648 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4649
4650 * tree.c (cst_and_fits_in_hwi): Simplify.
4651
4652 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4653
4654 * tree.h (wi::to_wide): New function.
4655 * expr.c (expand_expr_real_1): Use wi::to_wide.
4656 * fold-const.c (int_const_binop_1): Likewise.
4657 (extract_muldiv_1): Likewise.
4658
4659 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4660
4661 * wide-int.h: Update offset_int and widest_int documentation.
4662 (WI_SIGNED_SHIFT_RESULT): New macro.
4663 (wi::binary_shift): Define signed_shift_result_type for
4664 shifts on offset_int- and widest_int-like types.
4665 (generic_wide_int): Support <<= and >>= if << and >> are supported.
4666 * tree.h (int_bit_position): Use shift operators instead of wi::
4667 shifts.
4668 * alias.c (adjust_offset_for_component_ref): Likewise.
4669 * expr.c (get_inner_reference): Likewise.
4670 * fold-const.c (fold_comparison): Likewise.
4671 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
4672 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
4673 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4674 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4675 (stmt_kills_ref_p): Likewise.
4676 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
4677 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
4678 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4679 (ao_ref_init_from_vn_reference): Likewise.
4680
4681 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4682
4683 * wide-int.h: Update offset_int and widest_int documentation.
4684 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
4685 (wi::binary_traits): Allow ordered comparisons between offset_int and
4686 offset_int, between widest_int and widest_int, and between either
4687 of these types and basic C types.
4688 (operator <, <=, >, >=): Define for the same combinations.
4689 * tree.h (tree_int_cst_lt): Use comparison operators instead
4690 of wi:: comparisons.
4691 (tree_int_cst_le): Likewise.
4692 * gimple-fold.c (fold_array_ctor_reference): Likewise.
4693 (fold_nonarray_ctor_reference): Likewise.
4694 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
4695 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
4696 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
4697 * tree-sra.c (completely_scalarize): Likewise.
4698 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
4699 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
4700 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
4701 (check_for_binary_op_overflow): Likewise.
4702 (search_for_addr_array): Likewise.
4703 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
4704
4705 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4706
4707 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
4708 (arc_save_restore): Likewise.
4709 (arc_dwarf_register_span): Likewise.
4710 (arc_output_pic_addr_const): Initialize suffix variable.
4711
4712 2016-05-02 Martin Liska <mliska@suse.cz>
4713
4714 * symbol-summary.h (function_summary::function_summary):
4715 Remove checking assert for all cgraph nodes.
4716 (function_summary::get): Check summary_uid.
4717 (symtab_insertion): Check summary_uid.
4718
4719 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4720
4721 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
4722 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
4723 bmaskn instruction.
4724 (arc_dwarf_register_span): Remove enum keyword.
4725 (compact_memory_operand_p): New function.
4726 * config/arc/arc.h (reg_class): Add code density register classes.
4727 (REG_CLASS_NAMES): Likewise.
4728 (REG_CLASS_CONTENTS): Likewise.
4729 * config/arc/arc.md (*movqi_insn): Add code density instructions.
4730 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
4731 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
4732 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
4733 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
4734 constraints.
4735 (h, Rcd, Rsd, Rzd): New register constraints.
4736 (T): Use compact_memory_operand_p function.
4737 * config/arc/predicates.md (compact_load_memory_operand): Remove.
4738
4739 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
4740
4741 * config/sh/sh.md (*negnegt, *movtt): Remove.
4742
4743 2016-05-02 Marek Polacek <polacek@redhat.com>
4744 Tom de Vries <tom@codesourcery.com>
4745
4746 PR tree-optimization/70700
4747 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
4748 bigger than FIRST_REF_NODE.
4749
4750 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
4751
4752 PR target/52898
4753 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
4754 TARGET_CMPEQDI_T.
4755 (prepare_cbranch_operands): Don't use scratch register. Assume that
4756 function is used when pseudos can be created.
4757 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
4758 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
4759 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
4760 define_expand. Allow it only when pseudos can be created.
4761 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
4762
4763 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
4764
4765 * config/i386/constraints.md (BC): Only allow -1 operands.
4766 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
4767 Add "enabled" attribute. Update XI mode attribute calculation.
4768 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
4769 (*movoi_internal_avx): Update XI mode attribute calculation.
4770 (*movti_internal): Ditto.
4771
4772 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4773
4774 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
4775 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
4776
4777 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
4778
4779 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
4780 statement on instruction code. Remove trailing spaces.
4781 (altivec_expand_stv_builtin): Likewise.
4782
4783 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4784
4785 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
4786 (TARGET_FPU_DOUBLE): Simplify.
4787 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
4788 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
4789 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
4790 with 'TARGET_FPU_DOUBLE'.
4791 * config/sh/sh.md: Likewise.
4792
4793 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
4794
4795 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
4796 SH_DIV_STR_FOR_SIZE): Remove.
4797 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
4798 SH_DIV_STR_FOR_SIZE): Remove.
4799
4800 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4801
4802 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
4803 logical_reg_operand): Delete.
4804 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
4805 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
4806 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
4807 match_operand and match_test.
4808 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
4809 variables on their first use. Return bool values.
4810 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
4811 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
4812 arith_reg_operand for input operand. Remove empty constraints.
4813 (xorsi3): Delete.
4814 (*xorsi3_compact): Rename to xorsi3.
4815 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
4816 (*zero_extend<mode>si2_disp_mem): Update comment.
4817 (mov_nop): Delete.
4818
4819 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4820
4821 * config/sh/t-sh: Remove SH5 support.
4822 * config.gcc: Likewise.
4823 * configure: Likewise.
4824
4825 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4826
4827 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
4828
4829 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4830
4831 * config/sh/sh.c (register_sh_passes, sh_option_override,
4832 sh_print_operand, prepare_move_operands,
4833 sh_can_follow_jump): Remove TARGET_SH1 checks.
4834 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
4835 PROMOTE_MODE): Likewise.
4836 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
4837 movdi): Likewise.
4838
4839 2016-04-30 Alan Modra <amodra@gmail.com>
4840
4841 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
4842 restoring when fixed_reg_p, but allow out-of-line or stmw save.
4843 Check for user regs later to avoid unnecessary looping over regs.
4844 Merge user reg check with non-saved reg check. Don't force
4845 inline VR restore when static chain used.
4846 (rs6000_frame_related): Omit eh_frame info for user regs when
4847 saving.
4848 (fixed_regs_p): Delete.
4849
4850 2016-04-30 Alan Modra <amodra@gmail.com>
4851
4852 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
4853 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
4854 Update all uses.
4855
4856 2016-04-30 Alan Modra <amodra@gmail.com>
4857
4858 PR target/69645
4859 * config/rs6000/rs6000.c (fixed_reg_p): New function.
4860 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
4861 Update all uses.
4862
4863 2016-04-30 Alan Modra <amodra@gmail.com>
4864
4865 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4866 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
4867 flag_pic test for Darwin.
4868
4869 2016-04-30 Alan Modra <amodra@gmail.com>
4870
4871 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
4872 throw_calls_crossed.
4873 (REG_FREQ_CALLS_CROSSED): Delete.
4874 (REG_N_THROWING_CALLS_CROSSED): Delete.
4875 * regstat.c (regstat_bb_compute_ri): Don't calculate
4876 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
4877 (dump_reg_info): Don't print call cross frequency.
4878 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
4879 and REG_N_THROWING_CALLS_CROSSED.
4880
4881 2016-04-30 Alan Modra <amodra@gmail.com>
4882
4883 * regs.h (struct reg_info_t): Delete live_length.
4884 (REG_LIVE_LENGTH): Delete macro.
4885 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
4886 local_live, local_processed and local_live_last_luid params.
4887 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
4888 Formatting fixes.
4889 (regstat_compute_ri): Adjust for above. Don't set
4890 REG_LIVE_LENGTH.
4891 (dump_reg_info): Don't print live length.
4892 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
4893 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
4894 Localize loop_depth var.
4895
4896 2016-04-30 Alan Modra <amodra@gmail.com>
4897
4898 * ira.c (enum valid_equiv): New.
4899 (validate_equiv_mem): Return enum.
4900 (update_equiv_mem): Create replacement in more cases.
4901 (add_store_equivs): Update validate_equiv_mem call.
4902
4903 2016-04-30 Alan Modra <amodra@gmail.com>
4904
4905 * ira.c (combine_and_move_insns): Rather than scanning insns,
4906 use DF infrastucture to find use and def insns.
4907
4908 2016-04-30 Alan Modra <amodra@gmail.com>
4909
4910 ira.c (combine_and_move_insns): Move invariant conditions..
4911 (ira.c): ..to here. Call combine_and_move_insns before
4912 add_store_equivs. Call grow_reg_equivs later. Allocate
4913 req_equiv later using max_reg_num() rather than global max_regno.
4914 (contains_replace_regs): Delete.
4915 (add_store_equivs): Remove contains_replace_regs test.
4916
4917 2016-04-30 Alan Modra <amodra@gmail.com>
4918
4919 * ira.c (struct equiv_mem_data): New.
4920 (equiv_mem, equiv_mem_modified): Delete static vars.
4921 (validate_equiv_mem_from_store): Use "data" param to communicate..
4922 (validate_equiv_mem): ..from here.
4923
4924 2016-04-30 Alan Modra <amodra@gmail.com>
4925
4926 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
4927 split out from..
4928 (update_reg_equivs): ..here. Move allocation and freeing of
4929 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
4930 end_alias_analysis to..
4931 (ira): ..here.
4932
4933 2016-04-30 Alan Modra <amodra@gmail.com>
4934
4935 * ira.c (pdx_subregs): Delete.
4936 (struct equivalence): Add pdx_subregs field.
4937 (set_paradoxical_subreg): Remove pdx_subregs param. Update
4938 pdx_subregs access.
4939 (update_equiv_regs): Don't create or free pdx_subregs. Update
4940 pdx_subregs access.
4941
4942 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4943
4944 * config/rs6000/altivec.h: Change definitions of vec_xl and
4945 vec_xst.
4946 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
4947 (LD_ELEMREV_V2DI): New.
4948 (LD_ELEMREV_V4SF): New.
4949 (LD_ELEMREV_V4SI): New.
4950 (LD_ELEMREV_V8HI): New.
4951 (LD_ELEMREV_V16QI): New.
4952 (ST_ELEMREV_V2DF): New.
4953 (ST_ELEMREV_V2DI): New.
4954 (ST_ELEMREV_V4SF): New.
4955 (ST_ELEMREV_V4SI): New.
4956 (ST_ELEMREV_V8HI): New.
4957 (ST_ELEMREV_V16QI): New.
4958 (XL): New.
4959 (XST): New.
4960 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4961 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
4962 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
4963 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
4964 (altivec_expand_builtin): Add handling for
4965 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
4966 (rs6000_invalid_builtin): Add error-checking for
4967 RS6000_BTM_P9_VECTOR.
4968 (altivec_init_builtins): Define builtins used to implement vec_xl
4969 and vec_xst.
4970 (rs6000_builtin_mask_names): Define power9-vector.
4971 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
4972 (RS6000_BTM_P9_VECTOR): Define.
4973 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
4974 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
4975 (vsx_ld_elemrev_v2df): Likewise.
4976 (vsx_ld_elemrev_v4sf): Likewise.
4977 (vsx_ld_elemrev_v4si): Likewise.
4978 (vsx_ld_elemrev_v8hi): Likewise.
4979 (vsx_ld_elemrev_v16qi): Likewise.
4980 (vsx_st_elemrev_v2df): Likewise.
4981 (vsx_st_elemrev_v2di): Likewise.
4982 (vsx_st_elemrev_v4sf): Likewise.
4983 (vsx_st_elemrev_v4si): Likewise.
4984 (vsx_st_elemrev_v8hi): Likewise.
4985 (vsx_st_elemrev_v16qi): Likewise.
4986 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
4987 grammar.
4988
4989 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
4990
4991 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
4992 out into ...
4993 (simplify_control_stmt_condition_1): ... here. Recurse into
4994 BIT_AND_EXPRs and BIT_IOR_EXPRs.
4995
4996 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
4997
4998 PR target/69810
4999 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
5000 (zero_extendqi<mode>2_dot): Revert earlier conversion from
5001 define_insn_and_split to define_insn.
5002 (zero_extendqi<mode>2_dot2): Same.
5003 (extendqi<mode>2_dot): Same.
5004 (extendqi<mode>2_dot2): Same.
5005
5006 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5007
5008 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
5009 (probe_stack): New expander.
5010 (probe_stack_<mode>): New insn pattern.
5011
5012 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5013
5014 * config/i386/i386.md
5015 (operations with memory inputs setting flags peephole2):
5016 Remove uneeded REG_P checks. Cleanup pattern generation.
5017
5018 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
5019
5020 * tree-vect-loop.c (vect_transform_loop): Fix
5021 nb_iterations_upper_bound computation for vectorized loop.
5022
5023 2016-04-29 Marek Polacek <polacek@redhat.com>
5024 Jakub Jelinek <jakub@redhat.com>
5025
5026 PR sanitizer/70342
5027 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
5028 TARGET_EXPR_SLOT as a base.
5029
5030 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
5033 with 'rCm2' constraints to limit possible immediate size.
5034 (*load_zeroextendqisi_update): Likewise.
5035 (*load_signextendqisi_update): Likewise.
5036 (*loadhi_update): Likewise.
5037 (*load_zeroextendhisi_update): Likewise.
5038 (*load_signextendhisi_update): Likewise.
5039 (*loadsi_update): Likewise.
5040 (*loadsf_update): Likewise.
5041
5042 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5043
5044 * config/i386/predicates.md (constm1_operand): Fix comparison.
5045
5046 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
5047
5048 * testsuite/gcc.target/arc/ieee_eq.c: New test.
5049
5050 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
5051
5052 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
5053 remaining SH5 related settings.
5054 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
5055 shmedia_prepare_call_address): Delete.
5056 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
5057 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
5058 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
5059 UNSUPPORTED_SH2A): Remove m5 checks.
5060 (sh_divide_strategy_e): Remove SH5 division strategies.
5061 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
5062 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
5063
5064 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5065
5066 * config/s390/s390.c (s390_rtx_costs): Update documentation.
5067
5068 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5069
5070 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
5071 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
5072 Change lder to ldr.
5073 * config/s390/vector.md ("mov<mode>"): Likewise.
5074
5075 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5076
5077 * config/s390/constraints.md ("U", "W"): Invoke
5078 s390_mem_constraint with "ZR" and "ZT".
5079 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
5080 addresses when using LRA. Accept also short displacements for S
5081 and T constraints. Do not check for long displacement target for
5082 S and T constraints.
5083 (s390_mem_constraint): Remove handling of U and W constraints.
5084 * config/s390/s390.md (various patterns): Remove the short
5085 displacement constraints (Q and R) if a long displacement
5086 constraint is present. Add longdisp as required CPU capability.
5087 * config/s390/vector.md: Likewise.
5088 * config/s390/vx-builtins.md: Likewise.
5089
5090 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5091
5092 PR target/60040
5093 * reload1.c (reload): Call finish_spills before
5094 restarting reload loop. Skip select_reload_regs
5095 if update_eliminables_and_spill returns true.
5096
5097 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
5098
5099 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
5100 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
5101 (umulhisi3_imm): Update predicates and constraint letters.
5102 (umulhisi3_reg): Declare instruction as commutative.
5103 * config/arc/constraints.md (J12, J16): New constraints.
5104 * config/arc/predicates.md (short_unsigned_const_operand): New
5105 predicate.
5106 (arc_short_operand): Likewise.
5107 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
5108
5109 2016-04-29 Richard Biener <rguenther@suse.de>
5110
5111 PR tree-optimization/13962
5112 PR tree-optimization/65686
5113 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
5114 * tree-ssa-alias.c (ptrs_compare_unequal): New function
5115 using PTA to compare pointers.
5116 * match.pd: Add pattern for pointer equality compare simplification
5117 using ptrs_compare_unequal.
5118
5119 2016-04-29 Richard Biener <rguenther@suse.de>
5120
5121 * stor-layout.c (layout_type): Do not build a pointer-to-element
5122 type for arrays.
5123
5124 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5125
5126 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
5127 Use SWI mode iterator. Use general_reg_operand predicate.
5128 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
5129 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
5130 predicates.
5131
5132 2016-04-29 Jakub Jelinek <jakub@redhat.com>
5133
5134 PR middle-end/70843
5135 * fold-const.c (operand_equal_p): Don't verify hash value equality
5136 if arg0 == arg1.
5137 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
5138 and OMP_CLAUSE.
5139
5140 2016-04-28 Jakub Jelinek <jakub@redhat.com>
5141
5142 PR target/70858
5143 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
5144 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
5145 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
5146 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
5147 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
5148
5149 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5150
5151 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
5152 to info. Don't initialize separate fields to 0. Clean up
5153 formatting a bit.
5154
5155 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5156
5157 * config/i386/i386.md (peephole2s for operations with memory inputs):
5158 Use SWI mode iterator.
5159 (peephole2s for operations with memory outputs): Ditto.
5160 Do not check for stack checking probe.
5161
5162 (probe_stack): Remove expander.
5163
5164 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5165 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
5168 operands as 32-bits.
5169
5170 2016-04-28 Jason Merrill <jason@redhat.com>
5171
5172 * gdbinit.in: Skip line-map.h.
5173
5174 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5175 Andrew Burgess <andrew.burgess@embecosm.com>
5176
5177 * config/arc/arc.c (arc_conditional_register_usage): Take
5178 TARGET_RRQ_CLASS into account.
5179 (arc_print_operand): Support printing 'p' and 's' operands.
5180 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
5181 as 0.
5182 (TARGET_RRQ_CLASS): Define.
5183 (IS_POWEROF2_OR_0_P): Define.
5184 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
5185 alternatives.
5186 (*tst_movb): New define_insn.
5187 (*tst): Avoid recognition if it could prevent '*tst_movb'
5188 combination; replace c/CnL with c/Chs alternative.
5189 (*tst_bitfield_tst): New define_insn.
5190 (*tst_bitfield_asr): New define_insn.
5191 (*tst_bitfield): New define_insn.
5192 (andsi3_i): Add Rrq variant.
5193 (extzv): New define_expand.
5194 (insv): New define_expand.
5195 (*insv_i): New define_insn.
5196 (*movb): New define_insn.
5197 (*movb_signed): New define_insn.
5198 (*movb_high): New define_insn.
5199 (*movb_high_signed): New define_insn.
5200 (*movb_high_signed + 1): New define_split pattern.
5201 (*mrgb): New define_insn.
5202 (*mrgb + 1): New define_peephole2 pattern.
5203 (*mrgb + 2): New define_peephole2 pattern.
5204 * config/arc/arc.opt (mbitops): New option for nps400, uses
5205 TARGET_NPS_BITOPS_DEFAULT.
5206 * config/arc/constraints.md (q): Make register class conditional.
5207 (Rrq): New register constraint.
5208 (Chs): New constraint.
5209 (Clo): New constraint.
5210 (Chi): New constraint.
5211 (Cbf): New constraint.
5212 (Cbn): New constraint.
5213 (C18): New constraint.
5214 (Cbi): New constraint.
5215
5216 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5217
5218 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
5219 dst->popcount.
5220 (bitmap_intersection_of_preds): Ditto.
5221 (bitmap_union_of_succs): Ditto.
5222 (bitmap_union_of_preds): Ditto.
5223 * sbitmap.c (do_popcount): Delete.
5224 (BITMAP_DEBUGGING): Delete.
5225 (sbitmap_verify_popcount): Delete.
5226 (sbitmap_alloc): Don't initialize the popcount field.
5227 (sbitmap_alloc_with_popcount): Delete.
5228 (sbitmap_resize): Don't resize the popcount array.
5229 (sbitmap_vector_alloc): Don't initialize the popcount field.
5230 (bitmap_copy): Don't copy the popcount array.
5231 (bitmap_clear): Don't clear the popcount array.
5232 (bitmap_clear): Delete the popcount array handling.
5233 (bitmap_ior_and_compl): Delete the popcount assert.
5234 (bitmap_not): Ditto.
5235 (bitmap_and_compl): Ditto.
5236 (bitmap_and): Delete the popcount array handling.
5237 (bitmap_xor): Ditto.
5238 (bitmap_ior): Ditto.
5239 (bitmap_or_and): Delete the popcount assert.
5240 (bitmap_and_or): Ditto.
5241 (popcount_table): Delete.
5242 (sbitmap_elt_popcount): Delete.
5243 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
5244 (bitmap_set_bit): Delete the popcount assert.
5245 (bitmap_clear_bit): Ditto.
5246 (sbitmap_free): Don't free the popcount array.
5247 (sbitmap_alloc_with_popcount): Delete declaration.
5248 (sbitmap_popcount): Ditto.
5249
5250 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5251 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
5254 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
5255 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
5256 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
5257 * config/arc/arc.opt (mcmem): New option.
5258 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
5259 supply length for r/m alternative.
5260 (*extendqisi2_ac): Likewise.
5261 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
5262 r/Uex alternative.
5263 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
5264 (movhi_insn): Likewise.
5265 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
5266 (*zero_extendqihi2_i): Add r/Ucm alternative.
5267 (*zero_extendqisi2_ac): Likewise.
5268 (*zero_extendhisi2_i): Likewise.
5269 * config/arc/constraints.md (Uex): New memory constraint.
5270 (Ucm): New define_constraint.
5271 * config/arc/predicates.md (long_immediate_loadstore_operand):
5272 Return 0 for MEM with cmem_address address.
5273 (cmem_address_0): New predicates.
5274 (cmem_address_1): Likewise.
5275 (cmem_address_2): Likewise.
5276 (cmem_address): Likewise.
5277
5278 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5279
5280 * config/rs6000/rs6000.c (machine_function): Rename
5281 insn_chain_scanned_p to spe_insn_chain_scanned_p.
5282 (rs6000_stack_info): Adjust.
5283
5284 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5285 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * config/arc/constraints.md (Usd): Convert to define_constraint.
5288 (Us<): Likewise.
5289 (Us>): Likewise.
5290
5291 2016-04-28 Jakub Jelinek <jakub@redhat.com>
5292
5293 PR target/70821
5294 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
5295 Add new peephole2 where the first insn is *mov<mode>_or instead of
5296 *mov<mode>_internal.
5297
5298 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
5299
5300 * tracer.c (bb_seen): Make static.
5301
5302 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
5305 support, setup defaults.
5306 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
5307 * config/arc/arc.c (arc_init): Add NPS400 support.
5308 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
5309 (TARGET_ARC700): NPS400 is also an ARC700.
5310 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
5311
5312 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5313
5314 PR target/70668
5315 * config/nds32/nds32.md (casesi): Don't access the operands array
5316 out of bounds.
5317
5318 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5319
5320 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
5321 (or $-1,reg peephole2): Ditto.
5322 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
5323
5324 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
5325
5326 * doc/extend.texi (Common Function Attributes) [optimize]:
5327 Discourage use of the optimize attribute.
5328
5329 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
5330
5331 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
5332 special case builtin.
5333 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
5334 ALTIVEC_BUILTIN_VEC_ADDE.
5335 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5336 support for ALTIVEC_BUILTIN_VEC_ADDE.
5337 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5338 for __builtin_vec_adde.
5339
5340 2016-04-28 Jakub Jelinek <jakub@redhat.com>
5341
5342 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
5343 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
5344
5345 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5346
5347 PR testsuite/70595
5348 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5349 attributes): Document cilkplus_runtime.
5350
5351 2016-04-28 Martin Jambor <mjambor@suse.cz>
5352
5353 * tree-cfg.c (verify_expr): Verify that local declarations belong to
5354 this function. Call verify_expr on MEM_REFs and bases of other
5355 handled_components.
5356
5357 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5358
5359 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
5360 for WORD_REGISTER_OPERATIONS to runtime check.
5361
5362 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5363
5364 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
5365
5366 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5367
5368 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
5369 big-endian compilation.
5370 * config/arc/arc.md (addf3): Likewise.
5371 (subdf3): Likewise.
5372 (muldf3): Likewise.
5373
5374 2016-04-28 Richard Biener <rguenther@suse.de>
5375
5376 PR tree-optimization/70840
5377 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
5378 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
5379 Mark x * pow(x,c) -> pow(x,c+1) commutative.
5380 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
5381
5382 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5383
5384 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
5385 and explain why in a comment.
5386
5387 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5388
5389 * config/arc/arc.md (cpu_facility): Add fpx variant.
5390 (subdf3): Prohibit use reverse sub when assist operations option
5391 is enabled.
5392 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
5393 instructions only when FPX is enabled.
5394 * testsuite/gcc.target/arc/trsub.c: New test.
5395
5396 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5397
5398 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
5399 mult_operator when calculating "type" attribute.
5400 (*fop_<mode>_1_i387): Ditto.
5401 (*fop_xf_1_i387): Ditto.
5402 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
5403 Use std::swap to swap operands. Use RTL expressions to generate
5404 converted pattern.
5405
5406 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5407 Joern Rennecke <joern.rennecke@embecosm.com>
5408
5409 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
5410 declaration.
5411 (emit_pic_move): Remove.
5412 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
5413 * config/arc/arc.c (emit_pic_move): Removed.
5414 (TARGET_HAVE_TLS): Define.
5415 (arc_conditional_register_usage): Test for arc_tp_regno.
5416 (arc_print_operand, arc_print_operand_address): Handle TLS
5417 unspecs.
5418 (arc_needs_pcl_p): New function.
5419 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
5420 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
5421 (arc_raw_symbolic_reference_mentioned_p): Likewise.
5422 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
5423 (arc_legitimize_tls_address): Likewise.
5424 (DTPOFF_ZERO_SYM): Define.
5425 (arc_legitimize_pic_address): Make it static, handle TLS cases.
5426 (arc_output_pic_addr_const): Print TLS unspecs.
5427 (prepare_pic_move): New function, replaces emit_pic_move.
5428 (arc_legitimate_constant_p): Handle TLS unspecs.
5429 (arc_legitimate_address_p): Likewise.
5430 (arc_rewrite_small_data_p): Use assert for TLS constants.
5431 (prepare_move_operands): Use prepare_pic_move.
5432 (arc_legitimize_address): Legitimize tls addresses.
5433 (arc_epilogue_uses): Check for arc_tp_regno.
5434 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
5435 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
5436 Define.
5437 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
5438 Likewise.
5439 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
5440 %(arc_tls_extra_start_spec).
5441 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
5442 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
5443 (EH_USES): Define.
5444 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
5445 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
5446 (UNSPEC_TLS_OFF): Add.
5447 (R10_REG): Define.
5448 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
5449 (get_thread_pointersi): New patterns.
5450 * config/arc/arc.opt (mtp-regno): New option.
5451 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
5452 (move_dest_operand): Likewise.
5453 * configure: Regenerate.
5454 * configure.ac: Add arc*-*-* case to test for tls.
5455 * doc/invoke.texi (ARC options): Document mtp-regno.
5456
5457 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5458
5459 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
5460 the new ARC HS SIMD instructions.
5461 (arc_preferred_simd_mode): New function.
5462 (arc_autovectorize_vector_sizes): Likewise.
5463 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5464 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5465 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
5466 (arc_init_builtins): Add new SIMD builtin types.
5467 (arc_split_move): Handle 64 bit vector moves.
5468 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
5469 (TARGET_PLUS_QMACW): Define.
5470 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
5471 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
5472 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
5473 (VSUBADD4H): New builtins.
5474 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
5475 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
5476
5477 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
5478 Matthias Klose <doko@debian.org>
5479
5480 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
5481
5482 2016-04-28 Richard Biener <rguenther@suse.de>
5483
5484 PR middle-end/70777
5485 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
5486 canonicalization.
5487
5488 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
5489
5490 * common/config/sh/sh-common.c: Remove SH5 support.
5491 * config/sh/constraints.md: Likewise.
5492 * config/sh/config/sh/elf.h: Likewise.
5493 * config/sh/linux.h: Likewise.
5494 * config/sh/netbsd-elf.h: Likewise.
5495 * config/sh/predicates.md: Likewise.
5496 * config/sh/sh-c.c: Likewise.
5497 * config/sh/sh-protos.h: Likewise.
5498 * config/sh/sh.c: Likewise.
5499 * config/sh/sh.h: Likewise.
5500 * config/sh/sh.md: Likewise.
5501 * config/sh/sh.opt: Likewise.
5502 * config/sh/sync.md: Likewise.
5503 * config/sh/sh64.h: Delete.
5504 * config/sh/shmedia.h: Likewise.
5505 * config/sh/shmedia.md: Likewise.
5506 * config/sh/sshmedia.h: Likewise.
5507 * config/sh/t-netbsd-sh5-64: Likewise.
5508 * config/sh/t-sh64: Likewise.
5509 * config/sh/ushmedia.h: Likewise.
5510
5511 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5512
5513 * config/i386/i386.md (sign_extend to memory peephole2s): Use
5514 general_reg_operand instead of register_operand predicate.
5515
5516 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5517
5518 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
5519
5520 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
5521
5522 * match.pd (A - B > A, A + B < A): New transformations.
5523
5524 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
5525
5526 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
5527 which defaults to true. Emit an outer pair of parentheses only if
5528 EMIT_PARENS. When continuing a chain of && or || (or & or |),
5529 don't emit parentheses for the right-hand operand.
5530
5531 2016-04-27 Jeff Law <law@redhat.com>
5532
5533 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
5534
5535 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5536
5537 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
5538 (altivec_lvx_<mode>_internal): Document.
5539 (altivec_lvx_<mode>_2op): New define_insn.
5540 (altivec_lvx_<mode>_1op): Likewise.
5541 (altivec_lvx_<mode>_2op_si): Likewise.
5542 (altivec_lvx_<mode>_1op_si): Likewise.
5543 (altivec_stvx_<mode>): Remove.
5544 (altivec_stvx_<mode>_internal): Document.
5545 (altivec_stvx_<mode>_2op): New define_insn.
5546 (altivec_stvx_<mode>_1op): Likewise.
5547 (altivec_stvx_<mode>_2op_si): Likewise.
5548 (altivec_stvx_<mode>_1op_si): Likewise.
5549 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5550 Expand vec_ld and vec_st during parsing.
5551 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
5552 changes.
5553 (altivec_expand_stvx_be): Likewise.
5554 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
5555 address-masking behavior in RTL.
5556 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
5557 address-masking behavior in RTL.
5558 (altivec_expand_builtin): Change builtin code arguments for calls
5559 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
5560 (insn_is_swappable_p): Avoid incorrect swap optimization in the
5561 presence of lvx/stvx patterns.
5562 (alignment_with_canonical_addr): New function.
5563 (alignment_mask): Likewise.
5564 (find_alignment_op): Likewise.
5565 (recombine_lvx_pattern): Likewise.
5566 (recombine_stvx_pattern): Likewise.
5567 (recombine_lvx_stvx_patterns): Likewise.
5568 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
5569 stvx patterns from expand.
5570 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
5571 expansions.
5572 (vector_altivec_store_<mode>): Likewise.
5573
5574 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
5575
5576 * config/aarch64/aarch64.md
5577 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
5578 remove the "fp" attributes.
5579 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
5580 add the "simd" attributes.
5581 (*movdf_aarch64): Likewise.
5582 (*movtf_aarch64): Remove the "fp" attributes.
5583 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
5584 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
5585
5586 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5587
5588 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
5589 rtx to rtx_code_label *.
5590 * rtl.h (maybe_set_first_label_num): Likewise.
5591
5592 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5593
5594 * df-core.c (df_add_problem): Make the problem param be const.
5595 (df_remove_problem): Make local "problem" be const.
5596 * df-problems.c (problem_RD): Make const.
5597 (problem_LR): Likewise.
5598 (problem_LIVE): Likewise.
5599 (problem_MIR): Likewise.
5600 (problem_CHAIN): Likewise.
5601 (problem_WORD_LR): Likewise.
5602 (problem_NOTE): Likewise.
5603 (problem_MD): Likewise.
5604 * df-scan.c (problem_SCAN): Likewise.
5605 * df.h (struct df_problem): Make field "dependent_problem" be
5606 const.
5607 (struct dataflow): Likewise for field "problem".
5608 (df_add_problem): Make param const.
5609
5610 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
5611
5612 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
5613 inter-unit moves to/from vector registers are enabled. Do not disable
5614 for TARGET_MMX.
5615
5616 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5617
5618 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
5619 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
5620 #define to...
5621 (enum df_problem_id): ...this new enum.
5622 (struct df_problem): Convert field "id" from "int" to
5623 enum df_problem_id.
5624
5625 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5626
5627 * rtl.def: Update comment for "things in the instruction chain" to
5628 reflect the removal of the leading "i" field for INSN_UID in
5629 r210360. Fix bogus apostrophe.
5630
5631 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
5632
5633 * config/i386/i386.md
5634 (lea arith with mem operand + setcc peephole2): Set operator mode.
5635
5636 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
5637
5638 PR target/70155
5639 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
5640 (dimode_scalar_to_vector_candidate_p): This.
5641 (timode_scalar_to_vector_candidate_p): New function.
5642 (scalar_to_vector_candidate_p): Likewise.
5643 (timode_check_non_convertible_regs): Likewise.
5644 (timode_remove_non_convertible_regs): Likewise.
5645 (remove_non_convertible_regs): Likewise.
5646 (remove_non_convertible_regs): Renamed to ...
5647 (dimode_remove_non_convertible_regs): This.
5648 (scalar_chain::~scalar_chain): Make it virtual.
5649 (scalar_chain::compute_convert_gain): Make it pure virtual.
5650 (scalar_chain::mark_dual_mode_def): Likewise.
5651 (scalar_chain::convert_insn): Likewise.
5652 (scalar_chain::convert_registers): Likewise.
5653 (scalar_chain::add_to_queue): Make it protected.
5654 (scalar_chain::emit_conversion_insns): Likewise.
5655 (scalar_chain::replace_with_subreg): Likewise.
5656 (scalar_chain::replace_with_subreg_in_insn): Likewise.
5657 (scalar_chain::convert_op): Likewise.
5658 (scalar_chain::convert_reg): Likewise.
5659 (scalar_chain::make_vector_copies): Likewise.
5660 (scalar_chain::convert_registers): New pure virtual function.
5661 (class dimode_scalar_chain): New class.
5662 (class timode_scalar_chain): Likewise.
5663 (scalar_chain::mark_dual_mode_def): Renamed to ...
5664 (dimode_scalar_chain::mark_dual_mode_def): This.
5665 (timode_scalar_chain::mark_dual_mode_def): New function.
5666 (timode_scalar_chain::convert_insn): Likewise.
5667 (dimode_scalar_chain::convert_registers): Likewise.
5668 (scalar_chain::compute_convert_gain): Renamed to ...
5669 (dimode_scalar_chain::compute_convert_gain): This.
5670 (scalar_chain::replace_with_subreg): Renamed to ...
5671 (dimode_scalar_chain::replace_with_subreg): This.
5672 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
5673 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
5674 (scalar_chain::make_vector_copies): Renamed to ...
5675 (dimode_scalar_chain::make_vector_copies): This.
5676 (scalar_chain::convert_reg): Renamed to ...
5677 (dimode_scalar_chain::convert_reg ): This.
5678 (scalar_chain::convert_op): Renamed to ...
5679 (dimode_scalar_chain::convert_op): This.
5680 (scalar_chain::convert_insn): Renamed to ...
5681 (dimode_scalar_chain::convert_insn): This.
5682 (scalar_chain::convert): Call convert_registers.
5683 (convert_scalars_to_vector): Change to scalar_chain pointer to
5684 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
5685 in 32-bit mode. Delete scalar_chain pointer. Call
5686 free_dominance_info in 64-bit mode.
5687 (pass_stv::gate): Remove TARGET_64BIT check.
5688 (ix86_option_override): Put the 64-bit STV pass before the CSE
5689 pass.
5690
5691 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5692
5693 * dwarf2out.h (struct dw_loc_descr_node): Remove the
5694 dw_loc_frame_offset field.
5695 * dwarf2out.c (new_loc_descr): Likewise.
5696 (resolve_args_picking_1): Turn the VISITED hash set into a
5697 FRAME_OFFSET hash map. Use it to associate a frame offset to
5698 visited nodes. Remove uses of the CHECKING_P macro.
5699 (resolve_args_picking): Update call to resolve_args_picking_1.
5700
5701 2016-04-27 Martin Liska <mliska@suse.cz>
5702
5703 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
5704 (free_loop_data): Release vuses of groups.
5705
5706 2016-04-27 Bin Cheng <bin.cheng@arm.com>
5707
5708 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
5709 instead of redundant use_id and boolean have_use_for.
5710 (struct iv_use): Change sub_id into group_id. Remove field next.
5711 Move fields: related_cands, n_map_members, cost_map and selected
5712 to ...
5713 (struct iv_group): ... here. New structure.
5714 (struct iv_common_cand): Use structure declaration directly.
5715 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
5716 (MAX_CONSIDERED_USES): Rename macro to ...
5717 (MAX_CONSIDERED_GROUPS): ... here.
5718 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
5719 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
5720 (dump_uses): Rename to ...
5721 (dump_groups): ... here. Update all uses.
5722 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
5723 (find_induction_variables): Refactor format of dump information.
5724 (record_sub_use): Delete.
5725 (record_use): Update all uses.
5726 (record_group): New function.
5727 (record_group_use, find_interesting_uses_op): Call above functions.
5728 Update all uses.
5729 (find_interesting_uses_cond): Ditto.
5730 (group_compare_offset): New function.
5731 (split_all_small_groups): Rename to ...
5732 (split_small_address_groups_p): ... here. Update all uses.
5733 (split_address_groups): Update all uses.
5734 (find_interesting_uses): Refactor format of dump information.
5735 (add_candidate_1): Update all uses. Remove redundant check on iv,
5736 base and step.
5737 (add_candidate, record_common_cand): Remove redundant assert.
5738 (add_iv_candidate_for_biv): Update use.
5739 (add_iv_candidate_derived_from_uses): Update all uses.
5740 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
5741 (alloc_use_cost_map): Ditto.
5742 (set_use_iv_cost, get_use_iv_cost): Rename to ...
5743 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
5744 (determine_use_iv_cost_generic): Ditto.
5745 (determine_group_iv_cost_generic): Ditto.
5746 (determine_use_iv_cost_address): Ditto.
5747 (determine_group_iv_cost_address): Ditto.
5748 (determine_use_iv_cost_condition): Ditto.
5749 (determine_group_iv_cost_cond): Ditto.
5750 (determine_use_iv_cost): Ditto.
5751 (determine_group_iv_cost): Ditto.
5752 (set_autoinc_for_original_candidates): Update all uses.
5753 (find_iv_candidates): Update all uses. Refactor dump information.
5754 (determine_use_iv_costs): Ditto.
5755 (determine_iv_costs): Ditto.
5756 (iv_ca_cand_for_use): Rename to ...
5757 (iv_ca_cand_for_group): ... here. Update all uses.
5758 (iv_ca_add_use, iv_ca_add_group): Ditto.
5759 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
5760 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
5761 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
5762 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
5763 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
5764 (create_new_iv, adjust_iv_update_pos): Ditto.
5765 (rewrite_use_address): Delete.
5766 (rewrite_use_address_1): Rename to ...
5767 (rewrite_use_address): ... here.
5768 (rewrite_use_compare): Update all uses.
5769 (rewrite_use): Delete.
5770 (rewrite_uses): Rename to ...
5771 (rewrite_groups): ... here. Update all uses.
5772 (remove_unused_ivs, free_loop_data): Update all uses.
5773 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
5774
5775 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5776
5777 * rtlanal.c (nonzero_bits1): Convert preprocessor check
5778 for WORD_REGISTER_OPERATIONS to runtime check.
5779
5780 2016-04-27 Richard Biener <rguenther@suse.de>
5781
5782 PR ipa/70760
5783 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
5784 aggregate_value_p to determine if a function result is
5785 returned by reference.
5786 (ipa_pta_execute): Functions having their address taken are
5787 not automatically nonlocal.
5788
5789 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5790
5791 PR sanitizer/70683
5792 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
5793 * fold-const.c (operand_equal_p): If flag_checking and
5794 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
5795 and if it returns non-zero, assert iterative_hash_expr on both
5796 args is the same.
5797
5798 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5799
5800 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
5801
5802 2016-04-27 Nick Clifton <nickc@redhat.com>
5803
5804 PR middle-end/49889
5805 * varasm.c (merge_weak): Generate an error if an attempt is made
5806 to convert a non-weak static function into a weak, public function.
5807
5808 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5809
5810 * params.def (MAX_PARTITION_SIZE): New param.
5811 * doc/invoke.texi: Document lto-max-partition.
5812
5813 2016-04-27 Richard Biener <rguenther@suse.de>
5814
5815 PR ipa/70785
5816 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
5817 function cummulating used_from_other_partition, externally_visible
5818 and force_output from aliases.
5819 (refered_from_nonlocal_var): Likewise.
5820 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
5821 node flags properly.
5822
5823 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5824
5825 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
5826 (-Wmemset-elt-size): New item.
5827
5828 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
5829
5830 PR ada/70759
5831 * stor-layout.h (internal_reference_types): Delete.
5832 * stor-layout.c (reference_types_internal): Likewise.
5833 (internal_reference_types): Likewise.
5834 (layout_type) <REFERENCE_TYPE>: Adjust.
5835
5836 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5837
5838 PR sanitizer/70683
5839 * tree.h (inchash::add_expr): Add FLAGS argument.
5840 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
5841 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
5842 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
5843 Formatting fix. Adjust recursive calls. For tcc_comparison,
5844 if swap_tree_comparison (code) is smaller than code, hash that
5845 and arguments in the other order. Hash CONVERT_EXPR the same
5846 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
5847 of ADDR_EXPR of decl as the decl itself. Add or remove
5848 OEP_ADDRESS_OF from recursive flags as needed. For
5849 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
5850 operands commutatively and only the third one normally.
5851 For internal CALL_EXPR hash in CALL_EXPR_IFN.
5852
5853 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
5854
5855 * config/rtems.h (LIB_SPEC): Add -latomic.
5856
5857 2016-04-27 Joel Sherrill <joel@rtems.org>
5858
5859 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
5860 xilink.ld and flags not relevant to RTEMS.
5861
5862 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5863
5864 * toplev.c (backend_init_target): Avoid calling init_reload when using
5865 LRA.
5866
5867 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5868
5869 * reorg.c (try_merge_delay_insns): Declare i and j inside the
5870 for loops rather than one for the whole function.
5871
5872 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5873
5874 * match.pd (X + CST CMP X): New transformation.
5875
5876 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5877
5878 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
5879 * fold-const.c (fold_binary_loc): Remove 2 transformations
5880 superseded by match.pd.
5881 * match.pd (x+x -> x*2): Generalize to integers.
5882
5883 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
5884
5885 * config/i386/i386.md (operation on memory peephole): Duplicate an
5886 existing peephole and adapt it to match lea rather than an operation
5887 that clobbers CC.
5888
5889 PR rtl-optimization/57193
5890 * opts.c (default_options_table): Add OPT_frename_registers at -O2
5891 and above.
5892 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
5893
5894 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5895
5896 * tree-if-conv.c (any_pred_load_store): New static variable.
5897 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
5898 any_pred_load_store instead of and_mask_load_store.
5899 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
5900 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
5901 (combine_blocks, tree_if_conversion): Ditto.
5902
5903 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5904
5905 PR tree-optimization/70771
5906 PR tree-optimization/70775
5907 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
5908 virtual PHI nodes. Delete parameter.
5909 (if_convertible_loop_p_1): Delete argument to above function.
5910 (predicate_all_scalar_phis): Delete code handling single-argument
5911 PHIs.
5912 (tree_if_conversion): Mark and update virtual SSA.
5913
5914 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5915
5916 PR target/61821
5917 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
5918 (x86_elf_aligned_common): Rename to ...
5919 (x86_elf_aligned_decl_common): ... this.
5920 Add decl arg. Switch to .lbss for largecomm object. Use
5921 LARGECOMM_SECTION_ASM_OP.
5922 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
5923 renaming.
5924 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
5925 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
5926 Pass new decl arg.
5927 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5928 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
5929
5930 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5931
5932 PR target/59407
5933 * config/i386/i386.c (SECTION_LARGE): Define.
5934 (x86_64_elf_select_section): Set it for large data/bss sections.
5935 Only clear SECTION_WRITE for .lrodata.
5936 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
5937 data/bss sections.
5938 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
5939 * varasm.c (default_elf_asm_named_section): Grow flagchars.
5940 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
5941 SECTION_MACH_DEP.
5942 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
5943 * doc/tm.texi: Regenerate.
5944
5945 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5946
5947 PR bootstrap/70704
5948 * configure.ac (--enable-checking): Document extra flag, for
5949 non-release builds default to --enable-checking=yes,extra.
5950 If misc checking and extra checking, define CHECKING_P to 2 instead
5951 of 1.
5952 * common.opt (fchecking=): Add.
5953 * doc/invoke.texi (-fchecking=): Document.
5954 * doc/install.texi: Document --enable-checking changes.
5955 * configure: Regenerated.
5956 * config.in: Regenerated.
5957
5958 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5959
5960 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
5961 attribute instead of which_alternative.
5962 * config/i386/sse.md (*mov<mode>_internal): Ditto.
5963 Use EXT_REX_SSE_REG_P where appropriate.
5964
5965 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5966
5967 * config/i386/predicates.md (const0_operand): Do not match
5968 const_wide_int code.
5969 (const1_operand): Ditto.
5970
5971 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5972
5973 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
5974 for SSE constm1 operands and TARGET_AVX512VL.
5975 (*movti_internal): Ditto.
5976 (*mov<mode>_or): Use constm1_operand predicate.
5977 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
5978 for SSE vector_all_ones operands and TARGET_AVX512VL.
5979 * config/i386/predicates.md (constm1_operand): New predicate.
5980 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
5981 emission of constant -1 load.
5982
5983 2016-04-25 Jason Merrill <jason@redhat.com>
5984
5985 * gdbinit.in: Skip is-a.h.
5986
5987 * attribs.c (register_scoped_attributes): Fix logic.
5988 * attribs.h: Declare register_scoped_attributes.
5989
5990 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5991
5992 * config/rs6000/rs6000-builtin.def: Correct pasto error for
5993 stxvd2x and stxvw4x built-in functions.
5994
5995 2016-04-25 DJ Delorie <dj@redhat.com>
5996
5997 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
5998 (ashrhi3): Likewise.
5999 (lshrhi3): Likewise.
6000
6001 2016-04-25 Richard Biener <rguenther@suse.de>
6002
6003 PR tree-optimization/70780
6004 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
6005 wasn't visited yet.
6006 (compute_antic): Mark blocks with abnormal preds as visited as
6007 they have a final empty antic-in solution already.
6008
6009 2016-04-25 Michael Collison <michael.collison@linaro.org>
6010
6011 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
6012
6013 2016-04-25 Michael Collison <michael.collison@linaro.org>
6014
6015 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
6016 mode is VQI to improve mixed mode vectorization.
6017 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
6018 define_insn to match low half of signed vaddw.
6019 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
6020 define_insn to match high half of signed vaddw.
6021 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
6022 define_insn to match low half of unsigned vaddw.
6023 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
6024 define_insn to match high half of unsigned vaddw.
6025 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
6026 (arm_simd_check_vect_par_cnst_half_p): Likewise.
6027 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
6028 for new function.
6029 (arm_simd_check_vect_par_cnst_half_p): Likewise.
6030 * config/arm/predicates.md (vect_par_constant_high): Support
6031 big endian and simplify by calling
6032 arm_simd_check_vect_par_cnst_half
6033 (vect_par_constant_low): Likewise.
6034
6035 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
6036
6037 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
6038 predicate for operand 2.
6039
6040 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
6041 H.J. Lu <hongjiu.lu@intel.com>
6042
6043 * config/i386/i386-protos.h (standard_sse_constant_p): Add
6044 machine_mode argument.
6045 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
6046 constm1_rtx operands. For VOIDmode constants, get mode from
6047 pred_mode. Check mode size if the mode is supported by ABI.
6048 (standard_sse_constant_opcode): Do not use standard_constant_p.
6049 Strictly check ABI support for all-ones operands.
6050 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
6051 immediates. Update calls to standard_sse_constant_p.
6052 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
6053 (ix86_rtx_costs): Ditto.
6054 * config/i386/i386.md (*movxi_internal_avx512f): Use
6055 nonimmediate_or_sse_const_operand instead of vector_move_operand.
6056 Use (v,BC) alternative instead of (v,C). Use register_operand
6057 checks instead of MEM_P.
6058 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
6059 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
6060 isa attribute. Use register_operand checks instead of MEM_P.
6061 (*movti_internal): Use nonimmediate_or_sse_const_operand for
6062 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
6063 alternative and corresponding sse2 isa attribute.
6064 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
6065 to standard_sse_constant_p.
6066 (FP constant splitters): Ditto.
6067 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
6068 (C): Ditto.
6069 * config/i386/predicates.md (constm1_operand): Remove.
6070 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
6071 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
6072 vector_all_ones_operand instead of constm1_operand.
6073
6074 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6075
6076 * print-rtl.c (print_rtx_insn_vec): New function.
6077 * print-rtl.h: New prototype.
6078 * store-motion.c (struct st_expr): Make avail_stores a vector.
6079 (st_expr_entry): Adjust.
6080 (free_st_expr_entry): Likewise.
6081 (print_store_motion_mems): Likewise.
6082 (find_moveable_store): Likewise.
6083 (compute_store_table): Likewise.
6084 (delete_store): Likewise.
6085 (build_store_vectors): Likewise.
6086
6087 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6088
6089 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
6090
6091 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6092
6093 * vec.h (vec_safe_contains): New function.
6094 (vec::contains): Likewise.
6095 (vec::begin): Likewise.
6096 (vec::end): Likewise.
6097
6098 2016-04-23 Jakub Jelinek <jakub@redhat.com>
6099
6100 PR sanitizer/70712
6101 * cfgexpand.c (expand_stack_vars): Fix typo.
6102
6103 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
6104
6105 * system.h (list, map, set, vector): Include conditionally.
6106 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
6107 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
6108 * ipa-icf.c (INCLUDE_LIST): Define.
6109 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
6110 * config/sh/sh.c (INCLUDE_VECTOR): Define.
6111 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
6112 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
6113 * cp/logic.cc (INCLUDE_LIST): Define.
6114 * fortran/trans-common.c (INCLUDE_MAP): Define.
6115
6116 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
6117
6118 * auto-profile.c: Remove <string.h> include.
6119 * ipa-icf-gimple.c: Remove <list> include.
6120 * diagnostic.c: Remove <new> include.
6121 * genmatch.c: Likewise.
6122 * pretty-print.c: Likewise.
6123 * toplev.c: Likewise
6124 * c/c-objc-common.c: Likewise.
6125 * cp/error.c: Likewise.
6126 * fortran/error.c: Likewise.
6127
6128 2016-04-22 Richard Biener <rguenther@suse.de>
6129
6130 * lto-streamer-in.c (input_ssa_names): Do not allocate
6131 GIMPLE_NOP for all SSA names.
6132 * lto-streamer-out.c (output_ssa_names): Do not output
6133 SSA names that should have been released.
6134
6135 2016-04-22 Richard Biener <rguenther@suse.de>
6136
6137 PR tree-optimization/70740
6138 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
6139 VDEF.
6140
6141 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
6142
6143 PR target/70750
6144 * config/i386/predicates.md (call_insn_operand): Replace
6145 sibcall_memory_operand with memory_operand.
6146
6147 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
6148
6149 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
6150 has_single_use() tests.
6151 (register_edge_assert_for_1): Likewise.
6152 (find_assert_locations_1): Check the liveness bitmap instead of
6153 checking has_single_use().
6154
6155 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
6156
6157 PR target/70728
6158 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
6159 Extract AVX-512BW constraint from AVX.
6160
6161 2016-04-21 Richard Biener <rguenther@suse.de>
6162
6163 PR tree-optimization/70725
6164 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
6165 for phi_convertible_by_degenerating_args.
6166 (predicate_all_scalar_phis): Handle single-argument PHIs.
6167
6168 2016-04-21 Richard Biener <rguenther@suse.de>
6169
6170 PR middle-end/70747
6171 * fold-const.c (fold_comparison): Return properly typed
6172 constant boolean.
6173
6174 2016-04-21 Bin Cheng <bin.cheng@arm.com>
6175
6176 PR tree-optimization/70715
6177 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6178 after expanding BASE using expand_simple_operations.
6179
6180 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
6181
6182 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
6183 New transformations.
6184
6185 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
6186
6187 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
6188
6189 2016-04-20 Jan Hubicka <jh@suse.cz>
6190
6191 * ipa-inline.c (can_inline_edge_p): Pass caller info to
6192 ultiimate_alias_target.
6193 (update_callee_keys): Likewise.
6194 (lookup_recursive_calls): Likewise.
6195 (speculation_useful_p): Likewise.
6196
6197 2016-04-20 Jan Hubicka <jh@suse.cz>
6198
6199 PR ipa/70018
6200 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
6201 (set_nothrow_flag_1): ... this; handle interposition correctly;
6202 recurse on aliases and thunks.
6203 (cgraph_node::set_nothrow_flag): New.
6204 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
6205 functions compiled with non-call exceptions that binds to current
6206 def.
6207 (propagate_nothrow): Be safe WRT interposition.
6208 * cgraph.h (set_nothrow_flag): Update prototype.
6209
6210 2016-04-18 Jan Hubicka <jh@suse.cz>
6211
6212 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6213 max_loop_iterations_int.
6214 (tree_unswitch_outer_loop): Likewise.
6215
6216 2016-04-20 Bin Cheng <bin.cheng@arm.com>
6217
6218 PR tree-optimization/69489
6219 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
6220 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
6221 Revise dump message.
6222 (if_convertible_bb_p): Remove check on edge count of basic block's
6223 predecessors.
6224
6225 2016-04-20 Bin Cheng <bin.cheng@arm.com>
6226
6227 PR tree-optimization/56625
6228 PR tree-optimization/69489
6229 * tree-data-ref.h (DR_INNERMOST): New macro.
6230 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
6231 hashing struct innermost_loop_behavior.
6232 (ref_DR_map): Remove.
6233 (innermost_DR_map): New map.
6234 (baseref_DR_map): Revise comment.
6235 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
6236 to innermost_DR_map accroding to its innermost loop behavior.
6237 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
6238 to its innermost loop behavior.
6239 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
6240 Add initialization for innermost_DR_map. Record memory reference
6241 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
6242 have innermost loop behavior.
6243 (if_convertible_loop_p): Remove release for ref_DR_map. Release
6244 innermost_DR_map.
6245
6246 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
6247
6248 * config/i386/i386.md (*lea<mode>_general_1): Rename from
6249 *lea_general_1. Use explicit SWI12 mode interator.
6250 (*lea<mode>_general_2): Rename from *lea_general_2.
6251 Use explicit SWI12 mode interator.
6252 (*lea<mode>_general_3): Rename from *lea_general_3.
6253 Use explicit SWI12 mode interator.
6254 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
6255 Use explicit SWI12 mode interator.
6256 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
6257 Use explicit SWI48 mode interator.
6258
6259 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
6260
6261 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
6262 Short-cut unaligned load and store cases. Handle all integer
6263 vector modes.
6264 (ix86_expand_vector_move_misalign): Short-cut unaligned load
6265 and store cases. Call ix86_avx256_split_vector_move_misalign
6266 directly without checking mode class.
6267
6268 2016-04-20 Andrew Pinski <apinski@cavium.com>
6269 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6270
6271 PR target/64971
6272 * config/aarch64/aarch64.md (sibcall): Force call
6273 address to be DImode for ILP32.
6274 (sibcall_value): Likewise.
6275
6276 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
6277
6278 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
6279
6280 2016-04-20 Richard Biener <rguenther@suse.de>
6281
6282 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
6283 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
6284 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
6285 (maybe_push_res_to_seq): Adjust.
6286 * gimple-fold.c (maybe_build_generic_op): Likewise.
6287
6288 2016-04-20 Marek Polacek <polacek@redhat.com>
6289
6290 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
6291 rather than true.
6292
6293 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
6294
6295 * config/i386/sse.md (vec_unpacks_lo_hi): Always
6296 use kmovw to support AVX512F target.
6297
6298 2016-04-20 Bin Cheng <bin.cheng@arm.com>
6299
6300 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
6301
6302 2016-04-20 Marek Polacek <polacek@redhat.com>
6303
6304 PR tree-optimization/70725
6305 * tree-if-conv.c (is_false_predicate): New function.
6306 (predicate_mem_writes): Use it.
6307
6308 2016-04-20 Richard Biener <rguenther@suse.de>
6309
6310 PR tree-optimization/70726
6311 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
6312 shift amounts from a pattern stmt operand.
6313
6314 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6315
6316 PR target/70674
6317 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
6318 stack_restore_from_fpr pattern when restoring r15.
6319 (s390_optimize_prologue): Strip away the memory barrier in the
6320 parallel when trying to get rid of restore insns.
6321 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
6322 definition for loading the stack pointer from an FPR. Compared to
6323 the normal move insn this pattern includes a full memory barrier.
6324
6325 2016-04-19 Jakub Jelinek <jakub@redhat.com>
6326
6327 PR middle-end/70680
6328 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
6329 implicitly linear or lastprivate iterator on the outer context.
6330
6331 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
6332
6333 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
6334 alignment check.
6335 * config/i386/i386.md (ssememalign): Removed.
6336 * config/i386/sse.md: Remove ssememalign attribute from patterns.
6337
6338 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
6339
6340 PR target/69201
6341 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
6342 const short * to __builtin_ia32_loaddquhi512_mask.
6343 (_mm512_maskz_loadu_epi16): Likewise.
6344 (_mm512_mask_storeu_epi16): Pass short * to
6345 __builtin_ia32_storedquhi512_mask.
6346 (_mm512_mask_loadu_epi8): Pass const char * to
6347 __builtin_ia32_loaddquqi512_mask.
6348 (_mm512_maskz_loadu_epi8): Likewise.
6349 (_mm512_mask_storeu_epi8): Pass char * to
6350 __builtin_ia32_storedquqi512_mask.
6351 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
6352 const double * to __builtin_ia32_loadupd512_mask.
6353 (_mm512_mask_loadu_pd): Likewise.
6354 (_mm512_maskz_loadu_pd): Likewise.
6355 (_mm512_storeu_pd): Pass double * to
6356 __builtin_ia32_storeupd512_mask.
6357 (_mm512_mask_storeu_pd): Likewise.
6358 (_mm512_loadu_ps): Pass const float * to
6359 __builtin_ia32_loadups512_mask.
6360 (_mm512_mask_loadu_ps): Likewise.
6361 (_mm512_maskz_loadu_ps): Likewise.
6362 (_mm512_storeu_ps): Pass float * to
6363 __builtin_ia32_storeups512_mask.
6364 (_mm512_mask_storeu_ps): Likewise.
6365 (_mm512_mask_loadu_epi64): Pass const long long * to
6366 __builtin_ia32_loaddqudi512_mask.
6367 (_mm512_maskz_loadu_epi64): Likewise.
6368 (_mm512_mask_storeu_epi64): Pass long long *
6369 to __builtin_ia32_storedqudi512_mask.
6370 (_mm512_loadu_si512): Pass const int * to
6371 __builtin_ia32_loaddqusi512_mask.
6372 (_mm512_mask_loadu_epi32): Likewise.
6373 (_mm512_maskz_loadu_epi32): Likewise.
6374 (_mm512_storeu_si512): Pass int * to
6375 __builtin_ia32_storedqusi512_mask.
6376 (_mm512_mask_storeu_epi32): Likewise.
6377 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
6378 char * to __builtin_ia32_storedquqi256_mask.
6379 (_mm_mask_storeu_epi8): Likewise.
6380 (_mm256_mask_loadu_epi16): Pass const short * to
6381 __builtin_ia32_loaddquhi256_mask.
6382 (_mm256_maskz_loadu_epi16): Likewise.
6383 (_mm_mask_loadu_epi16): Pass const short * to
6384 __builtin_ia32_loaddquhi128_mask.
6385 (_mm_maskz_loadu_epi16): Likewise.
6386 (_mm256_mask_loadu_epi8): Pass const char * to
6387 __builtin_ia32_loaddquqi256_mask.
6388 (_mm256_maskz_loadu_epi8): Likewise.
6389 (_mm_mask_loadu_epi8): Pass const char * to
6390 __builtin_ia32_loaddquqi128_mask.
6391 (_mm_maskz_loadu_epi8): Likewise.
6392 (_mm256_mask_storeu_epi16): Pass short * to.
6393 __builtin_ia32_storedquhi256_mask.
6394 (_mm_mask_storeu_epi16): Pass short * to.
6395 __builtin_ia32_storedquhi128_mask.
6396 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
6397 const double * to __builtin_ia32_loadupd256_mask.
6398 (_mm256_maskz_loadu_pd): Likewise.
6399 (_mm_mask_loadu_pd): Pass onst double * to
6400 __builtin_ia32_loadupd128_mask.
6401 (_mm_maskz_loadu_pd): Likewise.
6402 (_mm256_mask_storeu_pd): Pass double * to
6403 __builtin_ia32_storeupd256_mask.
6404 (_mm_mask_storeu_pd): Pass double * to
6405 __builtin_ia32_storeupd128_mask.
6406 (_mm256_mask_loadu_ps): Pass const float * to
6407 __builtin_ia32_loadups256_mask.
6408 (_mm256_maskz_loadu_ps): Likewise.
6409 (_mm_mask_loadu_ps): Pass const float * to
6410 __builtin_ia32_loadups128_mask.
6411 (_mm_maskz_loadu_ps): Likewise.
6412 (_mm256_mask_storeu_ps): Pass float * to
6413 __builtin_ia32_storeups256_mask.
6414 (_mm_mask_storeu_ps): ass float * to
6415 __builtin_ia32_storeups128_mask.
6416 (_mm256_mask_loadu_epi64): Pass const long long * to
6417 __builtin_ia32_loaddqudi256_mask.
6418 (_mm256_maskz_loadu_epi64): Likewise.
6419 (_mm_mask_loadu_epi64): Pass const long long * to
6420 __builtin_ia32_loaddqudi128_mask.
6421 (_mm_maskz_loadu_epi64): Likewise.
6422 (_mm256_mask_storeu_epi64): Pass long long * to
6423 __builtin_ia32_storedqudi256_mask.
6424 (_mm_mask_storeu_epi64): Pass long long * to
6425 __builtin_ia32_storedqudi128_mask.
6426 (_mm256_mask_loadu_epi32): Pass const int * to
6427 __builtin_ia32_loaddqusi256_mask.
6428 (_mm256_maskz_loadu_epi32): Likewise.
6429 (_mm_mask_loadu_epi32): Pass const int * to
6430 __builtin_ia32_loaddqusi128_mask.
6431 (_mm_maskz_loadu_epi32): Likewise.
6432 (_mm256_mask_storeu_epi32): Pass int * to
6433 __builtin_ia32_storedqusi256_mask.
6434 (_mm_mask_storeu_epi32): Pass int * to
6435 __builtin_ia32_storedqusi128_mask.
6436 * config/i386/i386-builtin-types.def (PCSHORT): New.
6437 (PINT64): Likewise.
6438 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
6439 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
6440 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
6441 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
6442 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
6443 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
6444 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
6445 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
6446 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
6447 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
6448 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
6449 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
6450 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
6451 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
6452 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
6453 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
6454 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
6455 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
6456 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
6457 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
6458 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
6459 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
6460 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
6461 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
6462 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
6463 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
6464 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
6465 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
6466 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
6467 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
6468 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
6469 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
6470 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
6471 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
6472 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
6473 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
6474 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
6475 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
6476 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
6477 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
6478 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
6479 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
6480 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
6481 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
6482 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
6483 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
6484 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
6485 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
6486 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
6487 use UNSPEC_STOREU.
6488 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
6489 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
6490 load nor store.
6491 (ix86_expand_vector_move_misalign): Likewise.
6492 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
6493 to scalar function prototype for unaligned load/store builtins.
6494 (ix86_expand_special_args_builtin): Updated.
6495 * config/i386/sse.md (UNSPEC_LOADU): Removed.
6496 (UNSPEC_STOREU): Likewise.
6497 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
6498 (VI_ULOADSTORE_F_AVX512VL): Likewise.
6499 (ssescalarsize): Handle V4TI, V2TI and V1TI.
6500 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6501 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6502 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
6503 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
6504 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
6505 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
6506 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
6507 (<avx512>_storedqu<mode>_mask): Likewise.
6508 (*sse4_2_pcmpestr_unaligned): Likewise.
6509 (*sse4_2_pcmpistr_unaligned): Likewise.
6510 (*mov<mode>_internal): Renamed to ...
6511 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
6512 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
6513 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
6514 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
6515
6516 2016-04-19 Richard Biener <rguenther@suse.de>
6517
6518 PR tree-optimization/70171
6519 * tree-ssa-phiprop.c: Include stor-layout.h.
6520 (phiprop_insert_phi): Handle the aggregate copy case.
6521 (propagate_with_phi): Likewise.
6522
6523 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
6524
6525 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
6526 instead of simplify_gen_subreg (... , 0).
6527 (ix86_delegitimize_address): Ditto.
6528 (ix86_split_divmod): Ditto.
6529 (ix86_split_copysign_const): Ditto.
6530 (ix86_split_copysign_var): Ditto.
6531 (ix86_expand_args_builtin): Ditto.
6532 (ix86_expand_round_builtin): Ditto.
6533 (ix86_expand_special_args_builtin): Ditto.
6534 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
6535 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
6536 (udivmodqi4): Ditto.
6537 (absneg splitters): Ditto.
6538 (*jcc_bt<mode>_1): Ditto.
6539
6540 2016-04-19 Richard Biener <rguenther@suse.de>
6541
6542 PR tree-optimization/70724
6543 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
6544 restoring out from ...
6545 (free_scc_vn): ... here.
6546 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
6547 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
6548 tail merging.
6549 (pass_fre::execute): Restore SSA info.
6550
6551 2016-04-19 Richard Biener <rguenther@suse.de>
6552
6553 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
6554 * gimple-walk.c (walk_gimple_op): Initialize it.
6555 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
6556 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
6557 remapping SSA names of defs.
6558 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
6559 adjustment.
6560
6561 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
6562
6563 PR middle-end/70689
6564 * lra-constraints.c (equiv_substition_p): New.
6565 (process_alt_operands): Use it.
6566 (swap_operands): Swap it.
6567 (curr_insn_transform): Update it.
6568
6569 2016-04-18 Michael Matz <matz@suse.de>
6570
6571 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
6572 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
6573 * tree-core.h (tree_type_common.align): Use bit-field.
6574 (tree_type_common.spare): New.
6575 (tree_decl_common.off_align): Make smaller.
6576 (tree_decl_common.align): Use bit-field.
6577
6578 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
6579 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
6580 (scan_sharing_clauses): Ditto.
6581 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6582 (omp_finish_file): Ditto.
6583 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
6584 (layout_decl): Ditto.
6585 (relayout_decl): Ditto.
6586 (finalize_record_size): Use SET_TYPE_ALIGN.
6587 (finalize_type_size): Ditto.
6588 (finish_builtin_struct): Ditto.
6589 (layout_type): Ditto.
6590 (initialize_sizetypes): Ditto.
6591 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
6592 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
6593 (lookup_field_for_decl): Use SET_DECL_ALIGN.
6594 (get_chain_field): Ditto.
6595 (get_trampoline_type): Ditto.
6596 (get_nl_goto_field): Ditto.
6597 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6598 SET_DECL_ALIGN.
6599 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
6600 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
6601 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6602 (build_qualified_type): Use SET_TYPE_ALIGN.
6603 (build_aligned_type, build_range_type_1): Ditto.
6604 (build_atomic_base): Ditto.
6605 (build_common_tree_nodes): Ditto.
6606 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
6607 (expand_one_stack_var_at): Ditto.
6608 * coverage.c (build_var): Use SET_DECL_ALIGN.
6609 * except.c (init_eh): Ditto.
6610 * function.c (assign_parm_setup_block): Ditto.
6611 * symtab.c (increase_alignment_1): Ditto.
6612 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
6613 * tree-vect-stmts.c (ensure_base_align): Ditto.
6614 * varasm.c (align_variable): Ditto.
6615 (assemble_variable): Ditto.
6616 (build_constant_desc): Ditto.
6617 (output_constant_def_contents): Ditto.
6618
6619 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
6620 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
6621 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
6622 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
6623 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
6624
6625 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
6626
6627 PR target/70708
6628 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
6629 replace %vmovsd with "%vmovq".
6630 (vec_concatv2df): Likewise.
6631
6632 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
6633
6634 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
6635 (*vec_extractv2si_0): Ditto.
6636 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
6637 (zero_extended_scalar_load_operand splitters): Ditto.
6638 (vec_extract splitters): Ditto.
6639 (*vec_extractv4si_0_zext): Ditto.
6640 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
6641 and lowpart_subreg.
6642 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
6643 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
6644 (*sse4_1_extractps): Use lowpart_subreg.
6645 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
6646
6647 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6648
6649 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
6650 gld requirements.
6651 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
6652 Mention Solaris 11 packaging changes.
6653 Update gas and gld requirements.
6654 Remove reference to pre-Solaris 10 bug.
6655 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
6656 systems and bugs.
6657 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
6658 with cc.
6659
6660 2016-04-17 Jan Hubicka <jh@suse.cz>
6661
6662 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
6663 max_loop_iterations_int.
6664
6665 2016-04-18 Richard Biener <rguenther@suse.de>
6666
6667 PR tree-optimization/43434
6668 * tree-ssa-structalias.c (struct vls_data): New.
6669 (visit_loadstore): Handle all pointer-based accesses.
6670 (compute_dependence_clique): Compute a bitmap of restrict tags
6671 assigned bases and pass it to visit_loadstore.
6672
6673 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
6674
6675 PR target/70711
6676 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
6677 armv8.1-a and armv8.1-a+crc.
6678
6679 2016-04-18 Richard Biener <rguenther@suse.de>
6680
6681 PR tree-optimization/70701
6682 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
6683 references after translating through a memcpy.
6684
6685 2016-04-18 Richard Biener <rguenther@suse.de>
6686
6687 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
6688 (compute_antic): ... here. For partial antic use regular
6689 postorder and scrap iteration.
6690 (compute_partial_antic_aux): Remove unused return value.
6691 (init_pre): Do not allocate postorder.
6692 (fini_pre): Do not free postorder.
6693
6694 2016-04-18 Richard Biener <rguenther@suse.de>
6695
6696 PR middle-end/37870
6697 * expmed.c (extract_bit_field_1): Remove broken case
6698 using a wider MODE_INT mode.
6699
6700 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
6701
6702 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
6703 unless compiling with at least GCC-4.8.
6704
6705 2016-04-17 Jan Hubicka <jh@suse.cz>
6706
6707 PR bootstrap/70706
6708 * graphite.c (graphite_finalize): Update call to
6709 tree_estimate_probability.
6710 * predict.h (tree_estimate_probability): Update prototype.
6711
6712 2016-04-17 Jan Hubicka <jh@suse.cz>
6713
6714 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
6715 (tree_estimate_probability): Likewise.
6716 (pass_profile::execute): Update.
6717 (report_predictor_hitrates): New function.
6718 * profile.c (compute_branch_probabilities): Use it.
6719 * predict.h (report_predictor_hitrates): Declare.
6720
6721 2016-04-17 Jan Hubicka <jh@suse.cz>
6722
6723 PR ipa/70018
6724 * cgraph.h (cgraph_node::set_const_flag,
6725 cgraph_node::set_pure_flag): Update prototype to return bool;
6726 update comment.
6727 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
6728 of interposable symbol are interposable, too.
6729 (cgraph_set_const_flag_1): Rename to ...
6730 (set_const_flag_1): ... this one; change to self recursive function
6731 instead of call_for_symbol_thunks_and_aliases. Handle correctly
6732 clearnig the flag in all variants and also virtual thunks of const
6733 functions are pure; track if any change was done.
6734 (cgraph_node::set_const_flag): Update.
6735 (struct set_pure_flag_info): New struct.
6736 (cgraph_set_pure_flag_1): Rename to ...
6737 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
6738 rather than pointer encoded flags; track if any changes was done;
6739 handle correctly clearning flag and setting flag of aliases already
6740 declared const.
6741 (cgraph_node::set_pure_flag): Update.
6742 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
6743
6744 2016-04-17 Tom de Vries <tom@codesourcery.com>
6745
6746 PR other/70433
6747 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
6748 backslash in label.
6749
6750 2016-04-17 Tom de Vries <tom@codesourcery.com>
6751
6752 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
6753 '{}<> ' as escape-for-record.
6754
6755 2016-04-17 Tom de Vries <tom@codesourcery.com>
6756
6757 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
6758 structure.
6759
6760 2016-04-17 Tom de Vries <tom@codesourcery.com>
6761
6762 PR other/70185
6763 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
6764 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
6765 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
6766 * passes.c (finish_optimization_passes): Only call
6767 finish_graph_dump_file if dfi->graph_dump_initialized.
6768 (execute_function_dump, pass_init_dump_file): Use
6769 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
6770
6771 2016-04-17 Tom de Vries <tom@codesourcery.com>
6772
6773 PR tree-optimization/70256
6774 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
6775 (debug_varmap): New function.
6776
6777 2016-04-17 Tom de Vries <tom@codesourcery.com>
6778
6779 PR other/70183
6780 * passes.c (pass_manager::register_pass): Propagate pflags.
6781
6782 2016-04-17 Tom de Vries <tom@codesourcery.com>
6783
6784 PR other/68875
6785 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
6786 * passes.c (pass_manager::pass_manager): Declare and init p_start in
6787 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
6788 check if it's equal to p_start.
6789 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
6790
6791 2016-04-15 Jan Hubicka <jh@suse.cz>
6792
6793 PR ipa/70018
6794 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
6795 function does not bind to current def.
6796 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
6797 handle conservatively calls to functions that does not need to bind
6798 to current def.
6799 (check_call): Update call of worse_state.
6800 (ignore_edge_for_nothrow): Update.
6801 (ignore_edge_for_pure_const): Likewise.
6802 (propagate_pure_const): Update calls to worse_state.
6803 (skip_function_for_local_pure_const): Reformat comments.
6804
6805 2016-04-15 Jan Hubicka <jh@suse.cz>
6806
6807 PR ipa/70018
6808 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
6809 (cgraph_node::function_symbol): Likewise.
6810 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6811 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
6812 (symtab_node::ultimate_alias_target): Add REF parameter.
6813 (symtab_node::binds_to_current_def_p): Declare.
6814 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
6815 (cgraph_node::function_symbol): Likewise.
6816 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6817 (cgraph_node::get_availability): Likewise.
6818 (cgraph_edge::binds_to_current_def_p): New inline function.
6819 (varpool_node::get_availability): Add REF parameter.
6820 (varpool_node::ultimate_alias_target): Likewise.
6821 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
6822 (symtab_node::binds_to_current_def_p): Likewise.
6823 * varpool.c (varpool_node::get_availability): Likewise.
6824
6825 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6826
6827 PR target/70662
6828 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
6829 Fix mode size check.
6830
6831 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6832
6833 * BASE-VER: Set to 7.0.0.
6834
6835 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
6836
6837 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
6838
6839 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6840
6841 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
6842 architecture revisions.
6843
6844 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
6845
6846 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
6847 * config/i386/i386.c (ix86_using_red_zone): No longer static.
6848 * config/i386/i386.md (stack decrement to push peepholes): Guard
6849 with !x86_using_red_zone ().
6850
6851 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6852
6853 PR c++/70675
6854 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
6855 to dump_generic_node.
6856 (NIY): Pass also flags to do_niy.
6857
6858 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
6859
6860 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
6861 (simd_clone_vector_of_formal_parm_types)
6862 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
6863 (simd_clone_mangle, simd_clone_create)
6864 (simd_clone_adjust_return_type, create_tmp_simd_array)
6865 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
6866 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
6867 (ipa_simd_modify_function_body, simd_clone_linear_addend)
6868 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
6869 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
6870 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
6871 * omp-simd-clone.c: ... this new file.
6872 (simd_clone_vector_of_formal_parm_types): Make it static.
6873 * Makefile.in (OBJS): Add omp-simd-clone.o.
6874
6875 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6876
6877 PR target/70662
6878 * config/i386/sse.md: Use proper memory operand modifiers.
6879
6880
6881 2016-04-15 Richard Biener <rguenther@suse.de>
6882 Alan Modra <amodra@gmail.com>
6883
6884 PR tree-optimization/70130
6885 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
6886 when alignment stays not the same and no not use the realign
6887 scheme then.
6888
6889 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6890
6891 PR target/70669
6892 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6893 direct move handlers for KFmode. Change TFmode handlers test from
6894 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
6895
6896 2016-04-14 Jakub Jelinek <jakub@redhat.com>
6897
6898 PR c++/70594
6899 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
6900 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
6901 (inlined_polymorphic_ctor_dtor_block_p): Use it.
6902 * tree-ssa-live.c (remove_unused_scope_block_p): When
6903 in_ctor_dtor_block, avoid discarding not just BLOCKs with
6904 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
6905 block_ultimate_origin is FUNCTION_DECL.
6906 (remove_unused_locals): If current_function_decl is
6907 polymorphic_ctor_dtor_p, pass initial true to
6908 remove_unused_scope_block_p' is_ctor_dtor_block.
6909
6910 2016-04-14 Martin Sebor <msebor@redhat.com>
6911
6912 PR c++/69517
6913 PR c++/70019
6914 PR c++/70588
6915 * doc/extend.texi (Variable Length): Revert.
6916
6917 2016-04-14 Marek Polacek <polacek@redhat.com>
6918 Jan Hubicka <hubicka@ucw.cz>
6919
6920 PR c++/70029
6921 * tree.c (verify_type): Disable the canonical type of main variant
6922 check.
6923
6924 2016-04-14 Jason Merrill <jason@redhat.com>
6925
6926 * cfgexpand.c, expr.c: Revert previous change.
6927
6928 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6929
6930 PR middle-end/70643
6931 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
6932 when building a mem ref for the incoming reduction variable.
6933
6934 2016-04-14 Richard Biener <rguenther@suse.de>
6935
6936 PR tree-optimization/70614
6937 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
6938 loop if the evolution dropped to chrec_dont_know.
6939 (interpret_condition_phi): Likewise.
6940
6941 2016-04-14 Richard Biener <rguenther@suse.de>
6942
6943 PR tree-optimization/70623
6944 * tree-ssa-pre.c (changed_blocks): Make global ...
6945 (compute_antic): ... local here. Move and fix worklist
6946 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
6947 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
6948 worklist handling, dump when ANTIC_IN changed.
6949 (compute_partial_antic_aux): Remove worklist handling.
6950 (init_pre): Do not compute post dominators. Add a comment about
6951 the CFG order chosen.
6952 (fini_pre): Do not free post dominators.
6953
6954 2016-04-13 Martin Sebor <msebor@redhat.com>
6955
6956 PR c++/69517
6957 PR c++/70019
6958 PR c++/70588
6959 * doc/extend.texi (Variable Length): Document C++ specifics.
6960
6961 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6962
6963 PR c++/70641
6964 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
6965 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
6966 eh edges have been purged.
6967
6968 PR c++/70594
6969 * tree-sra.c (create_access_replacement,
6970 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
6971 gets fancy name.
6972 * tree-pretty-print.c (dump_fancy_name): New function.
6973 (dump_decl_name, dump_generic_node): Use it.
6974
6975 2016-04-13 Jason Merrill <jason@redhat.com>
6976
6977 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
6978 * expr.c (expand_expr_real_1): Likewise.
6979
6980 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
6981
6982 * config/i386/i386.md (kunpckhi): Swap operands.
6983 (kunpcksi): Likewise.
6984 (kunpckdi): Likewise.
6985 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
6986 (vec_pack_trunc_<mode>): Likewise.
6987
6988 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6989
6990 PR debug/70628
6991 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
6992
6993 PR middle-end/70633
6994 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
6995 gimplification turns some element into non-constant.
6996
6997 PR debug/70628
6998 * rtl.h (convert_memory_address_addr_space_1): New prototype.
6999 * explow.c (convert_memory_address_addr_space_1): No longer static,
7000 add NO_EMIT argument and don't call convert_modes if true, pass
7001 it down recursively, remove break after return.
7002 (convert_memory_address_addr_space): Adjust caller.
7003 * simplify-rtx.c (simplify_unary_operation_1): Call
7004 convert_memory_address_addr_space_1 instead of convert_memory_address,
7005 if it returns NULL, don't simplify.
7006
7007 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
7008
7009 PR target/70630
7010 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
7011
7012 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7013
7014 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7015 Bump the upper SIMDLEN limits, so that if the return type or
7016 characteristic type if the return type is void can be passed in
7017 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
7018 allowed.
7019
7020 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7021
7022 PR target/70640
7023 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
7024 Do not use "=" constraint on an input constraint.
7025 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7026 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7027 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
7028 generates (neg (abs ...)) instead of (abs ...).
7029
7030 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7031
7032 PR rtl-optimization/70596
7033 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
7034 just invalidate LRA data and reset them. Adjust dump wording.
7035
7036 2016-04-12 Martin Liska <mliska@suse.cz>
7037
7038 Revert
7039 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7040
7041 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7042 estimates here.
7043 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7044 max_loop_iterations_int.
7045 (tree_unswitch_outer_loop): Likewise.
7046 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7047 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7048
7049 2016-04-12 Tom de Vries <tom@codesourcery.com>
7050
7051 PR tree-optimization/68756
7052 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
7053 instead of new_name.
7054
7055 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7056
7057 PR tree-optimization/70602
7058 * tree-sra.c (generate_subtree_copies): Don't write anything into
7059 constant pool decls.
7060
7061 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
7062 regardless whether there are depend clauses or not.
7063
7064 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7065
7066 PR target/70381
7067 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
7068 target attribute and pragma from changing the -mfloat128
7069 and -mfloat128-hardware options.
7070
7071 * doc/extend.texi (Additional Floating Types): Document PowerPC
7072 __float128 restrictions.
7073
7074 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7075
7076 PR target/70133
7077 * config/aarch64/driver-aarch64.c
7078 (aarch64_get_extension_string_for_isa_flags): New.
7079 (arch_extension): Rename to...
7080 (aarch64_arch_extension): ...This.
7081 (ext_to_feat_string): Rename to...
7082 (aarch64_extensions): ...This.
7083 (aarch64_core_data): Keep track of architecture extension flags.
7084 (cpu_data): Rename to...
7085 (aarch64_cpu_data): ...This.
7086 (aarch64_arch_driver_info): Keep track of architecture extension
7087 flags.
7088 (get_arch_name_from_id): Rename to...
7089 (get_arch_from_id): ...This, change return type.
7090 (host_detect_local_cpu): Update and reformat for renames, handle
7091 extensions through common infrastructure.
7092
7093 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7094
7095 PR target/70133
7096 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
7097 track of a canonical flag name.
7098 (all_extensions): Likewise.
7099 (arch_to_arch_name): Also track extension flags enabled by the arch.
7100 (all_architectures): Likewise.
7101 (aarch64_parse_extension): Move to here.
7102 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
7103 rework.
7104 (aarch64_rewrite_selected_cpu): Update for above change.
7105 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
7106 are handled, such that the single explicit value enabled by an
7107 extension is kept seperate from the implicit values it also enables.
7108 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
7109 to here.
7110 (aarch64_parse_extension): New.
7111 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
7112 here to config/aarch64/aarch64-protos.h.
7113 (aarch64_parse_extension): Move from here to
7114 common/config/aarch64/aarch64-common.c.
7115 (aarch64_option_print): Update.
7116 (aarch64_declare_function_name): Likewise.
7117 (aarch64_start_file): Likewise.
7118 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
7119 the canonical flag for extensions.
7120 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
7121 flags.
7122
7123 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7124
7125 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
7126 AARCH64_FL_CRC.
7127
7128 2016-04-09 Tom de Vries <tom@codesourcery.com>
7129
7130 PR tree-optimization/68953
7131 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
7132 first to last subscript.
7133
7134 2016-04-09 Jakub Jelinek <jakub@redhat.com>
7135
7136 PR tree-optimization/70586
7137 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
7138 for any calls.
7139
7140 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
7141
7142 PR lto/70289
7143 PR ipa/70348
7144 PR tree-optimization/70373
7145 PR middle-end/70533
7146 PR middle-end/70534
7147 PR middle-end/70535
7148 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
7149 clauses for acc parallel reductions as necessary. Error on those
7150 that are private.
7151 * omp-low.c (scan_sharing_clauses): Don't install variables which
7152 are used in acc parallel reductions.
7153 (lower_rec_input_clauses): Remove dead code.
7154 (lower_oacc_reductions): Add support for reference reductions.
7155 (lower_reduction_clauses): Remove dead code.
7156 (lower_omp_target): Don't remap variables appearing in acc parallel
7157 reductions.
7158 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
7159
7160 2016-04-08 Jakub Jelinek <jakub@redhat.com>
7161
7162 PR middle-end/70593
7163 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
7164 with multiple SSA_NAME defs, force the outputs other than first
7165 to be live before calling live_track_process_def on each output.
7166
7167 PR rtl-optimization/70574
7168 * fwprop.c (forward_propagate_and_simplify): Don't add
7169 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
7170 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
7171 paradoxical subregs within *loc.
7172
7173 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
7174
7175 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
7176 -ftree-parallelize-loops={0,1}.
7177 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
7178 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
7179 * config/ia64/hpux.h (LIB_SPEC): Likewise.
7180 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7181 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7182
7183 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
7184
7185 PR sanitizer/70541
7186 * asan.c (instrument_derefs): If we get unknown location, extract it
7187 with EXPR_LOCATION.
7188 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
7189
7190 2016-04-08 Tom de Vries <tom@codesourcery.com>
7191
7192 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
7193 implicit firstprivate clause.
7194
7195 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7196
7197 PR target/70566
7198 * config/arm/thumb2.md (tst + branch-> lsls + branch
7199 peephole below *orsi_not_shiftsi_si): Require that condition
7200 register is dead after the peephole.
7201 (second peephole after the above): Likewise.
7202
7203 2016-04-08 Alan Modra <amodra@gmail.com>
7204
7205 PR target/70117
7206 * builtins.c (fold_builtin_classify): For IBM extended precision,
7207 look at just the high-order double to test for NaN.
7208 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
7209 test just the high double for Inf but both doubles for subnormal
7210 limit.
7211
7212 2016-04-07 Jakub Jelinek <jakub@redhat.com>
7213
7214 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
7215 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
7216 node->simdclone->mask_mode != VOIDmode masks.
7217 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
7218 earlier, use it instead of node->simdclone.
7219 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7220 Set clonei->mask_mode.
7221
7222 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
7223
7224 PR c/70436
7225 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
7226 Pass it through to cp_parser_already_scoped_statement.
7227 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
7228 it through to cp_parser_statement.
7229 (cp_parser_statement): Pass IF_P through to
7230 cp_parser_iteration_statement.
7231 (cp_parser_pragma): Adjust call to
7232 cp_parser_iteration_statement.
7233
7234 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
7235
7236 PR c/70436
7237 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
7238 resolve a future -Wparentheses warning.
7239 * omp-low.c (scan_sharing_clauses): Likewise.
7240 * tree-parloops.c (eliminate_local_variables): Likewise.
7241
7242 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
7243
7244 PR rtl-optimization/70398
7245 * lra-constraints.c (process_address_1): Check zero scale and code
7246 for reloading with zero scale.
7247
7248 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
7249
7250 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
7251 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
7252
7253 2016-04-06 Jakub Jelinek <jakub@redhat.com>
7254
7255 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7256 Add support for AVX512F clones, include them by default for
7257 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
7258 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
7259 up to 128.
7260
7261 PR middle-end/70550
7262 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
7263 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
7264 firstprivate clauses.
7265 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
7266 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
7267 (lower_omp_target): Set TREE_NO_WARNING for
7268 non-addressable possibly uninitialized vars which are copied into
7269 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
7270
7271 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
7272
7273 * config/pa/predicates.md (integer_store_memory_operand): Accept
7274 REG+D operands with a large offset when reload_in_progress is true.
7275 (floating_point_store_memory_operand): Likewise.
7276
7277 2016-04-05 Jakub Jelinek <jakub@redhat.com>
7278
7279 PR c++/70336
7280 * match.pd (nested int casts): Limit to GIMPLE.
7281
7282 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
7283
7284 PR ipa/66223
7285 * ipa-devirt.c (maybe_record_node): Fix comment; use
7286 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
7287
7288 2016-04-05 Jakub Jelinek <jakub@redhat.com>
7289
7290 PR rtl-optimization/70542
7291 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
7292 if there are any uses other than insn or debug insns.
7293
7294 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
7295 Jakub Jelinek <jakub@redhat.com>
7296
7297 PR tree-optimization/70509
7298 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
7299 Shift HOST_WIDE_INT_1U instead of 1.
7300
7301 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
7302
7303 PR tree-optimization/70509
7304 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
7305 of the vector base type for index.
7306
7307 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
7308
7309 PR target/70510
7310 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
7311
7312 2016-04-05 Richard Biener <rguenther@suse.de>
7313
7314 PR tree-optimization/70526
7315 * tree-sra.c (build_ref_for_offset): Use prev_base to
7316 extract the alias pointer type.
7317
7318 2016-04-05 Richard Biener <rguenther@suse.de>
7319
7320 * dse.c (struct store_info): Remove alias_set member.
7321 (struct read_info_type): Likewise.
7322 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
7323 spill_deleted, clear_alias_set_lookup): Remove.
7324 (get_group_info): Remove dead base == NULL_RTX case.
7325 (dse_step0): Remove initialization of removed variables.
7326 (delete_dead_store_insn): Reomve alias set dumping.
7327 (free_read_records): Remove alias_set handling.
7328 (canon_address): Remove alias_set_out parameter.
7329 (record_store): Remove spill_alias_set, it's always zero.
7330 (check_mem_read_rtx): Likewise.
7331 (dse_step2): Rename from ...
7332 (dse_step2_nospill): ... this. Adjust.
7333 (scan_stores): Rename from ...
7334 (scan_stores_nospill): ... this.
7335 (scan_reads): Rename from ...
7336 (scan_reads_nospill): ... this.
7337 (scan_stores_spill, scan_reads_spill): Remove.
7338 (dse_step3_scan): Remove for_spills argument which is always false.
7339 (dse_step3): Likewise.
7340 (dse_step5): Rename from ...
7341 (dse_step5_nospill): ... this. Remove alias_set handling.
7342 (rest_of_handle_dse): Adjust.
7343
7344 2016-04-05 Jakub Jelinek <jakub@redhat.com>
7345
7346 PR target/70525
7347 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
7348 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
7349 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
7350 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
7351
7352 2016-04-05 Richard Biener <rguenther@suse.de>
7353
7354 PR middle-end/70499
7355 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
7356 non-register type temporaries into SSA.
7357
7358 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
7359
7360 PR ipa/66223
7361 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
7362 calls when sanitizing.
7363 (possible_polymorphic_call_target_p): Fix formatting.
7364
7365 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7366 Jakub Jelinek <jakub@redhat.com>
7367
7368 PR middle-end/70457
7369 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
7370 to ensure a call statement is compatible with a built-in's
7371 prototype.
7372 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
7373 Likewise.
7374
7375 2016-04-04 Richard Biener <rguenther@suse.de>
7376
7377 PR rtl-optimization/70484
7378 * rtl.h (canon_output_dependence): Declare.
7379 * alias.c (canon_output_dependence): New function.
7380 * dse.c (record_store): Use canon_output_dependence rather
7381 than canon_true_dependence.
7382
7383 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7384
7385 PR ipa/68881
7386 * cgraph.h (symtab_node::copy_visibility_from): New function.
7387 * symtab.c (symtab_node::copy_visibility_from): New function.
7388 * ipa-visibility.c (optimize_weakref): New function.
7389 (function_and_variable_visibility): Use it.
7390
7391 2016-04-04 Martin Liska <mliska@suse.cz>
7392
7393 PR hsa/70402
7394 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
7395 value that is really in range handled by SBR instruction.
7396 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
7397 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
7398 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
7399
7400 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
7401
7402 PR target/70416
7403 PR target/67391
7404 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
7405 set, but not for SP_REG operands.
7406
7407 2016-04-02 Martin Sebor <msebor@redhat.com>
7408
7409 PR c++/67376
7410 * fold-const.c (maybe_nonzero_address): New function.
7411 (fold_comparison): Call it. Fold equality and relational
7412 expressions involving null pointers.
7413 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
7414
7415 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
7416
7417 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
7418 the "Y" constraint (scalar FP 0.0 immediate).
7419
7420 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
7421 Add the "const_double" to the list of operand constraints.
7422
7423 2016-04-01 Jakub Jelinek <jakub@redhat.com>
7424
7425 PR rtl-optimization/70467
7426 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
7427 If low word of the last operand is 0, just emit addition/subtraction
7428 for the high word.
7429
7430 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7431
7432 PR target/70404
7433 * config/s390/s390.c (s390_expand_insv): Check for everything
7434 constant instead of just VOIDmode stuff.
7435
7436 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7437
7438 PR target/70496
7439 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
7440
7441 2016-04-01 Nathan Sidwell <nathan@acm.org>
7442
7443 * tree.def (TRY_CATCH_EXPR): Correct documentation.
7444
7445 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
7446
7447 PR rtl-optimization/70461
7448 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
7449 is necessary.
7450
7451 2016-03-31 Martin Liska <mliska@suse.cz>
7452
7453 PR hsa/70399
7454 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
7455 a tree value or an immediate integer value to a buffer
7456 that is eventually copied to a BRIG section.
7457 (emit_immediate_operand): Call the function here.
7458 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
7459 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
7460 of class' fields that are removed.
7461 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
7462 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
7463 m_brig_repr_size fields.
7464
7465 2016-03-31 Martin Liska <mliska@suse.cz>
7466
7467 PR hsa/70391
7468 * hsa-gen.c (hsa_function_representation::update_dominance): New
7469 function.
7470 (convert_addr_to_flat_segment): Likewise.
7471 (gen_hsa_memory_set): New alignment argument.
7472 (gen_hsa_ctor_assignment): Likewise.
7473 (gen_hsa_insns_for_single_assignment): Provide alignment
7474 to gen_hsa_ctor_assignment.
7475 (gen_hsa_insns_for_direct_call): Add new argument.
7476 (expand_lhs_of_string_op): New function.
7477 (expand_string_operation_builtin): Likewise.
7478 (expand_memory_copy): New function.
7479 (expand_memory_set): New function.
7480 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
7481 (convert_switch_statements): Change signature.
7482 (generate_hsa): Use a return value of the function.
7483 (pass_gen_hsail::execute): Do not call
7484 convert_switch_statements here.
7485 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
7486 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
7487 (hsa_function_representation::update_dominance): New function.
7488
7489 2016-03-31 Martin Liska <mliska@suse.cz>
7490
7491 PR hsa/70391
7492 * hsa-brig.c (emit_directive_variable): Emit alignment
7493 according to hsa_symbol::m_align.
7494 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
7495 (dump_hsa_symbol): Dump alignment of HSA symbols.
7496 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
7497 (gen_hsa_addr_with_align): New function.
7498 (hsa_bitmemref_alignment): Use newly added function.
7499 (gen_hsa_insns_for_load): Likewise.
7500 (gen_hsa_insns_for_store): Likewise.
7501 (gen_hsa_memory_copy): New argument added.
7502 (gen_hsa_insns_for_single_assignment): Respect
7503 alignment for assignments processed via gen_hsa_memory_copy.
7504 (gen_hsa_insns_for_direct_call): Likewise.
7505 (gen_hsa_insns_for_return): Likewise.
7506 (gen_function_def_parameters): Set default alignment.
7507 * hsa.c (hsa_object_alignment): New function.
7508 (hsa_byte_alignment): Pasted function.
7509 * hsa.h (hsa_symbol::m_align): New field.
7510
7511 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7512
7513 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
7514 scratch field for goto case.
7515
7516 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
7517
7518 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
7519
7520 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
7521
7522 PR target/70442
7523 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
7524 (scalar_chain::convert_insn): Call convert_op for reg
7525 moves to handle undefined registers.
7526
7527 2016-03-31 Nathan Sidwell <nathan@acm.org>
7528
7529 PR c++/70393
7530 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
7531 Assert we don't want to move backwards.
7532
7533 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
7534
7535 PR target/70453
7536 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
7537
7538 2016-03-31 Jakub Jelinek <jakub@redhat.com>
7539
7540 PR rtl-optimization/70460
7541 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
7542 with operand from REG_LABEL_OPERAND, instead substitute
7543 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
7544 Don't do anything for REG_NON_LOCAL_GOTO jumps.
7545
7546 2016-03-31 Martin Liska <mliska@suse.cz>
7547
7548 * passes.c (execute_one_pass): Do not call
7549 todo_after for a discarded function.
7550
7551 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7552
7553 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
7554 (no_cost, infinite_cost): Initialize the new field.
7555 (get_computation_cost_at): Record setup cost.
7556 (determine_use_iv_cost_address): Skip cost computation for sub
7557 uses if we can estimate it without losing accuracy.
7558
7559 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7560
7561 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7562 estimates here.
7563 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7564 max_loop_iterations_int.
7565 (tree_unswitch_outer_loop): Likewise.
7566 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7567 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7568
7569 2016-03-30 Richard Biener <rguenther@suse.de>
7570
7571 PR middle-end/70450
7572 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
7573
7574 2016-03-30 Jakub Jelinek <jakub@redhat.com>
7575
7576 PR target/70421
7577 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
7578 in gen_blendm expander.
7579
7580 2016-03-30 Nick Clifton <nickc@redhat.com>
7581
7582 PR target/62254
7583 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
7584 case where we are already provided with an SImode SUBREG.
7585
7586 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
7587
7588 PR target/70439
7589 * config/i386/i386.c (ix86_expand_epilogue): Properly check
7590 conflict between DRAP register and __builtin_eh_return.
7591
7592 2016-03-30 Michael Matz <matz@suse.de>
7593 Richard Biener <rguenther@suse.de>
7594
7595 PR ipa/12392
7596 * ipa-polymorphic-call.c (struct type_change_info): Change
7597 speculative to an unsigned allowing to limit the work we do.
7598 (csftc_abort_walking_p): New inline function..
7599 (check_stmt_for_type_change): Limit the number of may-defs
7600 skipped for speculative devirtualization to
7601 max-speculative-devirt-maydefs.
7602 * params.def (max-speculative-devirt-maydefs): New param.
7603 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
7604
7605 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
7606
7607 PR target/63890
7608 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
7609 and TARGET_MACHO.
7610
7611 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
7612
7613 PR tree-optimization/59124
7614 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
7615 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
7616
7617 2016-03-29 Jeff Law <law@redhat.com>
7618
7619 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
7620
7621 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7622
7623 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
7624 to HOST_WIDE_INT.
7625
7626 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
7627
7628 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
7629 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
7630 gcrt0.o if linking dynamically.
7631
7632 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7633
7634 PR ipa/70283
7635 * ipa-devirt.c (methods_equal_p): New function.
7636 (compare_virtual_tables): Use it.
7637 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
7638 * cgraphclones.c (clone_function_name_1): Use
7639 symbol_table::symbol_suffix_separator.
7640 * coverage.c (build_var): Likewise.
7641 * symtab.c (symbol_table::symbol_suffix_separator): New.
7642
7643 2016-03-29 Jakub Jelinek <jakub@redhat.com>
7644
7645 PR rtl-optimization/70429
7646 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
7647 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
7648 mode != result_mode.
7649
7650 PR c++/70353
7651 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
7652
7653 PR tree-optimization/70405
7654 * ssa-iterators.h (num_imm_uses): Add missing braces.
7655
7656 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
7657
7658 PR rtl-optimization/68695
7659 * ira-color.c (allocno_copy_cost_saving): New.
7660 (improve_allocation): Use it.
7661
7662 2016-03-29 Richard Henderson <rth@redhat.com>
7663
7664 PR middle-end/70355
7665 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
7666
7667 2016-03-29 Richard Biener <rguenther@suse.de>
7668
7669 PR middle-end/70424
7670 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
7671 use alignment returned by get_pointer_alignment_1 if it is
7672 bigger than BITS_PER_UNIT.
7673 * builtins.c (get_pointer_alignment_1): Do not return true
7674 for alignment extracted from SSA info.
7675
7676 2016-03-28 James Bowman <james.bowman@ftdichip.com>
7677
7678 * config/ft32/ft32.opt (mnodiv): New.
7679 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
7680 * doc/invoke.texi (FT32 Options -mnodiv): New.
7681
7682 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
7683
7684 PR target/70406
7685 * config/i386/i386.md (define_split, andn): Fix modes.
7686
7687 2016-03-26 Richard Biener <rguenther@suse.de>
7688 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7689
7690 PR ipa/70366
7691 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
7692 instead of
7693 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
7694 as 2nd argument to cl_optimization_restore().
7695
7696 2016-03-25 Richard Henderson <rth@redhat.com>
7697
7698 PR target/70120
7699 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
7700 * config/aarch64/aarch64-protos.h: Declare it.
7701 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
7702
7703 2016-03-25 Alan Modra <amodra@gmail.com>
7704
7705 PR target/70052
7706 * config/rs6000/constraints.md (j): Simplify.
7707 * config/rs6000/predicates.md (easy_fp_constant): Exclude
7708 decimal float 0.D.
7709 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
7710 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
7711 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
7712 in all constraint alternatives.
7713 (movtd_64bit_nodm): Delete "j" constraint alternative.
7714
7715 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7716
7717 * tree-ssa-propagate.c: Enhance docs for
7718 SSA_PROP_NOT_INTERESTING.
7719
7720 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7721
7722 * doc/extend.texi: Fix typo in documentation to pure attribute.
7723
7724 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
7725
7726 PR target/70319
7727 * config/pa/pa.md (bswapdi2): Use a scratch register.
7728
7729 2016-03-24 Richard Henderson <rth@redhat.com>
7730
7731 PR middle-end/69845
7732 * fold-const.c (extract_muldiv_1): Correct test for multiplication
7733 overflow.
7734
7735 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
7736
7737 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
7738 using ix86_expand_binary_operator instead of gen_andsi3.
7739
7740 2016-03-24 Richard Biener <rguenther@suse.de>
7741
7742 PR tree-optimization/70396
7743 * tree-vect-stmts.c (vectorizable_comparison): Use
7744 get_vectype_for_scalar_type.
7745
7746 2016-03-24 Richard Biener <rguenther@suse.de>
7747
7748 PR middle-end/70370
7749 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
7750 with register bases.
7751
7752 2016-03-24 Richard Biener <rguenther@suse.de>
7753
7754 PR tree-optimization/70372
7755 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
7756 build_all_ones_cst to also handle vector types correctly.
7757
7758 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7759
7760 PR target/70381
7761 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
7762 -mfloat128 here.
7763
7764 2016-03-23 Marek Polacek <polacek@redhat.com>
7765
7766 PR c++/69884
7767 * doc/invoke.texi: Document -Wignored-attributes.
7768
7769 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7770
7771 PR tree-optimization/69042
7772 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
7773 parameter from 30 to 40.
7774
7775 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7776
7777 PR tree-optimization/69042
7778 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
7779 for use with constant offset stripped in base.
7780
7781 2016-03-23 Richard Biener <rguenther@suse.de>
7782
7783 PR middle-end/70251
7784 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
7785 mode compatibility check.
7786 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7787
7788 2016-03-23 Jeff Law <law@redhat.com>
7789
7790 PR tree-optimization/64058
7791 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
7792 CONFLICT_COUNT.
7793 (struct ssa_conflicts): Move up earlier in the file.
7794 (conflicts_, var_map_): New static variables.
7795 (initialize_conflict_count): New function to initialize the
7796 CONFLICT_COUNT field for each conflict pair.
7797 (compare_pairs): Lazily initialize the conflict count and use it
7798 as the first tie-breaker.
7799 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
7800 and wipe conflicts_ and map_ around the call to qsort. Remove
7801 special case for 2 coalesce pairs.
7802 * bitmap.c (bitmap_count_unique_bits): New function.
7803 (bitmap_count_bits_in_word): New function, extracted from
7804 bitmap_count_bits.
7805 (bitmap_count_bits): Use bitmap_count_bits_in_word.
7806 * bitmap.h (bitmap_count_unique_bits): Declare it.
7807
7808 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7809
7810 PR target/69917
7811 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
7812 transparent alias chain for decl assembler name.
7813 * config/sol2.c (solaris_assemble_visibility): Likewise.
7814
7815 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7816
7817 * config/arm/arm1020e.md (1020call_op): Reduce reservation
7818 duration.
7819 (v10_fdivs): Likewise.
7820 (v10_fdivd): Likewise.
7821
7822 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7823
7824 PR driver/70132
7825 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
7826 to not call fclose twice on file.
7827
7828 2016-03-23 Jakub Jelinek <jakub@redhat.com>
7829
7830 PR tree-optimization/70354
7831 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7832 oprnd0 is wider than oprnd1 and there is a cast from the wider
7833 type to oprnd1, mask it with the mask of the narrower type.
7834
7835 PR target/70321
7836 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
7837 Optimize TARGET_STV splitters, if high or low word of last argument
7838 is 0 or -1.
7839
7840 2016-03-22 Jeff Law <law@redhat.com>
7841
7842 PR target/70232
7843 tree-ssa-threadbackward.c
7844 (fsm_find_control_statement_thread_paths): Correctly distinguish
7845 between old style jump threads vs FSM jump threads.
7846
7847 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7848
7849 PR target/70302
7850 * config/i386/i386.c (scalar_chain::convert_op): Support
7851 uninitialized register usage case.
7852
7853 2016-03-22 Richard Biener <rguenther@suse.de>
7854
7855 PR middle-end/70251
7856 * genmatch.c (gen_transform): Adjust last parameter to a three-state
7857 int...
7858 (capture::gen_transform): ... to change behavior when substituting
7859 a condition into cond or not-cond expr context.
7860 (dt_simplify::gen_1): Adjust.
7861 * gimple-match-head.c: Include gimplify.h for unshare_expr.
7862 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
7863 last change and instead change to
7864 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
7865 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7866
7867 2016-03-22 Anthony Green <green@moxielogic.com>
7868
7869 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
7870 issue for moxiebox targets.
7871 (CC1PLUS_SPEC): Ditto.
7872
7873 2016-03-22 Richard Biener <rguenther@suse.de>
7874
7875 PR middle-end/70333
7876 * fold-const.c (extract_muldiv_1): Properly perform multiplication
7877 in the wide type.
7878
7879 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7880
7881 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
7882
7883 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7884
7885 PR target/70325
7886 * config/i386/i386.c (def_builtin): Handle
7887 OPTION_MASK_ISA_AVX512VL to be and-ed with other
7888 bits.
7889 (const struct builtin_description bdesc_special_args[]):
7890 Remove duplicate ISA bits.
7891
7892 2016-03-22 Jakub Jelinek <jakub@redhat.com>
7893
7894 PR target/70329
7895 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
7896 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
7897 in a way that works also for AVX512BW.
7898
7899 PR target/70300
7900 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
7901 instead of source if operands[1] is xmm16 and above and
7902 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
7903 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
7904
7905 PR c++/70295
7906 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
7907 on assign if (*from_p) is a comparison, set it to
7908 TREE_NO_WARNING (*from_p).
7909
7910 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7911
7912 PR middle-end/70326
7913 * lra.c (restore_scratches): Ignore deleted insns.
7914
7915 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
7916 Jakub Jelinek <jakub@redhat.com>
7917
7918 PR tree-optimization/70317
7919 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
7920 to HONOR_NANS.
7921
7922 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
7923
7924 PR target/70327
7925 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
7926 of ix86_expand_move.
7927 (movoi): Ditto.
7928 (movti): Use general_operand for operand 1 predicate.
7929
7930 2016-03-21 Martin Liska <mliska@suse.cz>
7931
7932 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
7933 insns.
7934 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
7935
7936 2016-03-21 Martin Liska <mliska@suse.cz>
7937
7938 PR ipa/70306
7939 * ipa-icf.c (sem_function::parse): Skip static
7940 constructors and destructors.
7941
7942 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7943
7944 PR target/70296
7945 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
7946 function-like macro, peek following token(s) if it is followed
7947 by CPP_OPEN_PAREN token with optional padding in between, and
7948 if not, don't treat it like a macro.
7949
7950 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
7951 Alexander Monakov <amonakov@ispras.ru>
7952
7953 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
7954 for the stabs debug format.
7955
7956 2016-03-21 Richard Biener <rguenther@suse.de>
7957
7958 PR tree-optimization/70310
7959 * tree-vect-generic.c (expand_vector_condition): Fold the built
7960 condition.
7961
7962 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
7963
7964 PR target/70293
7965 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
7966 Block third alternative for AVX-512VL target,
7967
7968 2016-03-21 Martin Liska <mliska@suse.cz>
7969
7970 PR hsa/70234
7971 * hsa-brig.c (emit_function_directives): Mark unemitted
7972 global variables for emission.
7973 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
7974 (get_symbol_for_decl): Likewise.
7975 * hsa.h (struct hsa_symbol): New flag.
7976
7977 2016-03-21 Richard Biener <rguenther@suse.de>
7978
7979 PR tree-optimization/70288
7980 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
7981 we do not estimate unsimplified all-constant conditionals or
7982 switches as optimized away.
7983
7984 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
7985
7986 PR rtl-optimization/69102
7987 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
7988 when we have a readonly dependency context.
7989
7990 2016-03-18 Jeff Law <law@redhat.com>
7991
7992 PR rtl-optimization/70263
7993 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
7994 (update_equiv_regs): When trying to move a store to after the insn
7995 that sets the source of the store, make sure the store occurs after
7996 the insn that sets the source of the store. When successful note
7997 the REG_EQUIV note created in the dump file.
7998
7999 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
8000 Bernd Schmidt <bschmidt@redhat.com>
8001
8002 * doc/extend.texi: Document more potential problems with basic asms.
8003
8004 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
8005
8006 PR rtl-optimization/70278
8007 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
8008 VOIDmode.
8009
8010 2016-03-18 Jason Merrill <jason@redhat.com>
8011
8012 * calls.c (load_register_parameters): Fix zero size sibcall logic.
8013
8014 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
8015
8016 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
8017 values to 128b regs.
8018
8019 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8020
8021 PR tree-optimization/70252
8022 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
8023 boolean vector has a proper number of elements.
8024 (supportable_narrowing_operation): Likewise.
8025
8026 2016-03-18 Tom de Vries <tom@codesourcery.com>
8027
8028 PR ipa/70269
8029 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
8030
8031 2016-03-18 Jakub Jelinek <jakub@redhat.com>
8032
8033 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
8034 instead of replace_rtx for DEBUG_INSNs.
8035
8036 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8037
8038 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
8039 load type reservations.
8040
8041 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
8042
8043 PR target/70188
8044 * config/pa/constraints.md: Revert 2015-02-13 change. Use
8045 define_constraint for "Q" and "T" constraints.
8046
8047 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
8048
8049 Tweak the pipeline model for Exynos M1
8050
8051 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
8052 model.
8053
8054 2016-03-17 David Malcolm <dmalcolm@redhat.com>
8055
8056 PR c/70264
8057 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
8058 where one or both locations aren't within a line_map.
8059
8060 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
8061
8062 PR driver/70192
8063 * opts.c (finish_options): Don't set flag_pie to the default if
8064 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
8065 if it is -1.
8066
8067 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
8068
8069 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
8070 true as ALL_REGS argument to replace_rtx.
8071
8072 2016-03-17 Richard Biener <rguenther@suse.de>
8073
8074 PR debug/70271
8075 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
8076 last.
8077
8078 2016-03-17 Jakub Jelinek <jakub@redhat.com>
8079
8080 PR target/70245
8081 * rtl.h (replace_rtx): Add ALL_REGS argument.
8082 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
8083 equality and assert mode is the same, instead of just rtx pointer
8084 equality.
8085 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
8086 true as ALL_REGS argument to replace_rtx.
8087
8088 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
8089
8090 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
8091 for boolean vector with vector mode only.
8092 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8093
8094 2016-03-17 Nick Clifton <nickc@redhat.com>
8095
8096 PR target/70162
8097 * config/rx/rx.c (rx_print_integer): Print negative constants in
8098 decimal.
8099
8100 2016-03-17 Jakub Jelinek <jakub@redhat.com>
8101
8102 PR target/70261
8103 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
8104
8105 2016-03-16 Richard Henderson <rth@redhat.com>
8106 Richard Biener <rguenth@suse.de>
8107
8108 PR middle-end/70240
8109 PR middle-end/68215
8110 PR tree-opt/68714
8111 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
8112 first operand as is_gimple_condexpr.
8113
8114 PR middle-end/70240
8115 PR middle-end/68215
8116 Revert r231575
8117 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
8118 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
8119 Do not gimplify the result.
8120 (do_unop): Adjust call to tree_vec_extract.
8121 (do_binop): Likewise.
8122 (do_compare): Likewise.
8123 (do_plus_minus): Likewise.
8124 (do_negate): Likewise.
8125 (expand_vector_condition): Likewise.
8126 (do_cond): Likewise.
8127
8128 2016-03-16 Richard Henderson <rth@redhat.com>
8129
8130 PR target/70048
8131 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
8132 (aarch64_classify_address): Use it.
8133 (aarch64_legitimize_address): Force all subexpressions of PLUS
8134 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
8135
8136 2016-03-16 Jakub Jelinek <jakub@redhat.com>
8137 Richard Biener <rguenth@suse.de>
8138
8139 PR target/70245
8140 * rtlanal.c (replace_rtx): For REG, if from is a REG,
8141 return to even if only REGNO is equal, and assert
8142 mode is the same.
8143
8144 2016-03-11 Jeff Law <law@redhat.com>
8145
8146 PR rtl-optimization/70224
8147 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
8148
8149 2016-03-16 Richard Henderson <rth@redhat.com>
8150
8151 PR middle-end/70199
8152 * function.h (struct function): Add has_forced_label_in_static.
8153 * gimplify.c (force_labels_r): Set it.
8154 * lto-streamer-in.c (input_struct_function_base): Read it.
8155 * lto-streamer-out.c (output_struct_function_base): Write it.
8156 * tree-inline.c (has_label_address_in_static_1): Remove.
8157 (copy_forbidden): Remove fndecl parameter; test
8158 has_forced_label_in_static.
8159 (inline_forbidden_p): Update call to copy_forbidden.
8160 (tree_versionable_function_p): Likewise.
8161 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
8162 (chkp_versioning): Likewise.
8163 * tree-inline.h (copy_forbidden): Update decl.
8164
8165 2016-03-16 Marek Polacek <polacek@redhat.com>
8166
8167 PR c/70093
8168 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
8169 function being thunked if the result type doesn't have fixed size.
8170 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
8171 doesn't have fixed size.
8172
8173 2016-03-16 Bin Cheng <bin.cheng@arm.com>
8174
8175 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
8176 reporting malformed loop nest.
8177
8178 2016-03-16 Tom de Vries <tom@codesourcery.com>
8179
8180 PR lto/70187
8181 * ipa-devirt.c (possible_polymorphic_call_targets): Move
8182 nodes.length () == 1 test to before first nodes[0] access.
8183
8184 2016-03-16 Tom de Vries <tom@codesourcery.com>
8185
8186 PR tree-optimization/68715
8187 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
8188 single_pred_p test.
8189
8190 2016-03-16 Tom de Vries <tom@codesourcery.com>
8191
8192 PR tree-optimization/68809
8193 * graphite-scop-detection.c (same_close_phi_node): Test if result types
8194 are the same.
8195
8196 2016-03-16 Carlos O'Donell <carlos@redhat.com>
8197 Sandra Loosemore <sandra@codesourcery.com>
8198
8199 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
8200 on leaf attribute. Mention ELF interposition problems.
8201
8202 2016-03-16 Alan Modra <amodra@gmail.com>
8203
8204 PR rtl-optimization/69195
8205 PR rtl-optimization/47992
8206 * ira.c (indirect_jump_optimize): Ignore artificial defs.
8207 Add comments.
8208
8209 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
8210
8211 PR bootstrap/69513
8212 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
8213
8214 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8215
8216 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
8217
8218 2016-03-15 Jakub Jelinek <jakub@redhat.com>
8219
8220 PR rtl-optimization/70222
8221 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
8222 optimization if mode is different from result_mode, queue up masking
8223 of the result in outer_op. Formatting fix.
8224
8225 PR middle-end/70239
8226 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
8227 of safe_grow.
8228
8229 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8230
8231 PR rtl-optimization/69032
8232 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
8233 looping backwards over basic block insns.
8234
8235 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8236
8237 PR target/66660
8238 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
8239 to non-speculative when propagating trap bits.
8240
8241 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8242
8243 PR rtl-optimization/63384
8244 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
8245 DEBUG_INSN_P insns.
8246
8247 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8248
8249 PR target/64411
8250 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
8251 factored out from ...
8252 (sched_analyze_insn): ... here.
8253 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
8254 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
8255 get_implicit_reg_pending_clobbers in it.
8256 (setup_id_reg_sets): Use setup_id_implicit_regs.
8257 (deps_init_id): Ditto.
8258
8259 2016-03-15 Tom de Vries <tom@codesourcery.com>
8260
8261 PR ipa/70161
8262 * cgraph.c (cgraph_node::get_body): Save, reset and restore
8263 dump_file_name.
8264 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
8265 execute_function_dump.
8266 (execute_one_pass): Don't dump function if it will be dumped after ipa
8267 transform.
8268
8269 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
8270
8271 * genrecog.c (match_pattern_2): If pred is NULL don't call
8272 safe_predicate_mode on it.
8273
8274 2016-03-14 Jakub Jelinek <jakub@redhat.com>
8275
8276 PR middle-end/70219
8277 * lra-constraints.c (delete_move_and_clobber): Change assertion
8278 to also allow dregno == 0.
8279
8280 2016-03-14 Richard Henderson <rth@redhat.com>
8281
8282 PR tree-opt/68714
8283 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
8284 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
8285 (reassociate_bb): Use optimize_vec_cond_expr; avoid
8286 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
8287 on vectors.
8288
8289 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
8290
8291 PR target/70083
8292 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
8293 regs.
8294 (lra_create_live_ranges_1): initialize hard register biggest_mode to
8295 VOIDmode.
8296 * lra-constraints.c (split_reg): For hard regs, try to find the
8297 biggest single-register mode used in the function.
8298
8299 2016-03-14 Richard Biener <rguenther@suse.de>
8300
8301 PR tree-optimization/56365
8302 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
8303 constants to compare against.
8304
8305 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
8306
8307 PR target/70098
8308 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8309 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
8310 (define_split for the GPR case): Use int_reg_operand instead of
8311 gpc_reg_operand for the output.
8312
8313 2016-03-14 Tom de Vries <tom@codesourcery.com>
8314
8315 PR tree-optimization/70045
8316 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
8317 create_empty_if_region_on_edge argument.
8318
8319 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
8320
8321 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
8322 (STACK_CHECK_PROTECT): Likewise.
8323 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
8324 (STACK_CHECK_PROTECT): Likewise.
8325 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
8326 (STACK_CHECK_PROTECT): Likewise.
8327 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
8328 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8329 (STACK_CHECK_PROTECT): Likewise.
8330
8331 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
8332
8333 PR rtl-optimization/69307
8334 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
8335 registers in modes that span more than one register.
8336
8337 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
8338
8339 PR target/69614
8340 * lra-constraints.c (delete_move_and_clobber): New.
8341 (remove_inheritance_pseudos): Use it.
8342
8343 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
8344
8345 PR ada/70017
8346 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
8347 the libcall is LCT_THROW.
8348 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
8349 for the checking routine.
8350
8351 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8352
8353 PR target/70131
8354 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
8355 optimization if we have direct move.
8356 (roundu32<mode>2_fprs): Likewise.
8357
8358 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
8359
8360 PR target/70123
8361 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
8362 be rematerialized.
8363 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
8364 Arguments swapped. All callers changed. Take reg_renumber into
8365 account, and Calculate and compare register ranges for hard regs.
8366
8367 2016-03-11 Jeff Law <law@redhat.com>
8368
8369 PR tree-optimization/70190
8370 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8371 Handle cases where we can not extract the taken edge, even though we
8372 found a constant value.
8373
8374 PR tree-optimization/64058
8375 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
8376 (num_coalesce_pairs): Move up earlier in file.
8377 (find_coalesce_pair): Initialize the INDEX field for each pair
8378 discovered.
8379 (compare_pairs): No longer sort on the elements in each pair.
8380 Instead break ties with the index of the coalesce pair.
8381
8382 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8383
8384 PR target/70002
8385 * config/aarch64/aarch64-protos.h
8386 (aarch64_save_restore_target_globals): New prototype.
8387 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
8388 Call the above when popping pragma.
8389 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
8390 New function.
8391 (aarch64_set_current_function): Rewrite using the above.
8392
8393 2016-03-11 Jakub Jelinek <jakub@redhat.com>
8394
8395 PR tree-optimization/70177
8396 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
8397 (extract_ops_from_tree): ... this. In the 2 argument
8398 overload remove _1 suffix.
8399 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
8400 (extract_ops_from_tree): ... this.
8401 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
8402 Adjust callers.
8403 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8404 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
8405 extract_ops_from_tree instead of 2 operand one.
8406
8407 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
8408
8409 PR tree-optimization/70013
8410 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
8411 for constant-pool entries.
8412
8413 2016-03-11 Jakub Jelinek <jakub@redhat.com>
8414
8415 PR rtl-optimization/70174
8416 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
8417 followed by gen_lowpart on force_reg instead of just gen_lowpart.
8418
8419 PR tree-optimization/70169
8420 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
8421 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
8422 for unknown codes.
8423
8424 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8425 Jakub Jelinek <jakub@redhat.com>
8426
8427 PR target/70160
8428 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
8429 of uninitialized values.
8430
8431 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8432
8433 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
8434 define_expand.
8435 ("*trunctddd2"): New pattern definition.
8436 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
8437 TD->DD truncation.
8438
8439 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8440
8441 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
8442 definitions for BFP and DFP rounding modes.
8443 ("fixuns_truncdddi2", "fixuns_trunctddi2")
8444 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
8445 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
8446 ("fix_trunctf<mode>2"): Use the new constants instead of magic
8447 numbers.
8448
8449 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8450
8451 * config/s390/constraints.md: Adjust comment.
8452 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
8453 s390_decompose_addrstyle_without_index.
8454 * config/s390/predicates.md (shift_count_or_setmem_operand):
8455 Rename to setmem_operand.
8456 * config/s390/s390-protos.h
8457 (s390_decompose_shift_count): Rename to
8458 s390_decompose_addrstyle_without_index.
8459 * config/s390/s390.c (s390_decompose_shift_count)
8460 (s390_mem_constraint, print_shift_count_operand)
8461 (print_operand_address, print_operand): Rename
8462 s390_decompose_shift_count to
8463 s390_decompose_addrstyle_without_index and rename
8464 print_shift_count_operand to print_addrstyle_operand troughout the
8465 file.
8466 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
8467 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
8468 Rename shift_count_or_setmem_operand to setmem_operand.
8469 * config/s390/vx-builtins.md ("vec_insert<mode>")
8470 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
8471 nonmemory_operand.
8472
8473 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8474
8475 PR target/70168
8476 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8477 Handle overlapping retval and newval.
8478
8479 2016-03-10 Nick Clifton <nickc@redhat.com>
8480
8481 PR target/7044
8482 * config/aarch64/aarch64.c
8483 (aarch64_override_options_after_change_1): When forcing
8484 flag_omit_frame_pointer to be true, use a special value that can
8485 be detected if this function is called again, thus preventing
8486 flag_omit_leaf_frame_pointer from being forced to be false.
8487
8488 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8489
8490 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8491 Set x_flag_omit_leaf_frame_pointer when handling
8492 -momit-leaf-frame-pointer.
8493
8494 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8495
8496 PR lto/69589
8497 * cgraph.c (cgraph_node::dump): Dump split_part and
8498 indirect_call_target.
8499 * cgraph.h (cgraph_node): Add indirect_call_target flag.
8500 * ipa.c (has_addr_references_p): Cleanup.
8501 (is_indirect_call_target_p): New.
8502 (walk_polymorphic_call_targets): Do not mark virtuals that may be
8503 called indirectly as local.
8504 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
8505
8506 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8507
8508 PR ipa/69630
8509 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8510 on cxa_pure_virtual.
8511
8512 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8513
8514 PR lto/69589
8515 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
8516
8517 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8518
8519 PR lto/69589
8520 * tree.c (need_assembler_name_p): Only record main variant type names.
8521
8522 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8523
8524 PR target/70113.
8525 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
8526 Always define to 0 or 1.
8527 (TARGET_FIX_ERR_A53_843419): New macro.
8528 * config/aarch64/aarch64-elf-raw.h
8529 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
8530 * config/aarch64/aarch64-linux.h: Likewise.
8531 * config/aarch64/aarch64.c
8532 (aarch64_override_options_after_change_1): Do not default
8533 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
8534 843419 is on.
8535 (aarch64_attributes): Handle fix-cortex-a53-843419.
8536 (aarch64_can_inline_p): Likewise.
8537 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
8538
8539 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
8540 Jakub Jelinek <jakub@redhat.com>
8541
8542 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
8543 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
8544 DECL_COMMONS if flag_unconstrained_commons is set.
8545 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8546 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
8547 (funconstrained-commons): Document.
8548
8549 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8550
8551 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
8552 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
8553
8554 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
8555
8556 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
8557 has a proper number of elements.
8558
8559 2016-03-10 Alan Modra <amodra@gmail.com>
8560
8561 PR rtl-optimization/69195
8562 PR rtl-optimization/47992
8563 * ira.c (recorded_label_ref): Delete.
8564 (update_equiv_regs): Return void.
8565 (indirect_jump_optimize): New function.
8566 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
8567 before regstat_compute_ri. Don't rebuild_jump_labels here.
8568 Delete update_regstat.
8569
8570 2016-03-10 Richard Biener <rguenther@suse.de>
8571
8572 PR tree-optimization/70128
8573 * tree-ssa-structalias.c (set_uids_in_ptset): Set
8574 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
8575
8576 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8577
8578 PR tree-optimization/70152
8579 * tree-sra.c (replace_removed_params_ssa_names): Copy over
8580 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
8581
8582 PR target/70086
8583 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
8584 instead of gen_sse2_loadlpd.
8585 * config/i386/sse.md (*vec_concatv2df): Rename to...
8586 (vec_concatv2df): ... this.
8587
8588 PR tree-optimization/70127
8589 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
8590
8591 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8592
8593 PR c/68473
8594 PR c++/70105
8595 * diagnostic-show-locus.c (compatible_locations_p): New function.
8596 (layout::layout): Sanitize ranges using compatible_locations_p.
8597
8598 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8599
8600 PR c/68473
8601 PR c++/70105
8602 * diagnostic-show-locus.c (layout_range::layout_range): Replace
8603 location_range param with three const expanded_locations * and a
8604 bool.
8605 (layout::layout): Replace call to
8606 rich_location::lazily_expand_location with get_expanded_location.
8607 Extract the range and perform location expansion here, passing
8608 the results to the layout_range ctor.
8609 * diagnostic.c (source_range::debug): Delete.
8610 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
8611 of rich_location::get_expanded_location.
8612 * gcc-rich-location.c (get_range_for_expr): Delete.
8613 (gcc_rich_location::add_expr): Reimplement to avoid the
8614 rich_location::add_range overload that took a location_range,
8615 passing a location_t instead.
8616
8617 2016-03-09 Richard Biener <rguenther@suse.de>
8618 Jakub Jelinek <jakub@redhat.com>
8619
8620 PR tree-optimization/70138
8621 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8622 Also skip vect_double_reduction_def.
8623
8624 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8625
8626 PR target/70049
8627 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
8628 if the operand is "m".
8629
8630 2016-03-09 Nathan Sidwell <nathan@acm.org>
8631
8632 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
8633
8634 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8635
8636 * config/i386/i386.c (processor_target_table): Fix cost table
8637 intialization order for znver1.
8638
8639 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8640
8641 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
8642 - becuase -> because.
8643 * ipa-reference.c (ignore_module_statics): Likewise.
8644 * cgraph.c (cgraph_node::get_body): Likewise.
8645 * ipa-inline.c (early_inliner): Likewise.
8646 * ipa-devirt.c (types_same_for_odr): Likewise.
8647 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8648 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
8649
8650 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8651
8652 * tree-ssa-math-opts.c: Fix typo in comment.
8653
8654 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8655
8656 PR target/70110
8657 * config/i386/i386.c (scalar_chain::make_vector_copies,
8658 scalar_chain::convert_reg): Call end_sequence in between
8659 get_insns and emit_conversion_insns rather than after both
8660 calls.
8661
8662 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
8663
8664 PR target/70064
8665 * config/i386/i386.h (machine_function): Add
8666 pc_thunk_call_expanded flag.
8667 (ix86_pc_thunk_call_expanded): New define.
8668 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
8669 (*set_got): Rename insn pattern from set_got.
8670 (*set_got_labelled): Rename inst pattern from set_got_labelled.
8671 * config/i386/i386.c (ix86_compute_frame_layout): Use
8672 ix86_pc_thunk_call_expanded to prevent red-zone.
8673
8674 2016-03-07 Martin Jambor <mjambor@suse.cz>
8675
8676 * hsa.h (hsa_get_ctor_statements): Declare.
8677 (hsa_get_dtor_statements): Likewise.
8678 (hsa_get_kernel_dispatch_type): Likewise.
8679 * hsa.c (hsa_get_ctor_statements): New function.
8680 (hsa_get_dtor_statements): Likewise.
8681 (hsa_get_kernel_dispatch_type): Likewise.
8682 * hsa-brig.c (hsa_cdtor_statements): Removed.
8683 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
8684 hsa_get_dtor_statements.
8685 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
8686 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
8687
8688 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
8689
8690 * config/arm/arm-cores.def (cortex-r8): New.
8691 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
8692 * config/arm/arm-tune.md: Likewise.
8693 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
8694
8695 2016-03-07 Martin Sebor <msebor@redhat.com>
8696
8697 PR rtl-optimization/19705
8698 * doc/invoke.texi (Options That Control Optimization): Clarify
8699 -fno-branch-count-reg.
8700
8701 2016-02-26 Richard Biener <rguenther@suse.de>
8702 Jeff Law <law@redhat.com>
8703
8704 PR tree-optimization/69740
8705 * cfghooks.c (remove_edge): Request loop fixups if we delete
8706 an edge that might turn an irreducible loop into a natural
8707 loop.
8708 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
8709 Move after definition of loops_state_clear.
8710
8711 2016-03-07 Bin Cheng <bin.cheng@arm.com>
8712
8713 PR rtl-optimization/69052
8714 * rtlanal.c (commutative_operand_precedence): Set higher precedence
8715 to CONST_WIDE_INT.
8716
8717 2016-03-07 Tom de Vries <tom@codesourcery.com>
8718
8719 PR tree-optimization/70116
8720 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
8721 is_tm_ending stmts and ubsan/asan internal functions.
8722 (find_duplicate): Use it. Don't test is_tm_ending here.
8723
8724 2016-03-07 Richard Biener <rguenther@suse.de>
8725
8726 PR tree-optimization/70115
8727 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
8728 (propagate_constants_for_unrolling): Use replace_uses_by.
8729
8730 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
8731
8732 PR middle-end/69916
8733 * omp-low.c (struct oacc_loop): Add ifns.
8734 (new_oacc_loop_raw): Initialize it.
8735 (finish_oacc_loop): Clear mask & flags if no ifns.
8736 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
8737 (oacc_loop_xform_loop): Add ifns arg & adjust.
8738 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
8739
8740 2016-03-07 Richard Henderson <rth@redhat.com>
8741
8742 PR rtl-opt/70061
8743 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
8744 (insert_value_copy_on_edge): Likewise.
8745
8746 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8747
8748 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
8749
8750 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8751
8752 PR target/62281
8753 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
8754
8755 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8756
8757 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
8758
8759 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8760
8761 Fix sseimul type attribute.
8762 * config/i386/znver1.md
8763 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
8764 znver1_sseimul_avx256_load) : Fix the type attribute.
8765 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
8766 pipe usage and latency.
8767
8768 2016-03-05 Jakub Jelinek <jakub@redhat.com>
8769
8770 PR c++/70084
8771 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
8772 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
8773 to the right type.
8774
8775 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8776
8777 PR c/69973
8778 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
8779
8780 PR rtl-optimization/69941
8781 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
8782 the reg share its mode.
8783
8784 2016-03-04 Jeff Law <law@redhat.com>
8785
8786 PR tree-optimization/69196
8787 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8788 If the both SSA_NAMEs are anonymous, then consider them unassociated
8789 and include the PHI in the statement count.
8790
8791 2016-03-05 Tom de Vries <tom@codesourcery.com>
8792
8793 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
8794 construct in oacc routine. Check for oacc region in oacc routine.
8795
8796 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8797
8798 PR target/70062
8799 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
8800 2016-02-22 changes, instead don't recurse if RECUR is already true.
8801 Don't change *dynamic_check if RECUR. Adjust recursive caller
8802 to pass true to the new argument.
8803 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
8804
8805 PR target/70059
8806 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8807 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
8808 fixes.
8809 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
8810
8811 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8812
8813 PR rtl-optimization/57676
8814 * lra-assigns.c (lra_assign): Guard test for maximum iterations
8815 with flag_checking.
8816
8817 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
8818
8819 * tree-vect-patterns.c (search_type_for_mask): Handle
8820 comparison of booleans.
8821
8822 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8823
8824 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
8825 Fix @xref usage.
8826
8827 PR debug/69947
8828 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
8829 all other ops that have dw_val_class_die_ref operands,
8830 and DW_OP_GNU_entry_value.
8831
8832 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8833
8834 PR rtl-optimization/69904
8835 * config/arm/arm.c (arm_cannot_copy_insn_p):
8836 Return true for load-exclusive instructions.
8837
8838 2016-03-03 Jakub Jelinek <jakub@redhat.com>
8839
8840 PR target/70021
8841 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
8842 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
8843 the pattern no matter if it is used just by non-pattern, pattern
8844 or mix thereof.
8845 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
8846 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8847 oprnd1 def_stmt is in pattern, don't look through it.
8848
8849 2016-03-03 Marek Polacek <polacek@redhat.com>
8850
8851 PR middle-end/70050
8852 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
8853
8854 2016-03-03 Martin Liska <mliska@suse.cz>
8855
8856 PR tree-optimization/70043
8857 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
8858 previous statement if we see a debug statement.
8859
8860 2016-03-03 Richard Biener <rguenther@suse.de>
8861
8862 PR tree-optimization/55936
8863 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
8864 parameter and guard unsafe equivalence use.
8865 (vrp_evaluate_conditional_warnv_with_ops): Always use
8866 safe equivalences but not via the quadratic compare_names
8867 helper.
8868
8869 2016-03-03 Michael Collison <michael.collison@linaro.org>
8870
8871 PR target/70014
8872 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
8873 for operand 1 to s_register_operand. Change predicate for operand
8874 2 to arm_not_immediate_operand.
8875
8876 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
8877
8878 * doc/tm.texi: Regenerated.
8879
8880 2016-03-02 Richard Henderson <rth@redhat.com>
8881
8882 PR rtl-opt/67145
8883 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
8884 simplification when all args are positive non-fixed registers.
8885
8886 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8887
8888 * target.def (lra_p): Specify that new ports should use LRA.
8889
8890 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8891
8892 PR libgomp/69555
8893 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
8894 gimplify_type_sizes the type they refer to.
8895 (omp_notice_variable): Handle reference vars to VLAs.
8896 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
8897 reference to VLA decls in the second pass instead of first pass.
8898
8899 2016-03-02 Tom de Vries <tom@codesourcery.com>
8900
8901 PR tree-optimization/68659
8902 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
8903 new_expr == NULL_TREE.
8904 (get_new_name): Handle ADDR_EXPR.
8905
8906 2016-03-02 Bin Cheng <bin.cheng@arm.com>
8907
8908 PR rtl-optimization/69052
8909 * loop-invariant.c (canonicalize_address): New function.
8910 (inv_can_prop_to_addr_use): Check validity of address expression
8911 which is canonicalized by above function.
8912
8913 2016-03-02 Alan Modra <amodra@gmail.com>
8914
8915 PR ipa/69990
8916 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
8917 larger alignment.
8918
8919 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8920
8921 PR target/70028
8922 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
8923 (*movhi_internal): Put mask moves from and to memory separately
8924 from moves from/to GPRs.
8925
8926 2016-03-02 Richard Biener <rguenther@suse.de>
8927
8928 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
8929 GENERIC expressions in GIMPLE.
8930
8931 2016-03-02 Richard Biener <rguenther@suse.de>
8932
8933 * config/i386/i386.c (type_natural_mode): Fix typo.
8934
8935 2016-03-02 Nick Clifton <nickc@redhat.com>
8936
8937 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
8938
8939 2016-03-02 Richard Biener <rguenther@suse.de>
8940 Uros Bizjak <ubizjak@gmail.com>
8941
8942 PR target/67278
8943 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
8944
8945 2016-03-02 Richard Biener <rguenther@suse.de>
8946
8947 PR middle-end/67278
8948 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
8949
8950 2016-03-02 Marek Polacek <polacek@redhat.com>
8951
8952 PR c/67854
8953 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
8954 "is promoted to" warning.
8955
8956 2016-03-01 DJ Delorie <dj@redhat.com>
8957
8958 * config.gcc: Deprecate mep-*.
8959
8960 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
8961
8962 PR middle-end/70025
8963 * lra-constraints.c (regno_val_use_in): New.
8964 (match_reload): Use it instead of regno_use_in.
8965
8966 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8967
8968 PR rtl-optimization/70007
8969 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
8970 references present in REG_EQUAL notes attached to non-SET patterns.
8971
8972 2016-03-01 Jeff Law <law@redhat.com>
8973
8974 PR tree-optimization/69196
8975 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8976 Appropriately clamp the number of statements to copy when the
8977 thread path does not traverse a loop backedge.
8978
8979 PR tree-optimization/69196
8980 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8981 Do count some PHIs in the thread path against the insn count. Decrease
8982 final statement count by one as the control statement in the last
8983 block will get removed. Remove special cased code for handling PHIs
8984 in the last block.
8985
8986 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
8987
8988 PR target/70027
8989 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
8990 asm dialect alternatives to explicit GOTPCREL calls.
8991
8992 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8993
8994 PR ada/70017
8995 * ira.c (do_reload): Issue warning for generic stack checking here...
8996 * reload1.c (reload): ...instead of here and streamline it.
8997
8998 2016-03-01 Nick Clifton <nickc@redhat.com>
8999
9000 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
9001
9002 2016-03-01 Richard Biener <rguenther@suse.de>
9003
9004 PR tree-optimization/69983
9005 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
9006 types and fall back to operand_equal_p.
9007
9008 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9009
9010 Revert
9011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9012
9013 * config/s390/constraints.md ("jm8"): New constraint.
9014 * config/s390/predicates.md ("const_int_8bitset_operand"): New
9015 predicate.
9016 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
9017 into ...
9018 ("*setmem_long<setmem_and>"): New pattern.
9019 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
9020 into ...
9021 ("*setmem_long_31z<setmem_and>"): New pattern.
9022 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
9023 New substitution rules with the required attributes.
9024
9025
9026 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9027
9028 Revert
9029 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9030
9031 * gensupport.c (process_substs_on_one_elem): Split loop to
9032 complete mark_operands_used_in_match_dup on all expressions in the
9033 vector first.
9034 (adjust_operands_numbers): Inline into process_substs_on_one_elem
9035 and remove function.
9036
9037 2016-03-01 Richard Biener <rguenther@suse.de>
9038
9039 PR middle-end/70022
9040 * fold-const.c (fold_indirect_ref_1): Fix range checking for
9041 vector BIT_FIELD_REF extract.
9042
9043 2016-03-01 Richard Biener <rguenther@suse.de>
9044
9045 PR tree-optimization/69994
9046 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
9047
9048 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
9049
9050 PR tree-optimization/69956
9051 * tree-vect-stmts.c (supportable_widening_operation): Support
9052 multi-step conversion of boolean vectors.
9053 (supportable_narrowing_operation): Likewise.
9054
9055 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9056
9057 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
9058 anymore.
9059
9060 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9061
9062 * config/s390/subst.md (DSI_VI): New mode iterator.
9063 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
9064 * config/s390/vector.md ("vec_set<mode>"): Move expander before
9065 the insn definition.
9066 ("*vec_set<mode>"): Change predicate and add alternative to
9067 support only either register or const_int operands as element
9068 selector.
9069 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
9070 operands.
9071 ("vec_extract<mode>"): New expander.
9072 ("*vec_extract<mode>"): New insn definition supporting reg and
9073 const_int element selectors.
9074 ("*vec_extract<mode>_plus"): New insn definition supporting
9075 reg+const_int element selectors.
9076 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
9077 following expander+insn definition.
9078 ("<vec_shifts_name><mode>3"): New expander.
9079 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
9080
9081 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9082
9083 * config/s390/s390.md ("*tabort_1"): Change predicate to
9084 nonmemory_operand. Add a second alternative to cover
9085 register as well as const int operands.
9086 ("*tabort_1_plus"): New pattern definition.
9087
9088 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9089
9090 * config/s390/s390.md ("*ashrdi3_cc_31")
9091 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
9092 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
9093 Merge insn definitions into ...
9094 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9095 New pattern definition.
9096 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
9097 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
9098 ("*ashr<mode>3_and"): Merge insn definitions into ...
9099 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9100 New pattern definition.
9101 * config/s390/subst.md ("addr_style_op_cc_subst")
9102 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
9103 substitutions patterns plus attributes.
9104 Add ashiftrt to SUBST iterator.
9105
9106 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9107
9108 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
9109 op2 to nonmemory_operand.
9110 ("*<shift>di3_31", "*<shift>di3_31_and"):
9111 Merge into single pattern definition ...
9112 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
9113 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
9114 pattern definition ...
9115 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
9116 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
9117 iterator.
9118
9119 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9120
9121 * config/s390/predicates.md (const_int_6bitset_operand): New
9122 predicate.
9123 * config/s390/s390.md: Include subst.md.
9124 ("rotl<mode>3"): New expander.
9125 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
9126 ...
9127 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
9128 * config/s390/subst.md: New file.
9129
9130 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9131
9132 * config/s390/s390.md ("op_type", "atype", "length" attributes):
9133 Remove RRR type. It doesn't really exist.
9134 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
9135 attributes.
9136 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
9137 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
9138 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
9139 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
9140 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
9141 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
9142 `enabled' attribute.
9143
9144 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9145
9146 * gensupport.c (process_substs_on_one_elem): Split loop to
9147 complete mark_operands_used_in_match_dup on all expressions in the
9148 vector first.
9149 (adjust_operands_numbers): Inline into process_substs_on_one_elem
9150 and remove function.
9151
9152 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
9153
9154 PR target/69706
9155 * config/sparc/sparc.c (NWORDS_UP): Rename to...
9156 (CEIL_NWORDS): ...this. Use CEIL macro.
9157 (compute_fp_layout): Adjust to above renaming.
9158 (function_arg_union_value): Likewise.
9159 (sparc_arg_partial_bytes): Likewise.
9160 (sparc_function_arg_advance): Likewise.
9161
9162 2016-02-29 Jeff Law <law@redhat.com>
9163
9164 PR tree-optimization/70005
9165 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
9166 where an object with a boolean range is compared against a value
9167 outside [0..1].
9168
9169 PR tree-optimization/69999
9170 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
9171 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
9172 loop cleanups.
9173
9174 2016-02-29 Richard Biener <rguenther@suse.de>
9175
9176 PR tree-optimization/69994
9177 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
9178 (get_unary_op): Look through nop conversions.
9179 (ops_equal_values_p): New function, look for equality diregarding
9180 nop conversions.
9181 (eliminate_plus_minus_pair): Use ops_equal_values_p
9182 (repropagate_negates): Do not use get_unary_op here.
9183
9184 2016-02-29 Martin Liska <mliska@suse.cz>
9185
9186 * system.h: Poison ENABLE_CHECKING macro.
9187
9188 2016-02-29 Martin Liska <mliska@suse.cz>
9189
9190 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
9191 is presented in dump flags.
9192 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9193 (hsa_regalloc): Likewise.
9194
9195 2016-02-19 Richard Biener <rguenther@suse.de>
9196
9197 PR tree-optimization/69980
9198 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
9199 permutation of those we need to keep.
9200
9201 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
9202
9203 PR target/69706
9204 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
9205 (NWORDS_UP): ...this
9206 (init_cumulative_args): Minor tweaks.
9207 (sparc_promote_function_mode): Likewise.
9208 (scan_record_type): Delete.
9209 (traverse_record_type): New function template.
9210 (classify_data_t): New structure type.
9211 (classify_registers): New inline function.
9212 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
9213 exhausted. Instantiate traverse_record_type on classify_registers and
9214 deal with the case of a structure passed in slot #15 with no FP field
9215 in the first word.
9216 (assign_data_t): New structure type.
9217 (compute_int_layout): New static function.
9218 (compute_fp_layout): Likewise.
9219 (count_registers): New inline function.
9220 (assign_int_registers): New static function.
9221 (assign_fp_registers): Likewise.
9222 (assign_registers): New inline function.
9223 (function_arg_record_value_1): Delete.
9224 (function_arg_record_value_2): Likewise.
9225 (function_arg_record_value_3): Likewise.
9226 (function_arg_record_value): Adjust to above changes. Instantiate
9227 traverse_record_type on count_registers to first count the number of
9228 registers to be used and then on assign_registers to assign them.
9229 (function_arg_union_value): Adjust to above renaming.
9230 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
9231 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
9232 case of a structure passed in slot #15
9233 (sparc_function_arg_advance): Likewise.
9234 (function_arg_padding): Minor tweak.
9235
9236 2016-02-29 Richard Biener <rguenther@suse.de>
9237
9238 PR tree-optimization/69720
9239 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
9240 the adjustment_def path for possibly vectorized defs.
9241 (vect_create_epilog_for_reduction): Handle vectorized initial
9242 defs properly.
9243
9244 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
9245
9246 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
9247
9248 2016-02-27 Jeff Law <law@redhat.com>
9249
9250 Revert
9251 2016-02-26 Richard Biener <rguenther@suse.de>
9252 Jeff Law <law@redhat.com>
9253
9254 PR tree-optimization/69740
9255 * cfghooks.c (remove_edge): Request loop fixups if we delete
9256 an edge that might turn an irreducible loop into a natural
9257 loop.
9258
9259 2016-02-27 Jakub Jelinek <jakub@redhat.com>
9260
9261 PR rtl-optimization/69896
9262 * tree-vect-generic.c (get_compute_type): Avoid single element
9263 vector types.
9264
9265 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
9266
9267 Rename the AArch64 tuning option and related functions to enable the
9268 Newton series for the reciprocal square root to reflect its
9269 approximative characteristic.
9270
9271 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
9272 function to "aarch64_emit_approx_rsqrt".
9273 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
9274 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
9275 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
9276 (xgene1_tunings): Likewise.
9277 (use_rsqrt_p): Likewise.
9278 (aarch64_emit_swrsqrt): Use new function name.
9279 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
9280 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
9281 text explaining this option.
9282 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
9283
9284 2016-02-26 Jakub Jelinek <jakub@redhat.com>
9285
9286 PR target/69969
9287 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9288 complain about -mallow-movmisalign without -mvsx if
9289 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
9290
9291 2016-02-26 Joel Sherrill <joel@rtems.org>
9292
9293 * config.gcc: Add x86_64-*-rtems*.
9294 * config/i386/rtems-64.h: New file.
9295
9296 2016-02-26 Joel Sherrill <joel@rtems.org>
9297
9298 * config.gcc: Add aarch64-*-rtems*.
9299 * config/aarch64/rtems.h: New file.
9300
9301 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
9302
9303 PR target/69946
9304 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
9305 shift amount using %h. Add comment.
9306
9307 2016-02-26 Richard Biener <rguenther@suse.de>
9308 Jeff Law <law@redhat.com>
9309
9310 PR tree-optimization/69740
9311 * cfghooks.c (remove_edge): Request loop fixups if we delete
9312 an edge that might turn an irreducible loop into a natural
9313 loop.
9314
9315 2016-02-26 Martin Jambor <mjambor@suse.cz>
9316
9317 PR middle-end/69920
9318 * tree-sra.c (sra_modify_assign): Do not remove loads of
9319 uninitialized aggregates to SSA_NAMEs.
9320
9321 2016-02-26 Richard Henderson <rth@redhat.com>
9322
9323 PR target/69709
9324 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
9325 pseudo in case the target rtx matches the source of the left
9326 shift.
9327
9328 2016-02-26 Martin Jambor <mjambor@suse.cz>
9329
9330 PR hsa/69568
9331 * hsa.h (hsa_type_packed_p): Declare.
9332 * hsa.c (hsa_type_packed_p): New function.
9333 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
9334 loads.
9335 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
9336 * hsa-brig.c (emit_basic_insn): Likewise.
9337
9338 2016-02-26 Martin Jambor <mjambor@suse.cz>
9339
9340 pr hsa/69674
9341 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
9342 pointers.
9343 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
9344
9345 2016-02-26 Martin Jambor <mjambor@suse.cz>
9346
9347 * hsa.h (is_a_helper): New overload for hsa_op_immed for
9348 hsa_op_with_type operands.
9349 (hsa_unsigned_type_for_type): Declare.
9350 * hsa.c (hsa_unsigned_type_for_type): New function.
9351 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
9352 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
9353 the finalizer. Do not emit extra move.
9354
9355 2016-02-26 Martin Jambor <mjambor@suse.cz>
9356
9357 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
9358 atomic operations in private segment.
9359
9360 2016-02-26 Martin Jambor <mjambor@suse.cz>
9361
9362 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
9363 statements to wi->info. Also disallow omp simd constructs.
9364 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
9365 for not gridifying. Dump special string for omp_for.
9366
9367 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9368
9369 PR target/69245
9370 * config/aarch64/aarch64.c (aarch64_set_current_function):
9371 Save/restore target globals when switching to
9372 target_option_default_node.
9373
9374 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9375
9376 PR target/69613
9377 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
9378 Return 0 if !SHIFT_COUNT_TRUNCATED.
9379
9380 2016-02-26 Jakub Jelinek <jakub@redhat.com>
9381 Eric Botcazou <ebotcazou@adacore.com>
9382
9383 PR rtl-optimization/69891
9384 * dse.c (scan_insn): If we can't figure out memset arguments
9385 or they are non-constant, call clear_rhs_from_active_local_stores.
9386
9387 2016-02-26 Martin Liska <mliska@suse.cz>
9388
9389 * doc/extend.texi: Mention clog10, clog10f an clog10l
9390 in Builtins section.
9391
9392 2016-02-26 Martin Liska <mliska@suse.cz>
9393
9394 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
9395 CHECKING_P.
9396 (resolve_args_picking_1): Likewise.
9397 * dwarf2out.h (struct GTY): Likewise.
9398
9399 2016-02-26 Martin Liska <mliska@suse.cz>
9400
9401 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
9402 with flag_checking.
9403 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9404
9405 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
9406 Martin Liska <mliska@suse.cz>
9407
9408 * doc/install.texi: Mention --enable-valgrind-annotations.
9409
9410 2016-02-26 Richard Biener <rguenther@suse.de>
9411
9412 PR tree-optimization/69551
9413 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
9414 looking through aliases adjust DECL_PT_UID to refer to the
9415 ultimate alias target.
9416
9417 2016-02-25 Martin Liska <mliska@suse.cz>
9418
9419 PR middle-end/69919
9420 * alloc-pool.c (after_memory_report): New variable.
9421 * alloc-pool.h (base_pool_allocator ::release): Do not use
9422 the infrastructure if after_memory_report.
9423 * toplev.c (toplev::main): Mark after memory report.
9424
9425 2016-02-25 Richard Biener <rguenther@suse.de>
9426
9427 PR tree-optimization/48795
9428 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
9429
9430 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
9431
9432 PR driver/68463
9433 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
9434 offloading is enabled and -fopenacc or -fopenmp is specified.
9435 (CRTOFFLOADEND): Likewise.
9436 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
9437 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
9438 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
9439 (offload_objects_file_name): New static var.
9440 (tool_cleanup): Remove offload_objects_file_name file.
9441 (find_offloadbeginend): Replace with ...
9442 (find_crtoffloadtable): ... this.
9443 (run_gcc): Remove offload_argc and offload_argv.
9444 Get offload_objects_file_name from -foffload-objects=... option.
9445 Read names of object files with offload from this file, pass them to
9446 compile_images_for_offload_targets. Don't call find_offloadbeginend and
9447 don't pass offloadbegin and offloadend to the linker. Don't pass
9448 offload non-LTO files to the linker, because now they're not claimed.
9449
9450 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
9451
9452 PR ipa/69630
9453 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
9454 on builtin_unreachable.
9455
9456 2016-02-25 Jakub Jelinek <jakub@redhat.com>
9457
9458 PR rtl-optimization/69896
9459 * regcprop.c: Include cfgrtl.h.
9460 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
9461 than remembered mode, either delete it (if noop_move_p), or
9462 treat like copy_p but not noop_p instruction.
9463
9464 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR debug/69705
9467 * dwarf2out.c (gen_variable_die): Work around buggy LTO
9468 - allow NULL decl for Fortran DW_TAG_common_block variables.
9469
9470 2016-02-24 Jason Merrill <jason@redhat.com>
9471
9472 * common.opt (flifetime-dse): Add -flifetime-dse=1.
9473
9474 2016-02-24 Richard Biener <rguenther@suse.de>
9475 Jakub Jelinek <jakub@redhat.com>
9476
9477 PR middle-end/69760
9478 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
9479 conditionally executed ops to well-defined overflow behavior.
9480
9481 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9482
9483 PR middle-end/69915
9484 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
9485 elements.
9486
9487 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9488
9489 PR rtl-optimization/69886
9490 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
9491 argument. Use it when checking validity of set instructions.
9492 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
9493 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
9494 callsite.
9495 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
9496 * store-motion.c (find_moveable_store): Update
9497 can_assign_to_reg_without_clobbers_p callsite.
9498
9499 2016-02-24 Richard Biener <rguenther@suse.de>
9500
9501 PR middle-end/68963
9502 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
9503 bogus check.
9504 (record_nonwrapping_iv): Do not fall back to the low/high bound
9505 for non-constant IV bases if the stmt is not always executed.
9506
9507 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9508
9509 * config/arm/arm-cores.def (cortex-a32): New entry.
9510 * config/arm/arm-tables.opt: Regenerate.
9511 * config/arm/arm-tune.md: Regenerate.
9512 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
9513 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
9514 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
9515 for -mcpu and -mtune.
9516
9517 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9518
9519 PR target/69875
9520 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
9521 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
9522 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
9523 (atomic_loaddi_1): Delete.
9524 (atomic_loaddi): Rewrite expander using the above changes.
9525
9526 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9527
9528 PR c/69918
9529 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
9530 2 to 3.
9531
9532 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9533 Richard Biener <rguenth@suse.de>
9534
9535 PR middle-end/69909
9536 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
9537 set_mem_attributes if tem is SSA_NAME which got expanded
9538 as a MEM.
9539
9540 2016-02-24 Richard Biener <rguenther@suse.de>
9541
9542 PR tree-optimization/69907
9543 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
9544 end of permutations for BB vectorization.
9545
9546 2016-02-24 Christian Bruel <christian.bruel@st.com>
9547
9548 * config/arm/arm-c.c (arm_option_override): Initialize
9549 target_option_current_node.
9550 * config/arm/arm.c (arm_pragma_target_parse): Replace
9551 build_target_option_node call by target_option_current_node.
9552 Set target_option_current_node.
9553 Fix comments.
9554
9555 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
9556
9557 PR target/69810
9558 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
9559 define_insn_and_split to define_insn.
9560 (zero_extendqi<mode>2_dot2): Same.
9561 (extendqi<mode>2_dot): Same.
9562 (extendqi<mode>2_dot2): Same.
9563
9564 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9565
9566 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
9567 and add bypass for AES{D,E} and AESMC pairs.
9568 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
9569 and AESMC pairs.
9570
9571 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9572
9573 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
9574 series for reciprocal square root in Exynos M1.
9575
9576 2016-02-23 Martin Sebor <msebor@redhat.com>
9577
9578 PR c/69759
9579 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
9580 __builtin_alloca_with_align.
9581
9582 2016-02-23 Richard Henderson <rth@redhat.com>
9583
9584 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
9585 (ix86_register_pragmas): Remove __seg_tls.
9586 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
9587 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
9588 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
9589 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
9590 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
9591 * doc/extend.texi (__seg_tls): Remove item.
9592
9593 2016-02-23 Richard Biener <rguenther@suse.de>
9594
9595 * alloc-pool.h (struct allocation_object): Make id member
9596 conditional on CHECKING_P again.
9597 (get_instance): Adjust.
9598 (base_pool_allocator): Likewise.
9599
9600 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
9601
9602 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
9603 (parallelize_loops): In OpenACC kernels mode, set n_threads to
9604 zero.
9605 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
9606 flag_openacc.
9607 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9608
9609 2016-02-23 Richard Biener <rguenther@suse.de>
9610
9611 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
9612 * bitmap.h (struct bitmap_usage): Likewise.
9613 (bitmap_move): Declare.
9614 * bitmap.c (register_overhead): Take size_t argument.
9615 (bitmap_move): New function.
9616 * df-problems.c (df_rd_transfer_function): Use bitmap_move
9617 to properly account overhead.
9618 * tree.c (free_node): Use tree_size.
9619
9620 2016-02-23 Jakub Jelinek <jakub@redhat.com>
9621
9622 PR c++/69902
9623 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
9624 when inverting comparison.
9625
9626 PR c/69900
9627 * common.opt (Wunreachable-code): Add Warning flag.
9628
9629 2016-02-23 Mark Wielaard <mjw@redhat.com>
9630 Jakub Jelinek <jakub@redhat.com>
9631
9632 PR c/69911
9633 * cgraphunit.c (check_global_declaration): Check main_input_filename
9634 and DECL_SOURCE_FILE are not NULL.
9635
9636 2016-02-23 Martin Jambor <mjambor@suse.cz>
9637
9638 PR tree-optimization/69666
9639 * tree-sra.c (sra_modify_assign): Do not attempt to create
9640 default_def replacements for unscalarizable regions.
9641
9642 2016-02-20 Mark Wielaard <mjw@redhat.com>
9643
9644 PR c/28901
9645 * cgraphunit.c (check_global_declaration): Check level of
9646 warn_unused_const_variable and main_input_filename.
9647 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
9648 (-Wunused-variable): For C implies -Wunused-const-variable=1.
9649 (-Wunused-const-variable): Explain levels 1 and 2.
9650
9651 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9652
9653 PR target/69888
9654 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
9655 identical arguments. Formatting and spelling fixes.
9656
9657 PR target/69885
9658 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
9659 be specified.
9660
9661 PR target/69894
9662 PR target/69895
9663 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
9664 and m68k-devices.def.
9665 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
9666 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
9667
9668 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
9669
9670 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
9671 and HImode registers.
9672
9673 2016-02-22 Richard Biener <rguenther@suse.de>
9674
9675 PR tree-optimization/69882
9676 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
9677 preserve permutations present because of gaps.
9678 (vect_supported_load_permutation_p): Always continue checking
9679 permutations after vect_attempt_slp_rearrange_stmts.
9680
9681 2016-02-22 Bin Cheng <bin.cheng@arm.com>
9682
9683 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
9684 min_profitable_estimate, rather than min_profitable_iters.
9685
9686 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9687
9688 PR target/69885
9689 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
9690 SImode for last match_operand.
9691
9692 2016-02-22 Martin Liska <mliska@suse.cz>
9693
9694 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
9695 return bitsize - 1 as the return value.
9696
9697 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
9698
9699 PR target/69806
9700 PR target/54089
9701 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
9702 Handle negative shift counts.
9703 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
9704 force_reg on the shift constant.
9705 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
9706 (lshrsi3_d): Handle negative shift counts.
9707
9708 2016-02-22 Richard Biener <rguenther@suse.de>
9709 Tom de Vries <tom@codesourcery.com>
9710
9711 * graph.c: Include dumpfile.h.
9712 (print_graph_cfg): Split into three overloads.
9713 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
9714
9715 2016-02-22 Tom de Vries <tom@codesourcery.com>
9716
9717 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
9718 dump-fn.
9719
9720 2016-02-22 Richard Biener <rguenther@suse.de>
9721
9722 PR ipa/37448
9723 * ipa-inline-transform.c (inline_call): When not updating
9724 overall summaries adjust self size by the growth estimate.
9725 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
9726 hash-set, do not update overall summaries here. Renamed from ...
9727 (inline_to_all_callers): ... this which is now wrapping the
9728 above and performing delayed overall summary update.
9729 (early_inline_small_functions): Delay updating of the overall
9730 summary.
9731
9732 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9733
9734 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
9735 variable.
9736
9737 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9738
9739 PR driver/69805
9740 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
9741 :%* in %:gt() argument.
9742 (greater_than_spec_func): Adjust for expecting only numbers,
9743 if there are more than two numbers, compare the last two.
9744
9745 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
9746
9747 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
9748 -Wnarrowing with -std.
9749
9750 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9751
9752 PR c++/69851
9753 * expr.c (store_field): Don't use bit-field path if exp is
9754 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
9755 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
9756 and the assignment can be performed by bitwise copy. Formatting
9757 fix.
9758
9759 PR middle-end/69838
9760 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
9761 call copy_reg_eh_region_note_forward on before and/or after sequences
9762 and remove note from insn if it no longer can throw.
9763
9764 PR target/69820
9765 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
9766 if TARGET_AVX512BW.
9767
9768 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9769
9770 * config/s390/vector.md: Add missing commutative operand markers
9771 to the patterns which qualify for one.
9772 * config/s390/vx-builtins.md: Likewise.
9773
9774 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9775
9776 * config/s390/vector.md (VI, VI_QHS): Add single element vector
9777 types to mode iterators.
9778 (vec_double): ... and mode attribute.
9779 * config/s390/vx-builtins.md (non_vec_int): Likewise.
9780
9781 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9782
9783 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
9784 Change the predicate of op2 from nonimmediate to general and let
9785 reload fix it if necessary.
9786
9787 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9788
9789 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
9790
9791 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9792
9793 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
9794 mode.
9795
9796 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9797
9798 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
9799 * config/s390/s390.c (s390_expand_vec_movstr): New function.
9800 * config/s390/s390.md ("movstr<P:mode>"): Call
9801 s390_expand_vec_movstr.
9802
9803 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9804
9805 * config/s390/s390.md: Add missing output modifier for operand 1
9806 to print it as address properly.
9807
9808 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9809
9810 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
9811 * config/s390/2964.md: New file.
9812 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
9813 of insn grouping attributes depending on the CPU level.
9814 (s390_get_unit_mask): New function.
9815 (s390_sched_score): Remove the OOO from the scheduling macros.
9816 Add loop to calculate a score for the instruction mix.
9817 (s390_sched_reorder): Likewise plus improve debug output.
9818 (s390_sched_variable_issue): Rename macros as above. Calculate
9819 the unit distances after actually scheduling an insn. Improve
9820 debug output.
9821 (s390_sched_init): Clear last_scheduled_unit_distance array.
9822 * config/s390/s390.md: Include 2964.md.
9823
9824 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9825
9826 PR target/69671
9827 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
9828 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
9829 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
9830 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
9831 *avx512f_<code>v8div16qi2_mask_1): New insns.
9832
9833 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9834
9835 PR target/68404
9836 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
9837 2016-02-09 change.
9838
9839 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
9840 earlyclobber from target. Use wF constraint for fused memory
9841 address.
9842 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
9843
9844 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9845 Martin Liska <mliska@suse.cz>
9846
9847 PR sanitizer/69863
9848 * cfgexpand.c (asan_sanitize_stack_p): New function.
9849 (partition_stack_vars): Use the function.
9850 (expand_stack_vars): Likewise.
9851 (defer_stack_allocation): Likewise.
9852 (expand_used_vars): Likewise.
9853
9854 2016-02-18 Richard Biener <rguenther@suse.de>
9855
9856 PR middle-end/69553
9857 * fold-const.c (operand_equal_p): Properly compare offsets for
9858 IMAGPART_EXPR and ARRAY_REF.
9859
9860 2016-02-18 Nick Clifton <nickc@redhat.com>
9861
9862 PR target/62254
9863 PR target/69610
9864 * config/arm/arm.c (arm_option_override_internal): Disable
9865 interworking if the target does not support thumb instructions.
9866 (arm_reload_in_hi): Handle the case where a register to register
9867 move needs reloading because there is no simple pattern to handle
9868 it.
9869 (arm_reload_out_hi): Likewise.
9870
9871 2016-02-18 Richard Biener <rguenther@suse.de>
9872
9873 PR middle-end/69854
9874 * match.pd: Don't use fold_binary or fold_unary for folding
9875 constants.
9876
9877 2016-02-17 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR c++/69850
9880 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
9881 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
9882 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
9883 warn on gimple_no_warning_p statements.
9884
9885 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
9886
9887 * doc/extend.texi (C++ Attributes): Correct description of
9888 warn_unused type attribute.
9889
9890 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9891
9892 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
9893 correct instruction.
9894
9895 2016-02-17 Richard Biener <rguenther@suse.de>
9896
9897 PR rtl-optimization/69609
9898 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
9899 (find_traces_1_round): When ending a trace update cached priority
9900 of successors.
9901 (bb_to_key): Use cached priority when available.
9902 (copy_bb): Initialize cached priority.
9903 (reorder_basic_blocks_software_trace_cache): Likewise.
9904
9905 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9906
9907 PR target/69161
9908 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
9909 New predicate.
9910 (aarch64_comparison_operator): Break overly long line into two.
9911 (aarch64_comparison_operation): Likewise.
9912 * config/aarch64/aarch64.md (cstorecc4): Use
9913 aarch64_comparison_operator_mode instead of
9914 aarch64_comparison_operator.
9915 (cstore<mode>4): Likewise.
9916 (aarch64_cstore<mode>): Likewise.
9917 (*cstoresi_insn_uxtw): Likewise.
9918 (cstore<mode>_neg): Likewise.
9919 (*cstoresi_neg_uxtw): Likewise.
9920
9921 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9922
9923 PR target/69161
9924 * config/arm/predicates.md (arm_comparison_operator_mode):
9925 New predicate.
9926 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
9927 instead of arm_comparison_operator.
9928 (*mov_negscc): Likewise.
9929 (*mov_notscc): Likewise.
9930 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
9931 (*thumb2_mov_negscc): Likewise.
9932 (*thumb2_mov_negscc_strict_it): Likewise.
9933 (*thumb2_mov_notscc): Likewise.
9934 (*thumb2_mov_notscc_strict_it): Likewise.
9935
9936 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
9937
9938 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
9939 Add missing return.
9940
9941 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
9942
9943 * config/visium/visium.c (machine_libfunc_index): New enum.
9944 (machine_libfuncs): New structure.
9945 (visium_libfuncs): New static variable.
9946 (TARGET_INIT_LIBFUNCS): Define to...
9947 (visium_init_libfuncs): ...this. New function.
9948 (expand_block_move_4): Use the appropriate libfunc.
9949 (expand_block_move_2): Likewise.
9950 (expand_block_move_1): Likewise.
9951 (expand_block_set_4): Likewise.
9952 (expand_block_set_2): Likewise.
9953 (expand_block_set_1): Likewise.
9954 (visium_trampoline_init): Likewise.
9955
9956 2016-02-17 Nick Clifton <nickc@redhat.com>
9957
9958 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
9959 TI's devices.csv file as of March 2016.
9960
9961 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
9962
9963 PR Target/48344
9964 * opts-global.c (handle_common_deferred_options): Introduce and
9965 initialize two global variables to remember command-line options
9966 specifying a stack-limiting register.
9967 * opts.h: Add extern declarations of the two new global variables.
9968 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
9969 variable based on the values of the two new global variables.
9970
9971 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9972
9973 PR c/69835
9974 * common.opt (Wnonnull-compare): New warning.
9975 * doc/invoke.texi (-Wnonnull): Remove text about comparison
9976 of arguments against NULL.
9977 (-Wnonnull-compare): Document.
9978 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
9979 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
9980 * passes.def (pass_warn_nonnull_compare): Add.
9981 * gimple-ssa-nonnull-compare.c: New file.
9982
9983 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9984
9985 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
9986 AARCH64_EXTRA_TUNE_RECIP_SQRT.
9987
9988 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9989
9990 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
9991 reciprocal sqrt for -mlow-precision-recip-sqrt.
9992
9993 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9994 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9995
9996 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
9997 always use lane loads to construct non-constant vectors.
9998
9999 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
10000
10001 * config/aarch64/aarch64.md
10002 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
10003 constraints for operand 3.
10004 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
10005
10006 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10007 Richard Biener <rguenther@suse.de>
10008
10009 PR tree-optimization/69820
10010 * tree-vect-patterns.c (type_conversion_p): Return false if
10011 *orig_type is unsigned single precision or boolean.
10012 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
10013 Formatting fix.
10014
10015 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10016
10017 PR rtl-optimization/69764
10018 PR rtl-optimization/69771
10019 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
10020 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
10021
10022 2016-02-16 Richard Biener <rguenther@suse.de>
10023
10024 PR tree-optimization/69776
10025 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
10026 sets from caller.
10027 (indirect_refs_may_alias_p): Likewise.
10028 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
10029 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
10030 according to tbaa_p.
10031 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
10032 (optimize_stmt): For redundant store discovery do not allow tbaa.
10033
10034 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
10035
10036 PR tree-optimization/69714
10037 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
10038 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
10039
10040 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
10041
10042 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
10043 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
10044 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
10045 * config/arc/arc.c (arc_init): Check FPU options.
10046 (get_arc_condition_code): Handle new CC_FPU* modes.
10047 (arc_select_cc_mode): Likewise.
10048 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
10049 register pair only. Allow access for ARCv2 accumulator.
10050 (gen_compare_reg): Whenever we have FPU support use FPU compare
10051 instructions.
10052 (arc_reorg): Don't generate brcc insns when FPU compare
10053 instructions are involved.
10054 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
10055 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
10056 floating point emulation.
10057 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
10058 (REVERSE_CONDITION): Add new CC_FPU* modes.
10059 (TARGET_FP_SP_BASE): Define.
10060 (TARGET_FP_DP_BASE): Likewise.
10061 (TARGET_FP_SP_FUSED): Likewise.
10062 (TARGET_FP_DP_FUSED): Likewise.
10063 (TARGET_FP_SP_CONV): Likewise.
10064 (TARGET_FP_DP_CONV): Likewise.
10065 (TARGET_FP_SP_SQRT): Likewise.
10066 (TARGET_FP_DP_SQRT): Likewise.
10067 (TARGET_FP_DP_AX): Likewise.
10068 * config/arc/arc.md (ARCV2_ACC): New constant.
10069 (type): New fpu type attribute.
10070 (SDF): Conditional iterator.
10071 (cstore<mode>, cbranch<mode>): Change expand condition.
10072 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
10073 handles FPU/FPX cases as well.
10074 * config/arc/arc.opt (mfpu): New option.
10075 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
10076 Renamed.
10077 (adddf3, muldf3, subdf3): Removed.
10078 * config/arc/predicates.md (proper_comparison_operator): Recognize
10079 CC_FPU* modes.
10080 * config/arc/fpu.md: New file.
10081 * doc/invoke.texi (ARC Options): Document mfpu option.
10082
10083 2016-02-16 Richard Biener <rguenther@suse.de>
10084
10085 PR rtl-optimization/69291
10086 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
10087 noce_operand_ok check.
10088
10089 2016-02-16 Tom de Vries <tom@codesourcery.com>
10090
10091 PR lto/67709
10092 * omp-low.c (simd_clone_create): Remove call to
10093 symtab->call_cgraph_insertion_hooks.
10094
10095 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10096
10097 PR tree-optimization/69802
10098 * tree-ssa-reassoc.c (update_range_test): If op is
10099 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
10100 op == 1 test of precision 1 integral op, otherwise handle
10101 that case as op itself. Fix up formatting.
10102 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
10103 up formatting.
10104
10105 2016-02-16 Richard Biener <rguenther@suse.de>
10106
10107 PR tree-optimization/69586
10108 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
10109 types for conversion sources.
10110
10111 2016-02-16 Richard Biener <rguenther@suse.de>
10112
10113 PR middle-end/69801
10114 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
10115 mask OEP_ADDRESS_OF.
10116
10117 2016-02-16 Alan Modra <amodra@gmail.com>
10118
10119 PR target/68973
10120 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
10121 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
10122 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
10123 (p8_mtvsrwz): New.
10124 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
10125 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
10126 (p8_fmrgow_<mode>): Likewise.
10127 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
10128 changes.
10129 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
10130 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
10131 to use movdi_internal64. Remove op0_di.
10132 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
10133
10134 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
10135
10136 Add support for the FCCMP insn types
10137
10138 * config/aarch64/aarch64.md (fccmp): Change insn type.
10139 (fccmpe): Likewise.
10140 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
10141 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
10142 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
10143 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
10144 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
10145 * config/arm/types.md (fccmps): Add new insn type.
10146 (fccmpd): Likewise.
10147
10148 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
10149
10150 * alias.c (get_alias_set): Fix a typo in comment.
10151
10152 2016-02-15 Richard Biener <rguenther@suse.de>
10153
10154 PR tree-optimization/69595
10155 * match.pd: Complete range test simplification to true.
10156
10157 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
10158
10159 PR rtl-optimization/69648
10160 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
10161 pic_offset_table_rtx.
10162
10163 PR rtl-optimization/69752
10164 * ira.c (update_equiv_regs): When looking for more than a single SET,
10165 also take other side effects into account.
10166
10167 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
10168
10169 * config/s390/s390.c (s390_function_profiler): Add a new sequence
10170 for z900+ CPUs in 31-bit mode.
10171
10172 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
10173
10174 * common/config/s390/s390-common.c (s390_supports_split_stack):
10175 New function.
10176 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
10177 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
10178 * config/s390/s390.c (struct machine_function): New field
10179 split_stack_varargs_pointer.
10180 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
10181 in s390_emit_prologue.
10182 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
10183 vararg pointer.
10184 (morestack_ref): New global.
10185 (SPLIT_STACK_AVAILABLE): New macro.
10186 (s390_expand_split_stack_prologue): New function.
10187 (s390_live_on_entry): New function.
10188 (s390_va_start): Use split-stack vararg pointer if appropriate.
10189 (s390_asm_file_end): Emit the split-stack note sections.
10190 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
10191 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
10192 (UNSPECV_SPLIT_STACK_CALL): New unspec.
10193 (UNSPECV_SPLIT_STACK_DATA): New unspec.
10194 (split_stack_prologue): New expand.
10195 (split_stack_space_check): New expand.
10196 (split_stack_data): New insn.
10197 (split_stack_call): New expand.
10198 (split_stack_call_*): New insn.
10199 (split_stack_cond_call): New expand.
10200 (split_stack_cond_call_*): New insn.
10201
10202 2016-02-15 Richard Biener <rguenther@suse.de>
10203
10204 PR tree-optimization/69783
10205 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10206 Add trivially correct cases.
10207
10208 2016-02-15 Tom de Vries <tom@codesourcery.com>
10209
10210 PR lto/69655
10211 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
10212 do_force_output.
10213 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
10214
10215 2016-02-15 Richard Biener <rguenther@suse.de>
10216
10217 PR tree-optimization/69776
10218 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10219 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
10220 indicate whether we can use TBAA to disambiguate against stores.
10221 Use alias-set zero if not.
10222 (visit_reference_op_store): Do not use TBAA when looking up
10223 redundant stores.
10224 * tree-ssa-pre.c (compute_avail): Use TBAA here.
10225 (eliminate_dom_walker::before_dom_children): But not when looking
10226 up redundant stores.
10227
10228 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
10229
10230 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
10231
10232 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10233
10234 * config/i386/znver1.md
10235 (znver1_pop, znver1_pop_mem,
10236 znver1_load_imov_double_store,
10237 znver1_load_imov_direct_store,
10238 znver1_load_imov_direct_load,
10239 znver1_load_imov_double_load): Add new.
10240 (znver1_insn, znver1_insn_load): Add icmov type.
10241 (znver1_sseavx_fma,
10242 znver1_sseavx_fma_load,
10243 znver1_avx256_fma,
10244 znver1_avx256_fma_load): Fix pipe usage.
10245
10246 2016-02-14 Alan Modra <amodra@gmail.com>
10247
10248 PR target/68973
10249 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
10250 with an invalid hard reg, reload just the reg not the entire
10251 pre/post-inc/dec address expression.
10252
10253 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
10254
10255 PR target/67260
10256 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
10257 fixed R1_REG scratch reg.
10258 (sibcall_value_pcrel_fdpic): Likewise.
10259
10260 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
10261
10262 PR target/67636
10263 PR target/64345
10264 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
10265
10266 2016-02-12 Walter Lee <walt@tilera.com>
10267
10268 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
10269 * config/tilegx/t-tilegx: Likewise.
10270
10271 2016-02-12 David Malcolm <dmalcolm@redhat.com>
10272
10273 PR other/69554
10274 * diagnostic-show-locus.c (struct line_span): New struct.
10275 (layout::get_first_line): Delete.
10276 (layout::get_last_line): Delete.
10277 (layout::get_num_line_spans): New member function.
10278 (layout::get_line_span): Likewise.
10279 (layout::print_heading_for_line_span_index_p): Likewise.
10280 (layout::get_expanded_location): Likewise.
10281 (layout::calculate_line_spans): Likewise.
10282 (layout::m_first_line): Delete.
10283 (layout::m_last_line): Delete.
10284 (layout::m_line_spans): New field.
10285 (layout::layout): Update comment. Replace m_first_line and
10286 m_last_line with m_line_spans, replacing their initialization
10287 with a call to calculate_line_spans.
10288 (diagnostic_show_locus): When printing source lines and
10289 annotations, rather than looping over a single span
10290 of lines, instead loop over each line_span within
10291 the layout, with an inner loop over the lines within them.
10292 Call the context's start_span callback when changing line spans.
10293 * diagnostic.c (diagnostic_initialize): Initialize start_span.
10294 (diagnostic_build_prefix): Break out the building of the location
10295 part of the string into...
10296 (diagnostic_get_location_text): ...this new function, rewriting
10297 it from nested ternary expressions to a sequence of "if"
10298 statements.
10299 (default_diagnostic_start_span_fn): New function.
10300 * diagnostic.h (diagnostic_start_span_fn): New typedef.
10301 (diagnostic_context::start_span): New field.
10302 (default_diagnostic_start_span_fn): New prototype.
10303
10304 2016-02-12 David Malcolm <dmalcolm@redhat.com>
10305
10306 PR driver/69779
10307 * gcc.c (driver::finalize): Fix cleanup of "specs".
10308
10309 2016-02-12 David Malcolm <dmalcolm@redhat.com>
10310
10311 PR driver/69265
10312 PR driver/69453
10313 * gcc.c (driver::driver): Initialize m_option_suggestions.
10314 (driver::~driver): Clean up m_option_suggestions.
10315 (suggest_option): Convert to...
10316 (driver::suggest_option): ...this, and split out into
10317 driver::build_option_suggestions and find_closest_string.
10318 (driver::build_option_suggestions): New function, from
10319 first half of suggest_option. Special-case
10320 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
10321 the sanitizer_opts array. For options of enum types, add the
10322 various enum values to the candidate strings.
10323 (driver::handle_unrecognized_options): Remove "const".
10324 * gcc.h (driver::handle_unrecognized_options): Likewise.
10325 (driver::build_option_suggestions): New decl.
10326 (driver::suggest_option): New decl.
10327 (driver::m_option_suggestions): New field.
10328 * opts-common.c (add_misspelling_candidates): New function.
10329 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
10330 and make non-static.
10331 * opts.h (sanitizer_opts): New array decl.
10332 (add_misspelling_candidates): New function decl.
10333 * spellcheck.c (find_closest_string): New function.
10334 * spellcheck.h (find_closest_string): New function decl.
10335
10336 2016-02-12 Jakub Jelinek <jakub@redhat.com>
10337
10338 PR rtl-optimization/69764
10339 PR rtl-optimization/69771
10340 * optabs.c (expand_binop_directly): For shift_optab_p, force
10341 convert_modes with VOIDmode if xop1 has VOIDmode.
10342
10343 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
10344
10345 PR target/69729
10346 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
10347 to correctly determine instrumentation thunks.
10348
10349 2016-02-12 Jakub Jelinek <jakub@redhat.com>
10350
10351 PR ipa/69241
10352 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
10353 type by reference, force lhs on the call.
10354
10355 PR ipa/68672
10356 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
10357 Compute retval and retbnd early in all cases if split_part_return_p
10358 and return_bb is not EXIT. Remove all clobber stmts and reset
10359 all debug stmts that refer to SSA_NAMEs defined in split part,
10360 except if it is retval, in that case replace the old retval with the
10361 lhs of the call to the split part.
10362
10363 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10364
10365 revert:
10366 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10367
10368 PR middle-end/66726
10369 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
10370 whose result is used in PHI.
10371 (maybe_optimize_range_tests): Likewise.
10372 (final_range_test_p): Likweise.
10373
10374 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10375
10376 PR middle-end/66726
10377 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
10378 whose result is used in PHI.
10379 (maybe_optimize_range_tests): Likewise.
10380 (final_range_test_p): Likweise.
10381
10382 2016-02-12 Jakub Jelinek <jakub@redhat.com>
10383
10384 * cgraph.c: Spelling fixes - behaviour -> behavior and
10385 neighbour -> neighbor.
10386 * target.def: Likewise.
10387 * sel-sched.c: Likewise.
10388 * config/mips/mips.c: Likewise.
10389 * config/arc/arc.md: Likewise.
10390 * config/arm/cortex-a57.md: Likewise.
10391 * config/arm/arm.c: Likewise.
10392 * config/arm/neon.md: Likewise.
10393 * config/arm/arm-c.c: Likewise.
10394 * config/vms/vms-c.c: Likewise.
10395 * config/s390/s390.c: Likewise.
10396 * config/i386/znver1.md: Likewise.
10397 * config/i386/i386.c: Likewise.
10398 * config/ia64/hpux-unix2003.h: Likewise.
10399 * config/msp430/msp430.md: Likewise.
10400 * config/rx/rx.c: Likewise.
10401 * config/rx/rx.md: Likewise.
10402 * config/aarch64/aarch64-simd.md: Likewise.
10403 * config/aarch64/aarch64.c: Likewise.
10404 * config/nvptx/nvptx.c: Likewise.
10405 * config/bfin/bfin.c: Likewise.
10406 * config/cris/cris.opt: Likewise.
10407 * config/rs6000/rs6000.c: Likewise.
10408 * target.h: Likewise.
10409 * spellcheck.c: Likewise.
10410 * ira-build.c: Likewise.
10411 * tree-inline.c: Likewise.
10412 * builtins.c: Likewise.
10413 * lra-constraints.c: Likewise.
10414 * explow.c: Likewise.
10415 * hwint.h: Likewise.
10416 * targhooks.c: Likewise.
10417 * tree-vect-data-refs.c: Likewise.
10418 * expr.c: Likewise.
10419 * doc/tm.texi: Likewise.
10420 * doc/extend.texi: Likewise.
10421 * doc/install.texi: Likewise.
10422 * doc/md.texi: Likewise.
10423 * tree-ssa-tail-merge.c: Likewise.
10424 * sched-int.h: Likewise.
10425 * match.pd: Likewise.
10426 * sched-ebb.c: Likewise.
10427 * target.def (omit_struct_return_reg): Likewise.
10428 * gimple-ssa-isolate-paths.c: Likewise.
10429 (find_implicit_erroneous_behaviour): Renamed to...
10430 (find_implicit_erroneous_behavior): ... this.
10431 (find_explicit_erroneous_behaviour): Renamed to...
10432 (find_explicit_erroneous_behavior): ... this.
10433 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
10434
10435 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
10436
10437 PR rtl-optimization/64682
10438 PR rtl-optimization/69567
10439 PR rtl-optimization/69737
10440 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
10441 in I2 as well, just lose it.
10442
10443 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10444
10445 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
10446 New variable.
10447 (aarch64_last_printed_tune_string): Likewise.
10448 (aarch64_declare_function_name): Only output .arch assembler
10449 directive if it will be different from the previously output
10450 directive. Same for .tune comment but only if -dA is set.
10451 (aarch64_start_file): New function.
10452 (TARGET_ASM_FILE_START): Define.
10453
10454 2016-02-11 David Malcolm <dmalcolm@redhat.com>
10455
10456 PR plugins/69758
10457 * Makefile.in (PLUGIN_HEADERS): Add params.list.
10458
10459 2016-02-11 Jakub Jelinek <jakub@redhat.com>
10460
10461 PR target/65313
10462 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
10463 -Wmaybe-uninitialized warning.
10464
10465 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
10466
10467 PR target/69713
10468 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
10469
10470 2016-02-11 Richard Biener <rguenther@suse.de>
10471
10472 PR rtl-optimization/69291
10473 * ifcvt.c (noce_try_store_flag_constants): Do not allow
10474 subexpressions affected by changing the result.
10475
10476 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
10477
10478 PR target/69148
10479 * lra-constraints.c (curr_insn_transform): Find in/out operands
10480 for secondary memory moves. Update dups.
10481
10482 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
10483
10484 PR tree-optimization/69652
10485 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
10486 to nested loop, did source re-formatting, skip debug statements,
10487 add check on statement with volatile operand, remove dead scalar
10488 statements.
10489
10490 2016-02-10 Jakub Jelinek <jakub@redhat.com>
10491 Patrick Palka <ppalka@gcc.gnu.org>
10492
10493 PR ipa/69241
10494 PR c++/69649
10495 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
10496 calls if the return type is TREE_ADDRESSABLE.
10497 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
10498 * ipa-split.c (split_function): Fix doubled "we" in comment.
10499 Use void return type for the split part even if
10500 !split_point->split_part_set_retval.
10501
10502 2016-02-10 Bin Cheng <bin.cheng@arm.com>
10503
10504 PR tree-optimization/68021
10505 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
10506 when computing the value of biv cand by itself.
10507
10508 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10509
10510 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
10511 (cortexa57_tunings): Likewise.
10512 (cortexa72_tunings): Likewise.
10513 (arch_macro_fusion_pair_p): Add support for AES fusion.
10514 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
10515 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
10516 Allow virtual registers before reload so early scheduling works.
10517 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
10518 correct latency and pipeline.
10519 (cortex_a57_crypto_complex): Likewise.
10520 (cortex_a57_crypto_xor): Likewise.
10521 (define_bypass): Add AES bypass.
10522
10523 2016-02-10 Richard Biener <rguenther@suse.de>
10524
10525 PR tree-optimization/69726
10526 * passes.def: Add DCE pass before late uninit.
10527 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
10528 really fixup if-conversions job.
10529
10530 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10531
10532 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
10533 (arm_cortex_a57_tune): Likewise.
10534 (aarch_macro_fusion_pair_p): Add support for AES fusion.
10535 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
10536
10537 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
10538
10539 * timevar.def (TV_PHASE_DBGINFO): Delete.
10540 (TV_PHASE_CHECK_DBGINFO): Likewise.
10541 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
10542
10543 2016-02-10 Richard Biener <rguenther@suse.de>
10544
10545 PR tree-optimization/69719
10546 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10547 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
10548
10549 2016-02-09 Andrew Pinski <apinski@cavium.com>
10550
10551 PR tree-opt/69282
10552 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
10553 get_vcond_mask_icode returns false.
10554
10555 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10556
10557 PR target/68404
10558 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
10559 an ADDIS that adds a pointer to a large constant that sets the
10560 upper16 bits with a load operation.
10561
10562 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10563
10564 PR target/68532
10565 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
10566 order.
10567 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
10568 endian.
10569 (vzipq_s16): Likewise.
10570 (vzipq_s32): Likewise.
10571 (vzipq_f32): Likewise.
10572 (vzipq_u8): Likewise.
10573 (vzipq_u16): Likewise.
10574 (vzipq_u32): Likewise.
10575 (vzipq_p8): Likewise.
10576 (vzipq_p16): Likewise.
10577
10578 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10579
10580 PR target/68532
10581 * config/arm/arm.c (neon_endian_lane_map): New function.
10582 (neon_vector_pair_endian_lane_map): New function.
10583 (arm_evpc_neon_vuzp): Allow for big endian lane order.
10584 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
10585 endian.
10586 (vuzpq_s16): Likewise.
10587 (vuzpq_s32): Likewise.
10588 (vuzpq_f32): Likewise.
10589 (vuzpq_u8): Likewise.
10590 (vuzpq_u16): Likewise.
10591 (vuzpq_u32): Likewise.
10592 (vuzpq_p8): Likewise.
10593 (vuzpq_p16): Likewise.
10594
10595 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
10596
10597 PR target/69634
10598 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
10599 debug insns.
10600
10601 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
10602
10603 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
10604 truncate const_int operand 1 to QImode.
10605
10606 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
10607
10608 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
10609 corresponding to an abnormal edge.
10610
10611 2016-02-09 Tom de Vries <tom@codesourcery.com>
10612
10613 PR tree-optimization/69599
10614 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
10615 function.
10616 (find_func_aliases_for_builtin_call, find_func_clobbers)
10617 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
10618 partition.
10619
10620 2016-02-09 Richard Biener <rguenther@suse.de>
10621
10622 PR tree-optimization/69715
10623 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
10624 LHS on calls as non-rewritable.
10625
10626 2016-02-09 Tom de Vries <tom@codesourcery.com>
10627
10628 PR lto/69707
10629 * lto-wrapper.c (append_diag_options): New function.
10630 (compile_offload_image): Call append_diag_options.
10631
10632 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
10633
10634 PR other/69722
10635 * doc/extend.texi (Flag Output Operands): Correct sectioning.
10636 Minor copy-edit to fix verb tenses.
10637
10638 2016-02-08 Jakub Jelinek <jakub@redhat.com>
10639
10640 PR tree-optimization/69209
10641 * ipa-split.c (split_function): If split part is not
10642 returning retval, retval has gimple type but is not
10643 gimple value, force it into a SSA_NAME first.
10644
10645 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
10646
10647 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
10648 outdated section.
10649
10650 2016-02-08 Jason Merrill <jason@redhat.com>
10651
10652 PR c++/69631
10653 * convert.c (convert_to_integer_1): Check dofold on truncation
10654 distribution.
10655 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
10656 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
10657 Rename from *_nofold.
10658 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
10659 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
10660
10661 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
10662
10663 PR target/60410
10664 * tree.c (build_common_tree_nodes): Remove short_double argument.
10665 All callers changed.
10666 * tree.h (build_common_tree_nodes): Adjust declaration.
10667 * doc/invoke.texi (-fshort-double): Remove documentation.
10668 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10669 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
10670 * lto-wrapper.c (merge_and_complain, append_compiler_options)
10671 (append_linker_options): Don't handle OPT_fshort_double.
10672
10673 PR rtl-optimization/68730
10674 * lra-remat.c (insn_to_cand_activation): New static variable.
10675 (lra_remat): Allocate and free it.
10676 (create_cand): New arg activation. Initialize a field in
10677 insn_to_cand_activation if it is nonnull.
10678 (create_cands): Pass the activation insn to create_cand when making
10679 a candidate involving an output reload. Reorganize code a little.
10680 (do_remat): Keep track of active status of candidates in a separate
10681 bitmap.
10682
10683 2016-02-08 Richard Biener <rguenther@suse.de>
10684
10685 PR tree-optimization/69719
10686 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10687 Properly use absolute of the difference of the two offsets to
10688 compare or adjust the segment length.
10689
10690 2016-02-08 Richard Biener <rguenther@suse.de>
10691 Jeff Law <law@redhat.com>
10692
10693 PR target/68273
10694 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
10695 types for anonymous SSA names.
10696
10697 2016-02-08 Richard Biener <rguenther@suse.de>
10698
10699 PR rtl-optimization/69274
10700 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
10701
10702 2016-02-08 Jeff Law <law@redhat.com>
10703
10704 PR tree-optimization/65917
10705 * tree-ssa-dom.c (record_temporary_equivalences): Record both
10706 equivalences from if (x == y) style conditionals.
10707 (loop_depth_of_name): Remove.
10708 (record_equality): Remove loop depth check.
10709 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
10710 (const_and_copies::record_const_or_copy_raw): New member function.
10711 * tree-ssa-scopedtables.c
10712 (const_and_copies::record_const_or_copy_raw): New, factored out of
10713 (const_and_copies::record_const_or_copy): Call new member function.
10714
10715 2016-02-05 Jeff Law <law@redhat.com>
10716
10717 PR tree-optimization/68541
10718 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
10719 (count_stmts_in_block): New function.
10720 (poor_ifcvt_candidate_code): Likewise.
10721 (is_feasible_trace): Add some heuristics to determine when path
10722 splitting is profitable.
10723 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
10724 is a diamond with a single exit.
10725
10726 2016-02-05 Martin Sebor <msebor@redhat.com>
10727
10728 PR c++/69662
10729 * doc/invoke.texi: Update -Wplacement-new to take an optional
10730 argument.
10731
10732 2016-02-06 Richard Henderson <rth@redhat.com>
10733
10734 PR c/69643
10735 * tree.c (tree_nop_conversion_p): Do not strip casts into or
10736 out of non-standard address spaces.
10737
10738 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10739
10740 PR rtl-optimization/69691
10741 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
10742
10743 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
10744
10745 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
10746 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
10747 (*ieee128_mfvsrd_64bit): Likewise.
10748 (*ieee128_mfvsrd_32bit): Likewise.
10749
10750 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
10751
10752 PR target/69369
10753 Revert r232560:
10754 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
10755
10756 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10757 instrumented_version.
10758
10759 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
10760
10761 * doc/invoke.texi (Optimize Options): In table of --param options
10762 rename second occurrence of tracer-min-branch-ratio to
10763 tracer-min-branch-probability, rename
10764 tracer-min-branch-ratio-feedback to
10765 tracer-min-branch-probability-feedback and clarify description,
10766 rename sched-spec-state-edge-prob-cutoff to
10767 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
10768 to selsched-insns-to-rename, rename lto-minpartition to
10769 lto-min-partition, delete reorder-blocks-duplicate and
10770 reorder-blocks-duplicate-feedback.
10771
10772 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10773
10774 * config/s390/s390.c (s390_register_info_set_ranges): Remove
10775 superfluous loops.
10776
10777 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
10778
10779 * doc/extend.texi: S/390: Correct some typos.
10780
10781 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10782
10783 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
10784
10785 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10786
10787 PR target/69625
10788 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
10789 (s390_register_info_gprtofpr): Use new macros above.
10790 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
10791 its name.
10792 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
10793 its name. Adjust restore and save gpr ranges.
10794 (s390_register_info_set_ranges): New function.
10795 (s390_register_info): Use new macros above. Call
10796 s390_register_info_set_ranges.
10797 (s390_optimize_register_info): Likewise.
10798 (s390_hard_regno_rename_ok): Use new macros.
10799 (s390_hard_regno_scratch_ok): Likewise.
10800 (s390_emit_epilogue): Likewise.
10801 (s390_can_use_return_insn): Likewise.
10802 (s390_optimize_prologue): Likewise.
10803 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
10804
10805 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10806
10807 PR bootstrap/69677
10808 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
10809 alignment fixes.
10810 (ix86_option_override_internal): Disable TARGET_STV even for
10811 -m{incoming,preferred}-stack-boundary=3.
10812
10813 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10814
10815 * config.gcc: Mark deprecated rtems targets as obsolete.
10816
10817 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
10818
10819 PR rtl-optimization/64682
10820 PR rtl-optimization/69567
10821 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
10822 before I2 only if the register is both used and set in I2.
10823
10824 2016-02-04 DJ Delorie <dj@redhat.com>
10825
10826 * config/msp430/msp430.c (msp430_start_function): Add function type.
10827
10828 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10829
10830 PR fortran/69368
10831 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
10832
10833 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
10834
10835 PR rtl-optimization/69577
10836 Revert:
10837 2015-10-29 Richard Henderson <rth@redhat.com>
10838
10839 PR target/68124
10840 PR rtl-opt/67609
10841 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
10842 sse check to the exact conditions of PR 67609.
10843
10844 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
10845
10846 PR target/69667
10847 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
10848 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
10849 not allowed into the traditional Altivec registers.
10850 (movtd_64bit_nodm): Likewise.
10851 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10852
10853 2016-02-04 David Malcolm <dmalcolm@redhat.com>
10854
10855 * config/aarch64/cortex-a57-fma-steering.c
10856 (aarch64_register_fma_steering): Remove "static" from arguments
10857 to register_pass.
10858
10859 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
10860
10861 PR target/69619
10862 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
10863 twice when complex.
10864
10865 2016-02-04 Mike Frysinger <vapier@gentoo.org>
10866
10867 * doc/invoke.texi: Delete -mno-fma4.
10868
10869 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
10870
10871 PR rtl-optimization/69577
10872 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
10873 (find_subregs_of_mode): Update accordingly. Iterate over partial
10874 definitions.
10875
10876 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
10877
10878 * config/arm/arm-protos.h (neon_reinterpret): Remove.
10879 * config/arm/arm.c (neon_reinterpret): Remove.
10880 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
10881 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
10882 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
10883 vreinterpretti): Remove.
10884 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10885 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10886 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
10887 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
10888 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
10889 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
10890 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
10891 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
10892 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
10893 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
10894 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
10895 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
10896 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
10897 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
10898 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
10899 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
10900 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
10901 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
10902 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
10903 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
10904 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
10905 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
10906 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
10907 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
10908 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
10909 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
10910 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
10911 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
10912 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
10913 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
10914 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
10915 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
10916 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
10917 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
10918 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
10919 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
10920 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
10921 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
10922 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
10923 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
10924 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
10925 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
10926 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
10927 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
10928 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
10929 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
10930 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
10931 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
10932 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
10933 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
10934 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
10935 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
10936 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
10937 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
10938 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
10939 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
10940 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
10941 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
10942 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
10943 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
10944 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
10945 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
10946 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
10947 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
10948 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
10949 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
10950 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
10951 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
10952 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
10953 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
10954 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
10955 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
10956 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
10957 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
10958 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
10959 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
10960 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
10961 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
10962 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
10963 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
10964 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
10965 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
10966 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
10967 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
10968 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
10969 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
10970 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
10971 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
10972 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
10973 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
10974 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
10975 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
10976 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
10977 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
10978 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
10979 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
10980 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
10981 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
10982 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
10983 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
10984 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
10985 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
10986 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
10987
10988 2016-02-04 Martin Liska <mliska@suse.cz>
10989
10990 PR sanitizer/69276
10991 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
10992 that are gimple_store_p.
10993 (maybe_instrument_call): Likewise.
10994
10995 2016-02-04 Bin Cheng <bin.cheng@arm.com>
10996
10997 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
10998 register scaling out of memory reference and comment why.
10999
11000 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11001
11002 PR target/65932
11003 PR target/67714
11004 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
11005 folding the source of a SET.
11006
11007 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11008
11009 PR target/65932
11010 PR target/67714
11011 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
11012 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
11013
11014 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
11015
11016 PR target/65932
11017 PR target/67714
11018 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
11019 HImode.
11020
11021 2016-02-04 Christian Bruel <christian.bruel@st.com>
11022
11023 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
11024 * config/arm/arm.c (arm_set_current_function): Likewise.
11025
11026 2016-02-04 Jakub Jelinek <jakub@redhat.com>
11027 Ilya Enkovich <enkovich.gnu@gmail.com>
11028 H.J. Lu <hongjiu.lu@intel.com>
11029
11030 PR target/69454
11031 * config/i386/i386.c (convert_scalars_to_vector): Remove
11032 stack alignment fixes.
11033 (ix86_option_override_internal): Disable TARGET_STV if stack
11034 might not be aligned enough.
11035 (ix86_minimum_alignment): Assert that TARGET_STV is false.
11036
11037 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
11038
11039 * config/i386/x86-tune.def: Disable default prefetching
11040 for -march=znver1.
11041
11042 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11043 Vladimir Makarov <vmakarov@redhat.com>
11044
11045 PR target/69461
11046 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
11047 in validating fused toc addresses.
11048
11049 2016-02-03 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR c/69627
11052 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
11053 range->m_caret fields if range->m_show_caret_p is false.
11054
11055 PR target/69644
11056 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11057 Force oldval into register if it does not satisfy reg_or_short_operand
11058 predicate. Fix up formatting.
11059
11060 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
11061 Alexandre Oliva <aoliva@redhat.com>
11062
11063 PR target/69461
11064 * lra-constraints.c (simplify_operand_subreg): Check additionally
11065 address validity after potential reloading.
11066 (process_address_1): Check insns validity. In case of failure do
11067 nothing.
11068
11069 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
11070
11071 PR target/69118
11072 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
11073 Fix target.
11074
11075 2016-02-02 Jakub Jelinek <jakub@redhat.com>
11076
11077 * wide-int.cc (canonize_uhwi): New function.
11078 (wi::divmod_internal): Use it.
11079
11080 2016-02-02 James Norris <jnorris@codesourcery.com
11081
11082 * gimplify.c (omp_notice_variable): Add usage check.
11083
11084 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11085
11086 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
11087 like LE, GE, LT, GT when emitting relational operator.
11088
11089 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
11090
11091 * ira-costs.c (find_costs_and_classes): Add extra argument.
11092 * target.def (ira_change_pseudo_allocno_class): Add parameter.
11093 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
11094 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
11095 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
11096 Add best_class parameter, and return it if not ALL_REGS.
11097 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
11098 Add parameter.
11099 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
11100 Update target hook.
11101
11102 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
11103
11104 * config/aarch64/aarch64.c
11105 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
11106 (aarch64_ira_change_pseudo_allocno_class): New function.
11107
11108 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
11109
11110 PR target/67032
11111 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
11112
11113 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11114
11115 * config/avr/avr.c (avr_option_override): Set
11116 PARAM_ALLOW_STORE_DATA_RACES to 1.
11117
11118 2016-02-02 Richard Biener <rguenther@suse.de>
11119
11120 PR tree-optimization/69595
11121 * match.pd: Add range test simplifications to true/false.
11122
11123 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
11124
11125 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
11126 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
11127 instead.
11128
11129 2016-02-02 Richard Biener <rguenther@suse.de>
11130
11131 PR tree-optimization/69606
11132 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
11133 info on the result before moving a stmt.
11134
11135 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
11136
11137 PR middle-end/68542
11138 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
11139 branch with vector comparison.
11140 * config/i386/sse.md (VI48_AVX): New mode iterator.
11141 (define_expand "cbranch<mode>4): Add support for conditional branch
11142 with vector comparison.
11143 * tree-vect-loop.c (optimize_mask_stores): New function.
11144 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
11145 has_mask_store field of vect_info.
11146 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
11147 vectorized loops having masked stores after vec_info destroy.
11148 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
11149 correspondent macros.
11150 (optimize_mask_stores): Add prototype.
11151
11152 2016-02-02 Alan Modra <amodra@gmail.com>
11153
11154 PR target/69548
11155 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
11156 allow subregs.
11157
11158 2016-02-02 Alan Modra <amodra@gmail.com>
11159
11160 PR target/68662
11161 * config/rs6000/rs6000.c (need_toc_init): New var, set it
11162 whenever toc_label_name used.
11163 (rs6000_file_start): Don't set up toc section here,
11164 (rs6000_output_function_epilogue): do so here instead,
11165 (rs6000_xcoff_file_start): and here.
11166 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
11167 (load_toc_aix_di): Likewise.
11168
11169 2016-02-01 Jakub Jelinek <jakub@redhat.com>
11170
11171 PR rtl-optimization/69592
11172 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
11173 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
11174 (num_sign_bit_copies_binary_arith_p): New inline function.
11175 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
11176
11177 2016-02-01 Jeff Law <law@redhat.com>
11178
11179 PR tree-optimization/69580
11180 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
11181 * tree-ssa-threadbackward.c
11182 (fsm_find_control_statement_thread_paths): Do not try to walk
11183 through large PHI nodes.
11184
11185 2016-02-01 Jakub Jelinek <jakub@redhat.com>
11186
11187 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
11188 when count is incremented above limit, don't analyze further
11189 insns afterwards.
11190
11191 * omp-low.c (oacc_parse_default_dims): Avoid
11192 -Wsign-compare warning, make sure value fits into int
11193 rather than just unsigned int.
11194
11195 2016-02-01 Bin Cheng <bin.cheng@arm.com>
11196
11197 PR tree-optimization/67921
11198 * fold-const.c (split_tree): New parameters. Convert pointer
11199 type variable part to proper type before negating.
11200 (fold_binary_loc): Pass new arguments to split_tree.
11201
11202 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
11203
11204 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
11205 (nvptx_goacc_validate_dims): Extend to handle global defaults.
11206 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
11207 * doc/tm.texti: Rebuilt.
11208 * doc/invoke.texi (fopenacc-dim): Document.
11209 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
11210 (append_compiler_options): Likewise.
11211 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
11212 (oacc_parse_default_dims): New.
11213 (oacc_validate_dims): Add USED arg. Select non-unity default when
11214 possible.
11215 (oacc_loop_fixed_partitions): Return mask of used partitions.
11216 (oacc_loop_auto_partitions): Emit dump info.
11217 (oacc_loop_partition): Return mask of used partitions.
11218 (execute_oacc_device_lower): Parse default dimension arg. Adjust
11219 loop partitioning and validation calls.
11220
11221 2016-02-01 Richard Biener <rguenther@suse.de>
11222
11223 PR middle-end/69556
11224 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
11225
11226 2016-02-01 Richard Biener <rguenther@suse.de>
11227
11228 PR tree-optimization/69574
11229 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
11230 of asserting return chrec_dont_know.
11231
11232 2016-02-01 Martin Liska <mliska@suse.cz>
11233
11234 * mem-stats-traits.h: Add copyright header.
11235 * mem-stats.h: Likewise.
11236
11237 2016-02-01 Richard Biener <rguenther@suse.de>
11238
11239 PR tree-optimization/69579
11240 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
11241 Do not propagate through abnormal PHI results.
11242
11243 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
11244
11245 * postreload.c (reload_cse_simplify): Remove dead code.
11246
11247 2016-02-01 Jakub Jelinek <jakub@redhat.com>
11248
11249 PR rtl-optimization/69570
11250 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
11251 if there is more than one set, not if there is a single set.
11252
11253 2016-02-01 Richard Henderson <rth@redhat.com>
11254
11255 PR rtl-opt/69535
11256 * combine.c (make_compound_operation): When looking through a
11257 subreg, make sure to re-extend to the width of the outer mode.
11258
11259 2016-01-30 Jakub Jelinek <jakub@redhat.com>
11260
11261 PR tree-optimization/69546
11262 * wide-int.cc (wi::divmod_internal): For unsigned division
11263 where both operands fit into uhwi, if o1 is 1 and o0 has
11264 msb set, if divident_prec is larger than bits per hwi,
11265 clear another quotient word and return 2 instead of 1.
11266 Similarly for remainder with msb in HWI set, if dividend_prec
11267 is larger than bits per hwi.
11268
11269 2016-01-29 Martin Jambor <mjambor@suse.cz>
11270
11271 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
11272 Use short lowercase names.
11273 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
11274 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
11275 acq_rel one. Protect warning agains segfaults if
11276 get_memory_order_name returns NULL.
11277 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
11278 with release semantics. Do not warn if get_memory_order already did.
11279 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
11280 semantics. Fix check for relaxed or acquire semantics. Do not warn
11281 if get_memory_order already did.
11282
11283 2016-01-29 Sebastian Pop <s.pop@samsung.com>
11284
11285 * doc/install.texi: Document that isl-0.16 is supported.
11286
11287 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
11288
11289 PR target/69299
11290 * config/i386/constraints.md (Bm): Describe as special memory
11291 constraint.
11292 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
11293 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11294 * genpreds.c (struct constraint_data): Add is_special_memory.
11295 (have_special_memory_constraints, special_memory_start): New
11296 static vars.
11297 (special_memory_end): Ditto.
11298 (add_constraint): Add new arg is_special_memory. Add code to
11299 process its true value. Update have_special_memory_constraints.
11300 (process_define_constraint): Pass the new arg.
11301 (process_define_register_constraint): Ditto.
11302 (choose_enum_order): Process special memory.
11303 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
11304 function insn_extra_special_memory_constraint.
11305 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11306 * gensupport.c (process_rtx): Process
11307 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11308 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
11309 * ira-lives.c (single_reg_class): Use
11310 insn_extra_special_memory_constraint.
11311 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
11312 * lra-constraints.c (process_alt_operands): Ditto.
11313 (curr_insn_transform): Use insn_extra_special_memory_constraint.
11314 * recog.c (asm_operand_ok, preprocess_constraints): Process
11315 CT_SPECIAL_MEMORY.
11316 * reload.c (find_reloads): Ditto.
11317 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
11318 * stmt.c (parse_input_constraint): Use
11319 insn_extra_special_memory_constraint.
11320
11321 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
11322
11323 PR target/69530
11324 * lra-splill.c (lra_final_code_change): Revert r229087 by
11325 removing all sub-registers.
11326
11327 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
11328
11329 PR target/65604
11330 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
11331
11332 2016-01-29 Jakub Jelinek <jakub@redhat.com>
11333
11334 PR target/69551
11335 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
11336 SSE1, copy target into the temporary reg first before recursing
11337 on it.
11338
11339 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
11340
11341 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
11342 with vm.
11343
11344 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
11345
11346 * ginclude/stdarg.h: Test __cplusplus instead of
11347 __GXX_EXPERIMENTAL_CXX0X__.
11348
11349 2016-01-29 Richard Biener <rguenther@suse.de>
11350
11351 PR tree-optimization/69547
11352 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
11353 Do not mark clobbers necessary.
11354 (mark_all_reaching_defs_necessary_1): Likewise.
11355
11356 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11357
11358 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
11359 declaration name with %qs and print it in both error messages.
11360 Also fix indentation.
11361
11362 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11363
11364 PR other/69006
11365 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
11366 trailing blank line from error message.
11367
11368 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
11369
11370 PR c++/69462
11371 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
11372 for C++-11.
11373
11374 2016-01-29 Richard Biener <rguenther@suse.de>
11375
11376 PR middle-end/69537
11377 * match.pd: Allow all integral types when simplifying a
11378 widening or sign-changing conversion.
11379
11380 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11381
11382 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
11383 back to setting codegen_error to fail codegen.
11384
11385 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
11386
11387 PR target/69459
11388 * config/i386/constraints.md (C): Only accept constant zero operand.
11389 (BC): New constraint.
11390 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
11391 instead of C constraint.
11392 * doc/md.texi (Machine Constraints): Update description
11393 of C constraint.
11394
11395 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
11396
11397 PR target/68400
11398 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
11399
11400 2016-01-28 Jakub Jelinek <jakub@redhat.com>
11401
11402 PR middle-end/69542
11403 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
11404 non-debug insns.
11405
11406 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
11407
11408 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
11409 branches if using guessed profile.
11410
11411 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
11412
11413 * graphite-optimize-isl.c (optimize_isl): Fix dump.
11414
11415 2016-01-28 Richard Henderson <rth@redhat.com>
11416
11417 PR target/69305
11418 * config/aarch64/aarch64-modes.def (CC_Cmode): New
11419 * config/aarch64/aarch64-protos.h: Update.
11420 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
11421 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
11422 (aarch64_get_condition_code_1): Handle CC_Cmode.
11423 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
11424 (*add<mode>3_compareC_cconly_imm): New.
11425 (*add<mode>3_compareC_cconly): New.
11426 (*add<mode>3_compareC_imm): New.
11427 (add<mode>3_compareC): New.
11428 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
11429 to be first. Use aarch64_carry_operation.
11430 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
11431 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
11432 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
11433 (subti3): Use subdi3_compare1.
11434 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
11435 (sub<mode>3_compare1): New.
11436 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
11437 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
11438 (*subsi3_carryin_uxtw): Likewise.
11439 (*ngc<mode>, *ngcsi_uxtw): Likewise.
11440 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
11441 * config/aarch64/iterators.md (DWI): New.
11442 * config/aarch64/predicates.md (aarch64_carry_operation): New.
11443 (aarch64_borrow_operation): New.
11444
11445 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11446
11447 * graphite-optimize-isl.c (optimize_isl): Print a different debug
11448 message when isl does not return a valid schedule.
11449
11450 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11451
11452 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11453 Remove comments from class declarations: they are already in the code
11454 close by the defs.
11455
11456 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11457
11458 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
11459 codegen_error_p.
11460 (ternary_op_to_tree): Same.
11461 (unary_op_to_tree): Same.
11462 (nary_op_to_tree): Same.
11463 (gcc_expression_from_isl_expr_op): Same.
11464 (gcc_expression_from_isl_expression): Same.
11465 (graphite_create_new_loop): Same.
11466 (graphite_create_new_loop_guard): Same.
11467 (build_iv_mapping): Same.
11468 (graphite_create_new_guard): Same.
11469 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
11470 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
11471
11472 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11473
11474 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
11475 instead of setting codegen_error to fail codegen.
11476
11477 2016-01-28 Jason Merrill <jason@redhat.com>
11478
11479 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
11480
11481 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11482
11483 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
11484 Remove CONST_INT_P check in CCMP cost calculation.
11485
11486 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11487
11488 * config/aarch64/aarch64.c (generic_vector_cost):
11489 Set vec_permute_cost.
11490 (cortexa57_vector_cost): Likewise.
11491 (exynosm1_vector_cost): Likewise.
11492 (xgene1_vector_cost): Likewise.
11493 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
11494 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
11495 Add vec_permute_cost entry.
11496
11497 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11498
11499 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
11500 immediate as %1.
11501 (add<mode>3_compare0): Likewise.
11502 (addsi3_compare0_uxtw): Likewise.
11503 (add<mode>3nr_compare0): Likewise.
11504 (compare_neg<mode>): Likewise.
11505 (<optab><mode>3): Likewise.
11506
11507 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
11508
11509 * tree-vect-stmts.c (vectorizable_comparison): Add
11510 NULL check for vectype.
11511
11512 2016-01-28 Richard Biener <rguenther@suse.de>
11513
11514 PR tree-optimization/69466
11515 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11516 Account for PHIs we couldn't duplicate.
11517
11518 2016-01-28 Martin Liska <mliska@suse.cz>
11519
11520 PR pch/68758
11521 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
11522 instead of ENABLE_VALGRIND_CHECKING.
11523
11524 2016-01-27 Richard Henderson <rth@redhat.com>
11525
11526 PR rtl-opt/69447
11527 * lra-remat.c (subreg_regs): New.
11528 (dump_candidates_and_remat_bb_data): Dump it.
11529 (operand_to_remat): Reject if operand in subreg_regs.
11530 (set_bb_regs): Collect subreg_regs.
11531 (lra_remat): Init and free subreg_regs. Compute
11532 calculate_local_reg_remat_bb_data before create_cands.
11533
11534 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
11535
11536 PR target/68986
11537 * config/i386/i386.c (ix86_update_stack_boundary): Don't
11538 change stack_alignment_needed for __tls_get_addr call.
11539
11540 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
11541
11542 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
11543
11544 2016-01-27 Jeff Law <law@redhat.com>
11545
11546 PR tree-optimization/68398
11547 PR tree-optimization/69196
11548 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
11549 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
11550 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11551 Only count PHIs in the last block in the path. The others will
11552 const/copy propagate away. Add heuristic to allow more irreducible
11553 subloops to be created when it is likely profitable to do so.
11554
11555 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11556 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
11557 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
11558
11559 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11560
11561 PR lto/69254
11562 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
11563 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
11564 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
11565 * tree-streamer-in.c: Include asan.h.
11566 (streamer_get_builtin_tree): For builtins in sanitizer
11567 range call initialize_sanitizer_builtins and retry.
11568
11569 2016-01-27 Ian Lance Taylor <iant@google.com>
11570
11571 * common.opt (fkeep-gc-roots-live): New undocumented option.
11572 * tree-ssa-loop-ivopts.c (add_candidate_1): If
11573 -fkeep-gc-roots-live, skip pointers.
11574 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
11575 NULL.
11576
11577 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
11578
11579 PR target/69512
11580 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
11581 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
11582
11583 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
11584
11585 PR target/68380
11586 * configure.ac: NetBSD provides SSP in its C library.
11587 * configure: Updated.
11588
11589 2016-01-27 Richard Biener <rguenther@suse.de>
11590
11591 PR tree-optimization/69166
11592 * tree-vect-loop.c (vect_is_simple_reduction): Always check
11593 reduction code for commutativity / associativity.
11594
11595 2016-01-27 Martin Jambor <mjambor@suse.cz>
11596
11597 PR tree-optimization/69355
11598 * tree-sra.c (analyze_access_subtree): Correct hole detection when
11599 total_scalarization fails.
11600
11601 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
11602
11603 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
11604 power9.
11605
11606 2016-01-27 Christian Bruel <christian.bruel@st.com>
11607
11608 PR target/69245
11609 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
11610 Move arm_reset_previous_fndecl and set_target_option_current_node in
11611 the conditional part. Call save_restore_target_globals.
11612 * config/arm/arm.c (arm_set_current_function):
11613 Refactor to better support #pragma target and attribute mix.
11614 Call save_restore_target_globals.
11615 * config/arm/arm-protos.h (save_restore_target_globals): New function.
11616
11617 2016-01-27 Martin Liska <mliska@suse.cz>
11618
11619 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
11620 reference for an HSA kernel and its host function.
11621
11622 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11623
11624 PR tree-optimization/69399
11625 * wide-int.h (wi::lrshift): For larger precisions, only
11626 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
11627
11628 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
11629
11630 * config/arc/predicates.md (proper_comparison_operator): Reject
11631 constant-constant comparison.
11632
11633 2016-01-26 Tom de Vries <tom@codesourcery.com>
11634
11635 PR tree-optimization/69110
11636 * tree-data-ref.c (initialize_data_dependence_relation): Handle
11637 DR_NUM_DIMENSIONS == 0.
11638
11639 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11640 Sebastian Pop <s.pop@samsung.com>
11641
11642 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
11643 isl_ast_op_cond and isl_ast_op_select.
11644 (gcc_expression_from_isl_expr_op): Same.
11645
11646 2016-01-26 Jason Merrill <jason@redhat.com>
11647
11648 PR c++/68782
11649 * tree.c (recompute_constructor_flags): Split out from
11650 build_constructor.
11651 (verify_constructor_flags): New.
11652 * tree.h: Declare them.
11653
11654 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
11655
11656 PR rtl-optimization/69217
11657 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
11658 are no TYPE_FIELDS set for the record type.
11659
11660 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11661
11662 PR target/68662
11663 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
11664 toc_label_name unconditionally.
11665 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
11666 SYMBOL_REF string. Use toc_label_name instead of constructing
11667 LCTOC1.
11668 (rs6000_elf_declare_function_name): Use toc_label_name instead of
11669 constructing LCTOC1.
11670
11671 2016-01-26 Martin Sebor <msebor@redhat.com>
11672
11673 PR other/69477
11674 * doc/extend.texi (Common Type Attributes): Move text that talks about
11675 attribute packed from attribute aligned to the section discussing
11676 the former attribute for clarity.
11677
11678 2016-01-26 Richard Henderson <rth@redhat.com>
11679
11680 PR middle-end/60908
11681 * trans-mem.c (tm_region_init): Mark entry block as visited.
11682
11683 2016-01-26 David Malcolm <dmalcolm@redhat.com>
11684
11685 PR other/69006
11686 * diagnostic-show-locus.c (layout::print_source_line): Replace
11687 call to pp_newline with call to layout::print_newline.
11688 (layout::print_annotation_line): Likewise.
11689 (layout::move_to_column): Likewise.
11690 (layout::print_any_fixits): After printing any fixits, print a
11691 trailing newline, if necessary.
11692 (layout::print_newline): New method, resetting any colorization
11693 before a newline.
11694 (diagnostic_show_locus): Move the pp_newline to before the
11695 early bailout. Remove dummy block enclosing the layout instance.
11696 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
11697 of pp_newline_and_flush with pp_flush.
11698 (diagnostic_append_note): Delete use of pp_newline.
11699 (diagnostic_append_note_at_rich_loc): Delete.
11700 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
11701 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
11702 when newline characters are added to the buffer.
11703
11704 2016-01-26 Michael Matz <matz@suse.de>
11705
11706 * configure.ac (ac_cv_std_swap_in_utility): New test.
11707 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
11708 * configure: Regenerate.
11709 * config.in: Regenerate.
11710
11711 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
11712
11713 * config/arc/arc.md (cstoresi4): Force operand into register.
11714 (arcset<code>): Fix predicate.
11715 (arcsetltu): Likewise.
11716 (arcsetgeu): Likewise.
11717 (arcsethi): Likewise.
11718 (arcsetls): Likewise.
11719
11720 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11721
11722 PR tree-optimization/69483
11723 * gimple-fold.c (canonicalize_constructor_val): Return NULL
11724 if base has error_mark_node type.
11725
11726 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
11727
11728 PR target/68620
11729 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
11730 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
11731 New helper macros.
11732 (vget_lane_f16): Handle big-endian.
11733 (vgetq_lane_f16): Likewise.
11734 (vset_lane_f16): Likewise.
11735 (vsetq_lane_f16): Likewise.
11736 * config/arm/iterators.md (VQXMOV): Add V8HF.
11737 (VDQ): Add V4HF and V8HF.
11738 (V_reg): Handle V4HF and V8HF.
11739 (Is_float_mode): Likewise.
11740 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
11741 neon_vdup_nv8hf): New patterns.
11742 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
11743 Use VD_LANE iterator.
11744 (neon_vld1_dup<mode>): Use VQ2 iterator.
11745
11746 2016-01-26 Nathan Sidwell <nathan@acm.org>
11747
11748 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
11749 (set_oacc_fn_attrib): Add IS_KERNEL arg.
11750 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
11751 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
11752 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
11753 (oacc_validate_dims): Add LEVEL arg, don't return level.
11754 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
11755 oacc_validate_dims.
11756 (execute_oacc_device_lower): Adjust, add more dump output.
11757 * tree-ssa-loop.c (gate_oacc_kernels): Use
11758 oacc_fn_attrib_kernels_p.
11759 * tree-parloops.c (create_parallel_loop): Adjust
11760 set_oacc_fn_attrib call.
11761
11762 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11763
11764 PR lto/69254
11765 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
11766 (append_compiler_options): Handle -fcilkplus.
11767 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
11768
11769 2016-01-26 Nick Clifton <nickc@redhat.com>
11770
11771 PR target/66655
11772 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
11773 been marked as DECL_ONE_ONLY but we do not the means to make it
11774 so, then do not allow it to bind locally.
11775
11776 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11777
11778 PR lto/69254
11779 * opts.h (parse_sanitizer_options): New prototype.
11780 * opts.c (sanitizer_opts): New array.
11781 (parse_sanitizer_options): New function.
11782 (common_handle_option): Use parse_sanitizer_options.
11783
11784 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
11785
11786 PR target/68986
11787 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
11788 alignment adjustment to ...
11789 (ix86_update_stack_boundary): Here. Don't over-align stack for
11790 __tls_get_addr.
11791 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
11792 if __tls_get_addr is called.
11793
11794 2016-01-26 Christian Bruel <christian.bruel@st.com>
11795
11796 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
11797
11798 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
11799
11800 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
11801
11802 2016-01-26 Richard Biener <rguenther@suse.de>
11803
11804 PR middle-end/69467
11805 * match.pd: Guard X * CST CMP 0 pattern with single_use.
11806
11807 2016-01-26 Richard Biener <rguenther@suse.de>
11808
11809 PR tree-optimization/69452
11810 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
11811 (move_computations_dom_walker::before_dom_children): Rename
11812 to ...
11813 (move_computations_worker): This.
11814 (move_computations): Perform an RPO rather than a DOM walk.
11815
11816 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11817
11818 PR target/69442
11819 * combine.c (combine_instructions): For REG_EQUAL note with
11820 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
11821 to the underlying register.
11822 * doc/rtl.texi (REG_EQUAL): Document the behavior of
11823 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
11824
11825 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
11826
11827 PR target/67896
11828 * config/aarch64/aarch64-builtins.c
11829 (aarch64_init_simd_builtin_types): Do not set structural
11830 equality to __Poly{8,16,64,128}_t types.
11831
11832 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
11833
11834 PR tree-optimization/69400
11835 * wide-int.cc (wi_pack): Take the precision as argument and
11836 perform canonicalization here rather than in the callers.
11837 Use the main loop to handle all full-width HWIs. Add a
11838 zero HWI if in_len isn't a full result.
11839 (wi::divmod_internal): Update accordingly.
11840 (wi::mul_internal): Likewise. Simplify.
11841
11842 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11843 Sebastian Pop <s.pop@samsung.com>
11844
11845 * graphite-poly.c (apply_poly_transforms): Simplify.
11846 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
11847 (print_isl_map): Same.
11848 (print_isl_union_map): Same.
11849 (print_isl_schedule): New.
11850 (debug_isl_schedule): New.
11851 * graphite-dependences.c (scop_get_reads): Do not call
11852 isl_union_map_add_map that is undocumented isl functionality.
11853 (scop_get_must_writes): Same.
11854 (scop_get_may_writes): Same.
11855 (scop_get_original_schedule): Remove.
11856 (scop_get_dependences): Do not call isl_union_map_compute_flow that
11857 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
11858 (compute_deps): Remove.
11859 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
11860 (debug_schedule_ast): New.
11861 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
11862 set_separate_option.
11863 (graphite_regenerate_ast_isl): Add dump.
11864 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
11865 from scop->transformed_schedule.
11866 (graphite_regenerate_ast_isl): Add more dump.
11867 * graphite-optimize-isl.c (optimize_isl): Set
11868 scop->transformed_schedule. Check whether schedules are equal.
11869 (apply_poly_transforms): Move here.
11870 * graphite-poly.c (apply_poly_transforms): ... from here.
11871 (free_poly_bb): Static.
11872 (free_scop): Static.
11873 (pbb_number_of_iterations_at_time): Remove.
11874 (print_isl_ast): New.
11875 (debug_isl_ast): New.
11876 (debug_scop_pbb): New.
11877 * graphite-scop-detection.c (print_edge): Move.
11878 (print_sese): Move.
11879 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
11880 (build_scop_scattering): Remove.
11881 (create_pw_aff_from_tree): Assert instead of bailing out.
11882 (add_condition_to_pbb): Remove unused code, do not fail.
11883 (add_conditions_to_domain): Same.
11884 (add_conditions_to_constraints): Remove.
11885 (build_scop_context): New.
11886 (add_iter_domain_dimension): New.
11887 (build_iteration_domains): Initialize pbb->iterators.
11888 Call add_conditions_to_domain.
11889 (nested_in): New.
11890 (loop_at): New.
11891 (index_outermost_in_loop): New.
11892 (index_pbb_in_loop): New.
11893 (outermost_pbb_in): New.
11894 (add_in_sequence): New.
11895 (add_outer_projection): New.
11896 (outer_projection_mupa): New.
11897 (add_loop_schedule): New.
11898 (build_schedule_pbb): New.
11899 (build_schedule_loop): New.
11900 (embed_in_surrounding_loops): New.
11901 (build_schedule_loop_nest): New.
11902 (build_original_schedule): New.
11903 (build_poly_scop): Call build_original_schedule.
11904 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
11905 (free_poly_dr): Remove.
11906 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
11907 (free_poly_bb): Remove.
11908 (debug_loop_vec): Remove.
11909 (print_isl_ast): Declare.
11910 (debug_isl_ast): Declare.
11911 (scop_do_interchange): Remove.
11912 (scop_do_strip_mine): Remove.
11913 (scop_do_block): Remove.
11914 (flatten_all_loops): Remove.
11915 (optimize_isl): Remove.
11916 (pbb_number_of_iterations_at_time): Remove.
11917 (debug_scop_pbb): Declare.
11918 (print_schedule_ast): Declare.
11919 (debug_schedule_ast): Declare.
11920 (struct scop): Remove schedule. Add original_schedule,
11921 transformed_schedule.
11922 (free_gimple_poly_bb): Remove.
11923 (print_generated_program): Remove.
11924 (debug_generated_program): Remove.
11925 (unify_scattering_dimensions): Remove.
11926 * sese.c (print_edge): ... here.
11927 (print_sese): ... here.
11928 (debug_edge): ... here.
11929 (debug_sese): ... here.
11930 * sese.h (print_edge): Declare.
11931 (print_sese): Declare.
11932 (dump_edge): Declare.
11933 (dump_sese): Declare.
11934
11935 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11936 Sebastian Pop <s.pop@samsung.com>
11937
11938 * Makefile.in: Set ISLVER in site.exp.
11939
11940 2016-01-25 Jakub Jelinek <jakub@redhat.com>
11941
11942 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
11943 DECL_VALUE_EXPR of new_var even for the non-array case. Look
11944 through DECL_VALUE_EXPR for expansion.
11945
11946 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11947
11948 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
11949 the frame info after reload completed.
11950
11951 2016-01-25 Jeff Law <law@redhat.com>
11952
11953 PR tree-optimization/69196
11954 PR tree-optimization/68398
11955 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
11956 tree-ssa-threadupdate.c.
11957 (determine_bb_domination_status): Prototype
11958 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
11959 (determine_bb_domination_status): No longer static.
11960 (valid_jump_thread_path): Remove code to detect characteristics
11961 of the jump thread path not associated with correctness.
11962 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
11963 Correct test for thread path length. Count PHIs for real operands as
11964 statements that need to be copied. Do not count ASSERT_EXPRs.
11965 Look at all the blocks in the thread path. Compute and selectively
11966 filter thread paths based on threading through the latch, threading
11967 a multiway branch or crossing a multiway branch.
11968
11969 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11970
11971 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
11972 decl with __attribute__ ((unused)) annotation.
11973
11974 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
11975
11976 PR target/69421
11977 * tree-vect-stmts.c (vectorizable_condition): Check vectype
11978 of operands is compatible with a statement vectype.
11979
11980 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
11981
11982 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
11983 improve wording for mixed storage order support.
11984
11985 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
11986
11987 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
11988 (vcvt_u64_f64): Likewise.
11989 (vcvta_s64_f64): Likewise.
11990 (vcvta_u64_f64): Likewise.
11991 (vcvtm_s64_f64): Likewise.
11992 (vcvtm_u64_f64): Likewise.
11993 (vcvtn_s64_f64): Likewise.
11994 (vcvtn_u64_f64): Likewise.
11995 (vcvtp_s64_f64): Likewise.
11996 (vcvtp_u64_f64): Likewise.
11997
11998 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
11999
12000 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
12001 (arc_init): Check validity mll64 option.
12002 (arc_save_restore): Use double load/store instruction.
12003 (arc_expand_movmem): Likewise.
12004 (arc_split_move): Don't split if we have double load/store
12005 instructions. Returns a boolean.
12006 (arc_process_double_reg_moves): Change function to return boolean
12007 instead of a sequence of instructions.
12008 (arc_dwarf_register_span): New function.
12009 * config/arc/arc-protos.h (arc_split_move): Change prototype.
12010 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
12011 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
12012 (*movdf_insn): Likewise.
12013 * config/arc/arc.opt (mll64): New option.
12014 * config/arc/predicates.md (even_register_operand): New predicate.
12015 * doc/invoke.texi (ARC Options): Add mll64 documentation.
12016
12017 2016-01-25 Richard Biener <rguenther@suse.de>
12018
12019 PR lto/69393
12020 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
12021 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
12022 DECL_NAMELESS.
12023 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
12024
12025 2016-01-25 Richard Biener <rguenther@suse.de>
12026
12027 PR tree-optimization/69376
12028 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
12029 flag.
12030 (VN_INFO_ANTI_RANGE_P): New inline.
12031 (VN_INFO_RANGE_TYPE): Likewise.
12032 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
12033 SSA_NAME_ANTI_RANGE_P.
12034 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
12035 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12036 Properly query VN_INFO_RANGE_TYPE.
12037
12038 2016-01-25 Nick Clifton <nickc@redhat.com>
12039
12040 PR target/66655
12041 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
12042
12043 2016-01-23 Tom de Vries <tom@codesourcery.com>
12044
12045 PR tree-optimization/69426
12046 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
12047 removed clobber.
12048
12049 2016-01-23 Jakub Jelinek <jakub@redhat.com>
12050
12051 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
12052 "the the" with "the" in the comments.
12053 * ipa-devirt.c (build_type_inheritance_graph,
12054 update_type_inheritance_graph): Likewise.
12055 * tree.c (build_function_type_list_1): Likewise.
12056 * cfgloopmanip.c (scale_loop_profile): Likewise.
12057 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
12058 * gimple-ssa-split-paths.c
12059 (find_block_to_duplicate_for_splitting_paths): Likewise.
12060 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
12061 * expr.c (convert_move): Likewise.
12062 * var-tracking.c (vt_stack_adjustments): Likewise.
12063 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
12064 * tree-vrp.c (test_for_singularity): Likewise.
12065
12066 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
12067 directly instead of building a temporary tree.
12068
12069 PR bootstrap/69434
12070 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
12071 remove <algorithm> include.
12072
12073 2016-01-22 Jakub Jelinek <jakub@redhat.com>
12074
12075 PR target/69432
12076 * config/i386/i386.c: Include dojump.h.
12077 (expand_small_movmem_or_setmem,
12078 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
12079 fixes.
12080 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
12081 if dynamic_check != -1.
12082
12083 2016-01-21 Jeff Law <law@redhat.com>
12084
12085 PR middle-end/69347
12086 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
12087 record_temporary_equivalences. Rewritten to avoid unnecessary calls
12088 into dominated_by_p.
12089 (cprop_into_successor_phis): Avoid unnecessary tests.
12090
12091 2016-01-22 Richard Henderson <rth@redhat.com>
12092
12093 PR target/69416
12094 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
12095 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
12096
12097 2016-01-22 Michael Matz <matz@suse.de>
12098
12099 * system.h (string, algorithm): Include only conditionally.
12100 (new): Include always under C++.
12101 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
12102 * final.c (toplevel): Ditto.
12103 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
12104 * genconditions.c (write_header): Make gencondmd.c define
12105 INCLUDE_STRING.
12106 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
12107
12108 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
12109 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
12110
12111 2016-01-22 Christian Bruel <christian.bruel@st.com>
12112
12113 PR target/68674
12114 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
12115
12116 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12117
12118 PR target/69403
12119 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
12120 define_insn_and_split. Ensure operands[1] and operands[0] do not
12121 get assigned the same register.
12122
12123 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
12124
12125 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
12126
12127 2016-01-22 Christian Bruel <christian.bruel@st.com>
12128
12129 * config/arm/arm-c.c (arm_pragma_target_parse):
12130 Remove warn_builtin_macro_redefined overwrite.
12131
12132 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
12133
12134 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
12135 flag_non_call_exceptions compatibility.
12136
12137 2016-01-22 Jakub Jelinek <jakub@redhat.com>
12138
12139 PR debug/66668
12140 * dwarf2out.c (add_child_die_after): New function.
12141 (dwarf_qual_info_t): New type.
12142 (dwarf_qual_info): New variable.
12143 (qualified_die_p): New function.
12144 (modified_type_die): For -fdebug-types-section, ensure
12145 canonical order of qualifiers. Put qualified DIEs adjacent
12146 to the corresponding non-qualified type DIE and search there
12147 for existing qualified DIEs.
12148
12149 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
12150
12151 * doc/extend.texi (scalar_storage_order type attribute): Document
12152 restriction on type punning and aliasing, and remove future tense.
12153
12154 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
12155
12156 PR target/69252
12157 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
12158 first stage.
12159
12160 2016-01-21 Jeff Law <law@redhat.com>
12161
12162 PR middle-end/69347
12163 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
12164 useless call to record_temporary_equivalences.
12165 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
12166 allocate 10 slots in the bb_path vector and let it grow as needed.
12167 (fsm_find_control_statement_thread_paths): Similarly for the next_path
12168 vector.
12169
12170 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
12171
12172 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
12173 Detangle.
12174 * configure: Regenerate.
12175
12176 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
12177
12178 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
12179 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
12180
12181 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
12182
12183 PR middle-end/66178
12184 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
12185 drop EXPAND_INITIALIZER.
12186 * rtl.h (contains_symbolic_reference_p): Declare.
12187 * rtlanal.c (contains_symbolic_reference_p): New function.
12188 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
12189 a subtraction into a NOT if symbolic constants are involved.
12190
12191 2016-01-21 Anton Blanchard <anton@samba.org>
12192 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12193
12194 PR target/63354
12195 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
12196 #define.
12197 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
12198 function.
12199
12200 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
12201
12202 * config/microblaze/microblaze.c
12203 (get_branch_target): New.
12204 (insert_wic_for_ilb_runout): New.
12205 (insert_wic): New.
12206 (microblaze_machine_dependent_reorg): New.
12207 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
12208 * config/microblaze/microblaze.md
12209 (UNSPEC_IPREFETCH): Define.
12210 (iprefetch): New pattern
12211 * config/microblaze/microblaze.opt
12212 (mxl-prefetch): New flag.
12213
12214 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
12215
12216 * config/microblaze/microblaze.h
12217 (FIXED_REGISTERS): Update in macro.
12218 (CALL_USED_REGISTERS): Update in macro.
12219
12220 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
12221
12222 PR rtl-optimization/68920
12223 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
12224 moves.
12225
12226 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
12227
12228 PR rtl-optimization/68990
12229 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
12230 pseudo instead of inheritance ones.
12231
12232 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12233 Nick Clifton <nickc@redhat.com>
12234
12235 PR target/69129
12236 PR target/69012
12237 * config/mips/mips.c (mips_compute_frame_info): Initialise
12238 args_size and hard_frame_pointer_offset fields of the frame
12239 structure before calling mips_global_pointer.
12240
12241 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
12242
12243 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
12244 label reference.
12245 * configure: Regenerate.
12246
12247 2016-01-21 Richard Biener <rguenther@suse.de>
12248
12249 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
12250
12251 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
12252
12253 * config/s390/s390.c (s390_asm_declare_function_size): Add code
12254 to actually emit the .size directive.
12255
12256 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
12257 Jakub Jelinek <jakub@redhat.com>
12258
12259 PR target/69187
12260 PR target/65624
12261 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
12262 args array size by one to avoid buffer overflow.
12263
12264 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
12265
12266 * config/s390/s390.md (pool_section_start): Use switch_to_section
12267 to select proper read-only data section instead of hardcoding
12268 .rodata.
12269 (pool_section_end): Use switch_to_section to match the above.
12270
12271 2016-01-21 Richard Biener <rguenther@suse.de>
12272
12273 PR tree-optimization/69378
12274 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
12275 (set_ssa_val_to): Use it for dominance checks taking into
12276 account not executable edges.
12277
12278 2016-01-21 Jakub Jelinek <jakub@redhat.com>
12279
12280 PR c++/69355
12281 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
12282 for bitsize instead of GET_MODE_PRECISION (mode).
12283
12284 2016-01-20 Martin Sebor <msebor@redhat.com>
12285
12286 PR c/52291
12287 * extend.texi (__sync Builtins): Clarify the semantics of
12288 __sync_fetch_and_OP built-ins on pointers.
12289 (__atomic Builtins): Same.
12290
12291 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12292 Sebastian Pop <s.pop@samsung.com>
12293
12294 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
12295 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
12296 (is_valid_rename): Same.
12297 (translate_isl_ast_to_gimple::get_rename): Same.
12298 (translate_isl_ast_to_gimple::rename_all_uses): Same.
12299 (translate_isl_ast_to_gimple::rename_uses): Same.
12300 (get_new_name): Check for close_phi nodes.
12301 (copy_loop_phi_args): Use phi_node_kind.
12302 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
12303 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
12304
12305 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12306 Sebastian Pop <s.pop@samsung.com>
12307
12308 Revert commit r229783.
12309 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12310 Remove use of parameter_rename_map.
12311 (copy_def): Remove.
12312 (copy_internal_parameters): Remove.
12313 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
12314 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
12315 (free_sese_info): Do not free parameter_rename_map.
12316 (set_rename): Do not use parameter_rename_map.
12317 (rename_uses): Update call to set_rename.
12318 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
12319 * sese.h (parameter_rename_map_t): Remove.
12320 (struct sese_info_t): Remove field parameter_rename_map.
12321
12322 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12323 Sebastian Pop <s.pop@samsung.com>
12324
12325 * graphite-isl-ast-to-gimple.c: Fix comment.
12326 * graphite-scop-detection.c (defined_in_loop_p): New.
12327 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
12328 names defined in loop.
12329
12330 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12331 Sebastian Pop <s.pop@samsung.com>
12332
12333 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
12334 Discard unstructured if-then-else regions.
12335
12336 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12337 Sebastian Pop <s.pop@samsung.com>
12338
12339 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
12340 (cleanup_loop_iter_dom): Remove.
12341 (build_loop_iteration_domains): Remove.
12342 (build_scop_context): Remove.
12343 (build_scop_iteration_domain): Remove.
12344 (add_loop_constraints): New.
12345 (build_iteration_domains): New.
12346 (build_poly_scop): Call build_iteration_domains.
12347
12348 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12349 Sebastian Pop <s.pop@samsung.com>
12350
12351 * graphite-scop-detection.c
12352 (scop_detection::harmful_loop_in_region): Free dom and loops.
12353 (scop_detection::loop_body_is_valid_scop): Free bbs.
12354
12355 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12356 Sebastian Pop <s.pop@samsung.com>
12357
12358 * graphite-scop-detection.c (record_loop_in_sese): New.
12359 (gather_bbs::before_dom_children): Call record_loop_in_sese.
12360 (build_scops): Remove call to build_sese_loop_nests.
12361 * sese.c (sese_record_loop): Remove.
12362 (build_sese_loop_nests): Remove.
12363 (new_sese_info): Remove region->loops.
12364 (free_sese_info): Same.
12365 * sese.h (sese_contains_loop): Same.
12366 (build_sese_loop_nests): Remove.
12367 (sese_contains_loop): Remove.
12368
12369 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12370 Sebastian Pop <s.pop@samsung.com>
12371
12372 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
12373 loop_is_valid_in_scop.
12374 (scop_detection::harmful_stmt_in_region): Renamed
12375 harmful_loop_in_region.
12376 Call loop_is_valid_in_scop.
12377
12378 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12379 Sebastian Pop <s.pop@samsung.com>
12380
12381 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
12382 isl_ast_node_mark.
12383
12384 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12385 Sebastian Pop <s.pop@samsung.com>
12386
12387 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
12388 * graphite.h (struct poly_bb): Remove field is_reduction.
12389 (PBB_IS_REDUCTION): Remove.
12390
12391 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12392 Sebastian Pop <s.pop@samsung.com>
12393
12394 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
12395 (add_pdr_constraints): Same.
12396 (scop_get_reads): Same.
12397 (scop_get_must_writes): Same.
12398 (scop_get_may_writes): Same.
12399 (scop_get_original_schedule): Same.
12400 (extend_schedule): Same.
12401 (apply_schedule_on_deps): Same.
12402 (carries_deps): Same.
12403 (compute_deps): Same.
12404 (scop_get_dependences): Same.
12405 * graphite-isl-ast-to-gimple.c
12406 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
12407 * graphite-optimize-isl.c (get_schedule_for_band): Same.
12408 (get_schedule_for_band_list): Same.
12409 (get_schedule_map): Same.
12410 (apply_schedule_map_to_scop): Same.
12411 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12412 (build_loop_iteration_domains): Same.
12413 (add_condition_to_pbb): Same.
12414 (add_param_constraints): Same.
12415 (pdr_add_memory_accesses): Same.
12416 (pdr_add_data_dimensions): Same.
12417
12418 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
12419
12420 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
12421 requirements.
12422
12423 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
12424
12425 * common.opt (feliminate-dwarf2-dups): Replace references to
12426 "DWARF 2" with just "DWARF".
12427 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
12428 * doc/extend.texi: Likewise.
12429 * doc/cpp.texi: Likewise.
12430 * doc/invoke.texi: Likewise.
12431 (Option Summary): Add -gdwarf to list of Debugging Options.
12432 (Debugging Options): Document -gdwarf.
12433 * doc/contrib.texi: Spell "DWARF" like that.
12434
12435 2016-01-21 Jakub Jelinek <jakub@redhat.com>
12436
12437 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
12438 warning. Fix up formatting.
12439
12440 PR middle-end/67653
12441 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
12442 attempt to mark memory input operand addressable and
12443 call prepare_gimple_addressable in that case. Don't adjust
12444 input_location for diagnostics, use error_at instead.
12445
12446 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
12447
12448 * config/rs6000/ppc-auxv.h: New file.
12449 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
12450 (cpu_is): Likewise.
12451 (cpu_supports): Likewise.
12452 * config/rs6000/rs6000.c: include "ppc-auxv.h".
12453 (cpu_is_info): New variable.
12454 (cpu_supports_info): Likewise.
12455 (tcb_verification_symbol): Likewise.
12456 (cpu_builtin_p): Likewise.
12457 (cpu_expand_builtin): New function.
12458 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
12459 (rs6000_init_builtins): Likewise.
12460 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
12461 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
12462 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
12463 * configure: Regenerate.
12464 * config.in: Likewise.
12465 * doc/extend.texi (PowerPC Built-in Functions): Document
12466 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
12467
12468 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
12469
12470 PR target/68609
12471 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
12472 domain check.
12473 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
12474 for V4SFmode.
12475
12476 2016-01-20 Richard Henderson <rth@redhat.com>
12477
12478 PR bootstrap/69343
12479 PR bootstrap/69339
12480 PR tree-opt/68964
12481 Revert:
12482 * tree.c (tm_define_builtin): New.
12483 (find_tm_vector_type): New.
12484 (build_tm_vector_builtins): New.
12485 (build_common_builtin_nodes): Call it.
12486
12487 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
12488
12489 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
12490 (arm_fp_ok): Likewise.
12491 (arm_fp): Likewise.
12492 (arm_crypto): Likewise.
12493
12494 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12495 Richard Biener <rguenther@suse.de>
12496
12497 PR tree-optimization/69328
12498 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
12499 vectors have same number of elements.
12500 (vectorizable_condition): Fix masked version recognition.
12501
12502 2016-01-20 Richard Biener <rguenther@suse.de>
12503
12504 PR tree-optimization/69345
12505 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
12506 (VN_INFO_PTR_INFO): Likewise.
12507 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
12508 info when it is equal between non-dominating SSA names.
12509 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12510 Make sure to look at original SSA infos.
12511
12512 2016-01-20 Jeff Law <law@redhat.com>
12513
12514 PR target/25114
12515 * config/m68k/predicates.md (pow2_m1_operand): New predicate
12516 extracted from ...
12517 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
12518 (pc_or_label_operand): New predicate.
12519 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
12520 tests for small integers that are 2^n - 1.
12521
12522 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
12523
12524 * doc/invoke.texi (Options Summary): Add '.' after @xref.
12525
12526 2016-01-19 Jeff Law <law@redhat.com>
12527
12528 PR middle-end/69347
12529 * tree-ssa-threadbackwards.c
12530 (fsm_find_control_statement_thread_paths): Do not try to lookup
12531 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
12532
12533 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12534
12535 * doc/lto.texi: Remove text that says only Gold has linker plugin
12536 support.
12537
12538 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
12539
12540 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
12541 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
12542 the DIE accordingly.
12543 (modified_type_die): Add REVERSE parameter and pass it recursively,
12544 as well as to base_type_die. Adjust presence check accordingly.
12545 (base_type_for_mode): Adjust call to modified_type_die.
12546 (add_type_attribute): Add REVERSE parameter and pass it to
12547 modified_type_die.
12548 (generic_parameter_die): Adjust call to add_type_attribute.
12549 (add_scalar_info): Likewise.
12550 (add_subscript_info): Likewise.
12551 (gen_array_type_die): Likewise.
12552 (gen_descr_array_type_die): Likewise.
12553 (gen_entry_point_die): Likewise.
12554 (gen_enumeration_type_die): Likewise.
12555 (gen_formal_parameter_die): Likewise.
12556 (gen_subprogram_die): Likewise.
12557 (gen_variable_die ): Likewise.
12558 (gen_const_die): Likewise.
12559 (gen_field_die): Likewise.
12560 (gen_pointer_type_die): Likewise.
12561 (gen_reference_type_die): Likewise.
12562 (gen_ptr_to_mbr_type_die): Likewise.
12563 (gen_inheritance_die): Likewise.
12564 (gen_subroutine_type_die): Likewise.
12565 (gen_typedef_die): Likewise.
12566 (force_type_die): Adjust call to modified_type_die.
12567
12568 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
12569
12570 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
12571 flow throughout the file. Fix broken link to Objective-C 2.0
12572 documentation.
12573 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
12574 errors.
12575
12576 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12577
12578 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
12579
12580 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12581
12582 PR ipa/66223
12583 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
12584 (maybe_record_node): Record cxa_pure_virtual as the only possible
12585 target if there are not ohter candidates.
12586 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
12587
12588 2016-01-19 Richard Biener <rguenther@suse.de>
12589
12590 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
12591 (get_memory_order): Likewise.
12592
12593 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
12594
12595 * tree-vect-stmts.c (vectorizable_store): Check
12596 rhs vectype.
12597
12598 2016-01-19 David Malcolm <dmalcolm@redhat.com>
12599
12600 PR jit/68446
12601 * gcc.c (driver::decode_argv): Add call to
12602 init_opts_obstack before init_options_struct.
12603 * opts.c (init_opts_obstack): Remove idempotency.
12604 (init_options_struct): Replace call to init_opts_obstack
12605 with a gcc_assert to verify that it has already been called.
12606 * toplev.c (toplev::main): Add call to init_opts_obstack before
12607 calls to init_options_struct.
12608 (toplev::finalize): Move cleanup of opts_obstack next to
12609 cleanup of save_decoded_options, clearing the latter, and
12610 save_decoded_options_count.
12611
12612 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12613
12614 PR target/69135
12615 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
12616 attribute to unconditional. Remove %? from output template.
12617
12618 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12619 Jiong Wang <jiong.wang@arm.com>
12620
12621 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
12622 generated from different expand order.
12623
12624 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12625
12626 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12627 Add support for CCMP costing.
12628
12629 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12630
12631 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
12632 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
12633 (fccmpe<mode>): Likewise.
12634 (fcmp): Rename to fcmp and globalize pattern.
12635 (fcmpe): Likewise.
12636 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
12637 (aarch64_gen_ccmp_next): Add FP support.
12638
12639 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12640
12641 * target.def (gen_ccmp_first): Update documentation.
12642 (gen_ccmp_next): Likewise.
12643 * doc/tm.texi (gen_ccmp_first): Update documentation.
12644 (gen_ccmp_next): Likewise.
12645 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
12646 expand_ccmp_expr_1. Improve comments.
12647 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
12648 (ccmp_ior<mode>): Remove pattern.
12649 (cmp<mode>): Remove expand.
12650 (cmp): Globalize pattern.
12651 (cstorecc4): Use cc_register.
12652 (mov<mode>cc): Remove ccmp_cc_register check.
12653 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
12654 Simplify after removal of CC_DNE/* modes.
12655 (aarch64_ccmp_mode_to_code): Remove.
12656 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
12657 In 'k' case use integer as condition.
12658 (aarch64_nzcv_codes): Remove inverted cases.
12659 (aarch64_code_to_ccmode): Remove.
12660 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
12661 comparison with CC register to be used in folowing CCMP/branch/CSEL.
12662 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
12663 pattern. Return the comparison with CC register. Invert conditions
12664 when bitcode is OR.
12665 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
12666 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
12667
12668 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12669
12670 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12671 instrumented_version.
12672
12673 2016-01-19 Richard Biener <rguenther@suse.de>
12674
12675 PR tree-optimization/69336
12676 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
12677 handled components with get_ref_base_and_extent.
12678 (equal_mem_array_ref_p): Adjust.
12679
12680 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12681
12682 PR debug/65779
12683 * shrink-wrap.c: Include valtrack.h.
12684 (move_insn_for_shrink_wrap): Add DEBUG argument. If
12685 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
12686 in between insn and where it will be moved to. Call
12687 dead_debug_insert_temp.
12688 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
12689 first and dead_debug_local_finish at the end.
12690 For uses and defs bitmap, handle all regs in between REGNO and
12691 END_REGNO, not just the first one.
12692
12693 2016-01-19 Richard Biener <rguenther@suse.de>
12694
12695 PR tree-optimization/69352
12696 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
12697 (equal_mem_array_ref_p): Constrain size and max size properly.
12698 Compare the reverse flag.
12699
12700 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
12701
12702 * ira.c (ira): Update regstat data if we deleted insns.
12703
12704 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12705
12706 PR rtl-optimization/68955
12707 PR rtl-optimization/64557
12708 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
12709 here. Fix up formatting.
12710 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
12711
12712 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12713
12714 PR lto/69133
12715 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
12716 assume that the node has body.
12717 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
12718 check.
12719
12720 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12721
12722 * lto-streamer-out.c (lto_output): Do not stream instrumentation
12723 thunks.
12724
12725 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12726
12727 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
12728 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
12729
12730 2016-01-19 Martin Jambor <mjambor@suse.cz>
12731 Martin Liska <mliska@suse.cz>
12732 Michael Matz <matz@suse.de>
12733
12734 * Makefile.in (OBJS): Add new source files.
12735 (GTFILES): Add hsa.c.
12736 * common.opt (disable_hsa): New variable.
12737 (-Whsa): New warning.
12738 * config.in (ENABLE_HSA): New.
12739 * configure.ac: Treat hsa differently from other accelerators.
12740 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
12741 $enable_offloading.
12742 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
12743 * doc/install.texi (Configuration): Document --with-hsa-runtime,
12744 --with-hsa-runtime-include, --with-hsa-runtime-lib and
12745 --with-hsa-kmt-lib.
12746 * doc/invoke.texi (-Whsa): Document.
12747 (hsa-gen-debug-stores): Likewise.
12748 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
12749 to invoke offload compiler for hsa acclerator.
12750 * opts.c (common_handle_option): Determine whether HSA offloading
12751 should be performed.
12752 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
12753 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
12754 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
12755 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
12756 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
12757 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
12758 GF_OMP_FOR_KIND_GRID_LOOP.
12759 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
12760 (pp_gimple_stmt_1): Likewise.
12761 * gimple-walk.c (walk_gimple_stmt): Likewise.
12762 * gimple.c (gimple_build_omp_grid_body): New function.
12763 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
12764 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
12765 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
12766 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
12767 GF_OMP_TEAMS_GRID_PHONY.
12768 (gimple_statement_omp_single_layout): Updated comments.
12769 (gimple_build_omp_grid_body): New function.
12770 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
12771 (gimple_omp_for_grid_phony): New function.
12772 (gimple_omp_for_set_grid_phony): Likewise.
12773 (gimple_omp_parallel_grid_phony): Likewise.
12774 (gimple_omp_parallel_set_grid_phony): Likewise.
12775 (gimple_omp_teams_grid_phony): Likewise.
12776 (gimple_omp_teams_set_grid_phony): Likewise.
12777 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
12778 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
12779 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
12780 (BUILT_IN_GOMP_TARGET): Updated type.
12781 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
12782 (adjust_for_condition): New function.
12783 (get_omp_for_step_from_incr): Likewise.
12784 (extract_omp_for_data): Moved parts to adjust_for_condition and
12785 get_omp_for_step_from_incr.
12786 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
12787 (fixup_child_record_type): Bail out if receiver_decl is NULL.
12788 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
12789 (scan_omp_parallel): Do not create child functions for phony
12790 constructs.
12791 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
12792 (scan_omp_1_op): Checking assert we are not remapping to
12793 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
12794 (parallel_needs_hsa_kernel_p): New function.
12795 (expand_parallel_call): Register apprpriate parallel child
12796 functions as HSA kernels.
12797 (grid_launch_attributes_trees): New type.
12798 (grid_attr_trees): New variable.
12799 (grid_create_kernel_launch_attr_types): New function.
12800 (grid_insert_store_range_dim): Likewise.
12801 (grid_get_kernel_launch_attributes): Likewise.
12802 (get_target_argument_identifier_1): Likewise.
12803 (get_target_argument_identifier): Likewise.
12804 (get_target_argument_value): Likewise.
12805 (push_target_argument_according_to_value): Likewise.
12806 (get_target_arguments): Likewise.
12807 (expand_omp_target): Call get_target_arguments instead of looking
12808 up for teams and thread limit.
12809 (grid_expand_omp_for_loop): New function.
12810 (grid_arg_decl_map): New type.
12811 (grid_remap_kernel_arg_accesses): New function.
12812 (grid_expand_target_kernel_body): New function.
12813 (expand_omp): Call it.
12814 (lower_omp_for): Do not emit phony constructs.
12815 (lower_omp_taskreg): Do not emit phony constructs but create for them
12816 a temporary variable receiver_decl.
12817 (lower_omp_taskreg): Do not emit phony constructs.
12818 (lower_omp_teams): Likewise.
12819 (lower_omp_grid_body): New function.
12820 (lower_omp_1): Call it.
12821 (grid_reg_assignment_to_local_var_p): New function.
12822 (grid_seq_only_contains_local_assignments): Likewise.
12823 (grid_find_single_omp_among_assignments_1): Likewise.
12824 (grid_find_single_omp_among_assignments): Likewise.
12825 (grid_find_ungridifiable_statement): Likewise.
12826 (grid_target_follows_gridifiable_pattern): Likewise.
12827 (grid_remap_prebody_decls): Likewise.
12828 (grid_copy_leading_local_assignments): Likewise.
12829 (grid_process_kernel_body_copy): Likewise.
12830 (grid_attempt_target_gridification): Likewise.
12831 (grid_gridify_all_targets_stmt): Likewise.
12832 (grid_gridify_all_targets): Likewise.
12833 (execute_lower_omp): Call grid_gridify_all_targets.
12834 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
12835 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
12836 (tree_omp_clause): Added union field dimension.
12837 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
12838 * tree.c (omp_clause_num_ops): Added number of arguments of
12839 OMP_CLAUSE__GRIDDIM_.
12840 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
12841 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
12842 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
12843 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
12844 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
12845 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
12846 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
12847 * tree-pass.h (make_pass_gen_hsail): Declare.
12848 (make_pass_ipa_hsa): Likewise.
12849 * ipa-hsa.c: New file.
12850 * lto-section-in.c (lto_section_name): Add hsa section name.
12851 * lto-streamer.h (lto_section_type): Add hsa section.
12852 * timevar.def (TV_IPA_HSA): New.
12853 * hsa-brig-format.h: New file.
12854 * hsa-brig.c: New file.
12855 * hsa-dump.c: Likewise.
12856 * hsa-gen.c: Likewise.
12857 * hsa.c: Likewise.
12858 * hsa.h: Likewise.
12859 * toplev.c (compile_file): Call hsa_output_brig.
12860 * hsa-regalloc.c: New file.
12861
12862 2016-01-18 Jeff Law <law@redhat.com>
12863
12864 PR tree-optimization/69320
12865 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
12866 ranged object, do nothing if the RHS constant is not [0..1].
12867 (optimize_stmt): Comparing a boolean ranged object against a
12868 constant outside [0..1] results in a compile-time constant.
12869
12870 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
12871 test.
12872
12873 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
12874
12875 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12876 (Option Summary): Update to reflect new section and moved options.
12877 (C++ Dialect Options): Move -fstats to new section.
12878 (Debugging Options): Move all dump, statistics, and other GCC
12879 developer options to new section. Rewrite section introduction
12880 and re-order remaining options to put the more basic ones first.
12881 (Optimization Options): Move -fira-verbose and -flto-report* to
12882 new section.
12883 (Developer Options): New section incorporating moved options.
12884 * doc/cppopts.texi (-dM): Update cross-reference.
12885
12886 2016-01-18 Richard Henderson <rth@redhat.com>
12887
12888 PR target/69176
12889 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
12890 operands to pseudo only if CSE is expected. Split long immediate
12891 operands only after reload, and for the stack pointer.
12892 (*add<GPI>3_pluslong): Remove.
12893 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
12894 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
12895 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
12896 (*add<GPI>3 peepholes): New.
12897 (*add<GPI>3 splitters): New.
12898 * config/aarch64/constraints.md (Upl): New.
12899 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
12900
12901 2016-01-18 Richard Biener <rguenther@suse.de>
12902
12903 PR tree-optimization/69297
12904 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
12905 stmt at most once.
12906 (vect_bb_vectorization_profitable_p): Clear visited flag again.
12907
12908 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12909
12910 PR middle-end/68542
12911 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
12912 of mixind vector and scalar types.
12913 (fold_relational_const): Add handling of vector
12914 comparison with boolean result.
12915 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
12916 comparison of vector operands with boolean result for EQ/NE only.
12917 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
12918 (verify_gimple_cond): Likewise.
12919 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
12920 valid type of VAL.
12921
12922 2016-01-18 Joseph Myers <joseph@codesourcery.com>
12923
12924 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
12925 !TARGET_OCTEON.
12926
12927 2016-01-18 Richard Biener <rguenther@suse.de>
12928
12929 PR middle-end/69308
12930 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
12931
12932 2016-01-18 Tom de Vries <tom@codesourcery.com>
12933
12934 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
12935
12936 2016-01-18 Tom de Vries <tom@codesourcery.com>
12937
12938 * omp-low.c (set_oacc_fn_attrib): Make extern.
12939 * omp-low.h (set_oacc_fn_attrib): Declare.
12940 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
12941 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
12942 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
12943 Add and handle function parameter oacc_kernels_p.
12944 (find_reduc_addr, get_omp_data_i_param): New function.
12945 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
12946 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
12947 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
12948 Calculate dominance info. Skip loops that are not in a kernels region
12949 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
12950 (pass_parallelize_loops::execute): Call parallelize_loops with
12951 oacc_kernels_p argument.
12952 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
12953 New member function.
12954 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
12955 * passes.def: Add argument to pass_parallelize_loops instantation.
12956
12957 2016-01-18 Tom de Vries <tom@codesourcery.com>
12958
12959 * tree-parloops.c (pass_parallelize_loops::execute): Allow
12960 pass_parallelize_loops to be run outside the loop pipeline.
12961
12962 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12963
12964 * tree-scalar-evolution.c (follow_copies_to_constant): New.
12965 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
12966
12967 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12968
12969 PR target/63679
12970 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
12971 using get_ref_base_and_extent.
12972 (equal_mem_array_ref_p): New.
12973 (hashable_expr_equal_p): Add call to previous.
12974
12975 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12976
12977 PR target/63679
12978 * tree-sra.c (disqualified_constants, constant_decl_p): New.
12979 (sra_initialize): Allocate disqualified_constants.
12980 (sra_deinitialize): Free disqualified_constants.
12981 (disqualify_candidate): Update disqualified_constants when appropriate.
12982 (create_access): Scan for constant-pool entries as we go along.
12983 (scalarizable_type_p): Add check against type_contains_placeholder_p.
12984 (maybe_add_sra_candidate): Allow constant-pool entries.
12985 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
12986 (initialize_constant_pool_replacements): New.
12987 (sra_modify_assign): Avoid mangling assignments created by previous,
12988 and don't generate writes into constant pool.
12989 (sra_modify_function_body): Call initialize_constant_pool_replacements.
12990
12991 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12992
12993 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
12994 andnot instruction.
12995 (scalar_chain::convert_op): Likewise.
12996 * config/i386/i386.md (*andndi3_doubleword): New.
12997
12998 2016-01-18 Richard Biener <rguenther@suse.de>
12999
13000 PR tree-optimization/69170
13001 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
13002 building a vector from scalar results of a pattern stmt.
13003
13004 2016-01-18 Jakub Jelinek <jakub@redhat.com>
13005
13006 * haifa-sched.c (autopref_multipass_init): Work around
13007 -Wmaybe-uninitialized warning.
13008
13009 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
13010
13011 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
13012 against the constant 0.
13013
13014 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13015
13016 PR tree-optimization/68799
13017 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
13018 look up phi candidates in the statement-candidate map.
13019 (phi_add_costs): Likewise.
13020 (record_phi_increments): Likewise.
13021 (phi_incr_cost): Likewise.
13022 (ncd_with_phi): Likewise.
13023 (all_phi_incrs_profitable): Likewise.
13024
13025 2016-01-17 Jakub Jelinek <jakub@redhat.com>
13026
13027 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
13028 -Wmaybe-uninitialized warning.
13029
13030 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
13031
13032 * doc/invoke.texi (Invoking GCC): Add new section to menu.
13033 (Option Summary): Update to reflect new section and moved options.
13034 (C++ Dialect Options): Move -fvtable-verify and related options.
13035 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
13036 and profiling-related options.
13037 (Optimization Options): Move profile generation options and
13038 -fstack-protector and related options.
13039 (Instrumentation Options): New section incorporating moved options.
13040 (Code Generation Options): Move -finstrument-functions and
13041 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
13042
13043 2016-01-16 Tom de Vries <tom@codesourcery.com>
13044
13045 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
13046
13047 2016-01-16 Tom de Vries <tom@codesourcery.com>
13048
13049 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
13050
13051 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
13052
13053 * hash-table.h (hash_table::empty): Turn into an inline wrapper
13054 that checks whether the table is already empty. Rename the
13055 original implementation to...
13056 (hash_table::empty_slot): ...this new private function.
13057
13058 2016-01-15 David Malcolm <dmalcolm@redhat.com>
13059
13060 PR diagnostic/68899
13061 * diagnostic-show-locus.c (layout::print_source_line): Move x
13062 offset of line until after call to
13063 get_line_width_without_trailing_whitespace.
13064
13065 2016-01-15 Jeff Law <law@redhat.com>
13066
13067 PR tree-optimization/69270
13068 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
13069 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
13070 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
13071 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
13072 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
13073 ssa_name_has_boolean_range and constant_boolean_node.
13074
13075 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
13076
13077 PR rtl-optimization/69030
13078 * lra-spills.c (remove_pseudos): Check nrefs and make the function
13079 returning bool.
13080 (spill_pseudos): Delete debug insn for dead pseudo.
13081 (lra_spill): Initiate spill_hard_reg and slots memory separately.
13082
13083 2016-01-15 Jiong Wang <jiong.wang@arm.com>
13084
13085 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
13086 New.
13087 (TYPES_UNOPUS): Likewise.
13088 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
13089 builtin type, from UNOP to UNOPUS.
13090 (lbtruncuv4sf): Likewise.
13091 (lbtruncuv2df): Likewise.
13092 (lrounduv2sf): Likewise.
13093 (lrounduv4sf): Likewise.
13094 (lrounduv2df): Likewise.
13095 (lroundusf): Likewise.
13096 (lroundusf): Likewise.
13097 (lceiluv2sf): Likewise.
13098 (lceiluv4sf): Likewise.
13099 (lceiluv2df): Likewise.
13100 (lceilusf): Likewise.
13101 (lceiludf): Likewise.
13102 (lflooruv2sf): Likewise.
13103 (lflooruv4sf): Likewise.
13104 (lflooruv2df): Likewise.
13105 (lfloorusf): Likewise.
13106 (lfloorudf): Likewise.
13107 (lfrintnuv2sf): Likewise.
13108 (lfrintnuv4sf): Likewise.
13109 (lfrintnuv2df): Likewise.
13110 (lfrintnusf): Likewise.
13111 (lfrintnudf): Likewise.
13112 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
13113 conversion.
13114 (vcvtq_u32_f32): Likewise.
13115 (vcvtq_u64_f64): Likewise.
13116 (vcvta_u32_f32): Likewise.
13117 (vcvtaq_u32_f32): Likewise.
13118 (vcvtaq_u64_f64): Likewise.
13119 (vcvtm_u32_f32): Likewise.
13120 (vcvtmq_u32_f32): Likewise.
13121 (vcvtmq_u64_f64): Likewise.
13122 (vcvtn_u32_f32): Likwise.
13123 (vcvtnq_u32_f32): Likewise.
13124 (vcvtnq_u64_f64): Likewise.
13125 (vcvtp_u32_f32): Likewise.
13126 (vcvtpq_u32_f32): Likewise.
13127 (vcvtpq_u64_f64): Likewise.
13128 (vcvtmd_u64_f64): Likewise.
13129 (vcvtms_u32_f32): Likewise.
13130 (vcvtad_u64_f64): Likewise.
13131 (vcvtas_u32_f32): Likewise.
13132 (vcvtnd_u64_f64): Likewise.
13133 (vcvtns_u32_f32): Likewise.
13134 (vcvtpd_u64_f64): Likewise.
13135 (vcvtps_u32_f32): Likewise.
13136
13137 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13138
13139 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
13140 CSEL of zero_extended registers.
13141
13142 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13143
13144 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
13145 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
13146
13147 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13148
13149 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
13150 false when argument string is not found in the attributes table
13151 at all.
13152
13153 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
13154
13155 PR target/68609
13156 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
13157 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
13158 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
13159 precision estimate.
13160
13161 2016-01-15 Richard Biener <rguenther@suse.de>
13162
13163 PR tree-optimization/66856
13164 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
13165 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
13166 (vect_create_new_slp_node): Increment stmt reference count.
13167 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
13168 an SLP tree before swapping operands.
13169 (vect_build_slp_tree): Likewise.
13170 (destroy_bb_vec_info): Free stmt info after SLP instances.
13171 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
13172 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
13173 (STMT_VINFO_NUM_SLP_USES): New macro.
13174
13175 2016-01-15 Richard Biener <rguenther@suse.de>
13176
13177 PR debug/69137
13178 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
13179 (add_linkage_name): ... here.
13180 (gen_typedef_die): Use add_linkage_name_raw instead of
13181 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
13182 if necessary.
13183
13184 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13185
13186 * gimplify.c (oacc_default_clause): Decode reference and pointer
13187 types for both kernels and parallel regions.
13188
13189 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
13190
13191 PR middle-end/69246
13192 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
13193
13194 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13195
13196 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
13197 (convert_scalars_to_vector): Likewise.
13198
13199 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
13200
13201 * doc/extend.texi (Type Traits): Fix grammar.
13202
13203 2016-01-15 Martin Jambor <mjambor@suse.cz>
13204
13205 * tree-inline.c (remap_decl): Use existing dclarations if
13206 remapping a type and prevent_decl_creation_for_types.
13207 (replace_locals_stmt): Do an initial remapping of non-VLA typed
13208 decls first. Do real remapping with
13209 prevent_decl_creation_for_types set.
13210 * tree-inline.h (copy_body_data): New field
13211 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
13212 padding.
13213
13214 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
13215
13216 * config/s390/s390.opt (mmvcle): More verbose help text.
13217
13218 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
13219
13220 * config/s390/s390.opt: Add period to -mzvector option text.
13221
13222 2016-01-15 Richard Biener <rguenther@suse.de>
13223
13224 PR tree-optimization/68961
13225 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
13226 of invariants in stores again.
13227
13228 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13229
13230 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
13231
13232 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13233
13234 * config/i386/i386.c (ix86_expand_branch): Don't split
13235 DI mode xor instruction to SI mode.
13236
13237 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
13238
13239 PR ipa/68148
13240 * ipa-icf.c (sem_function::merge): Virtual functions may become
13241 reachable even if they address is not taken and there are no
13242 idrect calls.
13243
13244 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
13245
13246 * lto-streamer-out.c (subtract_estimated_size): New function.
13247 (get_symbol_initial_value): Use it.
13248
13249 2016-01-15 Christian Bruel <christian.bruel@st.com>
13250
13251 PR target/65837
13252 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
13253 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
13254 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
13255 use add_builtin_function_ext_scope instead of add_builtin_function.
13256 (neon_set_p, neon_crypto_set_p): Remove.
13257 (arm_init_builtins): Always call arm_init_neon_builtins and
13258 arm_init_crypto_builtins.
13259 (arm_expand_builtin): Check that builtins are allowed for the arch.
13260 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
13261 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
13262 arm_init_neon_builtins call.
13263
13264 2016-01-15 Richard Biener <rguenther@suse.de>
13265
13266 PR tree-optimization/69117
13267 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
13268 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
13269 of the leader conservatively.
13270 (free_scc_vn): Restore original SSA name infos.
13271
13272 2016-01-14 Jeff Law <law@redhat.com>
13273
13274 PR tree-optimization/69270
13275 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
13276 single bit of precision, verify it's also unsigned.
13277 (record_edge_info): Use constant_boolean_node rather than fold_convert
13278 to convert boolean_true/boolean_false to the right type.
13279
13280 2016-01-14 Richard Henderson <rth@redhat.com>
13281
13282 PR rtl-opt/69014
13283 * loop-doloop.c (record_reg_sets): New.
13284 (doloop_optimize): Reject the transform if the sequence
13285 clobbers registers live at the end of the loop block.
13286 (doloop_optimize_loops): Enable df_live if needed.
13287
13288 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13289
13290 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
13291 * config/rs6000/rs6000.c: Likewise.
13292 * config/rs6000/rs6000.h: Likewise.
13293 * config/rs6000/rs6000.md: Likewise.
13294 * doc/extend.texi: Likewsie.
13295
13296 2016-01-14 Jeff Law <law@redhat.com>
13297
13298 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
13299 typo.
13300
13301 2016-01-14 Richard Henderson <rth@redhat.com>
13302
13303 PR c/69272
13304 PR tree-opt/68964
13305 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
13306 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
13307 instead of builtin_decl_declared_p to test for declaration.
13308
13309 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
13310
13311 * doc/loop.texi (Loop Analysis and Representation): Document
13312 loop_depth function.
13313
13314 2016-01-14 Tom de Vries <tom@codesourcery.com>
13315
13316 PR tree-optimization/68773
13317 * omp-low.c (expand_omp_target): Don't set force_output.
13318 * varpool.c (varpool_node::get_create): Same.
13319 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
13320 offload_funcs with force_output.
13321
13322 2016-01-14 Jakub Jelinek <jakub@redhat.com>
13323
13324 PR debug/69244
13325 * lra-eliminations.c (move_plus_up): Don't change anything if either
13326 the outer or inner subreg mode is not MODE_INT.
13327 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
13328 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
13329
13330 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
13331
13332 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
13333 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
13334 reduc_uplus_@var{m}): Remove.
13335 * expr.c (expand_expr_real_2): Remove expansion path for
13336 reduc_[us](min|max|plus) optabs.
13337 * optabs-tree.c (scalar_reduc_to_vector): Remove.
13338 * optabs-tree.h (scalar_reduc_to_vector): Remove.
13339 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
13340 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
13341 * tree-vect-loop.c (vectorizable_reduction): Remove test for
13342 reduc_[us](min|max|plus) optabs.
13343
13344 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
13345
13346 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
13347 (reduc_plus_scal_v2sf): New.
13348 (reduc_smax_v2sf): Rename to...
13349 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
13350 (reduc_smin_v2sf): Rename to...
13351 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
13352
13353 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
13354
13355 * alias.c (compare_base_symbol_refs): New function.
13356 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
13357 it.
13358
13359 2016-01-14 Jakub Jelinek <jakub@redhat.com>
13360
13361 PR middle-end/68146
13362 PR tree-optimization/69155
13363 * tree-complex.c: Include cfganal.h.
13364 (phis_to_revisit): New variable.
13365 (extract_component): Add phiarg_p argument. Assert that returned
13366 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
13367 (update_phi_components): Partly rewrite to use loop over real/imag
13368 components instead of code duplication. If extract_component returns
13369 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
13370 create_tmp_reg into the PHI node instead, and mention the phi triplet
13371 in phis_to_revisit.
13372 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
13373 in phis_to_revisit at the end.
13374
13375 2016-01-14 Richard Biener <rguenther@suse.de>
13376
13377 PR tree-optimization/68060
13378 * tree-vect-loop.c (vect_is_simple_reduction): Check the
13379 outer loop reduction is only used in the inner loop before
13380 detecting a double reduction.
13381
13382 2016-01-14 Jakub Jelinek <jakub@redhat.com>
13383
13384 PR target/68269
13385 * combine.c (expand_field_assignment): Punt if compute_mode is
13386 unsupported scalar mode.
13387
13388 2016-01-14 Richard Biener <rguenther@suse.de>
13389
13390 PR tree-optimization/66856
13391 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
13392 SLP node only if it built successfully.
13393 (vect_analyze_slp_instance): Adjust.
13394
13395 2016-01-14 Jeff Law <law@redhat.com>
13396
13397 PR tree-optimization/69270
13398 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
13399 (record_edge_info): Use it. Convert boolean_{true,false}_node
13400 to the type of op0.
13401
13402 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
13403
13404 PR ipa/66487
13405 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
13406 use block_ultimate_origin
13407 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
13408
13409 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
13410
13411 * doc/invoke.texi (Submodel Options): Rename section to
13412 "Machine-Dependent Options" to better reflect its content.
13413 Rewrite introductory text to remove archaic CPU names.
13414 Update references.
13415
13416 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
13417
13418 * doc/invoke.texi (Code Gen Options): Move section up in file,
13419 before target-specific options. Update menu and option summary
13420 to reflect the new section ordering.
13421
13422 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
13423
13424 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
13425 (C++ Dialect Options): Add cross-reference to -std option.
13426 * doc/standards.texi (C++ Language): Document C++14 support.
13427
13428 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13429
13430 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
13431 for pack/unpack functions for __ibm128.
13432 (PACK_IF): Likewise.
13433 (UNPACK_IF): Likewise.
13434
13435 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13436 support for __ibm128 pack/unpack functions.
13437 (rs6000_invalid_builtin): Likewise.
13438 (rs6000_init_builtins): Likewise.
13439 (rs6000_opt_masks): Likewise.
13440
13441 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
13442 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
13443 functions
13444 (RS6000_BTM_COMMON): Likewise.
13445
13446 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
13447 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
13448 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
13449 128-bit floating point. Add support for the double values to be
13450 in Altivec registers for TF/IF packing and unpacking, but restrict
13451 TD packing sub-fields to be FPR registers. Don't allow overlapped
13452 register support for packing. Allow pack inputs to be memory
13453 locations. Don't build generator functions for unpack<mode>_dm
13454 and unpack<mode>_nodm.
13455 (unpack<mode>_dm): Likewise.
13456 (unpack<mode>_nodm): Likewise.
13457 (pack<mode>): Likewise.
13458
13459 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
13460 built-in functions to pack/unpack explicit __ibm128 values.
13461 (__builtin_unpack_ibm128): Likewise.
13462
13463 * doc/extend.texi (PowerPC Built-in Functions): Document
13464 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
13465
13466 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
13467
13468 PR c/66208
13469 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
13470 Add new arg loc and pass it down as context.
13471 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
13472 to the location to use for the warning.
13473 (check_function_arguments): New arg loc. All callers changed. Pass
13474 it to check_function_nonnull.
13475 * c-common.h (check_function_arguments): Adjust declaration.
13476
13477 2016-01-13 Jakub Jelinek <jakub@redhat.com>
13478
13479 PR tree-optimization/69156
13480 * gimple.c (validate_type): Removed.
13481 (gimple_builtin_call_types_compatible_p): Use
13482 useless_type_conversion_p instead of validate_type.
13483 * value-prof.c (gimple_stringop_fixed_value): Fold
13484 icall_size to correct type.
13485
13486 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
13487
13488 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
13489 effects.
13490
13491 2016-01-13 Richard Henderson <rth@redhat.com>
13492
13493 PR tree-opt/68964
13494 * target.def (builtin_tm_load, builtin_tm_store): Remove.
13495 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
13496 (ix86_builtin_tm_store): Remove.
13497 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13498 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13499 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13500 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13501 * doc/tm.texi: Rebuild.
13502
13503 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
13504 (BUILT_IN_TM_MEMCPY_RTWN): New.
13505 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
13506 fallback from vector to integer helpers.
13507 (build_tm_load): Handle vector types directly, instead of
13508 via target hook.
13509 (build_tm_store): Likewise.
13510 (expand_assign_tm): Prepare for register types not handled by
13511 the above. Copy them to memory and use memcpy.
13512 * tree.c (tm_define_builtin): New.
13513 (find_tm_vector_type): New.
13514 (build_tm_vector_builtins): New.
13515 (build_common_builtin_nodes): Call it.
13516
13517 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
13518
13519 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
13520 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
13521
13522 2016-01-13 Tom de Vries <tom@codesourcery.com>
13523
13524 PR tree-optimization/69169
13525 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
13526 handled_struct_type param.
13527 (create_variable_info_for, intra_create_variable_infos): Call
13528 create_variable_info_for_1 with extra arg.
13529
13530 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
13531
13532 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
13533 and "armv8.1-a+crc" entries.
13534
13535 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
13536
13537 PR target/69228
13538 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
13539 Change first operand predicate from register_or_constm1_operand
13540 to register_operand.
13541 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
13542 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
13543 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
13544 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
13545 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
13546 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
13547 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
13548 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
13549 comparison with constm1_rtx from vec_prefetch_gen part.
13550
13551 2016-01-13 Richard Biener <rguenther@suse.de>
13552
13553 PR tree-optimization/69013
13554 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
13555 Exchange assert for a test.
13556
13557 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13558
13559 PR target/69247
13560 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
13561
13562 2016-01-13 Richard Biener <rguenther@suse.de>
13563
13564 PR tree-optimization/69242
13565 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
13566 assert with a check.
13567
13568 2016-01-13 Richard Biener <rguenther@suse.de>
13569
13570 PR tree-optimization/69186
13571 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13572 Properly guard vect_update_misalignment_for_peel call.
13573
13574 2016-01-12 Jeff Law <law@redhat.com>
13575
13576 PR tree-optimization/pr67755
13577 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
13578 "need_profile_correction".
13579 (thread_block_1): Initialize new field to false by default. If we
13580 have multiple thread paths through a common joiner to different
13581 final targets, then set new field to true.
13582 (compute_path_counts): Only do count adjustment when it's really
13583 needed.
13584
13585 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13586
13587 * doc/invoke.texi (Spec Files): Move section down in file, past
13588 all command-line option descriptions.
13589
13590 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13591
13592 PR middle-end/54809
13593 * doc/gty.texi: Remove documentation of mark_hook.
13594 * gengtype.c (struct write_types_data): Remove code to support
13595 mark_hook attribute.
13596 (walk_type): Likewise.
13597 (write_func_for_structure): Likewise.
13598
13599 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13600
13601 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
13602 Directory Options, and -specs= to Overall Options.
13603 (Overall Options): Adjust similarly. Reorder to group related
13604 options together. Make -specs= cross-reference the spec file details.
13605 (Directory Options): Adjust similarly.
13606
13607 2016-01-12 Jeff Law <law@redhat.com>
13608
13609 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
13610
13611 2016-01-12 Olivier Hainque <hainque@adacore.com>
13612
13613 * gcc.c (spec_undefvar_allowed): New global.
13614 (process_command): Set to true when running for --version or --help,
13615 alone or together.
13616 (getenv_spec_function): When the variable is not defined, use the
13617 variable name as the variable value if we're allowed not to issue
13618 a fatal error.
13619
13620 2016-01-12 Bin Cheng <bin.cheng@arm.com>
13621
13622 PR tree-optimization/68911
13623 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
13624 information computed for expression "init + nit * step".
13625
13626 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13627
13628 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
13629 about name of GCC executable. Remove deleted node from menu.
13630 (Directory Options) <-B>: Remove cross-reference to deleted node.
13631 (Target Options): Delete section.
13632
13633 2016-01-12 Christian Bruel <christian.bruel@st.com>
13634
13635 PR target/69180
13636 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
13637 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
13638
13639 2016-01-12 Jakub Jelinek <jakub@redhat.com>
13640
13641 PR target/69198
13642 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
13643 aligned_mem is properly set for AVX512-VL floating point masked
13644 stores.
13645
13646 PR target/69175
13647 * ifcvt.c (cond_exec_process_if_block): When removing the last
13648 insn from then_bb, remove also any possible barriers that follow it.
13649
13650 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
13651
13652 PR target/68456
13653 PR target/69226
13654 * config/i386/iamcu.h (SIZE_TYPE): New macro.
13655 (PTRDIFF_TYPE): Likewise.
13656 (WCHAR_TYPE): Likewise.
13657 (WCHAR_TYPE_SIZE): Likewise.
13658 (STDINT_LONG32): Likewise.
13659
13660 2016-01-12 Richard Biener <rguenther@suse.de>
13661
13662 PR tree-optimization/69053
13663 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
13664 convert initial value for cond reductions.
13665
13666 2016-01-12 Richard Biener <rguenther@suse.de>
13667
13668 PR tree-optimization/69007
13669 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
13670 widen_sum after dot_prod and sad.
13671
13672 2016-01-12 Richard Biener <rguenther@suse.de>
13673
13674 PR tree-optimization/69168
13675 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
13676 pattern stmt SLP type.
13677 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
13678 end up unused so cope with that case.
13679
13680 2016-01-12 Richard Biener <rguenther@suse.de>
13681
13682 PR tree-optimization/69157
13683 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
13684 stmts def type only during analyze phase.
13685 (vectorizable_call): Likewise.
13686 (vectorizable_simd_clone_call): Likewise.
13687 (vectorizable_conversion): Likewise.
13688 (vectorizable_assignment): Likewise.
13689 (vectorizable_shift): Likewise.
13690 (vectorizable_operation): Likewise.
13691 (vectorizable_store): Likewise.
13692 (vectorizable_load): Likewise.
13693
13694 2016-01-12 Richard Biener <rguenther@suse.de>
13695
13696 PR tree-optimization/69174
13697 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
13698 space.
13699 (vectorizable_load): Properly compute the number of loads needed
13700 for permuted strided SLP loads and do not spuriously assign
13701 to SLP_TREE_VEC_STMTS.
13702
13703 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
13704
13705 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
13706 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
13707 (MD_EXEC_PREFIX): Remove.
13708 (MD_STARTFILE_PREFIX) Removee.
13709 (FILE_NAME_ABSOLUTE_P): Remove.
13710 (CPP_SPEC): Do not read macros from sys/version.h.
13711 (LINK_COMMAND_SPEC): Remove.
13712 (LOCAL_INCLUDE_DIR): Remove.
13713 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
13714 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
13715 (POST_LINK_SPEC): Define to invoke stubify after linker
13716 (LIBSTDCXX): Remove define
13717 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
13718 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
13719 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
13720 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
13721 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
13722 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
13723 (i386_djgpp_asm_named_section): Add propotype of new procedure
13724
13725 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
13726 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
13727 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
13728 in config/i386/djgpp.h).
13729 (STANDARD_STARTFILE_PREFIX_2): Define identical to
13730 STANDARD_STARTFILE_PREFIX_1.
13731 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
13732 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
13733 installation errors.
13734 (MAX_OFILE_ALIGNMENT): Define to 128.
13735 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
13736
13737 * config/i386/djgpp.c: New file. Add implementation of
13738 i386_djgpp_asm_named_section.
13739
13740 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
13741
13742 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
13743 Add rule for building djgpp.o.
13744
13745 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13746
13747 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
13748 (rtx_is_swappable_p): Reductions are swappable.
13749 (insn_is_swappable_p): V2DF reductions are swappable.
13750
13751 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
13752
13753 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
13754 reloads for other unsupported memory operands.
13755
13756 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13757 Jim Wilson <jim.wilson@linaro.org>
13758
13759 PR target/69194
13760 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
13761 copy_to_mode_reg instead of force_reg.
13762
13763 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13764
13765 PR target/69225
13766 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
13767 TARGET_80387 is true.
13768
13769 2016-01-11 Jakub Jelinek <jakub@redhat.com>
13770
13771 PR target/69071
13772 * lra-eliminations.c (move_plus_up): Only move plus up
13773 if subreg of the constant can be simplified into constant
13774 and use the simplified subreg of the constant instead of
13775 the original constant.
13776
13777 * fold-const.c (fold_convertible_p): Don't return true
13778 for conversion of VECTOR_TYPE to same sized integral type.
13779 (fold_convert_loc): Fix up formatting. Fold conversion of
13780 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
13781 instead of NOP_EXPR.
13782
13783 PR tree-optimization/69214
13784 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
13785 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
13786 Formatting fix.
13787
13788 PR tree-optimization/69207
13789 * tree-vect-slp.c (vect_get_constant_vectors): For
13790 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
13791 fold_convertible_p to vector_type's element type, and always
13792 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
13793
13794 2016-01-11 Richard Biener <rguenther@suse.de>
13795
13796 PR tree-optimization/69173
13797 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
13798 fixup the cycle if all stmts are in a pattern.
13799
13800 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
13801
13802 PR middle-end/68999
13803 * alias.c (base_alias_check): Move check for addresses with
13804 alignment ANDs before the call for compare_base_decls.
13805 (memrefs_conflict_p): Return -1 for different decls
13806 that went through alignment adjustments.
13807
13808 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13809
13810 PR rtl-optimization/68796
13811 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
13812 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
13813 and QImode comparisons against zero with CC_NZmode.
13814 * config/aarch64/iterators.md (short_mask): New mode_attr.
13815
13816 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13817
13818 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
13819 (<avx512>_store<mode>_mask): Likewise.
13820
13821 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
13822 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13823
13824 PR rtl-optimization/68841
13825 * ifcvt.c (struct noce_if_info): Add orig_x field.
13826 (bbs_ok_for_cmove_arith): Add to_rename parameter.
13827 Don't record conflicts on to_rename if it's present.
13828 Allow memory destinations in sets.
13829 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
13830 blocks, passing orig_x to the checks.
13831 (noce_process_if_block): Set if_info->orig_x appropriately.
13832
13833 2016-01-11 Tom de Vries <tom@codesourcery.com>
13834
13835 PR tree-optimization/69069
13836 * tree-parloops.c (create_parallel_loop): Add missing phi args.
13837
13838 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13839
13840 PR rtl-optimization/68920
13841 * config/i386/i386.c (ix86_option_override_internal): Restrict number
13842 of conditional moves for RTL if-conversion to 1 for
13843 TARGET_ONE_IF_CONV_INSN.
13844 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
13845 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
13846 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
13847 parameter to restirct number of conditional moves for
13848 RTL if-conversion.
13849 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
13850 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
13851 conditionl moves.
13852
13853 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
13854
13855 PR bootstrap/69123
13856 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
13857 onepart vars. Fix typo in comment. Fix reversed condition in
13858 unshare test.
13859 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
13860
13861 PR bootstrap/69123
13862 * var-tracking.c (dump_onepart_variable_differences): New.
13863 (dataflow_set_different): If a detailed dump is requested,
13864 delay early returns and dump differences between onepart
13865 variables present before and after, and added variables.
13866
13867 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13868
13869 PR target/69010
13870 * expr.c (expand_expr_real_1): For boolean vector constants
13871 with a scalar mode use const_scalar_mask_from_tree.
13872 (const_scalar_mask_from_tree): New.
13873 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
13874 assigned to a mask type to handle constants.
13875
13876 2016-01-11 Martin Jambor <mjambor@suse.cz>
13877
13878 PR ipa/69044
13879 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
13880 useless parameters if we cannot change function signature.
13881
13882 2016-01-11 Martin Jambor <mjambor@suse.cz>
13883
13884 PR ipa/66616
13885 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
13886 flag.
13887
13888 2016-01-11 Tom de Vries <tom@codesourcery.com>
13889
13890 PR tree-optimization/69109
13891 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
13892 latch with phi.
13893
13894 2016-01-11 Tom de Vries <tom@codesourcery.com>
13895
13896 PR tree-optimization/69108
13897 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
13898 res is not used in a phi.
13899
13900 2016-01-11 Yury Gribov <y.gribov@samsung.com>
13901
13902 PR 67425
13903 * common.opt (frandom-seed): Fix parameter name.
13904 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
13905
13906 2016-01-11 Tom de Vries <tom@codesourcery.com>
13907
13908 PR tree-optimization/69058
13909 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
13910 not supported.
13911
13912 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 * config/arc/arc.opt (mdiv-rem): Add period to the end.
13915 (mcode-density): Likewise.
13916
13917 2016-01-10 Tom de Vries <tom@codesourcery.com>
13918
13919 PR tree-optimization/69062
13920 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
13921 (parallelize_loops): Don't paralelize loop that has phi with address
13922 arg.
13923
13924 2016-01-10 Tom de Vries <tom@codesourcery.com>
13925
13926 PR tree-optimization/69039
13927 * tree-parloops.c (try_create_reduction_list): Only allow single exit
13928 phi for reduction.
13929
13930 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
13931
13932 PR middle-end/68743
13933 * match.pd: Require target has function_c99_misc before doing
13934 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
13935
13936 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
13937
13938 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
13939 use GMPINC.
13940 * configure: Regenerate.
13941
13942 2016-01-09 Jakub Jelinek <jakub@redhat.com>
13943
13944 PR middle-end/50865
13945 PR tree-optimization/69097
13946 * fold-const.h (expr_not_equal_to): New prototype.
13947 * fold-const.c: Include stringpool.h and tree-ssanames.h.
13948 (expr_not_equal_to): New function.
13949 * match.pd (X % -Y is the same as X % Y): Don't optimize
13950 unless X is known not to be equal to minimum or Y is known
13951 not to be equal to -1.
13952 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
13953 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
13954 (simplify_stmt_using_ranges): Adjust caller.
13955 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
13956 substitute_and_fold.
13957
13958 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
13959
13960 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
13961 w/o DECL_NAME.
13962
13963 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13964
13965 PR tree-optimization/69167
13966 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
13967 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
13968 ops[0] comparison.
13969 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
13970
13971 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13972 Richard Biener <rguenther@suse.de>
13973
13974 PR tree-optimization/68707
13975 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
13976 instances that can be handled via vect_load_lanes.
13977
13978 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
13979
13980 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
13981 if we can't determine address equivalence.
13982 * alias.c (compare_base_decl): Update for changed return value of
13983 symtab_node::equal_address_to.
13984
13985 2016-01-08 Jason Merrill <jason@redhat.com>
13986
13987 PR c++/68983
13988 PR c++/67557
13989 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
13990 * expr.c (store_field): Not here.
13991 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
13992 call with TREE_ADDRESSABLE type.
13993 * tree-cfg.c (verify_gimple_call): Adjust.
13994
13995 2016-01-08 Olivier Hainque <hainque@adacore.com>
13996
13997 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
13998 libc_internal.
13999
14000 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
14001
14002 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
14003 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
14004 (reduc_smin_v2sf): Rename to...
14005 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
14006 (reduc_splus_v2sf): Rename to...
14007 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
14008
14009 2016-01-08 Jakub Jelinek <jakub@redhat.com>
14010
14011 PR tree-optimization/69162
14012 * gimplify.c (gimplify_va_arg_expr): Encode original type of
14013 valist argument in another argument.
14014 (gimplify_modify_expr): Adjust for the above change. Cleanup.
14015 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
14016 to determine the va_list type, build a MEM_REF instead of
14017 build_fold_indirect_ref.
14018
14019 PR tree-optimization/69172
14020 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
14021 gimple_build.
14022
14023 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
14024
14025 PR tree-optimization/67781
14026 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
14027 and cmpnop in two steps: first the ones not accessed in original
14028 gimple expression in a endian independent way and then the ones not
14029 accessed in the final result in an endian-specific way.
14030
14031 2016-01-08 Jakub Jelinek <jakub@redhat.com>
14032
14033 PR tree-optimization/69083
14034 * tree-vect-slp.c (vect_get_constant_vectors): For
14035 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
14036 element type. If op is fold_convertible_p to vector_type's element
14037 type, use NOP_EXPR instead of VCE.
14038
14039 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
14040
14041 PR rtl-optimization/67778
14042 PR rtl-optimization/68634
14043 PR rtl-optimization/68909
14044 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
14045 block from the stack until done with it. Remove a superfluous
14046 bitmap set. Remove a superfluous bitmap test.
14047
14048 2016-01-07 Martin Sebor <msebor@redhat.com>
14049
14050 PR c/68966
14051 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
14052 constraint on the type of arguments.
14053
14054 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
14055
14056 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
14057 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
14058 unaligned_access on the gcc_options set.
14059 * config/arm/arm.c (arm_option_override_internal): Use
14060 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
14061
14062 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
14063
14064 PR target/69140
14065 * config/i386/i386.c (ix86_frame_pointer_required): Enable
14066 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
14067
14068 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
14069
14070 Revert
14071 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
14072
14073 PR target/69140
14074 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14075 depending on frame_pointer_needed before remaining integer and SSE
14076 registers are saved.
14077
14078 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
14079
14080 PR 1078
14081 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
14082
14083 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
14084
14085 PR target/69171
14086 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
14087 Use the "xBm" constraint.
14088 (float<sseintvecmodelower><mode>2<mask_name><round_name):
14089 Likewise.
14090 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
14091 (sse_cvtsi2ssq<round_name>): Likewise.
14092 (sse_cvtss2si<round_name>): Likewise.
14093 (sse_cvtss2siq<round_name>): Likewise.
14094 (sse2_cvtsi2sdq<round_name>): Likewise.
14095 (sse2_cvtsd2si<round_name>): Likewise.
14096 (sse2_cvtsd2siq<round_name>): Likewise.
14097 * config/i386/subst.md (round_nimm_scalar_predicate): New
14098 predicate.
14099
14100 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
14101
14102 PR middle-end/67639
14103 * varasm.c (make_decl_rtl): Mark invalid register vars as
14104 DECL_EXTERNAL.
14105
14106 PR rtl-optimization/66206
14107 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
14108 All callers changed.
14109
14110 2016-01-07 Jakub Jelinek <jakub@redhat.com>
14111
14112 PR tree-optimization/69141
14113 * tree-ssa-pre.c: Include langhooks.h.
14114 (eliminate_dom_walker::before_dom_children): Use
14115 lang_hooks.decl_printable_name instead of
14116 cgraph_node::get ()->name ().
14117
14118 PR middle-end/68960
14119 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
14120 it and DECL_ALIGN too.
14121
14122 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
14123
14124 * config/mips/mips-ftypes.def: Sort to lexicographical order.
14125
14126 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
14127
14128 PR target/69140
14129 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14130 depending on frame_pointer_needed before remaining integer and SSE
14131 registers are saved.
14132
14133 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14134
14135 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
14136 mode iterator with VSX_M2.
14137 (*p9_vecstore_<mode>): Likewise.
14138 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
14139 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
14140 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
14141 (define_split for VSX_LE128 stores): Likewise.
14142 (define_peephole2 for TImode LE swaps): Likewise.
14143 (define_split for VSX_LE128 post-reload stores): Likewise.
14144
14145 2016-01-06 Marek Polacek <polacek@redhat.com>
14146
14147 PR sanitizer/69099
14148 * convert.c (convert_to_integer_1): Adjust call to
14149 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
14150 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
14151 EXPR instead of ARG.
14152 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
14153
14154 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
14155
14156 PR 1078
14157 * doc/extend.texi (RL78 Variable Attributes): New section.
14158
14159 2016-01-05 Marek Polacek <polacek@redhat.com>
14160
14161 PR c/69104
14162 * builtins.c (get_memmodel): Use expansion point location rather than
14163 the input location. Call warning_at rather than warning.
14164 (expand_builtin_atomic_compare_exchange): Likewise.
14165 (expand_builtin_atomic_load): Likewise.
14166 (expand_builtin_atomic_store): Likewise.
14167 (expand_builtin_atomic_clear): Likewise.
14168
14169 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
14170
14171 PR target/68991
14172 * config/i386/i386.c (ix86_expand_vector_logical_operator):
14173 Replace nonimmediate_operand with vector_operand.
14174 * config/i386/predicates.md (vector_operand): New predicate.
14175 (general_vector_operand): Replace nonimmediate_operand with
14176 vector_operand.
14177 * config/i386/sse.md: Replace nonimmediate_operand with
14178 vector_operand and m constraint with Bm constraint on SSE
14179 patterns with 16-byte memory operand.
14180 * config/i386/subst.md (round_nimm_predicate): Replace
14181 nonimmediate_operand with vector_operand.
14182 (round_saeonly_nimm_predicate): Likewise.
14183 (round_saeonly_nimm_scalar_predicate): New.
14184
14185 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
14186
14187 PR target/68991
14188 * config/i386/constraints.md (Bm): New constraint.
14189 * config/i386/predicates.md (vector_memory_operand): New
14190 predicate.
14191 * config/i386/sse.md: Replace xm with xBm in plusminus and
14192 any_logic patterns.
14193
14194 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
14195
14196 PR 1078
14197 * doc/extend.texi (V850 Function Attributes): New section.
14198 (V850 Variable Attributes): New section.
14199
14200 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
14201
14202 PR 1078
14203 * doc/extend.texi (MicroBlaze Function Attributes): Document
14204 interrupt_handler and fast_interrupt attributes.
14205
14206 2016-01-05 Sergei Trofimovich <siarheit@google.com>
14207
14208 PR other/60465
14209 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
14210 for local symbolic operands.
14211 * config/ia64/predicates.md (local_symbolic_operand64): New
14212 predicate.
14213
14214 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14215
14216 PR rtl-optimization/68651
14217 * combine.c (combine_simplify_rtx): Canonicalize x + x into
14218 x << 1.
14219
14220 2016-01-05 Nathan Sidwell <nathan@acm.org>
14221
14222 * alias.c (compare_base_decls): Use symtab_node::get.
14223
14224 2016-01-05 Nick Clifton <nickc@redhat.com>
14225
14226 PR target/68770
14227 * ira-costs.c (copy_cost): Initialise the t_icode field of the
14228 secondary_reload_info structure.
14229
14230 PR target/66655
14231 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
14232 decls if weak support is available.
14233
14234 2016-01-04 Martin Sebor <msebor@redhat.com>
14235
14236 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
14237
14238 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
14239
14240 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14241 OPTION_MASK_P9_DFORM.
14242
14243 * config/rs6000/constraints.md (wo constraint): New constraint for
14244 ISA 3.0 (power9).
14245
14246 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
14247 for wo constraint.
14248 (rs6000_init_hard_regno_mode_ok): Likewise.
14249
14250 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
14251 wo constraint.
14252
14253 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
14254 expanders not to have constraints. Add support for ISA 3.0 xxperm
14255 instruction. Add support for fusing xxlor with xxperm.
14256 (altivec_vperm_<mode>_internal): Likewise.
14257 (altivec_vperm_v8hiv16qi): Likewise.
14258 (altivec_vperm_<mode>v16q): Likewise.
14259 (altivec_vperm_<mode>_uns): Likewise.
14260 (vperm_v8hiv4si): Likewise.
14261 (vperm_v16qiv8hi): Likewise.
14262
14263 * doc/md.texi (RS/6000 constraints): Document wo constraint.
14264
14265 2016-01-04 Jakub Jelinek <jakub@redhat.com>
14266
14267 Update copyright years.
14268
14269 * gcc.c (process_command): Update copyright notice dates.
14270 * gcov-dump.c (print_version): Ditto.
14271 * gcov.c (print_version): Ditto.
14272 * gcov-tool.c (print_version): Ditto.
14273 * gengtype.c (create_file): Ditto.
14274 * doc/cpp.texi: Bump @copying's copyright year.
14275 * doc/cppinternals.texi: Ditto.
14276 * doc/gcc.texi: Ditto.
14277 * doc/gccint.texi: Ditto.
14278 * doc/gcov.texi: Ditto.
14279 * doc/install.texi: Ditto.
14280 * doc/invoke.texi: Ditto.
14281
14282 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
14283
14284 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
14285 modes larger than TImode as TImode if NEON is not enabled.
14286
14287 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
14288
14289 PR target/69100
14290 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
14291 mode for %f0-%f31 only if TARGET_FPU.
14292
14293 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
14294
14295 PR target/69072
14296 * config/sparc/sparc.c (scan_record_type): Take into account subfields
14297 to compute the PACKED_P predicate.
14298 (function_arg_record_value): Minor tweaks.
14299
14300 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14301
14302 * doc/install.texi (--with-multilib-list): Describe the meaning of the
14303 option for arm*-*-* targets.
14304
14305 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
14306
14307 * doc/extend.texi (Common Function Attributes): Move docs for
14308 MSP430-specific attributes to....
14309 (MSP430 Function Attributes): ...here. Delete the redundant
14310 entries and copy-edit the remaining text.
14311 (MSP430 Variable Attributes): Use uniform format for index
14312 entries and add a cross-reference to the corresponding function
14313 attribute docs.
14314
14315 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
14316
14317 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
14318 -finite-math typo.
14319 (x86 Options): Likewise.
14320
14321 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
14322
14323 PR 1078
14324
14325 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
14326 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
14327 to corresponding attribute.
14328
14329 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
14330
14331 * doc/extend.texi (Common Function Attributes) <noplt>: Move
14332 to correct alphabetization of table. Copy-edit and correct
14333 markup.
14334 <stack_protect>: Likewise.
14335 <target_clones>: Likewise.
14336 <simd>: Likewise.
14337 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
14338 Correct punctuation.
14339 (Code Gen Options) <-fno-plt>: Copy-edit.
14340
14341 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
14342
14343 PR target/68917
14344 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
14345 SI values. Explicitly convert SI to DI and vice-versa.
14346
14347 2016-01-01 Jakub Jelinek <jakub@redhat.com>
14348
14349 PR tree-optimization/69070
14350 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
14351 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
14352
14353 PR sanitizer/69055
14354 * ubsan.c (ubsan_instrument_float_cast): Call
14355 initialize_sanitizer_builtins.
14356
14357 PR target/69015
14358 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
14359 \f
14360 Copyright (C) 2016 Free Software Foundation, Inc.
14361
14362 Copying and distribution of this file, with or without modification,
14363 are permitted in any medium without royalty provided the copyright
14364 notice and this notice are preserved.